Skip to main content

Module orders

Module orders 

Source
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§

CompactOrder
Compact order format for transaction size optimization.
FullOrder
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).