@lightprotocol/zk-compression-cli 0.23.0 → 0.25.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.
Files changed (78) hide show
  1. package/README.md +1 -1
  2. package/accounts/address_merkle_tree_amt1Ayt45jfbdw5YSo7iz6WZxUmnZsQTYXy82hVwyC2.json +1 -1
  3. package/accounts/batch_address_merkle_tree_EzKE84aVTkCUhDHLELqyJaq1Y7UVVmqxXqZjVHwHY3rK.json +1 -0
  4. package/accounts/batch_state_merkle_tree_HLKs5NJ8FXkJg8BrzJt56adFYYuwg5etzDtBbQYTsixu.json +1 -0
  5. package/accounts/batched_output_queue_6L7SzhYB3anwEQ9cphpJ1U7Scwj57bx2xueReg7R9cKU.json +1 -0
  6. package/accounts/cpi_context_2_cpi2cdhkH5roePvcudTgUL8ppEBfTay1desGh8G8QxK.json +1 -0
  7. package/accounts/cpi_context_cpi2cdhkH5roePvcudTgUL8ppEBfTay1desGh8G8QxK.json +1 -0
  8. package/accounts/group_pda_32tgQWfaASE7SfTQvMaSJDrqe728tJQ2SGzxtDDrpDwS.json +1 -0
  9. package/accounts/merkle_tree_pubkey_2_smt2rJAFdyJJupwMKAqTNAJwvjhmiZ4JYGZmbVRw1Ho.json +1 -0
  10. package/accounts/merkle_tree_pubkey_smt2rJAFdyJJupwMKAqTNAJwvjhmiZ4JYGZmbVRw1Ho.json +1 -0
  11. package/accounts/nullifier_queue_pubkey_2_nfq2hgS7NYemXsFaFUCe3EMXSDSfnZnAe27jC6aPP1X.json +1 -0
  12. package/accounts/nullifier_queue_pubkey_nfq2hgS7NYemXsFaFUCe3EMXSDSfnZnAe27jC6aPP1X.json +1 -0
  13. package/accounts/registered_program_pda_35hkDgaAKwMCaxRz2ocSZ6NaUrtKkyNqU6c4RV3tYJRh.json +1 -1
  14. package/accounts/registered_registry_program_pda_DumMsyvkaGJG4QnQ1BhTgvoRMXsgGxfpKDUCr22Xqu4w.json +1 -1
  15. package/bin/account_compression.so +0 -0
  16. package/bin/light_compressed_token.so +0 -0
  17. package/bin/light_registry.so +0 -0
  18. package/bin/light_system_program_pinocchio.so +0 -0
  19. package/bin/prover-darwin-arm64 +0 -0
  20. package/bin/prover-darwin-x64 +0 -0
  21. package/bin/prover-linux-arm64 +0 -0
  22. package/bin/prover-linux-x64 +0 -0
  23. package/bin/prover-windows-arm64.exe +0 -0
  24. package/bin/prover-windows-x64.exe +0 -0
  25. package/bin/proving-keys/combined_32_40_1_1.key +0 -0
  26. package/bin/proving-keys/{combined_26_3_2.key → combined_32_40_1_2.key} +0 -0
  27. package/bin/proving-keys/{combined_26_2_2.key → combined_32_40_2_1.key} +0 -0
  28. package/bin/proving-keys/inclusion_32_1.key +0 -0
  29. package/bin/proving-keys/inclusion_32_2.key +0 -0
  30. package/bin/proving-keys/{combined_26_3_1.key → inclusion_32_3.key} +0 -0
  31. package/bin/proving-keys/{combined_26_4_1.key → inclusion_32_4.key} +0 -0
  32. package/bin/proving-keys/non-inclusion_40_1.key +0 -0
  33. package/bin/proving-keys/non-inclusion_40_2.key +0 -0
  34. package/dist/commands/balance/index.d.ts +0 -1
  35. package/dist/commands/balance/index.js +10 -17
  36. package/dist/commands/compress-spl/index.js +3 -1
  37. package/dist/commands/decompress-spl/index.js +3 -1
  38. package/dist/commands/init/index.js +21 -3
  39. package/dist/commands/start-prover/index.d.ts +2 -0
  40. package/dist/commands/start-prover/index.js +31 -6
  41. package/dist/commands/test-validator/index.d.ts +11 -1
  42. package/dist/commands/test-validator/index.js +82 -2
  43. package/dist/commands/token-balance/index.d.ts +12 -0
  44. package/dist/commands/token-balance/index.js +55 -0
  45. package/dist/utils/constants.d.ts +21 -11
  46. package/dist/utils/constants.js +25 -12
  47. package/dist/utils/initTestEnv.d.ts +9 -1
  48. package/dist/utils/initTestEnv.js +38 -28
  49. package/dist/utils/process.d.ts +4 -0
  50. package/dist/utils/process.js +41 -2
  51. package/dist/utils/processPhotonIndexer.d.ts +1 -1
  52. package/dist/utils/processPhotonIndexer.js +33 -24
  53. package/dist/utils/processProverServer.d.ts +3 -1
  54. package/dist/utils/processProverServer.js +83 -2
  55. package/oclif.manifest.json +170 -112
  56. package/package.json +30 -19
  57. package/bin/proving-keys/CHECKSUM +0 -112
  58. package/bin/proving-keys/combined_26_1_1.vkey +0 -1
  59. package/bin/proving-keys/combined_26_1_2.vkey +0 -1
  60. package/bin/proving-keys/combined_26_2_1.vkey +0 -1
  61. package/bin/proving-keys/combined_26_2_2.vkey +0 -1
  62. package/bin/proving-keys/combined_26_3_1.vkey +0 -1
  63. package/bin/proving-keys/combined_26_3_2.vkey +0 -1
  64. package/bin/proving-keys/combined_26_4_1.vkey +0 -1
  65. package/bin/proving-keys/combined_26_4_2.key +0 -0
  66. package/bin/proving-keys/combined_26_4_2.vkey +0 -1
  67. package/bin/proving-keys/inclusion_26_1.vkey +0 -1
  68. package/bin/proving-keys/inclusion_26_2.vkey +0 -1
  69. package/bin/proving-keys/inclusion_26_3.vkey +0 -1
  70. package/bin/proving-keys/inclusion_26_4.vkey +0 -1
  71. package/bin/proving-keys/inclusion_26_8.key +0 -0
  72. package/bin/proving-keys/inclusion_26_8.vkey +0 -1
  73. package/bin/proving-keys/non-inclusion_26_1.vkey +0 -1
  74. package/bin/proving-keys/non-inclusion_26_2.vkey +0 -1
  75. /package/bin/proving-keys/{inclusion_26_1.key → mainnet_inclusion_26_1.key} +0 -0
  76. /package/bin/proving-keys/{inclusion_26_2.key → mainnet_inclusion_26_2.key} +0 -0
  77. /package/bin/proving-keys/{inclusion_26_3.key → mainnet_inclusion_26_3.key} +0 -0
  78. /package/bin/proving-keys/{inclusion_26_4.key → mainnet_inclusion_26_4.key} +0 -0
@@ -61,40 +61,81 @@
61
61
  "aliases": [],
62
62
  "args": {},
63
63
  "examples": [
64
- "$ light balance --mint=<ADDRESS> --owner=<ADDRESS>"
64
+ "$ light balance --owner=<ADDRESS>"
65
65
  ],
66
66
  "flags": {
67
67
  "owner": {
68
- "description": "Address of the compressed token owner.",
68
+ "description": "Address of the owner.",
69
69
  "name": "owner",
70
70
  "required": true,
71
71
  "hasDynamicHelp": false,
72
72
  "multiple": false,
73
73
  "type": "option"
74
- },
74
+ }
75
+ },
76
+ "hasDynamicHelp": false,
77
+ "hiddenAliases": [],
78
+ "id": "balance",
79
+ "pluginAlias": "@lightprotocol/zk-compression-cli",
80
+ "pluginName": "@lightprotocol/zk-compression-cli",
81
+ "pluginType": "core",
82
+ "strict": true,
83
+ "summary": "Get compressed SOL balance",
84
+ "enableJsonFlag": false,
85
+ "isESM": false,
86
+ "relativePath": [
87
+ "dist",
88
+ "commands",
89
+ "balance",
90
+ "index.js"
91
+ ]
92
+ },
93
+ "compress-spl": {
94
+ "aliases": [],
95
+ "args": {},
96
+ "examples": [
97
+ "$ light compress-spl --mint PublicKey --to PublicKey --amount 10"
98
+ ],
99
+ "flags": {
75
100
  "mint": {
76
- "description": "Mint address of the compressed token account.",
101
+ "description": "Specify the mint address.",
77
102
  "name": "mint",
78
103
  "required": true,
79
104
  "hasDynamicHelp": false,
80
105
  "multiple": false,
81
106
  "type": "option"
107
+ },
108
+ "to": {
109
+ "description": "Specify the recipient address (owner of destination compressed token account).",
110
+ "name": "to",
111
+ "required": true,
112
+ "hasDynamicHelp": false,
113
+ "multiple": false,
114
+ "type": "option"
115
+ },
116
+ "amount": {
117
+ "description": "Amount to compress, in tokens.",
118
+ "name": "amount",
119
+ "required": true,
120
+ "hasDynamicHelp": false,
121
+ "multiple": false,
122
+ "type": "option"
82
123
  }
83
124
  },
84
125
  "hasDynamicHelp": false,
85
126
  "hiddenAliases": [],
86
- "id": "balance",
127
+ "id": "compress-spl",
87
128
  "pluginAlias": "@lightprotocol/zk-compression-cli",
88
129
  "pluginName": "@lightprotocol/zk-compression-cli",
89
130
  "pluginType": "core",
90
131
  "strict": true,
91
- "summary": "Get balance",
132
+ "summary": "Compress SPL tokens.",
92
133
  "enableJsonFlag": false,
93
134
  "isESM": false,
94
135
  "relativePath": [
95
136
  "dist",
96
137
  "commands",
97
- "balance",
138
+ "compress-spl",
98
139
  "index.js"
99
140
  ]
100
141
  },
@@ -139,33 +180,34 @@
139
180
  "index.js"
140
181
  ]
141
182
  },
142
- "compress-spl": {
183
+ "create-mint": {
143
184
  "aliases": [],
144
185
  "args": {},
145
186
  "examples": [
146
- "$ light compress-spl --mint PublicKey --to PublicKey --amount 10"
187
+ "$ light create-mint --mint-decimals 5"
147
188
  ],
148
189
  "flags": {
149
- "mint": {
150
- "description": "Specify the mint address.",
151
- "name": "mint",
152
- "required": true,
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,
153
194
  "hasDynamicHelp": false,
154
195
  "multiple": false,
155
196
  "type": "option"
156
197
  },
157
- "to": {
158
- "description": "Specify the recipient address (owner of destination compressed token account).",
159
- "name": "to",
160
- "required": true,
198
+ "mint-authority": {
199
+ "description": "Address of the mint authority. Defaults to the fee payer",
200
+ "name": "mint-authority",
201
+ "required": false,
161
202
  "hasDynamicHelp": false,
162
203
  "multiple": false,
163
204
  "type": "option"
164
205
  },
165
- "amount": {
166
- "description": "Amount to compress, in tokens.",
167
- "name": "amount",
168
- "required": true,
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,
169
211
  "hasDynamicHelp": false,
170
212
  "multiple": false,
171
213
  "type": "option"
@@ -173,75 +215,55 @@
173
215
  },
174
216
  "hasDynamicHelp": false,
175
217
  "hiddenAliases": [],
176
- "id": "compress-spl",
218
+ "id": "create-mint",
177
219
  "pluginAlias": "@lightprotocol/zk-compression-cli",
178
220
  "pluginName": "@lightprotocol/zk-compression-cli",
179
221
  "pluginType": "core",
180
222
  "strict": true,
181
- "summary": "Compress SPL tokens.",
223
+ "summary": "Create a new compressed token mint",
182
224
  "enableJsonFlag": false,
183
225
  "isESM": false,
184
226
  "relativePath": [
185
227
  "dist",
186
228
  "commands",
187
- "compress-spl",
229
+ "create-mint",
188
230
  "index.js"
189
231
  ]
190
232
  },
191
- "config:config": {
233
+ "create-token-pool": {
192
234
  "aliases": [],
193
235
  "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",
195
236
  "examples": [
196
- "$ light config --solanaRpcUrl https://solana-api.example.com"
237
+ "$ light create-token-pool --mint-decimals 5"
197
238
  ],
198
239
  "flags": {
199
- "solanaRpcUrl": {
200
- "description": "Solana RPC url",
201
- "name": "solanaRpcUrl",
202
- "hasDynamicHelp": false,
203
- "multiple": false,
204
- "type": "option"
205
- },
206
- "indexerUrl": {
207
- "description": "Indexer url",
208
- "name": "indexerUrl",
209
- "hasDynamicHelp": false,
210
- "multiple": false,
211
- "type": "option"
212
- },
213
- "proverUrl": {
214
- "description": "Prover url",
215
- "name": "proverUrl",
240
+ "mint": {
241
+ "description": "Provide a base58 encoded mint address to register",
242
+ "name": "mint",
243
+ "required": true,
216
244
  "hasDynamicHelp": false,
217
245
  "multiple": false,
218
246
  "type": "option"
219
- },
220
- "get": {
221
- "description": "Gets the current config values",
222
- "name": "get",
223
- "required": false,
224
- "allowNo": false,
225
- "type": "boolean"
226
247
  }
227
248
  },
228
249
  "hasDynamicHelp": false,
229
250
  "hiddenAliases": [],
230
- "id": "config:config",
251
+ "id": "create-token-pool",
231
252
  "pluginAlias": "@lightprotocol/zk-compression-cli",
232
253
  "pluginName": "@lightprotocol/zk-compression-cli",
233
254
  "pluginType": "core",
234
255
  "strict": true,
256
+ "summary": "Register an existing mint with the CompressedToken program",
235
257
  "enableJsonFlag": false,
236
258
  "isESM": false,
237
259
  "relativePath": [
238
260
  "dist",
239
261
  "commands",
240
- "config",
262
+ "create-token-pool",
241
263
  "index.js"
242
264
  ]
243
265
  },
244
- "config": {
266
+ "config:config": {
245
267
  "aliases": [],
246
268
  "args": {},
247
269
  "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",
@@ -280,7 +302,7 @@
280
302
  },
281
303
  "hasDynamicHelp": false,
282
304
  "hiddenAliases": [],
283
- "id": "config",
305
+ "id": "config:config",
284
306
  "pluginAlias": "@lightprotocol/zk-compression-cli",
285
307
  "pluginName": "@lightprotocol/zk-compression-cli",
286
308
  "pluginType": "core",
@@ -294,86 +316,56 @@
294
316
  "index.js"
295
317
  ]
296
318
  },
297
- "create-mint": {
319
+ "config": {
298
320
  "aliases": [],
299
321
  "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",
300
323
  "examples": [
301
- "$ light create-mint --mint-decimals 5"
324
+ "$ light config --solanaRpcUrl https://solana-api.example.com"
302
325
  ],
303
326
  "flags": {
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,
327
+ "solanaRpcUrl": {
328
+ "description": "Solana RPC url",
329
+ "name": "solanaRpcUrl",
308
330
  "hasDynamicHelp": false,
309
331
  "multiple": false,
310
332
  "type": "option"
311
333
  },
312
- "mint-authority": {
313
- "description": "Address of the mint authority. Defaults to the fee payer",
314
- "name": "mint-authority",
315
- "required": false,
334
+ "indexerUrl": {
335
+ "description": "Indexer url",
336
+ "name": "indexerUrl",
316
337
  "hasDynamicHelp": false,
317
338
  "multiple": false,
318
339
  "type": "option"
319
340
  },
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,
325
- "hasDynamicHelp": false,
326
- "multiple": false,
327
- "type": "option"
328
- }
329
- },
330
- "hasDynamicHelp": false,
331
- "hiddenAliases": [],
332
- "id": "create-mint",
333
- "pluginAlias": "@lightprotocol/zk-compression-cli",
334
- "pluginName": "@lightprotocol/zk-compression-cli",
335
- "pluginType": "core",
336
- "strict": true,
337
- "summary": "Create a new compressed token mint",
338
- "enableJsonFlag": false,
339
- "isESM": false,
340
- "relativePath": [
341
- "dist",
342
- "commands",
343
- "create-mint",
344
- "index.js"
345
- ]
346
- },
347
- "create-token-pool": {
348
- "aliases": [],
349
- "args": {},
350
- "examples": [
351
- "$ light create-token-pool --mint-decimals 5"
352
- ],
353
- "flags": {
354
- "mint": {
355
- "description": "Provide a base58 encoded mint address to register",
356
- "name": "mint",
357
- "required": true,
341
+ "proverUrl": {
342
+ "description": "Prover url",
343
+ "name": "proverUrl",
358
344
  "hasDynamicHelp": false,
359
345
  "multiple": false,
360
346
  "type": "option"
347
+ },
348
+ "get": {
349
+ "description": "Gets the current config values",
350
+ "name": "get",
351
+ "required": false,
352
+ "allowNo": false,
353
+ "type": "boolean"
361
354
  }
362
355
  },
363
356
  "hasDynamicHelp": false,
364
357
  "hiddenAliases": [],
365
- "id": "create-token-pool",
358
+ "id": "config",
366
359
  "pluginAlias": "@lightprotocol/zk-compression-cli",
367
360
  "pluginName": "@lightprotocol/zk-compression-cli",
368
361
  "pluginType": "core",
369
362
  "strict": true,
370
- "summary": "Register an existing mint with the CompressedToken program",
371
363
  "enableJsonFlag": false,
372
364
  "isESM": false,
373
365
  "relativePath": [
374
366
  "dist",
375
367
  "commands",
376
- "create-token-pool",
368
+ "config",
377
369
  "index.js"
378
370
  ]
379
371
  },
@@ -607,12 +599,13 @@
607
599
  "type": "option"
608
600
  },
609
601
  "run-mode": {
610
- "description": "Specify the running mode (forester, forester-test, rpc, full, or full-test)",
602
+ "description": "Specify the running mode (local-rpc, forester, forester-test, rpc, or full). Default: local-rpc",
611
603
  "name": "run-mode",
612
604
  "required": false,
613
605
  "hasDynamicHelp": false,
614
606
  "multiple": false,
615
607
  "options": [
608
+ "local-rpc",
616
609
  "rpc",
617
610
  "forester",
618
611
  "forester-test",
@@ -632,15 +625,28 @@
632
625
  "non-inclusion",
633
626
  "combined",
634
627
  "append-with-proofs",
635
- "append-with-subtrees",
636
628
  "update",
637
629
  "address-append",
638
630
  "append-with-proofs-test",
639
- "append-with-subtrees-test",
640
631
  "update-test",
641
632
  "address-append-test"
642
633
  ],
643
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"
644
650
  }
645
651
  },
646
652
  "hasDynamicHelp": false,
@@ -667,7 +673,8 @@
667
673
  "$ light test-validator",
668
674
  "$ light test-validator --skip-indexer",
669
675
  "$ light test-validator --geyser-config ./config.json",
670
- "$ light test-validator --validator-args \"--limit-ledger-size 50000000\""
676
+ "$ light test-validator --validator-args \"--limit-ledger-size 50000000\"",
677
+ "$ light test-validator --sbf-program <address> <path/program>"
671
678
  ],
672
679
  "flags": {
673
680
  "skip-indexer": {
@@ -742,7 +749,7 @@
742
749
  "type": "option"
743
750
  },
744
751
  "prover-run-mode": {
745
- "description": "Specify the running mode for the prover (forester, forester-test, rpc, or full)",
752
+ "description": "Specify the running mode for the prover (local-rpc, forester, forester-test, rpc, or full). Default: local-rpc",
746
753
  "exclusive": [
747
754
  "skip-prover"
748
755
  ],
@@ -751,6 +758,7 @@
751
758
  "hasDynamicHelp": false,
752
759
  "multiple": false,
753
760
  "options": [
761
+ "local-rpc",
754
762
  "rpc",
755
763
  "forester",
756
764
  "forester-test",
@@ -822,6 +830,15 @@
822
830
  "hasDynamicHelp": false,
823
831
  "multiple": false,
824
832
  "type": "option"
833
+ },
834
+ "sbf-program": {
835
+ "description": "Add a SBF program to the genesis configuration with upgrades disabled. If the ledger already exists then this parameter is silently ignored. First argument can be a pubkey string or path to a keypair",
836
+ "name": "sbf-program",
837
+ "required": false,
838
+ "summary": "Usage: --sbf-program <address> <path/program_name.so>",
839
+ "hasDynamicHelp": false,
840
+ "multiple": true,
841
+ "type": "option"
825
842
  }
826
843
  },
827
844
  "hasDynamicHelp": false,
@@ -840,6 +857,47 @@
840
857
  "index.js"
841
858
  ]
842
859
  },
860
+ "token-balance": {
861
+ "aliases": [],
862
+ "args": {},
863
+ "examples": [
864
+ "$ light token-balance --mint=<ADDRESS> --owner=<ADDRESS>"
865
+ ],
866
+ "flags": {
867
+ "owner": {
868
+ "description": "Address of the compressed token owner.",
869
+ "name": "owner",
870
+ "required": true,
871
+ "hasDynamicHelp": false,
872
+ "multiple": false,
873
+ "type": "option"
874
+ },
875
+ "mint": {
876
+ "description": "Mint address of the compressed token account.",
877
+ "name": "mint",
878
+ "required": true,
879
+ "hasDynamicHelp": false,
880
+ "multiple": false,
881
+ "type": "option"
882
+ }
883
+ },
884
+ "hasDynamicHelp": false,
885
+ "hiddenAliases": [],
886
+ "id": "token-balance",
887
+ "pluginAlias": "@lightprotocol/zk-compression-cli",
888
+ "pluginName": "@lightprotocol/zk-compression-cli",
889
+ "pluginType": "core",
890
+ "strict": true,
891
+ "summary": "Get balance",
892
+ "enableJsonFlag": false,
893
+ "isESM": false,
894
+ "relativePath": [
895
+ "dist",
896
+ "commands",
897
+ "token-balance",
898
+ "index.js"
899
+ ]
900
+ },
843
901
  "transfer": {
844
902
  "aliases": [],
845
903
  "args": {},
@@ -898,5 +956,5 @@
898
956
  ]
899
957
  }
900
958
  },
901
- "version": "0.23.0"
959
+ "version": "0.25.0"
902
960
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightprotocol/zk-compression-cli",
3
- "version": "0.23.0",
3
+ "version": "0.25.0",
4
4
  "description": "ZK Compression: Secure Scaling on Solana",
5
5
  "maintainers": [
6
6
  {
@@ -16,32 +16,42 @@
16
16
  "files": [
17
17
  "/accounts",
18
18
  "/bin",
19
+ "!bin/cargo-generate",
20
+ "!/bin/**/*.vkey",
21
+ "/bin/proving-keys/combined_26_1_1.key",
22
+ "/bin/proving-keys/combined_26_1_2.key",
23
+ "/bin/proving-keys/combined_26_2_1.key",
24
+ "/bin/proving-keys/combined_32_40_1_1.key",
25
+ "/bin/proving-keys/combined_32_40_1_2.key",
26
+ "/bin/proving-keys/combined_32_40_2_1.key",
27
+ "/bin/proving-keys/inclusion_32_1.key",
28
+ "/bin/proving-keys/inclusion_32_2.key",
29
+ "/bin/proving-keys/inclusion_32_3.key",
30
+ "/bin/proving-keys/inclusion_32_4.key",
31
+ "/bin/proving-keys/mainnet_inclusion_26_1.key",
32
+ "/bin/proving-keys/mainnet_inclusion_26_2.key",
33
+ "/bin/proving-keys/mainnet_inclusion_26_3.key",
34
+ "/bin/proving-keys/mainnet_inclusion_26_4.key",
35
+ "/bin/proving-keys/non-inclusion_26_1.key",
36
+ "/bin/proving-keys/non-inclusion_26_2.key",
37
+ "/bin/proving-keys/non-inclusion_40_1.key",
38
+ "/bin/proving-keys/non-inclusion_40_2.key",
19
39
  "/dist",
20
40
  "/test_bin",
21
41
  "./config.json",
22
42
  "/npm-shrinkwrap.json",
23
- "/oclif.manifest.json",
24
- "!bin/proving-keys/address-append_26_1.key",
25
- "!bin/proving-keys/address-append_26_1.vkey",
26
- "!bin/proving-keys/address-append_26_10.key",
27
- "!bin/proving-keys/address-append_26_10.vkey",
28
- "!bin/proving-keys/append-with-proofs_26_10.key",
29
- "!bin/proving-keys/append-with-proofs_26_10.vkey",
30
- "!bin/proving-keys/append-with-subtrees_26_10.key",
31
- "!bin/proving-keys/append-with-subtrees_26_10.vkey",
32
- "!bin/proving-keys/update_26_10.key",
33
- "!bin/proving-keys/update_26_10.vkey",
34
- "!bin/cargo-generate"
43
+ "/oclif.manifest.json"
35
44
  ],
36
45
  "dependencies": {
37
46
  "@coral-xyz/anchor": "0.29.0",
47
+ "@lightprotocol/hasher.rs": "0.2.1",
38
48
  "@oclif/core": "^3.26.2",
39
49
  "@oclif/plugin-autocomplete": "^3.0.13",
40
50
  "@oclif/plugin-help": "^6.0.20",
41
51
  "@oclif/plugin-not-found": "^3.1.2",
42
52
  "@oclif/plugin-plugins": "^5.0.7",
43
53
  "@solana-developers/helpers": "^1.5.1",
44
- "@solana/web3.js": "1.95.3",
54
+ "@solana/web3.js": "1.98.0",
45
55
  "axios": "^1.6.8",
46
56
  "case-anything": "^2.1.13",
47
57
  "cli-progress": "^3.12.0",
@@ -55,9 +65,8 @@
55
65
  "tweetnacl": "^1.0.3",
56
66
  "wait-on": "^7.2.0",
57
67
  "which": "^4.0.0",
58
- "@lightprotocol/compressed-token": "0.16.0",
59
- "@lightprotocol/stateless.js": "0.16.0",
60
- "@lightprotocol/hasher.rs": "0.2.0"
68
+ "@lightprotocol/compressed-token": "0.22.0",
69
+ "@lightprotocol/stateless.js": "0.22.0"
61
70
  },
62
71
  "devDependencies": {
63
72
  "@oclif/test": "2.3.9",
@@ -138,14 +147,16 @@
138
147
  "test-approve-and-mint-to": "mocha ./test/commands/approve-and-mint-to/index.test.ts -t 10000000 --exit",
139
148
  "test-mint-to": "mocha ./test/commands/mint-to/index.test.ts -t 10000000 --exit",
140
149
  "test-transfer": "mocha ./test/commands/transfer/index.test.ts -t 10000000 --exit",
141
- "test-balance": "mocha ./test/commands/balance/index.test.ts -t 10000000 --exit",
150
+ "test-token-balance": "mocha test/commands/token-balance/index.test.ts -t 10000000 --exit",
142
151
  "test-compress-sol": "mocha ./test/commands/compress-sol/index.test.ts -t 10000000 --exit",
152
+ "test-balance": "mocha ./test/commands/balance/index.test.ts -t 10000000 --exit",
143
153
  "test-decompress-sol": "mocha ./test/commands/decompress-sol/index.test.ts -t 10000000 --exit",
144
154
  "test-compress-spl": "mocha ./test/commands/compress-spl/index.test.ts -t 10000000 --exit",
145
155
  "test-decompress-spl": "mocha ./test/commands/decompress-spl/index.test.ts -t 10000000 --exit",
156
+ "test-test-validator": "mocha ./test/commands/test-validator/index.test.ts -t 10000000 --exit",
146
157
  "kill": "killall solana-test-validator || true && killall solana-test-val || true && sleep 1",
147
158
  "test-cli": "pnpm test-config && pnpm kill",
148
- "test": "pnpm kill && pnpm test-cli && pnpm test-utils && pnpm test-create-mint && pnpm test-mint-to && pnpm test-transfer && pnpm test-merge-token-accounts && pnpm test-create-token-pool && pnpm test-compress-spl && pnpm test-decompress-spl && pnpm test-balance && pnpm test-compress-sol && pnpm test-decompress-sol && pnpm test-approve-and-mint-to",
159
+ "test": "pnpm kill && pnpm test-cli && pnpm test-utils && pnpm test-create-mint && pnpm test-mint-to && pnpm test-transfer && pnpm test-merge-token-accounts && pnpm test-create-token-pool && pnpm test-compress-spl && pnpm test-decompress-spl && pnpm test-token-balance && pnpm test-compress-sol && pnpm test-balance && pnpm test-decompress-sol && pnpm test-approve-and-mint-to && pnpm test-test-validator",
149
160
  "install-local": "pnpm build && pnpm global remove @lightprotocol/zk-compression-cli || true && pnpm global add $PWD",
150
161
  "version": "oclif readme && git add README.md"
151
162
  }