@lightprotocol/zk-compression-cli 0.6.0 → 0.8.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/accounts/{address_merkle_tree_C83cpRN6oaafjNgMQJvaYgAz592EP5wunKvbokeTKPLn.json → address_merkle_tree_amt1Ayt45jfbdw5YSo7iz6WZxUmnZsQTYXy82hVwyC2.json} +1 -1
- package/accounts/address_merkle_tree_queue_aq1S9z4reTSQAdgWHGD2zDaS39sjGrAxbR31vxJ2F4F.json +1 -0
- package/accounts/{cpi_context_Bvux5m7rMGXJfjNCKUXHaRMcVJCiDe6iWu8ANj8kpwu5.json → cpi_context_cpi1uHzrEhBG733DoEJNgHCyRS3XmmyVNZx5fonubE4.json} +1 -1
- package/accounts/epoch_pda_34w7KcLBXabMkHuXE2fY368vFe6kP3v5EJn8nPvQ8SKn.json +1 -0
- package/accounts/forester_epoch_pda_3FBt1BPQHCQkS8k3wrUXMfB6JBhtMhEqQXueHRw2ojZV.json +1 -0
- package/accounts/governance_authority_pda_CuEtcKkkbTn6qy2qxqDswq5U2ADsqoipYDAYfRvxPjcp.json +1 -0
- package/accounts/group_pda_24rt4RgeyjUCWGS2eF7L7gyNMuz6JWdqYpAvb1KRoHxs.json +1 -0
- package/accounts/{merkle_tree_pubkey_5bdFnXU47QjzGpzHfXnxcEi5WXyxzEAZzd1vrE39bf1W.json → merkle_tree_pubkey_smt1NamzXdq4AMqS2fS2F1i5KTYPZRhoHgWx38d8WsT.json} +1 -1
- package/accounts/nullifier_queue_pubkey_nfq1NvQDJ2GEgnS8zt9prAe8rjjpAW1zFkrvZoBR148.json +1 -0
- package/accounts/registered_forester_pda_2KNqEh23Se8AHecuzR1UkxL26euq2qXSpQPTH1jH7VqU.json +1 -0
- package/accounts/registered_program_pda_35hkDgaAKwMCaxRz2ocSZ6NaUrtKkyNqU6c4RV3tYJRh.json +1 -0
- package/accounts/registered_registry_program_pda_DumMsyvkaGJG4QnQ1BhTgvoRMXsgGxfpKDUCr22Xqu4w.json +1 -0
- package/bin/account_compression.so +0 -0
- package/bin/forester +0 -0
- package/bin/forester.toml +7 -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/commands/balance/index.js +2 -2
- package/dist/utils/constants.d.ts +1 -1
- package/dist/utils/constants.js +1 -1
- package/dist/utils/initTestEnv.js +4 -4
- package/oclif.manifest.json +91 -91
- package/package.json +4 -4
- package/accounts/address_merkle_tree_queue_HNjtNrjt6irUPYEgxhx2Vcs42koK9fxzm3aFLHVaaRWz.json +0 -1
- package/accounts/governance_authority_pda_8KEKiyAMugpKq9XCGzx81UtTBuytByW8arm9EaBVpD5k.json +0 -1
- package/accounts/group_pda_5e3BWAnQAgpNdANLnMQp45MgUy7gQtZcwYkWv3MwgdZR.json +0 -1
- package/accounts/nullifier_queue_pubkey_44J4oDXpjPAbzHCSc24q7NEiPekss4sAbLd8ka4gd9CZ.json +0 -1
- package/accounts/registered_forester_epoch_pda_DFiGEbaz75wSdqy9bpeWacqLWrqAwWBfqh4iSYtejiwK.json +0 -1
- package/accounts/registered_program_pda_ApB3ASTFzS1RrccrB1cnNDPAAWrm1X4KSeNh2G3qSaxx.json +0 -1
- package/accounts/registered_registry_program_pda_CYAHAD4k1MExp219NfV9scN9GWzrMLhLpWqouwbvbVNo.json +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"pubkey":"2KNqEh23Se8AHecuzR1UkxL26euq2qXSpQPTH1jH7VqU","account":{"lamports":1670400,"data":["My+7VlKZdQXMuMIVdedaPnWzorVHJCIvMcPXWnMDRUrSS6K/PzOqzAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==","base64"],"owner":"Lighton6oQpVkeewmo2mcPTQQp7kYHr4fWpAgJyEmDX","executable":false,"rentEpoch":18446744073709551615,"space":112}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"pubkey":"35hkDgaAKwMCaxRz2ocSZ6NaUrtKkyNqU6c4RV3tYJRh","account":{"lamports":1392000,"data":["H/u06wN0MgQGp1X4ITkFTUQksVrwxDDPL0t/mHk62hJS1I82ZsbLzg/Y1EfToz5VLJjxHxd2rjLiDsKHFAg5RA9dMMbnV0jY","base64"],"owner":"compr6CUsB5m2jS4Y3831ztGSTnDpnKJTKS95d64XVq","executable":false,"rentEpoch":18446744073709551615,"space":72}}
|
package/accounts/registered_registry_program_pda_DumMsyvkaGJG4QnQ1BhTgvoRMXsgGxfpKDUCr22Xqu4w.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"pubkey":"DumMsyvkaGJG4QnQ1BhTgvoRMXsgGxfpKDUCr22Xqu4w","account":{"lamports":1392000,"data":["H/u06wN0MgQFDSsTeVE2hc8C8rX9UpG9lZsrBgqlJepbNIE7Hbm3bg/Y1EfToz5VLJjxHxd2rjLiDsKHFAg5RA9dMMbnV0jY","base64"],"owner":"compr6CUsB5m2jS4Y3831ztGSTnDpnKJTKS95d64XVq","executable":false,"rentEpoch":18446744073709551615,"space":72}}
|
|
Binary file
|
package/bin/forester
CHANGED
|
Binary file
|
package/bin/forester.toml
CHANGED
|
@@ -1,17 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
|
14
|
-
CONCURRENCY_LIMIT=100
|
|
15
|
-
BATCH_SIZE=100
|
|
1
|
+
CU_LIMIT=1_000_000
|
|
2
|
+
RPC_POOL_SIZE=20
|
|
16
3
|
MAX_RETRIES=5
|
|
17
|
-
|
|
4
|
+
INDEXER_BATCH_SIZE=50
|
|
5
|
+
INDEXER_MAX_CONCURRENT_BATCHES=50
|
|
6
|
+
TRANSACTION_BATCH_SIZE=1
|
|
7
|
+
TRANSACTION_MAX_CONCURRENT_BATCHES=50
|
|
8
|
+
SLOT_UPDATE_INTERVAL_SECONDS=30
|
|
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
|
|
@@ -13,11 +13,11 @@ class BalanceCommand extends core_1.Command {
|
|
|
13
13
|
const refOwner = new web3_js_1.PublicKey(flags["owner"]);
|
|
14
14
|
const tokenAccounts = await (0, utils_1.rpc)().getCompressedTokenAccountsByOwner(refOwner, { mint: refMint });
|
|
15
15
|
loader.stop(false);
|
|
16
|
-
if (tokenAccounts.length === 0) {
|
|
16
|
+
if (tokenAccounts.items.length === 0) {
|
|
17
17
|
console.log("No token accounts found");
|
|
18
18
|
return;
|
|
19
19
|
}
|
|
20
|
-
const compressedTokenAccount = tokenAccounts.find((acc) => acc.parsed.mint.equals(refMint));
|
|
20
|
+
const compressedTokenAccount = tokenAccounts.items.find((acc) => acc.parsed.mint.equals(refMint));
|
|
21
21
|
if (compressedTokenAccount === undefined) {
|
|
22
22
|
console.log("No token accounts found");
|
|
23
23
|
return;
|
|
@@ -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.42.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.42.0";
|
|
23
23
|
exports.LIGHT_PROTOCOL_PROGRAMS_DIR_ENV = "LIGHT_PROTOCOL_PROGRAMS_DIR";
|
|
24
24
|
exports.BASE_PATH = "../../bin/";
|
|
@@ -111,22 +111,22 @@ async function getSolanaArgs({ additionalPrograms, skipSystemAccounts, limitLedg
|
|
|
111
111
|
tag: constants_1.SPL_NOOP_PROGRAM_TAG,
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
|
-
id: "
|
|
114
|
+
id: "SySTEM1eSU2p4BGQfQpimFEWWSC1XDFeun3Nqzz3rT7",
|
|
115
115
|
name: "light_system_program.so",
|
|
116
116
|
tag: constants_1.LIGHT_SYSTEM_PROGRAM_TAG,
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
|
-
id: "
|
|
119
|
+
id: "cTokenmWW8bLPjZEBAUgYy3zKxQZW6VKi7bqNFEVv3m",
|
|
120
120
|
name: "light_compressed_token.so",
|
|
121
121
|
tag: constants_1.LIGHT_COMPRESSED_TOKEN_TAG,
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
|
-
id: "
|
|
124
|
+
id: "compr6CUsB5m2jS4Y3831ztGSTnDpnKJTKS95d64XVq",
|
|
125
125
|
name: "account_compression.so",
|
|
126
126
|
tag: constants_1.LIGHT_ACCOUNT_COMPRESSION_TAG,
|
|
127
127
|
},
|
|
128
128
|
{
|
|
129
|
-
id: "
|
|
129
|
+
id: "Lighton6oQpVkeewmo2mcPTQQp7kYHr4fWpAgJyEmDX",
|
|
130
130
|
name: "light_registry.so",
|
|
131
131
|
tag: constants_1.LIGHT_REGISTRY_TAG,
|
|
132
132
|
},
|
package/oclif.manifest.json
CHANGED
|
@@ -57,6 +57,47 @@
|
|
|
57
57
|
"index.js"
|
|
58
58
|
]
|
|
59
59
|
},
|
|
60
|
+
"compress-sol": {
|
|
61
|
+
"aliases": [],
|
|
62
|
+
"args": {},
|
|
63
|
+
"examples": [
|
|
64
|
+
"$ light compress-sol --to PublicKey --amount 10"
|
|
65
|
+
],
|
|
66
|
+
"flags": {
|
|
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 compress, in lamports.",
|
|
77
|
+
"name": "amount",
|
|
78
|
+
"required": true,
|
|
79
|
+
"hasDynamicHelp": false,
|
|
80
|
+
"multiple": false,
|
|
81
|
+
"type": "option"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"hasDynamicHelp": false,
|
|
85
|
+
"hiddenAliases": [],
|
|
86
|
+
"id": "compress-sol",
|
|
87
|
+
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
88
|
+
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
89
|
+
"pluginType": "core",
|
|
90
|
+
"strict": true,
|
|
91
|
+
"summary": "Compress SOL.",
|
|
92
|
+
"enableJsonFlag": false,
|
|
93
|
+
"isESM": false,
|
|
94
|
+
"relativePath": [
|
|
95
|
+
"dist",
|
|
96
|
+
"commands",
|
|
97
|
+
"compress-sol",
|
|
98
|
+
"index.js"
|
|
99
|
+
]
|
|
100
|
+
},
|
|
60
101
|
"balance": {
|
|
61
102
|
"aliases": [],
|
|
62
103
|
"args": {},
|
|
@@ -98,6 +139,55 @@
|
|
|
98
139
|
"index.js"
|
|
99
140
|
]
|
|
100
141
|
},
|
|
142
|
+
"compress-spl": {
|
|
143
|
+
"aliases": [],
|
|
144
|
+
"args": {},
|
|
145
|
+
"examples": [
|
|
146
|
+
"$ light compress-spl --mint PublicKey --to PublicKey --amount 10"
|
|
147
|
+
],
|
|
148
|
+
"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
|
+
"to": {
|
|
158
|
+
"description": "Specify the recipient address (owner of destination compressed token account).",
|
|
159
|
+
"name": "to",
|
|
160
|
+
"required": true,
|
|
161
|
+
"hasDynamicHelp": false,
|
|
162
|
+
"multiple": false,
|
|
163
|
+
"type": "option"
|
|
164
|
+
},
|
|
165
|
+
"amount": {
|
|
166
|
+
"description": "Amount to compress, in tokens.",
|
|
167
|
+
"name": "amount",
|
|
168
|
+
"required": true,
|
|
169
|
+
"hasDynamicHelp": false,
|
|
170
|
+
"multiple": false,
|
|
171
|
+
"type": "option"
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"hasDynamicHelp": false,
|
|
175
|
+
"hiddenAliases": [],
|
|
176
|
+
"id": "compress-spl",
|
|
177
|
+
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
178
|
+
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
179
|
+
"pluginType": "core",
|
|
180
|
+
"strict": true,
|
|
181
|
+
"summary": "Compress SPL tokens.",
|
|
182
|
+
"enableJsonFlag": false,
|
|
183
|
+
"isESM": false,
|
|
184
|
+
"relativePath": [
|
|
185
|
+
"dist",
|
|
186
|
+
"commands",
|
|
187
|
+
"compress-spl",
|
|
188
|
+
"index.js"
|
|
189
|
+
]
|
|
190
|
+
},
|
|
101
191
|
"config:config": {
|
|
102
192
|
"aliases": [],
|
|
103
193
|
"args": {},
|
|
@@ -295,96 +385,6 @@
|
|
|
295
385
|
"index.js"
|
|
296
386
|
]
|
|
297
387
|
},
|
|
298
|
-
"compress-sol": {
|
|
299
|
-
"aliases": [],
|
|
300
|
-
"args": {},
|
|
301
|
-
"examples": [
|
|
302
|
-
"$ light compress-sol --to PublicKey --amount 10"
|
|
303
|
-
],
|
|
304
|
-
"flags": {
|
|
305
|
-
"to": {
|
|
306
|
-
"description": "Specify the recipient address.",
|
|
307
|
-
"name": "to",
|
|
308
|
-
"required": true,
|
|
309
|
-
"hasDynamicHelp": false,
|
|
310
|
-
"multiple": false,
|
|
311
|
-
"type": "option"
|
|
312
|
-
},
|
|
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,
|
|
350
|
-
"hasDynamicHelp": false,
|
|
351
|
-
"multiple": false,
|
|
352
|
-
"type": "option"
|
|
353
|
-
},
|
|
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
|
-
"hasDynamicHelp": false,
|
|
367
|
-
"multiple": false,
|
|
368
|
-
"type": "option"
|
|
369
|
-
}
|
|
370
|
-
},
|
|
371
|
-
"hasDynamicHelp": false,
|
|
372
|
-
"hiddenAliases": [],
|
|
373
|
-
"id": "compress-spl",
|
|
374
|
-
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
375
|
-
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
376
|
-
"pluginType": "core",
|
|
377
|
-
"strict": true,
|
|
378
|
-
"summary": "Compress SPL tokens.",
|
|
379
|
-
"enableJsonFlag": false,
|
|
380
|
-
"isESM": false,
|
|
381
|
-
"relativePath": [
|
|
382
|
-
"dist",
|
|
383
|
-
"commands",
|
|
384
|
-
"compress-spl",
|
|
385
|
-
"index.js"
|
|
386
|
-
]
|
|
387
|
-
},
|
|
388
388
|
"decompress-spl": {
|
|
389
389
|
"aliases": [],
|
|
390
390
|
"args": {},
|
|
@@ -762,5 +762,5 @@
|
|
|
762
762
|
]
|
|
763
763
|
}
|
|
764
764
|
},
|
|
765
|
-
"version": "0.
|
|
765
|
+
"version": "0.8.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.8.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/compressed-token": "0.11.0",
|
|
48
|
+
"@lightprotocol/stateless.js": "0.11.0",
|
|
49
|
+
"@lightprotocol/hasher.rs": "0.2.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@oclif/test": "2.3.9",
|