@lightprotocol/zk-compression-cli 0.15.1 → 0.15.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/account_compression.so +0 -0
- package/bin/forester +0 -0
- package/bin/forester.toml +15 -0
- 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/commands/init/index.js +7 -0
- package/dist/utils/process.d.ts +2 -1
- package/dist/utils/process.js +3 -2
- package/oclif.manifest.json +163 -163
- package/package.json +3 -3
|
Binary file
|
package/bin/forester
ADDED
|
Binary file
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
CU_LIMIT=1_000_000
|
|
2
|
+
RPC_POOL_SIZE=20
|
|
3
|
+
MAX_RETRIES=5
|
|
4
|
+
RETRY_DELAY=1000
|
|
5
|
+
RETRY_TIMEOUT=120_000
|
|
6
|
+
INDEXER_BATCH_SIZE=50
|
|
7
|
+
INDEXER_MAX_CONCURRENT_BATCHES=50
|
|
8
|
+
TRANSACTION_BATCH_SIZE=1
|
|
9
|
+
TRANSACTION_MAX_CONCURRENT_BATCHES=50
|
|
10
|
+
SLOT_UPDATE_INTERVAL_SECONDS=30
|
|
11
|
+
TREE_DISCOVERY_INTERVAL_SECONDS=5
|
|
12
|
+
STATE_QUEUE_START_INDEX=0
|
|
13
|
+
STATE_QUEUE_LENGTH=28807
|
|
14
|
+
ADDRESS_QUEUE_START_INDEX=0
|
|
15
|
+
ADDRESS_QUEUE_LENGTH=28807
|
|
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
|
|
@@ -11,6 +11,7 @@ const psp_utils_1 = require("../../psp-utils");
|
|
|
11
11
|
const constants_1 = require("../../utils/constants");
|
|
12
12
|
const utils_1 = require("../../utils");
|
|
13
13
|
const case_anything_1 = require("case-anything");
|
|
14
|
+
const child_process_1 = require("child_process");
|
|
14
15
|
class InitCommand extends core_1.Command {
|
|
15
16
|
async run() {
|
|
16
17
|
const { args, flags } = await this.parse(InitCommand);
|
|
@@ -39,6 +40,11 @@ const initRepo = async (name, flags) => {
|
|
|
39
40
|
const kebabCaseName = (0, case_anything_1.kebabCase)(name);
|
|
40
41
|
const snakeCaseName = (0, case_anything_1.snakeCase)(name);
|
|
41
42
|
const camelCaseName = (0, case_anything_1.pascalCase)(name);
|
|
43
|
+
// Set up environment variables for macOS builds
|
|
44
|
+
if (os.platform() === "darwin") {
|
|
45
|
+
process.env.CC = (0, child_process_1.execSync)("xcrun -find clang").toString().trim();
|
|
46
|
+
process.env.SDKROOT = (0, child_process_1.execSync)("xcrun --show-sdk-path").toString().trim();
|
|
47
|
+
}
|
|
42
48
|
await (0, process_1.executeCommand)({
|
|
43
49
|
command: localFilePath,
|
|
44
50
|
args: [
|
|
@@ -85,6 +91,7 @@ const initRepo = async (name, flags) => {
|
|
|
85
91
|
`tokio-version=${constants_1.TOKIO_VERSION}`,
|
|
86
92
|
],
|
|
87
93
|
logFile: true,
|
|
94
|
+
env: process.env,
|
|
88
95
|
});
|
|
89
96
|
await (0, stateless_js_1.sleep)(1000);
|
|
90
97
|
};
|
package/dist/utils/process.d.ts
CHANGED
|
@@ -7,11 +7,12 @@ export declare function killProcessByPort(port: number): Promise<void>;
|
|
|
7
7
|
* @param additionalPath - Additional path to be added to the PATH environment
|
|
8
8
|
* variable.
|
|
9
9
|
*/
|
|
10
|
-
export declare function executeCommand({ command, args, additionalPath, logFile, }: {
|
|
10
|
+
export declare function executeCommand({ command, args, additionalPath, logFile, env, }: {
|
|
11
11
|
command: string;
|
|
12
12
|
args: string[];
|
|
13
13
|
additionalPath?: string;
|
|
14
14
|
logFile?: boolean;
|
|
15
|
+
env?: NodeJS.ProcessEnv;
|
|
15
16
|
}): Promise<string>;
|
|
16
17
|
/**
|
|
17
18
|
* Executes a shell command and returns a promise that resolves to the output of the shell command, or an error.
|
package/dist/utils/process.js
CHANGED
|
@@ -33,7 +33,7 @@ async function killProcessByPort(port) {
|
|
|
33
33
|
* @param additionalPath - Additional path to be added to the PATH environment
|
|
34
34
|
* variable.
|
|
35
35
|
*/
|
|
36
|
-
async function executeCommand({ command, args, additionalPath, logFile = true, }) {
|
|
36
|
+
async function executeCommand({ command, args, additionalPath, logFile = true, env, }) {
|
|
37
37
|
return new Promise((resolve, reject) => {
|
|
38
38
|
const commandBase = path_1.default.basename(command);
|
|
39
39
|
let stdoutData = "";
|
|
@@ -41,7 +41,8 @@ async function executeCommand({ command, args, additionalPath, logFile = true, }
|
|
|
41
41
|
? process.env.PATH + path_1.default.delimiter + additionalPath
|
|
42
42
|
: process.env.PATH;
|
|
43
43
|
const options = {
|
|
44
|
-
env:
|
|
44
|
+
env: env ||
|
|
45
|
+
(childPathEnv ? { ...process.env, PATH: childPathEnv } : process.env),
|
|
45
46
|
detached: true,
|
|
46
47
|
};
|
|
47
48
|
let logStream = null;
|
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,62 @@
|
|
|
1
1
|
{
|
|
2
2
|
"commands": {
|
|
3
|
+
"approve-and-mint-to": {
|
|
4
|
+
"aliases": [],
|
|
5
|
+
"args": {},
|
|
6
|
+
"examples": [
|
|
7
|
+
"$ light approve-and-mint-to --mint PublicKey --to PublicKey --amount 1000"
|
|
8
|
+
],
|
|
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,
|
|
14
|
+
"hasDynamicHelp": false,
|
|
15
|
+
"multiple": false,
|
|
16
|
+
"type": "option"
|
|
17
|
+
},
|
|
18
|
+
"mint": {
|
|
19
|
+
"description": "Specify the mint address.",
|
|
20
|
+
"name": "mint",
|
|
21
|
+
"required": true,
|
|
22
|
+
"hasDynamicHelp": false,
|
|
23
|
+
"multiple": false,
|
|
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
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"hasDynamicHelp": false,
|
|
44
|
+
"hiddenAliases": [],
|
|
45
|
+
"id": "approve-and-mint-to",
|
|
46
|
+
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
47
|
+
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
48
|
+
"pluginType": "core",
|
|
49
|
+
"strict": true,
|
|
50
|
+
"summary": "Mint tokens to a compressed account via external mint authority",
|
|
51
|
+
"enableJsonFlag": false,
|
|
52
|
+
"isESM": false,
|
|
53
|
+
"relativePath": [
|
|
54
|
+
"dist",
|
|
55
|
+
"commands",
|
|
56
|
+
"approve-and-mint-to",
|
|
57
|
+
"index.js"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
3
60
|
"balance": {
|
|
4
61
|
"aliases": [],
|
|
5
62
|
"args": {},
|
|
@@ -41,21 +98,54 @@
|
|
|
41
98
|
"index.js"
|
|
42
99
|
]
|
|
43
100
|
},
|
|
44
|
-
"
|
|
101
|
+
"compress-sol": {
|
|
45
102
|
"aliases": [],
|
|
46
103
|
"args": {},
|
|
47
104
|
"examples": [
|
|
48
|
-
"$ light
|
|
105
|
+
"$ light compress-sol --to PublicKey --amount 10"
|
|
49
106
|
],
|
|
50
107
|
"flags": {
|
|
51
|
-
"
|
|
52
|
-
"description": "Specify the
|
|
53
|
-
"name": "
|
|
54
|
-
"required":
|
|
108
|
+
"to": {
|
|
109
|
+
"description": "Specify the recipient address.",
|
|
110
|
+
"name": "to",
|
|
111
|
+
"required": true,
|
|
55
112
|
"hasDynamicHelp": false,
|
|
56
113
|
"multiple": false,
|
|
57
114
|
"type": "option"
|
|
58
115
|
},
|
|
116
|
+
"amount": {
|
|
117
|
+
"description": "Amount to compress, in lamports.",
|
|
118
|
+
"name": "amount",
|
|
119
|
+
"required": true,
|
|
120
|
+
"hasDynamicHelp": false,
|
|
121
|
+
"multiple": false,
|
|
122
|
+
"type": "option"
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"hasDynamicHelp": false,
|
|
126
|
+
"hiddenAliases": [],
|
|
127
|
+
"id": "compress-sol",
|
|
128
|
+
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
129
|
+
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
130
|
+
"pluginType": "core",
|
|
131
|
+
"strict": true,
|
|
132
|
+
"summary": "Compress SOL.",
|
|
133
|
+
"enableJsonFlag": false,
|
|
134
|
+
"isESM": false,
|
|
135
|
+
"relativePath": [
|
|
136
|
+
"dist",
|
|
137
|
+
"commands",
|
|
138
|
+
"compress-sol",
|
|
139
|
+
"index.js"
|
|
140
|
+
]
|
|
141
|
+
},
|
|
142
|
+
"compress-spl": {
|
|
143
|
+
"aliases": [],
|
|
144
|
+
"args": {},
|
|
145
|
+
"examples": [
|
|
146
|
+
"$ light compress-spl --mint PublicKey --to PublicKey --amount 10"
|
|
147
|
+
],
|
|
148
|
+
"flags": {
|
|
59
149
|
"mint": {
|
|
60
150
|
"description": "Specify the mint address.",
|
|
61
151
|
"name": "mint",
|
|
@@ -65,7 +155,7 @@
|
|
|
65
155
|
"type": "option"
|
|
66
156
|
},
|
|
67
157
|
"to": {
|
|
68
|
-
"description": "Specify the recipient address.",
|
|
158
|
+
"description": "Specify the recipient address (owner of destination compressed token account).",
|
|
69
159
|
"name": "to",
|
|
70
160
|
"required": true,
|
|
71
161
|
"hasDynamicHelp": false,
|
|
@@ -73,7 +163,7 @@
|
|
|
73
163
|
"type": "option"
|
|
74
164
|
},
|
|
75
165
|
"amount": {
|
|
76
|
-
"description": "Amount to
|
|
166
|
+
"description": "Amount to compress, in tokens.",
|
|
77
167
|
"name": "amount",
|
|
78
168
|
"required": true,
|
|
79
169
|
"hasDynamicHelp": false,
|
|
@@ -83,18 +173,18 @@
|
|
|
83
173
|
},
|
|
84
174
|
"hasDynamicHelp": false,
|
|
85
175
|
"hiddenAliases": [],
|
|
86
|
-
"id": "
|
|
176
|
+
"id": "compress-spl",
|
|
87
177
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
88
178
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
89
179
|
"pluginType": "core",
|
|
90
180
|
"strict": true,
|
|
91
|
-
"summary": "
|
|
181
|
+
"summary": "Compress SPL tokens.",
|
|
92
182
|
"enableJsonFlag": false,
|
|
93
183
|
"isESM": false,
|
|
94
184
|
"relativePath": [
|
|
95
185
|
"dist",
|
|
96
186
|
"commands",
|
|
97
|
-
"
|
|
187
|
+
"compress-spl",
|
|
98
188
|
"index.js"
|
|
99
189
|
]
|
|
100
190
|
},
|
|
@@ -328,11 +418,11 @@
|
|
|
328
418
|
"index.js"
|
|
329
419
|
]
|
|
330
420
|
},
|
|
331
|
-
"
|
|
421
|
+
"decompress-spl": {
|
|
332
422
|
"aliases": [],
|
|
333
423
|
"args": {},
|
|
334
424
|
"examples": [
|
|
335
|
-
"$ light
|
|
425
|
+
"$ light decompress-spl --mint PublicKey --to PublicKey --amount 10"
|
|
336
426
|
],
|
|
337
427
|
"flags": {
|
|
338
428
|
"mint": {
|
|
@@ -344,7 +434,7 @@
|
|
|
344
434
|
"type": "option"
|
|
345
435
|
},
|
|
346
436
|
"to": {
|
|
347
|
-
"description": "Specify the recipient address (owner of destination
|
|
437
|
+
"description": "Specify the recipient address. (owner of destination token account)",
|
|
348
438
|
"name": "to",
|
|
349
439
|
"required": true,
|
|
350
440
|
"hasDynamicHelp": false,
|
|
@@ -352,7 +442,7 @@
|
|
|
352
442
|
"type": "option"
|
|
353
443
|
},
|
|
354
444
|
"amount": {
|
|
355
|
-
"description": "Amount to
|
|
445
|
+
"description": "Amount to decompress, in tokens.",
|
|
356
446
|
"name": "amount",
|
|
357
447
|
"required": true,
|
|
358
448
|
"hasDynamicHelp": false,
|
|
@@ -362,40 +452,67 @@
|
|
|
362
452
|
},
|
|
363
453
|
"hasDynamicHelp": false,
|
|
364
454
|
"hiddenAliases": [],
|
|
365
|
-
"id": "
|
|
455
|
+
"id": "decompress-spl",
|
|
366
456
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
367
457
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
368
458
|
"pluginType": "core",
|
|
369
459
|
"strict": true,
|
|
370
|
-
"summary": "
|
|
460
|
+
"summary": "Decompress into SPL tokens.",
|
|
371
461
|
"enableJsonFlag": false,
|
|
372
462
|
"isESM": false,
|
|
373
463
|
"relativePath": [
|
|
374
464
|
"dist",
|
|
375
465
|
"commands",
|
|
376
|
-
"
|
|
466
|
+
"decompress-spl",
|
|
377
467
|
"index.js"
|
|
378
468
|
]
|
|
379
469
|
},
|
|
380
|
-
"
|
|
470
|
+
"init": {
|
|
471
|
+
"aliases": [],
|
|
472
|
+
"args": {
|
|
473
|
+
"name": {
|
|
474
|
+
"description": "The name of the project",
|
|
475
|
+
"name": "name",
|
|
476
|
+
"required": true
|
|
477
|
+
}
|
|
478
|
+
},
|
|
479
|
+
"description": "Initialize a compressed account project.",
|
|
480
|
+
"flags": {},
|
|
481
|
+
"hasDynamicHelp": false,
|
|
482
|
+
"hiddenAliases": [],
|
|
483
|
+
"id": "init",
|
|
484
|
+
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
485
|
+
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
486
|
+
"pluginType": "core",
|
|
487
|
+
"strict": true,
|
|
488
|
+
"enableJsonFlag": false,
|
|
489
|
+
"isESM": false,
|
|
490
|
+
"relativePath": [
|
|
491
|
+
"dist",
|
|
492
|
+
"commands",
|
|
493
|
+
"init",
|
|
494
|
+
"index.js"
|
|
495
|
+
]
|
|
496
|
+
},
|
|
497
|
+
"merge-token-accounts": {
|
|
381
498
|
"aliases": [],
|
|
382
499
|
"args": {},
|
|
383
500
|
"examples": [
|
|
384
|
-
"$ light
|
|
501
|
+
"$ light merge-token-accounts --mint PublicKey"
|
|
385
502
|
],
|
|
386
503
|
"flags": {
|
|
387
|
-
"
|
|
388
|
-
"description": "
|
|
389
|
-
"name": "
|
|
504
|
+
"mint": {
|
|
505
|
+
"description": "Mint to merge accounts for",
|
|
506
|
+
"name": "mint",
|
|
390
507
|
"required": true,
|
|
391
508
|
"hasDynamicHelp": false,
|
|
392
509
|
"multiple": false,
|
|
393
510
|
"type": "option"
|
|
394
511
|
},
|
|
395
|
-
"
|
|
396
|
-
"description": "
|
|
397
|
-
"name": "
|
|
398
|
-
"required":
|
|
512
|
+
"fee-payer": {
|
|
513
|
+
"description": "Specify the fee-payer account. Defaults to the client keypair.",
|
|
514
|
+
"name": "fee-payer",
|
|
515
|
+
"required": false,
|
|
399
516
|
"hasDynamicHelp": false,
|
|
400
517
|
"multiple": false,
|
|
401
518
|
"type": "option"
|
|
@@ -403,28 +520,36 @@
|
|
|
403
520
|
},
|
|
404
521
|
"hasDynamicHelp": false,
|
|
405
522
|
"hiddenAliases": [],
|
|
406
|
-
"id": "
|
|
523
|
+
"id": "merge-token-accounts",
|
|
407
524
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
408
525
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
409
526
|
"pluginType": "core",
|
|
410
527
|
"strict": true,
|
|
411
|
-
"summary": "
|
|
528
|
+
"summary": "Merge all token accounts for a specific mint.",
|
|
412
529
|
"enableJsonFlag": false,
|
|
413
530
|
"isESM": false,
|
|
414
531
|
"relativePath": [
|
|
415
532
|
"dist",
|
|
416
533
|
"commands",
|
|
417
|
-
"
|
|
534
|
+
"merge-token-accounts",
|
|
418
535
|
"index.js"
|
|
419
536
|
]
|
|
420
537
|
},
|
|
421
|
-
"
|
|
538
|
+
"mint-to": {
|
|
422
539
|
"aliases": [],
|
|
423
540
|
"args": {},
|
|
424
541
|
"examples": [
|
|
425
|
-
"$ light
|
|
542
|
+
"$ light mint-to --mint PublicKey --to PublicKey --amount 1000"
|
|
426
543
|
],
|
|
427
544
|
"flags": {
|
|
545
|
+
"mint-authority": {
|
|
546
|
+
"description": "Specify the filepath of the mint authority keypair. Defaults to your local solana wallet.",
|
|
547
|
+
"name": "mint-authority",
|
|
548
|
+
"required": false,
|
|
549
|
+
"hasDynamicHelp": false,
|
|
550
|
+
"multiple": false,
|
|
551
|
+
"type": "option"
|
|
552
|
+
},
|
|
428
553
|
"mint": {
|
|
429
554
|
"description": "Specify the mint address.",
|
|
430
555
|
"name": "mint",
|
|
@@ -434,7 +559,7 @@
|
|
|
434
559
|
"type": "option"
|
|
435
560
|
},
|
|
436
561
|
"to": {
|
|
437
|
-
"description": "Specify the recipient address.
|
|
562
|
+
"description": "Specify the recipient address.",
|
|
438
563
|
"name": "to",
|
|
439
564
|
"required": true,
|
|
440
565
|
"hasDynamicHelp": false,
|
|
@@ -442,7 +567,7 @@
|
|
|
442
567
|
"type": "option"
|
|
443
568
|
},
|
|
444
569
|
"amount": {
|
|
445
|
-
"description": "Amount to
|
|
570
|
+
"description": "Amount to mint, in tokens.",
|
|
446
571
|
"name": "amount",
|
|
447
572
|
"required": true,
|
|
448
573
|
"hasDynamicHelp": false,
|
|
@@ -452,45 +577,18 @@
|
|
|
452
577
|
},
|
|
453
578
|
"hasDynamicHelp": false,
|
|
454
579
|
"hiddenAliases": [],
|
|
455
|
-
"id": "
|
|
456
|
-
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
457
|
-
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
458
|
-
"pluginType": "core",
|
|
459
|
-
"strict": true,
|
|
460
|
-
"summary": "Decompress into SPL tokens.",
|
|
461
|
-
"enableJsonFlag": false,
|
|
462
|
-
"isESM": false,
|
|
463
|
-
"relativePath": [
|
|
464
|
-
"dist",
|
|
465
|
-
"commands",
|
|
466
|
-
"decompress-spl",
|
|
467
|
-
"index.js"
|
|
468
|
-
]
|
|
469
|
-
},
|
|
470
|
-
"init": {
|
|
471
|
-
"aliases": [],
|
|
472
|
-
"args": {
|
|
473
|
-
"name": {
|
|
474
|
-
"description": "The name of the project",
|
|
475
|
-
"name": "name",
|
|
476
|
-
"required": true
|
|
477
|
-
}
|
|
478
|
-
},
|
|
479
|
-
"description": "Initialize a compressed account project.",
|
|
480
|
-
"flags": {},
|
|
481
|
-
"hasDynamicHelp": false,
|
|
482
|
-
"hiddenAliases": [],
|
|
483
|
-
"id": "init",
|
|
580
|
+
"id": "mint-to",
|
|
484
581
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
485
582
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
486
583
|
"pluginType": "core",
|
|
487
584
|
"strict": true,
|
|
585
|
+
"summary": "Mint tokens to an account.",
|
|
488
586
|
"enableJsonFlag": false,
|
|
489
587
|
"isESM": false,
|
|
490
588
|
"relativePath": [
|
|
491
589
|
"dist",
|
|
492
590
|
"commands",
|
|
493
|
-
"
|
|
591
|
+
"mint-to",
|
|
494
592
|
"index.js"
|
|
495
593
|
]
|
|
496
594
|
},
|
|
@@ -539,47 +637,6 @@
|
|
|
539
637
|
"index.js"
|
|
540
638
|
]
|
|
541
639
|
},
|
|
542
|
-
"merge-token-accounts": {
|
|
543
|
-
"aliases": [],
|
|
544
|
-
"args": {},
|
|
545
|
-
"examples": [
|
|
546
|
-
"$ light merge-token-accounts --mint PublicKey"
|
|
547
|
-
],
|
|
548
|
-
"flags": {
|
|
549
|
-
"mint": {
|
|
550
|
-
"description": "Mint to merge accounts for",
|
|
551
|
-
"name": "mint",
|
|
552
|
-
"required": true,
|
|
553
|
-
"hasDynamicHelp": false,
|
|
554
|
-
"multiple": false,
|
|
555
|
-
"type": "option"
|
|
556
|
-
},
|
|
557
|
-
"fee-payer": {
|
|
558
|
-
"description": "Specify the fee-payer account. Defaults to the client keypair.",
|
|
559
|
-
"name": "fee-payer",
|
|
560
|
-
"required": false,
|
|
561
|
-
"hasDynamicHelp": false,
|
|
562
|
-
"multiple": false,
|
|
563
|
-
"type": "option"
|
|
564
|
-
}
|
|
565
|
-
},
|
|
566
|
-
"hasDynamicHelp": false,
|
|
567
|
-
"hiddenAliases": [],
|
|
568
|
-
"id": "merge-token-accounts",
|
|
569
|
-
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
570
|
-
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
571
|
-
"pluginType": "core",
|
|
572
|
-
"strict": true,
|
|
573
|
-
"summary": "Merge all token accounts for a specific mint.",
|
|
574
|
-
"enableJsonFlag": false,
|
|
575
|
-
"isESM": false,
|
|
576
|
-
"relativePath": [
|
|
577
|
-
"dist",
|
|
578
|
-
"commands",
|
|
579
|
-
"merge-token-accounts",
|
|
580
|
-
"index.js"
|
|
581
|
-
]
|
|
582
|
-
},
|
|
583
640
|
"test-validator": {
|
|
584
641
|
"aliases": [],
|
|
585
642
|
"args": {},
|
|
@@ -716,63 +773,6 @@
|
|
|
716
773
|
"index.js"
|
|
717
774
|
]
|
|
718
775
|
},
|
|
719
|
-
"mint-to": {
|
|
720
|
-
"aliases": [],
|
|
721
|
-
"args": {},
|
|
722
|
-
"examples": [
|
|
723
|
-
"$ light mint-to --mint PublicKey --to PublicKey --amount 1000"
|
|
724
|
-
],
|
|
725
|
-
"flags": {
|
|
726
|
-
"mint-authority": {
|
|
727
|
-
"description": "Specify the filepath of the mint authority keypair. Defaults to your local solana wallet.",
|
|
728
|
-
"name": "mint-authority",
|
|
729
|
-
"required": false,
|
|
730
|
-
"hasDynamicHelp": false,
|
|
731
|
-
"multiple": false,
|
|
732
|
-
"type": "option"
|
|
733
|
-
},
|
|
734
|
-
"mint": {
|
|
735
|
-
"description": "Specify the mint address.",
|
|
736
|
-
"name": "mint",
|
|
737
|
-
"required": true,
|
|
738
|
-
"hasDynamicHelp": false,
|
|
739
|
-
"multiple": false,
|
|
740
|
-
"type": "option"
|
|
741
|
-
},
|
|
742
|
-
"to": {
|
|
743
|
-
"description": "Specify the recipient address.",
|
|
744
|
-
"name": "to",
|
|
745
|
-
"required": true,
|
|
746
|
-
"hasDynamicHelp": false,
|
|
747
|
-
"multiple": false,
|
|
748
|
-
"type": "option"
|
|
749
|
-
},
|
|
750
|
-
"amount": {
|
|
751
|
-
"description": "Amount to mint, in tokens.",
|
|
752
|
-
"name": "amount",
|
|
753
|
-
"required": true,
|
|
754
|
-
"hasDynamicHelp": false,
|
|
755
|
-
"multiple": false,
|
|
756
|
-
"type": "option"
|
|
757
|
-
}
|
|
758
|
-
},
|
|
759
|
-
"hasDynamicHelp": false,
|
|
760
|
-
"hiddenAliases": [],
|
|
761
|
-
"id": "mint-to",
|
|
762
|
-
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
763
|
-
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
764
|
-
"pluginType": "core",
|
|
765
|
-
"strict": true,
|
|
766
|
-
"summary": "Mint tokens to an account.",
|
|
767
|
-
"enableJsonFlag": false,
|
|
768
|
-
"isESM": false,
|
|
769
|
-
"relativePath": [
|
|
770
|
-
"dist",
|
|
771
|
-
"commands",
|
|
772
|
-
"mint-to",
|
|
773
|
-
"index.js"
|
|
774
|
-
]
|
|
775
|
-
},
|
|
776
776
|
"transfer": {
|
|
777
777
|
"aliases": [],
|
|
778
778
|
"args": {},
|
|
@@ -831,5 +831,5 @@
|
|
|
831
831
|
]
|
|
832
832
|
}
|
|
833
833
|
},
|
|
834
|
-
"version": "0.15.
|
|
834
|
+
"version": "0.15.2"
|
|
835
835
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightprotocol/zk-compression-cli",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.2",
|
|
4
4
|
"description": "ZK Compression: Secure Scaling on Solana",
|
|
5
5
|
"maintainers": [
|
|
6
6
|
{
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"tweetnacl": "^1.0.3",
|
|
45
45
|
"wait-on": "^7.2.0",
|
|
46
46
|
"which": "^4.0.0",
|
|
47
|
-
"@lightprotocol/
|
|
47
|
+
"@lightprotocol/hasher.rs": "0.2.0",
|
|
48
48
|
"@lightprotocol/stateless.js": "0.13.0",
|
|
49
|
-
"@lightprotocol/
|
|
49
|
+
"@lightprotocol/compressed-token": "0.13.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@oclif/test": "2.3.9",
|