Skip to content

Commit

Permalink
near/constants: establish our new constants for NEAR @ gusc1a-ossdev-…
Browse files Browse the repository at this point in the history
…jsl5
  • Loading branch information
jumpsiegel authored and evan-gray committed Apr 30, 2022
1 parent 01380af commit d54b883
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions proto/publicrpc/v1/publicrpc.proto
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ enum ChainID {
CHAIN_ID_ACALA = 12;
CHAIN_ID_KLAYTN = 13;
CHAIN_ID_CELO = 14;
CHAIN_ID_NEAR = 15;
// Special case - Eth has two testnets. CHAIN_ID_ETHEREUM is Goerli,
// but we also want to connect to Ropsten, so we add a separate chain.
CHAIN_ID_ETHEREUM_ROPSTEN = 10001;
Expand Down
1 change: 1 addition & 0 deletions sdk/js/src/utils/array.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
CHAIN_ID_FANTOM,
CHAIN_ID_KARURA,
CHAIN_ID_KLAYTN,
CHAIN_ID_NEAR,
CHAIN_ID_OASIS,
CHAIN_ID_POLYGON,
CHAIN_ID_SOLANA,
Expand Down
3 changes: 2 additions & 1 deletion sdk/js/src/utils/consts.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export type ChainId = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 10001;
export type ChainId = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 10001;
export const CHAIN_ID_SOLANA: ChainId = 1;
export const CHAIN_ID_ETH: ChainId = 2;
export const CHAIN_ID_TERRA: ChainId = 3;
Expand All @@ -13,6 +13,7 @@ export const CHAIN_ID_KARURA: ChainId = 11;
export const CHAIN_ID_ACALA: ChainId = 12;
export const CHAIN_ID_KLAYTN: ChainId = 13;
export const CHAIN_ID_CELO: ChainId = 14;
export const CHAIN_ID_NEAR: ChainId = 15;
export const CHAIN_ID_ETHEREUM_ROPSTEN: ChainId = 10001;

export const WSOL_ADDRESS = "So11111111111111111111111111111111111111112";
Expand Down

0 comments on commit d54b883

Please sign in to comment.