@lightprotocol/zk-compression-cli 0.4.6 → 0.5.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/accounts/address_merkle_tree_C83cpRN6oaafjNgMQJvaYgAz592EP5wunKvbokeTKPLn.json +1 -1
- package/accounts/address_merkle_tree_queue_HNjtNrjt6irUPYEgxhx2Vcs42koK9fxzm3aFLHVaaRWz.json +1 -1
- package/accounts/cpi_context_Bvux5m7rMGXJfjNCKUXHaRMcVJCiDe6iWu8ANj8kpwu5.json +1 -1
- package/accounts/merkle_tree_pubkey_5bdFnXU47QjzGpzHfXnxcEi5WXyxzEAZzd1vrE39bf1W.json +1 -1
- package/accounts/nullifier_queue_pubkey_44J4oDXpjPAbzHCSc24q7NEiPekss4sAbLd8ka4gd9CZ.json +1 -1
- package/bin/account_compression.so +0 -0
- package/bin/forester +0 -0
- package/bin/forester.toml +5 -3
- package/bin/light_compressed_token.so +0 -0
- package/bin/light_registry.so +0 -0
- package/bin/light_system_program.so +0 -0
- 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/dist/index.js +0 -1
- package/dist/psp-utils/download.js +2 -3
- package/dist/utils/constants.d.ts +1 -1
- package/dist/utils/constants.js +1 -1
- package/dist/utils/initTestEnv.js +5 -6
- package/dist/utils/process.js +7 -8
- package/dist/utils/processForester.js +3 -4
- package/dist/utils/processPhotonIndexer.js +1 -2
- package/dist/utils/processProverServer.js +3 -4
- package/dist/utils/utils.js +7 -7
- package/oclif.manifest.json +116 -116
- package/package.json +9 -9
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,46 @@
|
|
|
1
1
|
{
|
|
2
2
|
"commands": {
|
|
3
|
+
"balance": {
|
|
4
|
+
"aliases": [],
|
|
5
|
+
"args": {},
|
|
6
|
+
"examples": [
|
|
7
|
+
"$ light balance --mint=<ADDRESS> --owner=<ADDRESS>"
|
|
8
|
+
],
|
|
9
|
+
"flags": {
|
|
10
|
+
"owner": {
|
|
11
|
+
"description": "Address of the compressed token owner.",
|
|
12
|
+
"name": "owner",
|
|
13
|
+
"required": true,
|
|
14
|
+
"hasDynamicHelp": false,
|
|
15
|
+
"multiple": false,
|
|
16
|
+
"type": "option"
|
|
17
|
+
},
|
|
18
|
+
"mint": {
|
|
19
|
+
"description": "Mint address of the compressed token account.",
|
|
20
|
+
"name": "mint",
|
|
21
|
+
"required": true,
|
|
22
|
+
"hasDynamicHelp": false,
|
|
23
|
+
"multiple": false,
|
|
24
|
+
"type": "option"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"hasDynamicHelp": false,
|
|
28
|
+
"hiddenAliases": [],
|
|
29
|
+
"id": "balance",
|
|
30
|
+
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
31
|
+
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
32
|
+
"pluginType": "core",
|
|
33
|
+
"strict": true,
|
|
34
|
+
"summary": "Get balance",
|
|
35
|
+
"enableJsonFlag": false,
|
|
36
|
+
"isESM": false,
|
|
37
|
+
"relativePath": [
|
|
38
|
+
"dist",
|
|
39
|
+
"commands",
|
|
40
|
+
"balance",
|
|
41
|
+
"index.js"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
3
44
|
"approve-and-mint-to": {
|
|
4
45
|
"aliases": [],
|
|
5
46
|
"args": {},
|
|
@@ -57,24 +98,24 @@
|
|
|
57
98
|
"index.js"
|
|
58
99
|
]
|
|
59
100
|
},
|
|
60
|
-
"
|
|
101
|
+
"compress-sol": {
|
|
61
102
|
"aliases": [],
|
|
62
103
|
"args": {},
|
|
63
104
|
"examples": [
|
|
64
|
-
"$ light
|
|
105
|
+
"$ light compress-sol --to PublicKey --amount 10"
|
|
65
106
|
],
|
|
66
107
|
"flags": {
|
|
67
|
-
"
|
|
68
|
-
"description": "
|
|
69
|
-
"name": "
|
|
108
|
+
"to": {
|
|
109
|
+
"description": "Specify the recipient address.",
|
|
110
|
+
"name": "to",
|
|
70
111
|
"required": true,
|
|
71
112
|
"hasDynamicHelp": false,
|
|
72
113
|
"multiple": false,
|
|
73
114
|
"type": "option"
|
|
74
115
|
},
|
|
75
|
-
"
|
|
76
|
-
"description": "
|
|
77
|
-
"name": "
|
|
116
|
+
"amount": {
|
|
117
|
+
"description": "Amount to compress, in lamports.",
|
|
118
|
+
"name": "amount",
|
|
78
119
|
"required": true,
|
|
79
120
|
"hasDynamicHelp": false,
|
|
80
121
|
"multiple": false,
|
|
@@ -83,18 +124,18 @@
|
|
|
83
124
|
},
|
|
84
125
|
"hasDynamicHelp": false,
|
|
85
126
|
"hiddenAliases": [],
|
|
86
|
-
"id": "
|
|
127
|
+
"id": "compress-sol",
|
|
87
128
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
88
129
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
89
130
|
"pluginType": "core",
|
|
90
131
|
"strict": true,
|
|
91
|
-
"summary": "
|
|
132
|
+
"summary": "Compress SOL.",
|
|
92
133
|
"enableJsonFlag": false,
|
|
93
134
|
"isESM": false,
|
|
94
135
|
"relativePath": [
|
|
95
136
|
"dist",
|
|
96
137
|
"commands",
|
|
97
|
-
"
|
|
138
|
+
"compress-sol",
|
|
98
139
|
"index.js"
|
|
99
140
|
]
|
|
100
141
|
},
|
|
@@ -147,94 +188,109 @@
|
|
|
147
188
|
"index.js"
|
|
148
189
|
]
|
|
149
190
|
},
|
|
150
|
-
"
|
|
191
|
+
"config:config": {
|
|
151
192
|
"aliases": [],
|
|
152
193
|
"args": {},
|
|
194
|
+
"description": "Initialize or update the configuration values. The default config path is ~/.config/light/config.json you can set up a custom path with an environment variable export LIGHT_PROTOCOL_CONFIG=path/to/config.json",
|
|
153
195
|
"examples": [
|
|
154
|
-
"$ light
|
|
196
|
+
"$ light config --solanaRpcUrl https://solana-api.example.com"
|
|
155
197
|
],
|
|
156
198
|
"flags": {
|
|
157
|
-
"
|
|
158
|
-
"description": "
|
|
159
|
-
"name": "
|
|
160
|
-
"required": true,
|
|
199
|
+
"solanaRpcUrl": {
|
|
200
|
+
"description": "Solana RPC url",
|
|
201
|
+
"name": "solanaRpcUrl",
|
|
161
202
|
"hasDynamicHelp": false,
|
|
162
203
|
"multiple": false,
|
|
163
204
|
"type": "option"
|
|
164
205
|
},
|
|
165
|
-
"
|
|
166
|
-
"description": "
|
|
167
|
-
"name": "
|
|
168
|
-
"required": true,
|
|
206
|
+
"indexerUrl": {
|
|
207
|
+
"description": "Indexer url",
|
|
208
|
+
"name": "indexerUrl",
|
|
169
209
|
"hasDynamicHelp": false,
|
|
170
210
|
"multiple": false,
|
|
171
211
|
"type": "option"
|
|
212
|
+
},
|
|
213
|
+
"proverUrl": {
|
|
214
|
+
"description": "Prover url",
|
|
215
|
+
"name": "proverUrl",
|
|
216
|
+
"hasDynamicHelp": false,
|
|
217
|
+
"multiple": false,
|
|
218
|
+
"type": "option"
|
|
219
|
+
},
|
|
220
|
+
"get": {
|
|
221
|
+
"description": "Gets the current config values",
|
|
222
|
+
"name": "get",
|
|
223
|
+
"required": false,
|
|
224
|
+
"allowNo": false,
|
|
225
|
+
"type": "boolean"
|
|
172
226
|
}
|
|
173
227
|
},
|
|
174
228
|
"hasDynamicHelp": false,
|
|
175
229
|
"hiddenAliases": [],
|
|
176
|
-
"id": "
|
|
230
|
+
"id": "config:config",
|
|
177
231
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
178
232
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
179
233
|
"pluginType": "core",
|
|
180
234
|
"strict": true,
|
|
181
|
-
"summary": "Compress SOL.",
|
|
182
235
|
"enableJsonFlag": false,
|
|
183
236
|
"isESM": false,
|
|
184
237
|
"relativePath": [
|
|
185
238
|
"dist",
|
|
186
239
|
"commands",
|
|
187
|
-
"
|
|
240
|
+
"config",
|
|
188
241
|
"index.js"
|
|
189
242
|
]
|
|
190
243
|
},
|
|
191
|
-
"
|
|
244
|
+
"config": {
|
|
192
245
|
"aliases": [],
|
|
193
246
|
"args": {},
|
|
247
|
+
"description": "Initialize or update the configuration values. The default config path is ~/.config/light/config.json you can set up a custom path with an environment variable export LIGHT_PROTOCOL_CONFIG=path/to/config.json",
|
|
194
248
|
"examples": [
|
|
195
|
-
"$ light
|
|
249
|
+
"$ light config --solanaRpcUrl https://solana-api.example.com"
|
|
196
250
|
],
|
|
197
251
|
"flags": {
|
|
198
|
-
"
|
|
199
|
-
"description": "
|
|
200
|
-
"name": "
|
|
201
|
-
"required": false,
|
|
252
|
+
"solanaRpcUrl": {
|
|
253
|
+
"description": "Solana RPC url",
|
|
254
|
+
"name": "solanaRpcUrl",
|
|
202
255
|
"hasDynamicHelp": false,
|
|
203
256
|
"multiple": false,
|
|
204
257
|
"type": "option"
|
|
205
258
|
},
|
|
206
|
-
"
|
|
207
|
-
"description": "
|
|
208
|
-
"name": "
|
|
209
|
-
"required": false,
|
|
259
|
+
"indexerUrl": {
|
|
260
|
+
"description": "Indexer url",
|
|
261
|
+
"name": "indexerUrl",
|
|
210
262
|
"hasDynamicHelp": false,
|
|
211
263
|
"multiple": false,
|
|
212
264
|
"type": "option"
|
|
213
265
|
},
|
|
214
|
-
"
|
|
215
|
-
"description": "
|
|
216
|
-
"name": "
|
|
217
|
-
"required": false,
|
|
218
|
-
"default": 9,
|
|
266
|
+
"proverUrl": {
|
|
267
|
+
"description": "Prover url",
|
|
268
|
+
"name": "proverUrl",
|
|
219
269
|
"hasDynamicHelp": false,
|
|
220
270
|
"multiple": false,
|
|
221
271
|
"type": "option"
|
|
272
|
+
},
|
|
273
|
+
"get": {
|
|
274
|
+
"description": "Gets the current config values",
|
|
275
|
+
"name": "get",
|
|
276
|
+
"required": false,
|
|
277
|
+
"allowNo": false,
|
|
278
|
+
"type": "boolean"
|
|
222
279
|
}
|
|
223
280
|
},
|
|
224
281
|
"hasDynamicHelp": false,
|
|
225
282
|
"hiddenAliases": [],
|
|
226
|
-
"id": "
|
|
283
|
+
"id": "config",
|
|
227
284
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
228
285
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
229
286
|
"pluginType": "core",
|
|
230
287
|
"strict": true,
|
|
231
|
-
"summary": "Create a new compressed token mint",
|
|
232
288
|
"enableJsonFlag": false,
|
|
233
289
|
"isESM": false,
|
|
234
290
|
"relativePath": [
|
|
235
291
|
"dist",
|
|
236
292
|
"commands",
|
|
237
|
-
"
|
|
293
|
+
"config",
|
|
238
294
|
"index.js"
|
|
239
295
|
]
|
|
240
296
|
},
|
|
@@ -279,109 +335,53 @@
|
|
|
279
335
|
"index.js"
|
|
280
336
|
]
|
|
281
337
|
},
|
|
282
|
-
"
|
|
338
|
+
"create-mint": {
|
|
283
339
|
"aliases": [],
|
|
284
340
|
"args": {},
|
|
285
|
-
"description": "Initialize or update the configuration values. The default config path is ~/.config/light/config.json you can set up a custom path with an environment variable export LIGHT_PROTOCOL_CONFIG=path/to/config.json",
|
|
286
341
|
"examples": [
|
|
287
|
-
"$ light
|
|
342
|
+
"$ light create-mint --mint-decimals 5"
|
|
288
343
|
],
|
|
289
344
|
"flags": {
|
|
290
|
-
"
|
|
291
|
-
"description": "
|
|
292
|
-
"name": "
|
|
293
|
-
"hasDynamicHelp": false,
|
|
294
|
-
"multiple": false,
|
|
295
|
-
"type": "option"
|
|
296
|
-
},
|
|
297
|
-
"indexerUrl": {
|
|
298
|
-
"description": "Indexer url",
|
|
299
|
-
"name": "indexerUrl",
|
|
300
|
-
"hasDynamicHelp": false,
|
|
301
|
-
"multiple": false,
|
|
302
|
-
"type": "option"
|
|
303
|
-
},
|
|
304
|
-
"proverUrl": {
|
|
305
|
-
"description": "Prover url",
|
|
306
|
-
"name": "proverUrl",
|
|
307
|
-
"hasDynamicHelp": false,
|
|
308
|
-
"multiple": false,
|
|
309
|
-
"type": "option"
|
|
310
|
-
},
|
|
311
|
-
"get": {
|
|
312
|
-
"description": "Gets the current config values",
|
|
313
|
-
"name": "get",
|
|
345
|
+
"mint-keypair": {
|
|
346
|
+
"description": "Provide a path to a mint keypair file. Defaults to a random keypair",
|
|
347
|
+
"name": "mint-keypair",
|
|
314
348
|
"required": false,
|
|
315
|
-
"allowNo": false,
|
|
316
|
-
"type": "boolean"
|
|
317
|
-
}
|
|
318
|
-
},
|
|
319
|
-
"hasDynamicHelp": false,
|
|
320
|
-
"hiddenAliases": [],
|
|
321
|
-
"id": "config:config",
|
|
322
|
-
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
323
|
-
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
324
|
-
"pluginType": "core",
|
|
325
|
-
"strict": true,
|
|
326
|
-
"enableJsonFlag": false,
|
|
327
|
-
"isESM": false,
|
|
328
|
-
"relativePath": [
|
|
329
|
-
"dist",
|
|
330
|
-
"commands",
|
|
331
|
-
"config",
|
|
332
|
-
"index.js"
|
|
333
|
-
]
|
|
334
|
-
},
|
|
335
|
-
"config": {
|
|
336
|
-
"aliases": [],
|
|
337
|
-
"args": {},
|
|
338
|
-
"description": "Initialize or update the configuration values. The default config path is ~/.config/light/config.json you can set up a custom path with an environment variable export LIGHT_PROTOCOL_CONFIG=path/to/config.json",
|
|
339
|
-
"examples": [
|
|
340
|
-
"$ light config --solanaRpcUrl https://solana-api.example.com"
|
|
341
|
-
],
|
|
342
|
-
"flags": {
|
|
343
|
-
"solanaRpcUrl": {
|
|
344
|
-
"description": "Solana RPC url",
|
|
345
|
-
"name": "solanaRpcUrl",
|
|
346
349
|
"hasDynamicHelp": false,
|
|
347
350
|
"multiple": false,
|
|
348
351
|
"type": "option"
|
|
349
352
|
},
|
|
350
|
-
"
|
|
351
|
-
"description": "
|
|
352
|
-
"name": "
|
|
353
|
+
"mint-authority": {
|
|
354
|
+
"description": "Address of the mint authority. Defaults to the fee payer",
|
|
355
|
+
"name": "mint-authority",
|
|
356
|
+
"required": false,
|
|
353
357
|
"hasDynamicHelp": false,
|
|
354
358
|
"multiple": false,
|
|
355
359
|
"type": "option"
|
|
356
360
|
},
|
|
357
|
-
"
|
|
358
|
-
"description": "
|
|
359
|
-
"name": "
|
|
361
|
+
"mint-decimals": {
|
|
362
|
+
"description": "Number of base 10 digits to the right of the decimal place [default: 9]",
|
|
363
|
+
"name": "mint-decimals",
|
|
364
|
+
"required": false,
|
|
365
|
+
"default": 9,
|
|
360
366
|
"hasDynamicHelp": false,
|
|
361
367
|
"multiple": false,
|
|
362
368
|
"type": "option"
|
|
363
|
-
},
|
|
364
|
-
"get": {
|
|
365
|
-
"description": "Gets the current config values",
|
|
366
|
-
"name": "get",
|
|
367
|
-
"required": false,
|
|
368
|
-
"allowNo": false,
|
|
369
|
-
"type": "boolean"
|
|
370
369
|
}
|
|
371
370
|
},
|
|
372
371
|
"hasDynamicHelp": false,
|
|
373
372
|
"hiddenAliases": [],
|
|
374
|
-
"id": "
|
|
373
|
+
"id": "create-mint",
|
|
375
374
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
376
375
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
377
376
|
"pluginType": "core",
|
|
378
377
|
"strict": true,
|
|
378
|
+
"summary": "Create a new compressed token mint",
|
|
379
379
|
"enableJsonFlag": false,
|
|
380
380
|
"isESM": false,
|
|
381
381
|
"relativePath": [
|
|
382
382
|
"dist",
|
|
383
383
|
"commands",
|
|
384
|
-
"
|
|
384
|
+
"create-mint",
|
|
385
385
|
"index.js"
|
|
386
386
|
]
|
|
387
387
|
},
|
|
@@ -762,5 +762,5 @@
|
|
|
762
762
|
]
|
|
763
763
|
}
|
|
764
764
|
},
|
|
765
|
-
"version": "0.
|
|
765
|
+
"version": "0.5.0"
|
|
766
766
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightprotocol/zk-compression-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "ZK Compression: Secure Scaling on Solana",
|
|
5
5
|
"maintainers": [
|
|
6
6
|
{
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@oclif/plugin-not-found": "^3.1.2",
|
|
31
31
|
"@oclif/plugin-plugins": "^5.0.7",
|
|
32
32
|
"@solana-developers/helpers": "^1.5.1",
|
|
33
|
-
"@solana/web3.js": "^1.
|
|
33
|
+
"@solana/web3.js": "^1.95.0",
|
|
34
34
|
"axios": "^1.6.8",
|
|
35
35
|
"case-anything": "^2.1.13",
|
|
36
36
|
"cli-progress": "^3.12.0",
|
|
@@ -44,17 +44,17 @@
|
|
|
44
44
|
"tweetnacl": "^1.0.3",
|
|
45
45
|
"wait-on": "^7.2.0",
|
|
46
46
|
"which": "^4.0.0",
|
|
47
|
-
"@lightprotocol/compressed-token": "0.
|
|
48
|
-
"@lightprotocol/stateless.js": "0.
|
|
47
|
+
"@lightprotocol/compressed-token": "0.4.0",
|
|
48
|
+
"@lightprotocol/stateless.js": "0.5.0",
|
|
49
49
|
"@lightprotocol/hasher.rs": "0.2.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@oclif/test": "2.3.9",
|
|
53
53
|
"@solana/spl-token": "^0.3.11",
|
|
54
54
|
"@types/bn.js": "^5.1.5",
|
|
55
|
-
"@types/chai": "^4.3.
|
|
55
|
+
"@types/chai": "^4.3.16",
|
|
56
56
|
"@types/cli-progress": "^3.11.5",
|
|
57
|
-
"@types/mocha": "^10.0.
|
|
57
|
+
"@types/mocha": "^10.0.7",
|
|
58
58
|
"@types/node": "^20.12.8",
|
|
59
59
|
"@types/tar": "^6.1.12",
|
|
60
60
|
"@types/which": "^3.0.3",
|
|
@@ -65,14 +65,14 @@
|
|
|
65
65
|
"eslint-config-oclif": "5.1.1",
|
|
66
66
|
"eslint-config-oclif-typescript": "3.1.4",
|
|
67
67
|
"eslint-config-prettier": "9.1.0",
|
|
68
|
-
"mocha": "^10.
|
|
68
|
+
"mocha": "^10.6.0",
|
|
69
69
|
"oclif": "4.8.0",
|
|
70
|
-
"prettier": "^3.3.
|
|
70
|
+
"prettier": "^3.3.3",
|
|
71
71
|
"shx": "^0.3.4",
|
|
72
72
|
"ts-mocha": "^10.0.0",
|
|
73
73
|
"ts-node": "^10.9.2",
|
|
74
74
|
"tslib": "^2.6.2",
|
|
75
|
-
"typescript": "^5.
|
|
75
|
+
"typescript": "^5.5.3",
|
|
76
76
|
"@lightprotocol/programs": "0.3.0"
|
|
77
77
|
},
|
|
78
78
|
"oclif": {
|