Expand description
cow-ethflow — Layer 2 EthFlow contract helpers for the CoW Protocol SDK.
Encode createOrder calldata for native-currency orders.
When a user wants to sell ETH (or another chain’s native currency)
instead of an ERC-20, the order is submitted through the EthFlow
contract rather than the standard GPv2Settlement flow. This module
provides the types and encoding functions for that path.
§Key items
| Item | Purpose |
|---|---|
EthFlowOrderData | Parameters for a native-currency sell order |
EthFlowTransaction | Ready-to-send transaction (to, data, value) |
encode_eth_flow_create_order | ABI-encode createOrder(...) calldata |
build_eth_flow_transaction | Build the complete transaction |
is_eth_flow_order_data | Check if on-chain data indicates an EthFlow order |
Structs§
- EthFlow
Order Data - Parameters for a native-currency sell order submitted through the
EthFlowcontract. - EthFlow
Transaction - Ready-to-send transaction for submitting a native-currency order.
Functions§
- build_
eth_ flow_ transaction - Build a complete
EthFlowTransactionforcontract_address. - encode_
eth_ flow_ create_ order - Encode the
EthFlow.createOrder(order, quoteId)calldata. - is_
eth_ flow_ order_ data - Check whether on-chain data is present, indicating an
EthFloworder.