polynode 0.13.11

Rust SDK for the PolyNode API — real-time Polymarket data
Documentation
//! Contract addresses and constants for Polymarket on Polygon (chain 137).

pub const CHAIN_ID: u64 = 137;
pub const CLOB_HOST: &str = "https://clob.polymarket.com";
pub const RELAYER_HOST: &str = "https://relayer-v2.polymarket.com";
pub const DEFAULT_RPC: &str = "https://polygon-bor-rpc.publicnode.com";
pub const DEFAULT_COSIGNER: &str = "https://trade.polynode.dev";

// Exchange contracts
pub const CTF_EXCHANGE: &str = "0x4bFb41d5B3570DeFd03C39a9A4D8dE6Bd8B8982E";
pub const NEG_RISK_CTF_EXCHANGE: &str = "0xC5d563A36AE78145C45a50134d48A1215220f80a";
pub const NEG_RISK_ADAPTER: &str = "0xd91E80cF2E7be2e162c6513ceD06f1dD0dA35296";

// Token contracts
pub const USDC: &str = "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174";
pub const CTF: &str = "0x4D97DCd97eC945f40cF65F87097ACe5EA0476045";

// Safe derivation
pub const SAFE_FACTORY: &str = "0xaacFeEa03eb1561C4e67d661e40682Bd20E3541b";
pub const SAFE_INIT_CODE_HASH: &str =
    "0x2bce2127ff07fb632d16c8347c4ebf501f4841168bed00d9e6ef715ddb6fcecf";
pub const SAFE_MULTISEND: &str = "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761";

// Proxy derivation
pub const PROXY_FACTORY: &str = "0xaB45c5A4B0c941a2F231C04C3f49182e1A254052";
pub const PROXY_INIT_CODE_HASH: &str =
    "0xd21df8dc65880a8606f09fe0ce3df9b8869287ab0b058be05aa9e8af6330a00b";

// Deposit wallet derivation (Solady ERC-1967 clones)
pub const DEPOSIT_WALLET_FACTORY: &str = "0x00000000000Fb5C9ADea0298D729A0CB3823Cc07";
pub const DEPOSIT_WALLET_IMPL: &str = "0x58CA52ebe0DadfdF531Cde7062e76746de4Db1eB";

// Spender contracts that need approval
pub const SPENDERS: [&str; 3] = [CTF_EXCHANGE, NEG_RISK_CTF_EXCHANGE, NEG_RISK_ADAPTER];

// Fee Escrow
// V1 (USDC.e collateral, paired with the V1 CLOB)
pub const FEE_ESCROW_ADDRESS: &str = "0xa11D28433B79D0A88F3119b16A090075752258EA";
// V2 (pUSD collateral, paired with the V2 CLOB). Deployed 2026-04-24.
pub const FEE_ESCROW_ADDRESS_V2: &str = "0x3A43D88ef8Aae4dF5a50B3abf67122CAAeEF7c9F";

// Metadata cache TTL (5 minutes)
pub const META_TTL_SECONDS: f64 = 300.0;