four-flap-meme-sdk 1.5.67 → 1.5.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1469,14 +1469,13 @@ export class BundleExecutor {
1469
1469
  // ✅ 并行构建和签名所有外盘买入 UserOps
1470
1470
  const signedDexBuyOps = await mapWithConcurrency(dexBuyData, 5, async (data) => {
1471
1471
  const { wallet, info, buyWei } = data;
1472
- // AA 模式外盘:使用 executeBatch Approve + Swap 合并为一个 UserOp
1473
- const approveData = encodeApproveCall(POTATOSWAP_V2_ROUTER);
1472
+ // 外盘买入:用 OKB 买代币,不需要 approve,直接调用 Router swap 方法
1474
1473
  const swapData = encodeSwapExactETHForTokensSupportingFee(0n, [WOKB, tokenAddress], info.sender, deadline);
1475
- const batchCallData = encodeExecuteBatch([tokenAddress, POTATOSWAP_V2_ROUTER], [0n, buyWei], [approveData, swapData]);
1474
+ const dexBuyCallData = encodeExecute(POTATOSWAP_V2_ROUTER, buyWei, swapData);
1476
1475
  const dexBuyOpRes = await aaManager.buildUserOpWithFixedGas({
1477
1476
  ownerWallet: wallet,
1478
1477
  sender: info.sender,
1479
- callData: batchCallData,
1478
+ callData: dexBuyCallData,
1480
1479
  nonce: nonceMap.next(info.sender),
1481
1480
  initCode: '0x', // HandleOps1 已部署
1482
1481
  deployed: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "four-flap-meme-sdk",
3
- "version": "1.5.67",
3
+ "version": "1.5.68",
4
4
  "description": "SDK for Flap bonding curve and four.meme TokenManager",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",