Skip to content

Commit

Permalink
Merge pull request #119 from nearprotocol/update-urls-for-staging
Browse files Browse the repository at this point in the history
Add staging to environments list in config
  • Loading branch information
vgrichina authored Aug 28, 2019
2 parents 8169258 + fcc8d35 commit 534a088
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
node_modules
tmp-project
neardev/*
package-lock.json
yarn.lock
19 changes: 18 additions & 1 deletion blank_project/src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

function getConfig(env) {
switch (env) {

case 'production':
case 'development':
return {
Expand All @@ -13,6 +14,14 @@
walletUrl: 'https://wallet.nearprotocol.com',
initialBalance: 100000000,
};
case 'staging':
return {
networkId: 'staging',
nodeUrl: 'https://staging-rpc.nearprotocol.com/',
contractName: CONTRACT_NAME,
walletUrl: 'https://near-wallet-staging.onrender.com',
initialBalance: 100000000,
};
case 'local':
return {
networkId: 'local',
Expand All @@ -34,7 +43,15 @@
case 'ci':
return {
networkId: 'shared-test',
nodeUrl: 'http://34.94.237.200:3030',
nodeUrl: 'http://shared-test.nearprotocol.com:3030',
contractName: CONTRACT_NAME,
masterAccount: 'test.near',
initialBalance: 100000000,
};
case 'ci-staging':
return {
networkId: 'shared-test-staging',
nodeUrl: 'http://staging-shared-test.nearprotocol.com:3030',
contractName: CONTRACT_NAME,
masterAccount: 'test.near',
initialBalance: 100000000,
Expand Down

0 comments on commit 534a088

Please sign in to comment.