diff --git a/.gitignore b/.gitignore index a51fec56..f28dc767 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ node_modules tmp-project neardev/* +package-lock.json +yarn.lock diff --git a/blank_project/src/config.js b/blank_project/src/config.js index e7aecba7..0064308c 100644 --- a/blank_project/src/config.js +++ b/blank_project/src/config.js @@ -4,6 +4,7 @@ function getConfig(env) { switch (env) { + case 'production': case 'development': return { @@ -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', @@ -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,