four-flap-meme-sdk 1.1.91 → 1.1.92

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.
@@ -3,6 +3,7 @@ import { MerkleClient } from '../../clients/merkle.js';
3
3
  import { NonceManager, getOptimizedGasPrice } from '../../utils/bundle-helpers.js';
4
4
  import { ADDRESSES } from '../../utils/constants.js';
5
5
  import { getTxType, getGasPriceConfig } from './config.js';
6
+ import { batchCheckAllowances } from '../../utils/erc20.js';
6
7
  // ==================== ERC20 ABI ====================
7
8
  const ERC20_ABI = [
8
9
  'function approve(address spender, uint256 amount) returns (bool)',
@@ -33,7 +34,6 @@ export async function approveFourTokenManagerBatch(params) {
33
34
  const wallets = privateKeys.map(k => new Wallet(k, provider));
34
35
  const amountsBigInt = amounts.map(a => a === 'max' ? ethers.MaxUint256 : ethers.parseUnits(a, decimals));
35
36
  // 检查现有授权,过滤掉已经足够的
36
- const { batchCheckAllowances } = await import('../../utils/erc20.js');
37
37
  const allowances = await batchCheckAllowances(provider, tokenAddress, wallets.map(w => w.address), tmAddr);
38
38
  // 只授权不足的
39
39
  const APPROVAL_THRESHOLD = ethers.MaxUint256 / 2n;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "four-flap-meme-sdk",
3
- "version": "1.1.91",
3
+ "version": "1.1.92",
4
4
  "description": "SDK for Flap bonding curve and four.meme TokenManager",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",