/** * bundle-create 内部工具函数 * * 供 bundle-create-buy / bundle-create-to-dex / bundle-graduate-buy 共享使用, * 不作为公共 API 导出。 */ import { Interface } from 'ethers'; import type { Call3Value } from './types.js'; /** * 将 lpFeeProfile 转换为 V3 fee */ export declare function lpFeeProfileToV3Fee(lpFeeProfile: number | undefined): number; /** * 编码创建代币调用 V2 */ export declare function encodeCreateCallV2(params: { name: string; symbol: string; meta: string; dexThresh: number; salt: string; taxRate: number; migratorType: number; quoteToken: string; quoteAmt: bigint; beneficiary: string; permitData: string; }): string; /** * 编码创建代币调用 V3 */ export declare function encodeCreateCallV3(params: { name: string; symbol: string; meta: string; dexThresh: number; salt: string; taxRate: number; migratorType: number; quoteToken: string; quoteAmt: bigint; beneficiary: string; permitData: string; extensionID: string; extensionData: string; }): string; /** * 编码创建代币调用 V4 */ export declare function encodeCreateCallV4(params: { name: string; symbol: string; meta: string; dexThresh: number; salt: string; taxRate: number; migratorType: number; quoteToken: string; quoteAmt: bigint; beneficiary: string; permitData: string; extensionID: string; extensionData: string; dexId: number; lpFeeProfile: number; }): string; /** * 编码创建代币调用 V5(Tax Token V2 高级税收分配) */ export declare function encodeCreateCallV5(params: { name: string; symbol: string; meta: string; dexThresh: number; salt: string; taxRate: number; migratorType: number; quoteToken: string; quoteAmt: bigint; beneficiary: string; permitData: string; extensionID: string; extensionData: string; dexId: number; lpFeeProfile: number; taxDuration: bigint; antiFarmerDuration: bigint; mktBps: number; deflationBps: number; dividendBps: number; lpBps: number; minimumShareBalance: bigint; }): string; /** * 编码内盘买入调用 * * 根据是否需要 extensionData 选择使用 swapExactInput 或 swapExactInputV3 * - V2 代币:使用 swapExactInput(无 extensionData) * - V3/V4 代币:使用 swapExactInputV3(支持 extensionData) */ export declare function encodeFlapBuyCall(tokenAddress: string, inputAmount: bigint, useV3OrV4?: boolean, extensionData?: string): string; /** * 编码外盘 V3 买入调用 */ export declare function encodeV3BuyCall(tokenAddress: string, fee: number, recipient: string, deadline: number, amountIn: bigint): string; /** * 编码外盘 V2 买入调用 */ export declare function encodeV2BuyCall(tokenAddress: string, recipient: string, deadline: number): string; /** * 构建利润转账调用 * ✅ 使用 transferAmount 从钱包余额转出,而不是 msg.value */ export declare function buildProfitCall(walletAddress: string, profitAmount: bigint, profitRecipient: string, delegateInterface: Interface): Call3Value;