Skip to content
docs

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.

appData: string

Defined in: protocol-swap2-cow/src/order.ts:49

keccak256 of the appData document.


buyAmount: string

Defined in: protocol-swap2-cow/src/order.ts:45

Base units, decimal: the least the receiver accepts.


buyToken: string

Defined in: protocol-swap2-cow/src/order.ts:40


buyTokenBalance: "erc20"

Defined in: protocol-swap2-cow/src/order.ts:55


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: false

Defined in: protocol-swap2-cow/src/order.ts:53


receiver: string

Defined in: protocol-swap2-cow/src/order.ts:41


sellAmount: string

Defined in: protocol-swap2-cow/src/order.ts:43

Base units, decimal.


sellToken: string

Defined in: protocol-swap2-cow/src/order.ts:39


sellTokenBalance: "erc20"

Defined in: protocol-swap2-cow/src/order.ts:54


validTo: number

Defined in: protocol-swap2-cow/src/order.ts:47

Unix seconds.