diff --git a/sdk/js/CHANGELOG.md b/sdk/js/CHANGELOG.md index d65685610..bf08c17ce 100644 --- a/sdk/js/CHANGELOG.md +++ b/sdk/js/CHANGELOG.md @@ -9,6 +9,8 @@ added chunks and sendAndConfirmTransactionsWithRetry as utility functions. added integration tests for postVaaSolanaWithRetry. +initial Oasis support + ## 0.1.4 initial AVAX testnet support diff --git a/sdk/js/src/utils/array.ts b/sdk/js/src/utils/array.ts index cebf79398..5ec435e6e 100644 --- a/sdk/js/src/utils/array.ts +++ b/sdk/js/src/utils/array.ts @@ -7,6 +7,7 @@ import { CHAIN_ID_POLYGON, CHAIN_ID_ETHEREUM_ROPSTEN, CHAIN_ID_AVAX, + CHAIN_ID_OASIS, } from "./consts"; import { humanAddress, canonicalAddress, isNativeDenom } from "../terra"; import { PublicKey } from "@solana/web3.js"; @@ -19,7 +20,8 @@ export const isEVMChain = (chainId: ChainId) => { chainId === CHAIN_ID_BSC || chainId === CHAIN_ID_ETHEREUM_ROPSTEN || chainId === CHAIN_ID_AVAX || - chainId === CHAIN_ID_POLYGON + chainId === CHAIN_ID_POLYGON || + chainId === CHAIN_ID_OASIS ); }; diff --git a/sdk/js/src/utils/consts.ts b/sdk/js/src/utils/consts.ts index 8e6196c1b..bdd21957e 100644 --- a/sdk/js/src/utils/consts.ts +++ b/sdk/js/src/utils/consts.ts @@ -1,10 +1,11 @@ -export type ChainId = 1 | 2 | 3 | 4 | 5 | 6 | 10001; +export type ChainId = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 10001; export const CHAIN_ID_SOLANA: ChainId = 1; export const CHAIN_ID_ETH: ChainId = 2; export const CHAIN_ID_TERRA: ChainId = 3; export const CHAIN_ID_BSC: ChainId = 4; export const CHAIN_ID_POLYGON: ChainId = 5; export const CHAIN_ID_AVAX: ChainId = 6; +export const CHAIN_ID_OASIS: ChainId = 7; export const CHAIN_ID_ETHEREUM_ROPSTEN: ChainId = 10001; export const WSOL_ADDRESS = "So11111111111111111111111111111111111111112";