@lightprotocol/zk-compression-cli 0.20.0 → 0.20.1
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 +2 -4
- package/bin/prover-darwin-arm64 +0 -0
- package/bin/prover-darwin-x64 +0 -0
- package/bin/prover-linux-arm64 +0 -0
- package/bin/prover-linux-x64 +0 -0
- package/bin/prover-windows-arm64.exe +0 -0
- package/bin/prover-windows-x64.exe +0 -0
- package/oclif.manifest.json +97 -97
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ZK Compression CLI
|
|
2
2
|
|
|
3
|
-
CLI to interact with
|
|
3
|
+
CLI to interact with compressed accounts and compressed tokens on Solana.
|
|
4
4
|
|
|
5
5
|
## Requirements
|
|
6
6
|
|
|
@@ -179,9 +179,7 @@ FLAGS
|
|
|
179
179
|
|
|
180
180
|
```
|
|
181
181
|
|
|
182
|
-
####
|
|
183
|
-
|
|
184
|
-
> **Note:** Ensure the SOL omnibus account of the Light system program is already initialized by running: `light init-sol-pool`
|
|
182
|
+
#### Assign native SOL to a compressed account
|
|
185
183
|
|
|
186
184
|
```bash
|
|
187
185
|
light compress-sol --amount 1000 --to "YOUR_WALLET_ADDRESS_BASE58"
|
package/bin/prover-darwin-arm64
CHANGED
|
Binary file
|
package/bin/prover-darwin-x64
CHANGED
|
Binary file
|
package/bin/prover-linux-arm64
CHANGED
|
Binary file
|
package/bin/prover-linux-x64
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/oclif.manifest.json
CHANGED
|
@@ -1,112 +1,120 @@
|
|
|
1
1
|
{
|
|
2
2
|
"commands": {
|
|
3
|
-
"
|
|
3
|
+
"approve-and-mint-to": {
|
|
4
4
|
"aliases": [],
|
|
5
5
|
"args": {},
|
|
6
6
|
"examples": [
|
|
7
|
-
"$ light
|
|
7
|
+
"$ light approve-and-mint-to --mint PublicKey --to PublicKey --amount 1000"
|
|
8
8
|
],
|
|
9
9
|
"flags": {
|
|
10
|
-
"
|
|
11
|
-
"description": "
|
|
12
|
-
"name": "
|
|
13
|
-
"required":
|
|
10
|
+
"mint-authority": {
|
|
11
|
+
"description": "Specify the filepath of the mint authority keypair. Defaults to your local solana wallet.",
|
|
12
|
+
"name": "mint-authority",
|
|
13
|
+
"required": false,
|
|
14
14
|
"hasDynamicHelp": false,
|
|
15
15
|
"multiple": false,
|
|
16
16
|
"type": "option"
|
|
17
17
|
},
|
|
18
18
|
"mint": {
|
|
19
|
-
"description": "
|
|
19
|
+
"description": "Specify the mint address.",
|
|
20
20
|
"name": "mint",
|
|
21
21
|
"required": true,
|
|
22
22
|
"hasDynamicHelp": false,
|
|
23
23
|
"multiple": false,
|
|
24
24
|
"type": "option"
|
|
25
|
+
},
|
|
26
|
+
"to": {
|
|
27
|
+
"description": "Specify the recipient address.",
|
|
28
|
+
"name": "to",
|
|
29
|
+
"required": true,
|
|
30
|
+
"hasDynamicHelp": false,
|
|
31
|
+
"multiple": false,
|
|
32
|
+
"type": "option"
|
|
33
|
+
},
|
|
34
|
+
"amount": {
|
|
35
|
+
"description": "Amount to mint, in tokens.",
|
|
36
|
+
"name": "amount",
|
|
37
|
+
"required": true,
|
|
38
|
+
"hasDynamicHelp": false,
|
|
39
|
+
"multiple": false,
|
|
40
|
+
"type": "option"
|
|
25
41
|
}
|
|
26
42
|
},
|
|
27
43
|
"hasDynamicHelp": false,
|
|
28
44
|
"hiddenAliases": [],
|
|
29
|
-
"id": "
|
|
45
|
+
"id": "approve-and-mint-to",
|
|
30
46
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
31
47
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
32
48
|
"pluginType": "core",
|
|
33
49
|
"strict": true,
|
|
34
|
-
"summary": "
|
|
50
|
+
"summary": "Mint tokens to a compressed account via external mint authority",
|
|
35
51
|
"enableJsonFlag": false,
|
|
36
52
|
"isESM": false,
|
|
37
53
|
"relativePath": [
|
|
38
54
|
"dist",
|
|
39
55
|
"commands",
|
|
40
|
-
"
|
|
56
|
+
"approve-and-mint-to",
|
|
41
57
|
"index.js"
|
|
42
58
|
]
|
|
43
59
|
},
|
|
44
|
-
"
|
|
60
|
+
"balance": {
|
|
45
61
|
"aliases": [],
|
|
46
62
|
"args": {},
|
|
47
63
|
"examples": [
|
|
48
|
-
"$ light
|
|
64
|
+
"$ light balance --mint=<ADDRESS> --owner=<ADDRESS>"
|
|
49
65
|
],
|
|
50
66
|
"flags": {
|
|
51
|
-
"
|
|
52
|
-
"description": "
|
|
53
|
-
"name": "
|
|
54
|
-
"required":
|
|
67
|
+
"owner": {
|
|
68
|
+
"description": "Address of the compressed token owner.",
|
|
69
|
+
"name": "owner",
|
|
70
|
+
"required": true,
|
|
55
71
|
"hasDynamicHelp": false,
|
|
56
72
|
"multiple": false,
|
|
57
73
|
"type": "option"
|
|
58
74
|
},
|
|
59
75
|
"mint": {
|
|
60
|
-
"description": "
|
|
76
|
+
"description": "Mint address of the compressed token account.",
|
|
61
77
|
"name": "mint",
|
|
62
78
|
"required": true,
|
|
63
79
|
"hasDynamicHelp": false,
|
|
64
80
|
"multiple": false,
|
|
65
81
|
"type": "option"
|
|
66
|
-
},
|
|
67
|
-
"to": {
|
|
68
|
-
"description": "Specify the recipient address.",
|
|
69
|
-
"name": "to",
|
|
70
|
-
"required": true,
|
|
71
|
-
"hasDynamicHelp": false,
|
|
72
|
-
"multiple": false,
|
|
73
|
-
"type": "option"
|
|
74
|
-
},
|
|
75
|
-
"amount": {
|
|
76
|
-
"description": "Amount to mint, in tokens.",
|
|
77
|
-
"name": "amount",
|
|
78
|
-
"required": true,
|
|
79
|
-
"hasDynamicHelp": false,
|
|
80
|
-
"multiple": false,
|
|
81
|
-
"type": "option"
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
84
|
"hasDynamicHelp": false,
|
|
85
85
|
"hiddenAliases": [],
|
|
86
|
-
"id": "
|
|
86
|
+
"id": "balance",
|
|
87
87
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
88
88
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
89
89
|
"pluginType": "core",
|
|
90
90
|
"strict": true,
|
|
91
|
-
"summary": "
|
|
91
|
+
"summary": "Get balance",
|
|
92
92
|
"enableJsonFlag": false,
|
|
93
93
|
"isESM": false,
|
|
94
94
|
"relativePath": [
|
|
95
95
|
"dist",
|
|
96
96
|
"commands",
|
|
97
|
-
"
|
|
97
|
+
"balance",
|
|
98
98
|
"index.js"
|
|
99
99
|
]
|
|
100
100
|
},
|
|
101
|
-
"compress-
|
|
101
|
+
"compress-spl": {
|
|
102
102
|
"aliases": [],
|
|
103
103
|
"args": {},
|
|
104
104
|
"examples": [
|
|
105
|
-
"$ light compress-
|
|
105
|
+
"$ light compress-spl --mint PublicKey --to PublicKey --amount 10"
|
|
106
106
|
],
|
|
107
107
|
"flags": {
|
|
108
|
+
"mint": {
|
|
109
|
+
"description": "Specify the mint address.",
|
|
110
|
+
"name": "mint",
|
|
111
|
+
"required": true,
|
|
112
|
+
"hasDynamicHelp": false,
|
|
113
|
+
"multiple": false,
|
|
114
|
+
"type": "option"
|
|
115
|
+
},
|
|
108
116
|
"to": {
|
|
109
|
-
"description": "Specify the recipient address.",
|
|
117
|
+
"description": "Specify the recipient address (owner of destination compressed token account).",
|
|
110
118
|
"name": "to",
|
|
111
119
|
"required": true,
|
|
112
120
|
"hasDynamicHelp": false,
|
|
@@ -114,7 +122,7 @@
|
|
|
114
122
|
"type": "option"
|
|
115
123
|
},
|
|
116
124
|
"amount": {
|
|
117
|
-
"description": "Amount to compress, in
|
|
125
|
+
"description": "Amount to compress, in tokens.",
|
|
118
126
|
"name": "amount",
|
|
119
127
|
"required": true,
|
|
120
128
|
"hasDynamicHelp": false,
|
|
@@ -124,49 +132,40 @@
|
|
|
124
132
|
},
|
|
125
133
|
"hasDynamicHelp": false,
|
|
126
134
|
"hiddenAliases": [],
|
|
127
|
-
"id": "compress-
|
|
135
|
+
"id": "compress-spl",
|
|
128
136
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
129
137
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
130
138
|
"pluginType": "core",
|
|
131
139
|
"strict": true,
|
|
132
|
-
"summary": "Compress
|
|
140
|
+
"summary": "Compress SPL tokens.",
|
|
133
141
|
"enableJsonFlag": false,
|
|
134
142
|
"isESM": false,
|
|
135
143
|
"relativePath": [
|
|
136
144
|
"dist",
|
|
137
145
|
"commands",
|
|
138
|
-
"compress-
|
|
146
|
+
"compress-spl",
|
|
139
147
|
"index.js"
|
|
140
148
|
]
|
|
141
149
|
},
|
|
142
|
-
"
|
|
150
|
+
"compress-sol": {
|
|
143
151
|
"aliases": [],
|
|
144
152
|
"args": {},
|
|
145
153
|
"examples": [
|
|
146
|
-
"$ light
|
|
154
|
+
"$ light compress-sol --to PublicKey --amount 10"
|
|
147
155
|
],
|
|
148
156
|
"flags": {
|
|
149
|
-
"
|
|
150
|
-
"description": "
|
|
151
|
-
"name": "
|
|
152
|
-
"required":
|
|
153
|
-
"hasDynamicHelp": false,
|
|
154
|
-
"multiple": false,
|
|
155
|
-
"type": "option"
|
|
156
|
-
},
|
|
157
|
-
"mint-authority": {
|
|
158
|
-
"description": "Address of the mint authority. Defaults to the fee payer",
|
|
159
|
-
"name": "mint-authority",
|
|
160
|
-
"required": false,
|
|
157
|
+
"to": {
|
|
158
|
+
"description": "Specify the recipient address.",
|
|
159
|
+
"name": "to",
|
|
160
|
+
"required": true,
|
|
161
161
|
"hasDynamicHelp": false,
|
|
162
162
|
"multiple": false,
|
|
163
163
|
"type": "option"
|
|
164
164
|
},
|
|
165
|
-
"
|
|
166
|
-
"description": "
|
|
167
|
-
"name": "
|
|
168
|
-
"required":
|
|
169
|
-
"default": 9,
|
|
165
|
+
"amount": {
|
|
166
|
+
"description": "Amount to compress, in lamports.",
|
|
167
|
+
"name": "amount",
|
|
168
|
+
"required": true,
|
|
170
169
|
"hasDynamicHelp": false,
|
|
171
170
|
"multiple": false,
|
|
172
171
|
"type": "option"
|
|
@@ -174,18 +173,18 @@
|
|
|
174
173
|
},
|
|
175
174
|
"hasDynamicHelp": false,
|
|
176
175
|
"hiddenAliases": [],
|
|
177
|
-
"id": "
|
|
176
|
+
"id": "compress-sol",
|
|
178
177
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
179
178
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
180
179
|
"pluginType": "core",
|
|
181
180
|
"strict": true,
|
|
182
|
-
"summary": "
|
|
181
|
+
"summary": "Compress SOL.",
|
|
183
182
|
"enableJsonFlag": false,
|
|
184
183
|
"isESM": false,
|
|
185
184
|
"relativePath": [
|
|
186
185
|
"dist",
|
|
187
186
|
"commands",
|
|
188
|
-
"
|
|
187
|
+
"compress-sol",
|
|
189
188
|
"index.js"
|
|
190
189
|
]
|
|
191
190
|
},
|
|
@@ -295,17 +294,34 @@
|
|
|
295
294
|
"index.js"
|
|
296
295
|
]
|
|
297
296
|
},
|
|
298
|
-
"create-
|
|
297
|
+
"create-mint": {
|
|
299
298
|
"aliases": [],
|
|
300
299
|
"args": {},
|
|
301
300
|
"examples": [
|
|
302
|
-
"$ light create-
|
|
301
|
+
"$ light create-mint --mint-decimals 5"
|
|
303
302
|
],
|
|
304
303
|
"flags": {
|
|
305
|
-
"mint": {
|
|
306
|
-
"description": "Provide a
|
|
307
|
-
"name": "mint",
|
|
308
|
-
"required":
|
|
304
|
+
"mint-keypair": {
|
|
305
|
+
"description": "Provide a path to a mint keypair file. Defaults to a random keypair",
|
|
306
|
+
"name": "mint-keypair",
|
|
307
|
+
"required": false,
|
|
308
|
+
"hasDynamicHelp": false,
|
|
309
|
+
"multiple": false,
|
|
310
|
+
"type": "option"
|
|
311
|
+
},
|
|
312
|
+
"mint-authority": {
|
|
313
|
+
"description": "Address of the mint authority. Defaults to the fee payer",
|
|
314
|
+
"name": "mint-authority",
|
|
315
|
+
"required": false,
|
|
316
|
+
"hasDynamicHelp": false,
|
|
317
|
+
"multiple": false,
|
|
318
|
+
"type": "option"
|
|
319
|
+
},
|
|
320
|
+
"mint-decimals": {
|
|
321
|
+
"description": "Number of base 10 digits to the right of the decimal place [default: 9]",
|
|
322
|
+
"name": "mint-decimals",
|
|
323
|
+
"required": false,
|
|
324
|
+
"default": 9,
|
|
309
325
|
"hasDynamicHelp": false,
|
|
310
326
|
"multiple": false,
|
|
311
327
|
"type": "option"
|
|
@@ -313,67 +329,51 @@
|
|
|
313
329
|
},
|
|
314
330
|
"hasDynamicHelp": false,
|
|
315
331
|
"hiddenAliases": [],
|
|
316
|
-
"id": "create-
|
|
332
|
+
"id": "create-mint",
|
|
317
333
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
318
334
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
319
335
|
"pluginType": "core",
|
|
320
336
|
"strict": true,
|
|
321
|
-
"summary": "
|
|
337
|
+
"summary": "Create a new compressed token mint",
|
|
322
338
|
"enableJsonFlag": false,
|
|
323
339
|
"isESM": false,
|
|
324
340
|
"relativePath": [
|
|
325
341
|
"dist",
|
|
326
342
|
"commands",
|
|
327
|
-
"create-
|
|
343
|
+
"create-mint",
|
|
328
344
|
"index.js"
|
|
329
345
|
]
|
|
330
346
|
},
|
|
331
|
-
"
|
|
347
|
+
"create-token-pool": {
|
|
332
348
|
"aliases": [],
|
|
333
349
|
"args": {},
|
|
334
350
|
"examples": [
|
|
335
|
-
"$ light
|
|
351
|
+
"$ light create-token-pool --mint-decimals 5"
|
|
336
352
|
],
|
|
337
353
|
"flags": {
|
|
338
354
|
"mint": {
|
|
339
|
-
"description": "
|
|
355
|
+
"description": "Provide a base58 encoded mint address to register",
|
|
340
356
|
"name": "mint",
|
|
341
357
|
"required": true,
|
|
342
358
|
"hasDynamicHelp": false,
|
|
343
359
|
"multiple": false,
|
|
344
360
|
"type": "option"
|
|
345
|
-
},
|
|
346
|
-
"to": {
|
|
347
|
-
"description": "Specify the recipient address (owner of destination compressed token account).",
|
|
348
|
-
"name": "to",
|
|
349
|
-
"required": true,
|
|
350
|
-
"hasDynamicHelp": false,
|
|
351
|
-
"multiple": false,
|
|
352
|
-
"type": "option"
|
|
353
|
-
},
|
|
354
|
-
"amount": {
|
|
355
|
-
"description": "Amount to compress, in tokens.",
|
|
356
|
-
"name": "amount",
|
|
357
|
-
"required": true,
|
|
358
|
-
"hasDynamicHelp": false,
|
|
359
|
-
"multiple": false,
|
|
360
|
-
"type": "option"
|
|
361
361
|
}
|
|
362
362
|
},
|
|
363
363
|
"hasDynamicHelp": false,
|
|
364
364
|
"hiddenAliases": [],
|
|
365
|
-
"id": "
|
|
365
|
+
"id": "create-token-pool",
|
|
366
366
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
367
367
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
368
368
|
"pluginType": "core",
|
|
369
369
|
"strict": true,
|
|
370
|
-
"summary": "
|
|
370
|
+
"summary": "Register an existing mint with the CompressedToken program",
|
|
371
371
|
"enableJsonFlag": false,
|
|
372
372
|
"isESM": false,
|
|
373
373
|
"relativePath": [
|
|
374
374
|
"dist",
|
|
375
375
|
"commands",
|
|
376
|
-
"
|
|
376
|
+
"create-token-pool",
|
|
377
377
|
"index.js"
|
|
378
378
|
]
|
|
379
379
|
},
|
|
@@ -873,5 +873,5 @@
|
|
|
873
873
|
]
|
|
874
874
|
}
|
|
875
875
|
},
|
|
876
|
-
"version": "0.20.
|
|
876
|
+
"version": "0.20.1"
|
|
877
877
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightprotocol/zk-compression-cli",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.1",
|
|
4
4
|
"description": "ZK Compression: Secure Scaling on Solana",
|
|
5
5
|
"maintainers": [
|
|
6
6
|
{
|
|
@@ -55,9 +55,9 @@
|
|
|
55
55
|
"tweetnacl": "^1.0.3",
|
|
56
56
|
"wait-on": "^7.2.0",
|
|
57
57
|
"which": "^4.0.0",
|
|
58
|
-
"@lightprotocol/
|
|
59
|
-
"@lightprotocol/stateless.js": "0.15.
|
|
60
|
-
"@lightprotocol/
|
|
58
|
+
"@lightprotocol/compressed-token": "0.15.1",
|
|
59
|
+
"@lightprotocol/stateless.js": "0.15.1",
|
|
60
|
+
"@lightprotocol/hasher.rs": "0.2.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@oclif/test": "2.3.9",
|