Class PlatformContext<N, P>Abstract
Type Parameters
-
N extends Network
-
P extends Platform
Methods
Abstract
getChain
- getChain<C>(chain, rpc?): ChainContext<N, C, ChainToPlatform<C>>
-
Type Parameters
-
C extends "Solana" | "Algorand" | "Near" | "Sui" | "Aptos" | "Btc" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Terra" | "Terra2" | "Injective" | "Osmosis" | "Pythnet" | "Xpla" | "Sei" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Dymension"
Parameters
-
chain: C
-
Optional
rpc: any
Returns ChainContext<N, C, ChainToPlatform<C>>
getProtocol
- getProtocol<PN, T>(protocol, rpc): Promise<T>
-
Type Parameters
-
PN extends keyof ProtocolToPlatformMapping
-
T
Returns Promise<T>
Abstract
getRpc
- getRpc<C>(chain): any
-
Type Parameters
-
C extends "Solana" | "Algorand" | "Near" | "Sui" | "Aptos" | "Btc" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Terra" | "Terra2" | "Injective" | "Osmosis" | "Pythnet" | "Xpla" | "Sei" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Dymension"
Returns any
parseWormholeMessages
- parseWormholeMessages<C>(chain, rpc, txid): Promise<WormholeMessageId[]>
-
Type Parameters
-
C extends "Solana" | "Algorand" | "Near" | "Sui" | "Aptos" | "Btc" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Terra" | "Terra2" | "Injective" | "Osmosis" | "Pythnet" | "Xpla" | "Sei" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Dymension"
Parameters
-
chain: C
-
rpc: any
-
txid: string
utils
- utils(): PlatformUtils<P>
-
PlatformContext is an instance of the class that represents a specific Platform