ZeroExExpectation
Defined in: protocol-swap2-0x/src/settler.ts:363
What the user asked for — the only source of truth for the checks.
Properties
Section titled “Properties”buyToken
Section titled “buyToken”buyToken:
string
Defined in: protocol-swap2-0x/src/settler.ts:377
The token bought, same convention.
chain?
Section titled “chain?”
optionalchain?:ZeroExChain
Defined in: protocol-swap2-0x/src/settler.ts:371
The chain’s entry in the table in force: its pins bound the target (a token sale: previousLiveNonce up to
newestLiveNonce plus the margin; a native-coin sale: exactly newestLiveNonce or previousLiveNonce). Default:
the default table’s entry for chainId.
chainId
Section titled “chainId”chainId:
number
Defined in: protocol-swap2-0x/src/settler.ts:365
EVM chain id of the swap.
minBuyAmount
Section titled “minBuyAmount”minBuyAmount:
bigint
Defined in: protocol-swap2-0x/src/settler.ts:383
The least the recipient must receive — the quote’s minimum, already held to the requested slippage by the caller.
nowMs?
Section titled “nowMs?”
optionalnowMs?:number
Defined in: protocol-swap2-0x/src/settler.ts:385
Clock for the Permit2 deadline (tests).
recipient
Section titled “recipient”recipient:
string
Defined in: protocol-swap2-0x/src/settler.ts:381
Who must receive the output (the user’s own address unless they named another).
sellAmount
Section titled “sellAmount”sellAmount:
bigint
Defined in: protocol-swap2-0x/src/settler.ts:379
Exactly the input, base units.
sellToken
Section titled “sellToken”sellToken:
string
Defined in: protocol-swap2-0x/src/settler.ts:375
The token sold: an ERC-20 address, or the zero address / 0xEeee… for the native coin.
settlers
Section titled “settlers”settlers: readonly
string[]
Defined in: protocol-swap2-0x/src/settler.ts:373
Settlers resolved from the registry for that chain (SettlerResolver.resolve).