/** * EIP-7702 XLayer SDK * * 使用 EIP-7702 在 XLayer 链上实现高效的捆绑交易 * * 所有函数只返回签名后的交易,由调用方决定如何提交 * * 功能特性: * - 🚀 单笔交易完成多钱包操作 * - 💰 批量买入/卖出 * - 🔄 捆绑换手(卖出 → 多跳转账 → 买入) * - 🔗 多跳转账 * - 📊 刷量签名生成 * - 🔐 批量授权 */ export * from './constants.js'; export * from './types.js'; export { bigintToBytes, addressToBytes, hexToBytes, trimLeadingZeros, getCachedProvider, clearProviderCache, createWallet, generateRandomWallet, generateRandomWallets, signAuthorization, signAuthorizationWithNonce, signAuthorizationsBatch, buildEIP7702Transaction, estimateGasLimit, estimateGasLimitSimple, calculateProfitAmount, calculateProfitAmountByUserType, calculateProfitAmountByTxCount, getProfitRateBps, getProfitRateBpsDouble, getProfitRecipient, getDeadline, delay, type UserType, type OperationType, } from './utils.js'; export { bundleBuy, } from './bundle-buy.js'; export { bundleSell, } from './bundle-sell.js'; export { bundleSwap, bundleBatchSwap, bundleMultiSwap, type BundleMultiSwapParams, type BundleMultiSwapResult, } from './bundle-swap.js'; export { disperse, sweep, pairwiseTransfer, disperseWithHops, sweepWithHops, type DisperseParams, type SweepParams, type PairwiseTransferParams, type PairwiseTransferResult, type TransferResult, } from './multi-hop-transfer.js'; export { bundleApprove, bundleApproveMultiSpenders, checkApprovalStatus, type BundleApproveMultiSpendersParams, type BundleApproveMultiSpendersResult, } from './bundle-approve.js'; export { bundleCreateBuy, bundleCreateToDex, bundleGraduateBuy, } from './bundle-create.js'; export type { TokenInfo, CreateTokenParams, AmountMode, BundleCreateBuyParams, BundleCreateBuyResult, BundleCreateToDexParams, BundleCreateToDexResult, BundleGraduateBuyParams, BundleGraduateBuyResult, } from './types.js'; export { washVolume, bundleVolume, singleRoundVolume, makeVolume, makeVolumeWithSwap, type VolumeMode, type PoolType, type VolumeProgress, type WashVolumeParams, type WashVolumeResult, type BundleVolumeParams, type BundleVolumeResult, type SingleRoundVolumeResult, type MakeVolumeParams, type MakeVolumeSignResult, type SwapVolumeSignResult, } from './volume.js'; export declare const eip7702: { bundleBuy: (params: import("./bundle-buy.js").BundleBuyParams) => Promise; bundleSell: (params: import("./bundle-sell.js").BundleSellParams) => Promise; bundleSwap: (params: import("./bundle-swap.js").BundleSwapParams) => Promise; bundleBatchSwap: (params: import("./bundle-swap.js").BundleBatchSwapParams) => Promise; bundleMultiSwap: (params: import("./bundle-swap.js").BundleMultiSwapParams) => Promise; disperse: (params: import("./multi-hop-transfer.js").DisperseParams) => Promise; sweep: (params: import("./multi-hop-transfer.js").SweepParams) => Promise; pairwiseTransfer: (params: import("./multi-hop-transfer.js").PairwiseTransferParams) => Promise; bundleApprove: (params: import("./types.js").BundleApproveParams) => Promise; checkApprovalStatus: (walletAddresses: string[], tokenAddress: string, spenderAddress: string, config?: import("./types.js").EIP7702Config | undefined, decimals?: number | undefined) => Promise<{ address: string; allowance: string; allowanceRaw: string; isApproved: boolean; }[]>; washVolume: (params: import("./volume.js").WashVolumeParams) => Promise; bundleVolume: (params: import("./volume.js").BundleVolumeParams) => Promise; singleRoundVolume: (params: { privateKeys: string[]; tokenAddress: string; tokenDecimals?: number; buyAmountPerWallet: string; sellPercent?: number; tradeType?: import("./types.js").TradeType; routerAddress?: string; fee?: number; config?: import("./types.js").EIP7702Config; }) => Promise; makeVolume: (params: import("./volume.js").MakeVolumeParams) => Promise; makeVolumeWithSwap: (params: { sellerPrivateKey: string; buyerPrivateKey: string; tokenAddress: string; tokenDecimals?: number; sellAmount: string; hopCount?: number; tradeType?: import("./types.js").TradeType; routerAddress?: string; fee?: number; config?: import("./types.js").EIP7702Config; }) => Promise; bundleCreateBuy: (params: import("./types.js").BundleCreateBuyParams) => Promise; bundleCreateToDex: (params: import("./types.js").BundleCreateToDexParams) => Promise; bundleGraduateBuy: (params: import("./types.js").BundleGraduateBuyParams) => Promise; }; export default eip7702;