clanker-sdk 4.2.10 → 4.2.11
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/cli/cli.js +30 -3
- package/dist/cli/create-clanker.js +28 -1
- package/dist/{deploy-BvFgwMVl.d.ts → deploy-ydUPEH-J.d.ts} +1821 -3
- package/dist/index.d.ts +23 -4
- package/dist/index.js +35 -1
- package/dist/legacyFeeClaims/index.js +24 -0
- package/dist/v3/index.js +27 -0
- package/dist/v4/extensions/index.d.ts +1 -1
- package/dist/v4/extensions/index.js +27 -0
- package/dist/v4/index.d.ts +2 -2
- package/dist/v4/index.js +27 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { C as ClankerTokenV3 } from './clankerTokenV3-BqHTF9QY.js';
|
|
2
|
-
import { a as Chain, C as ClankerTokenV4, b as ClankerDeployment } from './deploy-
|
|
3
|
-
export { d as CLANKERS, g as Chains, h as ClankerDeployments, f as Clankers, D as DeployTokenOptions, R as RelatedV3_1, c as RelatedV4, T as Type, i as clankerConfigFor } from './deploy-
|
|
2
|
+
import { a as Chain, C as ClankerTokenV4, b as ClankerDeployment } from './deploy-ydUPEH-J.js';
|
|
3
|
+
export { d as CLANKERS, g as Chains, h as ClankerDeployments, f as Clankers, D as DeployTokenOptions, R as RelatedV3_1, c as RelatedV4, T as Type, i as clankerConfigFor } from './deploy-ydUPEH-J.js';
|
|
4
4
|
import { ContractConstructorArgs, Hex, PublicClient } from 'viem';
|
|
5
5
|
import { C as ClankerToken_v3_1_abi, a as ClankerToken_v4_abi } from './ClankerToken-Dra5lppJ.js';
|
|
6
6
|
import { StandardMerkleTree } from '@openzeppelin/merkle-tree';
|
|
@@ -13,6 +13,10 @@ declare const ANON_ADDRESS: `0x${string}`;
|
|
|
13
13
|
declare const HIGHER_ADDRESS: `0x${string}`;
|
|
14
14
|
declare const CB_BTC_ADDRESS: `0x${string}`;
|
|
15
15
|
declare const A0X_ADDRESS: `0x${string}`;
|
|
16
|
+
/** WBNB (Wrapped BNB) on BSC - use for BNB/BNB token pairs */
|
|
17
|
+
declare const WBNB_ADDRESS: `0x${string}`;
|
|
18
|
+
/** USDT (Binance-Peg BSC-USD) on BSC – 18 decimals */
|
|
19
|
+
declare const BSC_USDT_ADDRESS: `0x${string}`;
|
|
16
20
|
declare const WETH_ADDRESSES: Record<Chain, `0x${string}`>;
|
|
17
21
|
declare const DEFAULT_SUPPLY = 100000000000000000000000000000n;
|
|
18
22
|
declare enum PoolPositions {
|
|
@@ -69,7 +73,7 @@ declare const getTickFromMarketCap: (marketCap: number) => {
|
|
|
69
73
|
tickSpacing: number;
|
|
70
74
|
};
|
|
71
75
|
/**
|
|
72
|
-
* Calculate the tick for a desired market cap in USDC
|
|
76
|
+
* Calculate the tick for a desired market cap in USDC (6 decimals)
|
|
73
77
|
*
|
|
74
78
|
* @param marketCapUSDC - Desired market cap in USDC (e.g., 10 for $10)
|
|
75
79
|
* @param tickSpacing - Tick spacing (must be multiple of this, default 200)
|
|
@@ -82,6 +86,21 @@ declare const getTickFromMarketCap: (marketCap: number) => {
|
|
|
82
86
|
* - tick = log(price) / log(1.0001)
|
|
83
87
|
*/
|
|
84
88
|
declare function getTickFromMarketCapUSDC(marketCapUSDC: number, tickSpacing?: number): number;
|
|
89
|
+
/**
|
|
90
|
+
* Calculate the tick for a desired market cap priced in a stablecoin with
|
|
91
|
+
* an arbitrary number of decimals.
|
|
92
|
+
*
|
|
93
|
+
* @param marketCap - Desired market cap in USD terms (e.g., 10_000 for $10k)
|
|
94
|
+
* @param stableDecimals - Decimals of the paired stablecoin (6 for USDC, 18 for BSC-USDT)
|
|
95
|
+
* @param tickSpacing - Tick spacing (must be multiple of this, default 200)
|
|
96
|
+
* @returns The tick value rounded down to the nearest tickSpacing
|
|
97
|
+
*
|
|
98
|
+
* Formula:
|
|
99
|
+
* - Total supply: 100B tokens (10^11 * 10^18 = 10^29)
|
|
100
|
+
* - Price per token = (marketCap * 10^stableDecimals) / 10^29
|
|
101
|
+
* - tick = log(price) / log(1.0001)
|
|
102
|
+
*/
|
|
103
|
+
declare function getTickFromMarketCapStable(marketCap: number, stableDecimals: number, tickSpacing?: number): number;
|
|
85
104
|
|
|
86
105
|
interface AirdropEntry {
|
|
87
106
|
account: `0x${string}`;
|
|
@@ -226,4 +245,4 @@ declare function verifyBuyerAllowance(publicClient: PublicClient, presaleId: big
|
|
|
226
245
|
allowedAmountWei: bigint;
|
|
227
246
|
}>;
|
|
228
247
|
|
|
229
|
-
export { A0X_ADDRESS, ANON_ADDRESS, type AirdropEntry, type AllowlistEntry, type AllowlistProof, CB_BTC_ADDRESS, CLANKER_ADDRESS, Chain, ClankerDeployment, ClankerTokenV4, DEFAULT_SUPPLY, DEGEN_ADDRESS, FEE_CONFIGS, FeeConfigs, HIGHER_ADDRESS, NATIVE_ADDRESS, POOL_POSITIONS, PoolPositions, WETH_ADDRESSES, createAllowlistMerkleTree, createMerkleTree, encodeAirdropData, encodeAllowlistInitializationData, encodeAllowlistProofData, findVanityAddress, findVanityAddressV4, getAllowedAmountForBuyer, getAllowlistAddress, getAllowlistInfo, getAllowlistMerkleProof, getMerkleProof, getTickFromMarketCap, getTickFromMarketCapUSDC, predictTokenAddressV4, verifyBuyerAllowance };
|
|
248
|
+
export { A0X_ADDRESS, ANON_ADDRESS, type AirdropEntry, type AllowlistEntry, type AllowlistProof, BSC_USDT_ADDRESS, CB_BTC_ADDRESS, CLANKER_ADDRESS, Chain, ClankerDeployment, ClankerTokenV4, DEFAULT_SUPPLY, DEGEN_ADDRESS, FEE_CONFIGS, FeeConfigs, HIGHER_ADDRESS, NATIVE_ADDRESS, POOL_POSITIONS, PoolPositions, WBNB_ADDRESS, WETH_ADDRESSES, createAllowlistMerkleTree, createMerkleTree, encodeAirdropData, encodeAllowlistInitializationData, encodeAllowlistProofData, findVanityAddress, findVanityAddressV4, getAllowedAmountForBuyer, getAllowlistAddress, getAllowlistInfo, getAllowlistMerkleProof, getMerkleProof, getTickFromMarketCap, getTickFromMarketCapStable, getTickFromMarketCapUSDC, predictTokenAddressV4, verifyBuyerAllowance };
|
package/dist/index.js
CHANGED
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
arbitrum,
|
|
5
5
|
base,
|
|
6
6
|
baseSepolia,
|
|
7
|
+
bsc,
|
|
7
8
|
mainnet,
|
|
8
9
|
monadTestnet,
|
|
9
10
|
unichain
|
|
@@ -43,9 +44,12 @@ var ANON_ADDRESS = "0x0Db510e79909666d6dEc7f5e49370838c16D950f";
|
|
|
43
44
|
var HIGHER_ADDRESS = "0x0578d8A44db98B23BF096A382e016e29a5Ce0ffe";
|
|
44
45
|
var CB_BTC_ADDRESS = "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf";
|
|
45
46
|
var A0X_ADDRESS = "0x820C5F0fB255a1D18fd0eBB0F1CCefbC4D546dA7";
|
|
47
|
+
var WBNB_ADDRESS = "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c";
|
|
48
|
+
var BSC_USDT_ADDRESS = "0x55d398326f99059fF775485246999027B3197955";
|
|
46
49
|
var WETH_ADDRESSES = {
|
|
47
50
|
[mainnet.id]: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
|
|
48
51
|
[arbitrum.id]: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
|
|
52
|
+
[bsc.id]: WBNB_ADDRESS,
|
|
49
53
|
[base.id]: "0x4200000000000000000000000000000000000006",
|
|
50
54
|
[baseSepolia.id]: "0x4200000000000000000000000000000000000006",
|
|
51
55
|
[unichain.id]: "0x4200000000000000000000000000000000000006",
|
|
@@ -2015,6 +2019,7 @@ import {
|
|
|
2015
2019
|
arbitrum as arbitrum2,
|
|
2016
2020
|
base as base2,
|
|
2017
2021
|
baseSepolia as baseSepolia2,
|
|
2022
|
+
bsc as bsc2,
|
|
2018
2023
|
mainnet as mainnet2,
|
|
2019
2024
|
monadTestnet as monadTestnet2,
|
|
2020
2025
|
unichain as unichain2
|
|
@@ -5722,6 +5727,29 @@ var CLANKERS = {
|
|
|
5722
5727
|
feeStaticHookV2: "0x94F802a9EFE4dd542FdBd77a25D9e69A6dC828Cc",
|
|
5723
5728
|
feeDynamicHook: "0x0000000000000000000000000000000000000000"
|
|
5724
5729
|
}
|
|
5730
|
+
},
|
|
5731
|
+
clanker_v4_bnb: {
|
|
5732
|
+
abi: Clanker_v4_abi,
|
|
5733
|
+
token: {
|
|
5734
|
+
abi: ClankerToken_v4_abi,
|
|
5735
|
+
bytecode: ClankerToken_v4_bytecode
|
|
5736
|
+
},
|
|
5737
|
+
chainId: bsc2.id,
|
|
5738
|
+
type: "clanker_v4",
|
|
5739
|
+
address: "0xea30438E0B5f99096cb05A8Da63be55A6A298F6a",
|
|
5740
|
+
related: {
|
|
5741
|
+
locker: "0x1166022e1becc70E7E9aB2250aF1aC7842B9B420",
|
|
5742
|
+
vault: "0x15ee8382DBd8Fb991F653B59CA11bf504a07372D",
|
|
5743
|
+
airdrop: "0xBB0f069b995e0205cD5F92C84a1dF056a3F47900",
|
|
5744
|
+
devbuy: "0x302989E1cA167B6E78f9711e5a08d1BD555DdAc4",
|
|
5745
|
+
mevModule: "0xEE2940CC010820B7F22DF627e081d707693989a6",
|
|
5746
|
+
mevModuleV2: "0xec1310cf227a2D671176000aE0849DE6417b175a",
|
|
5747
|
+
feeLocker: "0x67D04Ae42F03D9b63dE0E6F2d82bB186A0306bBb",
|
|
5748
|
+
feeStaticHook: "0xC5d309026BCAb6630888d51CE21154AD2f4828cC",
|
|
5749
|
+
feeStaticHookV2: "0xC5d309026BCAb6630888d51CE21154AD2f4828cC",
|
|
5750
|
+
feeDynamicHook: "0x0000000000000000000000000000000000000000",
|
|
5751
|
+
feeDynamicHookV2: "0x011a8ed40095F2D7E9c19125B8254b19678D68Cc"
|
|
5752
|
+
}
|
|
5725
5753
|
}
|
|
5726
5754
|
};
|
|
5727
5755
|
var Chains = [...new Set(Object.values(CLANKERS).map(({ chainId }) => chainId))];
|
|
@@ -5803,7 +5831,10 @@ var getTickFromMarketCap = (marketCap) => {
|
|
|
5803
5831
|
};
|
|
5804
5832
|
};
|
|
5805
5833
|
function getTickFromMarketCapUSDC(marketCapUSDC, tickSpacing = 200) {
|
|
5806
|
-
|
|
5834
|
+
return getTickFromMarketCapStable(marketCapUSDC, 6, tickSpacing);
|
|
5835
|
+
}
|
|
5836
|
+
function getTickFromMarketCapStable(marketCap, stableDecimals, tickSpacing = 200) {
|
|
5837
|
+
const price = marketCap / 10 ** (29 - stableDecimals);
|
|
5807
5838
|
const rawTick = Math.log(price) / Math.log(1.0001);
|
|
5808
5839
|
return Math.floor(rawTick / tickSpacing) * tickSpacing;
|
|
5809
5840
|
}
|
|
@@ -6062,6 +6093,7 @@ async function verifyBuyerAllowance(publicClient, presaleId, buyer, desiredAmoun
|
|
|
6062
6093
|
export {
|
|
6063
6094
|
A0X_ADDRESS,
|
|
6064
6095
|
ANON_ADDRESS,
|
|
6096
|
+
BSC_USDT_ADDRESS,
|
|
6065
6097
|
CB_BTC_ADDRESS,
|
|
6066
6098
|
CLANKERS,
|
|
6067
6099
|
CLANKER_ADDRESS,
|
|
@@ -6075,6 +6107,7 @@ export {
|
|
|
6075
6107
|
NATIVE_ADDRESS,
|
|
6076
6108
|
POOL_POSITIONS,
|
|
6077
6109
|
PoolPositions,
|
|
6110
|
+
WBNB_ADDRESS,
|
|
6078
6111
|
WETH_ADDRESSES,
|
|
6079
6112
|
clankerConfigFor,
|
|
6080
6113
|
createAllowlistMerkleTree,
|
|
@@ -6090,6 +6123,7 @@ export {
|
|
|
6090
6123
|
getAllowlistMerkleProof,
|
|
6091
6124
|
getMerkleProof,
|
|
6092
6125
|
getTickFromMarketCap,
|
|
6126
|
+
getTickFromMarketCapStable,
|
|
6093
6127
|
getTickFromMarketCapUSDC,
|
|
6094
6128
|
predictTokenAddressV4,
|
|
6095
6129
|
verifyBuyerAllowance
|
|
@@ -248,6 +248,7 @@ import {
|
|
|
248
248
|
arbitrum,
|
|
249
249
|
base,
|
|
250
250
|
baseSepolia,
|
|
251
|
+
bsc,
|
|
251
252
|
mainnet,
|
|
252
253
|
monadTestnet,
|
|
253
254
|
unichain
|
|
@@ -5776,6 +5777,29 @@ var CLANKERS = {
|
|
|
5776
5777
|
feeStaticHookV2: "0x94F802a9EFE4dd542FdBd77a25D9e69A6dC828Cc",
|
|
5777
5778
|
feeDynamicHook: "0x0000000000000000000000000000000000000000"
|
|
5778
5779
|
}
|
|
5780
|
+
},
|
|
5781
|
+
clanker_v4_bnb: {
|
|
5782
|
+
abi: Clanker_v4_abi,
|
|
5783
|
+
token: {
|
|
5784
|
+
abi: ClankerToken_v4_abi,
|
|
5785
|
+
bytecode: ClankerToken_v4_bytecode
|
|
5786
|
+
},
|
|
5787
|
+
chainId: bsc.id,
|
|
5788
|
+
type: "clanker_v4",
|
|
5789
|
+
address: "0xea30438E0B5f99096cb05A8Da63be55A6A298F6a",
|
|
5790
|
+
related: {
|
|
5791
|
+
locker: "0x1166022e1becc70E7E9aB2250aF1aC7842B9B420",
|
|
5792
|
+
vault: "0x15ee8382DBd8Fb991F653B59CA11bf504a07372D",
|
|
5793
|
+
airdrop: "0xBB0f069b995e0205cD5F92C84a1dF056a3F47900",
|
|
5794
|
+
devbuy: "0x302989E1cA167B6E78f9711e5a08d1BD555DdAc4",
|
|
5795
|
+
mevModule: "0xEE2940CC010820B7F22DF627e081d707693989a6",
|
|
5796
|
+
mevModuleV2: "0xec1310cf227a2D671176000aE0849DE6417b175a",
|
|
5797
|
+
feeLocker: "0x67D04Ae42F03D9b63dE0E6F2d82bB186A0306bBb",
|
|
5798
|
+
feeStaticHook: "0xC5d309026BCAb6630888d51CE21154AD2f4828cC",
|
|
5799
|
+
feeStaticHookV2: "0xC5d309026BCAb6630888d51CE21154AD2f4828cC",
|
|
5800
|
+
feeDynamicHook: "0x0000000000000000000000000000000000000000",
|
|
5801
|
+
feeDynamicHookV2: "0x011a8ed40095F2D7E9c19125B8254b19678D68Cc"
|
|
5802
|
+
}
|
|
5779
5803
|
}
|
|
5780
5804
|
};
|
|
5781
5805
|
var Chains = [...new Set(Object.values(CLANKERS).map(({ chainId }) => chainId))];
|
package/dist/v3/index.js
CHANGED
|
@@ -3066,6 +3066,7 @@ import {
|
|
|
3066
3066
|
arbitrum,
|
|
3067
3067
|
base,
|
|
3068
3068
|
baseSepolia,
|
|
3069
|
+
bsc,
|
|
3069
3070
|
mainnet,
|
|
3070
3071
|
monadTestnet,
|
|
3071
3072
|
unichain
|
|
@@ -3105,9 +3106,11 @@ var ANON_ADDRESS = "0x0Db510e79909666d6dEc7f5e49370838c16D950f";
|
|
|
3105
3106
|
var HIGHER_ADDRESS = "0x0578d8A44db98B23BF096A382e016e29a5Ce0ffe";
|
|
3106
3107
|
var CB_BTC_ADDRESS = "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf";
|
|
3107
3108
|
var A0X_ADDRESS = "0x820C5F0fB255a1D18fd0eBB0F1CCefbC4D546dA7";
|
|
3109
|
+
var WBNB_ADDRESS = "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c";
|
|
3108
3110
|
var WETH_ADDRESSES = {
|
|
3109
3111
|
[mainnet.id]: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
|
|
3110
3112
|
[arbitrum.id]: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
|
|
3113
|
+
[bsc.id]: WBNB_ADDRESS,
|
|
3111
3114
|
[base.id]: "0x4200000000000000000000000000000000000006",
|
|
3112
3115
|
[baseSepolia.id]: "0x4200000000000000000000000000000000000006",
|
|
3113
3116
|
[unichain.id]: "0x4200000000000000000000000000000000000006",
|
|
@@ -3133,6 +3136,7 @@ import {
|
|
|
3133
3136
|
arbitrum as arbitrum2,
|
|
3134
3137
|
base as base2,
|
|
3135
3138
|
baseSepolia as baseSepolia2,
|
|
3139
|
+
bsc as bsc2,
|
|
3136
3140
|
mainnet as mainnet2,
|
|
3137
3141
|
monadTestnet as monadTestnet2,
|
|
3138
3142
|
unichain as unichain2
|
|
@@ -6150,6 +6154,29 @@ var CLANKERS = {
|
|
|
6150
6154
|
feeStaticHookV2: "0x94F802a9EFE4dd542FdBd77a25D9e69A6dC828Cc",
|
|
6151
6155
|
feeDynamicHook: "0x0000000000000000000000000000000000000000"
|
|
6152
6156
|
}
|
|
6157
|
+
},
|
|
6158
|
+
clanker_v4_bnb: {
|
|
6159
|
+
abi: Clanker_v4_abi,
|
|
6160
|
+
token: {
|
|
6161
|
+
abi: ClankerToken_v4_abi,
|
|
6162
|
+
bytecode: ClankerToken_v4_bytecode
|
|
6163
|
+
},
|
|
6164
|
+
chainId: bsc2.id,
|
|
6165
|
+
type: "clanker_v4",
|
|
6166
|
+
address: "0xea30438E0B5f99096cb05A8Da63be55A6A298F6a",
|
|
6167
|
+
related: {
|
|
6168
|
+
locker: "0x1166022e1becc70E7E9aB2250aF1aC7842B9B420",
|
|
6169
|
+
vault: "0x15ee8382DBd8Fb991F653B59CA11bf504a07372D",
|
|
6170
|
+
airdrop: "0xBB0f069b995e0205cD5F92C84a1dF056a3F47900",
|
|
6171
|
+
devbuy: "0x302989E1cA167B6E78f9711e5a08d1BD555DdAc4",
|
|
6172
|
+
mevModule: "0xEE2940CC010820B7F22DF627e081d707693989a6",
|
|
6173
|
+
mevModuleV2: "0xec1310cf227a2D671176000aE0849DE6417b175a",
|
|
6174
|
+
feeLocker: "0x67D04Ae42F03D9b63dE0E6F2d82bB186A0306bBb",
|
|
6175
|
+
feeStaticHook: "0xC5d309026BCAb6630888d51CE21154AD2f4828cC",
|
|
6176
|
+
feeStaticHookV2: "0xC5d309026BCAb6630888d51CE21154AD2f4828cC",
|
|
6177
|
+
feeDynamicHook: "0x0000000000000000000000000000000000000000",
|
|
6178
|
+
feeDynamicHookV2: "0x011a8ed40095F2D7E9c19125B8254b19678D68Cc"
|
|
6179
|
+
}
|
|
6153
6180
|
}
|
|
6154
6181
|
};
|
|
6155
6182
|
var Chains = [...new Set(Object.values(CLANKERS).map(({ chainId }) => chainId))];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as ClankerTransactionConfig, f as ClankerAirdrop_v4_abi, c as ClankerResult, g as Clanker_PresaleEthToCreator_v4_1_abi, h as Clanker_PresaleAllowlist_v4_1_abi } from '../../write-clanker-contracts-wZSL1UyM.js';
|
|
2
2
|
import { MerkleTree } from '@openzeppelin/merkle-tree/dist/merkletree.js';
|
|
3
3
|
import * as z from 'zod/v4';
|
|
4
|
-
import { a as Chain, C as ClankerTokenV4 } from '../../deploy-
|
|
4
|
+
import { a as Chain, C as ClankerTokenV4 } from '../../deploy-ydUPEH-J.js';
|
|
5
5
|
import { Clanker } from '../index.js';
|
|
6
6
|
import { C as ClankerError } from '../../errors-5Gv28Tkr.js';
|
|
7
7
|
import 'viem';
|
|
@@ -203,6 +203,7 @@ import {
|
|
|
203
203
|
arbitrum,
|
|
204
204
|
base,
|
|
205
205
|
baseSepolia,
|
|
206
|
+
bsc,
|
|
206
207
|
mainnet,
|
|
207
208
|
monadTestnet,
|
|
208
209
|
unichain
|
|
@@ -5731,6 +5732,29 @@ var CLANKERS = {
|
|
|
5731
5732
|
feeStaticHookV2: "0x94F802a9EFE4dd542FdBd77a25D9e69A6dC828Cc",
|
|
5732
5733
|
feeDynamicHook: "0x0000000000000000000000000000000000000000"
|
|
5733
5734
|
}
|
|
5735
|
+
},
|
|
5736
|
+
clanker_v4_bnb: {
|
|
5737
|
+
abi: Clanker_v4_abi,
|
|
5738
|
+
token: {
|
|
5739
|
+
abi: ClankerToken_v4_abi,
|
|
5740
|
+
bytecode: ClankerToken_v4_bytecode
|
|
5741
|
+
},
|
|
5742
|
+
chainId: bsc.id,
|
|
5743
|
+
type: "clanker_v4",
|
|
5744
|
+
address: "0xea30438E0B5f99096cb05A8Da63be55A6A298F6a",
|
|
5745
|
+
related: {
|
|
5746
|
+
locker: "0x1166022e1becc70E7E9aB2250aF1aC7842B9B420",
|
|
5747
|
+
vault: "0x15ee8382DBd8Fb991F653B59CA11bf504a07372D",
|
|
5748
|
+
airdrop: "0xBB0f069b995e0205cD5F92C84a1dF056a3F47900",
|
|
5749
|
+
devbuy: "0x302989E1cA167B6E78f9711e5a08d1BD555DdAc4",
|
|
5750
|
+
mevModule: "0xEE2940CC010820B7F22DF627e081d707693989a6",
|
|
5751
|
+
mevModuleV2: "0xec1310cf227a2D671176000aE0849DE6417b175a",
|
|
5752
|
+
feeLocker: "0x67D04Ae42F03D9b63dE0E6F2d82bB186A0306bBb",
|
|
5753
|
+
feeStaticHook: "0xC5d309026BCAb6630888d51CE21154AD2f4828cC",
|
|
5754
|
+
feeStaticHookV2: "0xC5d309026BCAb6630888d51CE21154AD2f4828cC",
|
|
5755
|
+
feeDynamicHook: "0x0000000000000000000000000000000000000000",
|
|
5756
|
+
feeDynamicHookV2: "0x011a8ed40095F2D7E9c19125B8254b19678D68Cc"
|
|
5757
|
+
}
|
|
5734
5758
|
}
|
|
5735
5759
|
};
|
|
5736
5760
|
var Chains = [...new Set(Object.values(CLANKERS).map(({ chainId }) => chainId))];
|
|
@@ -6959,13 +6983,16 @@ import {
|
|
|
6959
6983
|
arbitrum as arbitrum2,
|
|
6960
6984
|
base as base2,
|
|
6961
6985
|
baseSepolia as baseSepolia2,
|
|
6986
|
+
bsc as bsc2,
|
|
6962
6987
|
mainnet as mainnet2,
|
|
6963
6988
|
monadTestnet as monadTestnet2,
|
|
6964
6989
|
unichain as unichain2
|
|
6965
6990
|
} from "viem/chains";
|
|
6991
|
+
var WBNB_ADDRESS = "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c";
|
|
6966
6992
|
var WETH_ADDRESSES = {
|
|
6967
6993
|
[mainnet2.id]: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
|
|
6968
6994
|
[arbitrum2.id]: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
|
|
6995
|
+
[bsc2.id]: WBNB_ADDRESS,
|
|
6969
6996
|
[base2.id]: "0x4200000000000000000000000000000000000006",
|
|
6970
6997
|
[baseSepolia2.id]: "0x4200000000000000000000000000000000000006",
|
|
6971
6998
|
[unichain2.id]: "0x4200000000000000000000000000000000000006",
|
package/dist/v4/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { C as ClankerTransactionConfig, d as ClankerFeeLocker_abi, b as ClankerF
|
|
|
2
2
|
import * as viem from 'viem';
|
|
3
3
|
import { WalletClient, Transport, Chain, Account, PublicClient } from 'viem';
|
|
4
4
|
import { a as ClankerToken_v4_abi } from '../ClankerToken-Dra5lppJ.js';
|
|
5
|
-
import { C as ClankerTokenV4, D as DeployTokenOptions } from '../deploy-
|
|
6
|
-
export { e as encodeFeeConfig } from '../deploy-
|
|
5
|
+
import { C as ClankerTokenV4, D as DeployTokenOptions } from '../deploy-ydUPEH-J.js';
|
|
6
|
+
export { e as encodeFeeConfig } from '../deploy-ydUPEH-J.js';
|
|
7
7
|
import { C as ClankerError } from '../errors-5Gv28Tkr.js';
|
|
8
8
|
import 'zod/v4';
|
|
9
9
|
|
package/dist/v4/index.js
CHANGED
|
@@ -1918,6 +1918,7 @@ import {
|
|
|
1918
1918
|
arbitrum,
|
|
1919
1919
|
base,
|
|
1920
1920
|
baseSepolia,
|
|
1921
|
+
bsc,
|
|
1921
1922
|
mainnet,
|
|
1922
1923
|
monadTestnet,
|
|
1923
1924
|
unichain
|
|
@@ -1950,9 +1951,11 @@ var monad = /* @__PURE__ */ defineChain({
|
|
|
1950
1951
|
});
|
|
1951
1952
|
|
|
1952
1953
|
// src/constants.ts
|
|
1954
|
+
var WBNB_ADDRESS = "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c";
|
|
1953
1955
|
var WETH_ADDRESSES = {
|
|
1954
1956
|
[mainnet.id]: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
|
|
1955
1957
|
[arbitrum.id]: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
|
|
1958
|
+
[bsc.id]: WBNB_ADDRESS,
|
|
1956
1959
|
[base.id]: "0x4200000000000000000000000000000000000006",
|
|
1957
1960
|
[baseSepolia.id]: "0x4200000000000000000000000000000000000006",
|
|
1958
1961
|
[unichain.id]: "0x4200000000000000000000000000000000000006",
|
|
@@ -3869,6 +3872,7 @@ import {
|
|
|
3869
3872
|
arbitrum as arbitrum2,
|
|
3870
3873
|
base as base2,
|
|
3871
3874
|
baseSepolia as baseSepolia2,
|
|
3875
|
+
bsc as bsc2,
|
|
3872
3876
|
mainnet as mainnet2,
|
|
3873
3877
|
monadTestnet as monadTestnet2,
|
|
3874
3878
|
unichain as unichain2
|
|
@@ -6583,6 +6587,29 @@ var CLANKERS = {
|
|
|
6583
6587
|
feeStaticHookV2: "0x94F802a9EFE4dd542FdBd77a25D9e69A6dC828Cc",
|
|
6584
6588
|
feeDynamicHook: "0x0000000000000000000000000000000000000000"
|
|
6585
6589
|
}
|
|
6590
|
+
},
|
|
6591
|
+
clanker_v4_bnb: {
|
|
6592
|
+
abi: Clanker_v4_abi,
|
|
6593
|
+
token: {
|
|
6594
|
+
abi: ClankerToken_v4_abi,
|
|
6595
|
+
bytecode: ClankerToken_v4_bytecode
|
|
6596
|
+
},
|
|
6597
|
+
chainId: bsc2.id,
|
|
6598
|
+
type: "clanker_v4",
|
|
6599
|
+
address: "0xea30438E0B5f99096cb05A8Da63be55A6A298F6a",
|
|
6600
|
+
related: {
|
|
6601
|
+
locker: "0x1166022e1becc70E7E9aB2250aF1aC7842B9B420",
|
|
6602
|
+
vault: "0x15ee8382DBd8Fb991F653B59CA11bf504a07372D",
|
|
6603
|
+
airdrop: "0xBB0f069b995e0205cD5F92C84a1dF056a3F47900",
|
|
6604
|
+
devbuy: "0x302989E1cA167B6E78f9711e5a08d1BD555DdAc4",
|
|
6605
|
+
mevModule: "0xEE2940CC010820B7F22DF627e081d707693989a6",
|
|
6606
|
+
mevModuleV2: "0xec1310cf227a2D671176000aE0849DE6417b175a",
|
|
6607
|
+
feeLocker: "0x67D04Ae42F03D9b63dE0E6F2d82bB186A0306bBb",
|
|
6608
|
+
feeStaticHook: "0xC5d309026BCAb6630888d51CE21154AD2f4828cC",
|
|
6609
|
+
feeStaticHookV2: "0xC5d309026BCAb6630888d51CE21154AD2f4828cC",
|
|
6610
|
+
feeDynamicHook: "0x0000000000000000000000000000000000000000",
|
|
6611
|
+
feeDynamicHookV2: "0x011a8ed40095F2D7E9c19125B8254b19678D68Cc"
|
|
6612
|
+
}
|
|
6586
6613
|
}
|
|
6587
6614
|
};
|
|
6588
6615
|
var Chains = [...new Set(Object.values(CLANKERS).map(({ chainId }) => chainId))];
|