@zkp2p/contracts-v2/constants module provides network-specific protocol parameters and configuration values.
Import Constants
Import constants for a specific network:Network-Specific Constants
Constants vary by network:Available Constants
Token Addresses
Address of the USDC token contract on the network
Protocol Parameters
Time in seconds before an intent expires
Maximum number of intents allowed per deposit
Protocol fee charged to takers (in basis points)
Minimum amount threshold for escrow dust collection
Admin Addresses
Address of the protocol multisig wallet
Address that receives protocol taker fees
Address that receives dust from escrow contract
Verifier Addresses
Address of the witness service for off-chain verification
Address of the zkTLS attestor service
Using Constants in Your Code
Calculate Fees
Check Intent Expiration
Validate Deposit Intent Count
Import All Constants
Import all constants as a single object:Direct JSON Import
For bundle size optimization:Type Definitions
Constants are strongly typed:Next Steps
Payment Methods
Work with payment method configurations
Utilities
Use protocol utility functions