@lightprotocol/zk-compression-cli 0.8.0 → 0.10.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/forester +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 +115 -115
- package/package.json +2 -2
|
Binary file
|
package/bin/forester
CHANGED
|
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.44.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.44.0";
|
|
23
23
|
exports.LIGHT_PROTOCOL_PROGRAMS_DIR_ENV = "LIGHT_PROTOCOL_PROGRAMS_DIR";
|
|
24
24
|
exports.BASE_PATH = "../../bin/";
|
package/oclif.manifest.json
CHANGED
|
@@ -57,24 +57,24 @@
|
|
|
57
57
|
"index.js"
|
|
58
58
|
]
|
|
59
59
|
},
|
|
60
|
-
"
|
|
60
|
+
"balance": {
|
|
61
61
|
"aliases": [],
|
|
62
62
|
"args": {},
|
|
63
63
|
"examples": [
|
|
64
|
-
"$ light
|
|
64
|
+
"$ light balance --mint=<ADDRESS> --owner=<ADDRESS>"
|
|
65
65
|
],
|
|
66
66
|
"flags": {
|
|
67
|
-
"
|
|
68
|
-
"description": "
|
|
69
|
-
"name": "
|
|
67
|
+
"owner": {
|
|
68
|
+
"description": "Address of the compressed token owner.",
|
|
69
|
+
"name": "owner",
|
|
70
70
|
"required": true,
|
|
71
71
|
"hasDynamicHelp": false,
|
|
72
72
|
"multiple": false,
|
|
73
73
|
"type": "option"
|
|
74
74
|
},
|
|
75
|
-
"
|
|
76
|
-
"description": "
|
|
77
|
-
"name": "
|
|
75
|
+
"mint": {
|
|
76
|
+
"description": "Mint address of the compressed token account.",
|
|
77
|
+
"name": "mint",
|
|
78
78
|
"required": true,
|
|
79
79
|
"hasDynamicHelp": false,
|
|
80
80
|
"multiple": false,
|
|
@@ -83,39 +83,47 @@
|
|
|
83
83
|
},
|
|
84
84
|
"hasDynamicHelp": false,
|
|
85
85
|
"hiddenAliases": [],
|
|
86
|
-
"id": "
|
|
86
|
+
"id": "balance",
|
|
87
87
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
88
88
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
89
89
|
"pluginType": "core",
|
|
90
90
|
"strict": true,
|
|
91
|
-
"summary": "
|
|
91
|
+
"summary": "Get balance",
|
|
92
92
|
"enableJsonFlag": false,
|
|
93
93
|
"isESM": false,
|
|
94
94
|
"relativePath": [
|
|
95
95
|
"dist",
|
|
96
96
|
"commands",
|
|
97
|
-
"
|
|
97
|
+
"balance",
|
|
98
98
|
"index.js"
|
|
99
99
|
]
|
|
100
100
|
},
|
|
101
|
-
"
|
|
101
|
+
"compress-spl": {
|
|
102
102
|
"aliases": [],
|
|
103
103
|
"args": {},
|
|
104
104
|
"examples": [
|
|
105
|
-
"$ light
|
|
105
|
+
"$ light compress-spl --mint PublicKey --to PublicKey --amount 10"
|
|
106
106
|
],
|
|
107
107
|
"flags": {
|
|
108
|
-
"
|
|
109
|
-
"description": "
|
|
110
|
-
"name": "
|
|
108
|
+
"mint": {
|
|
109
|
+
"description": "Specify the mint address.",
|
|
110
|
+
"name": "mint",
|
|
111
111
|
"required": true,
|
|
112
112
|
"hasDynamicHelp": false,
|
|
113
113
|
"multiple": false,
|
|
114
114
|
"type": "option"
|
|
115
115
|
},
|
|
116
|
-
"
|
|
117
|
-
"description": "
|
|
118
|
-
"name": "
|
|
116
|
+
"to": {
|
|
117
|
+
"description": "Specify the recipient address (owner of destination compressed token account).",
|
|
118
|
+
"name": "to",
|
|
119
|
+
"required": true,
|
|
120
|
+
"hasDynamicHelp": false,
|
|
121
|
+
"multiple": false,
|
|
122
|
+
"type": "option"
|
|
123
|
+
},
|
|
124
|
+
"amount": {
|
|
125
|
+
"description": "Amount to compress, in tokens.",
|
|
126
|
+
"name": "amount",
|
|
119
127
|
"required": true,
|
|
120
128
|
"hasDynamicHelp": false,
|
|
121
129
|
"multiple": false,
|
|
@@ -124,38 +132,30 @@
|
|
|
124
132
|
},
|
|
125
133
|
"hasDynamicHelp": false,
|
|
126
134
|
"hiddenAliases": [],
|
|
127
|
-
"id": "
|
|
135
|
+
"id": "compress-spl",
|
|
128
136
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
129
137
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
130
138
|
"pluginType": "core",
|
|
131
139
|
"strict": true,
|
|
132
|
-
"summary": "
|
|
140
|
+
"summary": "Compress SPL tokens.",
|
|
133
141
|
"enableJsonFlag": false,
|
|
134
142
|
"isESM": false,
|
|
135
143
|
"relativePath": [
|
|
136
144
|
"dist",
|
|
137
145
|
"commands",
|
|
138
|
-
"
|
|
146
|
+
"compress-spl",
|
|
139
147
|
"index.js"
|
|
140
148
|
]
|
|
141
149
|
},
|
|
142
|
-
"compress-
|
|
150
|
+
"compress-sol": {
|
|
143
151
|
"aliases": [],
|
|
144
152
|
"args": {},
|
|
145
153
|
"examples": [
|
|
146
|
-
"$ light compress-
|
|
154
|
+
"$ light compress-sol --to PublicKey --amount 10"
|
|
147
155
|
],
|
|
148
156
|
"flags": {
|
|
149
|
-
"mint": {
|
|
150
|
-
"description": "Specify the mint address.",
|
|
151
|
-
"name": "mint",
|
|
152
|
-
"required": true,
|
|
153
|
-
"hasDynamicHelp": false,
|
|
154
|
-
"multiple": false,
|
|
155
|
-
"type": "option"
|
|
156
|
-
},
|
|
157
157
|
"to": {
|
|
158
|
-
"description": "Specify the recipient address
|
|
158
|
+
"description": "Specify the recipient address.",
|
|
159
159
|
"name": "to",
|
|
160
160
|
"required": true,
|
|
161
161
|
"hasDynamicHelp": false,
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
"type": "option"
|
|
164
164
|
},
|
|
165
165
|
"amount": {
|
|
166
|
-
"description": "Amount to compress, in
|
|
166
|
+
"description": "Amount to compress, in lamports.",
|
|
167
167
|
"name": "amount",
|
|
168
168
|
"required": true,
|
|
169
169
|
"hasDynamicHelp": false,
|
|
@@ -173,215 +173,215 @@
|
|
|
173
173
|
},
|
|
174
174
|
"hasDynamicHelp": false,
|
|
175
175
|
"hiddenAliases": [],
|
|
176
|
-
"id": "compress-
|
|
176
|
+
"id": "compress-sol",
|
|
177
177
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
178
178
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
179
179
|
"pluginType": "core",
|
|
180
180
|
"strict": true,
|
|
181
|
-
"summary": "Compress
|
|
181
|
+
"summary": "Compress SOL.",
|
|
182
182
|
"enableJsonFlag": false,
|
|
183
183
|
"isESM": false,
|
|
184
184
|
"relativePath": [
|
|
185
185
|
"dist",
|
|
186
186
|
"commands",
|
|
187
|
-
"compress-
|
|
187
|
+
"compress-sol",
|
|
188
188
|
"index.js"
|
|
189
189
|
]
|
|
190
190
|
},
|
|
191
|
-
"
|
|
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
|
|
195
|
+
"$ light create-mint --mint-decimals 5"
|
|
197
196
|
],
|
|
198
197
|
"flags": {
|
|
199
|
-
"
|
|
200
|
-
"description": "
|
|
201
|
-
"name": "
|
|
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
|
-
"
|
|
207
|
-
"description": "
|
|
208
|
-
"name": "
|
|
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
|
-
"
|
|
214
|
-
"description": "
|
|
215
|
-
"name": "
|
|
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": "
|
|
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
|
-
"
|
|
237
|
+
"create-mint",
|
|
241
238
|
"index.js"
|
|
242
239
|
]
|
|
243
240
|
},
|
|
244
|
-
"
|
|
241
|
+
"decompress-sol": {
|
|
245
242
|
"aliases": [],
|
|
246
243
|
"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
244
|
"examples": [
|
|
249
|
-
"$ light
|
|
245
|
+
"$ light decompress-sol --to PublicKey --amount 10"
|
|
250
246
|
],
|
|
251
247
|
"flags": {
|
|
252
|
-
"
|
|
253
|
-
"description": "
|
|
254
|
-
"name": "
|
|
255
|
-
"
|
|
256
|
-
"multiple": false,
|
|
257
|
-
"type": "option"
|
|
258
|
-
},
|
|
259
|
-
"indexerUrl": {
|
|
260
|
-
"description": "Indexer url",
|
|
261
|
-
"name": "indexerUrl",
|
|
248
|
+
"to": {
|
|
249
|
+
"description": "Specify the recipient address.",
|
|
250
|
+
"name": "to",
|
|
251
|
+
"required": true,
|
|
262
252
|
"hasDynamicHelp": false,
|
|
263
253
|
"multiple": false,
|
|
264
254
|
"type": "option"
|
|
265
255
|
},
|
|
266
|
-
"
|
|
267
|
-
"description": "
|
|
268
|
-
"name": "
|
|
256
|
+
"amount": {
|
|
257
|
+
"description": "Amount to decompress, in lamports.",
|
|
258
|
+
"name": "amount",
|
|
259
|
+
"required": true,
|
|
269
260
|
"hasDynamicHelp": false,
|
|
270
261
|
"multiple": false,
|
|
271
262
|
"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
263
|
}
|
|
280
264
|
},
|
|
281
265
|
"hasDynamicHelp": false,
|
|
282
266
|
"hiddenAliases": [],
|
|
283
|
-
"id": "
|
|
267
|
+
"id": "decompress-sol",
|
|
284
268
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
285
269
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
286
270
|
"pluginType": "core",
|
|
287
271
|
"strict": true,
|
|
272
|
+
"summary": "Decompress SOL.",
|
|
288
273
|
"enableJsonFlag": false,
|
|
289
274
|
"isESM": false,
|
|
290
275
|
"relativePath": [
|
|
291
276
|
"dist",
|
|
292
277
|
"commands",
|
|
293
|
-
"
|
|
278
|
+
"decompress-sol",
|
|
294
279
|
"index.js"
|
|
295
280
|
]
|
|
296
281
|
},
|
|
297
|
-
"
|
|
282
|
+
"config:config": {
|
|
298
283
|
"aliases": [],
|
|
299
284
|
"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",
|
|
300
286
|
"examples": [
|
|
301
|
-
"$ light
|
|
287
|
+
"$ light config --solanaRpcUrl https://solana-api.example.com"
|
|
302
288
|
],
|
|
303
289
|
"flags": {
|
|
304
|
-
"
|
|
305
|
-
"description": "
|
|
306
|
-
"name": "
|
|
307
|
-
"required": false,
|
|
290
|
+
"solanaRpcUrl": {
|
|
291
|
+
"description": "Solana RPC url",
|
|
292
|
+
"name": "solanaRpcUrl",
|
|
308
293
|
"hasDynamicHelp": false,
|
|
309
294
|
"multiple": false,
|
|
310
295
|
"type": "option"
|
|
311
296
|
},
|
|
312
|
-
"
|
|
313
|
-
"description": "
|
|
314
|
-
"name": "
|
|
315
|
-
"required": false,
|
|
297
|
+
"indexerUrl": {
|
|
298
|
+
"description": "Indexer url",
|
|
299
|
+
"name": "indexerUrl",
|
|
316
300
|
"hasDynamicHelp": false,
|
|
317
301
|
"multiple": false,
|
|
318
302
|
"type": "option"
|
|
319
303
|
},
|
|
320
|
-
"
|
|
321
|
-
"description": "
|
|
322
|
-
"name": "
|
|
323
|
-
"required": false,
|
|
324
|
-
"default": 9,
|
|
304
|
+
"proverUrl": {
|
|
305
|
+
"description": "Prover url",
|
|
306
|
+
"name": "proverUrl",
|
|
325
307
|
"hasDynamicHelp": false,
|
|
326
308
|
"multiple": false,
|
|
327
309
|
"type": "option"
|
|
310
|
+
},
|
|
311
|
+
"get": {
|
|
312
|
+
"description": "Gets the current config values",
|
|
313
|
+
"name": "get",
|
|
314
|
+
"required": false,
|
|
315
|
+
"allowNo": false,
|
|
316
|
+
"type": "boolean"
|
|
328
317
|
}
|
|
329
318
|
},
|
|
330
319
|
"hasDynamicHelp": false,
|
|
331
320
|
"hiddenAliases": [],
|
|
332
|
-
"id": "
|
|
321
|
+
"id": "config:config",
|
|
333
322
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
334
323
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
335
324
|
"pluginType": "core",
|
|
336
325
|
"strict": true,
|
|
337
|
-
"summary": "Create a new compressed token mint",
|
|
338
326
|
"enableJsonFlag": false,
|
|
339
327
|
"isESM": false,
|
|
340
328
|
"relativePath": [
|
|
341
329
|
"dist",
|
|
342
330
|
"commands",
|
|
343
|
-
"
|
|
331
|
+
"config",
|
|
344
332
|
"index.js"
|
|
345
333
|
]
|
|
346
334
|
},
|
|
347
|
-
"
|
|
335
|
+
"config": {
|
|
348
336
|
"aliases": [],
|
|
349
337
|
"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",
|
|
350
339
|
"examples": [
|
|
351
|
-
"$ light
|
|
340
|
+
"$ light config --solanaRpcUrl https://solana-api.example.com"
|
|
352
341
|
],
|
|
353
342
|
"flags": {
|
|
354
|
-
"
|
|
355
|
-
"description": "
|
|
356
|
-
"name": "
|
|
357
|
-
"required": true,
|
|
343
|
+
"solanaRpcUrl": {
|
|
344
|
+
"description": "Solana RPC url",
|
|
345
|
+
"name": "solanaRpcUrl",
|
|
358
346
|
"hasDynamicHelp": false,
|
|
359
347
|
"multiple": false,
|
|
360
348
|
"type": "option"
|
|
361
349
|
},
|
|
362
|
-
"
|
|
363
|
-
"description": "
|
|
364
|
-
"name": "
|
|
365
|
-
"
|
|
350
|
+
"indexerUrl": {
|
|
351
|
+
"description": "Indexer url",
|
|
352
|
+
"name": "indexerUrl",
|
|
353
|
+
"hasDynamicHelp": false,
|
|
354
|
+
"multiple": false,
|
|
355
|
+
"type": "option"
|
|
356
|
+
},
|
|
357
|
+
"proverUrl": {
|
|
358
|
+
"description": "Prover url",
|
|
359
|
+
"name": "proverUrl",
|
|
366
360
|
"hasDynamicHelp": false,
|
|
367
361
|
"multiple": false,
|
|
368
362
|
"type": "option"
|
|
363
|
+
},
|
|
364
|
+
"get": {
|
|
365
|
+
"description": "Gets the current config values",
|
|
366
|
+
"name": "get",
|
|
367
|
+
"required": false,
|
|
368
|
+
"allowNo": false,
|
|
369
|
+
"type": "boolean"
|
|
369
370
|
}
|
|
370
371
|
},
|
|
371
372
|
"hasDynamicHelp": false,
|
|
372
373
|
"hiddenAliases": [],
|
|
373
|
-
"id": "
|
|
374
|
+
"id": "config",
|
|
374
375
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
375
376
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
376
377
|
"pluginType": "core",
|
|
377
378
|
"strict": true,
|
|
378
|
-
"summary": "Decompress SOL.",
|
|
379
379
|
"enableJsonFlag": false,
|
|
380
380
|
"isESM": false,
|
|
381
381
|
"relativePath": [
|
|
382
382
|
"dist",
|
|
383
383
|
"commands",
|
|
384
|
-
"
|
|
384
|
+
"config",
|
|
385
385
|
"index.js"
|
|
386
386
|
]
|
|
387
387
|
},
|
|
@@ -762,5 +762,5 @@
|
|
|
762
762
|
]
|
|
763
763
|
}
|
|
764
764
|
},
|
|
765
|
-
"version": "0.
|
|
765
|
+
"version": "0.10.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.10.0",
|
|
4
4
|
"description": "ZK Compression: Secure Scaling on Solana",
|
|
5
5
|
"maintainers": [
|
|
6
6
|
{
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"tweetnacl": "^1.0.3",
|
|
45
45
|
"wait-on": "^7.2.0",
|
|
46
46
|
"which": "^4.0.0",
|
|
47
|
-
"@lightprotocol/compressed-token": "0.11.0",
|
|
48
47
|
"@lightprotocol/stateless.js": "0.11.0",
|
|
48
|
+
"@lightprotocol/compressed-token": "0.11.0",
|
|
49
49
|
"@lightprotocol/hasher.rs": "0.2.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|