From e33be03155c3730d4da3c6d64f8cc0fedcbd455a Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 25 Jun 2019 13:57:18 +0200 Subject: [PATCH] default all connections to Pacific --- README.md | 14 ++++++++------ client/.env.local.example | 26 +++++++++++++------------- client/src/config.ts | 13 +++++++------ client/src/routes/About.tsx | 6 +++--- 4 files changed, 31 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index 036c14a..290d97e 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ If you're a developer and want to contribute to, or want to utilize this marketplace's code in your projects, then keep on reading. - [πŸ„ Get Started](#-Get-Started) - - [πŸ– Remote Ocean: Nile](#-Remote-Ocean-Nile) + - [πŸ– Remote Ocean: Pacific](#-Remote-Ocean-Pacific) - [🐳 Use with Barge](#-Use-with-Barge) - [⛡️ Environment Variables](#️-Environment-Variables) - [πŸ‘©β€πŸ”¬ Testing](#-Testing) @@ -52,15 +52,17 @@ npm start Open [http://localhost:3000](http://localhost:3000) to view the client in the browser. The page will reload if you make edits to files in either `./client` or `./server`. -### πŸ– Remote Ocean: Nile +### πŸ– Remote Ocean: Pacific -To make use of all the functionality, you need to connect to the Ocean network. By default, the client will connect to Ocean components running within [Ocean's Nile test network](https://docs.oceanprotocol.com/concepts/testnets/#the-nile-testnet) remotely. +To make use of all the functionality, you need to connect to an Ocean network. -This means you need to connect with your MetaMask to the Nile network too. To do this: +By default, the client will connect to Ocean components running within [Ocean's Pacific network](https://docs.oceanprotocol.com/concepts/pacific-network/) remotely. + +With your MetaMask, connect to the Pacific network. To do this: 1. select Custom RPC in the network dropdown in MetaMask -2. under New Network, enter `https://nile.dev-ocean.com` as the custom RPC URL -3. Hit _Save_, and you’re now connected to Nile +2. under New Network, enter `https://pacific.oceanprotocol.com` as the custom RPC URL +3. Hit _Save_, and you’re now connected to Pacific ### 🐳 Use with Barge diff --git a/client/.env.local.example b/client/.env.local.example index 7a39efe..52f69fc 100644 --- a/client/.env.local.example +++ b/client/.env.local.example @@ -1,27 +1,27 @@ # # When none of the following variables are set, -# Commons will default connecting to Nile +# Commons will default connecting to Pacific # # # Connect to Pacific # -# REACT_APP_NODE_URI="https://pacific.oceanprotocol.com" -# REACT_APP_AQUARIUS_URI="https://aquarius.pacific.dev-ocean.com" -# REACT_APP_BRIZO_URI="https://brizo.pacific.dev-ocean.com" -# REACT_APP_SECRET_STORE_URI="https://secret-store.pacific.oceanprotocol.com" -# REACT_APP_FAUCET_URI="https://faucet.pacific.dev-ocean.com" -# REACT_APP_BRIZO_ADDRESS="0x008c25ed3594e094db4592f4115d5fa74c4f41ea" +REACT_APP_NODE_URI="https://pacific.oceanprotocol.com" +REACT_APP_AQUARIUS_URI="https://aquarius.pacific.dev-ocean.com" +REACT_APP_BRIZO_URI="https://brizo.pacific.dev-ocean.com" +REACT_APP_SECRET_STORE_URI="https://secret-store.pacific.oceanprotocol.com" +REACT_APP_FAUCET_URI="https://faucet.pacific.dev-ocean.com" +REACT_APP_BRIZO_ADDRESS="0x008c25ed3594e094db4592f4115d5fa74c4f41ea" # # Connect to Nile # -REACT_APP_NODE_URI="https://nile.dev-ocean.com" -REACT_APP_AQUARIUS_URI="https://nginx-aquarius.dev-ocean.com" -REACT_APP_BRIZO_URI="https://nginx-brizo.dev-ocean.com" -REACT_APP_SECRET_STORE_URI="https://secret-store.dev-ocean.com" -REACT_APP_FAUCET_URI="https://faucet.nile.dev-ocean.com" -REACT_APP_BRIZO_ADDRESS="0x4aaab179035dc57b35e2ce066919048686f82972" +# REACT_APP_NODE_URI="https://nile.dev-ocean.com" +# REACT_APP_AQUARIUS_URI="https://nginx-aquarius.dev-ocean.com" +# REACT_APP_BRIZO_URI="https://nginx-brizo.dev-ocean.com" +# REACT_APP_SECRET_STORE_URI="https://secret-store.dev-ocean.com" +# REACT_APP_FAUCET_URI="https://faucet.nile.dev-ocean.com" +# REACT_APP_BRIZO_ADDRESS="0x4aaab179035dc57b35e2ce066919048686f82972" # # Connect to Duero diff --git a/client/src/config.ts b/client/src/config.ts index d8f029c..d052f13 100644 --- a/client/src/config.ts +++ b/client/src/config.ts @@ -8,19 +8,20 @@ export const serviceUri = // OCEAN REMOTE CONNECTIONS // export const nodeUri = - process.env.REACT_APP_NODE_URI || 'https://nile.dev-ocean.com' + process.env.REACT_APP_NODE_URI || 'https://pacific.oceanprotocol.com' export const aquariusUri = - process.env.REACT_APP_AQUARIUS_URI || 'https://nginx-aquarius.dev-ocean.com' + process.env.REACT_APP_AQUARIUS_URI || + 'https://aquarius.pacific.dev-ocean.com' export const brizoUri = - process.env.REACT_APP_BRIZO_URI || 'https://nginx-brizo.dev-ocean.com' + process.env.REACT_APP_BRIZO_URI || 'https://brizo.pacific.dev-ocean.com' export const brizoAddress = process.env.REACT_APP_BRIZO_ADDRESS || - '0x4aaab179035dc57b35e2ce066919048686f82972' + '0x008c25ed3594e094db4592f4115d5fa74c4f41ea' export const secretStoreUri = process.env.REACT_APP_SECRET_STORE_URI || - 'https://secret-store.dev-ocean.com' + 'https://secret-store.pacific.oceanprotocol.com' export const faucetUri = - process.env.REACT_APP_FAUCET_URI || 'https://faucet.nile.dev-ocean.com' + process.env.REACT_APP_FAUCET_URI || 'https://faucet.pacific.dev-ocean.com' // // APP CONFIG diff --git a/client/src/routes/About.tsx b/client/src/routes/About.tsx index 10403df..c6ae988 100644 --- a/client/src/routes/About.tsx +++ b/client/src/routes/About.tsx @@ -8,13 +8,13 @@ class About extends Component { return (

Commons is built on top of the Ocean{' '} - - Nile test network + + Pacific network {' '} and is targeted at enthusiastic data scientists with some crypto experience. It can be used with any