Type Parameters

Hierarchy

  • SolanaWormholeCore

Implements

Constructors

  • Type Parameters

    • N extends "Mainnet" | "Testnet" | "Devnet"

    • C extends "Solana" | "Pythnet"

    Parameters

    • network: N
    • chain: C
    • connection: Connection
    • contracts: Contracts

    Returns SolanaWormholeCore<N, C>

Properties

address: string
chain: C
chainId: 2 | 1 | 3 | 8 | 5 | 6 | 4 | 22 | 7 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 23 | 24 | 25 | 26 | 28 | 29 | 30 | 32 | 33 | 3104 | 4000 | 4001 | 4002 | 10002
connection: Connection
contracts: Contracts
coreBridge: Program<Wormhole>
network: N

Methods

  • Type Parameters

    • N extends "Mainnet" | "Testnet" | "Devnet"

    Parameters

    • connection: Connection
    • config: ChainsConfig<N, "Solana" | "Algorand" | "Near" | "Sui" | "Aptos" | "Btc" | "Evm" | "Cosmwasm">

    Returns Promise<SolanaWormholeCore<N, "Solana" | "Pythnet">>

  • Parameters

    • coreBridgeAddress: string
    • transaction: VersionedTransactionResponse | TransactionResponse

    Returns [UniversalAddress, bigint]

Generated using TypeDoc