SwapApproval
Defined in: swap.ts:142
What the swap sheet renders. Amounts are base-unit strings.
Properties
Section titled “Properties”approvals
Section titled “approvals”approvals:
object[]
Defined in: swap.ts:156
amount
Section titled “amount”amount:
string
spender
Section titled “spender”spender:
string
token:
string
checks
Section titled “checks”checks:
object[]
Defined in: swap.ts:163
label:
string
status
Section titled “status”status:
"ok"|"warn"|"unknown"
etaSeconds
Section titled “etaSeconds”etaSeconds:
number
Defined in: swap.ts:154
feeUsd
Section titled “feeUsd”feeUsd:
number
Defined in: swap.ts:153
fromChain
Section titled “fromChain”fromChain:
string
Defined in: swap.ts:145
fromChainName
Section titled “fromChainName”fromChainName:
string
Defined in: swap.ts:147
provider
Section titled “provider”provider:
string
Defined in: swap.ts:143
providerLabel
Section titled “providerLabel”providerLabel:
string
Defined in: swap.ts:144
receive
Section titled “receive”receive:
object
Defined in: swap.ts:150
amount
Section titled “amount”amount:
string
decimals
Section titled “decimals”decimals:
number
min:
string
symbol
Section titled “symbol”symbol:
string
recipient
Section titled “recipient”recipient:
object
Defined in: swap.ts:151
address
Section titled “address”address:
string
isOwn:
boolean
refundAddress
Section titled “refundAddress”refundAddress:
string
Defined in: swap.ts:152
send:
object
Defined in: swap.ts:149
amount
Section titled “amount”amount:
string
decimals
Section titled “decimals”decimals:
number
symbol
Section titled “symbol”symbol:
string
source
Section titled “source”source: {
data?:string;deposit?:string;kind:"call";to:string;value:string; } | {amount:string;kind:"token-transfer";memo?:string;recipient:string;token:string; } | {kind:"serialized"; } | {kind:"typed-order";text:string;typedData:TypedData; }
Defined in: swap.ts:157
toChain
Section titled “toChain”toChain:
string
Defined in: swap.ts:146
toChainName
Section titled “toChainName”toChainName:
string
Defined in: swap.ts:148
validUntilMs
Section titled “validUntilMs”validUntilMs:
number
Defined in: swap.ts:155