/** * ENI IRO Factory — 创建项目 (部署代币 + 资金池) * * ENI 使用 EIP-1559 (type 2) 交易,与 BSC (type 0) 不同 */ import { JsonRpcProvider } from 'ethers'; import type { IroCreateParams, IroCreateProjectResult, IroQueryConfig, IroFactoryTokenInfo } from './types.js'; export declare class IroFactoryQuery { private provider; private factory; constructor(config?: IroQueryConfig); getTokenByProjectId(projectId: bigint): Promise; getPool(tokenAddress: string): Promise; allToken(index: bigint): Promise; allTokensLength(): Promise; tokenInfo(tokenAddress: string): Promise; getProjectInfo(projectId: bigint): Promise<{ tokenAddress: string; poolAddress: string; }>; get providerInstance(): JsonRpcProvider; } export declare function encodeCreateProjectCall(params: import('./types.js').IroCreateProjectParams): string; export declare function createProject(params: IroCreateParams): Promise; export declare function parseCreateProjectEvent(receipt: { logs: Array<{ topics: string[]; data: string; }>; }): { projectId: bigint; tokenAddress: string; poolAddress: string; coinAddr: string; allTokensLength: bigint; } | null;