/** * Four.meme 内盘捆绑换手(Merkle Bundle)- 先买后卖 * * 功能:钱包B先买入代币 → 钱包A卖出相同数量 → 原子执行 */ import { CommonBundleConfig } from '../../../utils/bundle-helpers.js'; import { FourSignConfig, UserType } from './types.js'; import type { GeneratedWallet } from '../../../utils/wallet.js'; export interface FourBuyFirstSignConfig extends FourSignConfig { reserveGasBNB?: number; userType?: UserType; } export interface FourBuyFirstConfig extends CommonBundleConfig { apiKey: string; customRpcUrl?: string; bundleBlockOffset?: number; reserveGasBNB?: number; waitForConfirmation?: boolean; waitTimeoutMs?: number; } export interface FourBundleBuyFirstSignParams { buyerPrivateKey?: string; buyerPrivateKeys?: string[]; buyerFunds?: string; buyerFundsPercentage?: number; sellerPrivateKey?: string; sellerPrivateKeys?: string[]; tokenAddress: string; config: FourBuyFirstSignConfig; buyCount?: number; sellCount?: number; } export interface FourBundleBuyFirstParams { buyerPrivateKey: string; buyerFunds?: string; buyerFundsPercentage?: number; sellerPrivateKey: string; tokenAddress: string; config: FourBuyFirstConfig; } /** ✅ BuyFirst 结果(简化版) */ export type FourBuyFirstResult = { signedTransactions: string[]; profitHopWallets?: GeneratedWallet[]; metadata?: { buyerAddress: string; sellerAddress: string; buyAmount: string; sellAmount: string; profitAmount?: string; buyCount?: number; sellCount?: number; buyAmounts?: string[]; sellAmounts?: string[]; }; }; export declare function fourBundleBuyFirstMerkle(params: FourBundleBuyFirstSignParams): Promise;