Market over embassy (#404)

* marketplace proxy'd through embassy

* http not rpc

* fix up marketplace
This commit is contained in:
Drew Ansbacher
2021-08-12 10:49:41 -06:00
committed by GitHub
parent b55f82bcf3
commit 6782aa7e1c
14 changed files with 116 additions and 712 deletions

View File

@@ -1,13 +1,9 @@
import { Injectable } from '@angular/core'
import { InterfaceDef, PackageDataEntry, PackageMainStatus, PackageState } from './patch-db/data-model'
const { start9Marketplace, patchDb, api, mocks } = require('../../../config.json') as UiConfig
const { patchDb, api, mocks } = require('../../../config.json') as UiConfig
type UiConfig = {
start9Marketplace: {
clearnet: string
tor: string
}
patchDb: {
poll: {
cooldown: number /* in ms */
@@ -19,7 +15,6 @@ type UiConfig = {
}
mocks: {
enabled: boolean
marketplace: boolean
connection: 'ws' | 'poll'
rpcPort: number
wsPort: number
@@ -35,7 +30,6 @@ export class ConfigService {
origin = removePort(removeProtocol(window.origin))
version = require('../../../package.json').version
start9Marketplace = start9Marketplace
patchDb = patchDb
api = api
mocks = mocks