sdk/js: add neon testnet

This commit is contained in:
Evan Gray 2022-06-09 18:21:12 +00:00 committed by Evan Gray
parent 7454c26f19
commit 5fd54db369
3 changed files with 32 additions and 7 deletions

View File

@ -1,8 +1,14 @@
# Changelog
## 0.3.8
### Added
Neon testnet support
## 0.3.7
### Changed
### Added
Acala mainnet support
@ -14,7 +20,7 @@ Fixed Algorand for addresses for non native assets
## 0.3.5
### Changed
### Added
Added APIs to send transfers with payloads

View File

@ -1,6 +1,6 @@
{
"name": "@certusone/wormhole-sdk",
"version": "0.3.7",
"version": "0.3.8",
"description": "SDK for interacting with Wormhole",
"homepage": "https://wormholenetwork.com",
"main": "./lib/cjs/index.js",

View File

@ -16,6 +16,7 @@ export const CHAINS = {
celo: 14,
near: 15,
moonbeam: 16,
neon: 17,
ropsten: 10001,
} as const;
@ -39,6 +40,7 @@ export type EVMChainName =
| "klaytn"
| "celo"
| "moonbeam"
| "neon"
| "ropsten";
export type Contracts = {
@ -136,7 +138,12 @@ const MAINNET = {
core: undefined,
token_bridge: undefined,
nft_bridge: undefined,
},
},
neon: {
core: undefined,
token_bridge: undefined,
nft_bridge: undefined,
},
ropsten: {
core: undefined,
token_bridge: undefined,
@ -223,13 +230,18 @@ const TESTNET = {
near: {
core: undefined,
token_bridge: undefined,
nft_bridge: undefined,
nft_bridge: undefined,
},
moonbeam: {
core: "0xa5B7D85a8f27dd7907dc8FdC21FA5657D5E2F901",
token_bridge: "0xbc976D4b9D57E57c3cA52e1Fd136C45FF7955A96",
nft_bridge: "0x98A0F4B96972b32Fcb3BD03cAeB66A44a6aB9Edb",
},
},
neon: {
core: "0xE4eacc10990ba3308DdCC72d985f2a27D20c7d03",
token_bridge: "0xd11De1f930eA1F7Dd0290Fe3a2e35b9C91AEFb37",
nft_bridge: "0xa52Da3B1ffd258a2fFB7719a6aeE24095eEE24E2",
},
ropsten: {
core: "0x210c5F5e2AF958B4defFe715Dc621b7a3BA888c5",
token_bridge: "0xF174F9A837536C449321df1Ca093Bb96948D5386",
@ -322,7 +334,12 @@ const DEVNET = {
core: undefined,
token_bridge: undefined,
nft_bridge: undefined,
},
},
neon: {
core: undefined,
token_bridge: undefined,
nft_bridge: undefined,
},
ropsten: {
core: undefined,
token_bridge: undefined,
@ -385,6 +402,7 @@ export const CHAIN_ID_KLAYTN = CHAINS["klaytn"];
export const CHAIN_ID_CELO = CHAINS["celo"];
export const CHAIN_ID_NEAR = CHAINS["near"];
export const CHAIN_ID_MOONBEAM = CHAINS["moonbeam"];
export const CHAIN_ID_NEON = CHAINS["neon"];
export const CHAIN_ID_ETHEREUM_ROPSTEN = CHAINS["ropsten"];
// This inverts the [[CHAINS]] object so that we can look up a chain by id
@ -493,6 +511,7 @@ export function isEVMChain(
chainId === CHAIN_ID_KLAYTN ||
chainId === CHAIN_ID_CELO ||
chainId === CHAIN_ID_MOONBEAM ||
chainId === CHAIN_ID_NEON ||
chainId === CHAIN_ID_ETHEREUM_ROPSTEN
) {
return isEVM(chainId);