@lightprotocol/zk-compression-cli 0.27.1-alpha.0 → 0.27.1-alpha.2
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_amt1Ayt45jfbdw5YSo7iz6WZxUmnZsQTYXy82hVwyC2.json +1 -1
- package/accounts/address_merkle_tree_queue_aq1S9z4reTSQAdgWHGD2zDaS39sjGrAxbR31vxJ2F4F.json +1 -1
- package/accounts/batch_address_merkle_tree_EzKE84aVTkCUhDHLELqyJaq1Y7UVVmqxXqZjVHwHY3rK.json +14 -1
- package/accounts/{batch_state_merkle_tree_2_2Yb3fGo2E9aWLjY8KuESaqurYpGGhEeJr7eynKrSgXwS.json → batch_address_merkle_tree_amt2kaJA14v3urZbZvnc5v2np8jqvc4Z8zDep5wbtzx.json} +1 -1
- package/accounts/{batch_state_merkle_tree_HLKs5NJ8FXkJg8BrzJt56adFYYuwg5etzDtBbQYTsixu.json → batch_state_merkle_tree_bmt1LryLZUMmF7ZtqESaw7wifBXLfXHQYoE4GAmrahU.json} +1 -1
- package/accounts/batch_state_merkle_tree_bmt2UxoBxB9xWev4BkLvkGdapsz6sZGkzViPNph7VFi.json +1 -0
- package/accounts/batch_state_merkle_tree_bmt3ccLd4bqSVZVeCJnH1F6C8jNygAhaDfxDwePyyGb.json +1 -0
- package/accounts/batch_state_merkle_tree_bmt4d3p1a4YQgk9PeZv5s4DBUmbF5NxqYpk9HGjQsd8.json +1 -0
- package/accounts/batch_state_merkle_tree_bmt5yU97jC88YXTuSukYHa8Z5Bi2ZDUtmzfkDTA2mG2.json +1 -0
- package/accounts/{batched_output_queue_2_12wJT3xYd46rtjeqDU6CrtT8unqLjPiheggzqhN9YsyB.json → batched_output_queue_oq1na8gojfdUhsfCpyjNt6h4JaDWtHf1yQj4koBWfto.json} +1 -1
- package/accounts/{batched_output_queue_6L7SzhYB3anwEQ9cphpJ1U7Scwj57bx2xueReg7R9cKU.json → batched_output_queue_oq2UkeMsJLfXt2QHzim242SUi3nvjJs8Pn7Eac9H9vg.json} +1 -1
- package/accounts/batched_output_queue_oq3AxjekBWgo64gpauB6QtuZNesuv19xrhaC1ZM1THQ.json +1 -0
- package/accounts/batched_output_queue_oq4ypwvVGzCUMoiKKHWh4S1SgZJ9vCvKpcz6RT6A8dq.json +1 -0
- package/accounts/batched_output_queue_oq5oh5ZR3yGomuQgFduNDzjtGvVWfDRGLuDVjv9a96P.json +1 -0
- package/accounts/{test_batched_cpi_context_7Hp52chxaew8bW1ApR4fck2bh6Y8qA1pu3qwH6N9zaLj.json → cpi_context_cpi15BoVPKgEPw5o8wc2T816GE7b378nMXnhH3Xbq4y.json} +1 -1
- package/accounts/cpi_context_cpi1uHzrEhBG733DoEJNgHCyRS3XmmyVNZx5fonubE4.json +1 -1
- package/accounts/cpi_context_cpi2cdhkH5roePvcudTgUL8ppEBfTay1desGh8G8QxK.json +1 -1
- package/accounts/{cpi_context_batched_2_HwtjxDvFEXiWnzeMeWkMBzpQN45A95rTJNZmz1Z3pe8R.json → cpi_context_cpi2yGapXUR3As5SjnHBAVvmApNiLsbeZpF3euWnW6B.json} +1 -14
- package/accounts/cpi_context_cpi3mbwMpSX8FAGMZVP85AwxqCaQMfEk9Em1v8QK9Rf.json +1 -0
- package/accounts/cpi_context_cpi4yyPDc4bCgHAnsenunGA8Y77j3XEDyjgfyCKgcoc.json +1 -0
- package/accounts/cpi_context_cpi5ZTjdgYpZ1Xr7B1cMLLUE81oTtJbNNAyKary2nV6.json +1 -0
- package/accounts/epoch_pda_34w7KcLBXabMkHuXE2fY368vFe6kP3v5EJn8nPvQ8SKn.json +1 -1
- package/accounts/forester_epoch_pda_3FBt1BPQHCQkS8k3wrUXMfB6JBhtMhEqQXueHRw2ojZV.json +1 -1
- package/accounts/governance_authority_pda_CuEtcKkkbTn6qy2qxqDswq5U2ADsqoipYDAYfRvxPjcp.json +1 -1
- package/accounts/group_pda_24rt4RgeyjUCWGS2eF7L7gyNMuz6JWdqYpAvb1KRoHxs.json +1 -1
- package/accounts/merkle_tree_pubkey_smt1NamzXdq4AMqS2fS2F1i5KTYPZRhoHgWx38d8WsT.json +1 -1
- package/accounts/merkle_tree_pubkey_smt2rJAFdyJJupwMKAqTNAJwvjhmiZ4JYGZmbVRw1Ho.json +1 -1
- package/accounts/nullifier_queue_pubkey_nfq1NvQDJ2GEgnS8zt9prAe8rjjpAW1zFkrvZoBR148.json +1 -1
- package/accounts/nullifier_queue_pubkey_nfq2hgS7NYemXsFaFUCe3EMXSDSfnZnAe27jC6aPP1X.json +1 -1
- package/accounts/registered_forester_pda_2KNqEh23Se8AHecuzR1UkxL26euq2qXSpQPTH1jH7VqU.json +1 -1
- package/bin/account_compression.so +0 -0
- package/bin/light_compressed_token.so +0 -0
- package/bin/light_registry.so +0 -0
- package/bin/light_system_program_pinocchio.so +0 -0
- package/dist/commands/approve-and-mint-to/index.js +26 -29
- package/dist/commands/balance/index.js +12 -11
- package/dist/commands/compress-sol/index.js +13 -13
- package/dist/commands/compress-spl/index.js +19 -19
- package/dist/commands/config/config.js +67 -33
- package/dist/commands/create-mint/index.js +19 -20
- package/dist/commands/create-token-pool/index.js +9 -9
- package/dist/commands/decompress-sol/index.js +13 -13
- package/dist/commands/decompress-spl/index.js +19 -19
- package/dist/commands/init/index.js +8 -8
- package/dist/commands/merge-token-accounts/index.js +13 -14
- package/dist/commands/mint-to/index.js +24 -25
- package/dist/commands/start-prover/index.d.ts +0 -3
- package/dist/commands/start-prover/index.js +13 -58
- package/dist/commands/test-validator/index.d.ts +0 -2
- package/dist/commands/test-validator/index.js +79 -109
- package/dist/commands/token-balance/index.js +15 -15
- package/dist/commands/transfer/index.js +23 -24
- package/dist/psp-utils/download.js +1 -1
- package/dist/utils/constants.d.ts +2 -2
- package/dist/utils/constants.js +2 -3
- package/dist/utils/downloadProverBinary.d.ts +7 -0
- package/dist/utils/downloadProverBinary.js +107 -0
- package/dist/utils/initTestEnv.d.ts +1 -3
- package/dist/utils/initTestEnv.js +2 -2
- package/dist/utils/process.js +4 -6
- package/dist/utils/processProverServer.d.ts +1 -2
- package/dist/utils/processProverServer.js +63 -81
- package/dist/utils/utils.d.ts +4 -0
- package/dist/utils/utils.js +44 -3
- package/oclif.manifest.json +129 -210
- package/package.json +61 -60
- package/test_bin/dev +4 -7
- package/test_bin/run +2 -2
- package/bin/forester +0 -0
- package/bin/forester.toml +0 -15
- 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/bin/proving-keys/combined_26_1_1.key +0 -0
- package/bin/proving-keys/combined_26_1_2.key +0 -0
- package/bin/proving-keys/combined_26_2_1.key +0 -0
- package/bin/proving-keys/combined_32_40_1_1.key +0 -0
- package/bin/proving-keys/combined_32_40_1_2.key +0 -0
- package/bin/proving-keys/combined_32_40_2_1.key +0 -0
- package/bin/proving-keys/inclusion_32_1.key +0 -0
- package/bin/proving-keys/inclusion_32_2.key +0 -0
- package/bin/proving-keys/inclusion_32_3.key +0 -0
- package/bin/proving-keys/inclusion_32_4.key +0 -0
- package/bin/proving-keys/mainnet_inclusion_26_1.key +0 -0
- package/bin/proving-keys/mainnet_inclusion_26_2.key +0 -0
- package/bin/proving-keys/mainnet_inclusion_26_3.key +0 -0
- package/bin/proving-keys/mainnet_inclusion_26_4.key +0 -0
- package/bin/proving-keys/non-inclusion_26_1.key +0 -0
- package/bin/proving-keys/non-inclusion_26_2.key +0 -0
- package/bin/proving-keys/non-inclusion_40_1.key +0 -0
- package/bin/proving-keys/non-inclusion_40_2.key +0 -0
- package/test_bin/lut.json +0 -1
package/oclif.manifest.json
CHANGED
|
@@ -180,90 +180,60 @@
|
|
|
180
180
|
"index.js"
|
|
181
181
|
]
|
|
182
182
|
},
|
|
183
|
-
"
|
|
183
|
+
"config:config": {
|
|
184
184
|
"aliases": [],
|
|
185
185
|
"args": {},
|
|
186
|
+
"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",
|
|
186
187
|
"examples": [
|
|
187
|
-
"$ light
|
|
188
|
+
"$ light config --solanaRpcUrl https://solana-api.example.com"
|
|
188
189
|
],
|
|
189
190
|
"flags": {
|
|
190
|
-
"
|
|
191
|
-
"description": "
|
|
192
|
-
"name": "
|
|
193
|
-
"required": false,
|
|
191
|
+
"solanaRpcUrl": {
|
|
192
|
+
"description": "Solana RPC url",
|
|
193
|
+
"name": "solanaRpcUrl",
|
|
194
194
|
"hasDynamicHelp": false,
|
|
195
195
|
"multiple": false,
|
|
196
196
|
"type": "option"
|
|
197
197
|
},
|
|
198
|
-
"
|
|
199
|
-
"description": "
|
|
200
|
-
"name": "
|
|
201
|
-
"required": false,
|
|
198
|
+
"indexerUrl": {
|
|
199
|
+
"description": "Indexer url",
|
|
200
|
+
"name": "indexerUrl",
|
|
202
201
|
"hasDynamicHelp": false,
|
|
203
202
|
"multiple": false,
|
|
204
203
|
"type": "option"
|
|
205
204
|
},
|
|
206
|
-
"
|
|
207
|
-
"description": "
|
|
208
|
-
"name": "
|
|
209
|
-
"required": false,
|
|
210
|
-
"default": 9,
|
|
211
|
-
"hasDynamicHelp": false,
|
|
212
|
-
"multiple": false,
|
|
213
|
-
"type": "option"
|
|
214
|
-
}
|
|
215
|
-
},
|
|
216
|
-
"hasDynamicHelp": false,
|
|
217
|
-
"hiddenAliases": [],
|
|
218
|
-
"id": "create-mint",
|
|
219
|
-
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
220
|
-
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
221
|
-
"pluginType": "core",
|
|
222
|
-
"strict": true,
|
|
223
|
-
"summary": "Create a new compressed token mint",
|
|
224
|
-
"enableJsonFlag": false,
|
|
225
|
-
"isESM": false,
|
|
226
|
-
"relativePath": [
|
|
227
|
-
"dist",
|
|
228
|
-
"commands",
|
|
229
|
-
"create-mint",
|
|
230
|
-
"index.js"
|
|
231
|
-
]
|
|
232
|
-
},
|
|
233
|
-
"create-token-pool": {
|
|
234
|
-
"aliases": [],
|
|
235
|
-
"args": {},
|
|
236
|
-
"examples": [
|
|
237
|
-
"$ light create-token-pool --mint-decimals 5"
|
|
238
|
-
],
|
|
239
|
-
"flags": {
|
|
240
|
-
"mint": {
|
|
241
|
-
"description": "Provide a base58 encoded mint address to register",
|
|
242
|
-
"name": "mint",
|
|
243
|
-
"required": true,
|
|
205
|
+
"proverUrl": {
|
|
206
|
+
"description": "Prover url",
|
|
207
|
+
"name": "proverUrl",
|
|
244
208
|
"hasDynamicHelp": false,
|
|
245
209
|
"multiple": false,
|
|
246
210
|
"type": "option"
|
|
211
|
+
},
|
|
212
|
+
"get": {
|
|
213
|
+
"description": "Gets the current config values",
|
|
214
|
+
"name": "get",
|
|
215
|
+
"required": false,
|
|
216
|
+
"allowNo": false,
|
|
217
|
+
"type": "boolean"
|
|
247
218
|
}
|
|
248
219
|
},
|
|
249
220
|
"hasDynamicHelp": false,
|
|
250
221
|
"hiddenAliases": [],
|
|
251
|
-
"id": "
|
|
222
|
+
"id": "config:config",
|
|
252
223
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
253
224
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
254
225
|
"pluginType": "core",
|
|
255
226
|
"strict": true,
|
|
256
|
-
"summary": "Register an existing mint with the CompressedToken program",
|
|
257
227
|
"enableJsonFlag": false,
|
|
258
228
|
"isESM": false,
|
|
259
229
|
"relativePath": [
|
|
260
230
|
"dist",
|
|
261
231
|
"commands",
|
|
262
|
-
"
|
|
232
|
+
"config",
|
|
263
233
|
"index.js"
|
|
264
234
|
]
|
|
265
235
|
},
|
|
266
|
-
"config
|
|
236
|
+
"config": {
|
|
267
237
|
"aliases": [],
|
|
268
238
|
"args": {},
|
|
269
239
|
"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",
|
|
@@ -302,7 +272,7 @@
|
|
|
302
272
|
},
|
|
303
273
|
"hasDynamicHelp": false,
|
|
304
274
|
"hiddenAliases": [],
|
|
305
|
-
"id": "config
|
|
275
|
+
"id": "config",
|
|
306
276
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
307
277
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
308
278
|
"pluginType": "core",
|
|
@@ -316,56 +286,86 @@
|
|
|
316
286
|
"index.js"
|
|
317
287
|
]
|
|
318
288
|
},
|
|
319
|
-
"
|
|
289
|
+
"create-mint": {
|
|
320
290
|
"aliases": [],
|
|
321
291
|
"args": {},
|
|
322
|
-
"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",
|
|
323
292
|
"examples": [
|
|
324
|
-
"$ light
|
|
293
|
+
"$ light create-mint --mint-decimals 5"
|
|
325
294
|
],
|
|
326
295
|
"flags": {
|
|
327
|
-
"
|
|
328
|
-
"description": "
|
|
329
|
-
"name": "
|
|
296
|
+
"mint-keypair": {
|
|
297
|
+
"description": "Provide a path to a mint keypair file. Defaults to a random keypair",
|
|
298
|
+
"name": "mint-keypair",
|
|
299
|
+
"required": false,
|
|
330
300
|
"hasDynamicHelp": false,
|
|
331
301
|
"multiple": false,
|
|
332
302
|
"type": "option"
|
|
333
303
|
},
|
|
334
|
-
"
|
|
335
|
-
"description": "
|
|
336
|
-
"name": "
|
|
304
|
+
"mint-authority": {
|
|
305
|
+
"description": "Address of the mint authority. Defaults to the fee payer",
|
|
306
|
+
"name": "mint-authority",
|
|
307
|
+
"required": false,
|
|
337
308
|
"hasDynamicHelp": false,
|
|
338
309
|
"multiple": false,
|
|
339
310
|
"type": "option"
|
|
340
311
|
},
|
|
341
|
-
"
|
|
342
|
-
"description": "
|
|
343
|
-
"name": "
|
|
312
|
+
"mint-decimals": {
|
|
313
|
+
"description": "Number of base 10 digits to the right of the decimal place [default: 9]",
|
|
314
|
+
"name": "mint-decimals",
|
|
315
|
+
"required": false,
|
|
316
|
+
"default": 9,
|
|
344
317
|
"hasDynamicHelp": false,
|
|
345
318
|
"multiple": false,
|
|
346
319
|
"type": "option"
|
|
347
|
-
},
|
|
348
|
-
"get": {
|
|
349
|
-
"description": "Gets the current config values",
|
|
350
|
-
"name": "get",
|
|
351
|
-
"required": false,
|
|
352
|
-
"allowNo": false,
|
|
353
|
-
"type": "boolean"
|
|
354
320
|
}
|
|
355
321
|
},
|
|
356
322
|
"hasDynamicHelp": false,
|
|
357
323
|
"hiddenAliases": [],
|
|
358
|
-
"id": "
|
|
324
|
+
"id": "create-mint",
|
|
359
325
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
360
326
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
361
327
|
"pluginType": "core",
|
|
362
328
|
"strict": true,
|
|
329
|
+
"summary": "Create a new compressed token mint",
|
|
363
330
|
"enableJsonFlag": false,
|
|
364
331
|
"isESM": false,
|
|
365
332
|
"relativePath": [
|
|
366
333
|
"dist",
|
|
367
334
|
"commands",
|
|
368
|
-
"
|
|
335
|
+
"create-mint",
|
|
336
|
+
"index.js"
|
|
337
|
+
]
|
|
338
|
+
},
|
|
339
|
+
"create-token-pool": {
|
|
340
|
+
"aliases": [],
|
|
341
|
+
"args": {},
|
|
342
|
+
"examples": [
|
|
343
|
+
"$ light create-token-pool --mint-decimals 5"
|
|
344
|
+
],
|
|
345
|
+
"flags": {
|
|
346
|
+
"mint": {
|
|
347
|
+
"description": "Provide a base58 encoded mint address to register",
|
|
348
|
+
"name": "mint",
|
|
349
|
+
"required": true,
|
|
350
|
+
"hasDynamicHelp": false,
|
|
351
|
+
"multiple": false,
|
|
352
|
+
"type": "option"
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
"hasDynamicHelp": false,
|
|
356
|
+
"hiddenAliases": [],
|
|
357
|
+
"id": "create-token-pool",
|
|
358
|
+
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
359
|
+
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
360
|
+
"pluginType": "core",
|
|
361
|
+
"strict": true,
|
|
362
|
+
"summary": "Register an existing mint with the CompressedToken program",
|
|
363
|
+
"enableJsonFlag": false,
|
|
364
|
+
"isESM": false,
|
|
365
|
+
"relativePath": [
|
|
366
|
+
"dist",
|
|
367
|
+
"commands",
|
|
368
|
+
"create-token-pool",
|
|
369
369
|
"index.js"
|
|
370
370
|
]
|
|
371
371
|
},
|
|
@@ -584,87 +584,6 @@
|
|
|
584
584
|
"index.js"
|
|
585
585
|
]
|
|
586
586
|
},
|
|
587
|
-
"start-prover": {
|
|
588
|
-
"aliases": [],
|
|
589
|
-
"args": {},
|
|
590
|
-
"description": "Start gnark prover",
|
|
591
|
-
"flags": {
|
|
592
|
-
"prover-port": {
|
|
593
|
-
"description": "Enable Light Prover server on this port.",
|
|
594
|
-
"name": "prover-port",
|
|
595
|
-
"required": false,
|
|
596
|
-
"default": 3001,
|
|
597
|
-
"hasDynamicHelp": false,
|
|
598
|
-
"multiple": false,
|
|
599
|
-
"type": "option"
|
|
600
|
-
},
|
|
601
|
-
"run-mode": {
|
|
602
|
-
"description": "Specify the running mode (local-rpc, forester, forester-test, rpc, or full). Default: local-rpc",
|
|
603
|
-
"name": "run-mode",
|
|
604
|
-
"required": false,
|
|
605
|
-
"hasDynamicHelp": false,
|
|
606
|
-
"multiple": false,
|
|
607
|
-
"options": [
|
|
608
|
-
"local-rpc",
|
|
609
|
-
"rpc",
|
|
610
|
-
"forester",
|
|
611
|
-
"forester-test",
|
|
612
|
-
"full",
|
|
613
|
-
"full-test"
|
|
614
|
-
],
|
|
615
|
-
"type": "option"
|
|
616
|
-
},
|
|
617
|
-
"circuit": {
|
|
618
|
-
"description": "Specify individual circuits to enable.",
|
|
619
|
-
"name": "circuit",
|
|
620
|
-
"required": false,
|
|
621
|
-
"hasDynamicHelp": false,
|
|
622
|
-
"multiple": true,
|
|
623
|
-
"options": [
|
|
624
|
-
"inclusion",
|
|
625
|
-
"non-inclusion",
|
|
626
|
-
"combined",
|
|
627
|
-
"append",
|
|
628
|
-
"update",
|
|
629
|
-
"address-append",
|
|
630
|
-
"append-test",
|
|
631
|
-
"update-test",
|
|
632
|
-
"address-append-test"
|
|
633
|
-
],
|
|
634
|
-
"type": "option"
|
|
635
|
-
},
|
|
636
|
-
"force": {
|
|
637
|
-
"description": "Force restart the prover even if one is already running with the same flags.",
|
|
638
|
-
"name": "force",
|
|
639
|
-
"required": false,
|
|
640
|
-
"allowNo": false,
|
|
641
|
-
"type": "boolean"
|
|
642
|
-
},
|
|
643
|
-
"redisUrl": {
|
|
644
|
-
"description": "Redis URL to use for the prover (e.g. redis://localhost:6379)",
|
|
645
|
-
"name": "redisUrl",
|
|
646
|
-
"required": false,
|
|
647
|
-
"hasDynamicHelp": false,
|
|
648
|
-
"multiple": false,
|
|
649
|
-
"type": "option"
|
|
650
|
-
}
|
|
651
|
-
},
|
|
652
|
-
"hasDynamicHelp": false,
|
|
653
|
-
"hiddenAliases": [],
|
|
654
|
-
"id": "start-prover",
|
|
655
|
-
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
656
|
-
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
657
|
-
"pluginType": "core",
|
|
658
|
-
"strict": true,
|
|
659
|
-
"enableJsonFlag": false,
|
|
660
|
-
"isESM": false,
|
|
661
|
-
"relativePath": [
|
|
662
|
-
"dist",
|
|
663
|
-
"commands",
|
|
664
|
-
"start-prover",
|
|
665
|
-
"index.js"
|
|
666
|
-
]
|
|
667
|
-
},
|
|
668
587
|
"test-validator": {
|
|
669
588
|
"aliases": [],
|
|
670
589
|
"args": {},
|
|
@@ -748,45 +667,6 @@
|
|
|
748
667
|
"multiple": false,
|
|
749
668
|
"type": "option"
|
|
750
669
|
},
|
|
751
|
-
"prover-run-mode": {
|
|
752
|
-
"description": "Specify the running mode for the prover (local-rpc, forester, forester-test, rpc, or full). Default: local-rpc",
|
|
753
|
-
"exclusive": [
|
|
754
|
-
"skip-prover"
|
|
755
|
-
],
|
|
756
|
-
"name": "prover-run-mode",
|
|
757
|
-
"required": false,
|
|
758
|
-
"hasDynamicHelp": false,
|
|
759
|
-
"multiple": false,
|
|
760
|
-
"options": [
|
|
761
|
-
"local-rpc",
|
|
762
|
-
"rpc",
|
|
763
|
-
"forester",
|
|
764
|
-
"forester-test",
|
|
765
|
-
"full",
|
|
766
|
-
"full-test"
|
|
767
|
-
],
|
|
768
|
-
"type": "option"
|
|
769
|
-
},
|
|
770
|
-
"circuit": {
|
|
771
|
-
"description": "Specify individual circuits to enable.",
|
|
772
|
-
"exclusive": [
|
|
773
|
-
"skip-prover"
|
|
774
|
-
],
|
|
775
|
-
"name": "circuit",
|
|
776
|
-
"required": false,
|
|
777
|
-
"hasDynamicHelp": false,
|
|
778
|
-
"multiple": true,
|
|
779
|
-
"options": [
|
|
780
|
-
"inclusion",
|
|
781
|
-
"non-inclusion",
|
|
782
|
-
"combined",
|
|
783
|
-
"append",
|
|
784
|
-
"update",
|
|
785
|
-
"append-test",
|
|
786
|
-
"update-test"
|
|
787
|
-
],
|
|
788
|
-
"type": "option"
|
|
789
|
-
},
|
|
790
670
|
"limit-ledger-size": {
|
|
791
671
|
"description": "Keep this amount of shreds in root slots.",
|
|
792
672
|
"name": "limit-ledger-size",
|
|
@@ -857,25 +737,24 @@
|
|
|
857
737
|
"index.js"
|
|
858
738
|
]
|
|
859
739
|
},
|
|
860
|
-
"
|
|
740
|
+
"start-prover": {
|
|
861
741
|
"aliases": [],
|
|
862
742
|
"args": {},
|
|
863
|
-
"
|
|
864
|
-
"$ light token-balance --mint=<ADDRESS> --owner=<ADDRESS>"
|
|
865
|
-
],
|
|
743
|
+
"description": "Start gnark prover",
|
|
866
744
|
"flags": {
|
|
867
|
-
"
|
|
868
|
-
"description": "
|
|
869
|
-
"name": "
|
|
870
|
-
"required":
|
|
745
|
+
"prover-port": {
|
|
746
|
+
"description": "Enable Light Prover server on this port.",
|
|
747
|
+
"name": "prover-port",
|
|
748
|
+
"required": false,
|
|
749
|
+
"default": 3001,
|
|
871
750
|
"hasDynamicHelp": false,
|
|
872
751
|
"multiple": false,
|
|
873
752
|
"type": "option"
|
|
874
753
|
},
|
|
875
|
-
"
|
|
876
|
-
"description": "
|
|
877
|
-
"name": "
|
|
878
|
-
"required":
|
|
754
|
+
"redisUrl": {
|
|
755
|
+
"description": "Redis URL to use for the prover (e.g. redis://localhost:6379)",
|
|
756
|
+
"name": "redisUrl",
|
|
757
|
+
"required": false,
|
|
879
758
|
"hasDynamicHelp": false,
|
|
880
759
|
"multiple": false,
|
|
881
760
|
"type": "option"
|
|
@@ -883,18 +762,17 @@
|
|
|
883
762
|
},
|
|
884
763
|
"hasDynamicHelp": false,
|
|
885
764
|
"hiddenAliases": [],
|
|
886
|
-
"id": "
|
|
765
|
+
"id": "start-prover",
|
|
887
766
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
888
767
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
889
768
|
"pluginType": "core",
|
|
890
769
|
"strict": true,
|
|
891
|
-
"summary": "Get balance",
|
|
892
770
|
"enableJsonFlag": false,
|
|
893
771
|
"isESM": false,
|
|
894
772
|
"relativePath": [
|
|
895
773
|
"dist",
|
|
896
774
|
"commands",
|
|
897
|
-
"
|
|
775
|
+
"start-prover",
|
|
898
776
|
"index.js"
|
|
899
777
|
]
|
|
900
778
|
},
|
|
@@ -954,7 +832,48 @@
|
|
|
954
832
|
"transfer",
|
|
955
833
|
"index.js"
|
|
956
834
|
]
|
|
835
|
+
},
|
|
836
|
+
"token-balance": {
|
|
837
|
+
"aliases": [],
|
|
838
|
+
"args": {},
|
|
839
|
+
"examples": [
|
|
840
|
+
"$ light token-balance --mint=<ADDRESS> --owner=<ADDRESS>"
|
|
841
|
+
],
|
|
842
|
+
"flags": {
|
|
843
|
+
"owner": {
|
|
844
|
+
"description": "Address of the compressed token owner.",
|
|
845
|
+
"name": "owner",
|
|
846
|
+
"required": true,
|
|
847
|
+
"hasDynamicHelp": false,
|
|
848
|
+
"multiple": false,
|
|
849
|
+
"type": "option"
|
|
850
|
+
},
|
|
851
|
+
"mint": {
|
|
852
|
+
"description": "Mint address of the compressed token account.",
|
|
853
|
+
"name": "mint",
|
|
854
|
+
"required": true,
|
|
855
|
+
"hasDynamicHelp": false,
|
|
856
|
+
"multiple": false,
|
|
857
|
+
"type": "option"
|
|
858
|
+
}
|
|
859
|
+
},
|
|
860
|
+
"hasDynamicHelp": false,
|
|
861
|
+
"hiddenAliases": [],
|
|
862
|
+
"id": "token-balance",
|
|
863
|
+
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
864
|
+
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
865
|
+
"pluginType": "core",
|
|
866
|
+
"strict": true,
|
|
867
|
+
"summary": "Get balance",
|
|
868
|
+
"enableJsonFlag": false,
|
|
869
|
+
"isESM": false,
|
|
870
|
+
"relativePath": [
|
|
871
|
+
"dist",
|
|
872
|
+
"commands",
|
|
873
|
+
"token-balance",
|
|
874
|
+
"index.js"
|
|
875
|
+
]
|
|
957
876
|
}
|
|
958
877
|
},
|
|
959
|
-
"version": "0.27.1-alpha.
|
|
878
|
+
"version": "0.27.1-alpha.2"
|
|
960
879
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightprotocol/zk-compression-cli",
|
|
3
|
-
"version": "0.27.1-alpha.
|
|
3
|
+
"version": "0.27.1-alpha.2",
|
|
4
4
|
"description": "ZK Compression: Secure Scaling on Solana",
|
|
5
5
|
"maintainers": [
|
|
6
6
|
{
|
|
@@ -18,25 +18,8 @@
|
|
|
18
18
|
"/bin",
|
|
19
19
|
"!bin/cargo-generate",
|
|
20
20
|
"!/bin/**/*.vkey",
|
|
21
|
-
"!/bin/proving-keys
|
|
22
|
-
"
|
|
23
|
-
"/bin/proving-keys/combined_26_1_2.key",
|
|
24
|
-
"/bin/proving-keys/combined_26_2_1.key",
|
|
25
|
-
"/bin/proving-keys/combined_32_40_1_1.key",
|
|
26
|
-
"/bin/proving-keys/combined_32_40_1_2.key",
|
|
27
|
-
"/bin/proving-keys/combined_32_40_2_1.key",
|
|
28
|
-
"/bin/proving-keys/inclusion_32_1.key",
|
|
29
|
-
"/bin/proving-keys/inclusion_32_2.key",
|
|
30
|
-
"/bin/proving-keys/inclusion_32_3.key",
|
|
31
|
-
"/bin/proving-keys/inclusion_32_4.key",
|
|
32
|
-
"/bin/proving-keys/mainnet_inclusion_26_1.key",
|
|
33
|
-
"/bin/proving-keys/mainnet_inclusion_26_2.key",
|
|
34
|
-
"/bin/proving-keys/mainnet_inclusion_26_3.key",
|
|
35
|
-
"/bin/proving-keys/mainnet_inclusion_26_4.key",
|
|
36
|
-
"/bin/proving-keys/non-inclusion_26_1.key",
|
|
37
|
-
"/bin/proving-keys/non-inclusion_26_2.key",
|
|
38
|
-
"/bin/proving-keys/non-inclusion_40_1.key",
|
|
39
|
-
"/bin/proving-keys/non-inclusion_40_2.key",
|
|
21
|
+
"!/bin/proving-keys",
|
|
22
|
+
"!/bin/prover-*",
|
|
40
23
|
"/dist",
|
|
41
24
|
"/test_bin",
|
|
42
25
|
"./config.json",
|
|
@@ -44,57 +27,56 @@
|
|
|
44
27
|
"/oclif.manifest.json"
|
|
45
28
|
],
|
|
46
29
|
"dependencies": {
|
|
47
|
-
"@coral-xyz/anchor": "0.29.0",
|
|
30
|
+
"@coral-xyz/anchor": "^0.29.0",
|
|
48
31
|
"@lightprotocol/hasher.rs": "0.2.1",
|
|
49
|
-
"@oclif/core": "^
|
|
50
|
-
"@oclif/plugin-autocomplete": "^3.
|
|
51
|
-
"@oclif/plugin-help": "^6.
|
|
52
|
-
"@oclif/plugin-not-found": "^3.
|
|
53
|
-
"@oclif/plugin-plugins": "^5.
|
|
54
|
-
"@
|
|
55
|
-
"@solana/web3.js": "1.98.
|
|
56
|
-
"axios": "
|
|
32
|
+
"@oclif/core": "^4.5.4",
|
|
33
|
+
"@oclif/plugin-autocomplete": "^3.2.34",
|
|
34
|
+
"@oclif/plugin-help": "^6.2.33",
|
|
35
|
+
"@oclif/plugin-not-found": "^3.2.68",
|
|
36
|
+
"@oclif/plugin-plugins": "^5.4.47",
|
|
37
|
+
"@oclif/table": "^0.4.14",
|
|
38
|
+
"@solana/web3.js": "1.98.4",
|
|
39
|
+
"axios": "1.12.2",
|
|
57
40
|
"case-anything": "^2.1.13",
|
|
58
41
|
"cli-progress": "^3.12.0",
|
|
59
42
|
"cli-spinners": "^2.9.2",
|
|
60
|
-
"dotenv": "^16.4.
|
|
61
|
-
"ffjavascript": "^0.3.
|
|
43
|
+
"dotenv": "^16.4.7",
|
|
44
|
+
"ffjavascript": "^0.3.1",
|
|
62
45
|
"find-process": "^1.4.7",
|
|
63
46
|
"node-fetch": "^3.3.2",
|
|
64
47
|
"snake-case": "^3.0.4",
|
|
65
|
-
"tar": "^
|
|
48
|
+
"tar": "^7.4.3",
|
|
66
49
|
"tweetnacl": "^1.0.3",
|
|
67
50
|
"wait-on": "^7.2.0",
|
|
68
|
-
"which": "^
|
|
69
|
-
"@lightprotocol/compressed-token": "0.22.1-alpha.
|
|
70
|
-
"@lightprotocol/stateless.js": "0.22.1-alpha.
|
|
51
|
+
"which": "^5.0.0",
|
|
52
|
+
"@lightprotocol/compressed-token": "0.22.1-alpha.2",
|
|
53
|
+
"@lightprotocol/stateless.js": "0.22.1-alpha.1"
|
|
71
54
|
},
|
|
72
55
|
"devDependencies": {
|
|
73
|
-
"@
|
|
56
|
+
"@eslint/js": "9.36.0",
|
|
57
|
+
"@oclif/test": "^4.1.14",
|
|
74
58
|
"@solana/spl-token": "^0.3.11",
|
|
75
59
|
"@types/bn.js": "^5.1.5",
|
|
76
|
-
"@types/chai": "^
|
|
77
|
-
"@types/cli-progress": "^3.11.
|
|
78
|
-
"@types/mocha": "^10.0.
|
|
79
|
-
"@types/node": "^
|
|
80
|
-
"@types/tar": "^6.1.
|
|
81
|
-
"@types/
|
|
82
|
-
"@
|
|
83
|
-
"@typescript-eslint/
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"eslint
|
|
87
|
-
"eslint-config-
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"oclif": "4.8.0",
|
|
60
|
+
"@types/chai": "^5.2.2",
|
|
61
|
+
"@types/cli-progress": "^3.11.6",
|
|
62
|
+
"@types/mocha": "^10.0.10",
|
|
63
|
+
"@types/node": "^22",
|
|
64
|
+
"@types/tar": "^6.1.13",
|
|
65
|
+
"@types/wait-on": "^5.3.4",
|
|
66
|
+
"@types/which": "^3.0.4",
|
|
67
|
+
"@typescript-eslint/eslint-plugin": "^8.44.0",
|
|
68
|
+
"@typescript-eslint/parser": "^8.44.0",
|
|
69
|
+
"chai": "^6.0.1",
|
|
70
|
+
"eslint": "^9.36.0",
|
|
71
|
+
"eslint-config-prettier": "^10.1.8",
|
|
72
|
+
"mocha": "^11.7.2",
|
|
73
|
+
"oclif": "^4.22.22",
|
|
91
74
|
"prettier": "^3.3.3",
|
|
92
75
|
"shx": "^0.3.4",
|
|
93
76
|
"ts-mocha": "^10.0.0",
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"typescript": "^5.
|
|
97
|
-
"@lightprotocol/programs": "0.3.0"
|
|
77
|
+
"tslib": "^2.8.1",
|
|
78
|
+
"tsx": "^4.20.5",
|
|
79
|
+
"typescript": "^5.9.2"
|
|
98
80
|
},
|
|
99
81
|
"oclif": {
|
|
100
82
|
"bin": "light",
|
|
@@ -109,7 +91,7 @@
|
|
|
109
91
|
"topicSeparator": ""
|
|
110
92
|
},
|
|
111
93
|
"engines": {
|
|
112
|
-
"node": ">=
|
|
94
|
+
"node": ">=16.0.0"
|
|
113
95
|
},
|
|
114
96
|
"keywords": [
|
|
115
97
|
"oclif"
|
|
@@ -129,18 +111,37 @@
|
|
|
129
111
|
"{workspaceRoot}/lib",
|
|
130
112
|
"{workspaceRoot}/test_bin"
|
|
131
113
|
]
|
|
114
|
+
},
|
|
115
|
+
"build-ci": {
|
|
116
|
+
"dependsOn": [
|
|
117
|
+
"@lightprotocol/stateless.js:build-ci",
|
|
118
|
+
"@lightprotocol/compressed-token:build-ci"
|
|
119
|
+
],
|
|
120
|
+
"inputs": [
|
|
121
|
+
"{workspaceRoot}/js",
|
|
122
|
+
"{workspaceRoot}/gnark-prover",
|
|
123
|
+
"{projectRoot}/scripts/**"
|
|
124
|
+
],
|
|
125
|
+
"outputs": [
|
|
126
|
+
"{workspaceRoot}/bin",
|
|
127
|
+
"{workspaceRoot}/dist",
|
|
128
|
+
"{workspaceRoot}/lib",
|
|
129
|
+
"{workspaceRoot}/test_bin"
|
|
130
|
+
]
|
|
131
|
+
},
|
|
132
|
+
"test-ci": {
|
|
133
|
+
"dependsOn": []
|
|
132
134
|
}
|
|
133
135
|
}
|
|
134
136
|
},
|
|
135
137
|
"scripts": {
|
|
136
|
-
"add-bins": "./scripts/copyLocalProgramBinaries.sh
|
|
137
|
-
"add-bins-release": "./scripts/copyLocalProgramBinaries.sh && scripts/buildProver.sh --release-only",
|
|
138
|
+
"add-bins": "./scripts/copyLocalProgramBinaries.sh",
|
|
138
139
|
"postinstall": "[ -d ./bin ] && find ./bin -type f -exec chmod +x {} + || echo 'No bin directory found, skipping chmod'",
|
|
139
140
|
"build": "shx rm -rf dist && pnpm tsc -p tsconfig.json && pnpm tsc -p tsconfig.test.json && pnpm add-bins",
|
|
140
|
-
"build-release": "shx rm -rf dist && pnpm tsc -p tsconfig.json && pnpm tsc -p tsconfig.test.json && pnpm add-bins
|
|
141
|
+
"build-release": "shx rm -rf dist && pnpm tsc -p tsconfig.json && pnpm tsc -p tsconfig.test.json && pnpm add-bins",
|
|
141
142
|
"format": "pnpm prettier --write \"src/**/*.{ts,js}\" \"test/**/*.{ts,js}\" -w",
|
|
142
143
|
"format:check": "pnpm prettier \"src/**/*{ts,js}\" \"test/**/*.{ts,js}\" --check",
|
|
143
|
-
"lint": "eslint .
|
|
144
|
+
"lint": "eslint .",
|
|
144
145
|
"lint:fix": "eslint . --fix",
|
|
145
146
|
"test-utils": "mocha ./test/utils/index.test.ts -t 10000000 --exit",
|
|
146
147
|
"test-config": "mocha ./test/commands/config/index.test.ts -t 10000000 --exit",
|
package/test_bin/dev
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
require('tsx/cjs')
|
|
4
4
|
|
|
5
|
-
const
|
|
6
|
-
const project = path.join(__dirname, '..', 'tsconfig.test.json')
|
|
5
|
+
const oclif = require('@oclif/core')
|
|
7
6
|
|
|
8
|
-
// In dev mode -> use
|
|
7
|
+
// In dev mode -> use tsx and dev plugins
|
|
9
8
|
process.env.NODE_ENV = 'development'
|
|
10
9
|
|
|
11
|
-
require('ts-node').register({project})
|
|
12
|
-
|
|
13
10
|
// In dev mode, always show stack traces
|
|
14
11
|
oclif.settings.debug = true;
|
|
15
12
|
|
|
16
13
|
// Start the CLI
|
|
17
|
-
oclif.run().then(oclif.flush).catch(oclif.Errors.handle)
|
|
14
|
+
oclif.run().then(oclif.flush).catch(oclif.Errors.handle)
|