@lightprotocol/zk-compression-cli 0.5.0 → 0.5.1
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 +4 -16
- 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 +103 -103
- package/package.json +3 -3
|
Binary file
|
package/bin/forester
CHANGED
|
Binary file
|
package/bin/forester.toml
CHANGED
|
@@ -1,17 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
NULLIFIER_QUEUE_PUBKEY="44J4oDXpjPAbzHCSc24q7NEiPekss4sAbLd8ka4gd9CZ"
|
|
3
|
-
REGISTRY_PUBKEY="7Z9Yuy3HkBCc2Wf3xzMGnz6qpV4n7ciwcoEMGKqhAnj1"
|
|
4
|
-
ADDRESS_MERKLE_TREE_PUBKEY="C83cpRN6oaafjNgMQJvaYgAz592EP5wunKvbokeTKPLn"
|
|
5
|
-
ADDRESS_MERKLE_TREE_QUEUE_PUBKEY="HNjtNrjt6irUPYEgxhx2Vcs42koK9fxzm3aFLHVaaRWz"
|
|
6
|
-
|
|
7
|
-
RPC_URL="http://localhost:8899"
|
|
8
|
-
WS_RPC_URL="ws://localhost:8900"
|
|
9
|
-
INDEXER_URL="http://localhost:8784"
|
|
10
|
-
PROVER_URL="http://localhost:3001"
|
|
11
|
-
|
|
12
|
-
CU_LIMIT = 1_000_000
|
|
13
|
-
RPC_POOL_SIZE = 20
|
|
1
|
+
CU_LIMIT=1_000_000
|
|
14
2
|
CONCURRENCY_LIMIT=100
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
3
|
+
RPC_POOL_SIZE=20
|
|
4
|
+
PHOTON_BATCH_SIZE=50
|
|
5
|
+
MAX_RETRIES=5
|
|
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.38.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.38.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,69 +1,110 @@
|
|
|
1
1
|
{
|
|
2
2
|
"commands": {
|
|
3
|
-
"
|
|
3
|
+
"approve-and-mint-to": {
|
|
4
4
|
"aliases": [],
|
|
5
5
|
"args": {},
|
|
6
6
|
"examples": [
|
|
7
|
-
"$ light
|
|
7
|
+
"$ light approve-and-mint-to --mint PublicKey --to PublicKey --amount 1000"
|
|
8
8
|
],
|
|
9
9
|
"flags": {
|
|
10
|
-
"
|
|
11
|
-
"description": "
|
|
12
|
-
"name": "
|
|
13
|
-
"required":
|
|
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
14
|
"hasDynamicHelp": false,
|
|
15
15
|
"multiple": false,
|
|
16
16
|
"type": "option"
|
|
17
17
|
},
|
|
18
18
|
"mint": {
|
|
19
|
-
"description": "
|
|
19
|
+
"description": "Specify the mint address.",
|
|
20
20
|
"name": "mint",
|
|
21
21
|
"required": true,
|
|
22
22
|
"hasDynamicHelp": false,
|
|
23
23
|
"multiple": false,
|
|
24
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"
|
|
25
41
|
}
|
|
26
42
|
},
|
|
27
43
|
"hasDynamicHelp": false,
|
|
28
44
|
"hiddenAliases": [],
|
|
29
|
-
"id": "
|
|
45
|
+
"id": "approve-and-mint-to",
|
|
30
46
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
31
47
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
32
48
|
"pluginType": "core",
|
|
33
49
|
"strict": true,
|
|
34
|
-
"summary": "
|
|
50
|
+
"summary": "Mint tokens to a compressed account via external mint authority",
|
|
35
51
|
"enableJsonFlag": false,
|
|
36
52
|
"isESM": false,
|
|
37
53
|
"relativePath": [
|
|
38
54
|
"dist",
|
|
39
55
|
"commands",
|
|
40
|
-
"
|
|
56
|
+
"approve-and-mint-to",
|
|
41
57
|
"index.js"
|
|
42
58
|
]
|
|
43
59
|
},
|
|
44
|
-
"
|
|
60
|
+
"balance": {
|
|
45
61
|
"aliases": [],
|
|
46
62
|
"args": {},
|
|
47
63
|
"examples": [
|
|
48
|
-
"$ light
|
|
64
|
+
"$ light balance --mint=<ADDRESS> --owner=<ADDRESS>"
|
|
49
65
|
],
|
|
50
66
|
"flags": {
|
|
51
|
-
"
|
|
52
|
-
"description": "
|
|
53
|
-
"name": "
|
|
54
|
-
"required":
|
|
67
|
+
"owner": {
|
|
68
|
+
"description": "Address of the compressed token owner.",
|
|
69
|
+
"name": "owner",
|
|
70
|
+
"required": true,
|
|
55
71
|
"hasDynamicHelp": false,
|
|
56
72
|
"multiple": false,
|
|
57
73
|
"type": "option"
|
|
58
74
|
},
|
|
59
75
|
"mint": {
|
|
60
|
-
"description": "
|
|
76
|
+
"description": "Mint address of the compressed token account.",
|
|
61
77
|
"name": "mint",
|
|
62
78
|
"required": true,
|
|
63
79
|
"hasDynamicHelp": false,
|
|
64
80
|
"multiple": false,
|
|
65
81
|
"type": "option"
|
|
66
|
-
}
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"hasDynamicHelp": false,
|
|
85
|
+
"hiddenAliases": [],
|
|
86
|
+
"id": "balance",
|
|
87
|
+
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
88
|
+
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
89
|
+
"pluginType": "core",
|
|
90
|
+
"strict": true,
|
|
91
|
+
"summary": "Get balance",
|
|
92
|
+
"enableJsonFlag": false,
|
|
93
|
+
"isESM": false,
|
|
94
|
+
"relativePath": [
|
|
95
|
+
"dist",
|
|
96
|
+
"commands",
|
|
97
|
+
"balance",
|
|
98
|
+
"index.js"
|
|
99
|
+
]
|
|
100
|
+
},
|
|
101
|
+
"compress-sol": {
|
|
102
|
+
"aliases": [],
|
|
103
|
+
"args": {},
|
|
104
|
+
"examples": [
|
|
105
|
+
"$ light compress-sol --to PublicKey --amount 10"
|
|
106
|
+
],
|
|
107
|
+
"flags": {
|
|
67
108
|
"to": {
|
|
68
109
|
"description": "Specify the recipient address.",
|
|
69
110
|
"name": "to",
|
|
@@ -73,7 +114,7 @@
|
|
|
73
114
|
"type": "option"
|
|
74
115
|
},
|
|
75
116
|
"amount": {
|
|
76
|
-
"description": "Amount to
|
|
117
|
+
"description": "Amount to compress, in lamports.",
|
|
77
118
|
"name": "amount",
|
|
78
119
|
"required": true,
|
|
79
120
|
"hasDynamicHelp": false,
|
|
@@ -83,26 +124,26 @@
|
|
|
83
124
|
},
|
|
84
125
|
"hasDynamicHelp": false,
|
|
85
126
|
"hiddenAliases": [],
|
|
86
|
-
"id": "
|
|
127
|
+
"id": "compress-sol",
|
|
87
128
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
88
129
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
89
130
|
"pluginType": "core",
|
|
90
131
|
"strict": true,
|
|
91
|
-
"summary": "
|
|
132
|
+
"summary": "Compress SOL.",
|
|
92
133
|
"enableJsonFlag": false,
|
|
93
134
|
"isESM": false,
|
|
94
135
|
"relativePath": [
|
|
95
136
|
"dist",
|
|
96
137
|
"commands",
|
|
97
|
-
"
|
|
138
|
+
"compress-sol",
|
|
98
139
|
"index.js"
|
|
99
140
|
]
|
|
100
141
|
},
|
|
101
|
-
"
|
|
142
|
+
"decompress-sol": {
|
|
102
143
|
"aliases": [],
|
|
103
144
|
"args": {},
|
|
104
145
|
"examples": [
|
|
105
|
-
"$ light
|
|
146
|
+
"$ light decompress-sol --to PublicKey --amount 10"
|
|
106
147
|
],
|
|
107
148
|
"flags": {
|
|
108
149
|
"to": {
|
|
@@ -114,7 +155,7 @@
|
|
|
114
155
|
"type": "option"
|
|
115
156
|
},
|
|
116
157
|
"amount": {
|
|
117
|
-
"description": "Amount to
|
|
158
|
+
"description": "Amount to decompress, in lamports.",
|
|
118
159
|
"name": "amount",
|
|
119
160
|
"required": true,
|
|
120
161
|
"hasDynamicHelp": false,
|
|
@@ -124,48 +165,49 @@
|
|
|
124
165
|
},
|
|
125
166
|
"hasDynamicHelp": false,
|
|
126
167
|
"hiddenAliases": [],
|
|
127
|
-
"id": "
|
|
168
|
+
"id": "decompress-sol",
|
|
128
169
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
129
170
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
130
171
|
"pluginType": "core",
|
|
131
172
|
"strict": true,
|
|
132
|
-
"summary": "
|
|
173
|
+
"summary": "Decompress SOL.",
|
|
133
174
|
"enableJsonFlag": false,
|
|
134
175
|
"isESM": false,
|
|
135
176
|
"relativePath": [
|
|
136
177
|
"dist",
|
|
137
178
|
"commands",
|
|
138
|
-
"
|
|
179
|
+
"decompress-sol",
|
|
139
180
|
"index.js"
|
|
140
181
|
]
|
|
141
182
|
},
|
|
142
|
-
"
|
|
183
|
+
"create-mint": {
|
|
143
184
|
"aliases": [],
|
|
144
185
|
"args": {},
|
|
145
186
|
"examples": [
|
|
146
|
-
"$ light
|
|
187
|
+
"$ light create-mint --mint-decimals 5"
|
|
147
188
|
],
|
|
148
189
|
"flags": {
|
|
149
|
-
"mint": {
|
|
150
|
-
"description": "
|
|
151
|
-
"name": "mint",
|
|
152
|
-
"required":
|
|
190
|
+
"mint-keypair": {
|
|
191
|
+
"description": "Provide a path to a mint keypair file. Defaults to a random keypair",
|
|
192
|
+
"name": "mint-keypair",
|
|
193
|
+
"required": false,
|
|
153
194
|
"hasDynamicHelp": false,
|
|
154
195
|
"multiple": false,
|
|
155
196
|
"type": "option"
|
|
156
197
|
},
|
|
157
|
-
"
|
|
158
|
-
"description": "
|
|
159
|
-
"name": "
|
|
160
|
-
"required":
|
|
198
|
+
"mint-authority": {
|
|
199
|
+
"description": "Address of the mint authority. Defaults to the fee payer",
|
|
200
|
+
"name": "mint-authority",
|
|
201
|
+
"required": false,
|
|
161
202
|
"hasDynamicHelp": false,
|
|
162
203
|
"multiple": false,
|
|
163
204
|
"type": "option"
|
|
164
205
|
},
|
|
165
|
-
"
|
|
166
|
-
"description": "
|
|
167
|
-
"name": "
|
|
168
|
-
"required":
|
|
206
|
+
"mint-decimals": {
|
|
207
|
+
"description": "Number of base 10 digits to the right of the decimal place [default: 9]",
|
|
208
|
+
"name": "mint-decimals",
|
|
209
|
+
"required": false,
|
|
210
|
+
"default": 9,
|
|
169
211
|
"hasDynamicHelp": false,
|
|
170
212
|
"multiple": false,
|
|
171
213
|
"type": "option"
|
|
@@ -173,18 +215,18 @@
|
|
|
173
215
|
},
|
|
174
216
|
"hasDynamicHelp": false,
|
|
175
217
|
"hiddenAliases": [],
|
|
176
|
-
"id": "
|
|
218
|
+
"id": "create-mint",
|
|
177
219
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
178
220
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
179
221
|
"pluginType": "core",
|
|
180
222
|
"strict": true,
|
|
181
|
-
"summary": "
|
|
223
|
+
"summary": "Create a new compressed token mint",
|
|
182
224
|
"enableJsonFlag": false,
|
|
183
225
|
"isESM": false,
|
|
184
226
|
"relativePath": [
|
|
185
227
|
"dist",
|
|
186
228
|
"commands",
|
|
187
|
-
"
|
|
229
|
+
"create-mint",
|
|
188
230
|
"index.js"
|
|
189
231
|
]
|
|
190
232
|
},
|
|
@@ -294,75 +336,33 @@
|
|
|
294
336
|
"index.js"
|
|
295
337
|
]
|
|
296
338
|
},
|
|
297
|
-
"
|
|
339
|
+
"compress-spl": {
|
|
298
340
|
"aliases": [],
|
|
299
341
|
"args": {},
|
|
300
342
|
"examples": [
|
|
301
|
-
"$ light
|
|
343
|
+
"$ light compress-spl --mint PublicKey --to PublicKey --amount 10"
|
|
302
344
|
],
|
|
303
345
|
"flags": {
|
|
304
|
-
"
|
|
305
|
-
"description": "Specify the
|
|
306
|
-
"name": "
|
|
346
|
+
"mint": {
|
|
347
|
+
"description": "Specify the mint address.",
|
|
348
|
+
"name": "mint",
|
|
307
349
|
"required": true,
|
|
308
350
|
"hasDynamicHelp": false,
|
|
309
351
|
"multiple": false,
|
|
310
352
|
"type": "option"
|
|
311
353
|
},
|
|
312
|
-
"
|
|
313
|
-
"description": "
|
|
314
|
-
"name": "
|
|
354
|
+
"to": {
|
|
355
|
+
"description": "Specify the recipient address (owner of destination compressed token account).",
|
|
356
|
+
"name": "to",
|
|
315
357
|
"required": true,
|
|
316
358
|
"hasDynamicHelp": false,
|
|
317
359
|
"multiple": false,
|
|
318
360
|
"type": "option"
|
|
319
|
-
}
|
|
320
|
-
},
|
|
321
|
-
"hasDynamicHelp": false,
|
|
322
|
-
"hiddenAliases": [],
|
|
323
|
-
"id": "decompress-sol",
|
|
324
|
-
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
325
|
-
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
326
|
-
"pluginType": "core",
|
|
327
|
-
"strict": true,
|
|
328
|
-
"summary": "Decompress SOL.",
|
|
329
|
-
"enableJsonFlag": false,
|
|
330
|
-
"isESM": false,
|
|
331
|
-
"relativePath": [
|
|
332
|
-
"dist",
|
|
333
|
-
"commands",
|
|
334
|
-
"decompress-sol",
|
|
335
|
-
"index.js"
|
|
336
|
-
]
|
|
337
|
-
},
|
|
338
|
-
"create-mint": {
|
|
339
|
-
"aliases": [],
|
|
340
|
-
"args": {},
|
|
341
|
-
"examples": [
|
|
342
|
-
"$ light create-mint --mint-decimals 5"
|
|
343
|
-
],
|
|
344
|
-
"flags": {
|
|
345
|
-
"mint-keypair": {
|
|
346
|
-
"description": "Provide a path to a mint keypair file. Defaults to a random keypair",
|
|
347
|
-
"name": "mint-keypair",
|
|
348
|
-
"required": false,
|
|
349
|
-
"hasDynamicHelp": false,
|
|
350
|
-
"multiple": false,
|
|
351
|
-
"type": "option"
|
|
352
361
|
},
|
|
353
|
-
"
|
|
354
|
-
"description": "
|
|
355
|
-
"name": "
|
|
356
|
-
"required":
|
|
357
|
-
"hasDynamicHelp": false,
|
|
358
|
-
"multiple": false,
|
|
359
|
-
"type": "option"
|
|
360
|
-
},
|
|
361
|
-
"mint-decimals": {
|
|
362
|
-
"description": "Number of base 10 digits to the right of the decimal place [default: 9]",
|
|
363
|
-
"name": "mint-decimals",
|
|
364
|
-
"required": false,
|
|
365
|
-
"default": 9,
|
|
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.5.
|
|
765
|
+
"version": "0.5.1"
|
|
766
766
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightprotocol/zk-compression-cli",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
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.4.
|
|
48
|
-
"@lightprotocol/stateless.js": "0.5.
|
|
47
|
+
"@lightprotocol/compressed-token": "0.4.1",
|
|
48
|
+
"@lightprotocol/stateless.js": "0.5.1",
|
|
49
49
|
"@lightprotocol/hasher.rs": "0.2.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|