Type Parameters

Hierarchy

  • AptosTokenBridge

Implements

Constructors

  • Type Parameters

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

    • C extends "Aptos"

    Parameters

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

    Returns AptosTokenBridge<N, C>

Properties

chain: C
chainId: 2 | 3 | 8 | 1 | 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: AptosClient
contracts: Contracts
coreAddress: string
network: N
tokenBridgeAddress: string

Methods

  • Parameters

    Returns Promise<string>

  • Given a hash, returns the fully qualified type by querying the corresponding TypeInfo.

    Parameters

    • address: string

      Hash of fully qualified type

    Returns Promise<string>

    The fully qualified type associated with the given hash

  • Derive the module address for an asset defined by the given origin chain and address.

    Parameters

    • chain: "Aptos"
    • tokenBridgeAddress: string

      Address of token bridge (32 bytes)

    • tokenId: TokenId

    Returns string

    The module address for the given asset

Generated using TypeDoc