@lightprotocol/zk-compression-cli 0.27.1-alpha.9 → 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.
@@ -0,0 +1 @@
1
+ export declare const PROVER_VERSION = "2.0.7";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PROVER_VERSION = void 0;
4
+ // Auto-generated from prover/server/VERSION - do not edit manually
5
+ exports.PROVER_VERSION = "2.0.7";
@@ -90,23 +90,15 @@
90
90
  "index.js"
91
91
  ]
92
92
  },
93
- "compress-spl": {
93
+ "compress-sol": {
94
94
  "aliases": [],
95
95
  "args": {},
96
96
  "examples": [
97
- "$ light compress-spl --mint PublicKey --to PublicKey --amount 10"
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 (owner of destination compressed token account).",
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 tokens.",
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-spl",
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 SPL tokens.",
124
+ "summary": "Compress SOL.",
133
125
  "enableJsonFlag": false,
134
126
  "isESM": false,
135
127
  "relativePath": [
136
128
  "dist",
137
129
  "commands",
138
- "compress-spl",
130
+ "compress-sol",
139
131
  "index.js"
140
132
  ]
141
133
  },
142
- "compress-sol": {
134
+ "compress-spl": {
143
135
  "aliases": [],
144
136
  "args": {},
145
137
  "examples": [
146
- "$ light compress-sol --to PublicKey --amount 10"
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 lamports.",
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-sol",
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 SOL.",
173
+ "summary": "Compress SPL tokens.",
174
174
  "enableJsonFlag": false,
175
175
  "isESM": false,
176
176
  "relativePath": [
177
177
  "dist",
178
178
  "commands",
179
- "compress-sol",
179
+ "compress-spl",
180
180
  "index.js"
181
181
  ]
182
182
  },
@@ -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
- "mint-to": {
626
+ "token-balance": {
531
627
  "aliases": [],
532
628
  "args": {},
533
629
  "examples": [
534
- "$ light mint-to --mint PublicKey --to PublicKey --amount 1000"
630
+ "$ light token-balance --mint=<ADDRESS> --owner=<ADDRESS>"
535
631
  ],
536
632
  "flags": {
537
- "mint-authority": {
538
- "description": "Specify the filepath of the mint authority keypair. Defaults to your local solana wallet.",
539
- "name": "mint-authority",
540
- "required": false,
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": "Specify the mint address.",
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": "mint-to",
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": "Mint tokens to an account.",
657
+ "summary": "Get balance",
578
658
  "enableJsonFlag": false,
579
659
  "isESM": false,
580
660
  "relativePath": [
581
661
  "dist",
582
662
  "commands",
583
- "mint-to",
663
+ "token-balance",
584
664
  "index.js"
585
665
  ]
586
666
  },
587
- "start-prover": {
667
+ "transfer": {
588
668
  "aliases": [],
589
669
  "args": {},
590
- "description": "Start gnark prover",
670
+ "examples": [
671
+ "$ light transfer --mint PublicKey --to PublicKey --amount 1000"
672
+ ],
591
673
  "flags": {
592
- "prover-port": {
593
- "description": "Enable Light Prover server on this port.",
594
- "name": "prover-port",
595
- "required": false,
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
- "redisUrl": {
602
- "description": "Redis URL to use for the prover (e.g. redis://localhost:6379)",
603
- "name": "redisUrl",
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": "start-prover",
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
- "start-prover",
720
+ "transfer",
623
721
  "index.js"
624
722
  ]
625
723
  },
@@ -633,6 +731,7 @@
633
731
  "$ light test-validator --geyser-config ./config.json",
634
732
  "$ light test-validator --validator-args \"--limit-ledger-size 50000000\"",
635
733
  "$ light test-validator --sbf-program <address> <path/program>",
734
+ "$ light test-validator --upgradeable-program <address> <path/program> <upgrade_authority>",
636
735
  "$ light test-validator --devnet",
637
736
  "$ light test-validator --mainnet"
638
737
  ],
@@ -649,6 +748,29 @@
649
748
  "allowNo": false,
650
749
  "type": "boolean"
651
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
+ },
652
774
  "skip-system-accounts": {
653
775
  "description": "Runs a test validator without initialized light system accounts.",
654
776
  "name": "skip-system-accounts",
@@ -761,6 +883,15 @@
761
883
  "multiple": true,
762
884
  "type": "option"
763
885
  },
886
+ "upgradeable-program": {
887
+ "description": "Add an upgradeable SBF program to the genesis configuration. Required for programs that need compressible config initialization. If the ledger already exists then this parameter is silently ignored.",
888
+ "name": "upgradeable-program",
889
+ "required": false,
890
+ "summary": "Usage: --upgradeable-program <address> <path/program_name.so> <upgrade_authority>",
891
+ "hasDynamicHelp": false,
892
+ "multiple": true,
893
+ "type": "option"
894
+ },
764
895
  "devnet": {
765
896
  "description": "Clone Light Protocol programs and accounts from devnet instead of loading local binaries.",
766
897
  "exclusive": [
@@ -791,122 +922,39 @@
791
922
  "name": "skip-reset",
792
923
  "allowNo": false,
793
924
  "type": "boolean"
794
- }
795
- },
796
- "hasDynamicHelp": false,
797
- "hiddenAliases": [],
798
- "id": "test-validator",
799
- "pluginAlias": "@lightprotocol/zk-compression-cli",
800
- "pluginName": "@lightprotocol/zk-compression-cli",
801
- "pluginType": "core",
802
- "strict": true,
803
- "enableJsonFlag": false,
804
- "isESM": false,
805
- "relativePath": [
806
- "dist",
807
- "commands",
808
- "test-validator",
809
- "index.js"
810
- ]
811
- },
812
- "token-balance": {
813
- "aliases": [],
814
- "args": {},
815
- "examples": [
816
- "$ light token-balance --mint=<ADDRESS> --owner=<ADDRESS>"
817
- ],
818
- "flags": {
819
- "owner": {
820
- "description": "Address of the compressed token owner.",
821
- "name": "owner",
822
- "required": true,
823
- "hasDynamicHelp": false,
824
- "multiple": false,
825
- "type": "option"
826
925
  },
827
- "mint": {
828
- "description": "Mint address of the compressed token account.",
829
- "name": "mint",
830
- "required": true,
831
- "hasDynamicHelp": false,
832
- "multiple": false,
833
- "type": "option"
834
- }
835
- },
836
- "hasDynamicHelp": false,
837
- "hiddenAliases": [],
838
- "id": "token-balance",
839
- "pluginAlias": "@lightprotocol/zk-compression-cli",
840
- "pluginName": "@lightprotocol/zk-compression-cli",
841
- "pluginType": "core",
842
- "strict": true,
843
- "summary": "Get balance",
844
- "enableJsonFlag": false,
845
- "isESM": false,
846
- "relativePath": [
847
- "dist",
848
- "commands",
849
- "token-balance",
850
- "index.js"
851
- ]
852
- },
853
- "transfer": {
854
- "aliases": [],
855
- "args": {},
856
- "examples": [
857
- "$ light transfer --mint PublicKey --to PublicKey --amount 1000"
858
- ],
859
- "flags": {
860
- "mint": {
861
- "description": "Mint to transfer",
862
- "name": "mint",
863
- "required": true,
864
- "hasDynamicHelp": false,
865
- "multiple": false,
866
- "type": "option"
867
- },
868
- "to": {
869
- "description": "Recipient address",
870
- "name": "to",
871
- "required": true,
872
- "hasDynamicHelp": false,
873
- "multiple": false,
874
- "type": "option"
875
- },
876
- "amount": {
877
- "description": "Amount to send, in tokens",
878
- "name": "amount",
879
- "required": true,
880
- "hasDynamicHelp": false,
881
- "multiple": false,
882
- "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"
883
931
  },
884
- "fee-payer": {
885
- "description": "Specify the fee-payer account. Defaults to the client keypair.",
886
- "name": "fee-payer",
932
+ "account-dir": {
933
+ "description": "Additional directory containing account JSON files to preload. Can be specified multiple times.",
934
+ "name": "account-dir",
887
935
  "required": false,
936
+ "summary": "Usage: --account-dir <path/to/accounts/>",
888
937
  "hasDynamicHelp": false,
889
- "multiple": false,
938
+ "multiple": true,
890
939
  "type": "option"
891
940
  }
892
941
  },
893
942
  "hasDynamicHelp": false,
894
943
  "hiddenAliases": [],
895
- "id": "transfer",
944
+ "id": "test-validator",
896
945
  "pluginAlias": "@lightprotocol/zk-compression-cli",
897
946
  "pluginName": "@lightprotocol/zk-compression-cli",
898
947
  "pluginType": "core",
899
948
  "strict": true,
900
- "summary": "Transfer tokens from one account to another.",
901
949
  "enableJsonFlag": false,
902
950
  "isESM": false,
903
951
  "relativePath": [
904
952
  "dist",
905
953
  "commands",
906
- "transfer",
954
+ "test-validator",
907
955
  "index.js"
908
956
  ]
909
957
  }
910
958
  },
911
- "version": "0.27.1-alpha.9"
959
+ "version": "0.28.0-beta.10"
912
960
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightprotocol/zk-compression-cli",
3
- "version": "0.27.1-alpha.9",
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.22.1-alpha.7",
53
- "@lightprotocol/stateless.js": "0.22.1-alpha.6"
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",
@@ -97,48 +97,12 @@
97
97
  "oclif"
98
98
  ],
99
99
  "types": "dist/index.d.ts",
100
- "nx": {
101
- "targets": {
102
- "build": {
103
- "inputs": [
104
- "{workspaceRoot}/js",
105
- "{workspaceRoot}/programs",
106
- "{workspaceRoot}/gnark-prover"
107
- ],
108
- "outputs": [
109
- "{workspaceRoot}/bin",
110
- "{workspaceRoot}/dist",
111
- "{workspaceRoot}/lib",
112
- "{workspaceRoot}/test_bin"
113
- ]
114
- },
115
- "build-ci": {
116
- "dependsOn": [
117
- "@lightprotocol/stateless.js:build-ci",
118
- "@lightprotocol/compressed-token:build-ci"
119
- ],
120
- "inputs": [
121
- "{workspaceRoot}/js",
122
- "{workspaceRoot}/gnark-prover",
123
- "{projectRoot}/scripts/**"
124
- ],
125
- "outputs": [
126
- "{workspaceRoot}/bin",
127
- "{workspaceRoot}/dist",
128
- "{workspaceRoot}/lib",
129
- "{workspaceRoot}/test_bin"
130
- ]
131
- },
132
- "test-ci": {
133
- "dependsOn": []
134
- }
135
- }
136
- },
137
100
  "scripts": {
138
- "add-bins": "./scripts/copyLocalProgramBinaries.sh",
139
101
  "postinstall": "[ -d ./bin ] && find ./bin -type f -exec chmod +x {} + || echo 'No bin directory found, skipping chmod'",
140
- "build": "shx rm -rf dist && pnpm tsc -p tsconfig.json && pnpm tsc -p tsconfig.test.json && pnpm add-bins",
141
- "build-release": "shx rm -rf dist && pnpm tsc -p tsconfig.json && pnpm tsc -p tsconfig.test.json && pnpm add-bins",
102
+ "sync-prover-version": "./scripts/syncProverVersion.sh",
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",
142
106
  "format": "pnpm prettier --write \"src/**/*.{ts,js}\" \"test/**/*.{ts,js}\" -w",
143
107
  "format:check": "pnpm prettier \"src/**/*{ts,js}\" \"test/**/*.{ts,js}\" --check",
144
108
  "lint": "eslint .",