@lightprotocol/zk-compression-cli 0.3.0 → 0.4.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_C83cpRN6oaafjNgMQJvaYgAz592EP5wunKvbokeTKPLn.json +1 -1
- package/accounts/address_merkle_tree_queue_HNjtNrjt6irUPYEgxhx2Vcs42koK9fxzm3aFLHVaaRWz.json +1 -1
- package/accounts/cpi_context_Bvux5m7rMGXJfjNCKUXHaRMcVJCiDe6iWu8ANj8kpwu5.json +1 -0
- package/accounts/governance_authority_pda_8KEKiyAMugpKq9XCGzx81UtTBuytByW8arm9EaBVpD5k.json +1 -0
- package/accounts/group_pda_5e3BWAnQAgpNdANLnMQp45MgUy7gQtZcwYkWv3MwgdZR.json +1 -0
- package/accounts/merkle_tree_pubkey_5bdFnXU47QjzGpzHfXnxcEi5WXyxzEAZzd1vrE39bf1W.json +1 -1
- package/accounts/nullifier_queue_pubkey_44J4oDXpjPAbzHCSc24q7NEiPekss4sAbLd8ka4gd9CZ.json +1 -1
- package/accounts/registered_forester_epoch_pda_DFiGEbaz75wSdqy9bpeWacqLWrqAwWBfqh4iSYtejiwK.json +1 -0
- package/accounts/registered_program_pda_ApB3ASTFzS1RrccrB1cnNDPAAWrm1X4KSeNh2G3qSaxx.json +1 -0
- package/accounts/registered_registry_program_pda_CYAHAD4k1MExp219NfV9scN9GWzrMLhLpWqouwbvbVNo.json +1 -0
- package/bin/account_compression.so +0 -0
- package/bin/forester +0 -0
- package/bin/forester.toml +10 -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/approve-and-mint-to/index.js +1 -5
- package/dist/commands/balance/index.js +1 -5
- package/dist/commands/compress-sol/index.js +1 -4
- package/dist/commands/compress-spl/index.js +1 -5
- package/dist/commands/config/config.d.ts +2 -0
- package/dist/commands/config/config.js +34 -6
- package/dist/commands/create-mint/index.d.ts +2 -2
- package/dist/commands/create-mint/index.js +8 -12
- package/dist/commands/decompress-sol/index.js +1 -4
- package/dist/commands/decompress-spl/index.js +2 -6
- package/dist/commands/mint-to/index.js +1 -5
- package/dist/commands/register-mint/index.d.ts +0 -3
- package/dist/commands/register-mint/index.js +1 -16
- package/dist/commands/start-prover/index.d.ts +1 -0
- package/dist/commands/start-prover/index.js +6 -1
- package/dist/commands/test-validator/index.d.ts +6 -0
- package/dist/commands/test-validator/index.js +42 -5
- package/dist/commands/transfer/index.js +1 -5
- package/dist/utils/constants.d.ts +6 -1
- package/dist/utils/constants.js +7 -2
- package/dist/utils/initTestEnv.d.ts +17 -4
- package/dist/utils/initTestEnv.js +40 -19
- package/dist/utils/process.d.ts +1 -1
- package/dist/utils/process.js +11 -5
- package/dist/utils/processForester.d.ts +3 -0
- package/dist/utils/processForester.js +25 -0
- package/dist/utils/processPhotonIndexer.d.ts +1 -1
- package/dist/utils/processPhotonIndexer.js +10 -3
- package/dist/utils/processProverServer.d.ts +1 -1
- package/dist/utils/processProverServer.js +4 -3
- package/dist/utils/utils.d.ts +6 -0
- package/dist/utils/utils.js +20 -1
- package/oclif.manifest.json +190 -108
- package/package.json +27 -8
- package/accounts/governance_authority_pda_3MtrKu5Mjgh3JqeE5PeRzw2Ld28XjFgbbph67E6UERSx.json +0 -1
- package/accounts/group_pda_Edo2YjXU5eE17CejPBkupPgFLcYuAX47pGZmM7s2hAkj.json +0 -1
- package/accounts/registered_program_pda_ytwwVWhQUMoTKdirKmvEW5xCRVr4B2dJZnToiHtE2L2.json +0 -1
- package/bin/light_compressed_pda.so +0 -0
package/oclif.manifest.json
CHANGED
|
@@ -1,182 +1,190 @@
|
|
|
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
|
-
},
|
|
67
|
-
"to": {
|
|
68
|
-
"description": "Specify the recipient address.",
|
|
69
|
-
"name": "to",
|
|
70
|
-
"required": true,
|
|
71
|
-
"hasDynamicHelp": false,
|
|
72
|
-
"multiple": false,
|
|
73
|
-
"type": "option"
|
|
74
|
-
},
|
|
75
|
-
"amount": {
|
|
76
|
-
"description": "Amount to mint, in tokens.",
|
|
77
|
-
"name": "amount",
|
|
78
|
-
"required": true,
|
|
79
|
-
"hasDynamicHelp": false,
|
|
80
|
-
"multiple": false,
|
|
81
|
-
"type": "option"
|
|
82
82
|
}
|
|
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
|
-
"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",
|
|
105
104
|
"examples": [
|
|
106
|
-
"$ light
|
|
105
|
+
"$ light compress-spl --mint PublicKey --to PublicKey --amount 10"
|
|
107
106
|
],
|
|
108
107
|
"flags": {
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
108
|
+
"mint": {
|
|
109
|
+
"description": "Specify the mint address.",
|
|
110
|
+
"name": "mint",
|
|
111
|
+
"required": true,
|
|
113
112
|
"hasDynamicHelp": false,
|
|
114
113
|
"multiple": false,
|
|
115
114
|
"type": "option"
|
|
116
115
|
},
|
|
117
|
-
"
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
"
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
"type": "
|
|
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",
|
|
127
|
+
"required": true,
|
|
128
|
+
"hasDynamicHelp": false,
|
|
129
|
+
"multiple": false,
|
|
130
|
+
"type": "option"
|
|
124
131
|
}
|
|
125
132
|
},
|
|
126
133
|
"hasDynamicHelp": false,
|
|
127
134
|
"hiddenAliases": [],
|
|
128
|
-
"id": "
|
|
135
|
+
"id": "compress-spl",
|
|
129
136
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
130
137
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
131
138
|
"pluginType": "core",
|
|
132
139
|
"strict": true,
|
|
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
|
-
"
|
|
150
|
+
"compress-sol": {
|
|
143
151
|
"aliases": [],
|
|
144
152
|
"args": {},
|
|
145
|
-
"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",
|
|
146
153
|
"examples": [
|
|
147
|
-
"$ light
|
|
154
|
+
"$ light compress-sol --to PublicKey --amount 10"
|
|
148
155
|
],
|
|
149
156
|
"flags": {
|
|
150
|
-
"
|
|
151
|
-
"
|
|
152
|
-
"
|
|
153
|
-
"
|
|
157
|
+
"to": {
|
|
158
|
+
"description": "Specify the recipient address.",
|
|
159
|
+
"name": "to",
|
|
160
|
+
"required": true,
|
|
154
161
|
"hasDynamicHelp": false,
|
|
155
162
|
"multiple": false,
|
|
156
163
|
"type": "option"
|
|
157
164
|
},
|
|
158
|
-
"
|
|
159
|
-
"
|
|
160
|
-
"
|
|
161
|
-
"
|
|
162
|
-
"
|
|
163
|
-
"
|
|
164
|
-
"type": "
|
|
165
|
+
"amount": {
|
|
166
|
+
"description": "Amount to compress, in lamports.",
|
|
167
|
+
"name": "amount",
|
|
168
|
+
"required": true,
|
|
169
|
+
"hasDynamicHelp": false,
|
|
170
|
+
"multiple": false,
|
|
171
|
+
"type": "option"
|
|
165
172
|
}
|
|
166
173
|
},
|
|
167
174
|
"hasDynamicHelp": false,
|
|
168
175
|
"hiddenAliases": [],
|
|
169
|
-
"id": "
|
|
176
|
+
"id": "compress-sol",
|
|
170
177
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
171
178
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
172
179
|
"pluginType": "core",
|
|
173
180
|
"strict": true,
|
|
181
|
+
"summary": "Compress SOL.",
|
|
174
182
|
"enableJsonFlag": false,
|
|
175
183
|
"isESM": false,
|
|
176
184
|
"relativePath": [
|
|
177
185
|
"dist",
|
|
178
186
|
"commands",
|
|
179
|
-
"
|
|
187
|
+
"compress-sol",
|
|
180
188
|
"index.js"
|
|
181
189
|
]
|
|
182
190
|
},
|
|
@@ -196,7 +204,7 @@
|
|
|
196
204
|
"type": "option"
|
|
197
205
|
},
|
|
198
206
|
"mint-authority": {
|
|
199
|
-
"description": "
|
|
207
|
+
"description": "Address of the mint authority. Defaults to the fee payer",
|
|
200
208
|
"name": "mint-authority",
|
|
201
209
|
"required": false,
|
|
202
210
|
"hasDynamicHelp": false,
|
|
@@ -271,93 +279,109 @@
|
|
|
271
279
|
"index.js"
|
|
272
280
|
]
|
|
273
281
|
},
|
|
274
|
-
"
|
|
282
|
+
"config:config": {
|
|
275
283
|
"aliases": [],
|
|
276
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",
|
|
277
286
|
"examples": [
|
|
278
|
-
"$ light
|
|
287
|
+
"$ light config --solanaRpcUrl https://solana-api.example.com"
|
|
279
288
|
],
|
|
280
289
|
"flags": {
|
|
281
|
-
"
|
|
282
|
-
"description": "
|
|
283
|
-
"name": "
|
|
284
|
-
"required": true,
|
|
290
|
+
"solanaRpcUrl": {
|
|
291
|
+
"description": "Solana RPC url",
|
|
292
|
+
"name": "solanaRpcUrl",
|
|
285
293
|
"hasDynamicHelp": false,
|
|
286
294
|
"multiple": false,
|
|
287
295
|
"type": "option"
|
|
288
296
|
},
|
|
289
|
-
"
|
|
290
|
-
"description": "
|
|
291
|
-
"name": "
|
|
292
|
-
"required": true,
|
|
297
|
+
"indexerUrl": {
|
|
298
|
+
"description": "Indexer url",
|
|
299
|
+
"name": "indexerUrl",
|
|
293
300
|
"hasDynamicHelp": false,
|
|
294
301
|
"multiple": false,
|
|
295
302
|
"type": "option"
|
|
303
|
+
},
|
|
304
|
+
"proverUrl": {
|
|
305
|
+
"description": "Prover url",
|
|
306
|
+
"name": "proverUrl",
|
|
307
|
+
"hasDynamicHelp": false,
|
|
308
|
+
"multiple": false,
|
|
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"
|
|
296
317
|
}
|
|
297
318
|
},
|
|
298
319
|
"hasDynamicHelp": false,
|
|
299
320
|
"hiddenAliases": [],
|
|
300
|
-
"id": "
|
|
321
|
+
"id": "config:config",
|
|
301
322
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
302
323
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
303
324
|
"pluginType": "core",
|
|
304
325
|
"strict": true,
|
|
305
|
-
"summary": "Compress SOL.",
|
|
306
326
|
"enableJsonFlag": false,
|
|
307
327
|
"isESM": false,
|
|
308
328
|
"relativePath": [
|
|
309
329
|
"dist",
|
|
310
330
|
"commands",
|
|
311
|
-
"
|
|
331
|
+
"config",
|
|
312
332
|
"index.js"
|
|
313
333
|
]
|
|
314
334
|
},
|
|
315
|
-
"
|
|
335
|
+
"config": {
|
|
316
336
|
"aliases": [],
|
|
317
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",
|
|
318
339
|
"examples": [
|
|
319
|
-
"$ light
|
|
340
|
+
"$ light config --solanaRpcUrl https://solana-api.example.com"
|
|
320
341
|
],
|
|
321
342
|
"flags": {
|
|
322
|
-
"
|
|
323
|
-
"description": "
|
|
324
|
-
"name": "
|
|
325
|
-
"required": true,
|
|
343
|
+
"solanaRpcUrl": {
|
|
344
|
+
"description": "Solana RPC url",
|
|
345
|
+
"name": "solanaRpcUrl",
|
|
326
346
|
"hasDynamicHelp": false,
|
|
327
347
|
"multiple": false,
|
|
328
348
|
"type": "option"
|
|
329
349
|
},
|
|
330
|
-
"
|
|
331
|
-
"description": "
|
|
332
|
-
"name": "
|
|
333
|
-
"required": true,
|
|
350
|
+
"indexerUrl": {
|
|
351
|
+
"description": "Indexer url",
|
|
352
|
+
"name": "indexerUrl",
|
|
334
353
|
"hasDynamicHelp": false,
|
|
335
354
|
"multiple": false,
|
|
336
355
|
"type": "option"
|
|
337
356
|
},
|
|
338
|
-
"
|
|
339
|
-
"description": "
|
|
340
|
-
"name": "
|
|
341
|
-
"required": true,
|
|
357
|
+
"proverUrl": {
|
|
358
|
+
"description": "Prover url",
|
|
359
|
+
"name": "proverUrl",
|
|
342
360
|
"hasDynamicHelp": false,
|
|
343
361
|
"multiple": false,
|
|
344
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"
|
|
345
370
|
}
|
|
346
371
|
},
|
|
347
372
|
"hasDynamicHelp": false,
|
|
348
373
|
"hiddenAliases": [],
|
|
349
|
-
"id": "
|
|
374
|
+
"id": "config",
|
|
350
375
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
351
376
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
352
377
|
"pluginType": "core",
|
|
353
378
|
"strict": true,
|
|
354
|
-
"summary": "Compress SPL tokens.",
|
|
355
379
|
"enableJsonFlag": false,
|
|
356
380
|
"isESM": false,
|
|
357
381
|
"relativePath": [
|
|
358
382
|
"dist",
|
|
359
383
|
"commands",
|
|
360
|
-
"
|
|
384
|
+
"config",
|
|
361
385
|
"index.js"
|
|
362
386
|
]
|
|
363
387
|
},
|
|
@@ -481,14 +505,6 @@
|
|
|
481
505
|
"hasDynamicHelp": false,
|
|
482
506
|
"multiple": false,
|
|
483
507
|
"type": "option"
|
|
484
|
-
},
|
|
485
|
-
"mint-authority": {
|
|
486
|
-
"description": "Specify a path to the mint authority keypair file. Defaults to your default local solana wallet file path",
|
|
487
|
-
"name": "mint-authority",
|
|
488
|
-
"required": false,
|
|
489
|
-
"hasDynamicHelp": false,
|
|
490
|
-
"multiple": false,
|
|
491
|
-
"type": "option"
|
|
492
508
|
}
|
|
493
509
|
},
|
|
494
510
|
"hasDynamicHelp": false,
|
|
@@ -526,6 +542,15 @@
|
|
|
526
542
|
"name": "skip-prove-new-addresses",
|
|
527
543
|
"allowNo": false,
|
|
528
544
|
"type": "boolean"
|
|
545
|
+
},
|
|
546
|
+
"prover-port": {
|
|
547
|
+
"description": "Enable Light Prover server on this port.",
|
|
548
|
+
"name": "prover-port",
|
|
549
|
+
"required": false,
|
|
550
|
+
"default": 3001,
|
|
551
|
+
"hasDynamicHelp": false,
|
|
552
|
+
"multiple": false,
|
|
553
|
+
"type": "option"
|
|
529
554
|
}
|
|
530
555
|
},
|
|
531
556
|
"hasDynamicHelp": false,
|
|
@@ -561,6 +586,12 @@
|
|
|
561
586
|
"allowNo": false,
|
|
562
587
|
"type": "boolean"
|
|
563
588
|
},
|
|
589
|
+
"skip-forester": {
|
|
590
|
+
"description": "Runs a test validator without starting a new forester service.",
|
|
591
|
+
"name": "skip-forester",
|
|
592
|
+
"allowNo": false,
|
|
593
|
+
"type": "boolean"
|
|
594
|
+
},
|
|
564
595
|
"skip-system-accounts": {
|
|
565
596
|
"description": "Runs a test validator without initialized light system accounts.",
|
|
566
597
|
"name": "skip-system-accounts",
|
|
@@ -604,6 +635,57 @@
|
|
|
604
635
|
"hasDynamicHelp": false,
|
|
605
636
|
"multiple": false,
|
|
606
637
|
"type": "option"
|
|
638
|
+
},
|
|
639
|
+
"rpc-port": {
|
|
640
|
+
"description": "Enable JSON RPC on this port, and the next port for the RPC websocket.",
|
|
641
|
+
"name": "rpc-port",
|
|
642
|
+
"required": false,
|
|
643
|
+
"default": 8899,
|
|
644
|
+
"hasDynamicHelp": false,
|
|
645
|
+
"multiple": false,
|
|
646
|
+
"type": "option"
|
|
647
|
+
},
|
|
648
|
+
"indexer-port": {
|
|
649
|
+
"description": "Enable Photon indexer on this port.",
|
|
650
|
+
"exclusive": [
|
|
651
|
+
"skip-indexer"
|
|
652
|
+
],
|
|
653
|
+
"name": "indexer-port",
|
|
654
|
+
"required": false,
|
|
655
|
+
"default": 8784,
|
|
656
|
+
"hasDynamicHelp": false,
|
|
657
|
+
"multiple": false,
|
|
658
|
+
"type": "option"
|
|
659
|
+
},
|
|
660
|
+
"prover-port": {
|
|
661
|
+
"description": "Enable Light Prover server on this port.",
|
|
662
|
+
"exclusive": [
|
|
663
|
+
"skip-prover"
|
|
664
|
+
],
|
|
665
|
+
"name": "prover-port",
|
|
666
|
+
"required": false,
|
|
667
|
+
"default": 3001,
|
|
668
|
+
"hasDynamicHelp": false,
|
|
669
|
+
"multiple": false,
|
|
670
|
+
"type": "option"
|
|
671
|
+
},
|
|
672
|
+
"limit-ledger-size": {
|
|
673
|
+
"description": "Keep this amount of shreds in root slots.",
|
|
674
|
+
"name": "limit-ledger-size",
|
|
675
|
+
"required": false,
|
|
676
|
+
"default": 10000,
|
|
677
|
+
"hasDynamicHelp": false,
|
|
678
|
+
"multiple": false,
|
|
679
|
+
"type": "option"
|
|
680
|
+
},
|
|
681
|
+
"gossip-host": {
|
|
682
|
+
"description": "Gossip DNS name or IP address for the validator to advertise in gossip.",
|
|
683
|
+
"name": "gossip-host",
|
|
684
|
+
"required": false,
|
|
685
|
+
"default": "127.0.0.1",
|
|
686
|
+
"hasDynamicHelp": false,
|
|
687
|
+
"multiple": false,
|
|
688
|
+
"type": "option"
|
|
607
689
|
}
|
|
608
690
|
},
|
|
609
691
|
"hasDynamicHelp": false,
|
|
@@ -680,5 +762,5 @@
|
|
|
680
762
|
]
|
|
681
763
|
}
|
|
682
764
|
},
|
|
683
|
-
"version": "0.
|
|
765
|
+
"version": "0.4.0"
|
|
684
766
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightprotocol/zk-compression-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "ZK Compression: Secure Scaling on Solana",
|
|
5
5
|
"maintainers": [
|
|
6
6
|
{
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"cli-progress": "^3.12.0",
|
|
37
37
|
"cli-spinners": "^2.9.2",
|
|
38
38
|
"dotenv": "^16.4.5",
|
|
39
|
-
"ffjavascript": "^0.
|
|
39
|
+
"ffjavascript": "^0.3.0",
|
|
40
40
|
"find-process": "^1.4.7",
|
|
41
41
|
"node-fetch": "^3.3.2",
|
|
42
42
|
"snake-case": "^3.0.4",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"wait-on": "^7.2.0",
|
|
46
46
|
"which": "^4.0.0",
|
|
47
47
|
"@lightprotocol/compressed-token": "0.2.0",
|
|
48
|
-
"@lightprotocol/stateless.js": "0.
|
|
49
|
-
"@lightprotocol/hasher.rs": "0.
|
|
48
|
+
"@lightprotocol/stateless.js": "0.4.0",
|
|
49
|
+
"@lightprotocol/hasher.rs": "0.2.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@oclif/test": "2.3.9",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@types/chai": "^4.3.14",
|
|
56
56
|
"@types/cli-progress": "^3.11.5",
|
|
57
57
|
"@types/mocha": "^10.0.6",
|
|
58
|
-
"@types/node": "^20.12.
|
|
58
|
+
"@types/node": "^20.12.8",
|
|
59
59
|
"@types/tar": "^6.1.12",
|
|
60
60
|
"@types/which": "^3.0.3",
|
|
61
61
|
"@typescript-eslint/eslint-plugin": "^7.6.0",
|
|
@@ -67,12 +67,13 @@
|
|
|
67
67
|
"eslint-config-prettier": "9.1.0",
|
|
68
68
|
"mocha": "^10.2.0",
|
|
69
69
|
"oclif": "4.8.0",
|
|
70
|
-
"prettier": "^3.
|
|
70
|
+
"prettier": "^3.3.2",
|
|
71
71
|
"shx": "^0.3.4",
|
|
72
72
|
"ts-mocha": "^10.0.0",
|
|
73
73
|
"ts-node": "^10.9.2",
|
|
74
74
|
"tslib": "^2.6.2",
|
|
75
|
-
"typescript": "5.
|
|
75
|
+
"typescript": "^5.4.5",
|
|
76
|
+
"@lightprotocol/programs": "0.3.0"
|
|
76
77
|
},
|
|
77
78
|
"oclif": {
|
|
78
79
|
"bin": "light",
|
|
@@ -93,8 +94,26 @@
|
|
|
93
94
|
"oclif"
|
|
94
95
|
],
|
|
95
96
|
"types": "dist/index.d.ts",
|
|
97
|
+
"nx": {
|
|
98
|
+
"targets": {
|
|
99
|
+
"build": {
|
|
100
|
+
"inputs": [
|
|
101
|
+
"{workspaceRoot}/js",
|
|
102
|
+
"{workspaceRoot}/programs",
|
|
103
|
+
"{workspaceRoot}/gnark-prover",
|
|
104
|
+
"{workspaceRoot}/forester"
|
|
105
|
+
],
|
|
106
|
+
"outputs": [
|
|
107
|
+
"{workspaceRoot}/bin",
|
|
108
|
+
"{workspaceRoot}/dist",
|
|
109
|
+
"{workspaceRoot}/lib",
|
|
110
|
+
"{workspaceRoot}/test_bin"
|
|
111
|
+
]
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
96
115
|
"scripts": {
|
|
97
|
-
"add-bins": "./scripts/copyLocalProgramBinaries.sh && scripts/buildProver.sh",
|
|
116
|
+
"add-bins": "./scripts/copyLocalProgramBinaries.sh && ./scripts/copyForester.sh && scripts/buildProver.sh",
|
|
98
117
|
"postinstall": "[ -d ./bin ] && find ./bin -type f -exec chmod +x {} + || echo 'No bin directory found, skipping chmod'",
|
|
99
118
|
"build": "shx rm -rf dist && pnpm tsc -p tsconfig.json && pnpm tsc -p tsconfig.test.json && pnpm add-bins",
|
|
100
119
|
"format": "pnpm prettier --write \"src/**/*.{ts,js}\" \"test/**/*.{ts,js}\" -w",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"pubkey":"3MtrKu5Mjgh3JqeE5PeRzw2Ld28XjFgbbph67E6UERSx","account":{"lamports":1670400,"data":["92V2ansKL5ECY+L7WEJcIRnY07lwy9TuaZBIebD9aqhznpq8Pv+mUf8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==","base64"],"owner":"5WzvRtu7LABotw1SUEpguJiKU27LRGsiCnF5FH6VV7yP","executable":false,"rentEpoch":18446744073709551615,"space":112}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"pubkey":"Edo2YjXU5eE17CejPBkupPgFLcYuAX47pGZmM7s2hAkj","account":{"lamports":1392000,"data":["D88EoH8mjqI8PG6y+aSEZ/o4TIJ3bYkoyUgbwobeTNFoh+Cu3n7iQgEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEB","base64"],"owner":"5QPEJ5zDsVou9FQS3KCauKswM3VwBEBu4dpL9xTqkWwN","executable":false,"rentEpoch":18446744073709551615,"space":72}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"pubkey":"ytwwVWhQUMoTKdirKmvEW5xCRVr4B2dJZnToiHtE2L2","account":{"lamports":1169280,"data":["H/u06wN0MgRRbDK1AElbxd3XakUFa5L8Jfx7rz7IqOZvBtlHbLq4Uw==","base64"],"owner":"5QPEJ5zDsVou9FQS3KCauKswM3VwBEBu4dpL9xTqkWwN","executable":false,"rentEpoch":18446744073709551615,"space":40}}
|
|
Binary file
|