Interface RouterSwapEvent

Event emitted when a token swap is executed through the Router. The path represents the sequence of tokens to swap through, where consecutive tokens form the pairs to trade through.

interface RouterSwapEvent {
    contractType: "SoroswapRouter";
    eventType: "swap";
    ledger: number;
    recipientAddress: string;
    timestamp: number;
    tokenAmountsInSequence: readonly bigint[];
    tradedTokenSequence: readonly Asset[];
}

Hierarchy

  • BaseRouterEvent
    • RouterSwapEvent

Properties

contractType
eventType
ledger: number
recipientAddress: string
timestamp: number
tokenAmountsInSequence: readonly bigint[]
tradedTokenSequence: readonly Asset[]