four-flap-meme-sdk 2.0.0 → 2.1.0
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.
- package/dist/__tests__/subpath-exports.test.js +34 -0
- package/dist/chains/index.d.ts +13 -0
- package/dist/chains/index.js +13 -0
- package/dist/chains/xlayer/eip7702/index.d.ts +2 -0
- package/dist/flap/index.d.ts +10 -0
- package/dist/flap/index.js +8 -0
- package/dist/shared/constants/index.d.ts +2 -0
- package/dist/shared/index.d.ts +2 -0
- package/package.json +66 -1
- package/dist/chains/bsc/four/disperse.d.ts +0 -12
- package/dist/chains/bsc/four/disperse.js +0 -470
- package/dist/chains/bsc/four/pairwise.d.ts +0 -7
- package/dist/chains/bsc/four/pairwise.js +0 -308
- package/dist/chains/bsc/four/submit/blockrazor.d.ts +0 -18
- package/dist/chains/bsc/four/submit/blockrazor.js +0 -86
- package/dist/chains/bsc/four/submit/direct.d.ts +0 -66
- package/dist/chains/bsc/four/submit/direct.js +0 -452
- package/dist/chains/bsc/four/submit/helpers.d.ts +0 -18
- package/dist/chains/bsc/four/submit/helpers.js +0 -57
- package/dist/chains/bsc/four/submit/index.d.ts +0 -12
- package/dist/chains/bsc/four/submit/index.js +0 -11
- package/dist/chains/bsc/four/submit/merkle.d.ts +0 -18
- package/dist/chains/bsc/four/submit/merkle.js +0 -74
- package/dist/chains/bsc/four/submit/types.d.ts +0 -143
- package/dist/chains/bsc/four/swap/index.d.ts +0 -32
- package/dist/chains/bsc/four/swap/index.js +0 -829
- package/dist/chains/bsc/four/swap/types.d.ts +0 -70
- package/dist/chains/bsc/four/swap/types.js +0 -1
- package/dist/chains/bsc/four/sweep.d.ts +0 -13
- package/dist/chains/bsc/four/sweep.js +0 -788
- package/dist/chains/bsc/four/utils/index.d.ts +0 -20
- package/dist/chains/bsc/four/utils/index.js +0 -1558
- package/dist/chains/bsc/four/utils/types.d.ts +0 -1
- package/dist/chains/bsc/four/utils/types.js +0 -1
- package/dist/chains/bsc/pancake/bundle-buy-first/index.d.ts +0 -8
- package/dist/chains/bsc/pancake/bundle-buy-first/index.js +0 -907
- package/dist/chains/bsc/pancake/bundle-buy-first/types.d.ts +0 -73
- package/dist/chains/bsc/pancake/bundle-buy-first/types.js +0 -1
- package/dist/chains/bsc/pancake/bundle-swap/helpers.d.ts +0 -102
- package/dist/chains/bsc/pancake/bundle-swap/helpers.js +0 -572
- package/dist/chains/bsc/pancake/bundle-swap/index.d.ts +0 -50
- package/dist/chains/bsc/pancake/bundle-swap/index.js +0 -1066
- package/dist/chains/bsc/pancake/bundle-swap/types.d.ts +0 -202
- package/dist/chains/bsc/pancake/bundle-swap/types.js +0 -3
- package/dist/chains/xlayer/eip7702/bundle-swap/index.d.ts +0 -72
- package/dist/chains/xlayer/eip7702/bundle-swap/index.js +0 -921
- package/dist/chains/xlayer/eip7702/bundle-swap/types.d.ts +0 -65
- package/dist/chains/xlayer/eip7702/bundle-swap/types.js +0 -1
- package/dist/chains/xlayer/eip7702/multi-hop-transfer/index.d.ts +0 -128
- package/dist/chains/xlayer/eip7702/multi-hop-transfer/index.js +0 -857
- package/dist/chains/xlayer/eip7702/multi-hop-transfer/types.d.ts +0 -85
- package/dist/chains/xlayer/eip7702/multi-hop-transfer/types.js +0 -1
- package/dist/chains/xlayer/eip7702/volume/index.d.ts +0 -96
- package/dist/chains/xlayer/eip7702/volume/index.js +0 -793
- package/dist/chains/xlayer/eip7702/volume/types.d.ts +0 -124
- package/dist/chains/xlayer/eip7702/volume/types.js +0 -1
- package/dist/chains/xlayer/eoa/types-core.d.ts +0 -363
- package/dist/chains/xlayer/eoa/types-core.js +0 -53
- package/dist/chains/xlayer/eoa/types-create.d.ts +0 -413
- package/dist/chains/xlayer/eoa/types-create.js +0 -9
- package/dist/chains/xlayer/eoa/types-volume.d.ts +0 -209
- package/dist/chains/xlayer/eoa/types-volume.js +0 -13
- package/dist/dex/direct-router/index.d.ts +0 -70
- package/dist/dex/direct-router/index.js +0 -1410
- package/dist/dex/direct-router/types.d.ts +0 -81
- package/dist/dex/direct-router/types.js +0 -1
- package/dist/shared/abis/TaxToken.json +0 -969
- package/dist/shared/abis/TokenManager.json +0 -836
- package/dist/shared/abis/TokenManager2.json +0 -136
- package/dist/shared/abis/TokenManagerHelper3.json +0 -993
- package/dist/shared/abis 2/TaxToken.json +0 -105
- package/dist/shared/abis 2/TokenManager.json +0 -836
- package/dist/shared/abis 2/TokenManager2.json +0 -60
- package/dist/shared/abis 2/TokenManagerHelper3.json +0 -993
- package/dist/shared/abis 2/common.d.ts +0 -85
- package/dist/shared/abis 2/common.js +0 -254
- package/dist/shared/abis 2/index.d.ts +0 -8
- package/dist/shared/abis 2/index.js +0 -8
- package/dist/shared/clients 2/blockrazor.d.ts +0 -314
- package/dist/shared/clients 2/blockrazor.js +0 -596
- package/dist/shared/clients 2/club48.d.ts +0 -154
- package/dist/shared/clients 2/club48.js +0 -331
- package/dist/shared/clients 2/emitservice.d.ts +0 -47
- package/dist/shared/clients 2/emitservice.js +0 -44
- package/dist/shared/clients 2/four.d.ts +0 -132
- package/dist/shared/clients 2/four.js +0 -281
- package/dist/shared/clients 2/merkle.d.ts +0 -210
- package/dist/shared/clients 2/merkle.js +0 -400
- package/dist/shared/flap/__tests__/curve.test.d.ts +0 -1
- package/dist/shared/flap/__tests__/curve.test.js +0 -85
- package/dist/shared/flap/portal/index.d.ts +0 -12
- package/dist/shared/flap/portal/index.js +0 -11
- package/dist/shared/flap/portal/portal.d.ts +0 -47
- package/dist/shared/flap/portal/portal.js +0 -218
- package/dist/shared/flap/portal/types.d.ts +0 -227
- package/dist/shared/flap/portal/types.js +0 -80
- package/dist/shared/flap/portal/writer.d.ts +0 -121
- package/dist/shared/flap/portal/writer.js +0 -265
- package/dist/shared/flap/portal-bundle-merkle/core/index.d.ts +0 -18
- package/dist/shared/flap/portal-bundle-merkle/core/index.js +0 -938
- package/dist/shared/flap/portal-bundle-merkle/core/types.d.ts +0 -1
- package/dist/shared/flap/portal-bundle-merkle/core/types.js +0 -1
- package/dist/shared/flap/portal-bundle-merkle/swap/index.d.ts +0 -42
- package/dist/shared/flap/portal-bundle-merkle/swap/index.js +0 -1448
- package/dist/shared/flap/portal-bundle-merkle/swap/types.d.ts +0 -84
- package/dist/shared/flap/portal-bundle-merkle/swap/types.js +0 -1
- package/dist/shared/flap/portal-bundle-merkle/utils/index.d.ts +0 -17
- package/dist/shared/flap/portal-bundle-merkle/utils/index.js +0 -1024
- package/dist/shared/flap/portal-bundle-merkle/utils/types.d.ts +0 -16
- package/dist/shared/flap/portal-bundle-merkle/utils/types.js +0 -1
- package/dist/shared/flap/portal-bundle-merkle/utils-helpers.d.ts +0 -100
- package/dist/shared/flap/portal-bundle-merkle/utils-helpers.js +0 -133
- package/dist/shared/flap 2/__tests__/curve.test.d.ts +0 -1
- package/dist/shared/flap 2/__tests__/curve.test.js +0 -85
- package/dist/shared/flap 2/abi.d.ts +0 -4
- package/dist/shared/flap 2/abi.js +0 -4
- package/dist/shared/flap 2/constants.d.ts +0 -128
- package/dist/shared/flap 2/constants.js +0 -143
- package/dist/shared/flap 2/curve.d.ts +0 -33
- package/dist/shared/flap 2/curve.js +0 -84
- package/dist/shared/flap 2/errors.d.ts +0 -37
- package/dist/shared/flap 2/errors.js +0 -114
- package/dist/shared/flap 2/index.d.ts +0 -22
- package/dist/shared/flap 2/index.js +0 -33
- package/dist/shared/flap 2/ipfs.d.ts +0 -21
- package/dist/shared/flap 2/ipfs.js +0 -38
- package/dist/shared/flap 2/meta.d.ts +0 -30
- package/dist/shared/flap 2/meta.js +0 -195
- package/dist/shared/flap 2/permit.d.ts +0 -16
- package/dist/shared/flap 2/permit.js +0 -67
- package/dist/shared/flap 2/pinata.d.ts +0 -40
- package/dist/shared/flap 2/pinata.js +0 -106
- package/dist/shared/flap 2/portal-bundle-merkle/config.d.ts +0 -79
- package/dist/shared/flap 2/portal-bundle-merkle/config.js +0 -133
- package/dist/shared/flap 2/portal-bundle-merkle/core.d.ts +0 -18
- package/dist/shared/flap 2/portal-bundle-merkle/core.js +0 -938
- package/dist/shared/flap 2/portal-bundle-merkle/create-to-dex.d.ts +0 -125
- package/dist/shared/flap 2/portal-bundle-merkle/create-to-dex.js +0 -665
- package/dist/shared/flap 2/portal-bundle-merkle/curve-to-dex.d.ts +0 -88
- package/dist/shared/flap 2/portal-bundle-merkle/curve-to-dex.js +0 -446
- package/dist/shared/flap 2/portal-bundle-merkle/index.d.ts +0 -14
- package/dist/shared/flap 2/portal-bundle-merkle/index.js +0 -26
- package/dist/shared/flap 2/portal-bundle-merkle/pancake-proxy.d.ts +0 -28
- package/dist/shared/flap 2/portal-bundle-merkle/pancake-proxy.js +0 -701
- package/dist/shared/flap 2/portal-bundle-merkle/private.d.ts +0 -17
- package/dist/shared/flap 2/portal-bundle-merkle/private.js +0 -549
- package/dist/shared/flap 2/portal-bundle-merkle/swap-buy-first.d.ts +0 -65
- package/dist/shared/flap 2/portal-bundle-merkle/swap-buy-first.js +0 -831
- package/dist/shared/flap 2/portal-bundle-merkle/swap.d.ts +0 -201
- package/dist/shared/flap 2/portal-bundle-merkle/swap.js +0 -1359
- package/dist/shared/flap 2/portal-bundle-merkle/types.d.ts +0 -358
- package/dist/shared/flap 2/portal-bundle-merkle/types.js +0 -1
- package/dist/shared/flap 2/portal-bundle-merkle/utils.d.ts +0 -89
- package/dist/shared/flap 2/portal-bundle-merkle/utils.js +0 -963
- package/dist/shared/flap 2/portal-bundle.d.ts +0 -119
- package/dist/shared/flap 2/portal-bundle.js +0 -584
- package/dist/shared/flap 2/portal.d.ts +0 -392
- package/dist/shared/flap 2/portal.js +0 -559
- package/dist/shared/flap 2/vanity.d.ts +0 -48
- package/dist/shared/flap 2/vanity.js +0 -110
- package/dist/shared/flap 2/vault.d.ts +0 -240
- package/dist/shared/flap 2/vault.js +0 -366
- package/dist/shared/four 2/index.d.ts +0 -7
- package/dist/shared/four 2/index.js +0 -22
- package/dist/shared/four 2/tax-token.d.ts +0 -176
- package/dist/shared/four 2/tax-token.js +0 -302
- package/dist/shared/index 2.js +0 -10
- package/dist/shared/index.d 2.ts +0 -10
- package/dist/types/distribute.d.ts +0 -72
- package/dist/types/distribute.js +0 -1
- package/dist/types 2/errors.d.ts +0 -27
- package/dist/types 2/errors.js +0 -34
- package/dist/utils/__tests__/errors.test.d.ts +0 -1
- package/dist/utils/__tests__/errors.test.js +0 -76
- package/dist/utils/airdrop-sweep-types.d.ts +0 -1
- package/dist/utils/airdrop-sweep-types.js +0 -1
- package/dist/utils/erc20/index.d.ts +0 -242
- package/dist/utils/erc20/index.js +0 -645
- package/dist/utils/erc20/types.d.ts +0 -77
- package/dist/utils/erc20/types.js +0 -1
- package/dist/utils/erc20-types.d.ts +0 -1
- package/dist/utils/erc20-types.js +0 -1
- package/dist/utils/holders-maker/helpers.d.ts +0 -43
- package/dist/utils/holders-maker/helpers.js +0 -371
- package/dist/utils/holders-maker/index.d.ts +0 -26
- package/dist/utils/holders-maker/index.js +0 -218
- package/dist/utils/holders-maker/types.d.ts +0 -72
- package/dist/utils/holders-maker/types.js +0 -4
- package/dist/utils/holders-maker-types.d.ts +0 -1
- package/dist/utils/holders-maker-types.js +0 -1
- package/dist/utils/lp-inspect/index.d.ts +0 -44
- package/dist/utils/lp-inspect/index.js +0 -937
- package/dist/utils/lp-inspect/types.d.ts +0 -100
- package/dist/utils/lp-inspect/types.js +0 -1
- package/dist/utils/lp-inspect-types.d.ts +0 -1
- package/dist/utils/lp-inspect-types.js +0 -1
- package/dist/utils/private-sale-types.d.ts +0 -1
- package/dist/utils/private-sale-types.js +0 -1
- package/dist/utils/quote-helpers/index.d.ts +0 -107
- package/dist/utils/quote-helpers/index.js +0 -346
- package/dist/utils/quote-helpers/types.d.ts +0 -16
- package/dist/utils/quote-helpers/types.js +0 -1
- package/dist/utils/quote-helpers-types.d.ts +0 -1
- package/dist/utils/quote-helpers-types.js +0 -1
- /package/dist/{chains/bsc/four/submit/types.js → __tests__/subpath-exports.test.d.ts} +0 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { describe, expect, it } from 'vitest';
|
|
2
|
+
describe('subpath exports (package.json exports map)', () => {
|
|
3
|
+
it('chains subpath exposes chains namespace', async () => {
|
|
4
|
+
const mod = await import('../chains/index.js');
|
|
5
|
+
expect(mod.chains).toBeDefined();
|
|
6
|
+
expect(mod.chains.bsc).toBeDefined();
|
|
7
|
+
expect(mod.chains.xlayer).toBeDefined();
|
|
8
|
+
expect(mod.chains.eni).toBeDefined();
|
|
9
|
+
expect(mod.bsc).toBe(mod.chains.bsc);
|
|
10
|
+
});
|
|
11
|
+
it('flap subpath exposes Merkle swap entrypoints', async () => {
|
|
12
|
+
const mod = await import('../flap/index.js');
|
|
13
|
+
expect(typeof mod.flapBundleSwapMerkle).toBe('function');
|
|
14
|
+
expect(typeof mod.flapBatchSwapMerkle).toBe('function');
|
|
15
|
+
expect(typeof mod.flapQuickBatchSwapMerkle).toBe('function');
|
|
16
|
+
expect(typeof mod.flapCrossSwapMerkle).toBe('function');
|
|
17
|
+
});
|
|
18
|
+
it('utils/wallet subpath exports GeneratedWallet type surface', async () => {
|
|
19
|
+
const mod = await import('../utils/wallet.js');
|
|
20
|
+
expect(typeof mod.generateWallets).toBe('function');
|
|
21
|
+
expect(typeof mod.validatePrivateKeys).toBe('function');
|
|
22
|
+
expect(typeof mod.getTokenBalancesWithMulticall).toBe('function');
|
|
23
|
+
});
|
|
24
|
+
it('constants subpath exports FlapChain type re-export', async () => {
|
|
25
|
+
const mod = await import('../shared/constants/index.js');
|
|
26
|
+
expect(mod.CHAINS).toBeDefined();
|
|
27
|
+
expect(mod.PROFIT_CONFIG).toBeDefined();
|
|
28
|
+
});
|
|
29
|
+
it('quote subpath exports quoteV2/quoteV3', async () => {
|
|
30
|
+
const mod = await import('../utils/quote-helpers.js');
|
|
31
|
+
expect(typeof mod.quoteV2).toBe('function');
|
|
32
|
+
expect(typeof mod.quoteV3).toBe('function');
|
|
33
|
+
});
|
|
34
|
+
});
|
package/dist/chains/index.d.ts
CHANGED
|
@@ -7,3 +7,16 @@ export * as bsc from './bsc/index.js';
|
|
|
7
7
|
export * as xlayer from './xlayer/index.js';
|
|
8
8
|
export * as monad from './monad/index.js';
|
|
9
9
|
export * as eni from './eni/index.js';
|
|
10
|
+
/**
|
|
11
|
+
* 与包根 `export * as chains` 一致的命名空间(`chains.bsc` / `chains.eni` …)
|
|
12
|
+
*/
|
|
13
|
+
import * as bscNs from './bsc/index.js';
|
|
14
|
+
import * as xlayerNs from './xlayer/index.js';
|
|
15
|
+
import * as monadNs from './monad/index.js';
|
|
16
|
+
import * as eniNs from './eni/index.js';
|
|
17
|
+
export declare const chains: {
|
|
18
|
+
readonly bsc: typeof bscNs;
|
|
19
|
+
readonly xlayer: typeof xlayerNs;
|
|
20
|
+
readonly monad: typeof monadNs;
|
|
21
|
+
readonly eni: typeof eniNs;
|
|
22
|
+
};
|
package/dist/chains/index.js
CHANGED
|
@@ -11,3 +11,16 @@ export * as xlayer from './xlayer/index.js';
|
|
|
11
11
|
export * as monad from './monad/index.js';
|
|
12
12
|
// ENI 链
|
|
13
13
|
export * as eni from './eni/index.js';
|
|
14
|
+
/**
|
|
15
|
+
* 与包根 `export * as chains` 一致的命名空间(`chains.bsc` / `chains.eni` …)
|
|
16
|
+
*/
|
|
17
|
+
import * as bscNs from './bsc/index.js';
|
|
18
|
+
import * as xlayerNs from './xlayer/index.js';
|
|
19
|
+
import * as monadNs from './monad/index.js';
|
|
20
|
+
import * as eniNs from './eni/index.js';
|
|
21
|
+
export const chains = {
|
|
22
|
+
bsc: bscNs,
|
|
23
|
+
xlayer: xlayerNs,
|
|
24
|
+
monad: monadNs,
|
|
25
|
+
eni: eniNs,
|
|
26
|
+
};
|
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
*/
|
|
16
16
|
export * from './constants.js';
|
|
17
17
|
export * from './types.js';
|
|
18
|
+
/** 与包根 `XLayerEip7702TradeType` 别名一致,便于子路径引用 */
|
|
19
|
+
export type { TradeType as XLayerEip7702TradeType } from './types.js';
|
|
18
20
|
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';
|
|
19
21
|
export { bundleBuy } from './bundle-buy.js';
|
|
20
22
|
export { bundleSell } from './bundle-sell.js';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Flap Portal Merkle Bundle 子路径入口
|
|
3
|
+
*
|
|
4
|
+
* memeweb 等消费者请使用 `four-flap-meme-sdk/flap`,避免为 Flap 换手拉取包根。
|
|
5
|
+
*
|
|
6
|
+
* @see docs/MIGRATION_EXPORTS.zh-CN.md
|
|
7
|
+
*/
|
|
8
|
+
export { flapBundleSwapMerkle, flapBatchSwapMerkle, flapQuickBatchSwapMerkle, flapCrossSwapMerkle, flapBundleBuyFirstMerkle, flapDisperseWithBundleMerkle, flapSweepWithBundleMerkle, createTokenWithBundleBuyMerkle, batchBuyWithBundleMerkle, batchSellWithBundleMerkle, } from '../shared/flap/portal-bundle-merkle/index.js';
|
|
9
|
+
export type { FlapSwapSignConfig, FlapSwapConfig, FlapBundleSwapSignParams, FlapBundleSwapParams, FlapSwapResult, FlapBatchSwapSignParams, FlapBatchSwapResult, FlapQuickBatchSwapSignParams, FlapQuickBatchSwapResult, FlapCrossSwapParams, FlapCrossSwapResult, UserType as FlapSwapUserType, FlapBuyFirstSignConfig, FlapBuyFirstConfig, FlapBundleBuyFirstSignParams, FlapBundleBuyFirstParams, FlapBuyFirstResult, FlapDisperseSignParams, FlapDisperseMerkleResult, FlapSweepSignParams, FlapSweepMerkleResult, } from '../shared/flap/portal-bundle-merkle/index.js';
|
|
10
|
+
export type { FlapChain } from '../shared/flap/portal.js';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Flap Portal Merkle Bundle 子路径入口
|
|
3
|
+
*
|
|
4
|
+
* memeweb 等消费者请使用 `four-flap-meme-sdk/flap`,避免为 Flap 换手拉取包根。
|
|
5
|
+
*
|
|
6
|
+
* @see docs/MIGRATION_EXPORTS.zh-CN.md
|
|
7
|
+
*/
|
|
8
|
+
export { flapBundleSwapMerkle, flapBatchSwapMerkle, flapQuickBatchSwapMerkle, flapCrossSwapMerkle, flapBundleBuyFirstMerkle, flapDisperseWithBundleMerkle, flapSweepWithBundleMerkle, createTokenWithBundleBuyMerkle, batchBuyWithBundleMerkle, batchSellWithBundleMerkle, } from '../shared/flap/portal-bundle-merkle/index.js';
|
|
@@ -11,5 +11,7 @@
|
|
|
11
11
|
export { CHAINS, CHAIN_ID_MAP, getChainById, getChainName, getDefaultRpcUrl, isKnownChain, isBscChain, isXLayerChain, isMonadChain, isEniChain, getConfirmationTimeout, type ChainKey, type ChainConfig, } from './chains.js';
|
|
12
12
|
export { GAS_LIMITS, GAS_CONFIG, V3_FEE_TIERS, calculateGasLimit, getTransferGasLimit, type GasLimitKey, type V3FeeTier, } from './gas.js';
|
|
13
13
|
export { QUOTE_CONFIG, QUOTE_V3_FEE_TIERS, type QuoteConfigChain } from './quote.js';
|
|
14
|
+
/** Flap 链标识(与 `FlapPortal` 一致,供子路径 `./constants` 使用) */
|
|
15
|
+
export type { FlapChain } from '../flap/portal.js';
|
|
14
16
|
export { ZERO_ADDRESS, BLOCKRAZOR_BUILDER_EOA, ADDRESSES, getAddress, getWrappedNativeAddress, getMulticall3Address, getFlapPortalAddress, isZeroAddress, isNativeToken, ENI_SPENDERS, getEniSpenders, type ChainAddresses, type AddressKey, } from './addresses.js';
|
|
15
17
|
export { PROFIT_CONFIG, getProfitRecipient, getAllProfitRecipients, getProfitRateBps, calculateProfitAmount, calculateProfitHopGasCost, type ProfitRateKey, TRANSFER_FEE_PER_ADDRESS, getTransferFeePerAddress, calculateTransferFee, } from './profit.js';
|
package/dist/shared/index.d.ts
CHANGED
|
@@ -12,3 +12,5 @@ export * as foundation from './foundation/index.js';
|
|
|
12
12
|
/** HTTP / Bundle / BlockRazor 等(亦支持子路径 `four-flap-meme-sdk/clients`) */
|
|
13
13
|
export * as clients from './clients/index.js';
|
|
14
14
|
export * as FourUtils from './four/index.js';
|
|
15
|
+
/** Flap 链标识(与 `./constants` 同源) */
|
|
16
|
+
export type { FlapChain } from './flap/portal.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "four-flap-meme-sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "SDK for Flap bonding curve and four.meme TokenManager",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -56,6 +56,71 @@
|
|
|
56
56
|
"import": "./dist/flows/index.js",
|
|
57
57
|
"default": "./dist/flows/index.js"
|
|
58
58
|
},
|
|
59
|
+
"./flap": {
|
|
60
|
+
"types": "./dist/flap/index.d.ts",
|
|
61
|
+
"import": "./dist/flap/index.js",
|
|
62
|
+
"default": "./dist/flap/index.js"
|
|
63
|
+
},
|
|
64
|
+
"./chains/bsc": {
|
|
65
|
+
"types": "./dist/chains/bsc/index.d.ts",
|
|
66
|
+
"import": "./dist/chains/bsc/index.js",
|
|
67
|
+
"default": "./dist/chains/bsc/index.js"
|
|
68
|
+
},
|
|
69
|
+
"./chains/xlayer": {
|
|
70
|
+
"types": "./dist/chains/xlayer/index.d.ts",
|
|
71
|
+
"import": "./dist/chains/xlayer/index.js",
|
|
72
|
+
"default": "./dist/chains/xlayer/index.js"
|
|
73
|
+
},
|
|
74
|
+
"./chains/xlayer/eip7702": {
|
|
75
|
+
"types": "./dist/chains/xlayer/eip7702/index.d.ts",
|
|
76
|
+
"import": "./dist/chains/xlayer/eip7702/index.js",
|
|
77
|
+
"default": "./dist/chains/xlayer/eip7702/index.js"
|
|
78
|
+
},
|
|
79
|
+
"./chains/eni": {
|
|
80
|
+
"types": "./dist/chains/eni/index.d.ts",
|
|
81
|
+
"import": "./dist/chains/eni/index.js",
|
|
82
|
+
"default": "./dist/chains/eni/index.js"
|
|
83
|
+
},
|
|
84
|
+
"./chains/monad": {
|
|
85
|
+
"types": "./dist/chains/monad/index.d.ts",
|
|
86
|
+
"import": "./dist/chains/monad/index.js",
|
|
87
|
+
"default": "./dist/chains/monad/index.js"
|
|
88
|
+
},
|
|
89
|
+
"./utils/wallet": {
|
|
90
|
+
"types": "./dist/utils/wallet.d.ts",
|
|
91
|
+
"import": "./dist/utils/wallet.js",
|
|
92
|
+
"default": "./dist/utils/wallet.js"
|
|
93
|
+
},
|
|
94
|
+
"./utils/holders-maker": {
|
|
95
|
+
"types": "./dist/utils/holders-maker.d.ts",
|
|
96
|
+
"import": "./dist/utils/holders-maker.js",
|
|
97
|
+
"default": "./dist/utils/holders-maker.js"
|
|
98
|
+
},
|
|
99
|
+
"./utils/private-sale": {
|
|
100
|
+
"types": "./dist/utils/private-sale.d.ts",
|
|
101
|
+
"import": "./dist/utils/private-sale.js",
|
|
102
|
+
"default": "./dist/utils/private-sale.js"
|
|
103
|
+
},
|
|
104
|
+
"./utils/lp-inspect": {
|
|
105
|
+
"types": "./dist/utils/lp-inspect.d.ts",
|
|
106
|
+
"import": "./dist/utils/lp-inspect.js",
|
|
107
|
+
"default": "./dist/utils/lp-inspect.js"
|
|
108
|
+
},
|
|
109
|
+
"./utils/airdrop": {
|
|
110
|
+
"types": "./dist/utils/airdrop-sweep.d.ts",
|
|
111
|
+
"import": "./dist/utils/airdrop-sweep.js",
|
|
112
|
+
"default": "./dist/utils/airdrop-sweep.js"
|
|
113
|
+
},
|
|
114
|
+
"./utils/erc20": {
|
|
115
|
+
"types": "./dist/utils/erc20.d.ts",
|
|
116
|
+
"import": "./dist/utils/erc20.js",
|
|
117
|
+
"default": "./dist/utils/erc20.js"
|
|
118
|
+
},
|
|
119
|
+
"./quote": {
|
|
120
|
+
"types": "./dist/utils/quote-helpers.d.ts",
|
|
121
|
+
"import": "./dist/utils/quote-helpers.js",
|
|
122
|
+
"default": "./dist/utils/quote-helpers.js"
|
|
123
|
+
},
|
|
59
124
|
"./package.json": "./package.json"
|
|
60
125
|
},
|
|
61
126
|
"files": [
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { DisperseSignParams, DisperseMerkleResult } from './types.js';
|
|
2
|
-
/**
|
|
3
|
-
* 分发(仅签名版本 - 不依赖 Merkle)
|
|
4
|
-
* ✅ 精简版:只负责签名交易,不提交到 Merkle
|
|
5
|
-
* ✅ 优化版:支持 startNonce 参数避免并行调用时的 nonce 冲突
|
|
6
|
-
*/
|
|
7
|
-
export declare function disperseWithBundleMerkle(params: DisperseSignParams): Promise<DisperseMerkleResult>;
|
|
8
|
-
/**
|
|
9
|
-
* 归集(仅签名版本 - 不依赖 Merkle)
|
|
10
|
-
* ✅ 精简版:只负责签名交易,不提交到 Merkle
|
|
11
|
-
* ✅ 优化版:支持 startNonce 参数避免并行调用时的 nonce 冲突
|
|
12
|
-
*/
|