Skip to content

Commit

Permalink
Use forno urls everywhere (#2064)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanregisser authored and celo-ci-bot-user committed Dec 6, 2019
1 parent d7c1368 commit 46fdb49
Show file tree
Hide file tree
Showing 15 changed files with 23 additions and 14 deletions.
2 changes: 1 addition & 1 deletion packages/blockchain-api/.env
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ EXCHANGE_RATES_API=https://apilayer.net/api
BLOCKSCOUT_API=https://integration-blockscout.celo-testnet.org/api
FAUCET_ADDRESS=0x47e172F6CfB6c7D01C1574fa3E2Be7CC73269D95
VERIFICATION_REWARDS_ADDRESS=0xb4fdaf5f3cd313654aa357299ada901b1d2dd3b5
WEB3_PROVIDER_URL=https://integration-forno.celo-testnet.org/
WEB3_PROVIDER_URL=https://integration-forno.celo-testnet.org
2 changes: 1 addition & 1 deletion packages/blockchain-api/app.alfajores.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ env_variables:
# TODO Pull addresses from the build artifacts of the network in protocol/build
FAUCET_ADDRESS: "0xCEa3eF8e187490A9d85A1849D98412E5D27D1Bb3"
VERIFICATION_REWARDS_ADDRESS: "0xb4fdaf5f3cd313654aa357299ada901b1d2dd3b5"
WEB3_PROVIDER_URL: "https://alfajores-forno.celo-testnet.org/"
WEB3_PROVIDER_URL: "https://alfajores-forno.celo-testnet.org"
2 changes: 1 addition & 1 deletion packages/blockchain-api/app.alfajoresstaging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ env_variables:
# TODO Pull addresses from the build artifacts of the network in protocol/build
FAUCET_ADDRESS: "0xF4314cb9046bECe6AA54bb9533155434d0c76909"
VERIFICATION_REWARDS_ADDRESS: "0xb4fdaf5f3cd313654aa357299ada901b1d2dd3b5"
WEB3_PROVIDER_URL: "https://alfajoresstaging-forno.celo-testnet.org/"
WEB3_PROVIDER_URL: "https://alfajoresstaging-forno.celo-testnet.org"
2 changes: 1 addition & 1 deletion packages/blockchain-api/app.integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ env_variables:
# TODO Pull addresses from the build artifacts of the network in protocol/build
FAUCET_ADDRESS: "0x47e172F6CfB6c7D01C1574fa3E2Be7CC73269D95"
VERIFICATION_REWARDS_ADDRESS: "0xb4fdaf5f3cd313654aa357299ada901b1d2dd3b5"
WEB3_PROVIDER_URL: "https://integration-forno.celo-testnet.org/"
WEB3_PROVIDER_URL: "https://integration-forno.celo-testnet.org"
2 changes: 1 addition & 1 deletion packages/blockchain-api/app.pilot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ env_variables:
# TODO Pull addresses from the build artifacts of the network in protocol/build
FAUCET_ADDRESS: "0x387bCb16Bfcd37AccEcF5c9eB2938E30d3aB8BF2"
VERIFICATION_REWARDS_ADDRESS: "0xb4fdaf5f3cd313654aa357299ada901b1d2dd3b5"
WEB3_PROVIDER_URL: "https://pilot-infura.celo-testnet.org/"
WEB3_PROVIDER_URL: "https://pilot-forno.celo-testnet.org"
2 changes: 1 addition & 1 deletion packages/blockchain-api/app.pilotstaging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ env_variables:
# TODO Pull addresses from the build artifacts of the network in protocol/build
FAUCET_ADDRESS: "0x545DEBe3030B570731EDab192640804AC8Cf65CA"
VERIFICATION_REWARDS_ADDRESS: "0xb4fdaf5f3cd313654aa357299ada901b1d2dd3b5"
WEB3_PROVIDER_URL: "https://pilotstaging-forno.celo-testnet.org/"
WEB3_PROVIDER_URL: "https://pilotstaging-forno.celo-testnet.org"
2 changes: 1 addition & 1 deletion packages/mobile/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ have a corresponding `/blockchain-api` and `/notification-service` set up.

By default, the mobile wallet app runs geth in ultralight sync mode where all the epoch headers are fetched. The default sync mode is defined in [packages/mobile/.env](https://github.com/celo-org/celo-monorepo/blob/master/packages/mobile/.env#L4) file.

To run the wallet in zero sync mode, using a trusted node rather than the local geth node as a provider, turn it on from the Celo Lite page in settings or update the zero sync initially enabled parameter in the .env file linked above. When zero sync mode is turned back off, the wallet will switch to the default sync mode as specified in the .env file. By default, the trusted node is `https://{TESTNET}-forno.celo-testnet.org/`, however any trusted node can be used by updating `DEFAULT_FORNO_URL`. In zero sync mode, the wallet signs transactions locally in web3 then sends them to the trusted node.
To run the wallet in zero sync mode, using a trusted node rather than the local geth node as a provider, turn it on from the Celo Lite page in settings or update the zero sync initially enabled parameter in the .env file linked above. When zero sync mode is turned back off, the wallet will switch to the default sync mode as specified in the .env file. By default, the trusted node is `https://{TESTNET}-forno.celo-testnet.org`, however any trusted node can be used by updating `DEFAULT_FORNO_URL`. In zero sync mode, the wallet signs transactions locally in web3 then sends them to the trusted node.

## Testing

Expand Down
2 changes: 1 addition & 1 deletion packages/mobile/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const FIREBASE_ENABLED = stringToBoolean(Config.FIREBASE_ENABLED || 'true
// We need to fallback to `integration` for testing under jest where
// react-native-config is undefined.
export const DEFAULT_TESTNET = Config.DEFAULT_TESTNET || 'integration'
export const DEFAULT_FORNO_URL = `https://${DEFAULT_TESTNET}-infura.celo-testnet.org/`
export const DEFAULT_FORNO_URL = `https://${DEFAULT_TESTNET}-forno.celo-testnet.org`

export const SEGMENT_API_KEY = keyOrUndefined(secretsFile, Config.SECRETS_KEY, 'SEGMENT_API_KEY')
export const FIREBASE_WEB_KEY = keyOrUndefined(secretsFile, Config.SECRETS_KEY, 'FIREBASE_WEB_KEY')
Expand Down
2 changes: 1 addition & 1 deletion packages/notification-service/config/config.alfajores.env
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ DEFAULT_LOCALE=en
NOTIFICATION_TTL_MS=604800000
POLLING_INTERVAL=1000
EXCHANGE_POLLING_INTERVAL=1800000
WEB3_PROVIDER_URL=http://35.185.236.10:8545
WEB3_PROVIDER_URL=https://alfajores-forno.celo-testnet.org
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ NODE_TLS_REJECT_UNAUTHORIZED=0
DEFAULT_LOCALE=es
NOTIFICATION_TTL_MS=604800000
POLLING_INTERVAL=1000
WEB3_PROVIDER_URL=http://35.233.160.250:8545
WEB3_PROVIDER_URL=https://alfajoresstaging-forno.celo-testnet.org
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ DEFAULT_LOCALE=en
NOTIFICATION_TTL_MS=604800000
POLLING_INTERVAL=1000
EXCHANGE_POLLING_INTERVAL=1800000
WEB3_PROVIDER_URL=https://integration-forno.celo-testnet.org/
WEB3_PROVIDER_URL=https://integration-forno.celo-testnet.org
2 changes: 1 addition & 1 deletion packages/notification-service/config/config.local.env
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ GOOGLE_APPLICATION_CREDENTIALS="./config/serviceAccountKey.json"
NOTIFICATION_TTL_MS=604800000
POLLING_INTERVAL=5000
EXCHANGE_POLLING_INTERVAL=1800000
WEB3_PROVIDER_URL=https://integration-forno.celo-testnet.org/
WEB3_PROVIDER_URL=https://integration-forno.celo-testnet.org
2 changes: 1 addition & 1 deletion packages/notification-service/config/config.pilot.env
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ NODE_TLS_REJECT_UNAUTHORIZED=0
DEFAULT_LOCALE=en
NOTIFICATION_TTL_MS=604800000
POLLING_INTERVAL=1000
WEB3_PROVIDER_URL=http://35.203.185.89:8545
WEB3_PROVIDER_URL=https://pilot-forno.celo-testnet.org
9 changes: 9 additions & 0 deletions packages/notification-service/config/config.pilotstaging.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
ENVIRONMENT=pilotstaging
PORT=80
FIREBASE_DB=https://celo-org-mobile-pilotstaging.firebaseio.com
BLOCKSCOUT_API=https://pilotstaging-blockscout.celo-testnet.org/api?
NODE_TLS_REJECT_UNAUTHORIZED=0
DEFAULT_LOCALE=en
NOTIFICATION_TTL_MS=604800000
POLLING_INTERVAL=1000
WEB3_PROVIDER_URL=https://pilotstaging-forno.celo-testnet.org
2 changes: 1 addition & 1 deletion packages/notification-service/config/config.test.env
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ GOOGLE_APPLICATION_CREDENTIALS="./config/serviceAccountKey.json"
NOTIFICATION_TTL_MS=604800000
POLLING_INTERVAL=5000
EXCHANGE_POLLING_INTERVAL=1800000
WEB3_PROVIDER_URL=https://integration-forno.celo-testnet.org/
WEB3_PROVIDER_URL=https://integration-forno.celo-testnet.org

0 comments on commit 46fdb49

Please sign in to comment.