EVM V2 Parser class.

Hierarchy

  • EvmV2Parser

Constructors

Methods

  • Handles the deposit transaction.

    Returns

    A promise that resolves to the updated partial bridge transaction.

    Parameters

    • txnID: string

      The ID of the transaction.

    • connect: EvmConnect

      The EvmConnect instance.

    • txn: TransactionReceipt

      The transaction receipt.

    • partialTxn: PartialTxn

      The partial bridge transaction.

    • events: TokenBridgeV2EventGroup

      The TokenBridgeV2EventGroup containing parsed events.

    Returns Promise<PartialTxn>

  • Handles the refund transaction.

    Returns

    A promise that resolves to the updated partial bridge transaction.

    Parameters

    • txnID: string

      The ID of the transaction.

    • connect: EvmConnect

      The EvmConnect instance.

    • txn: TransactionReceipt

      The transaction receipt.

    • partialTxn: PartialTxn

      The partial bridge transaction.

    • events: TokenBridgeV2EventGroup

      The TokenBridgeV2EventGroup containing parsed events.

    Returns Promise<PartialTxn>

  • Handles the release transaction.

    Returns

    A promise that resolves to the updated partial bridge transaction.

    Parameters

    • txnID: string

      The ID of the transaction.

    • connect: EvmConnect

      The EvmConnect instance.

    • txn: TransactionReceipt

      The transaction receipt.

    • partialTxn: PartialTxn

      The partial bridge transaction.

    • events: TokenBridgeV2EventGroup

      The TokenBridgeV2EventGroup containing parsed events.

    Returns Promise<PartialTxn>

  • Processes a transaction using the EvmV2Parser.

    Returns

    A promise that resolves to the partial bridge transaction.

    Parameters

    • sdkServer: GlitterSDKServer

      The Glitter SDK server instance.

    • connect: undefined | EvmConnect

      The EvmConnect instance or undefined if not available.

    • txnID: string

      The ID of the transaction to process.

    Returns Promise<PartialTxn>

Generated using TypeDoc