@lightprotocol/zk-compression-cli 0.4.7 → 0.5.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.
@@ -1,100 +1,100 @@
1
1
  {
2
2
  "commands": {
3
- "approve-and-mint-to": {
3
+ "balance": {
4
4
  "aliases": [],
5
5
  "args": {},
6
6
  "examples": [
7
- "$ light approve-and-mint-to --mint PublicKey --to PublicKey --amount 1000"
7
+ "$ light balance --mint=<ADDRESS> --owner=<ADDRESS>"
8
8
  ],
9
9
  "flags": {
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,
10
+ "owner": {
11
+ "description": "Address of the compressed token owner.",
12
+ "name": "owner",
13
+ "required": true,
14
14
  "hasDynamicHelp": false,
15
15
  "multiple": false,
16
16
  "type": "option"
17
17
  },
18
18
  "mint": {
19
- "description": "Specify the mint address.",
19
+ "description": "Mint address of the compressed token account.",
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"
41
25
  }
42
26
  },
43
27
  "hasDynamicHelp": false,
44
28
  "hiddenAliases": [],
45
- "id": "approve-and-mint-to",
29
+ "id": "balance",
46
30
  "pluginAlias": "@lightprotocol/zk-compression-cli",
47
31
  "pluginName": "@lightprotocol/zk-compression-cli",
48
32
  "pluginType": "core",
49
33
  "strict": true,
50
- "summary": "Mint tokens to a compressed account via external mint authority",
34
+ "summary": "Get balance",
51
35
  "enableJsonFlag": false,
52
36
  "isESM": false,
53
37
  "relativePath": [
54
38
  "dist",
55
39
  "commands",
56
- "approve-and-mint-to",
40
+ "balance",
57
41
  "index.js"
58
42
  ]
59
43
  },
60
- "balance": {
44
+ "approve-and-mint-to": {
61
45
  "aliases": [],
62
46
  "args": {},
63
47
  "examples": [
64
- "$ light balance --mint=<ADDRESS> --owner=<ADDRESS>"
48
+ "$ light approve-and-mint-to --mint PublicKey --to PublicKey --amount 1000"
65
49
  ],
66
50
  "flags": {
67
- "owner": {
68
- "description": "Address of the compressed token owner.",
69
- "name": "owner",
70
- "required": true,
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,
71
55
  "hasDynamicHelp": false,
72
56
  "multiple": false,
73
57
  "type": "option"
74
58
  },
75
59
  "mint": {
76
- "description": "Mint address of the compressed token account.",
60
+ "description": "Specify the mint address.",
77
61
  "name": "mint",
78
62
  "required": true,
79
63
  "hasDynamicHelp": false,
80
64
  "multiple": false,
81
65
  "type": "option"
66
+ },
67
+ "to": {
68
+ "description": "Specify the recipient address.",
69
+ "name": "to",
70
+ "required": true,
71
+ "hasDynamicHelp": false,
72
+ "multiple": false,
73
+ "type": "option"
74
+ },
75
+ "amount": {
76
+ "description": "Amount to mint, in tokens.",
77
+ "name": "amount",
78
+ "required": true,
79
+ "hasDynamicHelp": false,
80
+ "multiple": false,
81
+ "type": "option"
82
82
  }
83
83
  },
84
84
  "hasDynamicHelp": false,
85
85
  "hiddenAliases": [],
86
- "id": "balance",
86
+ "id": "approve-and-mint-to",
87
87
  "pluginAlias": "@lightprotocol/zk-compression-cli",
88
88
  "pluginName": "@lightprotocol/zk-compression-cli",
89
89
  "pluginType": "core",
90
90
  "strict": true,
91
- "summary": "Get balance",
91
+ "summary": "Mint tokens to a compressed account via external mint authority",
92
92
  "enableJsonFlag": false,
93
93
  "isESM": false,
94
94
  "relativePath": [
95
95
  "dist",
96
96
  "commands",
97
- "balance",
97
+ "approve-and-mint-to",
98
98
  "index.js"
99
99
  ]
100
100
  },
@@ -188,200 +188,200 @@
188
188
  "index.js"
189
189
  ]
190
190
  },
191
- "create-mint": {
191
+ "config:config": {
192
192
  "aliases": [],
193
193
  "args": {},
194
+ "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
195
  "examples": [
195
- "$ light create-mint --mint-decimals 5"
196
+ "$ light config --solanaRpcUrl https://solana-api.example.com"
196
197
  ],
197
198
  "flags": {
198
- "mint-keypair": {
199
- "description": "Provide a path to a mint keypair file. Defaults to a random keypair",
200
- "name": "mint-keypair",
201
- "required": false,
199
+ "solanaRpcUrl": {
200
+ "description": "Solana RPC url",
201
+ "name": "solanaRpcUrl",
202
202
  "hasDynamicHelp": false,
203
203
  "multiple": false,
204
204
  "type": "option"
205
205
  },
206
- "mint-authority": {
207
- "description": "Address of the mint authority. Defaults to the fee payer",
208
- "name": "mint-authority",
209
- "required": false,
206
+ "indexerUrl": {
207
+ "description": "Indexer url",
208
+ "name": "indexerUrl",
210
209
  "hasDynamicHelp": false,
211
210
  "multiple": false,
212
211
  "type": "option"
213
212
  },
214
- "mint-decimals": {
215
- "description": "Number of base 10 digits to the right of the decimal place [default: 9]",
216
- "name": "mint-decimals",
217
- "required": false,
218
- "default": 9,
213
+ "proverUrl": {
214
+ "description": "Prover url",
215
+ "name": "proverUrl",
219
216
  "hasDynamicHelp": false,
220
217
  "multiple": false,
221
218
  "type": "option"
219
+ },
220
+ "get": {
221
+ "description": "Gets the current config values",
222
+ "name": "get",
223
+ "required": false,
224
+ "allowNo": false,
225
+ "type": "boolean"
222
226
  }
223
227
  },
224
228
  "hasDynamicHelp": false,
225
229
  "hiddenAliases": [],
226
- "id": "create-mint",
230
+ "id": "config:config",
227
231
  "pluginAlias": "@lightprotocol/zk-compression-cli",
228
232
  "pluginName": "@lightprotocol/zk-compression-cli",
229
233
  "pluginType": "core",
230
234
  "strict": true,
231
- "summary": "Create a new compressed token mint",
232
235
  "enableJsonFlag": false,
233
236
  "isESM": false,
234
237
  "relativePath": [
235
238
  "dist",
236
239
  "commands",
237
- "create-mint",
240
+ "config",
238
241
  "index.js"
239
242
  ]
240
243
  },
241
- "decompress-sol": {
244
+ "config": {
242
245
  "aliases": [],
243
246
  "args": {},
247
+ "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",
244
248
  "examples": [
245
- "$ light decompress-sol --to PublicKey --amount 10"
249
+ "$ light config --solanaRpcUrl https://solana-api.example.com"
246
250
  ],
247
251
  "flags": {
248
- "to": {
249
- "description": "Specify the recipient address.",
250
- "name": "to",
251
- "required": true,
252
+ "solanaRpcUrl": {
253
+ "description": "Solana RPC url",
254
+ "name": "solanaRpcUrl",
252
255
  "hasDynamicHelp": false,
253
256
  "multiple": false,
254
257
  "type": "option"
255
258
  },
256
- "amount": {
257
- "description": "Amount to decompress, in lamports.",
258
- "name": "amount",
259
- "required": true,
259
+ "indexerUrl": {
260
+ "description": "Indexer url",
261
+ "name": "indexerUrl",
262
+ "hasDynamicHelp": false,
263
+ "multiple": false,
264
+ "type": "option"
265
+ },
266
+ "proverUrl": {
267
+ "description": "Prover url",
268
+ "name": "proverUrl",
260
269
  "hasDynamicHelp": false,
261
270
  "multiple": false,
262
271
  "type": "option"
272
+ },
273
+ "get": {
274
+ "description": "Gets the current config values",
275
+ "name": "get",
276
+ "required": false,
277
+ "allowNo": false,
278
+ "type": "boolean"
263
279
  }
264
280
  },
265
281
  "hasDynamicHelp": false,
266
282
  "hiddenAliases": [],
267
- "id": "decompress-sol",
283
+ "id": "config",
268
284
  "pluginAlias": "@lightprotocol/zk-compression-cli",
269
285
  "pluginName": "@lightprotocol/zk-compression-cli",
270
286
  "pluginType": "core",
271
287
  "strict": true,
272
- "summary": "Decompress SOL.",
273
288
  "enableJsonFlag": false,
274
289
  "isESM": false,
275
290
  "relativePath": [
276
291
  "dist",
277
292
  "commands",
278
- "decompress-sol",
293
+ "config",
279
294
  "index.js"
280
295
  ]
281
296
  },
282
- "config:config": {
297
+ "decompress-sol": {
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 config --solanaRpcUrl https://solana-api.example.com"
301
+ "$ light decompress-sol --to PublicKey --amount 10"
288
302
  ],
289
303
  "flags": {
290
- "solanaRpcUrl": {
291
- "description": "Solana RPC url",
292
- "name": "solanaRpcUrl",
293
- "hasDynamicHelp": false,
294
- "multiple": false,
295
- "type": "option"
296
- },
297
- "indexerUrl": {
298
- "description": "Indexer url",
299
- "name": "indexerUrl",
304
+ "to": {
305
+ "description": "Specify the recipient address.",
306
+ "name": "to",
307
+ "required": true,
300
308
  "hasDynamicHelp": false,
301
309
  "multiple": false,
302
310
  "type": "option"
303
311
  },
304
- "proverUrl": {
305
- "description": "Prover url",
306
- "name": "proverUrl",
312
+ "amount": {
313
+ "description": "Amount to decompress, in lamports.",
314
+ "name": "amount",
315
+ "required": true,
307
316
  "hasDynamicHelp": false,
308
317
  "multiple": false,
309
318
  "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
319
  }
318
320
  },
319
321
  "hasDynamicHelp": false,
320
322
  "hiddenAliases": [],
321
- "id": "config:config",
323
+ "id": "decompress-sol",
322
324
  "pluginAlias": "@lightprotocol/zk-compression-cli",
323
325
  "pluginName": "@lightprotocol/zk-compression-cli",
324
326
  "pluginType": "core",
325
327
  "strict": true,
328
+ "summary": "Decompress SOL.",
326
329
  "enableJsonFlag": false,
327
330
  "isESM": false,
328
331
  "relativePath": [
329
332
  "dist",
330
333
  "commands",
331
- "config",
334
+ "decompress-sol",
332
335
  "index.js"
333
336
  ]
334
337
  },
335
- "config": {
338
+ "create-mint": {
336
339
  "aliases": [],
337
340
  "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
341
  "examples": [
340
- "$ light config --solanaRpcUrl https://solana-api.example.com"
342
+ "$ light create-mint --mint-decimals 5"
341
343
  ],
342
344
  "flags": {
343
- "solanaRpcUrl": {
344
- "description": "Solana RPC url",
345
- "name": "solanaRpcUrl",
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,
346
349
  "hasDynamicHelp": false,
347
350
  "multiple": false,
348
351
  "type": "option"
349
352
  },
350
- "indexerUrl": {
351
- "description": "Indexer url",
352
- "name": "indexerUrl",
353
+ "mint-authority": {
354
+ "description": "Address of the mint authority. Defaults to the fee payer",
355
+ "name": "mint-authority",
356
+ "required": false,
353
357
  "hasDynamicHelp": false,
354
358
  "multiple": false,
355
359
  "type": "option"
356
360
  },
357
- "proverUrl": {
358
- "description": "Prover url",
359
- "name": "proverUrl",
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,
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": "config",
373
+ "id": "create-mint",
375
374
  "pluginAlias": "@lightprotocol/zk-compression-cli",
376
375
  "pluginName": "@lightprotocol/zk-compression-cli",
377
376
  "pluginType": "core",
378
377
  "strict": true,
378
+ "summary": "Create a new compressed token mint",
379
379
  "enableJsonFlag": false,
380
380
  "isESM": false,
381
381
  "relativePath": [
382
382
  "dist",
383
383
  "commands",
384
- "config",
384
+ "create-mint",
385
385
  "index.js"
386
386
  ]
387
387
  },
@@ -762,5 +762,5 @@
762
762
  ]
763
763
  }
764
764
  },
765
- "version": "0.4.7"
765
+ "version": "0.5.0"
766
766
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightprotocol/zk-compression-cli",
3
- "version": "0.4.7",
3
+ "version": "0.5.0",
4
4
  "description": "ZK Compression: Secure Scaling on Solana",
5
5
  "maintainers": [
6
6
  {
@@ -30,7 +30,7 @@
30
30
  "@oclif/plugin-not-found": "^3.1.2",
31
31
  "@oclif/plugin-plugins": "^5.0.7",
32
32
  "@solana-developers/helpers": "^1.5.1",
33
- "@solana/web3.js": "^1.91.8",
33
+ "@solana/web3.js": "^1.95.0",
34
34
  "axios": "^1.6.8",
35
35
  "case-anything": "^2.1.13",
36
36
  "cli-progress": "^3.12.0",
@@ -44,17 +44,17 @@
44
44
  "tweetnacl": "^1.0.3",
45
45
  "wait-on": "^7.2.0",
46
46
  "which": "^4.0.0",
47
- "@lightprotocol/compressed-token": "0.3.4",
48
- "@lightprotocol/hasher.rs": "0.2.0",
49
- "@lightprotocol/stateless.js": "0.4.4"
47
+ "@lightprotocol/compressed-token": "0.4.0",
48
+ "@lightprotocol/stateless.js": "0.5.0",
49
+ "@lightprotocol/hasher.rs": "0.2.0"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@oclif/test": "2.3.9",
53
53
  "@solana/spl-token": "^0.3.11",
54
54
  "@types/bn.js": "^5.1.5",
55
- "@types/chai": "^4.3.14",
55
+ "@types/chai": "^4.3.16",
56
56
  "@types/cli-progress": "^3.11.5",
57
- "@types/mocha": "^10.0.6",
57
+ "@types/mocha": "^10.0.7",
58
58
  "@types/node": "^20.12.8",
59
59
  "@types/tar": "^6.1.12",
60
60
  "@types/which": "^3.0.3",
@@ -65,14 +65,14 @@
65
65
  "eslint-config-oclif": "5.1.1",
66
66
  "eslint-config-oclif-typescript": "3.1.4",
67
67
  "eslint-config-prettier": "9.1.0",
68
- "mocha": "^10.2.0",
68
+ "mocha": "^10.6.0",
69
69
  "oclif": "4.8.0",
70
- "prettier": "^3.3.2",
70
+ "prettier": "^3.3.3",
71
71
  "shx": "^0.3.4",
72
72
  "ts-mocha": "^10.0.0",
73
73
  "ts-node": "^10.9.2",
74
74
  "tslib": "^2.6.2",
75
- "typescript": "^5.4.5",
75
+ "typescript": "^5.5.3",
76
76
  "@lightprotocol/programs": "0.3.0"
77
77
  },
78
78
  "oclif": {