@lightprotocol/zk-compression-cli 0.27.1-alpha.2 → 0.27.1-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accounts/batch_address_merkle_tree_amt2kaJA14v3urZbZvnc5v2np8jqvc4Z8zDep5wbtzx.json +1 -1
- package/accounts/batched_output_queue_oq1na8gojfdUhsfCpyjNt6h4JaDWtHf1yQj4koBWfto.json +1 -1
- package/accounts/batched_output_queue_oq2UkeMsJLfXt2QHzim242SUi3nvjJs8Pn7Eac9H9vg.json +1 -1
- package/accounts/batched_output_queue_oq3AxjekBWgo64gpauB6QtuZNesuv19xrhaC1ZM1THQ.json +1 -1
- package/accounts/batched_output_queue_oq4ypwvVGzCUMoiKKHWh4S1SgZJ9vCvKpcz6RT6A8dq.json +1 -1
- package/accounts/batched_output_queue_oq5oh5ZR3yGomuQgFduNDzjtGvVWfDRGLuDVjv9a96P.json +1 -1
- package/accounts/compressible_config_pda_ACXg8a7VaqecBWrSbdu73W4Pg9gsqXJ3EXAqkHyhvVXg.json +1 -0
- package/accounts/config_counter_pda_8gH9tmziWsS8Wc4fnoN5ax3jsSumNYoRDuSBvmH2GMH8.json +1 -0
- package/accounts/cpi_context_cpi15BoVPKgEPw5o8wc2T816GE7b378nMXnhH3Xbq4y.json +1 -1
- package/accounts/cpi_context_cpi1uHzrEhBG733DoEJNgHCyRS3XmmyVNZx5fonubE4.json +1 -1
- package/accounts/cpi_context_cpi2cdhkH5roePvcudTgUL8ppEBfTay1desGh8G8QxK.json +1 -1
- package/accounts/cpi_context_cpi2yGapXUR3As5SjnHBAVvmApNiLsbeZpF3euWnW6B.json +1 -1
- package/accounts/cpi_context_cpi3mbwMpSX8FAGMZVP85AwxqCaQMfEk9Em1v8QK9Rf.json +1 -1
- package/accounts/cpi_context_cpi4yyPDc4bCgHAnsenunGA8Y77j3XEDyjgfyCKgcoc.json +1 -1
- package/accounts/cpi_context_cpi5ZTjdgYpZ1Xr7B1cMLLUE81oTtJbNNAyKary2nV6.json +1 -1
- package/accounts/rent_sponsor_pda_r18WwUxfG8kQ69bQPAB2jV6zGNKy3GosFGctjQoV4ti.json +1 -0
- package/bin/account_compression.so +0 -0
- package/bin/light_compressed_token.so +0 -0
- package/bin/light_registry.so +0 -0
- package/bin/light_system_program_pinocchio.so +0 -0
- package/dist/commands/test-validator/index.d.ts +4 -0
- package/dist/commands/test-validator/index.js +28 -0
- package/dist/utils/constants.d.ts +2 -2
- package/dist/utils/constants.js +2 -2
- package/dist/utils/downloadProverBinary.js +4 -3
- package/dist/utils/initTestEnv.d.ts +12 -3
- package/dist/utils/initTestEnv.js +83 -14
- package/dist/utils/process.js +4 -0
- package/dist/utils/processPhotonIndexer.js +3 -3
- package/dist/utils/processProverServer.js +11 -9
- package/oclif.manifest.json +192 -159
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -90,23 +90,15 @@
|
|
|
90
90
|
"index.js"
|
|
91
91
|
]
|
|
92
92
|
},
|
|
93
|
-
"compress-
|
|
93
|
+
"compress-sol": {
|
|
94
94
|
"aliases": [],
|
|
95
95
|
"args": {},
|
|
96
96
|
"examples": [
|
|
97
|
-
"$ light compress-
|
|
97
|
+
"$ light compress-sol --to PublicKey --amount 10"
|
|
98
98
|
],
|
|
99
99
|
"flags": {
|
|
100
|
-
"mint": {
|
|
101
|
-
"description": "Specify the mint address.",
|
|
102
|
-
"name": "mint",
|
|
103
|
-
"required": true,
|
|
104
|
-
"hasDynamicHelp": false,
|
|
105
|
-
"multiple": false,
|
|
106
|
-
"type": "option"
|
|
107
|
-
},
|
|
108
100
|
"to": {
|
|
109
|
-
"description": "Specify the recipient address
|
|
101
|
+
"description": "Specify the recipient address.",
|
|
110
102
|
"name": "to",
|
|
111
103
|
"required": true,
|
|
112
104
|
"hasDynamicHelp": false,
|
|
@@ -114,7 +106,7 @@
|
|
|
114
106
|
"type": "option"
|
|
115
107
|
},
|
|
116
108
|
"amount": {
|
|
117
|
-
"description": "Amount to compress, in
|
|
109
|
+
"description": "Amount to compress, in lamports.",
|
|
118
110
|
"name": "amount",
|
|
119
111
|
"required": true,
|
|
120
112
|
"hasDynamicHelp": false,
|
|
@@ -124,30 +116,38 @@
|
|
|
124
116
|
},
|
|
125
117
|
"hasDynamicHelp": false,
|
|
126
118
|
"hiddenAliases": [],
|
|
127
|
-
"id": "compress-
|
|
119
|
+
"id": "compress-sol",
|
|
128
120
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
129
121
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
130
122
|
"pluginType": "core",
|
|
131
123
|
"strict": true,
|
|
132
|
-
"summary": "Compress
|
|
124
|
+
"summary": "Compress SOL.",
|
|
133
125
|
"enableJsonFlag": false,
|
|
134
126
|
"isESM": false,
|
|
135
127
|
"relativePath": [
|
|
136
128
|
"dist",
|
|
137
129
|
"commands",
|
|
138
|
-
"compress-
|
|
130
|
+
"compress-sol",
|
|
139
131
|
"index.js"
|
|
140
132
|
]
|
|
141
133
|
},
|
|
142
|
-
"compress-
|
|
134
|
+
"compress-spl": {
|
|
143
135
|
"aliases": [],
|
|
144
136
|
"args": {},
|
|
145
137
|
"examples": [
|
|
146
|
-
"$ light compress-
|
|
138
|
+
"$ light compress-spl --mint PublicKey --to PublicKey --amount 10"
|
|
147
139
|
],
|
|
148
140
|
"flags": {
|
|
141
|
+
"mint": {
|
|
142
|
+
"description": "Specify the mint address.",
|
|
143
|
+
"name": "mint",
|
|
144
|
+
"required": true,
|
|
145
|
+
"hasDynamicHelp": false,
|
|
146
|
+
"multiple": false,
|
|
147
|
+
"type": "option"
|
|
148
|
+
},
|
|
149
149
|
"to": {
|
|
150
|
-
"description": "Specify the recipient address.",
|
|
150
|
+
"description": "Specify the recipient address (owner of destination compressed token account).",
|
|
151
151
|
"name": "to",
|
|
152
152
|
"required": true,
|
|
153
153
|
"hasDynamicHelp": false,
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
"type": "option"
|
|
156
156
|
},
|
|
157
157
|
"amount": {
|
|
158
|
-
"description": "Amount to compress, in
|
|
158
|
+
"description": "Amount to compress, in tokens.",
|
|
159
159
|
"name": "amount",
|
|
160
160
|
"required": true,
|
|
161
161
|
"hasDynamicHelp": false,
|
|
@@ -165,18 +165,18 @@
|
|
|
165
165
|
},
|
|
166
166
|
"hasDynamicHelp": false,
|
|
167
167
|
"hiddenAliases": [],
|
|
168
|
-
"id": "compress-
|
|
168
|
+
"id": "compress-spl",
|
|
169
169
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
170
170
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
171
171
|
"pluginType": "core",
|
|
172
172
|
"strict": true,
|
|
173
|
-
"summary": "Compress
|
|
173
|
+
"summary": "Compress SPL tokens.",
|
|
174
174
|
"enableJsonFlag": false,
|
|
175
175
|
"isESM": false,
|
|
176
176
|
"relativePath": [
|
|
177
177
|
"dist",
|
|
178
178
|
"commands",
|
|
179
|
-
"compress-
|
|
179
|
+
"compress-spl",
|
|
180
180
|
"index.js"
|
|
181
181
|
]
|
|
182
182
|
},
|
|
@@ -584,6 +584,143 @@
|
|
|
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
|
+
"redisUrl": {
|
|
602
|
+
"description": "Redis URL to use for the prover (e.g. redis://localhost:6379)",
|
|
603
|
+
"name": "redisUrl",
|
|
604
|
+
"required": false,
|
|
605
|
+
"hasDynamicHelp": false,
|
|
606
|
+
"multiple": false,
|
|
607
|
+
"type": "option"
|
|
608
|
+
}
|
|
609
|
+
},
|
|
610
|
+
"hasDynamicHelp": false,
|
|
611
|
+
"hiddenAliases": [],
|
|
612
|
+
"id": "start-prover",
|
|
613
|
+
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
614
|
+
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
615
|
+
"pluginType": "core",
|
|
616
|
+
"strict": true,
|
|
617
|
+
"enableJsonFlag": false,
|
|
618
|
+
"isESM": false,
|
|
619
|
+
"relativePath": [
|
|
620
|
+
"dist",
|
|
621
|
+
"commands",
|
|
622
|
+
"start-prover",
|
|
623
|
+
"index.js"
|
|
624
|
+
]
|
|
625
|
+
},
|
|
626
|
+
"token-balance": {
|
|
627
|
+
"aliases": [],
|
|
628
|
+
"args": {},
|
|
629
|
+
"examples": [
|
|
630
|
+
"$ light token-balance --mint=<ADDRESS> --owner=<ADDRESS>"
|
|
631
|
+
],
|
|
632
|
+
"flags": {
|
|
633
|
+
"owner": {
|
|
634
|
+
"description": "Address of the compressed token owner.",
|
|
635
|
+
"name": "owner",
|
|
636
|
+
"required": true,
|
|
637
|
+
"hasDynamicHelp": false,
|
|
638
|
+
"multiple": false,
|
|
639
|
+
"type": "option"
|
|
640
|
+
},
|
|
641
|
+
"mint": {
|
|
642
|
+
"description": "Mint address of the compressed token account.",
|
|
643
|
+
"name": "mint",
|
|
644
|
+
"required": true,
|
|
645
|
+
"hasDynamicHelp": false,
|
|
646
|
+
"multiple": false,
|
|
647
|
+
"type": "option"
|
|
648
|
+
}
|
|
649
|
+
},
|
|
650
|
+
"hasDynamicHelp": false,
|
|
651
|
+
"hiddenAliases": [],
|
|
652
|
+
"id": "token-balance",
|
|
653
|
+
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
654
|
+
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
655
|
+
"pluginType": "core",
|
|
656
|
+
"strict": true,
|
|
657
|
+
"summary": "Get balance",
|
|
658
|
+
"enableJsonFlag": false,
|
|
659
|
+
"isESM": false,
|
|
660
|
+
"relativePath": [
|
|
661
|
+
"dist",
|
|
662
|
+
"commands",
|
|
663
|
+
"token-balance",
|
|
664
|
+
"index.js"
|
|
665
|
+
]
|
|
666
|
+
},
|
|
667
|
+
"transfer": {
|
|
668
|
+
"aliases": [],
|
|
669
|
+
"args": {},
|
|
670
|
+
"examples": [
|
|
671
|
+
"$ light transfer --mint PublicKey --to PublicKey --amount 1000"
|
|
672
|
+
],
|
|
673
|
+
"flags": {
|
|
674
|
+
"mint": {
|
|
675
|
+
"description": "Mint to transfer",
|
|
676
|
+
"name": "mint",
|
|
677
|
+
"required": true,
|
|
678
|
+
"hasDynamicHelp": false,
|
|
679
|
+
"multiple": false,
|
|
680
|
+
"type": "option"
|
|
681
|
+
},
|
|
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",
|
|
701
|
+
"required": false,
|
|
702
|
+
"hasDynamicHelp": false,
|
|
703
|
+
"multiple": false,
|
|
704
|
+
"type": "option"
|
|
705
|
+
}
|
|
706
|
+
},
|
|
707
|
+
"hasDynamicHelp": false,
|
|
708
|
+
"hiddenAliases": [],
|
|
709
|
+
"id": "transfer",
|
|
710
|
+
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
711
|
+
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
712
|
+
"pluginType": "core",
|
|
713
|
+
"strict": true,
|
|
714
|
+
"summary": "Transfer tokens from one account to another.",
|
|
715
|
+
"enableJsonFlag": false,
|
|
716
|
+
"isESM": false,
|
|
717
|
+
"relativePath": [
|
|
718
|
+
"dist",
|
|
719
|
+
"commands",
|
|
720
|
+
"transfer",
|
|
721
|
+
"index.js"
|
|
722
|
+
]
|
|
723
|
+
},
|
|
587
724
|
"test-validator": {
|
|
588
725
|
"aliases": [],
|
|
589
726
|
"args": {},
|
|
@@ -593,7 +730,9 @@
|
|
|
593
730
|
"$ light test-validator --skip-indexer",
|
|
594
731
|
"$ light test-validator --geyser-config ./config.json",
|
|
595
732
|
"$ light test-validator --validator-args \"--limit-ledger-size 50000000\"",
|
|
596
|
-
"$ light test-validator --sbf-program <address> <path/program>"
|
|
733
|
+
"$ light test-validator --sbf-program <address> <path/program>",
|
|
734
|
+
"$ light test-validator --devnet",
|
|
735
|
+
"$ light test-validator --mainnet"
|
|
597
736
|
],
|
|
598
737
|
"flags": {
|
|
599
738
|
"skip-indexer": {
|
|
@@ -719,161 +858,55 @@
|
|
|
719
858
|
"hasDynamicHelp": false,
|
|
720
859
|
"multiple": true,
|
|
721
860
|
"type": "option"
|
|
722
|
-
}
|
|
723
|
-
},
|
|
724
|
-
"hasDynamicHelp": false,
|
|
725
|
-
"hiddenAliases": [],
|
|
726
|
-
"id": "test-validator",
|
|
727
|
-
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
728
|
-
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
729
|
-
"pluginType": "core",
|
|
730
|
-
"strict": true,
|
|
731
|
-
"enableJsonFlag": false,
|
|
732
|
-
"isESM": false,
|
|
733
|
-
"relativePath": [
|
|
734
|
-
"dist",
|
|
735
|
-
"commands",
|
|
736
|
-
"test-validator",
|
|
737
|
-
"index.js"
|
|
738
|
-
]
|
|
739
|
-
},
|
|
740
|
-
"start-prover": {
|
|
741
|
-
"aliases": [],
|
|
742
|
-
"args": {},
|
|
743
|
-
"description": "Start gnark prover",
|
|
744
|
-
"flags": {
|
|
745
|
-
"prover-port": {
|
|
746
|
-
"description": "Enable Light Prover server on this port.",
|
|
747
|
-
"name": "prover-port",
|
|
748
|
-
"required": false,
|
|
749
|
-
"default": 3001,
|
|
750
|
-
"hasDynamicHelp": false,
|
|
751
|
-
"multiple": false,
|
|
752
|
-
"type": "option"
|
|
753
861
|
},
|
|
754
|
-
"
|
|
755
|
-
"description": "
|
|
756
|
-
"
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
"
|
|
760
|
-
"
|
|
761
|
-
|
|
762
|
-
},
|
|
763
|
-
"hasDynamicHelp": false,
|
|
764
|
-
"hiddenAliases": [],
|
|
765
|
-
"id": "start-prover",
|
|
766
|
-
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
767
|
-
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
768
|
-
"pluginType": "core",
|
|
769
|
-
"strict": true,
|
|
770
|
-
"enableJsonFlag": false,
|
|
771
|
-
"isESM": false,
|
|
772
|
-
"relativePath": [
|
|
773
|
-
"dist",
|
|
774
|
-
"commands",
|
|
775
|
-
"start-prover",
|
|
776
|
-
"index.js"
|
|
777
|
-
]
|
|
778
|
-
},
|
|
779
|
-
"transfer": {
|
|
780
|
-
"aliases": [],
|
|
781
|
-
"args": {},
|
|
782
|
-
"examples": [
|
|
783
|
-
"$ light transfer --mint PublicKey --to PublicKey --amount 1000"
|
|
784
|
-
],
|
|
785
|
-
"flags": {
|
|
786
|
-
"mint": {
|
|
787
|
-
"description": "Mint to transfer",
|
|
788
|
-
"name": "mint",
|
|
789
|
-
"required": true,
|
|
790
|
-
"hasDynamicHelp": false,
|
|
791
|
-
"multiple": false,
|
|
792
|
-
"type": "option"
|
|
793
|
-
},
|
|
794
|
-
"to": {
|
|
795
|
-
"description": "Recipient address",
|
|
796
|
-
"name": "to",
|
|
797
|
-
"required": true,
|
|
798
|
-
"hasDynamicHelp": false,
|
|
799
|
-
"multiple": false,
|
|
800
|
-
"type": "option"
|
|
862
|
+
"devnet": {
|
|
863
|
+
"description": "Clone Light Protocol programs and accounts from devnet instead of loading local binaries.",
|
|
864
|
+
"exclusive": [
|
|
865
|
+
"mainnet"
|
|
866
|
+
],
|
|
867
|
+
"name": "devnet",
|
|
868
|
+
"allowNo": false,
|
|
869
|
+
"type": "boolean"
|
|
801
870
|
},
|
|
802
|
-
"
|
|
803
|
-
"description": "
|
|
804
|
-
"
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
"
|
|
808
|
-
"
|
|
871
|
+
"mainnet": {
|
|
872
|
+
"description": "Clone Light Protocol programs and accounts from mainnet instead of loading local binaries.",
|
|
873
|
+
"exclusive": [
|
|
874
|
+
"devnet"
|
|
875
|
+
],
|
|
876
|
+
"name": "mainnet",
|
|
877
|
+
"allowNo": false,
|
|
878
|
+
"type": "boolean"
|
|
809
879
|
},
|
|
810
|
-
"
|
|
811
|
-
"
|
|
812
|
-
"
|
|
813
|
-
"
|
|
814
|
-
"
|
|
815
|
-
"
|
|
816
|
-
"type": "option"
|
|
817
|
-
}
|
|
818
|
-
},
|
|
819
|
-
"hasDynamicHelp": false,
|
|
820
|
-
"hiddenAliases": [],
|
|
821
|
-
"id": "transfer",
|
|
822
|
-
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
823
|
-
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
824
|
-
"pluginType": "core",
|
|
825
|
-
"strict": true,
|
|
826
|
-
"summary": "Transfer tokens from one account to another.",
|
|
827
|
-
"enableJsonFlag": false,
|
|
828
|
-
"isESM": false,
|
|
829
|
-
"relativePath": [
|
|
830
|
-
"dist",
|
|
831
|
-
"commands",
|
|
832
|
-
"transfer",
|
|
833
|
-
"index.js"
|
|
834
|
-
]
|
|
835
|
-
},
|
|
836
|
-
"token-balance": {
|
|
837
|
-
"aliases": [],
|
|
838
|
-
"args": {},
|
|
839
|
-
"examples": [
|
|
840
|
-
"$ light token-balance --mint=<ADDRESS> --owner=<ADDRESS>"
|
|
841
|
-
],
|
|
842
|
-
"flags": {
|
|
843
|
-
"owner": {
|
|
844
|
-
"description": "Address of the compressed token owner.",
|
|
845
|
-
"name": "owner",
|
|
846
|
-
"required": true,
|
|
847
|
-
"hasDynamicHelp": false,
|
|
848
|
-
"multiple": false,
|
|
849
|
-
"type": "option"
|
|
880
|
+
"verbose": {
|
|
881
|
+
"char": "v",
|
|
882
|
+
"description": "Enable verbose logging.",
|
|
883
|
+
"name": "verbose",
|
|
884
|
+
"allowNo": false,
|
|
885
|
+
"type": "boolean"
|
|
850
886
|
},
|
|
851
|
-
"
|
|
852
|
-
"description": "
|
|
853
|
-
"name": "
|
|
854
|
-
"
|
|
855
|
-
"
|
|
856
|
-
"multiple": false,
|
|
857
|
-
"type": "option"
|
|
887
|
+
"skip-reset": {
|
|
888
|
+
"description": "Skip resetting the ledger.",
|
|
889
|
+
"name": "skip-reset",
|
|
890
|
+
"allowNo": false,
|
|
891
|
+
"type": "boolean"
|
|
858
892
|
}
|
|
859
893
|
},
|
|
860
894
|
"hasDynamicHelp": false,
|
|
861
895
|
"hiddenAliases": [],
|
|
862
|
-
"id": "
|
|
896
|
+
"id": "test-validator",
|
|
863
897
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
864
898
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
865
899
|
"pluginType": "core",
|
|
866
900
|
"strict": true,
|
|
867
|
-
"summary": "Get balance",
|
|
868
901
|
"enableJsonFlag": false,
|
|
869
902
|
"isESM": false,
|
|
870
903
|
"relativePath": [
|
|
871
904
|
"dist",
|
|
872
905
|
"commands",
|
|
873
|
-
"
|
|
906
|
+
"test-validator",
|
|
874
907
|
"index.js"
|
|
875
908
|
]
|
|
876
909
|
}
|
|
877
910
|
},
|
|
878
|
-
"version": "0.27.1-alpha.
|
|
911
|
+
"version": "0.27.1-alpha.3"
|
|
879
912
|
}
|