Chain Configuration
Supported Chains
Chain
Chain ID
Status
Configuration Structure
ChainConfig Interface
interface ChainConfig {
// Basic info
chainId: number;
name: string;
// Contract addresses
contracts: {
optionBook: string;
optionFactory: string;
};
// Implementation addresses for option strategies
implementations: {
PUT: string;
INVERSE_CALL: string;
CALL_SPREAD: string;
PUT_SPREAD: string;
CALL_FLY: string;
PUT_FLY: string;
CALL_CONDOR: string;
PUT_CONDOR: string;
IRON_CONDOR: string;
};
// Token configurations
tokens: {
[symbol: string]: {
address: string;
symbol: string;
decimals: number;
};
};
// API endpoints
apiBaseUrl: string;
indexerApiUrl: string;
pricingApiUrl: string;
wsBaseUrl: string;
stateApiUrl: string; // RFQ state indexer
// RPC endpoints
defaultRpcUrls: string[];
}Base Mainnet Configuration (8453_v6)
Exported Functions
getChainConfigById
getTokenConfigById
getSupportedTokensById
isChainIdSupported
Price Feeds
Asset
Price Feed Address
Adding New Chains
API Endpoints
Endpoint
Purpose
URL Pattern
Last updated

