@lightprotocol/zk-compression-cli 0.5.0 → 0.6.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/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.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/utils/constants.d.ts +1 -1
- package/dist/utils/constants.js +1 -1
- package/oclif.manifest.json +111 -111
- package/package.json +4 -4
|
Binary file
|
|
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
|
|
@@ -14,6 +14,6 @@ export declare const SOLANA_VALIDATOR_PROCESS_NAME = "solana-test-validator";
|
|
|
14
14
|
export declare const LIGHT_PROVER_PROCESS_NAME = "light-prover";
|
|
15
15
|
export declare const INDEXER_PROCESS_NAME = "photon";
|
|
16
16
|
export declare const FORESTER_PROCESS_NAME = "forester";
|
|
17
|
-
export declare const PHOTON_VERSION = "0.
|
|
17
|
+
export declare const PHOTON_VERSION = "0.37.0";
|
|
18
18
|
export declare const LIGHT_PROTOCOL_PROGRAMS_DIR_ENV = "LIGHT_PROTOCOL_PROGRAMS_DIR";
|
|
19
19
|
export declare const BASE_PATH = "../../bin/";
|
package/dist/utils/constants.js
CHANGED
|
@@ -19,6 +19,6 @@ exports.SOLANA_VALIDATOR_PROCESS_NAME = "solana-test-validator";
|
|
|
19
19
|
exports.LIGHT_PROVER_PROCESS_NAME = "light-prover";
|
|
20
20
|
exports.INDEXER_PROCESS_NAME = "photon";
|
|
21
21
|
exports.FORESTER_PROCESS_NAME = "forester";
|
|
22
|
-
exports.PHOTON_VERSION = "0.
|
|
22
|
+
exports.PHOTON_VERSION = "0.37.0";
|
|
23
23
|
exports.LIGHT_PROTOCOL_PROGRAMS_DIR_ENV = "LIGHT_PROTOCOL_PROGRAMS_DIR";
|
|
24
24
|
exports.BASE_PATH = "../../bin/";
|
package/oclif.manifest.json
CHANGED
|
@@ -1,46 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"commands": {
|
|
3
|
-
"balance": {
|
|
4
|
-
"aliases": [],
|
|
5
|
-
"args": {},
|
|
6
|
-
"examples": [
|
|
7
|
-
"$ light balance --mint=<ADDRESS> --owner=<ADDRESS>"
|
|
8
|
-
],
|
|
9
|
-
"flags": {
|
|
10
|
-
"owner": {
|
|
11
|
-
"description": "Address of the compressed token owner.",
|
|
12
|
-
"name": "owner",
|
|
13
|
-
"required": true,
|
|
14
|
-
"hasDynamicHelp": false,
|
|
15
|
-
"multiple": false,
|
|
16
|
-
"type": "option"
|
|
17
|
-
},
|
|
18
|
-
"mint": {
|
|
19
|
-
"description": "Mint address of the compressed token account.",
|
|
20
|
-
"name": "mint",
|
|
21
|
-
"required": true,
|
|
22
|
-
"hasDynamicHelp": false,
|
|
23
|
-
"multiple": false,
|
|
24
|
-
"type": "option"
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
"hasDynamicHelp": false,
|
|
28
|
-
"hiddenAliases": [],
|
|
29
|
-
"id": "balance",
|
|
30
|
-
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
31
|
-
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
32
|
-
"pluginType": "core",
|
|
33
|
-
"strict": true,
|
|
34
|
-
"summary": "Get balance",
|
|
35
|
-
"enableJsonFlag": false,
|
|
36
|
-
"isESM": false,
|
|
37
|
-
"relativePath": [
|
|
38
|
-
"dist",
|
|
39
|
-
"commands",
|
|
40
|
-
"balance",
|
|
41
|
-
"index.js"
|
|
42
|
-
]
|
|
43
|
-
},
|
|
44
3
|
"approve-and-mint-to": {
|
|
45
4
|
"aliases": [],
|
|
46
5
|
"args": {},
|
|
@@ -98,24 +57,24 @@
|
|
|
98
57
|
"index.js"
|
|
99
58
|
]
|
|
100
59
|
},
|
|
101
|
-
"
|
|
60
|
+
"balance": {
|
|
102
61
|
"aliases": [],
|
|
103
62
|
"args": {},
|
|
104
63
|
"examples": [
|
|
105
|
-
"$ light
|
|
64
|
+
"$ light balance --mint=<ADDRESS> --owner=<ADDRESS>"
|
|
106
65
|
],
|
|
107
66
|
"flags": {
|
|
108
|
-
"
|
|
109
|
-
"description": "
|
|
110
|
-
"name": "
|
|
67
|
+
"owner": {
|
|
68
|
+
"description": "Address of the compressed token owner.",
|
|
69
|
+
"name": "owner",
|
|
111
70
|
"required": true,
|
|
112
71
|
"hasDynamicHelp": false,
|
|
113
72
|
"multiple": false,
|
|
114
73
|
"type": "option"
|
|
115
74
|
},
|
|
116
|
-
"
|
|
117
|
-
"description": "
|
|
118
|
-
"name": "
|
|
75
|
+
"mint": {
|
|
76
|
+
"description": "Mint address of the compressed token account.",
|
|
77
|
+
"name": "mint",
|
|
119
78
|
"required": true,
|
|
120
79
|
"hasDynamicHelp": false,
|
|
121
80
|
"multiple": false,
|
|
@@ -124,71 +83,75 @@
|
|
|
124
83
|
},
|
|
125
84
|
"hasDynamicHelp": false,
|
|
126
85
|
"hiddenAliases": [],
|
|
127
|
-
"id": "
|
|
86
|
+
"id": "balance",
|
|
128
87
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
129
88
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
130
89
|
"pluginType": "core",
|
|
131
90
|
"strict": true,
|
|
132
|
-
"summary": "
|
|
91
|
+
"summary": "Get balance",
|
|
133
92
|
"enableJsonFlag": false,
|
|
134
93
|
"isESM": false,
|
|
135
94
|
"relativePath": [
|
|
136
95
|
"dist",
|
|
137
96
|
"commands",
|
|
138
|
-
"
|
|
97
|
+
"balance",
|
|
139
98
|
"index.js"
|
|
140
99
|
]
|
|
141
100
|
},
|
|
142
|
-
"
|
|
101
|
+
"config:config": {
|
|
143
102
|
"aliases": [],
|
|
144
103
|
"args": {},
|
|
104
|
+
"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
105
|
"examples": [
|
|
146
|
-
"$ light
|
|
106
|
+
"$ light config --solanaRpcUrl https://solana-api.example.com"
|
|
147
107
|
],
|
|
148
108
|
"flags": {
|
|
149
|
-
"
|
|
150
|
-
"description": "
|
|
151
|
-
"name": "
|
|
152
|
-
"required": true,
|
|
109
|
+
"solanaRpcUrl": {
|
|
110
|
+
"description": "Solana RPC url",
|
|
111
|
+
"name": "solanaRpcUrl",
|
|
153
112
|
"hasDynamicHelp": false,
|
|
154
113
|
"multiple": false,
|
|
155
114
|
"type": "option"
|
|
156
115
|
},
|
|
157
|
-
"
|
|
158
|
-
"description": "
|
|
159
|
-
"name": "
|
|
160
|
-
"required": true,
|
|
116
|
+
"indexerUrl": {
|
|
117
|
+
"description": "Indexer url",
|
|
118
|
+
"name": "indexerUrl",
|
|
161
119
|
"hasDynamicHelp": false,
|
|
162
120
|
"multiple": false,
|
|
163
121
|
"type": "option"
|
|
164
122
|
},
|
|
165
|
-
"
|
|
166
|
-
"description": "
|
|
167
|
-
"name": "
|
|
168
|
-
"required": true,
|
|
123
|
+
"proverUrl": {
|
|
124
|
+
"description": "Prover url",
|
|
125
|
+
"name": "proverUrl",
|
|
169
126
|
"hasDynamicHelp": false,
|
|
170
127
|
"multiple": false,
|
|
171
128
|
"type": "option"
|
|
129
|
+
},
|
|
130
|
+
"get": {
|
|
131
|
+
"description": "Gets the current config values",
|
|
132
|
+
"name": "get",
|
|
133
|
+
"required": false,
|
|
134
|
+
"allowNo": false,
|
|
135
|
+
"type": "boolean"
|
|
172
136
|
}
|
|
173
137
|
},
|
|
174
138
|
"hasDynamicHelp": false,
|
|
175
139
|
"hiddenAliases": [],
|
|
176
|
-
"id": "
|
|
140
|
+
"id": "config:config",
|
|
177
141
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
178
142
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
179
143
|
"pluginType": "core",
|
|
180
144
|
"strict": true,
|
|
181
|
-
"summary": "Compress SPL tokens.",
|
|
182
145
|
"enableJsonFlag": false,
|
|
183
146
|
"isESM": false,
|
|
184
147
|
"relativePath": [
|
|
185
148
|
"dist",
|
|
186
149
|
"commands",
|
|
187
|
-
"
|
|
150
|
+
"config",
|
|
188
151
|
"index.js"
|
|
189
152
|
]
|
|
190
153
|
},
|
|
191
|
-
"config
|
|
154
|
+
"config": {
|
|
192
155
|
"aliases": [],
|
|
193
156
|
"args": {},
|
|
194
157
|
"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",
|
|
@@ -227,7 +190,7 @@
|
|
|
227
190
|
},
|
|
228
191
|
"hasDynamicHelp": false,
|
|
229
192
|
"hiddenAliases": [],
|
|
230
|
-
"id": "config
|
|
193
|
+
"id": "config",
|
|
231
194
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
232
195
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
233
196
|
"pluginType": "core",
|
|
@@ -241,56 +204,53 @@
|
|
|
241
204
|
"index.js"
|
|
242
205
|
]
|
|
243
206
|
},
|
|
244
|
-
"
|
|
207
|
+
"create-mint": {
|
|
245
208
|
"aliases": [],
|
|
246
209
|
"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",
|
|
248
210
|
"examples": [
|
|
249
|
-
"$ light
|
|
211
|
+
"$ light create-mint --mint-decimals 5"
|
|
250
212
|
],
|
|
251
213
|
"flags": {
|
|
252
|
-
"
|
|
253
|
-
"description": "
|
|
254
|
-
"name": "
|
|
214
|
+
"mint-keypair": {
|
|
215
|
+
"description": "Provide a path to a mint keypair file. Defaults to a random keypair",
|
|
216
|
+
"name": "mint-keypair",
|
|
217
|
+
"required": false,
|
|
255
218
|
"hasDynamicHelp": false,
|
|
256
219
|
"multiple": false,
|
|
257
220
|
"type": "option"
|
|
258
221
|
},
|
|
259
|
-
"
|
|
260
|
-
"description": "
|
|
261
|
-
"name": "
|
|
222
|
+
"mint-authority": {
|
|
223
|
+
"description": "Address of the mint authority. Defaults to the fee payer",
|
|
224
|
+
"name": "mint-authority",
|
|
225
|
+
"required": false,
|
|
262
226
|
"hasDynamicHelp": false,
|
|
263
227
|
"multiple": false,
|
|
264
228
|
"type": "option"
|
|
265
229
|
},
|
|
266
|
-
"
|
|
267
|
-
"description": "
|
|
268
|
-
"name": "
|
|
230
|
+
"mint-decimals": {
|
|
231
|
+
"description": "Number of base 10 digits to the right of the decimal place [default: 9]",
|
|
232
|
+
"name": "mint-decimals",
|
|
233
|
+
"required": false,
|
|
234
|
+
"default": 9,
|
|
269
235
|
"hasDynamicHelp": false,
|
|
270
236
|
"multiple": false,
|
|
271
237
|
"type": "option"
|
|
272
|
-
},
|
|
273
|
-
"get": {
|
|
274
|
-
"description": "Gets the current config values",
|
|
275
|
-
"name": "get",
|
|
276
|
-
"required": false,
|
|
277
|
-
"allowNo": false,
|
|
278
|
-
"type": "boolean"
|
|
279
238
|
}
|
|
280
239
|
},
|
|
281
240
|
"hasDynamicHelp": false,
|
|
282
241
|
"hiddenAliases": [],
|
|
283
|
-
"id": "
|
|
242
|
+
"id": "create-mint",
|
|
284
243
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
285
244
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
286
245
|
"pluginType": "core",
|
|
287
246
|
"strict": true,
|
|
247
|
+
"summary": "Create a new compressed token mint",
|
|
288
248
|
"enableJsonFlag": false,
|
|
289
249
|
"isESM": false,
|
|
290
250
|
"relativePath": [
|
|
291
251
|
"dist",
|
|
292
252
|
"commands",
|
|
293
|
-
"
|
|
253
|
+
"create-mint",
|
|
294
254
|
"index.js"
|
|
295
255
|
]
|
|
296
256
|
},
|
|
@@ -335,34 +295,74 @@
|
|
|
335
295
|
"index.js"
|
|
336
296
|
]
|
|
337
297
|
},
|
|
338
|
-
"
|
|
298
|
+
"compress-sol": {
|
|
339
299
|
"aliases": [],
|
|
340
300
|
"args": {},
|
|
341
301
|
"examples": [
|
|
342
|
-
"$ light
|
|
302
|
+
"$ light compress-sol --to PublicKey --amount 10"
|
|
343
303
|
],
|
|
344
304
|
"flags": {
|
|
345
|
-
"
|
|
346
|
-
"description": "
|
|
347
|
-
"name": "
|
|
348
|
-
"required":
|
|
305
|
+
"to": {
|
|
306
|
+
"description": "Specify the recipient address.",
|
|
307
|
+
"name": "to",
|
|
308
|
+
"required": true,
|
|
349
309
|
"hasDynamicHelp": false,
|
|
350
310
|
"multiple": false,
|
|
351
311
|
"type": "option"
|
|
352
312
|
},
|
|
353
|
-
"
|
|
354
|
-
"description": "
|
|
355
|
-
"name": "
|
|
356
|
-
"required":
|
|
313
|
+
"amount": {
|
|
314
|
+
"description": "Amount to compress, in lamports.",
|
|
315
|
+
"name": "amount",
|
|
316
|
+
"required": true,
|
|
317
|
+
"hasDynamicHelp": false,
|
|
318
|
+
"multiple": false,
|
|
319
|
+
"type": "option"
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
"hasDynamicHelp": false,
|
|
323
|
+
"hiddenAliases": [],
|
|
324
|
+
"id": "compress-sol",
|
|
325
|
+
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
326
|
+
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
327
|
+
"pluginType": "core",
|
|
328
|
+
"strict": true,
|
|
329
|
+
"summary": "Compress SOL.",
|
|
330
|
+
"enableJsonFlag": false,
|
|
331
|
+
"isESM": false,
|
|
332
|
+
"relativePath": [
|
|
333
|
+
"dist",
|
|
334
|
+
"commands",
|
|
335
|
+
"compress-sol",
|
|
336
|
+
"index.js"
|
|
337
|
+
]
|
|
338
|
+
},
|
|
339
|
+
"compress-spl": {
|
|
340
|
+
"aliases": [],
|
|
341
|
+
"args": {},
|
|
342
|
+
"examples": [
|
|
343
|
+
"$ light compress-spl --mint PublicKey --to PublicKey --amount 10"
|
|
344
|
+
],
|
|
345
|
+
"flags": {
|
|
346
|
+
"mint": {
|
|
347
|
+
"description": "Specify the mint address.",
|
|
348
|
+
"name": "mint",
|
|
349
|
+
"required": true,
|
|
357
350
|
"hasDynamicHelp": false,
|
|
358
351
|
"multiple": false,
|
|
359
352
|
"type": "option"
|
|
360
353
|
},
|
|
361
|
-
"
|
|
362
|
-
"description": "
|
|
363
|
-
"name": "
|
|
364
|
-
"required":
|
|
365
|
-
"
|
|
354
|
+
"to": {
|
|
355
|
+
"description": "Specify the recipient address (owner of destination compressed token account).",
|
|
356
|
+
"name": "to",
|
|
357
|
+
"required": true,
|
|
358
|
+
"hasDynamicHelp": false,
|
|
359
|
+
"multiple": false,
|
|
360
|
+
"type": "option"
|
|
361
|
+
},
|
|
362
|
+
"amount": {
|
|
363
|
+
"description": "Amount to compress, in tokens.",
|
|
364
|
+
"name": "amount",
|
|
365
|
+
"required": true,
|
|
366
366
|
"hasDynamicHelp": false,
|
|
367
367
|
"multiple": false,
|
|
368
368
|
"type": "option"
|
|
@@ -370,18 +370,18 @@
|
|
|
370
370
|
},
|
|
371
371
|
"hasDynamicHelp": false,
|
|
372
372
|
"hiddenAliases": [],
|
|
373
|
-
"id": "
|
|
373
|
+
"id": "compress-spl",
|
|
374
374
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
375
375
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
376
376
|
"pluginType": "core",
|
|
377
377
|
"strict": true,
|
|
378
|
-
"summary": "
|
|
378
|
+
"summary": "Compress SPL tokens.",
|
|
379
379
|
"enableJsonFlag": false,
|
|
380
380
|
"isESM": false,
|
|
381
381
|
"relativePath": [
|
|
382
382
|
"dist",
|
|
383
383
|
"commands",
|
|
384
|
-
"
|
|
384
|
+
"compress-spl",
|
|
385
385
|
"index.js"
|
|
386
386
|
]
|
|
387
387
|
},
|
|
@@ -762,5 +762,5 @@
|
|
|
762
762
|
]
|
|
763
763
|
}
|
|
764
764
|
},
|
|
765
|
-
"version": "0.
|
|
765
|
+
"version": "0.6.0"
|
|
766
766
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightprotocol/zk-compression-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
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/
|
|
48
|
-
"@lightprotocol/stateless.js": "0.
|
|
49
|
-
"@lightprotocol/
|
|
47
|
+
"@lightprotocol/hasher.rs": "0.2.0",
|
|
48
|
+
"@lightprotocol/stateless.js": "0.6.0",
|
|
49
|
+
"@lightprotocol/compressed-token": "0.5.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@oclif/test": "2.3.9",
|