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.
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ askWallet: string; inputJetton: string | null; kind: "stonfi-router"; outputJetton: string | null; proxyTonWallet?: string; router: string | null; version: 1 | 2; }
askWallet
Section titled “askWallet”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
Section titled “inputJetton”inputJetton:
string|null
kind:
"stonfi-router"
outputJetton
Section titled “outputJetton”outputJetton:
string|null
proxyTonWallet?
Section titled “proxyTonWallet?”
optionalproxyTonWallet?:string
Native input: the router’s proxy-TON wallet the message pays into.
router
Section titled “router”router:
string|null
The router that executes this hop; null = the owner of proxyTonWallet.
version
Section titled “version”version:
1|2
Type Literal
Section titled “Type Literal”{ inputJetton: string | null; kind: "dedust-pool"; outputJetton: string | null; pool: string; version: 1 | 2; }