aftermath-ts-sdk - v3.3.3
    Preparing search index...

    Converts raw router indexer events into the SDK's public event shape.

    Index
    • Converts a raw SwapCompletedEvent into a RouterTradeEvent.

      Amount strings are converted to bigint without passing through JavaScript number, and the indexer timestamp is converted to a number. An absent timestamp therefore becomes NaN, matching the shared event casting behavior.

      Parameters

      Returns RouterTradeEvent

      The normalized router trade event.

      When an amount is not a valid bigint string.