import { CHAIN_ID, TokenInfo } from '@derivation-tech/web3-core'; import { MarketType } from '../types/enum'; import { MarketConfig, PythMarketConfig, QuoteParam } from '../types'; import { CexMarket, Config, DexV2Market, Beacon, Gate, Observer, Guardian, EmergingFeederFactory, PythFeederFactory } from '../types/typechain'; export interface MarketAddress { beacon: string; market: string; feeders?: { [key in string]?: string; }; } export interface FeederFactoryAddress { beacon: string; factory: string; } export interface ContractAddress { gate: string; observer: string; config: string; guardian?: string; market: { [key in MarketType]?: MarketAddress; }; feederFactory: { [key in MarketType]?: FeederFactoryAddress; }; } export interface SynfConfig { subgraph: string; subgraphProxy: string; marketConfig: { [key in MarketType]?: MarketConfig | PythMarketConfig; }; quotesParam: { [key in string]?: QuoteParam; }; contractAddress: ContractAddress; instrumentProxyByteCode: string; tokenInfo?: TokenInfo[]; } export interface QuoteParamJson { tradingFeeRatio: number; stabilityFeeRatioParam: string; protocolFeeRatio: number; qtype: number; minMarginAmount: string; tip: string; } export interface SynfConfigJson { subgraph: string; subgraphProxy: string; marketConfig: { [key in MarketType]?: MarketConfig; }; quotesParam: { [key in string]?: QuoteParamJson; }; contractAddress: ContractAddress; instrumentProxyByteCode: string; } export interface SynFuturesV3Contracts { config: Config; gate: Gate; observer: Observer; guardian?: Guardian; marketContracts: { [key in MarketType]?: MarketContracts; }; feederFactoryContracts: { [key in MarketType]?: FeederFactoryContracts; }; } export interface MarketContracts { market: CexMarket | DexV2Market; beacon: Beacon; } export interface FeederFactoryContracts { factory: EmergingFeederFactory | PythFeederFactory; beacon: Beacon; } export declare class ConfigManager { static getSynfConfig(chainId: CHAIN_ID): SynfConfig; private static mapSynfConfig; static mapQuotesParam(quotesParams: { [key in string]?: QuoteParamJson; }): { [key in string]?: QuoteParam; }; }