CowOrder
Defined in: protocol-swap2-cow/src/order.ts:38
A fill-or-kill sell order with ERC-20 balances — the only shape this module signs.
Properties
Section titled “Properties”appData
Section titled “appData”appData:
string
Defined in: protocol-swap2-cow/src/order.ts:49
keccak256 of the appData document.
buyAmount
Section titled “buyAmount”buyAmount:
string
Defined in: protocol-swap2-cow/src/order.ts:45
Base units, decimal: the least the receiver accepts.
buyToken
Section titled “buyToken”buyToken:
string
Defined in: protocol-swap2-cow/src/order.ts:40
buyTokenBalance
Section titled “buyTokenBalance”buyTokenBalance:
"erc20"
Defined in: protocol-swap2-cow/src/order.ts:55
feeAmount
Section titled “feeAmount”feeAmount:
"0"
Defined in: protocol-swap2-cow/src/order.ts:51
Always “0”: the fee is taken from the surplus, never signed for.
kind:
"sell"
Defined in: protocol-swap2-cow/src/order.ts:52
partiallyFillable
Section titled “partiallyFillable”partiallyFillable:
false
Defined in: protocol-swap2-cow/src/order.ts:53
receiver
Section titled “receiver”receiver:
string
Defined in: protocol-swap2-cow/src/order.ts:41
sellAmount
Section titled “sellAmount”sellAmount:
string
Defined in: protocol-swap2-cow/src/order.ts:43
Base units, decimal.
sellToken
Section titled “sellToken”sellToken:
string
Defined in: protocol-swap2-cow/src/order.ts:39
sellTokenBalance
Section titled “sellTokenBalance”sellTokenBalance:
"erc20"
Defined in: protocol-swap2-cow/src/order.ts:54
validTo
Section titled “validTo”validTo:
number
Defined in: protocol-swap2-cow/src/order.ts:47
Unix seconds.