/** * XLayer SDK * * XLayer 链 Flap 内盘交易 SDK * * 功能特性: * - 🔗 EOA 模式换手(推荐) * - 🔄 EIP-7702 模式(新版,详见 eip7702/xlayer) * * 注意:AA 模式已废弃,请使用 EIP-7702 模式 */ export * from './constants.js'; export * from './types.js'; import { createPortalQuery } from './portal-ops.js'; import { xlayerQuickBatchSwapMerkle, xlayerCrossSwapMerkle, xlayerPureCrossSwapMerkle } from './eoa-bundle-swap.js'; import { signEoaWashVolumeTransactions } from './eoa-wash-volume.js'; export { encodeBuyCall, encodeBuyCallV3, encodeSellCall, encodeApproveCall, encodeTransferCall, PortalQuery, createPortalQuery, applySlippage, formatOkb, parseOkb, formatTokenAmount, parseTokenAmount, type PortalQueryConfig, } from './portal-ops.js'; export { signEoaWashBuyTransactions, signEoaWashSellTransactions, signEoaWashVolumeTransactions, type EoaWashPoolType, type EoaWashVolumeParams, type EoaWashVolumeResult, } from './eoa-wash-volume.js'; export { xlayerQuickBatchSwapMerkle, xlayerCrossSwapMerkle, xlayerPureCrossSwapMerkle, type XLayerPureCrossSwapParams, type XLayerPureCrossSwapResult, } from './eoa-bundle-swap.js'; export type { XLayerEoaSwapConfig, XLayerQuickBatchSwapParams, XLayerQuickBatchSwapResult, XLayerCrossSwapParams, XLayerCrossSwapResult, UserType as XLayerUserType, RouteParams as XLayerRouteParams, V2RouteParams as XLayerV2RouteParams, V3SingleRouteParams as XLayerV3SingleRouteParams, V3MultiRouteParams as XLayerV3MultiRouteParams, } from './eoa-bundle-swap-helpers.js'; export declare const xlayer: { createPortalQuery: typeof createPortalQuery; xlayerQuickBatchSwapMerkle: typeof xlayerQuickBatchSwapMerkle; xlayerCrossSwapMerkle: typeof xlayerCrossSwapMerkle; xlayerPureCrossSwapMerkle: typeof xlayerPureCrossSwapMerkle; signEoaWashVolumeTransactions: typeof signEoaWashVolumeTransactions; }; export default xlayer;