@lightprotocol/zk-compression-cli 0.6.0 → 0.7.0

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/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
@@ -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.37.0";
17
+ export declare const PHOTON_VERSION = "0.39.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.37.0";
22
+ exports.PHOTON_VERSION = "0.39.0";
23
23
  exports.LIGHT_PROTOCOL_PROGRAMS_DIR_ENV = "LIGHT_PROTOCOL_PROGRAMS_DIR";
24
24
  exports.BASE_PATH = "../../bin/";
@@ -57,150 +57,93 @@
57
57
  "index.js"
58
58
  ]
59
59
  },
60
- "balance": {
60
+ "compress-spl": {
61
61
  "aliases": [],
62
62
  "args": {},
63
63
  "examples": [
64
- "$ light balance --mint=<ADDRESS> --owner=<ADDRESS>"
64
+ "$ light compress-spl --mint PublicKey --to PublicKey --amount 10"
65
65
  ],
66
66
  "flags": {
67
- "owner": {
68
- "description": "Address of the compressed token owner.",
69
- "name": "owner",
70
- "required": true,
71
- "hasDynamicHelp": false,
72
- "multiple": false,
73
- "type": "option"
74
- },
75
67
  "mint": {
76
- "description": "Mint address of the compressed token account.",
68
+ "description": "Specify the mint address.",
77
69
  "name": "mint",
78
70
  "required": true,
79
71
  "hasDynamicHelp": false,
80
72
  "multiple": false,
81
73
  "type": "option"
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
- "config:config": {
102
- "aliases": [],
103
- "args": {},
104
- "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",
105
- "examples": [
106
- "$ light config --solanaRpcUrl https://solana-api.example.com"
107
- ],
108
- "flags": {
109
- "solanaRpcUrl": {
110
- "description": "Solana RPC url",
111
- "name": "solanaRpcUrl",
112
- "hasDynamicHelp": false,
113
- "multiple": false,
114
- "type": "option"
115
74
  },
116
- "indexerUrl": {
117
- "description": "Indexer url",
118
- "name": "indexerUrl",
75
+ "to": {
76
+ "description": "Specify the recipient address (owner of destination compressed token account).",
77
+ "name": "to",
78
+ "required": true,
119
79
  "hasDynamicHelp": false,
120
80
  "multiple": false,
121
81
  "type": "option"
122
82
  },
123
- "proverUrl": {
124
- "description": "Prover url",
125
- "name": "proverUrl",
83
+ "amount": {
84
+ "description": "Amount to compress, in tokens.",
85
+ "name": "amount",
86
+ "required": true,
126
87
  "hasDynamicHelp": false,
127
88
  "multiple": false,
128
89
  "type": "option"
129
- },
130
- "get": {
131
- "description": "Gets the current config values",
132
- "name": "get",
133
- "required": false,
134
- "allowNo": false,
135
- "type": "boolean"
136
90
  }
137
91
  },
138
92
  "hasDynamicHelp": false,
139
93
  "hiddenAliases": [],
140
- "id": "config:config",
94
+ "id": "compress-spl",
141
95
  "pluginAlias": "@lightprotocol/zk-compression-cli",
142
96
  "pluginName": "@lightprotocol/zk-compression-cli",
143
97
  "pluginType": "core",
144
98
  "strict": true,
99
+ "summary": "Compress SPL tokens.",
145
100
  "enableJsonFlag": false,
146
101
  "isESM": false,
147
102
  "relativePath": [
148
103
  "dist",
149
104
  "commands",
150
- "config",
105
+ "compress-spl",
151
106
  "index.js"
152
107
  ]
153
108
  },
154
- "config": {
109
+ "balance": {
155
110
  "aliases": [],
156
111
  "args": {},
157
- "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",
158
112
  "examples": [
159
- "$ light config --solanaRpcUrl https://solana-api.example.com"
113
+ "$ light balance --mint=<ADDRESS> --owner=<ADDRESS>"
160
114
  ],
161
115
  "flags": {
162
- "solanaRpcUrl": {
163
- "description": "Solana RPC url",
164
- "name": "solanaRpcUrl",
165
- "hasDynamicHelp": false,
166
- "multiple": false,
167
- "type": "option"
168
- },
169
- "indexerUrl": {
170
- "description": "Indexer url",
171
- "name": "indexerUrl",
116
+ "owner": {
117
+ "description": "Address of the compressed token owner.",
118
+ "name": "owner",
119
+ "required": true,
172
120
  "hasDynamicHelp": false,
173
121
  "multiple": false,
174
122
  "type": "option"
175
123
  },
176
- "proverUrl": {
177
- "description": "Prover url",
178
- "name": "proverUrl",
124
+ "mint": {
125
+ "description": "Mint address of the compressed token account.",
126
+ "name": "mint",
127
+ "required": true,
179
128
  "hasDynamicHelp": false,
180
129
  "multiple": false,
181
130
  "type": "option"
182
- },
183
- "get": {
184
- "description": "Gets the current config values",
185
- "name": "get",
186
- "required": false,
187
- "allowNo": false,
188
- "type": "boolean"
189
131
  }
190
132
  },
191
133
  "hasDynamicHelp": false,
192
134
  "hiddenAliases": [],
193
- "id": "config",
135
+ "id": "balance",
194
136
  "pluginAlias": "@lightprotocol/zk-compression-cli",
195
137
  "pluginName": "@lightprotocol/zk-compression-cli",
196
138
  "pluginType": "core",
197
139
  "strict": true,
140
+ "summary": "Get balance",
198
141
  "enableJsonFlag": false,
199
142
  "isESM": false,
200
143
  "relativePath": [
201
144
  "dist",
202
145
  "commands",
203
- "config",
146
+ "balance",
204
147
  "index.js"
205
148
  ]
206
149
  },
@@ -295,64 +238,121 @@
295
238
  "index.js"
296
239
  ]
297
240
  },
298
- "compress-sol": {
241
+ "config:config": {
299
242
  "aliases": [],
300
243
  "args": {},
244
+ "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",
301
245
  "examples": [
302
- "$ light compress-sol --to PublicKey --amount 10"
246
+ "$ light config --solanaRpcUrl https://solana-api.example.com"
303
247
  ],
304
248
  "flags": {
305
- "to": {
306
- "description": "Specify the recipient address.",
307
- "name": "to",
308
- "required": true,
249
+ "solanaRpcUrl": {
250
+ "description": "Solana RPC url",
251
+ "name": "solanaRpcUrl",
309
252
  "hasDynamicHelp": false,
310
253
  "multiple": false,
311
254
  "type": "option"
312
255
  },
313
- "amount": {
314
- "description": "Amount to compress, in lamports.",
315
- "name": "amount",
316
- "required": true,
256
+ "indexerUrl": {
257
+ "description": "Indexer url",
258
+ "name": "indexerUrl",
259
+ "hasDynamicHelp": false,
260
+ "multiple": false,
261
+ "type": "option"
262
+ },
263
+ "proverUrl": {
264
+ "description": "Prover url",
265
+ "name": "proverUrl",
317
266
  "hasDynamicHelp": false,
318
267
  "multiple": false,
319
268
  "type": "option"
269
+ },
270
+ "get": {
271
+ "description": "Gets the current config values",
272
+ "name": "get",
273
+ "required": false,
274
+ "allowNo": false,
275
+ "type": "boolean"
320
276
  }
321
277
  },
322
278
  "hasDynamicHelp": false,
323
279
  "hiddenAliases": [],
324
- "id": "compress-sol",
280
+ "id": "config:config",
325
281
  "pluginAlias": "@lightprotocol/zk-compression-cli",
326
282
  "pluginName": "@lightprotocol/zk-compression-cli",
327
283
  "pluginType": "core",
328
284
  "strict": true,
329
- "summary": "Compress SOL.",
330
285
  "enableJsonFlag": false,
331
286
  "isESM": false,
332
287
  "relativePath": [
333
288
  "dist",
334
289
  "commands",
335
- "compress-sol",
290
+ "config",
336
291
  "index.js"
337
292
  ]
338
293
  },
339
- "compress-spl": {
294
+ "config": {
340
295
  "aliases": [],
341
296
  "args": {},
297
+ "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",
342
298
  "examples": [
343
- "$ light compress-spl --mint PublicKey --to PublicKey --amount 10"
299
+ "$ light config --solanaRpcUrl https://solana-api.example.com"
344
300
  ],
345
301
  "flags": {
346
- "mint": {
347
- "description": "Specify the mint address.",
348
- "name": "mint",
349
- "required": true,
302
+ "solanaRpcUrl": {
303
+ "description": "Solana RPC url",
304
+ "name": "solanaRpcUrl",
305
+ "hasDynamicHelp": false,
306
+ "multiple": false,
307
+ "type": "option"
308
+ },
309
+ "indexerUrl": {
310
+ "description": "Indexer url",
311
+ "name": "indexerUrl",
312
+ "hasDynamicHelp": false,
313
+ "multiple": false,
314
+ "type": "option"
315
+ },
316
+ "proverUrl": {
317
+ "description": "Prover url",
318
+ "name": "proverUrl",
350
319
  "hasDynamicHelp": false,
351
320
  "multiple": false,
352
321
  "type": "option"
353
322
  },
323
+ "get": {
324
+ "description": "Gets the current config values",
325
+ "name": "get",
326
+ "required": false,
327
+ "allowNo": false,
328
+ "type": "boolean"
329
+ }
330
+ },
331
+ "hasDynamicHelp": false,
332
+ "hiddenAliases": [],
333
+ "id": "config",
334
+ "pluginAlias": "@lightprotocol/zk-compression-cli",
335
+ "pluginName": "@lightprotocol/zk-compression-cli",
336
+ "pluginType": "core",
337
+ "strict": true,
338
+ "enableJsonFlag": false,
339
+ "isESM": false,
340
+ "relativePath": [
341
+ "dist",
342
+ "commands",
343
+ "config",
344
+ "index.js"
345
+ ]
346
+ },
347
+ "compress-sol": {
348
+ "aliases": [],
349
+ "args": {},
350
+ "examples": [
351
+ "$ light compress-sol --to PublicKey --amount 10"
352
+ ],
353
+ "flags": {
354
354
  "to": {
355
- "description": "Specify the recipient address (owner of destination compressed token account).",
355
+ "description": "Specify the recipient address.",
356
356
  "name": "to",
357
357
  "required": true,
358
358
  "hasDynamicHelp": false,
@@ -360,7 +360,7 @@
360
360
  "type": "option"
361
361
  },
362
362
  "amount": {
363
- "description": "Amount to compress, in tokens.",
363
+ "description": "Amount to compress, in lamports.",
364
364
  "name": "amount",
365
365
  "required": true,
366
366
  "hasDynamicHelp": false,
@@ -370,18 +370,18 @@
370
370
  },
371
371
  "hasDynamicHelp": false,
372
372
  "hiddenAliases": [],
373
- "id": "compress-spl",
373
+ "id": "compress-sol",
374
374
  "pluginAlias": "@lightprotocol/zk-compression-cli",
375
375
  "pluginName": "@lightprotocol/zk-compression-cli",
376
376
  "pluginType": "core",
377
377
  "strict": true,
378
- "summary": "Compress SPL tokens.",
378
+ "summary": "Compress SOL.",
379
379
  "enableJsonFlag": false,
380
380
  "isESM": false,
381
381
  "relativePath": [
382
382
  "dist",
383
383
  "commands",
384
- "compress-spl",
384
+ "compress-sol",
385
385
  "index.js"
386
386
  ]
387
387
  },
@@ -762,5 +762,5 @@
762
762
  ]
763
763
  }
764
764
  },
765
- "version": "0.6.0"
765
+ "version": "0.7.0"
766
766
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightprotocol/zk-compression-cli",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "ZK Compression: Secure Scaling on Solana",
5
5
  "maintainers": [
6
6
  {
@@ -44,9 +44,9 @@
44
44
  "tweetnacl": "^1.0.3",
45
45
  "wait-on": "^7.2.0",
46
46
  "which": "^4.0.0",
47
- "@lightprotocol/hasher.rs": "0.2.0",
48
- "@lightprotocol/stateless.js": "0.6.0",
49
- "@lightprotocol/compressed-token": "0.5.0"
47
+ "@lightprotocol/compressed-token": "0.6.0",
48
+ "@lightprotocol/stateless.js": "0.7.0",
49
+ "@lightprotocol/hasher.rs": "0.2.0"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@oclif/test": "2.3.9",