Expand description
EIP-712 order signing for the Polymarket CTF Exchange.
Orders on Polymarket are signed typed structured data (EIP-712) against the CTF Exchange contract on Polygon. Two exchange contracts exist:
CTF_EXCHANGE: Standard binary markets.NEG_RISK_CTF_EXCHANGE: Negative-risk (multi-outcome) markets.
Both share the same EIP-712 domain name and version; only the
verifyingContract differs.
This module also owns the CLOB V2 contract identities and ordered on-chain
approval plan (approval_plan) used by the set-allowances binary.
Structs§
- Clob
Auth - Order
- Order
Signer - EIP-712 order signer for the Polymarket CTF Exchange.
Enums§
- Polymarket
Approval - One transaction in the Polymarket approval plan.
Constants§
- COLLATERAL_
APPROVAL_ TARGETS - Complete spender set requiring collateral approval for Polymarket CLOB V2 orders.
- CONDITIONAL_
TOKENS - Conditional Tokens Framework contract address on Polygon mainnet.
- CTF_
EXCHANGE - CTF Exchange contract address on Polygon mainnet (CLOB V2).
- NEG_
RISK_ CTF_ COLLATERAL_ ADAPTER - Neg Risk CTF collateral adapter address on Polygon mainnet.
- NEG_
RISK_ CTF_ EXCHANGE - Neg Risk CTF Exchange contract address on Polygon mainnet (CLOB V2).
- POLYMARKET_
COLLATERAL_ TOKEN - Polymarket pUSD collateral token contract address on Polygon mainnet.
Functions§
- approval_
plan - Returns the ordered approval plan for Polymarket CLOB V2.
- order_
hash - Computes the EIP-712 signing hash used by Polymarket as the order ID.
- sign_
clob_ auth - Signs a ClobAuth EIP-712 message for L1 API authentication.