four-flap-meme-sdk
Version:
SDK for Flap bonding curve and four.meme TokenManager
29 lines (28 loc) • 1.46 kB
JavaScript
/**
* four.meme Bundle 交易方法(Merkle 版本)
* 使用 Merkle.io Bundle 服务实现原子化交易
*/
// 配置和类型
export * from './config.js';
export * from './types.js';
// 核心交易方法
export { createTokenWithBundleBuyMerkle, batchBuyWithBundleMerkle, batchSellWithBundleMerkle } from './core.js';
// 私有交易方法
export { fourPrivateBuyMerkle, fourPrivateSellMerkle, fourBatchPrivateBuyMerkle, fourBatchPrivateSellMerkle } from './private.js';
// 工具方法
export { disperseWithBundleMerkle, sweepWithBundleMerkle } from './utils.js';
// PancakeSwapProxy 代理交易方法
export { fourPancakeProxyBatchBuyMerkle, fourPancakeProxyBatchSellMerkle, approveFourPancakeProxy, approveFourPancakeProxyBatch } from './pancake-proxy.js';
// TokenManager 授权方法
export { approveFourTokenManagerBatch } from './approve-tokenmanager.js';
// Bundle提交方法(服务器端使用)
export {
// Merkle 提交方法
submitBundleToMerkle, submitMultipleBundles, submitMultipleBundlesParallel,
// ✅ BlockRazor 提交方法
submitBundleToBlockRazor, submitMultipleBundlesToBlockRazor, submitMultipleBundlesToBlockRazorParallel,
// ✅ Monad 等链的逐笔广播方法
submitDirectToRpc, submitDirectToRpcSequential, // ✅ 新增:顺序广播并等待确认(用于多跳)
submitDirectToRpcParallel } from './submit.js';
// 先买后卖换手方法
export { fourBundleBuyFirstMerkle } from './swap-buy-first.js';