Skip to content

Commit

Permalink
Add shardnet to near-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
nikurt committed Jun 17, 2022
1 parent cdc571b commit 716be5d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ NEAR_CLI_TESTNET_RPC_SERVER_URL
NEAR_CLI_BETANET_RPC_SERVER_URL
NEAR_CLI_GUILDNET_RPC_SERVER_URL
NEAR_CLI_LOCALNET_RPC_SERVER_URL
NEAR_CLI_SHARDNET_RPC_SERVER_URL
NEAR_CLI_CI_RPC_SERVER_URL
```
Clear them in case you want to get back to the default RPC server.
Expand Down
11 changes: 11 additions & 0 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,17 @@ function getConfig(env) {
helperAccount: 'guildnet',
};
break;
case 'shardnet':
config = {
networkId: 'shardnet',
nodeUrl: process.env.NEAR_CLI_SHARDNET_RPC_SERVER_URL || 'https://rpc.shardnet.near.org',
contractName: CONTRACT_NAME,
walletUrl: 'https://wallet.shardnet.near.org',
helperUrl: 'https://helper.shardnet.near.org',
helperAccount: 'shardnet',
explorerUrl: 'https://explorer.shardnet.near.org',
};
break;
case 'local':
case 'localnet':
config = {
Expand Down

0 comments on commit 716be5d

Please sign in to comment.