/** * EIP-7702 批量买入 * * 在一笔交易中完成多个钱包的买入操作 * 支持 FLAP 内盘、V2 和 V3 三种交易类型 * * 只生成签名,由调用方决定如何提交 */ import type { BundleBuyParams as BaseBundleBuyParams, BundleBuyResult } from './types.js'; import { type UserType } from './utils.js'; export interface BundleBuyParams extends BaseBundleBuyParams { /** 用户类型(影响利润率) */ userType?: UserType; } /** * 批量买入 - 生成签名后的交易 * * @param params 买入参数 * @returns 签名后的交易和元数据 * * @example * // FLAP 内盘买入 * const result = await bundleBuy({ * mainPrivateKey: '0x...', * privateKeys: ['0x...', '0x...'], * buyAmounts: ['0.01', '0.02'], * tokenAddress: '0x...', * tradeType: 'FLAP', * }); * * @example * // V2 买入 * const result = await bundleBuy({ * mainPrivateKey: '0x...', * privateKeys: ['0x...', '0x...'], * buyAmounts: ['0.01', '0.02'], * tokenAddress: '0x...', * tradeType: 'V2', * }); * * @example * // V3 买入(默认) * const result = await bundleBuy({ * mainPrivateKey: '0x...', * privateKeys: ['0x...', '0x...'], * buyAmounts: ['0.01', '0.02'], * tokenAddress: '0x...', * tradeType: 'V3', * fee: 2500, // 0.25% * }); */ export declare function bundleBuy(params: BundleBuyParams): Promise;