/** * EIP-7702 XLayer SDK * * 使用 EIP-7702 在 XLayer 链上实现高效的捆绑交易 * * 所有函数只返回签名后的交易,由调用方决定如何提交 * * 功能特性: * - 🚀 单笔交易完成多钱包操作 * - 💰 批量买入/卖出 * - 🔄 捆绑换手(卖出 → 多跳转账 → 买入) * - 🔗 多跳转账 * - 📊 刷量签名生成 * - 🔐 批量授权 */ export * from './constants.js'; export * from './types.js'; export * from './flat-aliases.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'; import { bundleBuy } from './bundle-buy.js'; import { bundleSell } from './bundle-sell.js'; import { bundleSwap, bundleBatchSwap, bundleMultiSwap } from './bundle-swap.js'; import { disperse, sweep, pairwiseTransfer } from './multi-hop-transfer.js'; import { bundleApprove, checkApprovalStatus } from './bundle-approve.js'; import { washVolume, bundleVolume, singleRoundVolume, makeVolume, makeVolumeWithSwap } from './volume.js'; import { bundleCreateBuy, bundleCreateToDex, bundleGraduateBuy } from './bundle-create.js'; export declare const eip7702: { bundleBuy: typeof bundleBuy; bundleSell: typeof bundleSell; bundleSwap: typeof bundleSwap; bundleBatchSwap: typeof bundleBatchSwap; bundleMultiSwap: typeof bundleMultiSwap; disperse: typeof disperse; sweep: typeof sweep; pairwiseTransfer: typeof pairwiseTransfer; bundleApprove: typeof bundleApprove; checkApprovalStatus: typeof checkApprovalStatus; washVolume: typeof washVolume; bundleVolume: typeof bundleVolume; singleRoundVolume: typeof singleRoundVolume; makeVolume: typeof makeVolume; makeVolumeWithSwap: typeof makeVolumeWithSwap; bundleCreateBuy: typeof bundleCreateBuy; bundleCreateToDex: typeof bundleCreateToDex; bundleGraduateBuy: typeof bundleGraduateBuy; }; export default eip7702;