@lightprotocol/zk-compression-cli 0.25.0 → 0.26.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/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/commands/start-prover/index.js +8 -1
- package/dist/utils/constants.d.ts +1 -1
- package/dist/utils/constants.js +1 -1
- package/oclif.manifest.json +108 -108
- package/package.json +1 -1
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
|
|
@@ -18,7 +18,14 @@ class StartProver extends core_1.Command {
|
|
|
18
18
|
const proverPort = flags["prover-port"] || 3001;
|
|
19
19
|
const force = flags["force"] || false;
|
|
20
20
|
const redisUrl = flags["redisUrl"] || process.env.REDIS_URL || undefined;
|
|
21
|
-
|
|
21
|
+
// TODO: remove this workaround.
|
|
22
|
+
// Force local-rpc mode when rpc is specified
|
|
23
|
+
let runMode = flags["run-mode"];
|
|
24
|
+
if (runMode === "rpc") {
|
|
25
|
+
runMode = "local-rpc";
|
|
26
|
+
this.log("Note: Running in local-rpc mode instead of rpc mode");
|
|
27
|
+
}
|
|
28
|
+
await (0, processProverServer_1.startProver)(proverPort, runMode, flags["circuit"], force, redisUrl);
|
|
22
29
|
const healthy = await (0, processProverServer_1.healthCheck)(proverPort, 10, 1000);
|
|
23
30
|
loader.stop();
|
|
24
31
|
if (healthy) {
|
|
@@ -37,4 +37,4 @@ export declare const LIGHT_CLIENT_VERSION = "0.9.1";
|
|
|
37
37
|
export declare const LIGHT_TEST_UTILS_VERSION = "1.2.1";
|
|
38
38
|
export declare const LIGHT_ACCOUNT_CHECKS = "0.3.0";
|
|
39
39
|
export declare const STATELESS_JS_VERSION = "0.22.0";
|
|
40
|
-
export declare const LIGHT_CLI_VERSION = "0.
|
|
40
|
+
export declare const LIGHT_CLI_VERSION = "0.26.0";
|
package/dist/utils/constants.js
CHANGED
package/oclif.manifest.json
CHANGED
|
@@ -90,73 +90,122 @@
|
|
|
90
90
|
"index.js"
|
|
91
91
|
]
|
|
92
92
|
},
|
|
93
|
-
"
|
|
93
|
+
"config:config": {
|
|
94
94
|
"aliases": [],
|
|
95
95
|
"args": {},
|
|
96
|
+
"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",
|
|
96
97
|
"examples": [
|
|
97
|
-
"$ light
|
|
98
|
+
"$ light config --solanaRpcUrl https://solana-api.example.com"
|
|
98
99
|
],
|
|
99
100
|
"flags": {
|
|
100
|
-
"
|
|
101
|
-
"description": "
|
|
102
|
-
"name": "
|
|
103
|
-
"required": true,
|
|
101
|
+
"solanaRpcUrl": {
|
|
102
|
+
"description": "Solana RPC url",
|
|
103
|
+
"name": "solanaRpcUrl",
|
|
104
104
|
"hasDynamicHelp": false,
|
|
105
105
|
"multiple": false,
|
|
106
106
|
"type": "option"
|
|
107
107
|
},
|
|
108
|
-
"
|
|
109
|
-
"description": "
|
|
110
|
-
"name": "
|
|
111
|
-
"required": true,
|
|
108
|
+
"indexerUrl": {
|
|
109
|
+
"description": "Indexer url",
|
|
110
|
+
"name": "indexerUrl",
|
|
112
111
|
"hasDynamicHelp": false,
|
|
113
112
|
"multiple": false,
|
|
114
113
|
"type": "option"
|
|
115
114
|
},
|
|
116
|
-
"
|
|
117
|
-
"description": "
|
|
118
|
-
"name": "
|
|
119
|
-
"required": true,
|
|
115
|
+
"proverUrl": {
|
|
116
|
+
"description": "Prover url",
|
|
117
|
+
"name": "proverUrl",
|
|
120
118
|
"hasDynamicHelp": false,
|
|
121
119
|
"multiple": false,
|
|
122
120
|
"type": "option"
|
|
121
|
+
},
|
|
122
|
+
"get": {
|
|
123
|
+
"description": "Gets the current config values",
|
|
124
|
+
"name": "get",
|
|
125
|
+
"required": false,
|
|
126
|
+
"allowNo": false,
|
|
127
|
+
"type": "boolean"
|
|
123
128
|
}
|
|
124
129
|
},
|
|
125
130
|
"hasDynamicHelp": false,
|
|
126
131
|
"hiddenAliases": [],
|
|
127
|
-
"id": "
|
|
132
|
+
"id": "config:config",
|
|
128
133
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
129
134
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
130
135
|
"pluginType": "core",
|
|
131
136
|
"strict": true,
|
|
132
|
-
"summary": "Compress SPL tokens.",
|
|
133
137
|
"enableJsonFlag": false,
|
|
134
138
|
"isESM": false,
|
|
135
139
|
"relativePath": [
|
|
136
140
|
"dist",
|
|
137
141
|
"commands",
|
|
138
|
-
"
|
|
142
|
+
"config",
|
|
139
143
|
"index.js"
|
|
140
144
|
]
|
|
141
145
|
},
|
|
142
|
-
"
|
|
146
|
+
"config": {
|
|
143
147
|
"aliases": [],
|
|
144
148
|
"args": {},
|
|
149
|
+
"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",
|
|
145
150
|
"examples": [
|
|
146
|
-
"$ light
|
|
151
|
+
"$ light config --solanaRpcUrl https://solana-api.example.com"
|
|
147
152
|
],
|
|
148
153
|
"flags": {
|
|
149
|
-
"
|
|
150
|
-
"description": "
|
|
151
|
-
"name": "
|
|
152
|
-
"required": true,
|
|
154
|
+
"solanaRpcUrl": {
|
|
155
|
+
"description": "Solana RPC url",
|
|
156
|
+
"name": "solanaRpcUrl",
|
|
153
157
|
"hasDynamicHelp": false,
|
|
154
158
|
"multiple": false,
|
|
155
159
|
"type": "option"
|
|
156
160
|
},
|
|
157
|
-
"
|
|
158
|
-
"description": "
|
|
159
|
-
"name": "
|
|
161
|
+
"indexerUrl": {
|
|
162
|
+
"description": "Indexer url",
|
|
163
|
+
"name": "indexerUrl",
|
|
164
|
+
"hasDynamicHelp": false,
|
|
165
|
+
"multiple": false,
|
|
166
|
+
"type": "option"
|
|
167
|
+
},
|
|
168
|
+
"proverUrl": {
|
|
169
|
+
"description": "Prover url",
|
|
170
|
+
"name": "proverUrl",
|
|
171
|
+
"hasDynamicHelp": false,
|
|
172
|
+
"multiple": false,
|
|
173
|
+
"type": "option"
|
|
174
|
+
},
|
|
175
|
+
"get": {
|
|
176
|
+
"description": "Gets the current config values",
|
|
177
|
+
"name": "get",
|
|
178
|
+
"required": false,
|
|
179
|
+
"allowNo": false,
|
|
180
|
+
"type": "boolean"
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"hasDynamicHelp": false,
|
|
184
|
+
"hiddenAliases": [],
|
|
185
|
+
"id": "config",
|
|
186
|
+
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
187
|
+
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
188
|
+
"pluginType": "core",
|
|
189
|
+
"strict": true,
|
|
190
|
+
"enableJsonFlag": false,
|
|
191
|
+
"isESM": false,
|
|
192
|
+
"relativePath": [
|
|
193
|
+
"dist",
|
|
194
|
+
"commands",
|
|
195
|
+
"config",
|
|
196
|
+
"index.js"
|
|
197
|
+
]
|
|
198
|
+
},
|
|
199
|
+
"create-token-pool": {
|
|
200
|
+
"aliases": [],
|
|
201
|
+
"args": {},
|
|
202
|
+
"examples": [
|
|
203
|
+
"$ light create-token-pool --mint-decimals 5"
|
|
204
|
+
],
|
|
205
|
+
"flags": {
|
|
206
|
+
"mint": {
|
|
207
|
+
"description": "Provide a base58 encoded mint address to register",
|
|
208
|
+
"name": "mint",
|
|
160
209
|
"required": true,
|
|
161
210
|
"hasDynamicHelp": false,
|
|
162
211
|
"multiple": false,
|
|
@@ -165,18 +214,18 @@
|
|
|
165
214
|
},
|
|
166
215
|
"hasDynamicHelp": false,
|
|
167
216
|
"hiddenAliases": [],
|
|
168
|
-
"id": "
|
|
217
|
+
"id": "create-token-pool",
|
|
169
218
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
170
219
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
171
220
|
"pluginType": "core",
|
|
172
221
|
"strict": true,
|
|
173
|
-
"summary": "
|
|
222
|
+
"summary": "Register an existing mint with the CompressedToken program",
|
|
174
223
|
"enableJsonFlag": false,
|
|
175
224
|
"isESM": false,
|
|
176
225
|
"relativePath": [
|
|
177
226
|
"dist",
|
|
178
227
|
"commands",
|
|
179
|
-
"
|
|
228
|
+
"create-token-pool",
|
|
180
229
|
"index.js"
|
|
181
230
|
]
|
|
182
231
|
},
|
|
@@ -230,142 +279,93 @@
|
|
|
230
279
|
"index.js"
|
|
231
280
|
]
|
|
232
281
|
},
|
|
233
|
-
"
|
|
282
|
+
"compress-sol": {
|
|
234
283
|
"aliases": [],
|
|
235
284
|
"args": {},
|
|
236
285
|
"examples": [
|
|
237
|
-
"$ light
|
|
286
|
+
"$ light compress-sol --to PublicKey --amount 10"
|
|
238
287
|
],
|
|
239
288
|
"flags": {
|
|
240
|
-
"
|
|
241
|
-
"description": "
|
|
242
|
-
"name": "
|
|
289
|
+
"to": {
|
|
290
|
+
"description": "Specify the recipient address.",
|
|
291
|
+
"name": "to",
|
|
243
292
|
"required": true,
|
|
244
293
|
"hasDynamicHelp": false,
|
|
245
294
|
"multiple": false,
|
|
246
295
|
"type": "option"
|
|
247
|
-
}
|
|
248
|
-
},
|
|
249
|
-
"hasDynamicHelp": false,
|
|
250
|
-
"hiddenAliases": [],
|
|
251
|
-
"id": "create-token-pool",
|
|
252
|
-
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
253
|
-
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
254
|
-
"pluginType": "core",
|
|
255
|
-
"strict": true,
|
|
256
|
-
"summary": "Register an existing mint with the CompressedToken program",
|
|
257
|
-
"enableJsonFlag": false,
|
|
258
|
-
"isESM": false,
|
|
259
|
-
"relativePath": [
|
|
260
|
-
"dist",
|
|
261
|
-
"commands",
|
|
262
|
-
"create-token-pool",
|
|
263
|
-
"index.js"
|
|
264
|
-
]
|
|
265
|
-
},
|
|
266
|
-
"config:config": {
|
|
267
|
-
"aliases": [],
|
|
268
|
-
"args": {},
|
|
269
|
-
"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",
|
|
270
|
-
"examples": [
|
|
271
|
-
"$ light config --solanaRpcUrl https://solana-api.example.com"
|
|
272
|
-
],
|
|
273
|
-
"flags": {
|
|
274
|
-
"solanaRpcUrl": {
|
|
275
|
-
"description": "Solana RPC url",
|
|
276
|
-
"name": "solanaRpcUrl",
|
|
277
|
-
"hasDynamicHelp": false,
|
|
278
|
-
"multiple": false,
|
|
279
|
-
"type": "option"
|
|
280
296
|
},
|
|
281
|
-
"
|
|
282
|
-
"description": "
|
|
283
|
-
"name": "
|
|
284
|
-
"
|
|
285
|
-
"multiple": false,
|
|
286
|
-
"type": "option"
|
|
287
|
-
},
|
|
288
|
-
"proverUrl": {
|
|
289
|
-
"description": "Prover url",
|
|
290
|
-
"name": "proverUrl",
|
|
297
|
+
"amount": {
|
|
298
|
+
"description": "Amount to compress, in lamports.",
|
|
299
|
+
"name": "amount",
|
|
300
|
+
"required": true,
|
|
291
301
|
"hasDynamicHelp": false,
|
|
292
302
|
"multiple": false,
|
|
293
303
|
"type": "option"
|
|
294
|
-
},
|
|
295
|
-
"get": {
|
|
296
|
-
"description": "Gets the current config values",
|
|
297
|
-
"name": "get",
|
|
298
|
-
"required": false,
|
|
299
|
-
"allowNo": false,
|
|
300
|
-
"type": "boolean"
|
|
301
304
|
}
|
|
302
305
|
},
|
|
303
306
|
"hasDynamicHelp": false,
|
|
304
307
|
"hiddenAliases": [],
|
|
305
|
-
"id": "
|
|
308
|
+
"id": "compress-sol",
|
|
306
309
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
307
310
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
308
311
|
"pluginType": "core",
|
|
309
312
|
"strict": true,
|
|
313
|
+
"summary": "Compress SOL.",
|
|
310
314
|
"enableJsonFlag": false,
|
|
311
315
|
"isESM": false,
|
|
312
316
|
"relativePath": [
|
|
313
317
|
"dist",
|
|
314
318
|
"commands",
|
|
315
|
-
"
|
|
319
|
+
"compress-sol",
|
|
316
320
|
"index.js"
|
|
317
321
|
]
|
|
318
322
|
},
|
|
319
|
-
"
|
|
323
|
+
"compress-spl": {
|
|
320
324
|
"aliases": [],
|
|
321
325
|
"args": {},
|
|
322
|
-
"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",
|
|
323
326
|
"examples": [
|
|
324
|
-
"$ light
|
|
327
|
+
"$ light compress-spl --mint PublicKey --to PublicKey --amount 10"
|
|
325
328
|
],
|
|
326
329
|
"flags": {
|
|
327
|
-
"
|
|
328
|
-
"description": "
|
|
329
|
-
"name": "
|
|
330
|
+
"mint": {
|
|
331
|
+
"description": "Specify the mint address.",
|
|
332
|
+
"name": "mint",
|
|
333
|
+
"required": true,
|
|
330
334
|
"hasDynamicHelp": false,
|
|
331
335
|
"multiple": false,
|
|
332
336
|
"type": "option"
|
|
333
337
|
},
|
|
334
|
-
"
|
|
335
|
-
"description": "
|
|
336
|
-
"name": "
|
|
338
|
+
"to": {
|
|
339
|
+
"description": "Specify the recipient address (owner of destination compressed token account).",
|
|
340
|
+
"name": "to",
|
|
341
|
+
"required": true,
|
|
337
342
|
"hasDynamicHelp": false,
|
|
338
343
|
"multiple": false,
|
|
339
344
|
"type": "option"
|
|
340
345
|
},
|
|
341
|
-
"
|
|
342
|
-
"description": "
|
|
343
|
-
"name": "
|
|
346
|
+
"amount": {
|
|
347
|
+
"description": "Amount to compress, in tokens.",
|
|
348
|
+
"name": "amount",
|
|
349
|
+
"required": true,
|
|
344
350
|
"hasDynamicHelp": false,
|
|
345
351
|
"multiple": false,
|
|
346
352
|
"type": "option"
|
|
347
|
-
},
|
|
348
|
-
"get": {
|
|
349
|
-
"description": "Gets the current config values",
|
|
350
|
-
"name": "get",
|
|
351
|
-
"required": false,
|
|
352
|
-
"allowNo": false,
|
|
353
|
-
"type": "boolean"
|
|
354
353
|
}
|
|
355
354
|
},
|
|
356
355
|
"hasDynamicHelp": false,
|
|
357
356
|
"hiddenAliases": [],
|
|
358
|
-
"id": "
|
|
357
|
+
"id": "compress-spl",
|
|
359
358
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
360
359
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
361
360
|
"pluginType": "core",
|
|
362
361
|
"strict": true,
|
|
362
|
+
"summary": "Compress SPL tokens.",
|
|
363
363
|
"enableJsonFlag": false,
|
|
364
364
|
"isESM": false,
|
|
365
365
|
"relativePath": [
|
|
366
366
|
"dist",
|
|
367
367
|
"commands",
|
|
368
|
-
"
|
|
368
|
+
"compress-spl",
|
|
369
369
|
"index.js"
|
|
370
370
|
]
|
|
371
371
|
},
|
|
@@ -956,5 +956,5 @@
|
|
|
956
956
|
]
|
|
957
957
|
}
|
|
958
958
|
},
|
|
959
|
-
"version": "0.
|
|
959
|
+
"version": "0.26.0"
|
|
960
960
|
}
|