1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

ocean config cleanup

This commit is contained in:
Matthias Kretschmann 2020-07-06 11:28:33 +02:00
parent 014676422c
commit 4d36127f76
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 17 additions and 28 deletions

View File

@ -13,7 +13,7 @@ exports.onCreateWebpackConfig = ({ actions }) => {
exports.createPages = async ({ actions, reporter }) => { exports.createPages = async ({ actions, reporter }) => {
const { createPage } = actions const { createPage } = actions
// Query for markdown nodes to use in creating pages. // Query for all assets to use in creating pages.
const result = await axios( const result = await axios(
`https://aquarius.marketplace.oceanprotocol.com/api/v1/aquarius/assets` `https://aquarius.marketplace.oceanprotocol.com/api/v1/aquarius/assets`
) )

View File

@ -5,6 +5,7 @@ export enum OceanNetworkChainIds {
'Nile' = 8995, 'Nile' = 8995,
'Spree' = 8996 'Spree' = 8996
} }
declare type OceanNetworks = declare type OceanNetworks =
| OceanNetworkChainIds.Pacific | OceanNetworkChainIds.Pacific
| OceanNetworkChainIds.Nile | OceanNetworkChainIds.Nile
@ -15,37 +16,25 @@ export interface OceanConfig extends Config {
ratingUri: string ratingUri: string
} }
// why is this partial?
// export const config: Partial<OceanConfig> = {
// nodeUri: process.env.NODE_URI || 'https://pacific.oceanprotocol.com',
// aquariusUri:
// process.env.AQUARIUS_URI ||
// 'https://aquarius.marketplace.oceanprotocol.com',
// brizoUri:
// process.env.BRIZO_URI || 'https://brizo.marketplace.oceanprotocol.com',
// brizoAddress:
// process.env.BRIZO_ADDRESS || '0x00c6A0BC5cD0078d6Cd0b659E8061B404cfa5704',
// secretStoreUri:
// process.env.SECRET_STORE_URI || 'https://secret-store.oceanprotocol.com',
// faucetUri: process.env.FAUCET_URI || 'https://faucet.oceanprotocol.com',
// ratingUri:
// process.env.RATING_URI || 'https://rating.pacific.marketplace.dev-ocean.com',
// verbose: 3
// }
// why is this partial?
export const config: OceanConfig = { export const config: OceanConfig = {
nodeUri: 'https://pacific.oceanprotocol.com', nodeUri: process.env.NODE_URI || 'https://pacific.oceanprotocol.com',
aquariusUri: 'https://aquarius.marketplace.oceanprotocol.com', aquariusUri:
brizoUri: 'https://brizo.marketplace.oceanprotocol.com', process.env.AQUARIUS_URI ||
brizoAddress: '0x00c6A0BC5cD0078d6Cd0b659E8061B404cfa5704', 'https://aquarius.marketplace.oceanprotocol.com',
secretStoreUri: 'https://secret-store.oceanprotocol.com', brizoUri:
faucetUri: 'https://faucet.oceanprotocol.com', process.env.BRIZO_URI || 'https://brizo.marketplace.oceanprotocol.com',
ratingUri: 'https://rating.pacific.marketplace.dev-ocean.com', brizoAddress:
process.env.BRIZO_ADDRESS || '0x00c6A0BC5cD0078d6Cd0b659E8061B404cfa5704',
secretStoreUri:
process.env.SECRET_STORE_URI || 'https://secret-store.oceanprotocol.com',
faucetUri: process.env.FAUCET_URI || 'https://faucet.oceanprotocol.com',
ratingUri:
process.env.RATING_URI ||
'https://rating.pacific.marketplace.dev-ocean.com',
verbose: 3 verbose: 3
} }
export const CHAIN_IDS = [ export const CHAIN_IDS: OceanNetworks[] = [
OceanNetworkChainIds.Pacific, OceanNetworkChainIds.Pacific,
OceanNetworkChainIds.Nile, OceanNetworkChainIds.Nile,
OceanNetworkChainIds.Spree OceanNetworkChainIds.Spree