Expand description
Order types, serialization, hashing, and signing.
This module provides the full and compact order structures with Keccak256 hashing and Ed25519 signing functionality.
Structs§
- Compact
Order - Compact order format for transaction size optimization.
- Full
Order - Full order structure with signature.
Functions§
- calculate_
taker_ fill - Calculate the taker fill amount given a maker fill amount.
- derive_
condition_ id - Derive condition ID from oracle, question_id, and num_outcomes.
- is_
order_ expired - Check if an order is expired.
- orders_
can_ cross - Check if two orders can cross (prices are compatible).