Glitter Solana Poller class. Implements the GlitterPoller interface.

Hierarchy

  • GlitterSolanaPoller

Implements

Constructors

Properties

cursors: Record<BridgeType, Cursor[]>

Cursors object for tracking transaction cursors. The keys represent BridgeTypes and the values are arrays of Cursor objects.

network: BridgeNetworks = BridgeNetworks.solana

Accessors

Methods

  • Retrieves the connection client based on the provided bridge type.

    Returns

    The connection client for the specified bridge type, or undefined if not found.

    Parameters

    • sdkServer: GlitterSDKServer

      The Glitter SDK server object.

    • type: BridgeType

      The bridge type.

    Returns undefined | Connection

  • Retrieves the filter options for obtaining signatures for a specific address.

    Returns

    A promise that resolves to the filter options for obtaining signatures.

    Parameters

    • cursor: Cursor

      The cursor for retrieving signatures.

    Returns Promise<SignaturesForAddressOptions>

  • Parses the transaction data and returns a partial bridge transaction based on the provided bridge type.

    Returns

    A promise that resolves to the partial bridge transaction, or undefined if parsing fails.

    Parameters

    • sdkServer: GlitterSDKServer

      The Glitter SDK server object.

    • txnData: ParsedTransactionWithMeta

      The parsed transaction data.

    • type: BridgeType

      The bridge type.

    Returns Promise<undefined | PartialTxn>

  • Parses the transaction ID and returns a partial bridge transaction based on the provided bridge type.

    Returns

    A promise that resolves to the partial bridge transaction, or undefined if parsing fails.

    Parameters

    • sdkServer: GlitterSDKServer

      The Glitter SDK server object.

    • txnID: string

      The transaction ID.

    • type: BridgeType

      The bridge type.

    Returns Promise<undefined | PartialTxn>

Generated using TypeDoc