clanker-sdk 4.2.11 → 4.2.12
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/README.md +42 -9
- package/dist/{deploy-ydUPEH-J.d.ts → clankerTokenV4-DoIzm6GW.d.ts} +1 -6
- package/dist/cli/cli.js +10457 -7352
- package/dist/cli/commands/airdrop.d.ts +8 -0
- package/dist/cli/commands/airdrop.js +8524 -0
- package/dist/cli/commands/deploy.d.ts +14 -0
- package/dist/cli/commands/deploy.js +9883 -0
- package/dist/cli/commands/presale.d.ts +5 -0
- package/dist/cli/commands/presale.js +9340 -0
- package/dist/cli/commands/rewards.d.ts +5 -0
- package/dist/cli/commands/rewards.js +8235 -0
- package/dist/cli/commands/setup.d.ts +5 -0
- package/dist/cli/commands/setup.js +314 -0
- package/dist/cli/commands/token.d.ts +5 -0
- package/dist/cli/commands/token.js +8120 -0
- package/dist/cli/commands/vault.d.ts +5 -0
- package/dist/cli/commands/vault.js +8128 -0
- package/dist/cli/create-clanker.js +1 -1
- package/dist/cli/utils/chains.d.ts +6 -0
- package/dist/cli/utils/chains.js +51 -0
- package/dist/cli/utils/config.d.ts +10 -0
- package/dist/cli/utils/config.js +31 -0
- package/dist/cli/utils/output.d.ts +14 -0
- package/dist/cli/utils/output.js +209 -0
- package/dist/cli/utils/style.d.ts +49 -0
- package/dist/cli/utils/style.js +129 -0
- package/dist/cli/utils/wallet.d.ts +22 -0
- package/dist/cli/utils/wallet.js +108 -0
- package/dist/deploy-BUDlDPzt.d.ts +6 -0
- package/dist/index.d.ts +5 -15
- package/dist/index.js +1 -1
- package/dist/legacyFeeClaims/index.js +1 -1
- package/dist/merkleTree-BNYdIOkH.d.ts +15 -0
- package/dist/v3/index.d.ts +4 -4
- package/dist/v3/index.js +1 -1
- package/dist/v4/extensions/index.d.ts +2 -1
- package/dist/v4/extensions/index.js +1 -1
- package/dist/v4/index.d.ts +5 -4
- package/dist/v4/index.js +1 -1
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export { C as ClankerTokenV3 } from './clankerTokenV3-BqHTF9QY.js';
|
|
2
|
-
import { a as Chain, C as ClankerTokenV4, b as ClankerDeployment } from './
|
|
3
|
-
export { d as CLANKERS, g as Chains, h as ClankerDeployments, f as Clankers,
|
|
2
|
+
import { a as Chain, C as ClankerTokenV4, b as ClankerDeployment } from './clankerTokenV4-DoIzm6GW.js';
|
|
3
|
+
export { d as CLANKERS, g as Chains, h as ClankerDeployments, f as Clankers, R as RelatedV3_1, c as RelatedV4, T as Type, i as clankerConfigFor } from './clankerTokenV4-DoIzm6GW.js';
|
|
4
|
+
export { D as DeployTokenOptions } from './deploy-BUDlDPzt.js';
|
|
4
5
|
import { ContractConstructorArgs, Hex, PublicClient } from 'viem';
|
|
5
6
|
import { C as ClankerToken_v3_1_abi, a as ClankerToken_v4_abi } from './ClankerToken-Dra5lppJ.js';
|
|
7
|
+
export { A as AirdropEntry, c as createMerkleTree, e as encodeAirdropData, g as getMerkleProof } from './merkleTree-BNYdIOkH.js';
|
|
6
8
|
import { StandardMerkleTree } from '@openzeppelin/merkle-tree';
|
|
7
9
|
import 'zod/v4';
|
|
8
10
|
|
|
@@ -102,18 +104,6 @@ declare function getTickFromMarketCapUSDC(marketCapUSDC: number, tickSpacing?: n
|
|
|
102
104
|
*/
|
|
103
105
|
declare function getTickFromMarketCapStable(marketCap: number, stableDecimals: number, tickSpacing?: number): number;
|
|
104
106
|
|
|
105
|
-
interface AirdropEntry {
|
|
106
|
-
account: `0x${string}`;
|
|
107
|
-
amount: number;
|
|
108
|
-
}
|
|
109
|
-
declare function createMerkleTree(entries: AirdropEntry[]): {
|
|
110
|
-
tree: StandardMerkleTree<[string, string]>;
|
|
111
|
-
root: `0x${string}`;
|
|
112
|
-
entries: [string, string][];
|
|
113
|
-
};
|
|
114
|
-
declare function getMerkleProof(tree: StandardMerkleTree<[string, string]>, entries: [string, string][], account: `0x${string}`, amount: number): `0x${string}`[];
|
|
115
|
-
declare function encodeAirdropData(merkleRoot: `0x${string}`, lockupDuration: number, vestingDuration: number): `0x${string}`;
|
|
116
|
-
|
|
117
107
|
/**
|
|
118
108
|
* Represents an allowlist entry with an address and allowed ETH amount
|
|
119
109
|
*/
|
|
@@ -245,4 +235,4 @@ declare function verifyBuyerAllowance(publicClient: PublicClient, presaleId: big
|
|
|
245
235
|
allowedAmountWei: bigint;
|
|
246
236
|
}>;
|
|
247
237
|
|
|
248
|
-
export { A0X_ADDRESS, ANON_ADDRESS, type
|
|
238
|
+
export { A0X_ADDRESS, ANON_ADDRESS, 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, encodeAllowlistInitializationData, encodeAllowlistProofData, findVanityAddress, findVanityAddressV4, getAllowedAmountForBuyer, getAllowlistAddress, getAllowlistInfo, getAllowlistMerkleProof, getTickFromMarketCap, getTickFromMarketCapStable, getTickFromMarketCapUSDC, predictTokenAddressV4, verifyBuyerAllowance };
|
package/dist/index.js
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { StandardMerkleTree } from '@openzeppelin/merkle-tree';
|
|
2
|
+
|
|
3
|
+
interface AirdropEntry {
|
|
4
|
+
account: `0x${string}`;
|
|
5
|
+
amount: number;
|
|
6
|
+
}
|
|
7
|
+
declare function createMerkleTree(entries: AirdropEntry[]): {
|
|
8
|
+
tree: StandardMerkleTree<[string, string]>;
|
|
9
|
+
root: `0x${string}`;
|
|
10
|
+
entries: [string, string][];
|
|
11
|
+
};
|
|
12
|
+
declare function getMerkleProof(tree: StandardMerkleTree<[string, string]>, entries: [string, string][], account: `0x${string}`, amount: number): `0x${string}`[];
|
|
13
|
+
declare function encodeAirdropData(merkleRoot: `0x${string}`, lockupDuration: number, vestingDuration: number): `0x${string}`;
|
|
14
|
+
|
|
15
|
+
export { type AirdropEntry as A, createMerkleTree as c, encodeAirdropData as e, getMerkleProof as g };
|
package/dist/v3/index.d.ts
CHANGED
|
@@ -877,7 +877,7 @@ declare class Clanker {
|
|
|
877
877
|
}];
|
|
878
878
|
readonly stateMutability: "view";
|
|
879
879
|
readonly type: "function";
|
|
880
|
-
}], "
|
|
880
|
+
}], "deployToken" | "renounceOwnership" | "transferOwnership" | "updateLiquidityLocker" | "setDeprecated" | "claimRewards" | "setAdmin" | "deployTokenWithCustomTeamRewardRecipient" | "deployTokenZeroSupply" | "initialize" | "updateVault"> & {
|
|
881
881
|
error?: undefined;
|
|
882
882
|
}) | ({
|
|
883
883
|
result?: undefined;
|
|
@@ -2256,7 +2256,7 @@ declare class Clanker {
|
|
|
2256
2256
|
readonly outputs: readonly [];
|
|
2257
2257
|
readonly stateMutability: "nonpayable";
|
|
2258
2258
|
readonly type: "function";
|
|
2259
|
-
}], "renounceOwnership" | "transferOwnership" | "
|
|
2259
|
+
}], "renounceOwnership" | "transferOwnership" | "addTokenReward" | "collectRewards" | "onERC721Received" | "setOverrideTeamRewardRecipientForToken" | "updateCreatorRewardAdmin" | "updateCreatorRewardRecipient" | "updateInterfaceRewardAdmin" | "updateInterfaceRewardRecipient" | "updateTeamRecipient" | "withdrawERC20" | "withdrawETH"> & {
|
|
2260
2260
|
error?: undefined;
|
|
2261
2261
|
}) | ({
|
|
2262
2262
|
result?: undefined;
|
|
@@ -3636,7 +3636,7 @@ declare class Clanker {
|
|
|
3636
3636
|
readonly outputs: readonly [];
|
|
3637
3637
|
readonly stateMutability: "nonpayable";
|
|
3638
3638
|
readonly type: "function";
|
|
3639
|
-
}], "renounceOwnership" | "transferOwnership" | "
|
|
3639
|
+
}], "renounceOwnership" | "transferOwnership" | "addTokenReward" | "collectRewards" | "onERC721Received" | "setOverrideTeamRewardRecipientForToken" | "updateCreatorRewardAdmin" | "updateCreatorRewardRecipient" | "updateInterfaceRewardAdmin" | "updateInterfaceRewardRecipient" | "updateTeamRecipient" | "withdrawERC20" | "withdrawETH"> & {
|
|
3640
3640
|
error?: undefined;
|
|
3641
3641
|
}) | ({
|
|
3642
3642
|
result?: undefined;
|
|
@@ -4519,7 +4519,7 @@ declare class Clanker {
|
|
|
4519
4519
|
* @param requestorAddress Requestor for the deployment. Various admins will fall back to this.
|
|
4520
4520
|
* @returns Abi transaction
|
|
4521
4521
|
*/
|
|
4522
|
-
deploySimulate(token: ClankerTokenV3, account?: Account): Promise<(viem.SimulateContractReturnType<ClankerFactory, "
|
|
4522
|
+
deploySimulate(token: ClankerTokenV3, account?: Account): Promise<(viem.SimulateContractReturnType<ClankerFactory, "deployToken" | "renounceOwnership" | "transferOwnership" | "updateLiquidityLocker" | "setDeprecated" | "claimRewards" | "setAdmin" | "deployTokenWithCustomTeamRewardRecipient" | "deployTokenZeroSupply" | "initialize" | "updateVault" | "claimTeamFees" | "setExtension" | "setHook" | "setLocker" | "setMevModule" | "setTeamFeeRecipient"> & {
|
|
4523
4523
|
error?: undefined;
|
|
4524
4524
|
}) | ({
|
|
4525
4525
|
result?: undefined;
|
package/dist/v3/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
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 '../../
|
|
4
|
+
import { a as Chain, C as ClankerTokenV4 } from '../../clankerTokenV4-DoIzm6GW.js';
|
|
5
5
|
import { Clanker } from '../index.js';
|
|
6
6
|
import { C as ClankerError } from '../../errors-5Gv28Tkr.js';
|
|
7
7
|
import 'viem';
|
|
8
8
|
import '../../ClankerToken-Dra5lppJ.js';
|
|
9
|
+
import '../../deploy-BUDlDPzt.js';
|
|
9
10
|
|
|
10
11
|
declare const AirdropEntrySchema: z.ZodArray<z.ZodObject<{
|
|
11
12
|
account: z.ZodCustom<`0x${string}`, `0x${string}`>;
|
package/dist/v4/index.d.ts
CHANGED
|
@@ -2,8 +2,9 @@ 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
|
|
6
|
-
export { e as encodeFeeConfig } from '../
|
|
5
|
+
import { C as ClankerTokenV4 } from '../clankerTokenV4-DoIzm6GW.js';
|
|
6
|
+
export { e as encodeFeeConfig } from '../clankerTokenV4-DoIzm6GW.js';
|
|
7
|
+
import { D as DeployTokenOptions } from '../deploy-BUDlDPzt.js';
|
|
7
8
|
import { C as ClankerError } from '../errors-5Gv28Tkr.js';
|
|
8
9
|
import 'zod/v4';
|
|
9
10
|
|
|
@@ -331,7 +332,7 @@ declare class Clanker {
|
|
|
331
332
|
readonly outputs: readonly [];
|
|
332
333
|
readonly stateMutability: "nonpayable";
|
|
333
334
|
readonly type: "function";
|
|
334
|
-
}], "
|
|
335
|
+
}], "claim" | "renounceOwnership" | "transferOwnership" | "addDepositor" | "storeFees"> & {
|
|
335
336
|
error?: undefined;
|
|
336
337
|
}) | ({
|
|
337
338
|
result?: undefined;
|
|
@@ -1506,7 +1507,7 @@ declare class Clanker {
|
|
|
1506
1507
|
* @param account Optional account for the deployer
|
|
1507
1508
|
* @returns Abi transaction
|
|
1508
1509
|
*/
|
|
1509
|
-
deploySimulate(token: ClankerTokenV4, account?: Account): Promise<(viem.SimulateContractReturnType<ClankerFactory, "
|
|
1510
|
+
deploySimulate(token: ClankerTokenV4, account?: Account): Promise<(viem.SimulateContractReturnType<ClankerFactory, "deployToken" | "renounceOwnership" | "transferOwnership" | "updateLiquidityLocker" | "setDeprecated" | "claimRewards" | "setAdmin" | "deployTokenWithCustomTeamRewardRecipient" | "deployTokenZeroSupply" | "initialize" | "updateVault" | "claimTeamFees" | "setExtension" | "setHook" | "setLocker" | "setMevModule" | "setTeamFeeRecipient"> & {
|
|
1510
1511
|
error?: undefined;
|
|
1511
1512
|
}) | ({
|
|
1512
1513
|
result?: undefined;
|
package/dist/v4/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clanker-sdk",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.12",
|
|
4
4
|
"description": "SDK for deploying tokens using Clanker",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@openzeppelin/merkle-tree": "^1.0.8",
|
|
40
40
|
"abitype": "^1.0.8",
|
|
41
|
+
"commander": "^14.0.3",
|
|
41
42
|
"inquirer": "^8.2.6",
|
|
42
43
|
"viem": "^2.38.3",
|
|
43
44
|
"zod": "^4.1.12"
|