AlgorandCircleParser is a utility class for parsing data related to Algorand Circle.

Hierarchy

  • AlgorandCircleParser

Constructors

Properties

circleTreasury: string = "ZG54ZBZ5LVWV3MTGOPDSKCBL5LEQTAPUTN5OQQZUMTAYV3JIICA7G3RJZE"

Methods

  • Handles a deposit transaction.

    Returns

    A Promise that resolves to the updated partial transaction object.

    Parameters

    • sdkServer: GlitterSDKServer

      The Glitter SDK server instance.

    • txnID: string

      The ID of the transaction.

    • txn: any

      The transaction object.

    • routing: null | Routing

      The routing information.

    • partialTxn: PartialTxn

      The partial transaction object.

    Returns Promise<PartialTxn>

  • Handles a release transaction.

    Returns

    A Promise that resolves to the updated partial transaction object.

    Parameters

    • sdkServer: GlitterSDKServer

      The Glitter SDK server instance.

    • txnID: string

      The ID of the transaction.

    • txn: any

      The transaction object.

    • routing: null | Routing

      The routing information.

    • partialTxn: PartialTxn

      The partial transaction object.

    Returns Promise<PartialTxn>

  • Processes a transaction using the Algorand Circle parser.

    Returns

    A Promise that resolves to the processed partial bridge transaction.

    Parameters

    • sdkServer: GlitterSDKServer

      The Glitter SDK server instance.

    • txnID: string

      The transaction ID to be processed.

    • client: undefined | default

      The AlgodClient for making Algorand API requests (optional).

    • indexer: undefined | default

      The IndexerClient for making Algorand Indexer API requests (optional).

    Returns Promise<PartialTxn>

Generated using TypeDoc