@lightprotocol/zk-compression-cli 0.20.3 → 0.21.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.
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -188,60 +188,90 @@
188
188
  "index.js"
189
189
  ]
190
190
  },
191
- "config:config": {
191
+ "create-mint": {
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",
195
194
  "examples": [
196
- "$ light config --solanaRpcUrl https://solana-api.example.com"
195
+ "$ light create-mint --mint-decimals 5"
197
196
  ],
198
197
  "flags": {
199
- "solanaRpcUrl": {
200
- "description": "Solana RPC url",
201
- "name": "solanaRpcUrl",
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,
202
202
  "hasDynamicHelp": false,
203
203
  "multiple": false,
204
204
  "type": "option"
205
205
  },
206
- "indexerUrl": {
207
- "description": "Indexer url",
208
- "name": "indexerUrl",
206
+ "mint-authority": {
207
+ "description": "Address of the mint authority. Defaults to the fee payer",
208
+ "name": "mint-authority",
209
+ "required": false,
209
210
  "hasDynamicHelp": false,
210
211
  "multiple": false,
211
212
  "type": "option"
212
213
  },
213
- "proverUrl": {
214
- "description": "Prover url",
215
- "name": "proverUrl",
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,
216
219
  "hasDynamicHelp": false,
217
220
  "multiple": false,
218
221
  "type": "option"
219
- },
220
- "get": {
221
- "description": "Gets the current config values",
222
- "name": "get",
223
- "required": false,
224
- "allowNo": false,
225
- "type": "boolean"
226
222
  }
227
223
  },
228
224
  "hasDynamicHelp": false,
229
225
  "hiddenAliases": [],
230
- "id": "config:config",
226
+ "id": "create-mint",
231
227
  "pluginAlias": "@lightprotocol/zk-compression-cli",
232
228
  "pluginName": "@lightprotocol/zk-compression-cli",
233
229
  "pluginType": "core",
234
230
  "strict": true,
231
+ "summary": "Create a new compressed token mint",
235
232
  "enableJsonFlag": false,
236
233
  "isESM": false,
237
234
  "relativePath": [
238
235
  "dist",
239
236
  "commands",
240
- "config",
237
+ "create-mint",
241
238
  "index.js"
242
239
  ]
243
240
  },
244
- "config": {
241
+ "create-token-pool": {
242
+ "aliases": [],
243
+ "args": {},
244
+ "examples": [
245
+ "$ light create-token-pool --mint-decimals 5"
246
+ ],
247
+ "flags": {
248
+ "mint": {
249
+ "description": "Provide a base58 encoded mint address to register",
250
+ "name": "mint",
251
+ "required": true,
252
+ "hasDynamicHelp": false,
253
+ "multiple": false,
254
+ "type": "option"
255
+ }
256
+ },
257
+ "hasDynamicHelp": false,
258
+ "hiddenAliases": [],
259
+ "id": "create-token-pool",
260
+ "pluginAlias": "@lightprotocol/zk-compression-cli",
261
+ "pluginName": "@lightprotocol/zk-compression-cli",
262
+ "pluginType": "core",
263
+ "strict": true,
264
+ "summary": "Register an existing mint with the CompressedToken program",
265
+ "enableJsonFlag": false,
266
+ "isESM": false,
267
+ "relativePath": [
268
+ "dist",
269
+ "commands",
270
+ "create-token-pool",
271
+ "index.js"
272
+ ]
273
+ },
274
+ "config:config": {
245
275
  "aliases": [],
246
276
  "args": {},
247
277
  "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",
@@ -280,7 +310,7 @@
280
310
  },
281
311
  "hasDynamicHelp": false,
282
312
  "hiddenAliases": [],
283
- "id": "config",
313
+ "id": "config:config",
284
314
  "pluginAlias": "@lightprotocol/zk-compression-cli",
285
315
  "pluginName": "@lightprotocol/zk-compression-cli",
286
316
  "pluginType": "core",
@@ -294,86 +324,56 @@
294
324
  "index.js"
295
325
  ]
296
326
  },
297
- "create-token-pool": {
327
+ "config": {
298
328
  "aliases": [],
299
329
  "args": {},
330
+ "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",
300
331
  "examples": [
301
- "$ light create-token-pool --mint-decimals 5"
332
+ "$ light config --solanaRpcUrl https://solana-api.example.com"
302
333
  ],
303
334
  "flags": {
304
- "mint": {
305
- "description": "Provide a base58 encoded mint address to register",
306
- "name": "mint",
307
- "required": true,
335
+ "solanaRpcUrl": {
336
+ "description": "Solana RPC url",
337
+ "name": "solanaRpcUrl",
308
338
  "hasDynamicHelp": false,
309
339
  "multiple": false,
310
340
  "type": "option"
311
- }
312
- },
313
- "hasDynamicHelp": false,
314
- "hiddenAliases": [],
315
- "id": "create-token-pool",
316
- "pluginAlias": "@lightprotocol/zk-compression-cli",
317
- "pluginName": "@lightprotocol/zk-compression-cli",
318
- "pluginType": "core",
319
- "strict": true,
320
- "summary": "Register an existing mint with the CompressedToken program",
321
- "enableJsonFlag": false,
322
- "isESM": false,
323
- "relativePath": [
324
- "dist",
325
- "commands",
326
- "create-token-pool",
327
- "index.js"
328
- ]
329
- },
330
- "create-mint": {
331
- "aliases": [],
332
- "args": {},
333
- "examples": [
334
- "$ light create-mint --mint-decimals 5"
335
- ],
336
- "flags": {
337
- "mint-keypair": {
338
- "description": "Provide a path to a mint keypair file. Defaults to a random keypair",
339
- "name": "mint-keypair",
340
- "required": false,
341
+ },
342
+ "indexerUrl": {
343
+ "description": "Indexer url",
344
+ "name": "indexerUrl",
341
345
  "hasDynamicHelp": false,
342
346
  "multiple": false,
343
347
  "type": "option"
344
348
  },
345
- "mint-authority": {
346
- "description": "Address of the mint authority. Defaults to the fee payer",
347
- "name": "mint-authority",
348
- "required": false,
349
+ "proverUrl": {
350
+ "description": "Prover url",
351
+ "name": "proverUrl",
349
352
  "hasDynamicHelp": false,
350
353
  "multiple": false,
351
354
  "type": "option"
352
355
  },
353
- "mint-decimals": {
354
- "description": "Number of base 10 digits to the right of the decimal place [default: 9]",
355
- "name": "mint-decimals",
356
+ "get": {
357
+ "description": "Gets the current config values",
358
+ "name": "get",
356
359
  "required": false,
357
- "default": 9,
358
- "hasDynamicHelp": false,
359
- "multiple": false,
360
- "type": "option"
360
+ "allowNo": false,
361
+ "type": "boolean"
361
362
  }
362
363
  },
363
364
  "hasDynamicHelp": false,
364
365
  "hiddenAliases": [],
365
- "id": "create-mint",
366
+ "id": "config",
366
367
  "pluginAlias": "@lightprotocol/zk-compression-cli",
367
368
  "pluginName": "@lightprotocol/zk-compression-cli",
368
369
  "pluginType": "core",
369
370
  "strict": true,
370
- "summary": "Create a new compressed token mint",
371
371
  "enableJsonFlag": false,
372
372
  "isESM": false,
373
373
  "relativePath": [
374
374
  "dist",
375
375
  "commands",
376
- "create-mint",
376
+ "config",
377
377
  "index.js"
378
378
  ]
379
379
  },
@@ -873,5 +873,5 @@
873
873
  ]
874
874
  }
875
875
  },
876
- "version": "0.20.3"
876
+ "version": "0.21.0"
877
877
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightprotocol/zk-compression-cli",
3
- "version": "0.20.3",
3
+ "version": "0.21.0",
4
4
  "description": "ZK Compression: Secure Scaling on Solana",
5
5
  "maintainers": [
6
6
  {
@@ -41,7 +41,7 @@
41
41
  "@oclif/plugin-not-found": "^3.1.2",
42
42
  "@oclif/plugin-plugins": "^5.0.7",
43
43
  "@solana-developers/helpers": "^1.5.1",
44
- "@solana/web3.js": "^1.95.3",
44
+ "@solana/web3.js": "1.95.3",
45
45
  "axios": "^1.6.8",
46
46
  "case-anything": "^2.1.13",
47
47
  "cli-progress": "^3.12.0",
@@ -55,9 +55,9 @@
55
55
  "tweetnacl": "^1.0.3",
56
56
  "wait-on": "^7.2.0",
57
57
  "which": "^4.0.0",
58
- "@lightprotocol/compressed-token": "0.15.3",
59
- "@lightprotocol/stateless.js": "0.15.2",
60
- "@lightprotocol/hasher.rs": "0.2.0"
58
+ "@lightprotocol/compressed-token": "0.16.0",
59
+ "@lightprotocol/hasher.rs": "0.2.0",
60
+ "@lightprotocol/stateless.js": "0.16.0"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@oclif/test": "2.3.9",
@@ -69,10 +69,10 @@
69
69
  "@types/node": "^20.12.8",
70
70
  "@types/tar": "^6.1.12",
71
71
  "@types/which": "^3.0.3",
72
- "@typescript-eslint/eslint-plugin": "^7.6.0",
73
- "@typescript-eslint/parser": "^7.6.0",
72
+ "@typescript-eslint/eslint-plugin": "^7.0.0",
73
+ "@typescript-eslint/parser": "^7.0.0",
74
74
  "chai": "^4.4.1",
75
- "eslint": "8.57.0",
75
+ "eslint": "^8.56.0",
76
76
  "eslint-config-oclif": "5.1.1",
77
77
  "eslint-config-oclif-typescript": "3.1.4",
78
78
  "eslint-config-prettier": "9.1.0",
@@ -130,19 +130,19 @@
130
130
  "format:check": "pnpm prettier \"src/**/*{ts,js}\" \"test/**/*.{ts,js}\" --check",
131
131
  "lint": "eslint . --ext .ts",
132
132
  "lint:fix": "eslint . --fix",
133
- "test-utils": "mocha ./test/utils/index.test.ts -t 10000000 --exit",
134
- "test-config": "mocha ./test/commands/config/index.test.ts -t 10000000 --exit",
135
- "test-create-mint": "mocha ./test/commands/create-mint/index.test.ts -t 10000000 --exit",
136
- "test-merge-token-accounts": "mocha ./test/commands/merge-token-accounts/index.test.ts -t 10000000 --exit",
137
- "test-create-token-pool": "mocha ./test/commands/create-token-pool/index.test.ts -t 10000000 --exit",
138
- "test-approve-and-mint-to": "mocha ./test/commands/approve-and-mint-to/index.test.ts -t 10000000 --exit",
139
- "test-mint-to": "mocha ./test/commands/mint-to/index.test.ts -t 10000000 --exit",
140
- "test-transfer": "mocha ./test/commands/transfer/index.test.ts -t 10000000 --exit",
141
- "test-balance": "mocha ./test/commands/balance/index.test.ts -t 10000000 --exit",
142
- "test-compress-sol": "mocha ./test/commands/compress-sol/index.test.ts -t 10000000 --exit",
143
- "test-decompress-sol": "mocha ./test/commands/decompress-sol/index.test.ts -t 10000000 --exit",
144
- "test-compress-spl": "mocha ./test/commands/compress-spl/index.test.ts -t 10000000 --exit",
145
- "test-decompress-spl": "mocha ./test/commands/decompress-spl/index.test.ts -t 10000000 --exit",
133
+ "test-utils": "mocha test/utils/index.test.ts -t 10000000 --exit",
134
+ "test-config": "mocha test/commands/config/index.test.ts -t 10000000 --exit",
135
+ "test-create-mint": "mocha test/commands/create-mint/index.test.ts -t 10000000 --exit",
136
+ "test-merge-token-accounts": "mocha test/commands/merge-token-accounts/index.test.ts -t 10000000 --exit",
137
+ "test-create-token-pool": "mocha test/commands/create-token-pool/index.test.ts -t 10000000 --exit",
138
+ "test-approve-and-mint-to": "mocha test/commands/approve-and-mint-to/index.test.ts -t 10000000 --exit",
139
+ "test-mint-to": "mocha test/commands/mint-to/index.test.ts -t 10000000 --exit",
140
+ "test-transfer": "mocha test/commands/transfer/index.test.ts -t 10000000 --exit",
141
+ "test-balance": "mocha test/commands/balance/index.test.ts -t 10000000 --exit",
142
+ "test-compress-sol": "mocha test/commands/compress-sol/index.test.ts -t 10000000 --exit",
143
+ "test-decompress-sol": "mocha test/commands/decompress-sol/index.test.ts -t 10000000 --exit",
144
+ "test-compress-spl": "mocha test/commands/compress-spl/index.test.ts -t 10000000 --exit",
145
+ "test-decompress-spl": "mocha test/commands/decompress-spl/index.test.ts -t 10000000 --exit",
146
146
  "kill": "killall solana-test-validator || true && killall solana-test-val || true && sleep 1",
147
147
  "test-cli": "pnpm test-config && pnpm kill",
148
148
  "test": "pnpm kill && pnpm test-cli && pnpm test-utils && pnpm test-create-mint && pnpm test-mint-to && pnpm test-transfer && pnpm test-merge-token-accounts && pnpm test-create-token-pool && pnpm test-compress-spl && pnpm test-decompress-spl && pnpm test-balance && pnpm test-compress-sol && pnpm test-decompress-sol && pnpm test-approve-and-mint-to",