Skip to main content

Module order

Module order 

Source
Expand description

Predict.fun order signing (EIP-712) using alloy.

Includes order structs, amount calculation, exchange address mapping, and signing via PredictOrderSigner.

Structs§

PredictCreateOrderData
PredictCreateOrderRequest
PredictOrder
Contract order payload shape used by Predict REST API.
PredictOrderSigner
Thin order signer wrapper backed by alloy PrivateKeySigner.
PredictOrderSol
SignedPredictOrder
Signed order shape expected under data.order in POST /orders.

Enums§

PredictOutcome
Predict market outcome side.
PredictSide
Predict order side.
PredictSignatureType
Signature type from Predict SDK constants.
PredictStrategy
Predict order strategy in API payload.

Constants§

BNB_MAINNET_CHAIN_ID
BNB_TESTNET_CHAIN_ID
PREDICT_PROTOCOL_NAME
PREDICT_PROTOCOL_VERSION
ZERO_ADDRESS

Functions§

predict_exchange_address
Resolve the verifying contract used in EIP-712 domain.
predict_limit_order_amounts
Limit order amount calculator ported from Predict TypeScript SDK logic.