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