@lightprotocol/zk-compression-cli 0.27.1-alpha.1 → 0.27.1-alpha.11

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.
Files changed (104) hide show
  1. package/accounts/address_merkle_tree_amt1Ayt45jfbdw5YSo7iz6WZxUmnZsQTYXy82hVwyC2.json +1 -1
  2. package/accounts/address_merkle_tree_queue_aq1S9z4reTSQAdgWHGD2zDaS39sjGrAxbR31vxJ2F4F.json +1 -1
  3. package/accounts/batch_address_merkle_tree_EzKE84aVTkCUhDHLELqyJaq1Y7UVVmqxXqZjVHwHY3rK.json +14 -1
  4. package/accounts/{batch_state_merkle_tree_2_2Yb3fGo2E9aWLjY8KuESaqurYpGGhEeJr7eynKrSgXwS.json → batch_address_merkle_tree_amt2kaJA14v3urZbZvnc5v2np8jqvc4Z8zDep5wbtzx.json} +1 -1
  5. package/accounts/{batch_state_merkle_tree_HLKs5NJ8FXkJg8BrzJt56adFYYuwg5etzDtBbQYTsixu.json → batch_state_merkle_tree_bmt1LryLZUMmF7ZtqESaw7wifBXLfXHQYoE4GAmrahU.json} +1 -1
  6. package/accounts/batch_state_merkle_tree_bmt2UxoBxB9xWev4BkLvkGdapsz6sZGkzViPNph7VFi.json +1 -0
  7. package/accounts/batch_state_merkle_tree_bmt3ccLd4bqSVZVeCJnH1F6C8jNygAhaDfxDwePyyGb.json +1 -0
  8. package/accounts/batch_state_merkle_tree_bmt4d3p1a4YQgk9PeZv5s4DBUmbF5NxqYpk9HGjQsd8.json +1 -0
  9. package/accounts/batch_state_merkle_tree_bmt5yU97jC88YXTuSukYHa8Z5Bi2ZDUtmzfkDTA2mG2.json +1 -0
  10. package/accounts/{batched_output_queue_2_12wJT3xYd46rtjeqDU6CrtT8unqLjPiheggzqhN9YsyB.json → batched_output_queue_oq1na8gojfdUhsfCpyjNt6h4JaDWtHf1yQj4koBWfto.json} +1 -1
  11. package/accounts/{batched_output_queue_6L7SzhYB3anwEQ9cphpJ1U7Scwj57bx2xueReg7R9cKU.json → batched_output_queue_oq2UkeMsJLfXt2QHzim242SUi3nvjJs8Pn7Eac9H9vg.json} +1 -1
  12. package/accounts/batched_output_queue_oq3AxjekBWgo64gpauB6QtuZNesuv19xrhaC1ZM1THQ.json +1 -0
  13. package/accounts/batched_output_queue_oq4ypwvVGzCUMoiKKHWh4S1SgZJ9vCvKpcz6RT6A8dq.json +1 -0
  14. package/accounts/batched_output_queue_oq5oh5ZR3yGomuQgFduNDzjtGvVWfDRGLuDVjv9a96P.json +1 -0
  15. package/accounts/compressible_config_pda_ACXg8a7VaqecBWrSbdu73W4Pg9gsqXJ3EXAqkHyhvVXg.json +1 -0
  16. package/accounts/config_counter_pda_8gH9tmziWsS8Wc4fnoN5ax3jsSumNYoRDuSBvmH2GMH8.json +1 -0
  17. package/accounts/{test_batched_cpi_context_7Hp52chxaew8bW1ApR4fck2bh6Y8qA1pu3qwH6N9zaLj.json → cpi_context_cpi15BoVPKgEPw5o8wc2T816GE7b378nMXnhH3Xbq4y.json} +1 -1
  18. package/accounts/cpi_context_cpi1uHzrEhBG733DoEJNgHCyRS3XmmyVNZx5fonubE4.json +1 -1
  19. package/accounts/cpi_context_cpi2cdhkH5roePvcudTgUL8ppEBfTay1desGh8G8QxK.json +1 -1
  20. package/accounts/{cpi_context_batched_2_HwtjxDvFEXiWnzeMeWkMBzpQN45A95rTJNZmz1Z3pe8R.json → cpi_context_cpi2yGapXUR3As5SjnHBAVvmApNiLsbeZpF3euWnW6B.json} +1 -14
  21. package/accounts/cpi_context_cpi3mbwMpSX8FAGMZVP85AwxqCaQMfEk9Em1v8QK9Rf.json +1 -0
  22. package/accounts/cpi_context_cpi4yyPDc4bCgHAnsenunGA8Y77j3XEDyjgfyCKgcoc.json +1 -0
  23. package/accounts/cpi_context_cpi5ZTjdgYpZ1Xr7B1cMLLUE81oTtJbNNAyKary2nV6.json +1 -0
  24. package/accounts/epoch_pda_34w7KcLBXabMkHuXE2fY368vFe6kP3v5EJn8nPvQ8SKn.json +1 -1
  25. package/accounts/forester_epoch_pda_3FBt1BPQHCQkS8k3wrUXMfB6JBhtMhEqQXueHRw2ojZV.json +1 -1
  26. package/accounts/governance_authority_pda_CuEtcKkkbTn6qy2qxqDswq5U2ADsqoipYDAYfRvxPjcp.json +1 -1
  27. package/accounts/group_pda_24rt4RgeyjUCWGS2eF7L7gyNMuz6JWdqYpAvb1KRoHxs.json +1 -1
  28. package/accounts/merkle_tree_pubkey_smt1NamzXdq4AMqS2fS2F1i5KTYPZRhoHgWx38d8WsT.json +1 -1
  29. package/accounts/merkle_tree_pubkey_smt2rJAFdyJJupwMKAqTNAJwvjhmiZ4JYGZmbVRw1Ho.json +1 -1
  30. package/accounts/nullifier_queue_pubkey_nfq1NvQDJ2GEgnS8zt9prAe8rjjpAW1zFkrvZoBR148.json +1 -1
  31. package/accounts/nullifier_queue_pubkey_nfq2hgS7NYemXsFaFUCe3EMXSDSfnZnAe27jC6aPP1X.json +1 -1
  32. package/accounts/registered_forester_pda_2KNqEh23Se8AHecuzR1UkxL26euq2qXSpQPTH1jH7VqU.json +1 -1
  33. package/accounts/rent_sponsor_pda_r18WwUxfG8kQ69bQPAB2jV6zGNKy3GosFGctjQoV4ti.json +1 -0
  34. package/bin/account_compression.so +0 -0
  35. package/bin/light_compressed_token.so +0 -0
  36. package/bin/light_registry.so +0 -0
  37. package/bin/light_system_program_pinocchio.so +0 -0
  38. package/dist/commands/approve-and-mint-to/index.js +26 -29
  39. package/dist/commands/balance/index.js +12 -11
  40. package/dist/commands/compress-sol/index.js +13 -13
  41. package/dist/commands/compress-spl/index.js +19 -19
  42. package/dist/commands/config/config.js +67 -33
  43. package/dist/commands/create-mint/index.js +19 -20
  44. package/dist/commands/create-token-pool/index.js +9 -9
  45. package/dist/commands/decompress-sol/index.js +13 -13
  46. package/dist/commands/decompress-spl/index.js +19 -19
  47. package/dist/commands/init/index.js +8 -8
  48. package/dist/commands/merge-token-accounts/index.js +13 -14
  49. package/dist/commands/mint-to/index.js +24 -25
  50. package/dist/commands/start-prover/index.d.ts +0 -3
  51. package/dist/commands/start-prover/index.js +13 -58
  52. package/dist/commands/test-validator/index.d.ts +4 -2
  53. package/dist/commands/test-validator/index.js +107 -109
  54. package/dist/commands/token-balance/index.js +15 -15
  55. package/dist/commands/transfer/index.js +23 -24
  56. package/dist/psp-utils/download.js +1 -1
  57. package/dist/utils/constants.d.ts +2 -2
  58. package/dist/utils/constants.js +2 -3
  59. package/dist/utils/downloadProverBinary.d.ts +7 -0
  60. package/dist/utils/downloadProverBinary.js +107 -0
  61. package/dist/utils/initTestEnv.d.ts +12 -5
  62. package/dist/utils/initTestEnv.js +89 -16
  63. package/dist/utils/process.d.ts +10 -0
  64. package/dist/utils/process.js +56 -6
  65. package/dist/utils/processPhotonIndexer.d.ts +1 -1
  66. package/dist/utils/processPhotonIndexer.js +7 -4
  67. package/dist/utils/processProverServer.d.ts +1 -2
  68. package/dist/utils/processProverServer.js +70 -86
  69. package/dist/utils/proverVersion.generated.d.ts +1 -0
  70. package/dist/utils/proverVersion.generated.js +5 -0
  71. package/dist/utils/utils.d.ts +4 -0
  72. package/dist/utils/utils.js +44 -3
  73. package/oclif.manifest.json +173 -221
  74. package/package.json +63 -64
  75. package/test_bin/dev +4 -7
  76. package/test_bin/run +2 -2
  77. package/bin/forester +0 -0
  78. package/bin/forester.toml +0 -15
  79. package/bin/light_system_program.so +0 -0
  80. package/bin/prover-darwin-arm64 +0 -0
  81. package/bin/prover-darwin-x64 +0 -0
  82. package/bin/prover-linux-arm64 +0 -0
  83. package/bin/prover-linux-x64 +0 -0
  84. package/bin/proving-keys/combined_26_1_1.key +0 -0
  85. package/bin/proving-keys/combined_26_1_2.key +0 -0
  86. package/bin/proving-keys/combined_26_2_1.key +0 -0
  87. package/bin/proving-keys/combined_32_40_1_1.key +0 -0
  88. package/bin/proving-keys/combined_32_40_1_2.key +0 -0
  89. package/bin/proving-keys/combined_32_40_2_1.key +0 -0
  90. package/bin/proving-keys/inclusion_32_1.key +0 -0
  91. package/bin/proving-keys/inclusion_32_2.key +0 -0
  92. package/bin/proving-keys/inclusion_32_3.key +0 -0
  93. package/bin/proving-keys/inclusion_32_4.key +0 -0
  94. package/bin/proving-keys/mainnet_inclusion_26_1.key +0 -0
  95. package/bin/proving-keys/mainnet_inclusion_26_2.key +0 -0
  96. package/bin/proving-keys/mainnet_inclusion_26_3.key +0 -0
  97. package/bin/proving-keys/mainnet_inclusion_26_4.key +0 -0
  98. package/bin/proving-keys/non-inclusion_26_1.key +0 -0
  99. package/bin/proving-keys/non-inclusion_26_2.key +0 -0
  100. package/bin/proving-keys/non-inclusion_40_1.key +0 -0
  101. package/bin/proving-keys/non-inclusion_40_2.key +0 -0
  102. package/bin/proving-keys/non-inclusion_40_3.key +0 -0
  103. package/bin/proving-keys/non-inclusion_40_4.key +0 -0
  104. package/test_bin/lut.json +0 -1
@@ -57,55 +57,6 @@
57
57
  "index.js"
58
58
  ]
59
59
  },
60
- "compress-spl": {
61
- "aliases": [],
62
- "args": {},
63
- "examples": [
64
- "$ light compress-spl --mint PublicKey --to PublicKey --amount 10"
65
- ],
66
- "flags": {
67
- "mint": {
68
- "description": "Specify the mint address.",
69
- "name": "mint",
70
- "required": true,
71
- "hasDynamicHelp": false,
72
- "multiple": false,
73
- "type": "option"
74
- },
75
- "to": {
76
- "description": "Specify the recipient address (owner of destination compressed token account).",
77
- "name": "to",
78
- "required": true,
79
- "hasDynamicHelp": false,
80
- "multiple": false,
81
- "type": "option"
82
- },
83
- "amount": {
84
- "description": "Amount to compress, in tokens.",
85
- "name": "amount",
86
- "required": true,
87
- "hasDynamicHelp": false,
88
- "multiple": false,
89
- "type": "option"
90
- }
91
- },
92
- "hasDynamicHelp": false,
93
- "hiddenAliases": [],
94
- "id": "compress-spl",
95
- "pluginAlias": "@lightprotocol/zk-compression-cli",
96
- "pluginName": "@lightprotocol/zk-compression-cli",
97
- "pluginType": "core",
98
- "strict": true,
99
- "summary": "Compress SPL tokens.",
100
- "enableJsonFlag": false,
101
- "isESM": false,
102
- "relativePath": [
103
- "dist",
104
- "commands",
105
- "compress-spl",
106
- "index.js"
107
- ]
108
- },
109
60
  "balance": {
110
61
  "aliases": [],
111
62
  "args": {},
@@ -180,66 +131,32 @@
180
131
  "index.js"
181
132
  ]
182
133
  },
183
- "create-mint": {
134
+ "compress-spl": {
184
135
  "aliases": [],
185
136
  "args": {},
186
137
  "examples": [
187
- "$ light create-mint --mint-decimals 5"
138
+ "$ light compress-spl --mint PublicKey --to PublicKey --amount 10"
188
139
  ],
189
140
  "flags": {
190
- "mint-keypair": {
191
- "description": "Provide a path to a mint keypair file. Defaults to a random keypair",
192
- "name": "mint-keypair",
193
- "required": false,
141
+ "mint": {
142
+ "description": "Specify the mint address.",
143
+ "name": "mint",
144
+ "required": true,
194
145
  "hasDynamicHelp": false,
195
146
  "multiple": false,
196
147
  "type": "option"
197
148
  },
198
- "mint-authority": {
199
- "description": "Address of the mint authority. Defaults to the fee payer",
200
- "name": "mint-authority",
201
- "required": false,
149
+ "to": {
150
+ "description": "Specify the recipient address (owner of destination compressed token account).",
151
+ "name": "to",
152
+ "required": true,
202
153
  "hasDynamicHelp": false,
203
154
  "multiple": false,
204
155
  "type": "option"
205
156
  },
206
- "mint-decimals": {
207
- "description": "Number of base 10 digits to the right of the decimal place [default: 9]",
208
- "name": "mint-decimals",
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",
157
+ "amount": {
158
+ "description": "Amount to compress, in tokens.",
159
+ "name": "amount",
243
160
  "required": true,
244
161
  "hasDynamicHelp": false,
245
162
  "multiple": false,
@@ -248,18 +165,18 @@
248
165
  },
249
166
  "hasDynamicHelp": false,
250
167
  "hiddenAliases": [],
251
- "id": "create-token-pool",
168
+ "id": "compress-spl",
252
169
  "pluginAlias": "@lightprotocol/zk-compression-cli",
253
170
  "pluginName": "@lightprotocol/zk-compression-cli",
254
171
  "pluginType": "core",
255
172
  "strict": true,
256
- "summary": "Register an existing mint with the CompressedToken program",
173
+ "summary": "Compress SPL tokens.",
257
174
  "enableJsonFlag": false,
258
175
  "isESM": false,
259
176
  "relativePath": [
260
177
  "dist",
261
178
  "commands",
262
- "create-token-pool",
179
+ "compress-spl",
263
180
  "index.js"
264
181
  ]
265
182
  },
@@ -369,6 +286,89 @@
369
286
  "index.js"
370
287
  ]
371
288
  },
289
+ "create-mint": {
290
+ "aliases": [],
291
+ "args": {},
292
+ "examples": [
293
+ "$ light create-mint --mint-decimals 5"
294
+ ],
295
+ "flags": {
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,
300
+ "hasDynamicHelp": false,
301
+ "multiple": false,
302
+ "type": "option"
303
+ },
304
+ "mint-authority": {
305
+ "description": "Address of the mint authority. Defaults to the fee payer",
306
+ "name": "mint-authority",
307
+ "required": false,
308
+ "hasDynamicHelp": false,
309
+ "multiple": false,
310
+ "type": "option"
311
+ },
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,
317
+ "hasDynamicHelp": false,
318
+ "multiple": false,
319
+ "type": "option"
320
+ }
321
+ },
322
+ "hasDynamicHelp": false,
323
+ "hiddenAliases": [],
324
+ "id": "create-mint",
325
+ "pluginAlias": "@lightprotocol/zk-compression-cli",
326
+ "pluginName": "@lightprotocol/zk-compression-cli",
327
+ "pluginType": "core",
328
+ "strict": true,
329
+ "summary": "Create a new compressed token mint",
330
+ "enableJsonFlag": false,
331
+ "isESM": false,
332
+ "relativePath": [
333
+ "dist",
334
+ "commands",
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
+ "index.js"
370
+ ]
371
+ },
372
372
  "decompress-sol": {
373
373
  "aliases": [],
374
374
  "args": {},
@@ -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": {},
@@ -674,7 +593,9 @@
674
593
  "$ light test-validator --skip-indexer",
675
594
  "$ light test-validator --geyser-config ./config.json",
676
595
  "$ light test-validator --validator-args \"--limit-ledger-size 50000000\"",
677
- "$ light test-validator --sbf-program <address> <path/program>"
596
+ "$ light test-validator --sbf-program <address> <path/program>",
597
+ "$ light test-validator --devnet",
598
+ "$ light test-validator --mainnet"
678
599
  ],
679
600
  "flags": {
680
601
  "skip-indexer": {
@@ -748,45 +669,6 @@
748
669
  "multiple": false,
749
670
  "type": "option"
750
671
  },
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
672
  "limit-ledger-size": {
791
673
  "description": "Keep this amount of shreds in root slots.",
792
674
  "name": "limit-ledger-size",
@@ -839,6 +721,37 @@
839
721
  "hasDynamicHelp": false,
840
722
  "multiple": true,
841
723
  "type": "option"
724
+ },
725
+ "devnet": {
726
+ "description": "Clone Light Protocol programs and accounts from devnet instead of loading local binaries.",
727
+ "exclusive": [
728
+ "mainnet"
729
+ ],
730
+ "name": "devnet",
731
+ "allowNo": false,
732
+ "type": "boolean"
733
+ },
734
+ "mainnet": {
735
+ "description": "Clone Light Protocol programs and accounts from mainnet instead of loading local binaries.",
736
+ "exclusive": [
737
+ "devnet"
738
+ ],
739
+ "name": "mainnet",
740
+ "allowNo": false,
741
+ "type": "boolean"
742
+ },
743
+ "verbose": {
744
+ "char": "v",
745
+ "description": "Enable verbose logging.",
746
+ "name": "verbose",
747
+ "allowNo": false,
748
+ "type": "boolean"
749
+ },
750
+ "skip-reset": {
751
+ "description": "Skip resetting the ledger.",
752
+ "name": "skip-reset",
753
+ "allowNo": false,
754
+ "type": "boolean"
842
755
  }
843
756
  },
844
757
  "hasDynamicHelp": false,
@@ -954,7 +867,46 @@
954
867
  "transfer",
955
868
  "index.js"
956
869
  ]
870
+ },
871
+ "start-prover": {
872
+ "aliases": [],
873
+ "args": {},
874
+ "description": "Start gnark prover",
875
+ "flags": {
876
+ "prover-port": {
877
+ "description": "Enable Light Prover server on this port.",
878
+ "name": "prover-port",
879
+ "required": false,
880
+ "default": 3001,
881
+ "hasDynamicHelp": false,
882
+ "multiple": false,
883
+ "type": "option"
884
+ },
885
+ "redisUrl": {
886
+ "description": "Redis URL to use for the prover (e.g. redis://localhost:6379)",
887
+ "name": "redisUrl",
888
+ "required": false,
889
+ "hasDynamicHelp": false,
890
+ "multiple": false,
891
+ "type": "option"
892
+ }
893
+ },
894
+ "hasDynamicHelp": false,
895
+ "hiddenAliases": [],
896
+ "id": "start-prover",
897
+ "pluginAlias": "@lightprotocol/zk-compression-cli",
898
+ "pluginName": "@lightprotocol/zk-compression-cli",
899
+ "pluginType": "core",
900
+ "strict": true,
901
+ "enableJsonFlag": false,
902
+ "isESM": false,
903
+ "relativePath": [
904
+ "dist",
905
+ "commands",
906
+ "start-prover",
907
+ "index.js"
908
+ ]
957
909
  }
958
910
  },
959
- "version": "0.27.1-alpha.1"
911
+ "version": "0.27.1-alpha.11"
960
912
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightprotocol/zk-compression-cli",
3
- "version": "0.27.1-alpha.1",
3
+ "version": "0.27.1-alpha.11",
4
4
  "description": "ZK Compression: Secure Scaling on Solana",
5
5
  "maintainers": [
6
6
  {
@@ -18,28 +18,8 @@
18
18
  "/bin",
19
19
  "!bin/cargo-generate",
20
20
  "!/bin/**/*.vkey",
21
- "!/bin/proving-keys/*.key",
22
- "!/bin/prover-windows-*.exe",
23
- "/bin/proving-keys/combined_26_1_1.key",
24
- "/bin/proving-keys/combined_26_1_2.key",
25
- "/bin/proving-keys/combined_26_2_1.key",
26
- "/bin/proving-keys/combined_32_40_1_1.key",
27
- "/bin/proving-keys/combined_32_40_1_2.key",
28
- "/bin/proving-keys/combined_32_40_2_1.key",
29
- "/bin/proving-keys/inclusion_32_1.key",
30
- "/bin/proving-keys/inclusion_32_2.key",
31
- "/bin/proving-keys/inclusion_32_3.key",
32
- "/bin/proving-keys/inclusion_32_4.key",
33
- "/bin/proving-keys/mainnet_inclusion_26_1.key",
34
- "/bin/proving-keys/mainnet_inclusion_26_2.key",
35
- "/bin/proving-keys/mainnet_inclusion_26_3.key",
36
- "/bin/proving-keys/mainnet_inclusion_26_4.key",
37
- "/bin/proving-keys/non-inclusion_26_1.key",
38
- "/bin/proving-keys/non-inclusion_26_2.key",
39
- "/bin/proving-keys/non-inclusion_40_1.key",
40
- "/bin/proving-keys/non-inclusion_40_2.key",
41
- "/bin/proving-keys/non-inclusion_40_3.key",
42
- "/bin/proving-keys/non-inclusion_40_4.key",
21
+ "!/bin/proving-keys",
22
+ "!/bin/prover-*",
43
23
  "/dist",
44
24
  "/test_bin",
45
25
  "./config.json",
@@ -47,57 +27,56 @@
47
27
  "/oclif.manifest.json"
48
28
  ],
49
29
  "dependencies": {
50
- "@coral-xyz/anchor": "0.29.0",
30
+ "@coral-xyz/anchor": "^0.29.0",
51
31
  "@lightprotocol/hasher.rs": "0.2.1",
52
- "@oclif/core": "^3.26.2",
53
- "@oclif/plugin-autocomplete": "^3.0.13",
54
- "@oclif/plugin-help": "^6.0.20",
55
- "@oclif/plugin-not-found": "^3.1.2",
56
- "@oclif/plugin-plugins": "^5.0.7",
57
- "@solana-developers/helpers": "^1.5.1",
58
- "@solana/web3.js": "1.98.0",
59
- "axios": "^1.6.8",
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",
60
40
  "case-anything": "^2.1.13",
61
41
  "cli-progress": "^3.12.0",
62
42
  "cli-spinners": "^2.9.2",
63
- "dotenv": "^16.4.5",
64
- "ffjavascript": "^0.3.0",
43
+ "dotenv": "^16.4.7",
44
+ "ffjavascript": "^0.3.1",
65
45
  "find-process": "^1.4.7",
66
46
  "node-fetch": "^3.3.2",
67
47
  "snake-case": "^3.0.4",
68
- "tar": "^6.2.1",
48
+ "tar": "^7.4.3",
69
49
  "tweetnacl": "^1.0.3",
70
50
  "wait-on": "^7.2.0",
71
- "which": "^4.0.0",
72
- "@lightprotocol/compressed-token": "0.22.1-alpha.0",
73
- "@lightprotocol/stateless.js": "0.22.1-alpha.0"
51
+ "which": "^5.0.0",
52
+ "@lightprotocol/compressed-token": "0.22.1-alpha.9",
53
+ "@lightprotocol/stateless.js": "0.22.1-alpha.8"
74
54
  },
75
55
  "devDependencies": {
76
- "@oclif/test": "2.3.9",
56
+ "@eslint/js": "9.36.0",
57
+ "@oclif/test": "^4.1.14",
77
58
  "@solana/spl-token": "^0.3.11",
78
59
  "@types/bn.js": "^5.1.5",
79
- "@types/chai": "^4.3.16",
80
- "@types/cli-progress": "^3.11.5",
81
- "@types/mocha": "^10.0.7",
82
- "@types/node": "^20.12.8",
83
- "@types/tar": "^6.1.12",
84
- "@types/which": "^3.0.3",
85
- "@typescript-eslint/eslint-plugin": "^7.6.0",
86
- "@typescript-eslint/parser": "^7.6.0",
87
- "chai": "^4.4.1",
88
- "eslint": "8.57.0",
89
- "eslint-config-oclif": "5.1.1",
90
- "eslint-config-oclif-typescript": "3.1.4",
91
- "eslint-config-prettier": "9.1.0",
92
- "mocha": "^10.6.0",
93
- "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",
94
74
  "prettier": "^3.3.3",
95
75
  "shx": "^0.3.4",
96
76
  "ts-mocha": "^10.0.0",
97
- "ts-node": "^10.9.2",
98
- "tslib": "^2.6.2",
99
- "typescript": "^5.5.3",
100
- "@lightprotocol/programs": "0.3.0"
77
+ "tslib": "^2.8.1",
78
+ "tsx": "^4.20.5",
79
+ "typescript": "^5.9.2"
101
80
  },
102
81
  "oclif": {
103
82
  "bin": "light",
@@ -112,7 +91,7 @@
112
91
  "topicSeparator": ""
113
92
  },
114
93
  "engines": {
115
- "node": ">=12.0.0"
94
+ "node": ">=16.0.0"
116
95
  },
117
96
  "keywords": [
118
97
  "oclif"
@@ -132,18 +111,38 @@
132
111
  "{workspaceRoot}/lib",
133
112
  "{workspaceRoot}/test_bin"
134
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": []
135
134
  }
136
135
  }
137
136
  },
138
137
  "scripts": {
139
- "add-bins": "./scripts/copyLocalProgramBinaries.sh && scripts/buildProver.sh",
140
- "add-bins-release": "./scripts/copyLocalProgramBinaries.sh && scripts/buildProver.sh --release-only",
138
+ "add-bins": "./scripts/copyLocalProgramBinaries.sh",
141
139
  "postinstall": "[ -d ./bin ] && find ./bin -type f -exec chmod +x {} + || echo 'No bin directory found, skipping chmod'",
142
- "build": "shx rm -rf dist && pnpm tsc -p tsconfig.json && pnpm tsc -p tsconfig.test.json && pnpm add-bins",
143
- "build-release": "shx rm -rf dist && pnpm tsc -p tsconfig.json && pnpm tsc -p tsconfig.test.json && pnpm add-bins-release",
140
+ "sync-prover-version": "./scripts/syncProverVersion.sh",
141
+ "build": "shx rm -rf dist && pnpm sync-prover-version && pnpm tsc -p tsconfig.json && pnpm tsc -p tsconfig.test.json && pnpm add-bins",
142
+ "build-release": "shx rm -rf dist && pnpm sync-prover-version && pnpm tsc -p tsconfig.json && pnpm tsc -p tsconfig.test.json && pnpm add-bins",
144
143
  "format": "pnpm prettier --write \"src/**/*.{ts,js}\" \"test/**/*.{ts,js}\" -w",
145
144
  "format:check": "pnpm prettier \"src/**/*{ts,js}\" \"test/**/*.{ts,js}\" --check",
146
- "lint": "eslint . --ext .ts",
145
+ "lint": "eslint .",
147
146
  "lint:fix": "eslint . --fix",
148
147
  "test-utils": "mocha ./test/utils/index.test.ts -t 10000000 --exit",
149
148
  "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
- const oclif = require('@oclif/core')
3
+ require('tsx/cjs')
4
4
 
5
- const path = require('path')
6
- const project = path.join(__dirname, '..', 'tsconfig.test.json')
5
+ const oclif = require('@oclif/core')
7
6
 
8
- // In dev mode -> use ts-node and dev plugins
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)