Skip to content
docs

TonSwapLeg

TonSwapLeg = { askWallet: string; inputJetton: string | null; kind: "stonfi-router"; outputJetton: string | null; proxyTonWallet?: string; router: string | null; version: 1 | 2; } | { inputJetton: string | null; kind: "dedust-pool"; outputJetton: string | null; pool: string; version: 1 | 2; }

Defined in: protocol-swap2-omniston/src/ton-swap.ts:59

A chain fact the payload depends on; checked by validateTonSwapLeg. A jetton is named by its master address; null is native GRAM.

{ askWallet: string; inputJetton: string | null; kind: "stonfi-router"; outputJetton: string | null; proxyTonWallet?: string; router: string | null; version: 1 | 2; }

askWallet: string

The router’s wallet the hop asks for — must be the router’s wallet of outputJetton (of a proxy-TON master when the output is native).

inputJetton: string | null

kind: "stonfi-router"

outputJetton: string | null

optional proxyTonWallet?: string

Native input: the router’s proxy-TON wallet the message pays into.

router: string | null

The router that executes this hop; null = the owner of proxyTonWallet.

version: 1 | 2


{ inputJetton: string | null; kind: "dedust-pool"; outputJetton: string | null; pool: string; version: 1 | 2; }