Skip to content
docs

CowIntent

CowIntent = { chainId: number; key: string; kind: "quote"; } | { chainId: number; kind: "order"; uid: string; } | { chainId: number; data: EthFlowData; kind: "ethflow"; }

Defined in: protocol-swap2-cow/src/provider.ts:205

A status id of this provider, parsed.

{ chainId: number; key: string; kind: "quote"; }

A typed-order quote this instance priced (lives in memory until it is placed).


{ chainId: number; kind: "order"; uid: string; }

An order the orderbook accepted.


{ chainId: number; data: EthFlowData; kind: "ethflow"; }

An eth-flow order: its data rides in the id, so a refund needs nothing else.