@lightprotocol/zk-compression-cli 0.24.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/README.md +1 -1
- package/accounts/address_merkle_tree_amt1Ayt45jfbdw5YSo7iz6WZxUmnZsQTYXy82hVwyC2.json +1 -1
- package/accounts/batch_address_merkle_tree_EzKE84aVTkCUhDHLELqyJaq1Y7UVVmqxXqZjVHwHY3rK.json +1 -0
- package/accounts/batch_state_merkle_tree_HLKs5NJ8FXkJg8BrzJt56adFYYuwg5etzDtBbQYTsixu.json +1 -0
- package/accounts/batched_output_queue_6L7SzhYB3anwEQ9cphpJ1U7Scwj57bx2xueReg7R9cKU.json +1 -0
- package/accounts/cpi_context_2_cpi2cdhkH5roePvcudTgUL8ppEBfTay1desGh8G8QxK.json +1 -0
- package/accounts/cpi_context_cpi2cdhkH5roePvcudTgUL8ppEBfTay1desGh8G8QxK.json +1 -0
- package/accounts/group_pda_32tgQWfaASE7SfTQvMaSJDrqe728tJQ2SGzxtDDrpDwS.json +1 -0
- package/accounts/merkle_tree_pubkey_2_smt2rJAFdyJJupwMKAqTNAJwvjhmiZ4JYGZmbVRw1Ho.json +1 -0
- package/accounts/merkle_tree_pubkey_smt2rJAFdyJJupwMKAqTNAJwvjhmiZ4JYGZmbVRw1Ho.json +1 -0
- package/accounts/nullifier_queue_pubkey_2_nfq2hgS7NYemXsFaFUCe3EMXSDSfnZnAe27jC6aPP1X.json +1 -0
- package/accounts/nullifier_queue_pubkey_nfq2hgS7NYemXsFaFUCe3EMXSDSfnZnAe27jC6aPP1X.json +1 -0
- package/accounts/registered_program_pda_35hkDgaAKwMCaxRz2ocSZ6NaUrtKkyNqU6c4RV3tYJRh.json +1 -1
- package/accounts/registered_registry_program_pda_DumMsyvkaGJG4QnQ1BhTgvoRMXsgGxfpKDUCr22Xqu4w.json +1 -1
- package/bin/account_compression.so +0 -0
- package/bin/light_compressed_token.so +0 -0
- package/bin/light_registry.so +0 -0
- package/bin/light_system_program_pinocchio.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/bin/proving-keys/combined_32_40_1_1.key +0 -0
- package/bin/proving-keys/{combined_26_3_2.key → combined_32_40_1_2.key} +0 -0
- package/bin/proving-keys/{combined_26_2_2.key → combined_32_40_2_1.key} +0 -0
- package/bin/proving-keys/inclusion_32_1.key +0 -0
- package/bin/proving-keys/inclusion_32_2.key +0 -0
- package/bin/proving-keys/{combined_26_3_1.key → inclusion_32_3.key} +0 -0
- package/bin/proving-keys/{combined_26_4_1.key → inclusion_32_4.key} +0 -0
- package/bin/proving-keys/{inclusion_26_2.key → mainnet_inclusion_26_2.key} +0 -0
- package/bin/proving-keys/non-inclusion_40_1.key +0 -0
- package/bin/proving-keys/non-inclusion_40_2.key +0 -0
- package/dist/commands/balance/index.d.ts +0 -1
- package/dist/commands/balance/index.js +10 -17
- package/dist/commands/compress-spl/index.js +3 -1
- package/dist/commands/decompress-spl/index.js +3 -1
- package/dist/commands/init/index.js +33 -3
- package/dist/commands/start-prover/index.d.ts +2 -0
- package/dist/commands/start-prover/index.js +38 -6
- package/dist/commands/test-validator/index.d.ts +2 -2
- package/dist/commands/test-validator/index.js +36 -31
- package/dist/commands/token-balance/index.d.ts +12 -0
- package/dist/commands/token-balance/index.js +55 -0
- package/dist/utils/constants.d.ts +20 -12
- package/dist/utils/constants.js +24 -13
- package/dist/utils/initTestEnv.d.ts +9 -1
- package/dist/utils/initTestEnv.js +38 -28
- package/dist/utils/process.d.ts +4 -0
- package/dist/utils/process.js +41 -2
- package/dist/utils/processPhotonIndexer.d.ts +1 -1
- package/dist/utils/processPhotonIndexer.js +33 -24
- package/dist/utils/processProverServer.d.ts +3 -1
- package/dist/utils/processProverServer.js +83 -2
- package/oclif.manifest.json +142 -93
- package/package.json +29 -51
- package/bin/proving-keys/CHECKSUM +0 -127
- package/bin/proving-keys/combined_26_1_1.vkey +0 -1
- package/bin/proving-keys/combined_26_1_2.vkey +0 -1
- package/bin/proving-keys/combined_26_2_1.vkey +0 -1
- package/bin/proving-keys/combined_26_2_2.vkey +0 -1
- package/bin/proving-keys/combined_26_3_1.vkey +0 -1
- package/bin/proving-keys/combined_26_3_2.vkey +0 -1
- package/bin/proving-keys/combined_26_4_1.vkey +0 -1
- package/bin/proving-keys/combined_26_4_2.key +0 -0
- package/bin/proving-keys/combined_26_4_2.vkey +0 -1
- package/bin/proving-keys/inclusion_26_1.vkey +0 -1
- package/bin/proving-keys/inclusion_26_2.vkey +0 -1
- package/bin/proving-keys/inclusion_26_3.vkey +0 -1
- package/bin/proving-keys/inclusion_26_4.vkey +0 -1
- package/bin/proving-keys/inclusion_26_8.key +0 -0
- package/bin/proving-keys/inclusion_26_8.vkey +0 -1
- package/bin/proving-keys/non-inclusion_26_1.vkey +0 -1
- package/bin/proving-keys/non-inclusion_26_2.vkey +0 -1
- /package/bin/proving-keys/{inclusion_26_1.key → mainnet_inclusion_26_1.key} +0 -0
- /package/bin/proving-keys/{inclusion_26_3.key → mainnet_inclusion_26_3.key} +0 -0
- /package/bin/proving-keys/{inclusion_26_4.key → mainnet_inclusion_26_4.key} +0 -0
package/oclif.manifest.json
CHANGED
|
@@ -61,24 +61,16 @@
|
|
|
61
61
|
"aliases": [],
|
|
62
62
|
"args": {},
|
|
63
63
|
"examples": [
|
|
64
|
-
"$ light balance --
|
|
64
|
+
"$ light balance --owner=<ADDRESS>"
|
|
65
65
|
],
|
|
66
66
|
"flags": {
|
|
67
67
|
"owner": {
|
|
68
|
-
"description": "Address of the
|
|
68
|
+
"description": "Address of the owner.",
|
|
69
69
|
"name": "owner",
|
|
70
70
|
"required": true,
|
|
71
71
|
"hasDynamicHelp": false,
|
|
72
72
|
"multiple": false,
|
|
73
73
|
"type": "option"
|
|
74
|
-
},
|
|
75
|
-
"mint": {
|
|
76
|
-
"description": "Mint address of the compressed token account.",
|
|
77
|
-
"name": "mint",
|
|
78
|
-
"required": true,
|
|
79
|
-
"hasDynamicHelp": false,
|
|
80
|
-
"multiple": false,
|
|
81
|
-
"type": "option"
|
|
82
74
|
}
|
|
83
75
|
},
|
|
84
76
|
"hasDynamicHelp": false,
|
|
@@ -88,7 +80,7 @@
|
|
|
88
80
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
89
81
|
"pluginType": "core",
|
|
90
82
|
"strict": true,
|
|
91
|
-
"summary": "Get balance",
|
|
83
|
+
"summary": "Get compressed SOL balance",
|
|
92
84
|
"enableJsonFlag": false,
|
|
93
85
|
"isESM": false,
|
|
94
86
|
"relativePath": [
|
|
@@ -98,93 +90,109 @@
|
|
|
98
90
|
"index.js"
|
|
99
91
|
]
|
|
100
92
|
},
|
|
101
|
-
"
|
|
93
|
+
"config:config": {
|
|
102
94
|
"aliases": [],
|
|
103
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",
|
|
104
97
|
"examples": [
|
|
105
|
-
"$ light
|
|
98
|
+
"$ light config --solanaRpcUrl https://solana-api.example.com"
|
|
106
99
|
],
|
|
107
100
|
"flags": {
|
|
108
|
-
"
|
|
109
|
-
"description": "
|
|
110
|
-
"name": "
|
|
111
|
-
"required": true,
|
|
101
|
+
"solanaRpcUrl": {
|
|
102
|
+
"description": "Solana RPC url",
|
|
103
|
+
"name": "solanaRpcUrl",
|
|
112
104
|
"hasDynamicHelp": false,
|
|
113
105
|
"multiple": false,
|
|
114
106
|
"type": "option"
|
|
115
107
|
},
|
|
116
|
-
"
|
|
117
|
-
"description": "
|
|
118
|
-
"name": "
|
|
119
|
-
"required": true,
|
|
108
|
+
"indexerUrl": {
|
|
109
|
+
"description": "Indexer url",
|
|
110
|
+
"name": "indexerUrl",
|
|
120
111
|
"hasDynamicHelp": false,
|
|
121
112
|
"multiple": false,
|
|
122
113
|
"type": "option"
|
|
114
|
+
},
|
|
115
|
+
"proverUrl": {
|
|
116
|
+
"description": "Prover url",
|
|
117
|
+
"name": "proverUrl",
|
|
118
|
+
"hasDynamicHelp": false,
|
|
119
|
+
"multiple": false,
|
|
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 SOL.",
|
|
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": "
|
|
160
|
-
"required": true,
|
|
161
|
+
"indexerUrl": {
|
|
162
|
+
"description": "Indexer url",
|
|
163
|
+
"name": "indexerUrl",
|
|
161
164
|
"hasDynamicHelp": false,
|
|
162
165
|
"multiple": false,
|
|
163
166
|
"type": "option"
|
|
164
167
|
},
|
|
165
|
-
"
|
|
166
|
-
"description": "
|
|
167
|
-
"name": "
|
|
168
|
-
"required": true,
|
|
168
|
+
"proverUrl": {
|
|
169
|
+
"description": "Prover url",
|
|
170
|
+
"name": "proverUrl",
|
|
169
171
|
"hasDynamicHelp": false,
|
|
170
172
|
"multiple": false,
|
|
171
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"
|
|
172
181
|
}
|
|
173
182
|
},
|
|
174
183
|
"hasDynamicHelp": false,
|
|
175
184
|
"hiddenAliases": [],
|
|
176
|
-
"id": "
|
|
185
|
+
"id": "config",
|
|
177
186
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
178
187
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
179
188
|
"pluginType": "core",
|
|
180
189
|
"strict": true,
|
|
181
|
-
"summary": "Compress SPL tokens.",
|
|
182
190
|
"enableJsonFlag": false,
|
|
183
191
|
"isESM": false,
|
|
184
192
|
"relativePath": [
|
|
185
193
|
"dist",
|
|
186
194
|
"commands",
|
|
187
|
-
"
|
|
195
|
+
"config",
|
|
188
196
|
"index.js"
|
|
189
197
|
]
|
|
190
198
|
},
|
|
@@ -271,109 +279,93 @@
|
|
|
271
279
|
"index.js"
|
|
272
280
|
]
|
|
273
281
|
},
|
|
274
|
-
"
|
|
282
|
+
"compress-sol": {
|
|
275
283
|
"aliases": [],
|
|
276
284
|
"args": {},
|
|
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",
|
|
278
285
|
"examples": [
|
|
279
|
-
"$ light
|
|
286
|
+
"$ light compress-sol --to PublicKey --amount 10"
|
|
280
287
|
],
|
|
281
288
|
"flags": {
|
|
282
|
-
"
|
|
283
|
-
"description": "
|
|
284
|
-
"name": "
|
|
285
|
-
"
|
|
286
|
-
"multiple": false,
|
|
287
|
-
"type": "option"
|
|
288
|
-
},
|
|
289
|
-
"indexerUrl": {
|
|
290
|
-
"description": "Indexer url",
|
|
291
|
-
"name": "indexerUrl",
|
|
289
|
+
"to": {
|
|
290
|
+
"description": "Specify the recipient address.",
|
|
291
|
+
"name": "to",
|
|
292
|
+
"required": true,
|
|
292
293
|
"hasDynamicHelp": false,
|
|
293
294
|
"multiple": false,
|
|
294
295
|
"type": "option"
|
|
295
296
|
},
|
|
296
|
-
"
|
|
297
|
-
"description": "
|
|
298
|
-
"name": "
|
|
297
|
+
"amount": {
|
|
298
|
+
"description": "Amount to compress, in lamports.",
|
|
299
|
+
"name": "amount",
|
|
300
|
+
"required": true,
|
|
299
301
|
"hasDynamicHelp": false,
|
|
300
302
|
"multiple": false,
|
|
301
303
|
"type": "option"
|
|
302
|
-
},
|
|
303
|
-
"get": {
|
|
304
|
-
"description": "Gets the current config values",
|
|
305
|
-
"name": "get",
|
|
306
|
-
"required": false,
|
|
307
|
-
"allowNo": false,
|
|
308
|
-
"type": "boolean"
|
|
309
304
|
}
|
|
310
305
|
},
|
|
311
306
|
"hasDynamicHelp": false,
|
|
312
307
|
"hiddenAliases": [],
|
|
313
|
-
"id": "
|
|
308
|
+
"id": "compress-sol",
|
|
314
309
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
315
310
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
316
311
|
"pluginType": "core",
|
|
317
312
|
"strict": true,
|
|
313
|
+
"summary": "Compress SOL.",
|
|
318
314
|
"enableJsonFlag": false,
|
|
319
315
|
"isESM": false,
|
|
320
316
|
"relativePath": [
|
|
321
317
|
"dist",
|
|
322
318
|
"commands",
|
|
323
|
-
"
|
|
319
|
+
"compress-sol",
|
|
324
320
|
"index.js"
|
|
325
321
|
]
|
|
326
322
|
},
|
|
327
|
-
"
|
|
323
|
+
"compress-spl": {
|
|
328
324
|
"aliases": [],
|
|
329
325
|
"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",
|
|
331
326
|
"examples": [
|
|
332
|
-
"$ light
|
|
327
|
+
"$ light compress-spl --mint PublicKey --to PublicKey --amount 10"
|
|
333
328
|
],
|
|
334
329
|
"flags": {
|
|
335
|
-
"
|
|
336
|
-
"description": "
|
|
337
|
-
"name": "
|
|
330
|
+
"mint": {
|
|
331
|
+
"description": "Specify the mint address.",
|
|
332
|
+
"name": "mint",
|
|
333
|
+
"required": true,
|
|
338
334
|
"hasDynamicHelp": false,
|
|
339
335
|
"multiple": false,
|
|
340
336
|
"type": "option"
|
|
341
337
|
},
|
|
342
|
-
"
|
|
343
|
-
"description": "
|
|
344
|
-
"name": "
|
|
338
|
+
"to": {
|
|
339
|
+
"description": "Specify the recipient address (owner of destination compressed token account).",
|
|
340
|
+
"name": "to",
|
|
341
|
+
"required": true,
|
|
345
342
|
"hasDynamicHelp": false,
|
|
346
343
|
"multiple": false,
|
|
347
344
|
"type": "option"
|
|
348
345
|
},
|
|
349
|
-
"
|
|
350
|
-
"description": "
|
|
351
|
-
"name": "
|
|
346
|
+
"amount": {
|
|
347
|
+
"description": "Amount to compress, in tokens.",
|
|
348
|
+
"name": "amount",
|
|
349
|
+
"required": true,
|
|
352
350
|
"hasDynamicHelp": false,
|
|
353
351
|
"multiple": false,
|
|
354
352
|
"type": "option"
|
|
355
|
-
},
|
|
356
|
-
"get": {
|
|
357
|
-
"description": "Gets the current config values",
|
|
358
|
-
"name": "get",
|
|
359
|
-
"required": false,
|
|
360
|
-
"allowNo": false,
|
|
361
|
-
"type": "boolean"
|
|
362
353
|
}
|
|
363
354
|
},
|
|
364
355
|
"hasDynamicHelp": false,
|
|
365
356
|
"hiddenAliases": [],
|
|
366
|
-
"id": "
|
|
357
|
+
"id": "compress-spl",
|
|
367
358
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
368
359
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
369
360
|
"pluginType": "core",
|
|
370
361
|
"strict": true,
|
|
362
|
+
"summary": "Compress SPL tokens.",
|
|
371
363
|
"enableJsonFlag": false,
|
|
372
364
|
"isESM": false,
|
|
373
365
|
"relativePath": [
|
|
374
366
|
"dist",
|
|
375
367
|
"commands",
|
|
376
|
-
"
|
|
368
|
+
"compress-spl",
|
|
377
369
|
"index.js"
|
|
378
370
|
]
|
|
379
371
|
},
|
|
@@ -607,12 +599,13 @@
|
|
|
607
599
|
"type": "option"
|
|
608
600
|
},
|
|
609
601
|
"run-mode": {
|
|
610
|
-
"description": "Specify the running mode (forester, forester-test, rpc, full
|
|
602
|
+
"description": "Specify the running mode (local-rpc, forester, forester-test, rpc, or full). Default: local-rpc",
|
|
611
603
|
"name": "run-mode",
|
|
612
604
|
"required": false,
|
|
613
605
|
"hasDynamicHelp": false,
|
|
614
606
|
"multiple": false,
|
|
615
607
|
"options": [
|
|
608
|
+
"local-rpc",
|
|
616
609
|
"rpc",
|
|
617
610
|
"forester",
|
|
618
611
|
"forester-test",
|
|
@@ -632,15 +625,28 @@
|
|
|
632
625
|
"non-inclusion",
|
|
633
626
|
"combined",
|
|
634
627
|
"append-with-proofs",
|
|
635
|
-
"append-with-subtrees",
|
|
636
628
|
"update",
|
|
637
629
|
"address-append",
|
|
638
630
|
"append-with-proofs-test",
|
|
639
|
-
"append-with-subtrees-test",
|
|
640
631
|
"update-test",
|
|
641
632
|
"address-append-test"
|
|
642
633
|
],
|
|
643
634
|
"type": "option"
|
|
635
|
+
},
|
|
636
|
+
"force": {
|
|
637
|
+
"description": "Force restart the prover even if one is already running with the same flags.",
|
|
638
|
+
"name": "force",
|
|
639
|
+
"required": false,
|
|
640
|
+
"allowNo": false,
|
|
641
|
+
"type": "boolean"
|
|
642
|
+
},
|
|
643
|
+
"redisUrl": {
|
|
644
|
+
"description": "Redis URL to use for the prover (e.g. redis://localhost:6379)",
|
|
645
|
+
"name": "redisUrl",
|
|
646
|
+
"required": false,
|
|
647
|
+
"hasDynamicHelp": false,
|
|
648
|
+
"multiple": false,
|
|
649
|
+
"type": "option"
|
|
644
650
|
}
|
|
645
651
|
},
|
|
646
652
|
"hasDynamicHelp": false,
|
|
@@ -667,7 +673,8 @@
|
|
|
667
673
|
"$ light test-validator",
|
|
668
674
|
"$ light test-validator --skip-indexer",
|
|
669
675
|
"$ light test-validator --geyser-config ./config.json",
|
|
670
|
-
"$ light test-validator --validator-args \"--limit-ledger-size 50000000\""
|
|
676
|
+
"$ light test-validator --validator-args \"--limit-ledger-size 50000000\"",
|
|
677
|
+
"$ light test-validator --sbf-program <address> <path/program>"
|
|
671
678
|
],
|
|
672
679
|
"flags": {
|
|
673
680
|
"skip-indexer": {
|
|
@@ -742,7 +749,7 @@
|
|
|
742
749
|
"type": "option"
|
|
743
750
|
},
|
|
744
751
|
"prover-run-mode": {
|
|
745
|
-
"description": "Specify the running mode for the prover (forester, forester-test, rpc, or full)",
|
|
752
|
+
"description": "Specify the running mode for the prover (local-rpc, forester, forester-test, rpc, or full). Default: local-rpc",
|
|
746
753
|
"exclusive": [
|
|
747
754
|
"skip-prover"
|
|
748
755
|
],
|
|
@@ -751,6 +758,7 @@
|
|
|
751
758
|
"hasDynamicHelp": false,
|
|
752
759
|
"multiple": false,
|
|
753
760
|
"options": [
|
|
761
|
+
"local-rpc",
|
|
754
762
|
"rpc",
|
|
755
763
|
"forester",
|
|
756
764
|
"forester-test",
|
|
@@ -849,6 +857,47 @@
|
|
|
849
857
|
"index.js"
|
|
850
858
|
]
|
|
851
859
|
},
|
|
860
|
+
"token-balance": {
|
|
861
|
+
"aliases": [],
|
|
862
|
+
"args": {},
|
|
863
|
+
"examples": [
|
|
864
|
+
"$ light token-balance --mint=<ADDRESS> --owner=<ADDRESS>"
|
|
865
|
+
],
|
|
866
|
+
"flags": {
|
|
867
|
+
"owner": {
|
|
868
|
+
"description": "Address of the compressed token owner.",
|
|
869
|
+
"name": "owner",
|
|
870
|
+
"required": true,
|
|
871
|
+
"hasDynamicHelp": false,
|
|
872
|
+
"multiple": false,
|
|
873
|
+
"type": "option"
|
|
874
|
+
},
|
|
875
|
+
"mint": {
|
|
876
|
+
"description": "Mint address of the compressed token account.",
|
|
877
|
+
"name": "mint",
|
|
878
|
+
"required": true,
|
|
879
|
+
"hasDynamicHelp": false,
|
|
880
|
+
"multiple": false,
|
|
881
|
+
"type": "option"
|
|
882
|
+
}
|
|
883
|
+
},
|
|
884
|
+
"hasDynamicHelp": false,
|
|
885
|
+
"hiddenAliases": [],
|
|
886
|
+
"id": "token-balance",
|
|
887
|
+
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
888
|
+
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
889
|
+
"pluginType": "core",
|
|
890
|
+
"strict": true,
|
|
891
|
+
"summary": "Get balance",
|
|
892
|
+
"enableJsonFlag": false,
|
|
893
|
+
"isESM": false,
|
|
894
|
+
"relativePath": [
|
|
895
|
+
"dist",
|
|
896
|
+
"commands",
|
|
897
|
+
"token-balance",
|
|
898
|
+
"index.js"
|
|
899
|
+
]
|
|
900
|
+
},
|
|
852
901
|
"transfer": {
|
|
853
902
|
"aliases": [],
|
|
854
903
|
"args": {},
|
|
@@ -907,5 +956,5 @@
|
|
|
907
956
|
]
|
|
908
957
|
}
|
|
909
958
|
},
|
|
910
|
-
"version": "0.
|
|
959
|
+
"version": "0.26.0"
|
|
911
960
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightprotocol/zk-compression-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.0",
|
|
4
4
|
"description": "ZK Compression: Secure Scaling on Solana",
|
|
5
5
|
"maintainers": [
|
|
6
6
|
{
|
|
@@ -17,64 +17,41 @@
|
|
|
17
17
|
"/accounts",
|
|
18
18
|
"/bin",
|
|
19
19
|
"!bin/cargo-generate",
|
|
20
|
+
"!/bin/**/*.vkey",
|
|
21
|
+
"/bin/proving-keys/combined_26_1_1.key",
|
|
22
|
+
"/bin/proving-keys/combined_26_1_2.key",
|
|
23
|
+
"/bin/proving-keys/combined_26_2_1.key",
|
|
24
|
+
"/bin/proving-keys/combined_32_40_1_1.key",
|
|
25
|
+
"/bin/proving-keys/combined_32_40_1_2.key",
|
|
26
|
+
"/bin/proving-keys/combined_32_40_2_1.key",
|
|
27
|
+
"/bin/proving-keys/inclusion_32_1.key",
|
|
28
|
+
"/bin/proving-keys/inclusion_32_2.key",
|
|
29
|
+
"/bin/proving-keys/inclusion_32_3.key",
|
|
30
|
+
"/bin/proving-keys/inclusion_32_4.key",
|
|
31
|
+
"/bin/proving-keys/mainnet_inclusion_26_1.key",
|
|
32
|
+
"/bin/proving-keys/mainnet_inclusion_26_2.key",
|
|
33
|
+
"/bin/proving-keys/mainnet_inclusion_26_3.key",
|
|
34
|
+
"/bin/proving-keys/mainnet_inclusion_26_4.key",
|
|
35
|
+
"/bin/proving-keys/non-inclusion_26_1.key",
|
|
36
|
+
"/bin/proving-keys/non-inclusion_26_2.key",
|
|
37
|
+
"/bin/proving-keys/non-inclusion_40_1.key",
|
|
38
|
+
"/bin/proving-keys/non-inclusion_40_2.key",
|
|
20
39
|
"/dist",
|
|
21
40
|
"/test_bin",
|
|
22
41
|
"./config.json",
|
|
23
42
|
"/npm-shrinkwrap.json",
|
|
24
|
-
"/oclif.manifest.json"
|
|
25
|
-
"bin/proving-keys/combined_26_1_1.key",
|
|
26
|
-
"bin/proving-keys/combined_26_1_1.vkey",
|
|
27
|
-
"bin/proving-keys/combined_26_1_10.key",
|
|
28
|
-
"bin/proving-keys/combined_26_1_10.vkey",
|
|
29
|
-
"bin/proving-keys/combined_26_10_1.key",
|
|
30
|
-
"bin/proving-keys/combined_26_10_1.vkey",
|
|
31
|
-
"bin/proving-keys/combined_26_10_10.key",
|
|
32
|
-
"bin/proving-keys/combined_26_10_10.vkey",
|
|
33
|
-
"bin/proving-keys/inclusion_26_1.key",
|
|
34
|
-
"bin/proving-keys/inclusion_26_1.vkey",
|
|
35
|
-
"bin/proving-keys/inclusion_26_10.key",
|
|
36
|
-
"bin/proving-keys/inclusion_26_10.vkey",
|
|
37
|
-
"bin/proving-keys/non-inclusion_26_1.key",
|
|
38
|
-
"bin/proving-keys/non-inclusion_26_1.vkey",
|
|
39
|
-
"bin/proving-keys/non-inclusion_26_10.key",
|
|
40
|
-
"bin/proving-keys/non-inclusion_26_10.vkey",
|
|
41
|
-
"!bin/proving-keys/update_26_10.key",
|
|
42
|
-
"!bin/proving-keys/update_26_10.vkey",
|
|
43
|
-
"!bin/proving-keys/address-append_40_1.key",
|
|
44
|
-
"!bin/proving-keys/address-append_40_1.vkey",
|
|
45
|
-
"!bin/proving-keys/address-append_40_10.key",
|
|
46
|
-
"!bin/proving-keys/address-append_40_10.vkey",
|
|
47
|
-
"!bin/proving-keys/append-with-proofs_26_10.key",
|
|
48
|
-
"!bin/proving-keys/append-with-proofs_26_10.vkey",
|
|
49
|
-
"!bin/proving-keys/append-with-subtrees_26_10.key",
|
|
50
|
-
"!bin/proving-keys/append-with-subtrees_26_10.vkey",
|
|
51
|
-
"!bin/proving-keys/non-inclusion_40_1.vkey",
|
|
52
|
-
"!bin/proving-keys/non-inclusion_40_2.vkey",
|
|
53
|
-
"!bin/proving-keys/non-inclusion_40_3.vkey",
|
|
54
|
-
"!bin/proving-keys/non-inclusion_40_4.vkey",
|
|
55
|
-
"!bin/proving-keys/non-inclusion_40_8.vkey",
|
|
56
|
-
"!bin/proving-keys/mainnet_inclusion_26_1.key",
|
|
57
|
-
"!bin/proving-keys/mainnet_inclusion_26_1.vkey",
|
|
58
|
-
"!bin/proving-keys/mainnet_inclusion_26_2.vkey",
|
|
59
|
-
"!bin/proving-keys/mainnet_inclusion_26_3.vkey",
|
|
60
|
-
"!bin/proving-keys/mainnet_inclusion_26_4.vkey",
|
|
61
|
-
"!bin/proving-keys/mainnet_inclusion_26_8.vkey",
|
|
62
|
-
"!bin/proving-keys/inclusion_32_1.key",
|
|
63
|
-
"!bin/proving-keys/inclusion_32_1.vkey",
|
|
64
|
-
"!bin/proving-keys/inclusion_32_2.vkey",
|
|
65
|
-
"!bin/proving-keys/inclusion_32_3.vkey",
|
|
66
|
-
"!bin/proving-keys/inclusion_32_4.vkey",
|
|
67
|
-
"!bin/proving-keys/inclusion_32_8.vkey"
|
|
43
|
+
"/oclif.manifest.json"
|
|
68
44
|
],
|
|
69
45
|
"dependencies": {
|
|
70
46
|
"@coral-xyz/anchor": "0.29.0",
|
|
47
|
+
"@lightprotocol/hasher.rs": "0.2.1",
|
|
71
48
|
"@oclif/core": "^3.26.2",
|
|
72
49
|
"@oclif/plugin-autocomplete": "^3.0.13",
|
|
73
50
|
"@oclif/plugin-help": "^6.0.20",
|
|
74
51
|
"@oclif/plugin-not-found": "^3.1.2",
|
|
75
52
|
"@oclif/plugin-plugins": "^5.0.7",
|
|
76
53
|
"@solana-developers/helpers": "^1.5.1",
|
|
77
|
-
"@solana/web3.js": "1.
|
|
54
|
+
"@solana/web3.js": "1.98.0",
|
|
78
55
|
"axios": "^1.6.8",
|
|
79
56
|
"case-anything": "^2.1.13",
|
|
80
57
|
"cli-progress": "^3.12.0",
|
|
@@ -88,9 +65,8 @@
|
|
|
88
65
|
"tweetnacl": "^1.0.3",
|
|
89
66
|
"wait-on": "^7.2.0",
|
|
90
67
|
"which": "^4.0.0",
|
|
91
|
-
"@lightprotocol/
|
|
92
|
-
"@lightprotocol/
|
|
93
|
-
"@lightprotocol/compressed-token": "0.16.0"
|
|
68
|
+
"@lightprotocol/compressed-token": "0.22.0",
|
|
69
|
+
"@lightprotocol/stateless.js": "0.22.0"
|
|
94
70
|
},
|
|
95
71
|
"devDependencies": {
|
|
96
72
|
"@oclif/test": "2.3.9",
|
|
@@ -171,14 +147,16 @@
|
|
|
171
147
|
"test-approve-and-mint-to": "mocha ./test/commands/approve-and-mint-to/index.test.ts -t 10000000 --exit",
|
|
172
148
|
"test-mint-to": "mocha ./test/commands/mint-to/index.test.ts -t 10000000 --exit",
|
|
173
149
|
"test-transfer": "mocha ./test/commands/transfer/index.test.ts -t 10000000 --exit",
|
|
174
|
-
"test-balance": "mocha
|
|
150
|
+
"test-token-balance": "mocha test/commands/token-balance/index.test.ts -t 10000000 --exit",
|
|
175
151
|
"test-compress-sol": "mocha ./test/commands/compress-sol/index.test.ts -t 10000000 --exit",
|
|
152
|
+
"test-balance": "mocha ./test/commands/balance/index.test.ts -t 10000000 --exit",
|
|
176
153
|
"test-decompress-sol": "mocha ./test/commands/decompress-sol/index.test.ts -t 10000000 --exit",
|
|
177
154
|
"test-compress-spl": "mocha ./test/commands/compress-spl/index.test.ts -t 10000000 --exit",
|
|
178
155
|
"test-decompress-spl": "mocha ./test/commands/decompress-spl/index.test.ts -t 10000000 --exit",
|
|
156
|
+
"test-test-validator": "mocha ./test/commands/test-validator/index.test.ts -t 10000000 --exit",
|
|
179
157
|
"kill": "killall solana-test-validator || true && killall solana-test-val || true && sleep 1",
|
|
180
158
|
"test-cli": "pnpm test-config && pnpm kill",
|
|
181
|
-
"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",
|
|
159
|
+
"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-token-balance && pnpm test-compress-sol && pnpm test-balance && pnpm test-decompress-sol && pnpm test-approve-and-mint-to && pnpm test-test-validator",
|
|
182
160
|
"install-local": "pnpm build && pnpm global remove @lightprotocol/zk-compression-cli || true && pnpm global add $PWD",
|
|
183
161
|
"version": "oclif readme && git add README.md"
|
|
184
162
|
}
|