@lightprotocol/zk-compression-cli 0.4.5 → 0.4.6
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/address_merkle_tree_C83cpRN6oaafjNgMQJvaYgAz592EP5wunKvbokeTKPLn.json +1 -1
- package/accounts/address_merkle_tree_queue_HNjtNrjt6irUPYEgxhx2Vcs42koK9fxzm3aFLHVaaRWz.json +1 -1
- package/bin/account_compression.so +0 -0
- package/bin/forester +0 -0
- package/bin/forester.toml +14 -9
- package/bin/light_compressed_token.so +0 -0
- package/bin/light_registry.so +0 -0
- package/bin/light_system_program.so +0 -0
- package/bin/prover-darwin-arm64 +0 -0
- package/bin/prover-darwin-x64 +0 -0
- package/bin/prover-linux-arm64 +0 -0
- package/bin/prover-linux-x64 +0 -0
- package/bin/prover-windows-arm64.exe +0 -0
- package/bin/prover-windows-x64.exe +0 -0
- package/dist/utils/constants.d.ts +1 -1
- package/dist/utils/constants.js +1 -1
- package/oclif.manifest.json +116 -116
- package/package.json +1 -1
|
Binary file
|
package/bin/forester
CHANGED
|
Binary file
|
package/bin/forester.toml
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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"
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
+
CONCURRENCY_LIMIT=10
|
|
13
|
+
BATCH_SIZE=10
|
|
14
|
+
MAX_RETRIES=5
|
|
15
|
+
MAX_CONCURRENT_BATCHES=1
|
|
Binary file
|
package/bin/light_registry.so
CHANGED
|
Binary file
|
|
Binary file
|
package/bin/prover-darwin-arm64
CHANGED
|
Binary file
|
package/bin/prover-darwin-x64
CHANGED
|
Binary file
|
package/bin/prover-linux-arm64
CHANGED
|
Binary file
|
package/bin/prover-linux-x64
CHANGED
|
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.
|
|
17
|
+
export declare const PHOTON_VERSION = "0.30.0";
|
|
18
18
|
export declare const LIGHT_PROTOCOL_PROGRAMS_DIR_ENV = "LIGHT_PROTOCOL_PROGRAMS_DIR";
|
|
19
19
|
export declare const BASE_PATH = "../../bin/";
|
package/dist/utils/constants.js
CHANGED
|
@@ -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.
|
|
22
|
+
exports.PHOTON_VERSION = "0.30.0";
|
|
23
23
|
exports.LIGHT_PROTOCOL_PROGRAMS_DIR_ENV = "LIGHT_PROTOCOL_PROGRAMS_DIR";
|
|
24
24
|
exports.BASE_PATH = "../../bin/";
|
package/oclif.manifest.json
CHANGED
|
@@ -1,46 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"commands": {
|
|
3
|
-
"balance": {
|
|
4
|
-
"aliases": [],
|
|
5
|
-
"args": {},
|
|
6
|
-
"examples": [
|
|
7
|
-
"$ light balance --mint=<ADDRESS> --owner=<ADDRESS>"
|
|
8
|
-
],
|
|
9
|
-
"flags": {
|
|
10
|
-
"owner": {
|
|
11
|
-
"description": "Address of the compressed token owner.",
|
|
12
|
-
"name": "owner",
|
|
13
|
-
"required": true,
|
|
14
|
-
"hasDynamicHelp": false,
|
|
15
|
-
"multiple": false,
|
|
16
|
-
"type": "option"
|
|
17
|
-
},
|
|
18
|
-
"mint": {
|
|
19
|
-
"description": "Mint address of the compressed token account.",
|
|
20
|
-
"name": "mint",
|
|
21
|
-
"required": true,
|
|
22
|
-
"hasDynamicHelp": false,
|
|
23
|
-
"multiple": false,
|
|
24
|
-
"type": "option"
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
"hasDynamicHelp": false,
|
|
28
|
-
"hiddenAliases": [],
|
|
29
|
-
"id": "balance",
|
|
30
|
-
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
31
|
-
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
32
|
-
"pluginType": "core",
|
|
33
|
-
"strict": true,
|
|
34
|
-
"summary": "Get balance",
|
|
35
|
-
"enableJsonFlag": false,
|
|
36
|
-
"isESM": false,
|
|
37
|
-
"relativePath": [
|
|
38
|
-
"dist",
|
|
39
|
-
"commands",
|
|
40
|
-
"balance",
|
|
41
|
-
"index.js"
|
|
42
|
-
]
|
|
43
|
-
},
|
|
44
3
|
"approve-and-mint-to": {
|
|
45
4
|
"aliases": [],
|
|
46
5
|
"args": {},
|
|
@@ -98,24 +57,24 @@
|
|
|
98
57
|
"index.js"
|
|
99
58
|
]
|
|
100
59
|
},
|
|
101
|
-
"
|
|
60
|
+
"balance": {
|
|
102
61
|
"aliases": [],
|
|
103
62
|
"args": {},
|
|
104
63
|
"examples": [
|
|
105
|
-
"$ light
|
|
64
|
+
"$ light balance --mint=<ADDRESS> --owner=<ADDRESS>"
|
|
106
65
|
],
|
|
107
66
|
"flags": {
|
|
108
|
-
"
|
|
109
|
-
"description": "
|
|
110
|
-
"name": "
|
|
67
|
+
"owner": {
|
|
68
|
+
"description": "Address of the compressed token owner.",
|
|
69
|
+
"name": "owner",
|
|
111
70
|
"required": true,
|
|
112
71
|
"hasDynamicHelp": false,
|
|
113
72
|
"multiple": false,
|
|
114
73
|
"type": "option"
|
|
115
74
|
},
|
|
116
|
-
"
|
|
117
|
-
"description": "
|
|
118
|
-
"name": "
|
|
75
|
+
"mint": {
|
|
76
|
+
"description": "Mint address of the compressed token account.",
|
|
77
|
+
"name": "mint",
|
|
119
78
|
"required": true,
|
|
120
79
|
"hasDynamicHelp": false,
|
|
121
80
|
"multiple": false,
|
|
@@ -124,124 +83,108 @@
|
|
|
124
83
|
},
|
|
125
84
|
"hasDynamicHelp": false,
|
|
126
85
|
"hiddenAliases": [],
|
|
127
|
-
"id": "
|
|
86
|
+
"id": "balance",
|
|
128
87
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
129
88
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
130
89
|
"pluginType": "core",
|
|
131
90
|
"strict": true,
|
|
132
|
-
"summary": "
|
|
91
|
+
"summary": "Get balance",
|
|
133
92
|
"enableJsonFlag": false,
|
|
134
93
|
"isESM": false,
|
|
135
94
|
"relativePath": [
|
|
136
95
|
"dist",
|
|
137
96
|
"commands",
|
|
138
|
-
"
|
|
97
|
+
"balance",
|
|
139
98
|
"index.js"
|
|
140
99
|
]
|
|
141
100
|
},
|
|
142
|
-
"
|
|
101
|
+
"compress-spl": {
|
|
143
102
|
"aliases": [],
|
|
144
103
|
"args": {},
|
|
145
|
-
"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",
|
|
146
104
|
"examples": [
|
|
147
|
-
"$ light
|
|
105
|
+
"$ light compress-spl --mint PublicKey --to PublicKey --amount 10"
|
|
148
106
|
],
|
|
149
107
|
"flags": {
|
|
150
|
-
"
|
|
151
|
-
"description": "
|
|
152
|
-
"name": "
|
|
108
|
+
"mint": {
|
|
109
|
+
"description": "Specify the mint address.",
|
|
110
|
+
"name": "mint",
|
|
111
|
+
"required": true,
|
|
153
112
|
"hasDynamicHelp": false,
|
|
154
113
|
"multiple": false,
|
|
155
114
|
"type": "option"
|
|
156
115
|
},
|
|
157
|
-
"
|
|
158
|
-
"description": "
|
|
159
|
-
"name": "
|
|
116
|
+
"to": {
|
|
117
|
+
"description": "Specify the recipient address (owner of destination compressed token account).",
|
|
118
|
+
"name": "to",
|
|
119
|
+
"required": true,
|
|
160
120
|
"hasDynamicHelp": false,
|
|
161
121
|
"multiple": false,
|
|
162
122
|
"type": "option"
|
|
163
123
|
},
|
|
164
|
-
"
|
|
165
|
-
"description": "
|
|
166
|
-
"name": "
|
|
124
|
+
"amount": {
|
|
125
|
+
"description": "Amount to compress, in tokens.",
|
|
126
|
+
"name": "amount",
|
|
127
|
+
"required": true,
|
|
167
128
|
"hasDynamicHelp": false,
|
|
168
129
|
"multiple": false,
|
|
169
130
|
"type": "option"
|
|
170
|
-
},
|
|
171
|
-
"get": {
|
|
172
|
-
"description": "Gets the current config values",
|
|
173
|
-
"name": "get",
|
|
174
|
-
"required": false,
|
|
175
|
-
"allowNo": false,
|
|
176
|
-
"type": "boolean"
|
|
177
131
|
}
|
|
178
132
|
},
|
|
179
133
|
"hasDynamicHelp": false,
|
|
180
134
|
"hiddenAliases": [],
|
|
181
|
-
"id": "
|
|
135
|
+
"id": "compress-spl",
|
|
182
136
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
183
137
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
184
138
|
"pluginType": "core",
|
|
185
139
|
"strict": true,
|
|
140
|
+
"summary": "Compress SPL tokens.",
|
|
186
141
|
"enableJsonFlag": false,
|
|
187
142
|
"isESM": false,
|
|
188
143
|
"relativePath": [
|
|
189
144
|
"dist",
|
|
190
145
|
"commands",
|
|
191
|
-
"
|
|
146
|
+
"compress-spl",
|
|
192
147
|
"index.js"
|
|
193
148
|
]
|
|
194
149
|
},
|
|
195
|
-
"
|
|
150
|
+
"compress-sol": {
|
|
196
151
|
"aliases": [],
|
|
197
152
|
"args": {},
|
|
198
|
-
"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",
|
|
199
153
|
"examples": [
|
|
200
|
-
"$ light
|
|
154
|
+
"$ light compress-sol --to PublicKey --amount 10"
|
|
201
155
|
],
|
|
202
156
|
"flags": {
|
|
203
|
-
"
|
|
204
|
-
"description": "
|
|
205
|
-
"name": "
|
|
206
|
-
"
|
|
207
|
-
"multiple": false,
|
|
208
|
-
"type": "option"
|
|
209
|
-
},
|
|
210
|
-
"indexerUrl": {
|
|
211
|
-
"description": "Indexer url",
|
|
212
|
-
"name": "indexerUrl",
|
|
157
|
+
"to": {
|
|
158
|
+
"description": "Specify the recipient address.",
|
|
159
|
+
"name": "to",
|
|
160
|
+
"required": true,
|
|
213
161
|
"hasDynamicHelp": false,
|
|
214
162
|
"multiple": false,
|
|
215
163
|
"type": "option"
|
|
216
164
|
},
|
|
217
|
-
"
|
|
218
|
-
"description": "
|
|
219
|
-
"name": "
|
|
165
|
+
"amount": {
|
|
166
|
+
"description": "Amount to compress, in lamports.",
|
|
167
|
+
"name": "amount",
|
|
168
|
+
"required": true,
|
|
220
169
|
"hasDynamicHelp": false,
|
|
221
170
|
"multiple": false,
|
|
222
171
|
"type": "option"
|
|
223
|
-
},
|
|
224
|
-
"get": {
|
|
225
|
-
"description": "Gets the current config values",
|
|
226
|
-
"name": "get",
|
|
227
|
-
"required": false,
|
|
228
|
-
"allowNo": false,
|
|
229
|
-
"type": "boolean"
|
|
230
172
|
}
|
|
231
173
|
},
|
|
232
174
|
"hasDynamicHelp": false,
|
|
233
175
|
"hiddenAliases": [],
|
|
234
|
-
"id": "
|
|
176
|
+
"id": "compress-sol",
|
|
235
177
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
236
178
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
237
179
|
"pluginType": "core",
|
|
238
180
|
"strict": true,
|
|
181
|
+
"summary": "Compress SOL.",
|
|
239
182
|
"enableJsonFlag": false,
|
|
240
183
|
"isESM": false,
|
|
241
184
|
"relativePath": [
|
|
242
185
|
"dist",
|
|
243
186
|
"commands",
|
|
244
|
-
"
|
|
187
|
+
"compress-sol",
|
|
245
188
|
"index.js"
|
|
246
189
|
]
|
|
247
190
|
},
|
|
@@ -336,52 +279,109 @@
|
|
|
336
279
|
"index.js"
|
|
337
280
|
]
|
|
338
281
|
},
|
|
339
|
-
"
|
|
282
|
+
"config:config": {
|
|
340
283
|
"aliases": [],
|
|
341
284
|
"args": {},
|
|
285
|
+
"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
286
|
"examples": [
|
|
343
|
-
"$ light
|
|
287
|
+
"$ light config --solanaRpcUrl https://solana-api.example.com"
|
|
344
288
|
],
|
|
345
289
|
"flags": {
|
|
346
|
-
"
|
|
347
|
-
"description": "
|
|
348
|
-
"name": "
|
|
349
|
-
"required": true,
|
|
290
|
+
"solanaRpcUrl": {
|
|
291
|
+
"description": "Solana RPC url",
|
|
292
|
+
"name": "solanaRpcUrl",
|
|
350
293
|
"hasDynamicHelp": false,
|
|
351
294
|
"multiple": false,
|
|
352
295
|
"type": "option"
|
|
353
296
|
},
|
|
354
|
-
"
|
|
355
|
-
"description": "
|
|
356
|
-
"name": "
|
|
357
|
-
"required": true,
|
|
297
|
+
"indexerUrl": {
|
|
298
|
+
"description": "Indexer url",
|
|
299
|
+
"name": "indexerUrl",
|
|
358
300
|
"hasDynamicHelp": false,
|
|
359
301
|
"multiple": false,
|
|
360
302
|
"type": "option"
|
|
361
303
|
},
|
|
362
|
-
"
|
|
363
|
-
"description": "
|
|
364
|
-
"name": "
|
|
365
|
-
"required": true,
|
|
304
|
+
"proverUrl": {
|
|
305
|
+
"description": "Prover url",
|
|
306
|
+
"name": "proverUrl",
|
|
366
307
|
"hasDynamicHelp": false,
|
|
367
308
|
"multiple": false,
|
|
368
309
|
"type": "option"
|
|
310
|
+
},
|
|
311
|
+
"get": {
|
|
312
|
+
"description": "Gets the current config values",
|
|
313
|
+
"name": "get",
|
|
314
|
+
"required": false,
|
|
315
|
+
"allowNo": false,
|
|
316
|
+
"type": "boolean"
|
|
369
317
|
}
|
|
370
318
|
},
|
|
371
319
|
"hasDynamicHelp": false,
|
|
372
320
|
"hiddenAliases": [],
|
|
373
|
-
"id": "
|
|
321
|
+
"id": "config:config",
|
|
374
322
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
375
323
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
376
324
|
"pluginType": "core",
|
|
377
325
|
"strict": true,
|
|
378
|
-
"summary": "Compress SPL tokens.",
|
|
379
326
|
"enableJsonFlag": false,
|
|
380
327
|
"isESM": false,
|
|
381
328
|
"relativePath": [
|
|
382
329
|
"dist",
|
|
383
330
|
"commands",
|
|
384
|
-
"
|
|
331
|
+
"config",
|
|
332
|
+
"index.js"
|
|
333
|
+
]
|
|
334
|
+
},
|
|
335
|
+
"config": {
|
|
336
|
+
"aliases": [],
|
|
337
|
+
"args": {},
|
|
338
|
+
"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",
|
|
339
|
+
"examples": [
|
|
340
|
+
"$ light config --solanaRpcUrl https://solana-api.example.com"
|
|
341
|
+
],
|
|
342
|
+
"flags": {
|
|
343
|
+
"solanaRpcUrl": {
|
|
344
|
+
"description": "Solana RPC url",
|
|
345
|
+
"name": "solanaRpcUrl",
|
|
346
|
+
"hasDynamicHelp": false,
|
|
347
|
+
"multiple": false,
|
|
348
|
+
"type": "option"
|
|
349
|
+
},
|
|
350
|
+
"indexerUrl": {
|
|
351
|
+
"description": "Indexer url",
|
|
352
|
+
"name": "indexerUrl",
|
|
353
|
+
"hasDynamicHelp": false,
|
|
354
|
+
"multiple": false,
|
|
355
|
+
"type": "option"
|
|
356
|
+
},
|
|
357
|
+
"proverUrl": {
|
|
358
|
+
"description": "Prover url",
|
|
359
|
+
"name": "proverUrl",
|
|
360
|
+
"hasDynamicHelp": false,
|
|
361
|
+
"multiple": false,
|
|
362
|
+
"type": "option"
|
|
363
|
+
},
|
|
364
|
+
"get": {
|
|
365
|
+
"description": "Gets the current config values",
|
|
366
|
+
"name": "get",
|
|
367
|
+
"required": false,
|
|
368
|
+
"allowNo": false,
|
|
369
|
+
"type": "boolean"
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
"hasDynamicHelp": false,
|
|
373
|
+
"hiddenAliases": [],
|
|
374
|
+
"id": "config",
|
|
375
|
+
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
376
|
+
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
377
|
+
"pluginType": "core",
|
|
378
|
+
"strict": true,
|
|
379
|
+
"enableJsonFlag": false,
|
|
380
|
+
"isESM": false,
|
|
381
|
+
"relativePath": [
|
|
382
|
+
"dist",
|
|
383
|
+
"commands",
|
|
384
|
+
"config",
|
|
385
385
|
"index.js"
|
|
386
386
|
]
|
|
387
387
|
},
|
|
@@ -762,5 +762,5 @@
|
|
|
762
762
|
]
|
|
763
763
|
}
|
|
764
764
|
},
|
|
765
|
-
"version": "0.4.
|
|
765
|
+
"version": "0.4.6"
|
|
766
766
|
}
|