Expand description
cow-primitives — Layer 0 foundational constants for the CoW Protocol SDK.
This crate sits at the bottom of the workspace DAG and has no internal dependencies. It exposes:
- Numeric constants (
ZERO,ONE,MAX_UINT256,ONE_HUNDRED_BPS, …) - The zero address and zero hash helpers
- Near Intents attestation constants
Protocol enums (OrderKind, SigningScheme, TokenBalance, …) live in
cow-types (Layer 1) because their
TryFrom<&str> impls depend on cow-errors.
Constants§
- ATTESTATION_
PREFIX_ CONST - Near Intents attestation prefix constant.
- ATTESTATOR_
ADDRESS - Near Intents attestator address.
- ATTESTION_
VERSION_ BYTE - Near Intents attestation version byte.
- HUNDRED_
THOUSANDS - Scale factor: 100 000.
- LIMIT_
CONCURRENT_ REQUESTS - Maximum concurrent requests to the
CoWProtocol API. - MAX_
UINT32 - Maximum
u32value as aU256(2^32 - 1 = 4 294 967 295). - MAX_
UINT256 - Maximum
U256value (2^256 - 1). - ONE
U256one.- ONE_
HUNDRED_ BPS - One hundred basis points expressed as a
U256(100 * 100 = 10 000). - ZERO
U256zero.- ZERO_
ADDRESS - The zero address (
0x0000…0000). - ZERO_
HASH - The 32-byte zero hash.