@lightprotocol/zk-compression-cli 0.28.0-beta.1 → 0.28.0-beta.10
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/bin/account_compression.so +0 -0
- package/bin/forester +0 -0
- package/bin/forester.toml +15 -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/bin/test_batched_cpi_context_7Hp52chxaew8bW1ApR4fck2bh6Y8qA1pu3qwH6N9zaLj.json +1 -0
- package/dist/commands/create-token-pool/index.js +1 -1
- package/dist/commands/test-validator/index.d.ts +5 -0
- package/dist/commands/test-validator/index.js +31 -0
- package/dist/utils/constants.d.ts +4 -4
- package/dist/utils/constants.js +7 -6
- package/dist/utils/initTestEnv.d.ts +27 -3
- package/dist/utils/initTestEnv.js +265 -48
- package/dist/utils/photonVersion.generated.d.ts +3 -0
- package/dist/utils/photonVersion.generated.js +7 -0
- package/dist/utils/process.js +24 -9
- package/dist/utils/processForester.d.ts +23 -0
- package/dist/utils/processForester.js +88 -0
- package/dist/utils/processPhotonIndexer.d.ts +1 -1
- package/dist/utils/processPhotonIndexer.js +7 -11
- package/oclif.manifest.json +212 -174
- package/package.json +6 -5
package/oclif.manifest.json
CHANGED
|
@@ -131,60 +131,56 @@
|
|
|
131
131
|
"index.js"
|
|
132
132
|
]
|
|
133
133
|
},
|
|
134
|
-
"
|
|
134
|
+
"compress-spl": {
|
|
135
135
|
"aliases": [],
|
|
136
136
|
"args": {},
|
|
137
|
-
"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",
|
|
138
137
|
"examples": [
|
|
139
|
-
"$ light
|
|
138
|
+
"$ light compress-spl --mint PublicKey --to PublicKey --amount 10"
|
|
140
139
|
],
|
|
141
140
|
"flags": {
|
|
142
|
-
"
|
|
143
|
-
"description": "
|
|
144
|
-
"name": "
|
|
141
|
+
"mint": {
|
|
142
|
+
"description": "Specify the mint address.",
|
|
143
|
+
"name": "mint",
|
|
144
|
+
"required": true,
|
|
145
145
|
"hasDynamicHelp": false,
|
|
146
146
|
"multiple": false,
|
|
147
147
|
"type": "option"
|
|
148
148
|
},
|
|
149
|
-
"
|
|
150
|
-
"description": "
|
|
151
|
-
"name": "
|
|
149
|
+
"to": {
|
|
150
|
+
"description": "Specify the recipient address (owner of destination compressed token account).",
|
|
151
|
+
"name": "to",
|
|
152
|
+
"required": true,
|
|
152
153
|
"hasDynamicHelp": false,
|
|
153
154
|
"multiple": false,
|
|
154
155
|
"type": "option"
|
|
155
156
|
},
|
|
156
|
-
"
|
|
157
|
-
"description": "
|
|
158
|
-
"name": "
|
|
157
|
+
"amount": {
|
|
158
|
+
"description": "Amount to compress, in tokens.",
|
|
159
|
+
"name": "amount",
|
|
160
|
+
"required": true,
|
|
159
161
|
"hasDynamicHelp": false,
|
|
160
162
|
"multiple": false,
|
|
161
163
|
"type": "option"
|
|
162
|
-
},
|
|
163
|
-
"get": {
|
|
164
|
-
"description": "Gets the current config values",
|
|
165
|
-
"name": "get",
|
|
166
|
-
"required": false,
|
|
167
|
-
"allowNo": false,
|
|
168
|
-
"type": "boolean"
|
|
169
164
|
}
|
|
170
165
|
},
|
|
171
166
|
"hasDynamicHelp": false,
|
|
172
167
|
"hiddenAliases": [],
|
|
173
|
-
"id": "
|
|
168
|
+
"id": "compress-spl",
|
|
174
169
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
175
170
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
176
171
|
"pluginType": "core",
|
|
177
172
|
"strict": true,
|
|
173
|
+
"summary": "Compress SPL tokens.",
|
|
178
174
|
"enableJsonFlag": false,
|
|
179
175
|
"isESM": false,
|
|
180
176
|
"relativePath": [
|
|
181
177
|
"dist",
|
|
182
178
|
"commands",
|
|
183
|
-
"
|
|
179
|
+
"compress-spl",
|
|
184
180
|
"index.js"
|
|
185
181
|
]
|
|
186
182
|
},
|
|
187
|
-
"config": {
|
|
183
|
+
"config:config": {
|
|
188
184
|
"aliases": [],
|
|
189
185
|
"args": {},
|
|
190
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",
|
|
@@ -223,7 +219,7 @@
|
|
|
223
219
|
},
|
|
224
220
|
"hasDynamicHelp": false,
|
|
225
221
|
"hiddenAliases": [],
|
|
226
|
-
"id": "config",
|
|
222
|
+
"id": "config:config",
|
|
227
223
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
228
224
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
229
225
|
"pluginType": "core",
|
|
@@ -237,52 +233,56 @@
|
|
|
237
233
|
"index.js"
|
|
238
234
|
]
|
|
239
235
|
},
|
|
240
|
-
"
|
|
236
|
+
"config": {
|
|
241
237
|
"aliases": [],
|
|
242
238
|
"args": {},
|
|
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",
|
|
243
240
|
"examples": [
|
|
244
|
-
"$ light
|
|
241
|
+
"$ light config --solanaRpcUrl https://solana-api.example.com"
|
|
245
242
|
],
|
|
246
243
|
"flags": {
|
|
247
|
-
"
|
|
248
|
-
"description": "
|
|
249
|
-
"name": "
|
|
250
|
-
"required": true,
|
|
244
|
+
"solanaRpcUrl": {
|
|
245
|
+
"description": "Solana RPC url",
|
|
246
|
+
"name": "solanaRpcUrl",
|
|
251
247
|
"hasDynamicHelp": false,
|
|
252
248
|
"multiple": false,
|
|
253
249
|
"type": "option"
|
|
254
250
|
},
|
|
255
|
-
"
|
|
256
|
-
"description": "
|
|
257
|
-
"name": "
|
|
258
|
-
"required": true,
|
|
251
|
+
"indexerUrl": {
|
|
252
|
+
"description": "Indexer url",
|
|
253
|
+
"name": "indexerUrl",
|
|
259
254
|
"hasDynamicHelp": false,
|
|
260
255
|
"multiple": false,
|
|
261
256
|
"type": "option"
|
|
262
257
|
},
|
|
263
|
-
"
|
|
264
|
-
"description": "
|
|
265
|
-
"name": "
|
|
266
|
-
"required": true,
|
|
258
|
+
"proverUrl": {
|
|
259
|
+
"description": "Prover url",
|
|
260
|
+
"name": "proverUrl",
|
|
267
261
|
"hasDynamicHelp": false,
|
|
268
262
|
"multiple": false,
|
|
269
263
|
"type": "option"
|
|
264
|
+
},
|
|
265
|
+
"get": {
|
|
266
|
+
"description": "Gets the current config values",
|
|
267
|
+
"name": "get",
|
|
268
|
+
"required": false,
|
|
269
|
+
"allowNo": false,
|
|
270
|
+
"type": "boolean"
|
|
270
271
|
}
|
|
271
272
|
},
|
|
272
273
|
"hasDynamicHelp": false,
|
|
273
274
|
"hiddenAliases": [],
|
|
274
|
-
"id": "
|
|
275
|
+
"id": "config",
|
|
275
276
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
276
277
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
277
278
|
"pluginType": "core",
|
|
278
279
|
"strict": true,
|
|
279
|
-
"summary": "Compress SPL tokens.",
|
|
280
280
|
"enableJsonFlag": false,
|
|
281
281
|
"isESM": false,
|
|
282
282
|
"relativePath": [
|
|
283
283
|
"dist",
|
|
284
284
|
"commands",
|
|
285
|
-
"
|
|
285
|
+
"config",
|
|
286
286
|
"index.js"
|
|
287
287
|
]
|
|
288
288
|
},
|
|
@@ -486,6 +486,102 @@
|
|
|
486
486
|
"index.js"
|
|
487
487
|
]
|
|
488
488
|
},
|
|
489
|
+
"mint-to": {
|
|
490
|
+
"aliases": [],
|
|
491
|
+
"args": {},
|
|
492
|
+
"examples": [
|
|
493
|
+
"$ light mint-to --mint PublicKey --to PublicKey --amount 1000"
|
|
494
|
+
],
|
|
495
|
+
"flags": {
|
|
496
|
+
"mint-authority": {
|
|
497
|
+
"description": "Specify the filepath of the mint authority keypair. Defaults to your local solana wallet.",
|
|
498
|
+
"name": "mint-authority",
|
|
499
|
+
"required": false,
|
|
500
|
+
"hasDynamicHelp": false,
|
|
501
|
+
"multiple": false,
|
|
502
|
+
"type": "option"
|
|
503
|
+
},
|
|
504
|
+
"mint": {
|
|
505
|
+
"description": "Specify the mint address.",
|
|
506
|
+
"name": "mint",
|
|
507
|
+
"required": true,
|
|
508
|
+
"hasDynamicHelp": false,
|
|
509
|
+
"multiple": false,
|
|
510
|
+
"type": "option"
|
|
511
|
+
},
|
|
512
|
+
"to": {
|
|
513
|
+
"description": "Specify the recipient address.",
|
|
514
|
+
"name": "to",
|
|
515
|
+
"required": true,
|
|
516
|
+
"hasDynamicHelp": false,
|
|
517
|
+
"multiple": false,
|
|
518
|
+
"type": "option"
|
|
519
|
+
},
|
|
520
|
+
"amount": {
|
|
521
|
+
"description": "Amount to mint, in tokens.",
|
|
522
|
+
"name": "amount",
|
|
523
|
+
"required": true,
|
|
524
|
+
"hasDynamicHelp": false,
|
|
525
|
+
"multiple": false,
|
|
526
|
+
"type": "option"
|
|
527
|
+
}
|
|
528
|
+
},
|
|
529
|
+
"hasDynamicHelp": false,
|
|
530
|
+
"hiddenAliases": [],
|
|
531
|
+
"id": "mint-to",
|
|
532
|
+
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
533
|
+
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
534
|
+
"pluginType": "core",
|
|
535
|
+
"strict": true,
|
|
536
|
+
"summary": "Mint tokens to an account.",
|
|
537
|
+
"enableJsonFlag": false,
|
|
538
|
+
"isESM": false,
|
|
539
|
+
"relativePath": [
|
|
540
|
+
"dist",
|
|
541
|
+
"commands",
|
|
542
|
+
"mint-to",
|
|
543
|
+
"index.js"
|
|
544
|
+
]
|
|
545
|
+
},
|
|
546
|
+
"start-prover": {
|
|
547
|
+
"aliases": [],
|
|
548
|
+
"args": {},
|
|
549
|
+
"description": "Start gnark prover",
|
|
550
|
+
"flags": {
|
|
551
|
+
"prover-port": {
|
|
552
|
+
"description": "Enable Light Prover server on this port.",
|
|
553
|
+
"name": "prover-port",
|
|
554
|
+
"required": false,
|
|
555
|
+
"default": 3001,
|
|
556
|
+
"hasDynamicHelp": false,
|
|
557
|
+
"multiple": false,
|
|
558
|
+
"type": "option"
|
|
559
|
+
},
|
|
560
|
+
"redisUrl": {
|
|
561
|
+
"description": "Redis URL to use for the prover (e.g. redis://localhost:6379)",
|
|
562
|
+
"name": "redisUrl",
|
|
563
|
+
"required": false,
|
|
564
|
+
"hasDynamicHelp": false,
|
|
565
|
+
"multiple": false,
|
|
566
|
+
"type": "option"
|
|
567
|
+
}
|
|
568
|
+
},
|
|
569
|
+
"hasDynamicHelp": false,
|
|
570
|
+
"hiddenAliases": [],
|
|
571
|
+
"id": "start-prover",
|
|
572
|
+
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
573
|
+
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
574
|
+
"pluginType": "core",
|
|
575
|
+
"strict": true,
|
|
576
|
+
"enableJsonFlag": false,
|
|
577
|
+
"isESM": false,
|
|
578
|
+
"relativePath": [
|
|
579
|
+
"dist",
|
|
580
|
+
"commands",
|
|
581
|
+
"start-prover",
|
|
582
|
+
"index.js"
|
|
583
|
+
]
|
|
584
|
+
},
|
|
489
585
|
"merge-token-accounts": {
|
|
490
586
|
"aliases": [],
|
|
491
587
|
"args": {},
|
|
@@ -527,80 +623,81 @@
|
|
|
527
623
|
"index.js"
|
|
528
624
|
]
|
|
529
625
|
},
|
|
530
|
-
"
|
|
626
|
+
"token-balance": {
|
|
531
627
|
"aliases": [],
|
|
532
628
|
"args": {},
|
|
533
629
|
"examples": [
|
|
534
|
-
"$ light
|
|
630
|
+
"$ light token-balance --mint=<ADDRESS> --owner=<ADDRESS>"
|
|
535
631
|
],
|
|
536
632
|
"flags": {
|
|
537
|
-
"
|
|
538
|
-
"description": "
|
|
539
|
-
"name": "
|
|
540
|
-
"required":
|
|
633
|
+
"owner": {
|
|
634
|
+
"description": "Address of the compressed token owner.",
|
|
635
|
+
"name": "owner",
|
|
636
|
+
"required": true,
|
|
541
637
|
"hasDynamicHelp": false,
|
|
542
638
|
"multiple": false,
|
|
543
639
|
"type": "option"
|
|
544
640
|
},
|
|
545
641
|
"mint": {
|
|
546
|
-
"description": "
|
|
642
|
+
"description": "Mint address of the compressed token account.",
|
|
547
643
|
"name": "mint",
|
|
548
644
|
"required": true,
|
|
549
645
|
"hasDynamicHelp": false,
|
|
550
646
|
"multiple": false,
|
|
551
647
|
"type": "option"
|
|
552
|
-
},
|
|
553
|
-
"to": {
|
|
554
|
-
"description": "Specify the recipient address.",
|
|
555
|
-
"name": "to",
|
|
556
|
-
"required": true,
|
|
557
|
-
"hasDynamicHelp": false,
|
|
558
|
-
"multiple": false,
|
|
559
|
-
"type": "option"
|
|
560
|
-
},
|
|
561
|
-
"amount": {
|
|
562
|
-
"description": "Amount to mint, in tokens.",
|
|
563
|
-
"name": "amount",
|
|
564
|
-
"required": true,
|
|
565
|
-
"hasDynamicHelp": false,
|
|
566
|
-
"multiple": false,
|
|
567
|
-
"type": "option"
|
|
568
648
|
}
|
|
569
649
|
},
|
|
570
650
|
"hasDynamicHelp": false,
|
|
571
651
|
"hiddenAliases": [],
|
|
572
|
-
"id": "
|
|
652
|
+
"id": "token-balance",
|
|
573
653
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
574
654
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
575
655
|
"pluginType": "core",
|
|
576
656
|
"strict": true,
|
|
577
|
-
"summary": "
|
|
657
|
+
"summary": "Get balance",
|
|
578
658
|
"enableJsonFlag": false,
|
|
579
659
|
"isESM": false,
|
|
580
660
|
"relativePath": [
|
|
581
661
|
"dist",
|
|
582
662
|
"commands",
|
|
583
|
-
"
|
|
663
|
+
"token-balance",
|
|
584
664
|
"index.js"
|
|
585
665
|
]
|
|
586
666
|
},
|
|
587
|
-
"
|
|
667
|
+
"transfer": {
|
|
588
668
|
"aliases": [],
|
|
589
669
|
"args": {},
|
|
590
|
-
"
|
|
670
|
+
"examples": [
|
|
671
|
+
"$ light transfer --mint PublicKey --to PublicKey --amount 1000"
|
|
672
|
+
],
|
|
591
673
|
"flags": {
|
|
592
|
-
"
|
|
593
|
-
"description": "
|
|
594
|
-
"name": "
|
|
595
|
-
"required":
|
|
596
|
-
"default": 3001,
|
|
674
|
+
"mint": {
|
|
675
|
+
"description": "Mint to transfer",
|
|
676
|
+
"name": "mint",
|
|
677
|
+
"required": true,
|
|
597
678
|
"hasDynamicHelp": false,
|
|
598
679
|
"multiple": false,
|
|
599
680
|
"type": "option"
|
|
600
681
|
},
|
|
601
|
-
"
|
|
602
|
-
"description": "
|
|
603
|
-
"name": "
|
|
682
|
+
"to": {
|
|
683
|
+
"description": "Recipient address",
|
|
684
|
+
"name": "to",
|
|
685
|
+
"required": true,
|
|
686
|
+
"hasDynamicHelp": false,
|
|
687
|
+
"multiple": false,
|
|
688
|
+
"type": "option"
|
|
689
|
+
},
|
|
690
|
+
"amount": {
|
|
691
|
+
"description": "Amount to send, in tokens",
|
|
692
|
+
"name": "amount",
|
|
693
|
+
"required": true,
|
|
694
|
+
"hasDynamicHelp": false,
|
|
695
|
+
"multiple": false,
|
|
696
|
+
"type": "option"
|
|
697
|
+
},
|
|
698
|
+
"fee-payer": {
|
|
699
|
+
"description": "Specify the fee-payer account. Defaults to the client keypair.",
|
|
700
|
+
"name": "fee-payer",
|
|
604
701
|
"required": false,
|
|
605
702
|
"hasDynamicHelp": false,
|
|
606
703
|
"multiple": false,
|
|
@@ -609,17 +706,18 @@
|
|
|
609
706
|
},
|
|
610
707
|
"hasDynamicHelp": false,
|
|
611
708
|
"hiddenAliases": [],
|
|
612
|
-
"id": "
|
|
709
|
+
"id": "transfer",
|
|
613
710
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
614
711
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
615
712
|
"pluginType": "core",
|
|
616
713
|
"strict": true,
|
|
714
|
+
"summary": "Transfer tokens from one account to another.",
|
|
617
715
|
"enableJsonFlag": false,
|
|
618
716
|
"isESM": false,
|
|
619
717
|
"relativePath": [
|
|
620
718
|
"dist",
|
|
621
719
|
"commands",
|
|
622
|
-
"
|
|
720
|
+
"transfer",
|
|
623
721
|
"index.js"
|
|
624
722
|
]
|
|
625
723
|
},
|
|
@@ -650,6 +748,29 @@
|
|
|
650
748
|
"allowNo": false,
|
|
651
749
|
"type": "boolean"
|
|
652
750
|
},
|
|
751
|
+
"forester": {
|
|
752
|
+
"description": "Start the forester service for auto-compression of compressible accounts.",
|
|
753
|
+
"name": "forester",
|
|
754
|
+
"allowNo": false,
|
|
755
|
+
"type": "boolean"
|
|
756
|
+
},
|
|
757
|
+
"forester-port": {
|
|
758
|
+
"description": "Port for the forester API server.",
|
|
759
|
+
"name": "forester-port",
|
|
760
|
+
"required": false,
|
|
761
|
+
"default": 8080,
|
|
762
|
+
"hasDynamicHelp": false,
|
|
763
|
+
"multiple": false,
|
|
764
|
+
"type": "option"
|
|
765
|
+
},
|
|
766
|
+
"light-pda-program": {
|
|
767
|
+
"description": "Light PDA programs to track. Format: 'program_id:discriminator_base58'. Can be specified multiple times.",
|
|
768
|
+
"name": "light-pda-program",
|
|
769
|
+
"required": false,
|
|
770
|
+
"hasDynamicHelp": false,
|
|
771
|
+
"multiple": true,
|
|
772
|
+
"type": "option"
|
|
773
|
+
},
|
|
653
774
|
"skip-system-accounts": {
|
|
654
775
|
"description": "Runs a test validator without initialized light system accounts.",
|
|
655
776
|
"name": "skip-system-accounts",
|
|
@@ -801,122 +922,39 @@
|
|
|
801
922
|
"name": "skip-reset",
|
|
802
923
|
"allowNo": false,
|
|
803
924
|
"type": "boolean"
|
|
804
|
-
}
|
|
805
|
-
},
|
|
806
|
-
"hasDynamicHelp": false,
|
|
807
|
-
"hiddenAliases": [],
|
|
808
|
-
"id": "test-validator",
|
|
809
|
-
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
810
|
-
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
811
|
-
"pluginType": "core",
|
|
812
|
-
"strict": true,
|
|
813
|
-
"enableJsonFlag": false,
|
|
814
|
-
"isESM": false,
|
|
815
|
-
"relativePath": [
|
|
816
|
-
"dist",
|
|
817
|
-
"commands",
|
|
818
|
-
"test-validator",
|
|
819
|
-
"index.js"
|
|
820
|
-
]
|
|
821
|
-
},
|
|
822
|
-
"token-balance": {
|
|
823
|
-
"aliases": [],
|
|
824
|
-
"args": {},
|
|
825
|
-
"examples": [
|
|
826
|
-
"$ light token-balance --mint=<ADDRESS> --owner=<ADDRESS>"
|
|
827
|
-
],
|
|
828
|
-
"flags": {
|
|
829
|
-
"owner": {
|
|
830
|
-
"description": "Address of the compressed token owner.",
|
|
831
|
-
"name": "owner",
|
|
832
|
-
"required": true,
|
|
833
|
-
"hasDynamicHelp": false,
|
|
834
|
-
"multiple": false,
|
|
835
|
-
"type": "option"
|
|
836
925
|
},
|
|
837
|
-
"
|
|
838
|
-
"description": "
|
|
839
|
-
"name": "
|
|
840
|
-
"
|
|
841
|
-
"
|
|
842
|
-
"multiple": false,
|
|
843
|
-
"type": "option"
|
|
844
|
-
}
|
|
845
|
-
},
|
|
846
|
-
"hasDynamicHelp": false,
|
|
847
|
-
"hiddenAliases": [],
|
|
848
|
-
"id": "token-balance",
|
|
849
|
-
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
850
|
-
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
851
|
-
"pluginType": "core",
|
|
852
|
-
"strict": true,
|
|
853
|
-
"summary": "Get balance",
|
|
854
|
-
"enableJsonFlag": false,
|
|
855
|
-
"isESM": false,
|
|
856
|
-
"relativePath": [
|
|
857
|
-
"dist",
|
|
858
|
-
"commands",
|
|
859
|
-
"token-balance",
|
|
860
|
-
"index.js"
|
|
861
|
-
]
|
|
862
|
-
},
|
|
863
|
-
"transfer": {
|
|
864
|
-
"aliases": [],
|
|
865
|
-
"args": {},
|
|
866
|
-
"examples": [
|
|
867
|
-
"$ light transfer --mint PublicKey --to PublicKey --amount 1000"
|
|
868
|
-
],
|
|
869
|
-
"flags": {
|
|
870
|
-
"mint": {
|
|
871
|
-
"description": "Mint to transfer",
|
|
872
|
-
"name": "mint",
|
|
873
|
-
"required": true,
|
|
874
|
-
"hasDynamicHelp": false,
|
|
875
|
-
"multiple": false,
|
|
876
|
-
"type": "option"
|
|
877
|
-
},
|
|
878
|
-
"to": {
|
|
879
|
-
"description": "Recipient address",
|
|
880
|
-
"name": "to",
|
|
881
|
-
"required": true,
|
|
882
|
-
"hasDynamicHelp": false,
|
|
883
|
-
"multiple": false,
|
|
884
|
-
"type": "option"
|
|
885
|
-
},
|
|
886
|
-
"amount": {
|
|
887
|
-
"description": "Amount to send, in tokens",
|
|
888
|
-
"name": "amount",
|
|
889
|
-
"required": true,
|
|
890
|
-
"hasDynamicHelp": false,
|
|
891
|
-
"multiple": false,
|
|
892
|
-
"type": "option"
|
|
926
|
+
"use-surfpool": {
|
|
927
|
+
"description": "Use surfpool instead of solana-test-validator (default). Pass --no-use-surfpool to use solana-test-validator.",
|
|
928
|
+
"name": "use-surfpool",
|
|
929
|
+
"allowNo": true,
|
|
930
|
+
"type": "boolean"
|
|
893
931
|
},
|
|
894
|
-
"
|
|
895
|
-
"description": "
|
|
896
|
-
"name": "
|
|
932
|
+
"account-dir": {
|
|
933
|
+
"description": "Additional directory containing account JSON files to preload. Can be specified multiple times.",
|
|
934
|
+
"name": "account-dir",
|
|
897
935
|
"required": false,
|
|
936
|
+
"summary": "Usage: --account-dir <path/to/accounts/>",
|
|
898
937
|
"hasDynamicHelp": false,
|
|
899
|
-
"multiple":
|
|
938
|
+
"multiple": true,
|
|
900
939
|
"type": "option"
|
|
901
940
|
}
|
|
902
941
|
},
|
|
903
942
|
"hasDynamicHelp": false,
|
|
904
943
|
"hiddenAliases": [],
|
|
905
|
-
"id": "
|
|
944
|
+
"id": "test-validator",
|
|
906
945
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
907
946
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
908
947
|
"pluginType": "core",
|
|
909
948
|
"strict": true,
|
|
910
|
-
"summary": "Transfer tokens from one account to another.",
|
|
911
949
|
"enableJsonFlag": false,
|
|
912
950
|
"isESM": false,
|
|
913
951
|
"relativePath": [
|
|
914
952
|
"dist",
|
|
915
953
|
"commands",
|
|
916
|
-
"
|
|
954
|
+
"test-validator",
|
|
917
955
|
"index.js"
|
|
918
956
|
]
|
|
919
957
|
}
|
|
920
958
|
},
|
|
921
|
-
"version": "0.28.0-beta.
|
|
959
|
+
"version": "0.28.0-beta.10"
|
|
922
960
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightprotocol/zk-compression-cli",
|
|
3
|
-
"version": "0.28.0-beta.
|
|
3
|
+
"version": "0.28.0-beta.10",
|
|
4
4
|
"description": "ZK Compression: Secure Scaling on Solana",
|
|
5
5
|
"maintainers": [
|
|
6
6
|
{
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"tweetnacl": "^1.0.3",
|
|
50
50
|
"wait-on": "^7.2.0",
|
|
51
51
|
"which": "^5.0.0",
|
|
52
|
-
"@lightprotocol/compressed-token": "0.23.0-beta.
|
|
53
|
-
"@lightprotocol/stateless.js": "0.23.0-beta.
|
|
52
|
+
"@lightprotocol/compressed-token": "0.23.0-beta.10",
|
|
53
|
+
"@lightprotocol/stateless.js": "0.23.0-beta.10"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@eslint/js": "9.36.0",
|
|
@@ -100,8 +100,9 @@
|
|
|
100
100
|
"scripts": {
|
|
101
101
|
"postinstall": "[ -d ./bin ] && find ./bin -type f -exec chmod +x {} + || echo 'No bin directory found, skipping chmod'",
|
|
102
102
|
"sync-prover-version": "./scripts/syncProverVersion.sh",
|
|
103
|
-
"
|
|
104
|
-
"build
|
|
103
|
+
"sync-photon-version": "./scripts/syncPhotonVersion.sh",
|
|
104
|
+
"build": "shx rm -rf dist && pnpm sync-prover-version && pnpm sync-photon-version && pnpm tsc -p tsconfig.json && pnpm tsc -p tsconfig.test.json",
|
|
105
|
+
"build-release": "shx rm -rf dist && pnpm sync-prover-version && pnpm sync-photon-version && pnpm tsc -p tsconfig.json && pnpm tsc -p tsconfig.test.json",
|
|
105
106
|
"format": "pnpm prettier --write \"src/**/*.{ts,js}\" \"test/**/*.{ts,js}\" -w",
|
|
106
107
|
"format:check": "pnpm prettier \"src/**/*{ts,js}\" \"test/**/*.{ts,js}\" --check",
|
|
107
108
|
"lint": "eslint .",
|