SwapExecuted: PlainDescriptor<{
    amount_in: bigint;
    amount_out: bigint;
    path: [{
        interior: Enum<{
            Here: undefined;
            X1: Enum<{
                AccountId32: {
                    id: FixedSizeBinary<(...)>;
                    network?: (...) | (...);
                };
                AccountIndex64: {
                    index: bigint;
                    network?: (...) | (...);
                };
                AccountKey20: {
                    key: FixedSizeBinary<(...)>;
                    network?: (...) | (...);
                };
                GeneralIndex: bigint;
                GeneralKey: {
                    data: FixedSizeBinary<(...)>;
                    length: number;
                };
                GlobalConsensus: Enum<{
                    BitcoinCash: ...;
                    BitcoinCore: ...;
                    ByFork: ...;
                    ByGenesis: ...;
                    Ethereum: ...;
                    Kusama: ...;
                    Polkadot: ...;
                    PolkadotBulletin: ...;
                }>;
                OnlyChild: undefined;
                PalletInstance: number;
                Parachain: number;
                Plurality: {
                    id: XcmV3JunctionBodyId;
                    part: XcmV2JunctionBodyPart;
                };
            }>;
            X2: FixedSizeArray<2, Enum<{
                AccountId32: {
                    id: ...;
                    network?: ...;
                };
                AccountIndex64: {
                    index: ...;
                    network?: ...;
                };
                AccountKey20: {
                    key: ...;
                    network?: ...;
                };
                GeneralIndex: bigint;
                GeneralKey: {
                    data: ...;
                    length: ...;
                };
                GlobalConsensus: Enum<(...)>;
                OnlyChild: undefined;
                PalletInstance: number;
                Parachain: number;
                Plurality: {
                    id: ...;
                    part: ...;
                };
            }>>;
            X3: FixedSizeArray<3, Enum<{
                AccountId32: {
                    id: ...;
                    network?: ...;
                };
                AccountIndex64: {
                    index: ...;
                    network?: ...;
                };
                AccountKey20: {
                    key: ...;
                    network?: ...;
                };
                GeneralIndex: bigint;
                GeneralKey: {
                    data: ...;
                    length: ...;
                };
                GlobalConsensus: Enum<(...)>;
                OnlyChild: undefined;
                PalletInstance: number;
                Parachain: number;
                Plurality: {
                    id: ...;
                    part: ...;
                };
            }>>;
            X4: FixedSizeArray<4, Enum<{
                AccountId32: {
                    id: ...;
                    network?: ...;
                };
                AccountIndex64: {
                    index: ...;
                    network?: ...;
                };
                AccountKey20: {
                    key: ...;
                    network?: ...;
                };
                GeneralIndex: bigint;
                GeneralKey: {
                    data: ...;
                    length: ...;
                };
                GlobalConsensus: Enum<(...)>;
                OnlyChild: undefined;
                PalletInstance: number;
                Parachain: number;
                Plurality: {
                    id: ...;
                    part: ...;
                };
            }>>;
            X5: FixedSizeArray<5, Enum<{
                AccountId32: {
                    id: ...;
                    network?: ...;
                };
                AccountIndex64: {
                    index: ...;
                    network?: ...;
                };
                AccountKey20: {
                    key: ...;
                    network?: ...;
                };
                GeneralIndex: bigint;
                GeneralKey: {
                    data: ...;
                    length: ...;
                };
                GlobalConsensus: Enum<(...)>;
                OnlyChild: undefined;
                PalletInstance: number;
                Parachain: number;
                Plurality: {
                    id: ...;
                    part: ...;
                };
            }>>;
            X6: FixedSizeArray<6, Enum<{
                AccountId32: {
                    id: ...;
                    network?: ...;
                };
                AccountIndex64: {
                    index: ...;
                    network?: ...;
                };
                AccountKey20: {
                    key: ...;
                    network?: ...;
                };
                GeneralIndex: bigint;
                GeneralKey: {
                    data: ...;
                    length: ...;
                };
                GlobalConsensus: Enum<(...)>;
                OnlyChild: undefined;
                PalletInstance: number;
                Parachain: number;
                Plurality: {
                    id: ...;
                    part: ...;
                };
            }>>;
            X7: FixedSizeArray<7, Enum<{
                AccountId32: {
                    id: ...;
                    network?: ...;
                };
                AccountIndex64: {
                    index: ...;
                    network?: ...;
                };
                AccountKey20: {
                    key: ...;
                    network?: ...;
                };
                GeneralIndex: bigint;
                GeneralKey: {
                    data: ...;
                    length: ...;
                };
                GlobalConsensus: Enum<(...)>;
                OnlyChild: undefined;
                PalletInstance: number;
                Parachain: number;
                Plurality: {
                    id: ...;
                    part: ...;
                };
            }>>;
            X8: FixedSizeArray<8, Enum<{
                AccountId32: {
                    id: ...;
                    network?: ...;
                };
                AccountIndex64: {
                    index: ...;
                    network?: ...;
                };
                AccountKey20: {
                    key: ...;
                    network?: ...;
                };
                GeneralIndex: bigint;
                GeneralKey: {
                    data: ...;
                    length: ...;
                };
                GlobalConsensus: Enum<(...)>;
                OnlyChild: undefined;
                PalletInstance: number;
                Parachain: number;
                Plurality: {
                    id: ...;
                    part: ...;
                };
            }>>;
        }>;
        parents: number;
    }, bigint][];
    send_to: SS58String;
    who: SS58String;
}>

Assets have been converted from one to another. Both SwapExactTokenForToken and SwapTokenForExactToken will generate this event.

Type declaration

  • amount_in: bigint

    The amount of the first asset that was swapped.

  • amount_out: bigint

    The amount of the second asset that was received.

  • path: [{
        interior: Enum<{
            Here: undefined;
            X1: Enum<{
                AccountId32: {
                    id: FixedSizeBinary<(...)>;
                    network?: (...) | (...);
                };
                AccountIndex64: {
                    index: bigint;
                    network?: (...) | (...);
                };
                AccountKey20: {
                    key: FixedSizeBinary<(...)>;
                    network?: (...) | (...);
                };
                GeneralIndex: bigint;
                GeneralKey: {
                    data: FixedSizeBinary<(...)>;
                    length: number;
                };
                GlobalConsensus: Enum<{
                    BitcoinCash: ...;
                    BitcoinCore: ...;
                    ByFork: ...;
                    ByGenesis: ...;
                    Ethereum: ...;
                    Kusama: ...;
                    Polkadot: ...;
                    PolkadotBulletin: ...;
                }>;
                OnlyChild: undefined;
                PalletInstance: number;
                Parachain: number;
                Plurality: {
                    id: XcmV3JunctionBodyId;
                    part: XcmV2JunctionBodyPart;
                };
            }>;
            X2: FixedSizeArray<2, Enum<{
                AccountId32: {
                    id: ...;
                    network?: ...;
                };
                AccountIndex64: {
                    index: ...;
                    network?: ...;
                };
                AccountKey20: {
                    key: ...;
                    network?: ...;
                };
                GeneralIndex: bigint;
                GeneralKey: {
                    data: ...;
                    length: ...;
                };
                GlobalConsensus: Enum<(...)>;
                OnlyChild: undefined;
                PalletInstance: number;
                Parachain: number;
                Plurality: {
                    id: ...;
                    part: ...;
                };
            }>>;
            X3: FixedSizeArray<3, Enum<{
                AccountId32: {
                    id: ...;
                    network?: ...;
                };
                AccountIndex64: {
                    index: ...;
                    network?: ...;
                };
                AccountKey20: {
                    key: ...;
                    network?: ...;
                };
                GeneralIndex: bigint;
                GeneralKey: {
                    data: ...;
                    length: ...;
                };
                GlobalConsensus: Enum<(...)>;
                OnlyChild: undefined;
                PalletInstance: number;
                Parachain: number;
                Plurality: {
                    id: ...;
                    part: ...;
                };
            }>>;
            X4: FixedSizeArray<4, Enum<{
                AccountId32: {
                    id: ...;
                    network?: ...;
                };
                AccountIndex64: {
                    index: ...;
                    network?: ...;
                };
                AccountKey20: {
                    key: ...;
                    network?: ...;
                };
                GeneralIndex: bigint;
                GeneralKey: {
                    data: ...;
                    length: ...;
                };
                GlobalConsensus: Enum<(...)>;
                OnlyChild: undefined;
                PalletInstance: number;
                Parachain: number;
                Plurality: {
                    id: ...;
                    part: ...;
                };
            }>>;
            X5: FixedSizeArray<5, Enum<{
                AccountId32: {
                    id: ...;
                    network?: ...;
                };
                AccountIndex64: {
                    index: ...;
                    network?: ...;
                };
                AccountKey20: {
                    key: ...;
                    network?: ...;
                };
                GeneralIndex: bigint;
                GeneralKey: {
                    data: ...;
                    length: ...;
                };
                GlobalConsensus: Enum<(...)>;
                OnlyChild: undefined;
                PalletInstance: number;
                Parachain: number;
                Plurality: {
                    id: ...;
                    part: ...;
                };
            }>>;
            X6: FixedSizeArray<6, Enum<{
                AccountId32: {
                    id: ...;
                    network?: ...;
                };
                AccountIndex64: {
                    index: ...;
                    network?: ...;
                };
                AccountKey20: {
                    key: ...;
                    network?: ...;
                };
                GeneralIndex: bigint;
                GeneralKey: {
                    data: ...;
                    length: ...;
                };
                GlobalConsensus: Enum<(...)>;
                OnlyChild: undefined;
                PalletInstance: number;
                Parachain: number;
                Plurality: {
                    id: ...;
                    part: ...;
                };
            }>>;
            X7: FixedSizeArray<7, Enum<{
                AccountId32: {
                    id: ...;
                    network?: ...;
                };
                AccountIndex64: {
                    index: ...;
                    network?: ...;
                };
                AccountKey20: {
                    key: ...;
                    network?: ...;
                };
                GeneralIndex: bigint;
                GeneralKey: {
                    data: ...;
                    length: ...;
                };
                GlobalConsensus: Enum<(...)>;
                OnlyChild: undefined;
                PalletInstance: number;
                Parachain: number;
                Plurality: {
                    id: ...;
                    part: ...;
                };
            }>>;
            X8: FixedSizeArray<8, Enum<{
                AccountId32: {
                    id: ...;
                    network?: ...;
                };
                AccountIndex64: {
                    index: ...;
                    network?: ...;
                };
                AccountKey20: {
                    key: ...;
                    network?: ...;
                };
                GeneralIndex: bigint;
                GeneralKey: {
                    data: ...;
                    length: ...;
                };
                GlobalConsensus: Enum<(...)>;
                OnlyChild: undefined;
                PalletInstance: number;
                Parachain: number;
                Plurality: {
                    id: ...;
                    part: ...;
                };
            }>>;
        }>;
        parents: number;
    }, bigint][]

    The route of asset IDs with amounts that the swap went through. E.g. (A, amount_in) -> (Dot, amount_out) -> (B, amount_out)

  • send_to: SS58String

    The account that the assets were transferred to.

  • who: SS58String

    Which account was the instigator of the swap.