Skip to content
This repository was archived by the owner on Oct 4, 2024. It is now read-only.

Commit 716be5d

Browse files
author
Nikolay Kurtov
committed
Add shardnet to near-cli
1 parent cdc571b commit 716be5d

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ NEAR_CLI_TESTNET_RPC_SERVER_URL
110110
NEAR_CLI_BETANET_RPC_SERVER_URL
111111
NEAR_CLI_GUILDNET_RPC_SERVER_URL
112112
NEAR_CLI_LOCALNET_RPC_SERVER_URL
113+
NEAR_CLI_SHARDNET_RPC_SERVER_URL
113114
NEAR_CLI_CI_RPC_SERVER_URL
114115
```
115116
Clear them in case you want to get back to the default RPC server.

config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,17 @@ function getConfig(env) {
5050
helperAccount: 'guildnet',
5151
};
5252
break;
53+
case 'shardnet':
54+
config = {
55+
networkId: 'shardnet',
56+
nodeUrl: process.env.NEAR_CLI_SHARDNET_RPC_SERVER_URL || 'https://rpc.shardnet.near.org',
57+
contractName: CONTRACT_NAME,
58+
walletUrl: 'https://wallet.shardnet.near.org',
59+
helperUrl: 'https://helper.shardnet.near.org',
60+
helperAccount: 'shardnet',
61+
explorerUrl: 'https://explorer.shardnet.near.org',
62+
};
63+
break;
5364
case 'local':
5465
case 'localnet':
5566
config = {

0 commit comments

Comments
 (0)