@lightprotocol/zk-compression-cli 0.5.0 → 0.5.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.
Binary file
package/bin/forester CHANGED
Binary file
package/bin/forester.toml CHANGED
@@ -1,17 +1,5 @@
1
- STATE_MERKLE_TREE_PUBKEY="5bdFnXU47QjzGpzHfXnxcEi5WXyxzEAZzd1vrE39bf1W"
2
- NULLIFIER_QUEUE_PUBKEY="44J4oDXpjPAbzHCSc24q7NEiPekss4sAbLd8ka4gd9CZ"
3
- REGISTRY_PUBKEY="7Z9Yuy3HkBCc2Wf3xzMGnz6qpV4n7ciwcoEMGKqhAnj1"
4
- ADDRESS_MERKLE_TREE_PUBKEY="C83cpRN6oaafjNgMQJvaYgAz592EP5wunKvbokeTKPLn"
5
- ADDRESS_MERKLE_TREE_QUEUE_PUBKEY="HNjtNrjt6irUPYEgxhx2Vcs42koK9fxzm3aFLHVaaRWz"
6
-
7
- RPC_URL="http://localhost:8899"
8
- WS_RPC_URL="ws://localhost:8900"
9
- INDEXER_URL="http://localhost:8784"
10
- PROVER_URL="http://localhost:3001"
11
-
12
- CU_LIMIT = 1_000_000
13
- RPC_POOL_SIZE = 20
1
+ CU_LIMIT=1_000_000
14
2
  CONCURRENCY_LIMIT=100
15
- BATCH_SIZE=100
16
- MAX_RETRIES=5
17
- MAX_CONCURRENT_BATCHES=1
3
+ RPC_POOL_SIZE=20
4
+ PHOTON_BATCH_SIZE=50
5
+ MAX_RETRIES=5
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -14,6 +14,6 @@ export declare const SOLANA_VALIDATOR_PROCESS_NAME = "solana-test-validator";
14
14
  export declare const LIGHT_PROVER_PROCESS_NAME = "light-prover";
15
15
  export declare const INDEXER_PROCESS_NAME = "photon";
16
16
  export declare const FORESTER_PROCESS_NAME = "forester";
17
- export declare const PHOTON_VERSION = "0.36.0";
17
+ export declare const PHOTON_VERSION = "0.38.0";
18
18
  export declare const LIGHT_PROTOCOL_PROGRAMS_DIR_ENV = "LIGHT_PROTOCOL_PROGRAMS_DIR";
19
19
  export declare const BASE_PATH = "../../bin/";
@@ -19,6 +19,6 @@ exports.SOLANA_VALIDATOR_PROCESS_NAME = "solana-test-validator";
19
19
  exports.LIGHT_PROVER_PROCESS_NAME = "light-prover";
20
20
  exports.INDEXER_PROCESS_NAME = "photon";
21
21
  exports.FORESTER_PROCESS_NAME = "forester";
22
- exports.PHOTON_VERSION = "0.36.0";
22
+ exports.PHOTON_VERSION = "0.38.0";
23
23
  exports.LIGHT_PROTOCOL_PROGRAMS_DIR_ENV = "LIGHT_PROTOCOL_PROGRAMS_DIR";
24
24
  exports.BASE_PATH = "../../bin/";
@@ -1,69 +1,110 @@
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
- },
82
+ }
83
+ },
84
+ "hasDynamicHelp": false,
85
+ "hiddenAliases": [],
86
+ "id": "balance",
87
+ "pluginAlias": "@lightprotocol/zk-compression-cli",
88
+ "pluginName": "@lightprotocol/zk-compression-cli",
89
+ "pluginType": "core",
90
+ "strict": true,
91
+ "summary": "Get balance",
92
+ "enableJsonFlag": false,
93
+ "isESM": false,
94
+ "relativePath": [
95
+ "dist",
96
+ "commands",
97
+ "balance",
98
+ "index.js"
99
+ ]
100
+ },
101
+ "compress-sol": {
102
+ "aliases": [],
103
+ "args": {},
104
+ "examples": [
105
+ "$ light compress-sol --to PublicKey --amount 10"
106
+ ],
107
+ "flags": {
67
108
  "to": {
68
109
  "description": "Specify the recipient address.",
69
110
  "name": "to",
@@ -73,7 +114,7 @@
73
114
  "type": "option"
74
115
  },
75
116
  "amount": {
76
- "description": "Amount to mint, in tokens.",
117
+ "description": "Amount to compress, in lamports.",
77
118
  "name": "amount",
78
119
  "required": true,
79
120
  "hasDynamicHelp": false,
@@ -83,26 +124,26 @@
83
124
  },
84
125
  "hasDynamicHelp": false,
85
126
  "hiddenAliases": [],
86
- "id": "approve-and-mint-to",
127
+ "id": "compress-sol",
87
128
  "pluginAlias": "@lightprotocol/zk-compression-cli",
88
129
  "pluginName": "@lightprotocol/zk-compression-cli",
89
130
  "pluginType": "core",
90
131
  "strict": true,
91
- "summary": "Mint tokens to a compressed account via external mint authority",
132
+ "summary": "Compress SOL.",
92
133
  "enableJsonFlag": false,
93
134
  "isESM": false,
94
135
  "relativePath": [
95
136
  "dist",
96
137
  "commands",
97
- "approve-and-mint-to",
138
+ "compress-sol",
98
139
  "index.js"
99
140
  ]
100
141
  },
101
- "compress-sol": {
142
+ "decompress-sol": {
102
143
  "aliases": [],
103
144
  "args": {},
104
145
  "examples": [
105
- "$ light compress-sol --to PublicKey --amount 10"
146
+ "$ light decompress-sol --to PublicKey --amount 10"
106
147
  ],
107
148
  "flags": {
108
149
  "to": {
@@ -114,7 +155,7 @@
114
155
  "type": "option"
115
156
  },
116
157
  "amount": {
117
- "description": "Amount to compress, in lamports.",
158
+ "description": "Amount to decompress, in lamports.",
118
159
  "name": "amount",
119
160
  "required": true,
120
161
  "hasDynamicHelp": false,
@@ -124,48 +165,49 @@
124
165
  },
125
166
  "hasDynamicHelp": false,
126
167
  "hiddenAliases": [],
127
- "id": "compress-sol",
168
+ "id": "decompress-sol",
128
169
  "pluginAlias": "@lightprotocol/zk-compression-cli",
129
170
  "pluginName": "@lightprotocol/zk-compression-cli",
130
171
  "pluginType": "core",
131
172
  "strict": true,
132
- "summary": "Compress SOL.",
173
+ "summary": "Decompress SOL.",
133
174
  "enableJsonFlag": false,
134
175
  "isESM": false,
135
176
  "relativePath": [
136
177
  "dist",
137
178
  "commands",
138
- "compress-sol",
179
+ "decompress-sol",
139
180
  "index.js"
140
181
  ]
141
182
  },
142
- "compress-spl": {
183
+ "create-mint": {
143
184
  "aliases": [],
144
185
  "args": {},
145
186
  "examples": [
146
- "$ light compress-spl --mint PublicKey --to PublicKey --amount 10"
187
+ "$ light create-mint --mint-decimals 5"
147
188
  ],
148
189
  "flags": {
149
- "mint": {
150
- "description": "Specify the mint address.",
151
- "name": "mint",
152
- "required": true,
190
+ "mint-keypair": {
191
+ "description": "Provide a path to a mint keypair file. Defaults to a random keypair",
192
+ "name": "mint-keypair",
193
+ "required": false,
153
194
  "hasDynamicHelp": false,
154
195
  "multiple": false,
155
196
  "type": "option"
156
197
  },
157
- "to": {
158
- "description": "Specify the recipient address (owner of destination compressed token account).",
159
- "name": "to",
160
- "required": true,
198
+ "mint-authority": {
199
+ "description": "Address of the mint authority. Defaults to the fee payer",
200
+ "name": "mint-authority",
201
+ "required": false,
161
202
  "hasDynamicHelp": false,
162
203
  "multiple": false,
163
204
  "type": "option"
164
205
  },
165
- "amount": {
166
- "description": "Amount to compress, in tokens.",
167
- "name": "amount",
168
- "required": true,
206
+ "mint-decimals": {
207
+ "description": "Number of base 10 digits to the right of the decimal place [default: 9]",
208
+ "name": "mint-decimals",
209
+ "required": false,
210
+ "default": 9,
169
211
  "hasDynamicHelp": false,
170
212
  "multiple": false,
171
213
  "type": "option"
@@ -173,18 +215,18 @@
173
215
  },
174
216
  "hasDynamicHelp": false,
175
217
  "hiddenAliases": [],
176
- "id": "compress-spl",
218
+ "id": "create-mint",
177
219
  "pluginAlias": "@lightprotocol/zk-compression-cli",
178
220
  "pluginName": "@lightprotocol/zk-compression-cli",
179
221
  "pluginType": "core",
180
222
  "strict": true,
181
- "summary": "Compress SPL tokens.",
223
+ "summary": "Create a new compressed token mint",
182
224
  "enableJsonFlag": false,
183
225
  "isESM": false,
184
226
  "relativePath": [
185
227
  "dist",
186
228
  "commands",
187
- "compress-spl",
229
+ "create-mint",
188
230
  "index.js"
189
231
  ]
190
232
  },
@@ -294,75 +336,33 @@
294
336
  "index.js"
295
337
  ]
296
338
  },
297
- "decompress-sol": {
339
+ "compress-spl": {
298
340
  "aliases": [],
299
341
  "args": {},
300
342
  "examples": [
301
- "$ light decompress-sol --to PublicKey --amount 10"
343
+ "$ light compress-spl --mint PublicKey --to PublicKey --amount 10"
302
344
  ],
303
345
  "flags": {
304
- "to": {
305
- "description": "Specify the recipient address.",
306
- "name": "to",
346
+ "mint": {
347
+ "description": "Specify the mint address.",
348
+ "name": "mint",
307
349
  "required": true,
308
350
  "hasDynamicHelp": false,
309
351
  "multiple": false,
310
352
  "type": "option"
311
353
  },
312
- "amount": {
313
- "description": "Amount to decompress, in lamports.",
314
- "name": "amount",
354
+ "to": {
355
+ "description": "Specify the recipient address (owner of destination compressed token account).",
356
+ "name": "to",
315
357
  "required": true,
316
358
  "hasDynamicHelp": false,
317
359
  "multiple": false,
318
360
  "type": "option"
319
- }
320
- },
321
- "hasDynamicHelp": false,
322
- "hiddenAliases": [],
323
- "id": "decompress-sol",
324
- "pluginAlias": "@lightprotocol/zk-compression-cli",
325
- "pluginName": "@lightprotocol/zk-compression-cli",
326
- "pluginType": "core",
327
- "strict": true,
328
- "summary": "Decompress SOL.",
329
- "enableJsonFlag": false,
330
- "isESM": false,
331
- "relativePath": [
332
- "dist",
333
- "commands",
334
- "decompress-sol",
335
- "index.js"
336
- ]
337
- },
338
- "create-mint": {
339
- "aliases": [],
340
- "args": {},
341
- "examples": [
342
- "$ light create-mint --mint-decimals 5"
343
- ],
344
- "flags": {
345
- "mint-keypair": {
346
- "description": "Provide a path to a mint keypair file. Defaults to a random keypair",
347
- "name": "mint-keypair",
348
- "required": false,
349
- "hasDynamicHelp": false,
350
- "multiple": false,
351
- "type": "option"
352
361
  },
353
- "mint-authority": {
354
- "description": "Address of the mint authority. Defaults to the fee payer",
355
- "name": "mint-authority",
356
- "required": false,
357
- "hasDynamicHelp": false,
358
- "multiple": false,
359
- "type": "option"
360
- },
361
- "mint-decimals": {
362
- "description": "Number of base 10 digits to the right of the decimal place [default: 9]",
363
- "name": "mint-decimals",
364
- "required": false,
365
- "default": 9,
362
+ "amount": {
363
+ "description": "Amount to compress, in tokens.",
364
+ "name": "amount",
365
+ "required": true,
366
366
  "hasDynamicHelp": false,
367
367
  "multiple": false,
368
368
  "type": "option"
@@ -370,18 +370,18 @@
370
370
  },
371
371
  "hasDynamicHelp": false,
372
372
  "hiddenAliases": [],
373
- "id": "create-mint",
373
+ "id": "compress-spl",
374
374
  "pluginAlias": "@lightprotocol/zk-compression-cli",
375
375
  "pluginName": "@lightprotocol/zk-compression-cli",
376
376
  "pluginType": "core",
377
377
  "strict": true,
378
- "summary": "Create a new compressed token mint",
378
+ "summary": "Compress SPL tokens.",
379
379
  "enableJsonFlag": false,
380
380
  "isESM": false,
381
381
  "relativePath": [
382
382
  "dist",
383
383
  "commands",
384
- "create-mint",
384
+ "compress-spl",
385
385
  "index.js"
386
386
  ]
387
387
  },
@@ -762,5 +762,5 @@
762
762
  ]
763
763
  }
764
764
  },
765
- "version": "0.5.0"
765
+ "version": "0.5.1"
766
766
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightprotocol/zk-compression-cli",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "ZK Compression: Secure Scaling on Solana",
5
5
  "maintainers": [
6
6
  {
@@ -44,8 +44,8 @@
44
44
  "tweetnacl": "^1.0.3",
45
45
  "wait-on": "^7.2.0",
46
46
  "which": "^4.0.0",
47
- "@lightprotocol/compressed-token": "0.4.0",
48
- "@lightprotocol/stateless.js": "0.5.0",
47
+ "@lightprotocol/compressed-token": "0.4.1",
48
+ "@lightprotocol/stateless.js": "0.5.1",
49
49
  "@lightprotocol/hasher.rs": "0.2.0"
50
50
  },
51
51
  "devDependencies": {