clanker-sdk 4.2.10 → 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-BvFgwMVl.d.ts → clankerTokenV4-DoIzm6GW.d.ts} +1822 -9
- package/dist/cli/cli.js +10456 -7324
- 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 +29 -2
- 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 +25 -16
- package/dist/index.js +36 -2
- package/dist/legacyFeeClaims/index.js +25 -1
- package/dist/merkleTree-BNYdIOkH.d.ts +15 -0
- package/dist/v3/index.d.ts +4 -4
- package/dist/v3/index.js +28 -1
- package/dist/v4/extensions/index.d.ts +2 -1
- package/dist/v4/extensions/index.js +28 -1
- package/dist/v4/index.d.ts +5 -4
- package/dist/v4/index.js +28 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -11,23 +11,56 @@ yarn add clanker-sdk viem
|
|
|
11
11
|
# or
|
|
12
12
|
pnpm add clanker-sdk viem
|
|
13
13
|
```
|
|
14
|
-
npm run create-clanker
|
|
15
|
-
node --loader ts-node/esm examples/deploy.ts
|
|
16
14
|
|
|
17
|
-
##
|
|
15
|
+
## CLI
|
|
18
16
|
|
|
19
|
-
|
|
17
|
+
The Clanker SDK ships a CLI for deploying and managing tokens directly from your terminal.
|
|
20
18
|
|
|
21
|
-
###
|
|
19
|
+
### Install globally
|
|
22
20
|
|
|
23
|
-
Run the following command to use our interactive CLI tool:
|
|
24
21
|
```bash
|
|
25
|
-
npm
|
|
22
|
+
npm install -g clanker-sdk
|
|
26
23
|
```
|
|
27
24
|
|
|
28
|
-
|
|
25
|
+
Then run commands with:
|
|
29
26
|
|
|
30
|
-
|
|
27
|
+
```bash
|
|
28
|
+
clanker-sdk deploy --name "MyToken" --symbol "MTK" --chain base
|
|
29
|
+
clanker-sdk rewards claim --token 0x...
|
|
30
|
+
clanker-sdk vault claim --token 0x...
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Or use npx (no install)
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
npx clanker-sdk deploy --name "MyToken" --symbol "MTK" --chain base
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Available commands
|
|
40
|
+
|
|
41
|
+
| Command | Description |
|
|
42
|
+
|---------|-------------|
|
|
43
|
+
| `setup` | Save default wallet & chain config |
|
|
44
|
+
| `deploy` | Deploy a new token (V3 or V4) |
|
|
45
|
+
| `rewards` | Claim rewards, update recipients/admins |
|
|
46
|
+
| `vault` | Claim vaulted tokens |
|
|
47
|
+
|
|
48
|
+
| `airdrop` | Generate Merkle trees, register & claim airdrops |
|
|
49
|
+
| `token` | Update token image & metadata |
|
|
50
|
+
|
|
51
|
+
### Global options
|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
--chain <name> Target chain (base, base-sepolia, bsc, etc.)
|
|
55
|
+
--rpc <url> Custom RPC URL
|
|
56
|
+
--private-key <key> Wallet private key (or set PRIVATE_KEY env)
|
|
57
|
+
--json Output machine-readable JSON
|
|
58
|
+
--dry-run Simulate transaction without sending
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Run `clanker-sdk <command> --help` for details on any command.
|
|
62
|
+
|
|
63
|
+
## TypeScript SDK
|
|
31
64
|
|
|
32
65
|
1. Create a `.env` file with your configuration:
|
|
33
66
|
```env
|