1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162(** Shared constants for Polymarket API clients.
This module centralizes magic numbers and configuration values used across
the codebase, providing documentation and a single source of truth. *)(** {1 Polygon Network} *)(** Polygon (formerly Matic) mainnet chain ID.
@see <https://chainlist.org/chain/137> Polygon Mainnet *)letpolygon_chain_id=137(** {1 Token Decimals} *)(** USDC and CTF tokens use 6 decimal places on Polygon. This scale factor
converts between human-readable amounts and on-chain representation. For
example, 1.0 USDC = 1_000_000 on-chain units. *)lettoken_scale=1_000_000.0(** Number of decimal places for USDC/CTF tokens. *)lettoken_decimals=6(** {1 Contract Addresses} *)(** Zero address used for open orders (no specific taker). *)letzero_address="0x0000000000000000000000000000000000000000"(** CTF Exchange contract address on Polygon mainnet.
@see <https://polygonscan.com/address/0x4bFb41d5B3570DeFd03C39a9A4D8dE6Bd8B8982E>
*)letctf_exchange_address="0x4bFb41d5B3570DeFd03C39a9A4D8dE6Bd8B8982E"(** {1 Time Durations} *)(** One year in seconds (365 days). Used as default order expiration. *)letone_year_seconds=31_536_000.0(** {1 WebSocket Configuration} *)(** RTDS (Real-Time Data Socket) recommended ping interval in seconds. Per
Polymarket documentation, clients should ping every 5 seconds. *)letrtds_ping_interval=5.0(** Default buffer size for WebSocket message streams. Allows buffering up to
1000 messages before backpressure. *)letmessage_buffer_size=1000(** {1 EIP-712 Domain Constants} *)(** CLOB authentication domain name for EIP-712 signing. *)letclob_domain_name="ClobAuthDomain"(** CLOB authentication domain version. *)letclob_domain_version="1"(** The attestation message signed for CLOB authentication. *)letauth_message_text="This message attests that I control the given wallet"(** CTF Exchange domain name for order signing. *)letctf_exchange_domain_name="Polymarket CTF Exchange"(** CTF Exchange domain version. *)letctf_exchange_domain_version="1"