@lightprotocol/zk-compression-cli 0.28.0-beta.1 → 0.28.0-beta.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.
@@ -131,60 +131,56 @@
131
131
  "index.js"
132
132
  ]
133
133
  },
134
- "config:config": {
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 config --solanaRpcUrl https://solana-api.example.com"
138
+ "$ light compress-spl --mint PublicKey --to PublicKey --amount 10"
140
139
  ],
141
140
  "flags": {
142
- "solanaRpcUrl": {
143
- "description": "Solana RPC url",
144
- "name": "solanaRpcUrl",
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
- "indexerUrl": {
150
- "description": "Indexer url",
151
- "name": "indexerUrl",
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
- "proverUrl": {
157
- "description": "Prover url",
158
- "name": "proverUrl",
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": "config:config",
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
- "config",
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
- "compress-spl": {
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 compress-spl --mint PublicKey --to PublicKey --amount 10"
241
+ "$ light config --solanaRpcUrl https://solana-api.example.com"
245
242
  ],
246
243
  "flags": {
247
- "mint": {
248
- "description": "Specify the mint address.",
249
- "name": "mint",
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
- "to": {
256
- "description": "Specify the recipient address (owner of destination compressed token account).",
257
- "name": "to",
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
- "amount": {
264
- "description": "Amount to compress, in tokens.",
265
- "name": "amount",
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": "compress-spl",
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
- "compress-spl",
285
+ "config",
286
286
  "index.js"
287
287
  ]
288
288
  },
@@ -584,23 +584,81 @@
584
584
  "index.js"
585
585
  ]
586
586
  },
587
- "start-prover": {
587
+ "token-balance": {
588
588
  "aliases": [],
589
589
  "args": {},
590
- "description": "Start gnark prover",
590
+ "examples": [
591
+ "$ light token-balance --mint=<ADDRESS> --owner=<ADDRESS>"
592
+ ],
591
593
  "flags": {
592
- "prover-port": {
593
- "description": "Enable Light Prover server on this port.",
594
- "name": "prover-port",
595
- "required": false,
596
- "default": 3001,
594
+ "owner": {
595
+ "description": "Address of the compressed token owner.",
596
+ "name": "owner",
597
+ "required": true,
597
598
  "hasDynamicHelp": false,
598
599
  "multiple": false,
599
600
  "type": "option"
600
601
  },
601
- "redisUrl": {
602
- "description": "Redis URL to use for the prover (e.g. redis://localhost:6379)",
603
- "name": "redisUrl",
602
+ "mint": {
603
+ "description": "Mint address of the compressed token account.",
604
+ "name": "mint",
605
+ "required": true,
606
+ "hasDynamicHelp": false,
607
+ "multiple": false,
608
+ "type": "option"
609
+ }
610
+ },
611
+ "hasDynamicHelp": false,
612
+ "hiddenAliases": [],
613
+ "id": "token-balance",
614
+ "pluginAlias": "@lightprotocol/zk-compression-cli",
615
+ "pluginName": "@lightprotocol/zk-compression-cli",
616
+ "pluginType": "core",
617
+ "strict": true,
618
+ "summary": "Get balance",
619
+ "enableJsonFlag": false,
620
+ "isESM": false,
621
+ "relativePath": [
622
+ "dist",
623
+ "commands",
624
+ "token-balance",
625
+ "index.js"
626
+ ]
627
+ },
628
+ "transfer": {
629
+ "aliases": [],
630
+ "args": {},
631
+ "examples": [
632
+ "$ light transfer --mint PublicKey --to PublicKey --amount 1000"
633
+ ],
634
+ "flags": {
635
+ "mint": {
636
+ "description": "Mint to transfer",
637
+ "name": "mint",
638
+ "required": true,
639
+ "hasDynamicHelp": false,
640
+ "multiple": false,
641
+ "type": "option"
642
+ },
643
+ "to": {
644
+ "description": "Recipient address",
645
+ "name": "to",
646
+ "required": true,
647
+ "hasDynamicHelp": false,
648
+ "multiple": false,
649
+ "type": "option"
650
+ },
651
+ "amount": {
652
+ "description": "Amount to send, in tokens",
653
+ "name": "amount",
654
+ "required": true,
655
+ "hasDynamicHelp": false,
656
+ "multiple": false,
657
+ "type": "option"
658
+ },
659
+ "fee-payer": {
660
+ "description": "Specify the fee-payer account. Defaults to the client keypair.",
661
+ "name": "fee-payer",
604
662
  "required": false,
605
663
  "hasDynamicHelp": false,
606
664
  "multiple": false,
@@ -609,17 +667,18 @@
609
667
  },
610
668
  "hasDynamicHelp": false,
611
669
  "hiddenAliases": [],
612
- "id": "start-prover",
670
+ "id": "transfer",
613
671
  "pluginAlias": "@lightprotocol/zk-compression-cli",
614
672
  "pluginName": "@lightprotocol/zk-compression-cli",
615
673
  "pluginType": "core",
616
674
  "strict": true,
675
+ "summary": "Transfer tokens from one account to another.",
617
676
  "enableJsonFlag": false,
618
677
  "isESM": false,
619
678
  "relativePath": [
620
679
  "dist",
621
680
  "commands",
622
- "start-prover",
681
+ "transfer",
623
682
  "index.js"
624
683
  ]
625
684
  },
@@ -650,6 +709,29 @@
650
709
  "allowNo": false,
651
710
  "type": "boolean"
652
711
  },
712
+ "forester": {
713
+ "description": "Start the forester service for auto-compression of compressible accounts.",
714
+ "name": "forester",
715
+ "allowNo": false,
716
+ "type": "boolean"
717
+ },
718
+ "forester-port": {
719
+ "description": "Port for the forester API server.",
720
+ "name": "forester-port",
721
+ "required": false,
722
+ "default": 8080,
723
+ "hasDynamicHelp": false,
724
+ "multiple": false,
725
+ "type": "option"
726
+ },
727
+ "light-pda-program": {
728
+ "description": "Light PDA programs to track. Format: 'program_id:discriminator_base58'. Can be specified multiple times.",
729
+ "name": "light-pda-program",
730
+ "required": false,
731
+ "hasDynamicHelp": false,
732
+ "multiple": true,
733
+ "type": "option"
734
+ },
653
735
  "skip-system-accounts": {
654
736
  "description": "Runs a test validator without initialized light system accounts.",
655
737
  "name": "skip-system-accounts",
@@ -801,99 +883,56 @@
801
883
  "name": "skip-reset",
802
884
  "allowNo": false,
803
885
  "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
886
  },
837
- "mint": {
838
- "description": "Mint address of the compressed token account.",
839
- "name": "mint",
840
- "required": true,
887
+ "use-surfpool": {
888
+ "description": "Use surfpool instead of solana-test-validator (default). Pass --no-use-surfpool to use solana-test-validator.",
889
+ "name": "use-surfpool",
890
+ "allowNo": true,
891
+ "type": "boolean"
892
+ },
893
+ "account-dir": {
894
+ "description": "Additional directory containing account JSON files to preload. Can be specified multiple times.",
895
+ "name": "account-dir",
896
+ "required": false,
897
+ "summary": "Usage: --account-dir <path/to/accounts/>",
841
898
  "hasDynamicHelp": false,
842
- "multiple": false,
899
+ "multiple": true,
843
900
  "type": "option"
844
901
  }
845
902
  },
846
903
  "hasDynamicHelp": false,
847
904
  "hiddenAliases": [],
848
- "id": "token-balance",
905
+ "id": "test-validator",
849
906
  "pluginAlias": "@lightprotocol/zk-compression-cli",
850
907
  "pluginName": "@lightprotocol/zk-compression-cli",
851
908
  "pluginType": "core",
852
909
  "strict": true,
853
- "summary": "Get balance",
854
910
  "enableJsonFlag": false,
855
911
  "isESM": false,
856
912
  "relativePath": [
857
913
  "dist",
858
914
  "commands",
859
- "token-balance",
915
+ "test-validator",
860
916
  "index.js"
861
917
  ]
862
918
  },
863
- "transfer": {
919
+ "start-prover": {
864
920
  "aliases": [],
865
921
  "args": {},
866
- "examples": [
867
- "$ light transfer --mint PublicKey --to PublicKey --amount 1000"
868
- ],
922
+ "description": "Start gnark prover",
869
923
  "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,
924
+ "prover-port": {
925
+ "description": "Enable Light Prover server on this port.",
926
+ "name": "prover-port",
927
+ "required": false,
928
+ "default": 3001,
890
929
  "hasDynamicHelp": false,
891
930
  "multiple": false,
892
931
  "type": "option"
893
932
  },
894
- "fee-payer": {
895
- "description": "Specify the fee-payer account. Defaults to the client keypair.",
896
- "name": "fee-payer",
933
+ "redisUrl": {
934
+ "description": "Redis URL to use for the prover (e.g. redis://localhost:6379)",
935
+ "name": "redisUrl",
897
936
  "required": false,
898
937
  "hasDynamicHelp": false,
899
938
  "multiple": false,
@@ -902,21 +941,20 @@
902
941
  },
903
942
  "hasDynamicHelp": false,
904
943
  "hiddenAliases": [],
905
- "id": "transfer",
944
+ "id": "start-prover",
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
- "transfer",
954
+ "start-prover",
917
955
  "index.js"
918
956
  ]
919
957
  }
920
958
  },
921
- "version": "0.28.0-beta.1"
959
+ "version": "0.28.0-beta.11"
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.1",
3
+ "version": "0.28.0-beta.11",
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.1",
53
- "@lightprotocol/stateless.js": "0.23.0-beta.1"
52
+ "@lightprotocol/compressed-token": "0.23.0-beta.11",
53
+ "@lightprotocol/stateless.js": "0.23.0-beta.11"
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
- "build": "shx rm -rf dist && pnpm sync-prover-version && pnpm tsc -p tsconfig.json && pnpm tsc -p tsconfig.test.json",
104
- "build-release": "shx rm -rf dist && pnpm sync-prover-version && pnpm tsc -p tsconfig.json && pnpm tsc -p tsconfig.test.json",
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 .",