PlatformContext is an instance of the class that represents a specific Platform

Type Parameters

  • N extends Network

Hierarchy

Implements

Methods

  • Create a new Protocol Client instance by protocol name using the RPC connection to determine the network

    Type Parameters

    • PN extends keyof ProtocolToPlatformMapping

    Parameters

    • protocol: PN
    • rpc: any

    Returns Promise<ProtocolImplementation<"Cosmwasm", PN>>

  • Get the underlying ProtocolInitializer to construct yourself

    Type Parameters

    • PN extends keyof ProtocolToPlatformMapping

    • C extends "Cosmoshub" | "Evmos" | "Injective" | "Kujira" | "Osmosis" | "Sei" | "Terra" | "Terra2" | "Wormchain" | "Xpla" | "Dymension" | "Neutron" | "Stargaze" | "Celestia" | "Seda"

    Parameters

    • protocol: PN

    Returns ProtocolInitializer<"Cosmwasm", PN, C>

  • Look up transaction logs and parse out Wormhole messages

    Type Parameters

    • C extends "Cosmoshub" | "Evmos" | "Injective" | "Kujira" | "Osmosis" | "Sei" | "Terra" | "Terra2" | "Wormchain" | "Xpla" | "Dymension" | "Neutron" | "Stargaze" | "Celestia" | "Seda"

    Parameters

    • chain: C
    • rpc: any
    • txid: string

    Returns Promise<WormholeMessageId[]>

  • provides access to the static attributes of the PlatformContext class

    Returns PlatformUtils<"Cosmwasm">

Generated using TypeDoc