@lightprotocol/zk-compression-cli 0.4.2 → 0.4.4
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 +29 -0
- package/accounts/address_merkle_tree_C83cpRN6oaafjNgMQJvaYgAz592EP5wunKvbokeTKPLn.json +1 -1
- 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/commands/register-mint/index.js +1 -1
- package/dist/utils/constants.d.ts +1 -1
- package/dist/utils/constants.js +1 -1
- package/oclif.manifest.json +89 -89
- package/package.json +4 -4
|
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
|
|
@@ -12,7 +12,7 @@ class RegisterMintCommand extends core_1.Command {
|
|
|
12
12
|
try {
|
|
13
13
|
const payer = (0, utils_1.defaultSolanaWalletKeypair)();
|
|
14
14
|
const mintAddress = new web3_js_1.PublicKey(flags.mint);
|
|
15
|
-
const txId = await (0, compressed_token_1.
|
|
15
|
+
const txId = await (0, compressed_token_1.createTokenPool)((0, utils_1.rpc)(), payer, mintAddress);
|
|
16
16
|
loader.stop(false);
|
|
17
17
|
console.log("\x1b[1mMint public key:\x1b[0m ", mintAddress.toBase58());
|
|
18
18
|
console.log("\x1b[1mMint tx:\x1b[0m ", (0, utils_1.generateSolanaTransactionURL)("tx", txId, "custom"));
|
|
@@ -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.28.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.28.0";
|
|
23
23
|
exports.LIGHT_PROTOCOL_PROGRAMS_DIR_ENV = "LIGHT_PROTOCOL_PROGRAMS_DIR";
|
|
24
24
|
exports.BASE_PATH = "../../bin/";
|
package/oclif.manifest.json
CHANGED
|
@@ -98,23 +98,15 @@
|
|
|
98
98
|
"index.js"
|
|
99
99
|
]
|
|
100
100
|
},
|
|
101
|
-
"compress-
|
|
101
|
+
"compress-sol": {
|
|
102
102
|
"aliases": [],
|
|
103
103
|
"args": {},
|
|
104
104
|
"examples": [
|
|
105
|
-
"$ light compress-
|
|
105
|
+
"$ light compress-sol --to PublicKey --amount 10"
|
|
106
106
|
],
|
|
107
107
|
"flags": {
|
|
108
|
-
"mint": {
|
|
109
|
-
"description": "Specify the mint address.",
|
|
110
|
-
"name": "mint",
|
|
111
|
-
"required": true,
|
|
112
|
-
"hasDynamicHelp": false,
|
|
113
|
-
"multiple": false,
|
|
114
|
-
"type": "option"
|
|
115
|
-
},
|
|
116
108
|
"to": {
|
|
117
|
-
"description": "Specify the recipient address
|
|
109
|
+
"description": "Specify the recipient address.",
|
|
118
110
|
"name": "to",
|
|
119
111
|
"required": true,
|
|
120
112
|
"hasDynamicHelp": false,
|
|
@@ -122,7 +114,7 @@
|
|
|
122
114
|
"type": "option"
|
|
123
115
|
},
|
|
124
116
|
"amount": {
|
|
125
|
-
"description": "Amount to compress, in
|
|
117
|
+
"description": "Amount to compress, in lamports.",
|
|
126
118
|
"name": "amount",
|
|
127
119
|
"required": true,
|
|
128
120
|
"hasDynamicHelp": false,
|
|
@@ -132,124 +124,117 @@
|
|
|
132
124
|
},
|
|
133
125
|
"hasDynamicHelp": false,
|
|
134
126
|
"hiddenAliases": [],
|
|
135
|
-
"id": "compress-
|
|
127
|
+
"id": "compress-sol",
|
|
136
128
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
137
129
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
138
130
|
"pluginType": "core",
|
|
139
131
|
"strict": true,
|
|
140
|
-
"summary": "Compress
|
|
132
|
+
"summary": "Compress SOL.",
|
|
141
133
|
"enableJsonFlag": false,
|
|
142
134
|
"isESM": false,
|
|
143
135
|
"relativePath": [
|
|
144
136
|
"dist",
|
|
145
137
|
"commands",
|
|
146
|
-
"compress-
|
|
138
|
+
"compress-sol",
|
|
147
139
|
"index.js"
|
|
148
140
|
]
|
|
149
141
|
},
|
|
150
|
-
"
|
|
142
|
+
"compress-spl": {
|
|
151
143
|
"aliases": [],
|
|
152
144
|
"args": {},
|
|
153
|
-
"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",
|
|
154
145
|
"examples": [
|
|
155
|
-
"$ light
|
|
146
|
+
"$ light compress-spl --mint PublicKey --to PublicKey --amount 10"
|
|
156
147
|
],
|
|
157
148
|
"flags": {
|
|
158
|
-
"
|
|
159
|
-
"description": "
|
|
160
|
-
"name": "
|
|
149
|
+
"mint": {
|
|
150
|
+
"description": "Specify the mint address.",
|
|
151
|
+
"name": "mint",
|
|
152
|
+
"required": true,
|
|
161
153
|
"hasDynamicHelp": false,
|
|
162
154
|
"multiple": false,
|
|
163
155
|
"type": "option"
|
|
164
156
|
},
|
|
165
|
-
"
|
|
166
|
-
"description": "
|
|
167
|
-
"name": "
|
|
157
|
+
"to": {
|
|
158
|
+
"description": "Specify the recipient address (owner of destination compressed token account).",
|
|
159
|
+
"name": "to",
|
|
160
|
+
"required": true,
|
|
168
161
|
"hasDynamicHelp": false,
|
|
169
162
|
"multiple": false,
|
|
170
163
|
"type": "option"
|
|
171
164
|
},
|
|
172
|
-
"
|
|
173
|
-
"description": "
|
|
174
|
-
"name": "
|
|
165
|
+
"amount": {
|
|
166
|
+
"description": "Amount to compress, in tokens.",
|
|
167
|
+
"name": "amount",
|
|
168
|
+
"required": true,
|
|
175
169
|
"hasDynamicHelp": false,
|
|
176
170
|
"multiple": false,
|
|
177
171
|
"type": "option"
|
|
178
|
-
},
|
|
179
|
-
"get": {
|
|
180
|
-
"description": "Gets the current config values",
|
|
181
|
-
"name": "get",
|
|
182
|
-
"required": false,
|
|
183
|
-
"allowNo": false,
|
|
184
|
-
"type": "boolean"
|
|
185
172
|
}
|
|
186
173
|
},
|
|
187
174
|
"hasDynamicHelp": false,
|
|
188
175
|
"hiddenAliases": [],
|
|
189
|
-
"id": "
|
|
176
|
+
"id": "compress-spl",
|
|
190
177
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
191
178
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
192
179
|
"pluginType": "core",
|
|
193
180
|
"strict": true,
|
|
181
|
+
"summary": "Compress SPL tokens.",
|
|
194
182
|
"enableJsonFlag": false,
|
|
195
183
|
"isESM": false,
|
|
196
184
|
"relativePath": [
|
|
197
185
|
"dist",
|
|
198
186
|
"commands",
|
|
199
|
-
"
|
|
187
|
+
"compress-spl",
|
|
200
188
|
"index.js"
|
|
201
189
|
]
|
|
202
190
|
},
|
|
203
|
-
"
|
|
191
|
+
"create-mint": {
|
|
204
192
|
"aliases": [],
|
|
205
193
|
"args": {},
|
|
206
|
-
"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",
|
|
207
194
|
"examples": [
|
|
208
|
-
"$ light
|
|
195
|
+
"$ light create-mint --mint-decimals 5"
|
|
209
196
|
],
|
|
210
197
|
"flags": {
|
|
211
|
-
"
|
|
212
|
-
"description": "
|
|
213
|
-
"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,
|
|
214
202
|
"hasDynamicHelp": false,
|
|
215
203
|
"multiple": false,
|
|
216
204
|
"type": "option"
|
|
217
205
|
},
|
|
218
|
-
"
|
|
219
|
-
"description": "
|
|
220
|
-
"name": "
|
|
206
|
+
"mint-authority": {
|
|
207
|
+
"description": "Address of the mint authority. Defaults to the fee payer",
|
|
208
|
+
"name": "mint-authority",
|
|
209
|
+
"required": false,
|
|
221
210
|
"hasDynamicHelp": false,
|
|
222
211
|
"multiple": false,
|
|
223
212
|
"type": "option"
|
|
224
213
|
},
|
|
225
|
-
"
|
|
226
|
-
"description": "
|
|
227
|
-
"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,
|
|
228
219
|
"hasDynamicHelp": false,
|
|
229
220
|
"multiple": false,
|
|
230
221
|
"type": "option"
|
|
231
|
-
},
|
|
232
|
-
"get": {
|
|
233
|
-
"description": "Gets the current config values",
|
|
234
|
-
"name": "get",
|
|
235
|
-
"required": false,
|
|
236
|
-
"allowNo": false,
|
|
237
|
-
"type": "boolean"
|
|
238
222
|
}
|
|
239
223
|
},
|
|
240
224
|
"hasDynamicHelp": false,
|
|
241
225
|
"hiddenAliases": [],
|
|
242
|
-
"id": "
|
|
226
|
+
"id": "create-mint",
|
|
243
227
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
244
228
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
245
229
|
"pluginType": "core",
|
|
246
230
|
"strict": true,
|
|
231
|
+
"summary": "Create a new compressed token mint",
|
|
247
232
|
"enableJsonFlag": false,
|
|
248
233
|
"isESM": false,
|
|
249
234
|
"relativePath": [
|
|
250
235
|
"dist",
|
|
251
236
|
"commands",
|
|
252
|
-
"
|
|
237
|
+
"create-mint",
|
|
253
238
|
"index.js"
|
|
254
239
|
]
|
|
255
240
|
},
|
|
@@ -294,94 +279,109 @@
|
|
|
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
|
-
"required": true,
|
|
350
|
+
"indexerUrl": {
|
|
351
|
+
"description": "Indexer url",
|
|
352
|
+
"name": "indexerUrl",
|
|
366
353
|
"hasDynamicHelp": false,
|
|
367
354
|
"multiple": false,
|
|
368
355
|
"type": "option"
|
|
356
|
+
},
|
|
357
|
+
"proverUrl": {
|
|
358
|
+
"description": "Prover url",
|
|
359
|
+
"name": "proverUrl",
|
|
360
|
+
"hasDynamicHelp": false,
|
|
361
|
+
"multiple": false,
|
|
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": "Compress 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.4.
|
|
765
|
+
"version": "0.4.4"
|
|
766
766
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightprotocol/zk-compression-cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
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/compressed-token": "0.3.
|
|
48
|
-
"@lightprotocol/
|
|
49
|
-
"@lightprotocol/
|
|
47
|
+
"@lightprotocol/compressed-token": "0.3.2",
|
|
48
|
+
"@lightprotocol/stateless.js": "0.4.2",
|
|
49
|
+
"@lightprotocol/hasher.rs": "0.2.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@oclif/test": "2.3.9",
|