/** * 公共 ABI 定义 * * 将重复的 ABI 提取到这里,统一管理 */ /** 完整 ERC20 ABI */ export declare const ERC20_ABI: string[]; /** 精简 ERC20 ABI(余额查询 + decimals) */ export declare const ERC20_BALANCE_ABI: string[]; /** ERC20 授权相关 ABI */ export declare const ERC20_ALLOWANCE_ABI: string[]; export declare const MULTICALL3_ABI: string[]; /** V2 Router 完整 ABI */ export declare const V2_ROUTER_ABI: string[]; /** V2 Router 精简 ABI(只用于报价) */ export declare const V2_ROUTER_QUOTE_ABI: string[]; /** V3 SwapRouter02 ABI(新版,deadline 在 multicall 中传递) */ export declare const V3_ROUTER02_ABI: (string | { inputs: { components: { name: string; type: string; }[]; name: string; type: string; }[]; name: string; outputs: { name: string; type: string; }[]; stateMutability: string; type: string; })[]; /** V3 SwapRouter 旧版 ABI(deadline 在 struct 内部) */ export declare const V3_ROUTER_LEGACY_ABI: (string | { inputs: { components: { name: string; type: string; }[]; name: string; type: string; }[]; name: string; outputs: { name: string; type: string; }[]; stateMutability: string; type: string; })[]; /** * SwapRouter02 的 V2 方法 ABI * * 注意:SwapRouter02 的 V2 方法只有 token-to-token 交换 * 没有 swapExactETHForTokens / swapExactTokensForETH * 必须通过 multicall 组合 wrapETH/unwrapWETH9 来处理原生代币 */ export declare const SWAP_ROUTER02_V2_ABI: string[]; /** V3 QuoterV2 ABI */ export declare const V3_QUOTER_ABI: { inputs: { components: { name: string; type: string; }[]; name: string; type: string; }[]; name: string; outputs: { name: string; type: string; }[]; stateMutability: string; type: string; }[]; export declare const V2_FACTORY_ABI: string[]; export declare const V2_PAIR_ABI: string[]; export declare const V3_FACTORY_ABI: string[]; export declare const V3_POOL_ABI: string[]; export declare const FLAP_PORTAL_ABI: string[]; export declare const TM2_ABI: string[]; export declare const HELPER3_ABI: string[];