sdk: support for oasis
This commit is contained in:
parent
693678ef5d
commit
af34f454ec
|
@ -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
|
||||
|
|
|
@ -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
|
||||
);
|
||||
};
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue