diff --git a/gatsby-node.js b/gatsby-node.js index 47b31c450..959f06f5f 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -13,7 +13,7 @@ exports.onCreateWebpackConfig = ({ actions }) => { exports.createPages = async ({ actions, reporter }) => { 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( `https://aquarius.marketplace.oceanprotocol.com/api/v1/aquarius/assets` ) diff --git a/src/config/ocean.ts b/src/config/ocean.ts index 10e307df4..0011db5ba 100644 --- a/src/config/ocean.ts +++ b/src/config/ocean.ts @@ -5,6 +5,7 @@ export enum OceanNetworkChainIds { 'Nile' = 8995, 'Spree' = 8996 } + declare type OceanNetworks = | OceanNetworkChainIds.Pacific | OceanNetworkChainIds.Nile @@ -15,37 +16,25 @@ export interface OceanConfig extends Config { ratingUri: string } -// why is this partial? -// export const config: Partial = { -// 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 = { - nodeUri: 'https://pacific.oceanprotocol.com', - aquariusUri: 'https://aquarius.marketplace.oceanprotocol.com', - brizoUri: 'https://brizo.marketplace.oceanprotocol.com', - brizoAddress: '0x00c6A0BC5cD0078d6Cd0b659E8061B404cfa5704', - secretStoreUri: 'https://secret-store.oceanprotocol.com', - faucetUri: 'https://faucet.oceanprotocol.com', - ratingUri: 'https://rating.pacific.marketplace.dev-ocean.com', + 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 } -export const CHAIN_IDS = [ +export const CHAIN_IDS: OceanNetworks[] = [ OceanNetworkChainIds.Pacific, OceanNetworkChainIds.Nile, OceanNetworkChainIds.Spree