Poller for Solana Token Bridge V2

Hierarchy

  • SolanaV2Parser

Constructors

Methods

  • Parameters

    • fromNetwork: string
    • fromAddress: string
    • fromToken: string
    • fromTxnID: string
    • toNetwork: string
    • toAddress: string
    • toToken: string
    • toTxnID: string
    • units: BigNumber
    • decimals: number

    Returns Routing

  • Private

    Handles a deposit event for a bridge transaction.

    Static

    Returns

    A promise that resolves to the updated partial bridge transaction.

    Parameters

    • sdkServer: GlitterSDKServer

      The Glitter SDK server object.

    • txn: ParsedTransactionWithMeta

      The parsed transaction with metadata.

    • partialTxn: PartialTxn

      The partial bridge transaction object.

    • depositEvent: any

      The deposit event data.

    Returns Promise<PartialTxn>

  • Private

    Handles a refund event for a bridge transaction.

    Static

    Returns

    A promise that resolves to the updated partial bridge transaction.

    Parameters

    • sdkServer: GlitterSDKServer

      The Glitter SDK server object.

    • txn: ParsedTransactionWithMeta

      The parsed transaction with metadata.

    • partialTxn: PartialTxn

      The partial bridge transaction object.

    • refundEvent: any

      The refund event data.

    Returns Promise<PartialTxn>

  • Private

    Handles a release event for a bridge transaction.

    Static

    Returns

    A promise that resolves to the updated partial bridge transaction.

    Parameters

    • sdkServer: GlitterSDKServer

      The Glitter SDK server object.

    • txn: ParsedTransactionWithMeta

      The parsed transaction with metadata.

    • partialTxn: PartialTxn

      The partial bridge transaction object.

    • releaseEvent: any

      The release event data.

    Returns Promise<PartialTxn>

  • Processes a bridge transaction.

    Static

    Returns

    A promise that resolves to the partial bridge transaction.

    Parameters

    • sdkServer: GlitterSDKServer

      The Glitter SDK server object.

    • client: undefined | Connection

      The connection object for interacting with the network.

    • txn: ParsedTransactionWithMeta

      The parsed transaction with metadata.

    Returns Promise<PartialTxn>

Generated using TypeDoc