@lightprotocol/zk-compression-cli 0.4.1 → 0.4.2
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/utils/processPhotonIndexer.js +1 -1
- package/oclif.manifest.json +89 -89
- package/package.json +3 -3
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
|
|
@@ -12,7 +12,7 @@ async function startIndexer(rpcUrl, indexerPort, checkPhotonVersion = true, phot
|
|
|
12
12
|
const resolvedOrNull = which_1.default.sync("photon", { nothrow: true });
|
|
13
13
|
if (resolvedOrNull === null ||
|
|
14
14
|
(checkPhotonVersion && !(await isExpectedPhotonVersion(constants_1.PHOTON_VERSION)))) {
|
|
15
|
-
const message = `Photon indexer not found. Please install it by running "cargo install photon-indexer --version ${constants_1.PHOTON_VERSION}"`;
|
|
15
|
+
const message = `Photon indexer not found. Please install it by running "cargo install photon-indexer --version ${constants_1.PHOTON_VERSION} --locked"`;
|
|
16
16
|
console.log(message);
|
|
17
17
|
throw new Error(message);
|
|
18
18
|
}
|
package/oclif.manifest.json
CHANGED
|
@@ -98,15 +98,23 @@
|
|
|
98
98
|
"index.js"
|
|
99
99
|
]
|
|
100
100
|
},
|
|
101
|
-
"compress-
|
|
101
|
+
"compress-spl": {
|
|
102
102
|
"aliases": [],
|
|
103
103
|
"args": {},
|
|
104
104
|
"examples": [
|
|
105
|
-
"$ light compress-
|
|
105
|
+
"$ light compress-spl --mint PublicKey --to PublicKey --amount 10"
|
|
106
106
|
],
|
|
107
107
|
"flags": {
|
|
108
|
+
"mint": {
|
|
109
|
+
"description": "Specify the mint address.",
|
|
110
|
+
"name": "mint",
|
|
111
|
+
"required": true,
|
|
112
|
+
"hasDynamicHelp": false,
|
|
113
|
+
"multiple": false,
|
|
114
|
+
"type": "option"
|
|
115
|
+
},
|
|
108
116
|
"to": {
|
|
109
|
-
"description": "Specify the recipient address.",
|
|
117
|
+
"description": "Specify the recipient address (owner of destination compressed token account).",
|
|
110
118
|
"name": "to",
|
|
111
119
|
"required": true,
|
|
112
120
|
"hasDynamicHelp": false,
|
|
@@ -114,7 +122,7 @@
|
|
|
114
122
|
"type": "option"
|
|
115
123
|
},
|
|
116
124
|
"amount": {
|
|
117
|
-
"description": "Amount to compress, in
|
|
125
|
+
"description": "Amount to compress, in tokens.",
|
|
118
126
|
"name": "amount",
|
|
119
127
|
"required": true,
|
|
120
128
|
"hasDynamicHelp": false,
|
|
@@ -124,117 +132,124 @@
|
|
|
124
132
|
},
|
|
125
133
|
"hasDynamicHelp": false,
|
|
126
134
|
"hiddenAliases": [],
|
|
127
|
-
"id": "compress-
|
|
135
|
+
"id": "compress-spl",
|
|
128
136
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
129
137
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
130
138
|
"pluginType": "core",
|
|
131
139
|
"strict": true,
|
|
132
|
-
"summary": "Compress
|
|
140
|
+
"summary": "Compress SPL tokens.",
|
|
133
141
|
"enableJsonFlag": false,
|
|
134
142
|
"isESM": false,
|
|
135
143
|
"relativePath": [
|
|
136
144
|
"dist",
|
|
137
145
|
"commands",
|
|
138
|
-
"compress-
|
|
146
|
+
"compress-spl",
|
|
139
147
|
"index.js"
|
|
140
148
|
]
|
|
141
149
|
},
|
|
142
|
-
"
|
|
150
|
+
"config:config": {
|
|
143
151
|
"aliases": [],
|
|
144
152
|
"args": {},
|
|
153
|
+
"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
154
|
"examples": [
|
|
146
|
-
"$ light
|
|
155
|
+
"$ light config --solanaRpcUrl https://solana-api.example.com"
|
|
147
156
|
],
|
|
148
157
|
"flags": {
|
|
149
|
-
"
|
|
150
|
-
"description": "
|
|
151
|
-
"name": "
|
|
152
|
-
"required": true,
|
|
158
|
+
"solanaRpcUrl": {
|
|
159
|
+
"description": "Solana RPC url",
|
|
160
|
+
"name": "solanaRpcUrl",
|
|
153
161
|
"hasDynamicHelp": false,
|
|
154
162
|
"multiple": false,
|
|
155
163
|
"type": "option"
|
|
156
164
|
},
|
|
157
|
-
"
|
|
158
|
-
"description": "
|
|
159
|
-
"name": "
|
|
160
|
-
"required": true,
|
|
165
|
+
"indexerUrl": {
|
|
166
|
+
"description": "Indexer url",
|
|
167
|
+
"name": "indexerUrl",
|
|
161
168
|
"hasDynamicHelp": false,
|
|
162
169
|
"multiple": false,
|
|
163
170
|
"type": "option"
|
|
164
171
|
},
|
|
165
|
-
"
|
|
166
|
-
"description": "
|
|
167
|
-
"name": "
|
|
168
|
-
"required": true,
|
|
172
|
+
"proverUrl": {
|
|
173
|
+
"description": "Prover url",
|
|
174
|
+
"name": "proverUrl",
|
|
169
175
|
"hasDynamicHelp": false,
|
|
170
176
|
"multiple": false,
|
|
171
177
|
"type": "option"
|
|
178
|
+
},
|
|
179
|
+
"get": {
|
|
180
|
+
"description": "Gets the current config values",
|
|
181
|
+
"name": "get",
|
|
182
|
+
"required": false,
|
|
183
|
+
"allowNo": false,
|
|
184
|
+
"type": "boolean"
|
|
172
185
|
}
|
|
173
186
|
},
|
|
174
187
|
"hasDynamicHelp": false,
|
|
175
188
|
"hiddenAliases": [],
|
|
176
|
-
"id": "
|
|
189
|
+
"id": "config:config",
|
|
177
190
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
178
191
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
179
192
|
"pluginType": "core",
|
|
180
193
|
"strict": true,
|
|
181
|
-
"summary": "Compress SPL tokens.",
|
|
182
194
|
"enableJsonFlag": false,
|
|
183
195
|
"isESM": false,
|
|
184
196
|
"relativePath": [
|
|
185
197
|
"dist",
|
|
186
198
|
"commands",
|
|
187
|
-
"
|
|
199
|
+
"config",
|
|
188
200
|
"index.js"
|
|
189
201
|
]
|
|
190
202
|
},
|
|
191
|
-
"
|
|
203
|
+
"config": {
|
|
192
204
|
"aliases": [],
|
|
193
205
|
"args": {},
|
|
206
|
+
"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",
|
|
194
207
|
"examples": [
|
|
195
|
-
"$ light
|
|
208
|
+
"$ light config --solanaRpcUrl https://solana-api.example.com"
|
|
196
209
|
],
|
|
197
210
|
"flags": {
|
|
198
|
-
"
|
|
199
|
-
"description": "
|
|
200
|
-
"name": "
|
|
201
|
-
"required": false,
|
|
211
|
+
"solanaRpcUrl": {
|
|
212
|
+
"description": "Solana RPC url",
|
|
213
|
+
"name": "solanaRpcUrl",
|
|
202
214
|
"hasDynamicHelp": false,
|
|
203
215
|
"multiple": false,
|
|
204
216
|
"type": "option"
|
|
205
217
|
},
|
|
206
|
-
"
|
|
207
|
-
"description": "
|
|
208
|
-
"name": "
|
|
209
|
-
"required": false,
|
|
218
|
+
"indexerUrl": {
|
|
219
|
+
"description": "Indexer url",
|
|
220
|
+
"name": "indexerUrl",
|
|
210
221
|
"hasDynamicHelp": false,
|
|
211
222
|
"multiple": false,
|
|
212
223
|
"type": "option"
|
|
213
224
|
},
|
|
214
|
-
"
|
|
215
|
-
"description": "
|
|
216
|
-
"name": "
|
|
217
|
-
"required": false,
|
|
218
|
-
"default": 9,
|
|
225
|
+
"proverUrl": {
|
|
226
|
+
"description": "Prover url",
|
|
227
|
+
"name": "proverUrl",
|
|
219
228
|
"hasDynamicHelp": false,
|
|
220
229
|
"multiple": false,
|
|
221
230
|
"type": "option"
|
|
231
|
+
},
|
|
232
|
+
"get": {
|
|
233
|
+
"description": "Gets the current config values",
|
|
234
|
+
"name": "get",
|
|
235
|
+
"required": false,
|
|
236
|
+
"allowNo": false,
|
|
237
|
+
"type": "boolean"
|
|
222
238
|
}
|
|
223
239
|
},
|
|
224
240
|
"hasDynamicHelp": false,
|
|
225
241
|
"hiddenAliases": [],
|
|
226
|
-
"id": "
|
|
242
|
+
"id": "config",
|
|
227
243
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
228
244
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
229
245
|
"pluginType": "core",
|
|
230
246
|
"strict": true,
|
|
231
|
-
"summary": "Create a new compressed token mint",
|
|
232
247
|
"enableJsonFlag": false,
|
|
233
248
|
"isESM": false,
|
|
234
249
|
"relativePath": [
|
|
235
250
|
"dist",
|
|
236
251
|
"commands",
|
|
237
|
-
"
|
|
252
|
+
"config",
|
|
238
253
|
"index.js"
|
|
239
254
|
]
|
|
240
255
|
},
|
|
@@ -279,109 +294,94 @@
|
|
|
279
294
|
"index.js"
|
|
280
295
|
]
|
|
281
296
|
},
|
|
282
|
-
"
|
|
297
|
+
"create-mint": {
|
|
283
298
|
"aliases": [],
|
|
284
299
|
"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",
|
|
286
300
|
"examples": [
|
|
287
|
-
"$ light
|
|
301
|
+
"$ light create-mint --mint-decimals 5"
|
|
288
302
|
],
|
|
289
303
|
"flags": {
|
|
290
|
-
"
|
|
291
|
-
"description": "
|
|
292
|
-
"name": "
|
|
304
|
+
"mint-keypair": {
|
|
305
|
+
"description": "Provide a path to a mint keypair file. Defaults to a random keypair",
|
|
306
|
+
"name": "mint-keypair",
|
|
307
|
+
"required": false,
|
|
293
308
|
"hasDynamicHelp": false,
|
|
294
309
|
"multiple": false,
|
|
295
310
|
"type": "option"
|
|
296
311
|
},
|
|
297
|
-
"
|
|
298
|
-
"description": "
|
|
299
|
-
"name": "
|
|
312
|
+
"mint-authority": {
|
|
313
|
+
"description": "Address of the mint authority. Defaults to the fee payer",
|
|
314
|
+
"name": "mint-authority",
|
|
315
|
+
"required": false,
|
|
300
316
|
"hasDynamicHelp": false,
|
|
301
317
|
"multiple": false,
|
|
302
318
|
"type": "option"
|
|
303
319
|
},
|
|
304
|
-
"
|
|
305
|
-
"description": "
|
|
306
|
-
"name": "
|
|
320
|
+
"mint-decimals": {
|
|
321
|
+
"description": "Number of base 10 digits to the right of the decimal place [default: 9]",
|
|
322
|
+
"name": "mint-decimals",
|
|
323
|
+
"required": false,
|
|
324
|
+
"default": 9,
|
|
307
325
|
"hasDynamicHelp": false,
|
|
308
326
|
"multiple": false,
|
|
309
327
|
"type": "option"
|
|
310
|
-
},
|
|
311
|
-
"get": {
|
|
312
|
-
"description": "Gets the current config values",
|
|
313
|
-
"name": "get",
|
|
314
|
-
"required": false,
|
|
315
|
-
"allowNo": false,
|
|
316
|
-
"type": "boolean"
|
|
317
328
|
}
|
|
318
329
|
},
|
|
319
330
|
"hasDynamicHelp": false,
|
|
320
331
|
"hiddenAliases": [],
|
|
321
|
-
"id": "
|
|
332
|
+
"id": "create-mint",
|
|
322
333
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
323
334
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
324
335
|
"pluginType": "core",
|
|
325
336
|
"strict": true,
|
|
337
|
+
"summary": "Create a new compressed token mint",
|
|
326
338
|
"enableJsonFlag": false,
|
|
327
339
|
"isESM": false,
|
|
328
340
|
"relativePath": [
|
|
329
341
|
"dist",
|
|
330
342
|
"commands",
|
|
331
|
-
"
|
|
343
|
+
"create-mint",
|
|
332
344
|
"index.js"
|
|
333
345
|
]
|
|
334
346
|
},
|
|
335
|
-
"
|
|
347
|
+
"compress-sol": {
|
|
336
348
|
"aliases": [],
|
|
337
349
|
"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
350
|
"examples": [
|
|
340
|
-
"$ light
|
|
351
|
+
"$ light compress-sol --to PublicKey --amount 10"
|
|
341
352
|
],
|
|
342
353
|
"flags": {
|
|
343
|
-
"
|
|
344
|
-
"description": "
|
|
345
|
-
"name": "
|
|
346
|
-
"
|
|
347
|
-
"multiple": false,
|
|
348
|
-
"type": "option"
|
|
349
|
-
},
|
|
350
|
-
"indexerUrl": {
|
|
351
|
-
"description": "Indexer url",
|
|
352
|
-
"name": "indexerUrl",
|
|
354
|
+
"to": {
|
|
355
|
+
"description": "Specify the recipient address.",
|
|
356
|
+
"name": "to",
|
|
357
|
+
"required": true,
|
|
353
358
|
"hasDynamicHelp": false,
|
|
354
359
|
"multiple": false,
|
|
355
360
|
"type": "option"
|
|
356
361
|
},
|
|
357
|
-
"
|
|
358
|
-
"description": "
|
|
359
|
-
"name": "
|
|
362
|
+
"amount": {
|
|
363
|
+
"description": "Amount to compress, in lamports.",
|
|
364
|
+
"name": "amount",
|
|
365
|
+
"required": true,
|
|
360
366
|
"hasDynamicHelp": false,
|
|
361
367
|
"multiple": false,
|
|
362
368
|
"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
369
|
}
|
|
371
370
|
},
|
|
372
371
|
"hasDynamicHelp": false,
|
|
373
372
|
"hiddenAliases": [],
|
|
374
|
-
"id": "
|
|
373
|
+
"id": "compress-sol",
|
|
375
374
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
376
375
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
377
376
|
"pluginType": "core",
|
|
378
377
|
"strict": true,
|
|
378
|
+
"summary": "Compress SOL.",
|
|
379
379
|
"enableJsonFlag": false,
|
|
380
380
|
"isESM": false,
|
|
381
381
|
"relativePath": [
|
|
382
382
|
"dist",
|
|
383
383
|
"commands",
|
|
384
|
-
"
|
|
384
|
+
"compress-sol",
|
|
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.2"
|
|
766
766
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightprotocol/zk-compression-cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "ZK Compression: Secure Scaling on Solana",
|
|
5
5
|
"maintainers": [
|
|
6
6
|
{
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"wait-on": "^7.2.0",
|
|
46
46
|
"which": "^4.0.0",
|
|
47
47
|
"@lightprotocol/compressed-token": "0.3.0",
|
|
48
|
-
"@lightprotocol/
|
|
49
|
-
"@lightprotocol/
|
|
48
|
+
"@lightprotocol/hasher.rs": "0.2.0",
|
|
49
|
+
"@lightprotocol/stateless.js": "0.4.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@oclif/test": "2.3.9",
|