@lightprotocol/zk-compression-cli 0.3.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/README.md +1 -1
  2. package/accounts/address_merkle_tree_C83cpRN6oaafjNgMQJvaYgAz592EP5wunKvbokeTKPLn.json +1 -1
  3. package/accounts/address_merkle_tree_queue_HNjtNrjt6irUPYEgxhx2Vcs42koK9fxzm3aFLHVaaRWz.json +1 -1
  4. package/accounts/cpi_context_Bvux5m7rMGXJfjNCKUXHaRMcVJCiDe6iWu8ANj8kpwu5.json +1 -0
  5. package/accounts/governance_authority_pda_8KEKiyAMugpKq9XCGzx81UtTBuytByW8arm9EaBVpD5k.json +1 -0
  6. package/accounts/group_pda_5e3BWAnQAgpNdANLnMQp45MgUy7gQtZcwYkWv3MwgdZR.json +1 -0
  7. package/accounts/merkle_tree_pubkey_5bdFnXU47QjzGpzHfXnxcEi5WXyxzEAZzd1vrE39bf1W.json +1 -1
  8. package/accounts/nullifier_queue_pubkey_44J4oDXpjPAbzHCSc24q7NEiPekss4sAbLd8ka4gd9CZ.json +1 -1
  9. package/accounts/registered_forester_epoch_pda_DFiGEbaz75wSdqy9bpeWacqLWrqAwWBfqh4iSYtejiwK.json +1 -0
  10. package/accounts/registered_program_pda_ApB3ASTFzS1RrccrB1cnNDPAAWrm1X4KSeNh2G3qSaxx.json +1 -0
  11. package/accounts/registered_registry_program_pda_CYAHAD4k1MExp219NfV9scN9GWzrMLhLpWqouwbvbVNo.json +1 -0
  12. package/bin/account_compression.so +0 -0
  13. package/bin/forester +0 -0
  14. package/bin/forester.toml +10 -0
  15. package/bin/light_compressed_token.so +0 -0
  16. package/bin/light_registry.so +0 -0
  17. package/bin/light_system_program.so +0 -0
  18. package/bin/prover-darwin-arm64 +0 -0
  19. package/bin/prover-darwin-x64 +0 -0
  20. package/bin/prover-linux-arm64 +0 -0
  21. package/bin/prover-linux-x64 +0 -0
  22. package/bin/prover-windows-arm64.exe +0 -0
  23. package/bin/prover-windows-x64.exe +0 -0
  24. package/dist/commands/approve-and-mint-to/index.js +1 -5
  25. package/dist/commands/balance/index.js +1 -5
  26. package/dist/commands/compress-sol/index.js +1 -4
  27. package/dist/commands/compress-spl/index.js +1 -5
  28. package/dist/commands/config/config.d.ts +2 -0
  29. package/dist/commands/config/config.js +34 -6
  30. package/dist/commands/create-mint/index.d.ts +2 -2
  31. package/dist/commands/create-mint/index.js +8 -12
  32. package/dist/commands/decompress-sol/index.js +1 -4
  33. package/dist/commands/decompress-spl/index.js +2 -6
  34. package/dist/commands/mint-to/index.js +1 -5
  35. package/dist/commands/register-mint/index.d.ts +0 -3
  36. package/dist/commands/register-mint/index.js +1 -16
  37. package/dist/commands/start-prover/index.d.ts +1 -0
  38. package/dist/commands/start-prover/index.js +6 -1
  39. package/dist/commands/test-validator/index.d.ts +6 -0
  40. package/dist/commands/test-validator/index.js +42 -5
  41. package/dist/commands/transfer/index.js +1 -5
  42. package/dist/utils/constants.d.ts +6 -1
  43. package/dist/utils/constants.js +7 -2
  44. package/dist/utils/initTestEnv.d.ts +17 -4
  45. package/dist/utils/initTestEnv.js +40 -19
  46. package/dist/utils/process.d.ts +1 -1
  47. package/dist/utils/process.js +11 -5
  48. package/dist/utils/processForester.d.ts +3 -0
  49. package/dist/utils/processForester.js +25 -0
  50. package/dist/utils/processPhotonIndexer.d.ts +1 -1
  51. package/dist/utils/processPhotonIndexer.js +10 -3
  52. package/dist/utils/processProverServer.d.ts +1 -1
  53. package/dist/utils/processProverServer.js +4 -3
  54. package/dist/utils/utils.d.ts +6 -0
  55. package/dist/utils/utils.js +20 -1
  56. package/oclif.manifest.json +190 -108
  57. package/package.json +28 -9
  58. package/accounts/governance_authority_pda_3MtrKu5Mjgh3JqeE5PeRzw2Ld28XjFgbbph67E6UERSx.json +0 -1
  59. package/accounts/group_pda_Edo2YjXU5eE17CejPBkupPgFLcYuAX47pGZmM7s2hAkj.json +0 -1
  60. package/accounts/registered_program_pda_ytwwVWhQUMoTKdirKmvEW5xCRVr4B2dJZnToiHtE2L2.json +0 -1
  61. package/bin/light_compressed_pda.so +0 -0
@@ -1,182 +1,190 @@
1
1
  {
2
2
  "commands": {
3
- "balance": {
3
+ "approve-and-mint-to": {
4
4
  "aliases": [],
5
5
  "args": {},
6
6
  "examples": [
7
- "$ light balance --mint=<ADDRESS> --owner=<ADDRESS>"
7
+ "$ light approve-and-mint-to --mint PublicKey --to PublicKey --amount 1000"
8
8
  ],
9
9
  "flags": {
10
- "owner": {
11
- "description": "Address of the compressed token owner.",
12
- "name": "owner",
13
- "required": true,
10
+ "mint-authority": {
11
+ "description": "Specify the filepath of the mint authority keypair. Defaults to your local solana wallet.",
12
+ "name": "mint-authority",
13
+ "required": false,
14
14
  "hasDynamicHelp": false,
15
15
  "multiple": false,
16
16
  "type": "option"
17
17
  },
18
18
  "mint": {
19
- "description": "Mint address of the compressed token account.",
19
+ "description": "Specify the mint address.",
20
20
  "name": "mint",
21
21
  "required": true,
22
22
  "hasDynamicHelp": false,
23
23
  "multiple": false,
24
24
  "type": "option"
25
+ },
26
+ "to": {
27
+ "description": "Specify the recipient address.",
28
+ "name": "to",
29
+ "required": true,
30
+ "hasDynamicHelp": false,
31
+ "multiple": false,
32
+ "type": "option"
33
+ },
34
+ "amount": {
35
+ "description": "Amount to mint, in tokens.",
36
+ "name": "amount",
37
+ "required": true,
38
+ "hasDynamicHelp": false,
39
+ "multiple": false,
40
+ "type": "option"
25
41
  }
26
42
  },
27
43
  "hasDynamicHelp": false,
28
44
  "hiddenAliases": [],
29
- "id": "balance",
45
+ "id": "approve-and-mint-to",
30
46
  "pluginAlias": "@lightprotocol/zk-compression-cli",
31
47
  "pluginName": "@lightprotocol/zk-compression-cli",
32
48
  "pluginType": "core",
33
49
  "strict": true,
34
- "summary": "Get balance",
50
+ "summary": "Mint tokens to a compressed account via external mint authority",
35
51
  "enableJsonFlag": false,
36
52
  "isESM": false,
37
53
  "relativePath": [
38
54
  "dist",
39
55
  "commands",
40
- "balance",
56
+ "approve-and-mint-to",
41
57
  "index.js"
42
58
  ]
43
59
  },
44
- "approve-and-mint-to": {
60
+ "balance": {
45
61
  "aliases": [],
46
62
  "args": {},
47
63
  "examples": [
48
- "$ light approve-and-mint-to --mint PublicKey --to PublicKey --amount 1000"
64
+ "$ light balance --mint=<ADDRESS> --owner=<ADDRESS>"
49
65
  ],
50
66
  "flags": {
51
- "mint-authority": {
52
- "description": "Specify the filepath of the mint authority keypair. Defaults to your local solana wallet.",
53
- "name": "mint-authority",
54
- "required": false,
67
+ "owner": {
68
+ "description": "Address of the compressed token owner.",
69
+ "name": "owner",
70
+ "required": true,
55
71
  "hasDynamicHelp": false,
56
72
  "multiple": false,
57
73
  "type": "option"
58
74
  },
59
75
  "mint": {
60
- "description": "Specify the mint address.",
76
+ "description": "Mint address of the compressed token account.",
61
77
  "name": "mint",
62
78
  "required": true,
63
79
  "hasDynamicHelp": false,
64
80
  "multiple": false,
65
81
  "type": "option"
66
- },
67
- "to": {
68
- "description": "Specify the recipient address.",
69
- "name": "to",
70
- "required": true,
71
- "hasDynamicHelp": false,
72
- "multiple": false,
73
- "type": "option"
74
- },
75
- "amount": {
76
- "description": "Amount to mint, in tokens.",
77
- "name": "amount",
78
- "required": true,
79
- "hasDynamicHelp": false,
80
- "multiple": false,
81
- "type": "option"
82
82
  }
83
83
  },
84
84
  "hasDynamicHelp": false,
85
85
  "hiddenAliases": [],
86
- "id": "approve-and-mint-to",
86
+ "id": "balance",
87
87
  "pluginAlias": "@lightprotocol/zk-compression-cli",
88
88
  "pluginName": "@lightprotocol/zk-compression-cli",
89
89
  "pluginType": "core",
90
90
  "strict": true,
91
- "summary": "Mint tokens to a compressed account via external mint authority",
91
+ "summary": "Get balance",
92
92
  "enableJsonFlag": false,
93
93
  "isESM": false,
94
94
  "relativePath": [
95
95
  "dist",
96
96
  "commands",
97
- "approve-and-mint-to",
97
+ "balance",
98
98
  "index.js"
99
99
  ]
100
100
  },
101
- "config:config": {
101
+ "compress-sol": {
102
102
  "aliases": [],
103
103
  "args": {},
104
- "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",
105
104
  "examples": [
106
- "$ light config --solanaRpcUrl https://solana-api.example.com"
105
+ "$ light compress-sol --to PublicKey --amount 10"
107
106
  ],
108
107
  "flags": {
109
- "solanaRpcUrl": {
110
- "char": "r",
111
- "description": "Solana rpc url.",
112
- "name": "solanaRpcUrl",
108
+ "to": {
109
+ "description": "Specify the recipient address.",
110
+ "name": "to",
111
+ "required": true,
113
112
  "hasDynamicHelp": false,
114
113
  "multiple": false,
115
114
  "type": "option"
116
115
  },
117
- "get": {
118
- "char": "g",
119
- "description": "Gets the current config values.",
120
- "name": "get",
121
- "required": false,
122
- "allowNo": false,
123
- "type": "boolean"
116
+ "amount": {
117
+ "description": "Amount to compress, in lamports.",
118
+ "name": "amount",
119
+ "required": true,
120
+ "hasDynamicHelp": false,
121
+ "multiple": false,
122
+ "type": "option"
124
123
  }
125
124
  },
126
125
  "hasDynamicHelp": false,
127
126
  "hiddenAliases": [],
128
- "id": "config:config",
127
+ "id": "compress-sol",
129
128
  "pluginAlias": "@lightprotocol/zk-compression-cli",
130
129
  "pluginName": "@lightprotocol/zk-compression-cli",
131
130
  "pluginType": "core",
132
131
  "strict": true,
132
+ "summary": "Compress SOL.",
133
133
  "enableJsonFlag": false,
134
134
  "isESM": false,
135
135
  "relativePath": [
136
136
  "dist",
137
137
  "commands",
138
- "config",
138
+ "compress-sol",
139
139
  "index.js"
140
140
  ]
141
141
  },
142
- "config": {
142
+ "compress-spl": {
143
143
  "aliases": [],
144
144
  "args": {},
145
- "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",
146
145
  "examples": [
147
- "$ light config --solanaRpcUrl https://solana-api.example.com"
146
+ "$ light compress-spl --mint PublicKey --to PublicKey --amount 10"
148
147
  ],
149
148
  "flags": {
150
- "solanaRpcUrl": {
151
- "char": "r",
152
- "description": "Solana rpc url.",
153
- "name": "solanaRpcUrl",
149
+ "mint": {
150
+ "description": "Specify the mint address.",
151
+ "name": "mint",
152
+ "required": true,
154
153
  "hasDynamicHelp": false,
155
154
  "multiple": false,
156
155
  "type": "option"
157
156
  },
158
- "get": {
159
- "char": "g",
160
- "description": "Gets the current config values.",
161
- "name": "get",
162
- "required": false,
163
- "allowNo": false,
164
- "type": "boolean"
157
+ "to": {
158
+ "description": "Specify the recipient address (owner of destination compressed token account).",
159
+ "name": "to",
160
+ "required": true,
161
+ "hasDynamicHelp": false,
162
+ "multiple": false,
163
+ "type": "option"
164
+ },
165
+ "amount": {
166
+ "description": "Amount to compress, in tokens.",
167
+ "name": "amount",
168
+ "required": true,
169
+ "hasDynamicHelp": false,
170
+ "multiple": false,
171
+ "type": "option"
165
172
  }
166
173
  },
167
174
  "hasDynamicHelp": false,
168
175
  "hiddenAliases": [],
169
- "id": "config",
176
+ "id": "compress-spl",
170
177
  "pluginAlias": "@lightprotocol/zk-compression-cli",
171
178
  "pluginName": "@lightprotocol/zk-compression-cli",
172
179
  "pluginType": "core",
173
180
  "strict": true,
181
+ "summary": "Compress SPL tokens.",
174
182
  "enableJsonFlag": false,
175
183
  "isESM": false,
176
184
  "relativePath": [
177
185
  "dist",
178
186
  "commands",
179
- "config",
187
+ "compress-spl",
180
188
  "index.js"
181
189
  ]
182
190
  },
@@ -196,7 +204,7 @@
196
204
  "type": "option"
197
205
  },
198
206
  "mint-authority": {
199
- "description": "Specify a path to the mint authority keypair file. Defaults to your default local solana wallet file path",
207
+ "description": "Address of the mint authority. Defaults to the fee payer",
200
208
  "name": "mint-authority",
201
209
  "required": false,
202
210
  "hasDynamicHelp": false,
@@ -271,93 +279,109 @@
271
279
  "index.js"
272
280
  ]
273
281
  },
274
- "compress-sol": {
282
+ "config:config": {
275
283
  "aliases": [],
276
284
  "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",
277
286
  "examples": [
278
- "$ light compress-sol --to PublicKey --amount 10"
287
+ "$ light config --solanaRpcUrl https://solana-api.example.com"
279
288
  ],
280
289
  "flags": {
281
- "to": {
282
- "description": "Specify the recipient address.",
283
- "name": "to",
284
- "required": true,
290
+ "solanaRpcUrl": {
291
+ "description": "Solana RPC url",
292
+ "name": "solanaRpcUrl",
285
293
  "hasDynamicHelp": false,
286
294
  "multiple": false,
287
295
  "type": "option"
288
296
  },
289
- "amount": {
290
- "description": "Amount to compress, in lamports.",
291
- "name": "amount",
292
- "required": true,
297
+ "indexerUrl": {
298
+ "description": "Indexer url",
299
+ "name": "indexerUrl",
293
300
  "hasDynamicHelp": false,
294
301
  "multiple": false,
295
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",
314
+ "required": false,
315
+ "allowNo": false,
316
+ "type": "boolean"
296
317
  }
297
318
  },
298
319
  "hasDynamicHelp": false,
299
320
  "hiddenAliases": [],
300
- "id": "compress-sol",
321
+ "id": "config:config",
301
322
  "pluginAlias": "@lightprotocol/zk-compression-cli",
302
323
  "pluginName": "@lightprotocol/zk-compression-cli",
303
324
  "pluginType": "core",
304
325
  "strict": true,
305
- "summary": "Compress SOL.",
306
326
  "enableJsonFlag": false,
307
327
  "isESM": false,
308
328
  "relativePath": [
309
329
  "dist",
310
330
  "commands",
311
- "compress-sol",
331
+ "config",
312
332
  "index.js"
313
333
  ]
314
334
  },
315
- "compress-spl": {
335
+ "config": {
316
336
  "aliases": [],
317
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",
318
339
  "examples": [
319
- "$ light compress-spl --mint PublicKey --to PublicKey --amount 10"
340
+ "$ light config --solanaRpcUrl https://solana-api.example.com"
320
341
  ],
321
342
  "flags": {
322
- "mint": {
323
- "description": "Specify the mint address.",
324
- "name": "mint",
325
- "required": true,
343
+ "solanaRpcUrl": {
344
+ "description": "Solana RPC url",
345
+ "name": "solanaRpcUrl",
326
346
  "hasDynamicHelp": false,
327
347
  "multiple": false,
328
348
  "type": "option"
329
349
  },
330
- "to": {
331
- "description": "Specify the recipient address (owner of destination compressed token account).",
332
- "name": "to",
333
- "required": true,
350
+ "indexerUrl": {
351
+ "description": "Indexer url",
352
+ "name": "indexerUrl",
334
353
  "hasDynamicHelp": false,
335
354
  "multiple": false,
336
355
  "type": "option"
337
356
  },
338
- "amount": {
339
- "description": "Amount to compress, in tokens.",
340
- "name": "amount",
341
- "required": true,
357
+ "proverUrl": {
358
+ "description": "Prover url",
359
+ "name": "proverUrl",
342
360
  "hasDynamicHelp": false,
343
361
  "multiple": false,
344
362
  "type": "option"
363
+ },
364
+ "get": {
365
+ "description": "Gets the current config values",
366
+ "name": "get",
367
+ "required": false,
368
+ "allowNo": false,
369
+ "type": "boolean"
345
370
  }
346
371
  },
347
372
  "hasDynamicHelp": false,
348
373
  "hiddenAliases": [],
349
- "id": "compress-spl",
374
+ "id": "config",
350
375
  "pluginAlias": "@lightprotocol/zk-compression-cli",
351
376
  "pluginName": "@lightprotocol/zk-compression-cli",
352
377
  "pluginType": "core",
353
378
  "strict": true,
354
- "summary": "Compress SPL tokens.",
355
379
  "enableJsonFlag": false,
356
380
  "isESM": false,
357
381
  "relativePath": [
358
382
  "dist",
359
383
  "commands",
360
- "compress-spl",
384
+ "config",
361
385
  "index.js"
362
386
  ]
363
387
  },
@@ -481,14 +505,6 @@
481
505
  "hasDynamicHelp": false,
482
506
  "multiple": false,
483
507
  "type": "option"
484
- },
485
- "mint-authority": {
486
- "description": "Specify a path to the mint authority keypair file. Defaults to your default local solana wallet file path",
487
- "name": "mint-authority",
488
- "required": false,
489
- "hasDynamicHelp": false,
490
- "multiple": false,
491
- "type": "option"
492
508
  }
493
509
  },
494
510
  "hasDynamicHelp": false,
@@ -526,6 +542,15 @@
526
542
  "name": "skip-prove-new-addresses",
527
543
  "allowNo": false,
528
544
  "type": "boolean"
545
+ },
546
+ "prover-port": {
547
+ "description": "Enable Light Prover server on this port.",
548
+ "name": "prover-port",
549
+ "required": false,
550
+ "default": 3001,
551
+ "hasDynamicHelp": false,
552
+ "multiple": false,
553
+ "type": "option"
529
554
  }
530
555
  },
531
556
  "hasDynamicHelp": false,
@@ -561,6 +586,12 @@
561
586
  "allowNo": false,
562
587
  "type": "boolean"
563
588
  },
589
+ "skip-forester": {
590
+ "description": "Runs a test validator without starting a new forester service.",
591
+ "name": "skip-forester",
592
+ "allowNo": false,
593
+ "type": "boolean"
594
+ },
564
595
  "skip-system-accounts": {
565
596
  "description": "Runs a test validator without initialized light system accounts.",
566
597
  "name": "skip-system-accounts",
@@ -604,6 +635,57 @@
604
635
  "hasDynamicHelp": false,
605
636
  "multiple": false,
606
637
  "type": "option"
638
+ },
639
+ "rpc-port": {
640
+ "description": "Enable JSON RPC on this port, and the next port for the RPC websocket.",
641
+ "name": "rpc-port",
642
+ "required": false,
643
+ "default": 8899,
644
+ "hasDynamicHelp": false,
645
+ "multiple": false,
646
+ "type": "option"
647
+ },
648
+ "indexer-port": {
649
+ "description": "Enable Photon indexer on this port.",
650
+ "exclusive": [
651
+ "skip-indexer"
652
+ ],
653
+ "name": "indexer-port",
654
+ "required": false,
655
+ "default": 8784,
656
+ "hasDynamicHelp": false,
657
+ "multiple": false,
658
+ "type": "option"
659
+ },
660
+ "prover-port": {
661
+ "description": "Enable Light Prover server on this port.",
662
+ "exclusive": [
663
+ "skip-prover"
664
+ ],
665
+ "name": "prover-port",
666
+ "required": false,
667
+ "default": 3001,
668
+ "hasDynamicHelp": false,
669
+ "multiple": false,
670
+ "type": "option"
671
+ },
672
+ "limit-ledger-size": {
673
+ "description": "Keep this amount of shreds in root slots.",
674
+ "name": "limit-ledger-size",
675
+ "required": false,
676
+ "default": 10000,
677
+ "hasDynamicHelp": false,
678
+ "multiple": false,
679
+ "type": "option"
680
+ },
681
+ "gossip-host": {
682
+ "description": "Gossip DNS name or IP address for the validator to advertise in gossip.",
683
+ "name": "gossip-host",
684
+ "required": false,
685
+ "default": "127.0.0.1",
686
+ "hasDynamicHelp": false,
687
+ "multiple": false,
688
+ "type": "option"
607
689
  }
608
690
  },
609
691
  "hasDynamicHelp": false,
@@ -680,5 +762,5 @@
680
762
  ]
681
763
  }
682
764
  },
683
- "version": "0.3.0"
765
+ "version": "0.4.1"
684
766
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightprotocol/zk-compression-cli",
3
- "version": "0.3.0",
3
+ "version": "0.4.1",
4
4
  "description": "ZK Compression: Secure Scaling on Solana",
5
5
  "maintainers": [
6
6
  {
@@ -36,7 +36,7 @@
36
36
  "cli-progress": "^3.12.0",
37
37
  "cli-spinners": "^2.9.2",
38
38
  "dotenv": "^16.4.5",
39
- "ffjavascript": "^0.2.63",
39
+ "ffjavascript": "^0.3.0",
40
40
  "find-process": "^1.4.7",
41
41
  "node-fetch": "^3.3.2",
42
42
  "snake-case": "^3.0.4",
@@ -44,9 +44,9 @@
44
44
  "tweetnacl": "^1.0.3",
45
45
  "wait-on": "^7.2.0",
46
46
  "which": "^4.0.0",
47
- "@lightprotocol/compressed-token": "0.2.0",
48
- "@lightprotocol/stateless.js": "0.3.0",
49
- "@lightprotocol/hasher.rs": "0.1.0-alpha.1"
47
+ "@lightprotocol/compressed-token": "0.3.0",
48
+ "@lightprotocol/stateless.js": "0.4.0",
49
+ "@lightprotocol/hasher.rs": "0.2.0"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@oclif/test": "2.3.9",
@@ -55,7 +55,7 @@
55
55
  "@types/chai": "^4.3.14",
56
56
  "@types/cli-progress": "^3.11.5",
57
57
  "@types/mocha": "^10.0.6",
58
- "@types/node": "^20.12.7",
58
+ "@types/node": "^20.12.8",
59
59
  "@types/tar": "^6.1.12",
60
60
  "@types/which": "^3.0.3",
61
61
  "@typescript-eslint/eslint-plugin": "^7.6.0",
@@ -67,12 +67,13 @@
67
67
  "eslint-config-prettier": "9.1.0",
68
68
  "mocha": "^10.2.0",
69
69
  "oclif": "4.8.0",
70
- "prettier": "^3.0.3",
70
+ "prettier": "^3.3.2",
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.3.2"
75
+ "typescript": "^5.4.5",
76
+ "@lightprotocol/programs": "0.3.0"
76
77
  },
77
78
  "oclif": {
78
79
  "bin": "light",
@@ -93,8 +94,26 @@
93
94
  "oclif"
94
95
  ],
95
96
  "types": "dist/index.d.ts",
97
+ "nx": {
98
+ "targets": {
99
+ "build": {
100
+ "inputs": [
101
+ "{workspaceRoot}/js",
102
+ "{workspaceRoot}/programs",
103
+ "{workspaceRoot}/gnark-prover",
104
+ "{workspaceRoot}/forester"
105
+ ],
106
+ "outputs": [
107
+ "{workspaceRoot}/bin",
108
+ "{workspaceRoot}/dist",
109
+ "{workspaceRoot}/lib",
110
+ "{workspaceRoot}/test_bin"
111
+ ]
112
+ }
113
+ }
114
+ },
96
115
  "scripts": {
97
- "add-bins": "./scripts/copyLocalProgramBinaries.sh && scripts/buildProver.sh",
116
+ "add-bins": "./scripts/copyLocalProgramBinaries.sh && ./scripts/copyForester.sh && scripts/buildProver.sh",
98
117
  "postinstall": "[ -d ./bin ] && find ./bin -type f -exec chmod +x {} + || echo 'No bin directory found, skipping chmod'",
99
118
  "build": "shx rm -rf dist && pnpm tsc -p tsconfig.json && pnpm tsc -p tsconfig.test.json && pnpm add-bins",
100
119
  "format": "pnpm prettier --write \"src/**/*.{ts,js}\" \"test/**/*.{ts,js}\" -w",
@@ -1 +0,0 @@
1
- {"pubkey":"3MtrKu5Mjgh3JqeE5PeRzw2Ld28XjFgbbph67E6UERSx","account":{"lamports":1670400,"data":["92V2ansKL5ECY+L7WEJcIRnY07lwy9TuaZBIebD9aqhznpq8Pv+mUf8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==","base64"],"owner":"5WzvRtu7LABotw1SUEpguJiKU27LRGsiCnF5FH6VV7yP","executable":false,"rentEpoch":18446744073709551615,"space":112}}
@@ -1 +0,0 @@
1
- {"pubkey":"Edo2YjXU5eE17CejPBkupPgFLcYuAX47pGZmM7s2hAkj","account":{"lamports":1392000,"data":["D88EoH8mjqI8PG6y+aSEZ/o4TIJ3bYkoyUgbwobeTNFoh+Cu3n7iQgEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEB","base64"],"owner":"5QPEJ5zDsVou9FQS3KCauKswM3VwBEBu4dpL9xTqkWwN","executable":false,"rentEpoch":18446744073709551615,"space":72}}
@@ -1 +0,0 @@
1
- {"pubkey":"ytwwVWhQUMoTKdirKmvEW5xCRVr4B2dJZnToiHtE2L2","account":{"lamports":1169280,"data":["H/u06wN0MgRRbDK1AElbxd3XakUFa5L8Jfx7rz7IqOZvBtlHbLq4Uw==","base64"],"owner":"5QPEJ5zDsVou9FQS3KCauKswM3VwBEBu4dpL9xTqkWwN","executable":false,"rentEpoch":18446744073709551615,"space":40}}
Binary file