@lightprotocol/zk-compression-cli 0.7.0 → 0.9.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.
Files changed (37) hide show
  1. package/accounts/{address_merkle_tree_C83cpRN6oaafjNgMQJvaYgAz592EP5wunKvbokeTKPLn.json → address_merkle_tree_amt1Ayt45jfbdw5YSo7iz6WZxUmnZsQTYXy82hVwyC2.json} +1 -1
  2. package/accounts/address_merkle_tree_queue_aq1S9z4reTSQAdgWHGD2zDaS39sjGrAxbR31vxJ2F4F.json +1 -0
  3. package/accounts/{cpi_context_Bvux5m7rMGXJfjNCKUXHaRMcVJCiDe6iWu8ANj8kpwu5.json → cpi_context_cpi1uHzrEhBG733DoEJNgHCyRS3XmmyVNZx5fonubE4.json} +1 -1
  4. package/accounts/epoch_pda_34w7KcLBXabMkHuXE2fY368vFe6kP3v5EJn8nPvQ8SKn.json +1 -0
  5. package/accounts/forester_epoch_pda_3FBt1BPQHCQkS8k3wrUXMfB6JBhtMhEqQXueHRw2ojZV.json +1 -0
  6. package/accounts/governance_authority_pda_CuEtcKkkbTn6qy2qxqDswq5U2ADsqoipYDAYfRvxPjcp.json +1 -0
  7. package/accounts/group_pda_24rt4RgeyjUCWGS2eF7L7gyNMuz6JWdqYpAvb1KRoHxs.json +1 -0
  8. package/accounts/{merkle_tree_pubkey_5bdFnXU47QjzGpzHfXnxcEi5WXyxzEAZzd1vrE39bf1W.json → merkle_tree_pubkey_smt1NamzXdq4AMqS2fS2F1i5KTYPZRhoHgWx38d8WsT.json} +1 -1
  9. package/accounts/nullifier_queue_pubkey_nfq1NvQDJ2GEgnS8zt9prAe8rjjpAW1zFkrvZoBR148.json +1 -0
  10. package/accounts/registered_forester_pda_2KNqEh23Se8AHecuzR1UkxL26euq2qXSpQPTH1jH7VqU.json +1 -0
  11. package/accounts/registered_program_pda_35hkDgaAKwMCaxRz2ocSZ6NaUrtKkyNqU6c4RV3tYJRh.json +1 -0
  12. package/accounts/registered_registry_program_pda_DumMsyvkaGJG4QnQ1BhTgvoRMXsgGxfpKDUCr22Xqu4w.json +1 -0
  13. package/bin/account_compression.so +0 -0
  14. package/bin/forester +0 -0
  15. package/bin/forester.toml +6 -3
  16. package/bin/light_compressed_token.so +0 -0
  17. package/bin/light_registry.so +0 -0
  18. package/bin/light_system_program.so +0 -0
  19. package/bin/prover-darwin-arm64 +0 -0
  20. package/bin/prover-darwin-x64 +0 -0
  21. package/bin/prover-linux-arm64 +0 -0
  22. package/bin/prover-linux-x64 +0 -0
  23. package/bin/prover-windows-arm64.exe +0 -0
  24. package/bin/prover-windows-x64.exe +0 -0
  25. package/dist/commands/balance/index.js +2 -2
  26. package/dist/utils/constants.d.ts +1 -1
  27. package/dist/utils/constants.js +1 -1
  28. package/dist/utils/initTestEnv.js +4 -4
  29. package/oclif.manifest.json +85 -85
  30. package/package.json +4 -4
  31. package/accounts/address_merkle_tree_queue_HNjtNrjt6irUPYEgxhx2Vcs42koK9fxzm3aFLHVaaRWz.json +0 -1
  32. package/accounts/governance_authority_pda_8KEKiyAMugpKq9XCGzx81UtTBuytByW8arm9EaBVpD5k.json +0 -1
  33. package/accounts/group_pda_5e3BWAnQAgpNdANLnMQp45MgUy7gQtZcwYkWv3MwgdZR.json +0 -1
  34. package/accounts/nullifier_queue_pubkey_44J4oDXpjPAbzHCSc24q7NEiPekss4sAbLd8ka4gd9CZ.json +0 -1
  35. package/accounts/registered_forester_epoch_pda_DFiGEbaz75wSdqy9bpeWacqLWrqAwWBfqh4iSYtejiwK.json +0 -1
  36. package/accounts/registered_program_pda_ApB3ASTFzS1RrccrB1cnNDPAAWrm1X4KSeNh2G3qSaxx.json +0 -1
  37. 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}}
@@ -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,5 +1,8 @@
1
1
  CU_LIMIT=1_000_000
2
- CONCURRENCY_LIMIT=100
3
2
  RPC_POOL_SIZE=20
4
- PHOTON_BATCH_SIZE=50
5
- MAX_RETRIES=5
3
+ MAX_RETRIES=5
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
Binary file
Binary file
Binary file
Binary file
Binary file
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.39.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/";
@@ -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.39.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/";
@@ -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: "H5sFv8VwWmjxHYS2GB4fTDsK7uTtnRT4WiixtHrET3bN",
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: "HXVfQ44ATEi9WBKLSCCwM54KokdkzqXci9xCQ7ST9SYN",
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: "CbjvJc1SNx1aav8tU49dJGHu8EUdzQJSMtkjDmV8miqK",
124
+ id: "compr6CUsB5m2jS4Y3831ztGSTnDpnKJTKS95d64XVq",
125
125
  name: "account_compression.so",
126
126
  tag: constants_1.LIGHT_ACCOUNT_COMPRESSION_TAG,
127
127
  },
128
128
  {
129
- id: "7Z9Yuy3HkBCc2Wf3xzMGnz6qpV4n7ciwcoEMGKqhAnj1",
129
+ id: "Lighton6oQpVkeewmo2mcPTQQp7kYHr4fWpAgJyEmDX",
130
130
  name: "light_registry.so",
131
131
  tag: constants_1.LIGHT_REGISTRY_TAG,
132
132
  },
@@ -57,55 +57,6 @@
57
57
  "index.js"
58
58
  ]
59
59
  },
60
- "compress-spl": {
61
- "aliases": [],
62
- "args": {},
63
- "examples": [
64
- "$ light compress-spl --mint PublicKey --to PublicKey --amount 10"
65
- ],
66
- "flags": {
67
- "mint": {
68
- "description": "Specify the mint address.",
69
- "name": "mint",
70
- "required": true,
71
- "hasDynamicHelp": false,
72
- "multiple": false,
73
- "type": "option"
74
- },
75
- "to": {
76
- "description": "Specify the recipient address (owner of destination compressed token account).",
77
- "name": "to",
78
- "required": true,
79
- "hasDynamicHelp": false,
80
- "multiple": false,
81
- "type": "option"
82
- },
83
- "amount": {
84
- "description": "Amount to compress, in tokens.",
85
- "name": "amount",
86
- "required": true,
87
- "hasDynamicHelp": false,
88
- "multiple": false,
89
- "type": "option"
90
- }
91
- },
92
- "hasDynamicHelp": false,
93
- "hiddenAliases": [],
94
- "id": "compress-spl",
95
- "pluginAlias": "@lightprotocol/zk-compression-cli",
96
- "pluginName": "@lightprotocol/zk-compression-cli",
97
- "pluginType": "core",
98
- "strict": true,
99
- "summary": "Compress SPL tokens.",
100
- "enableJsonFlag": false,
101
- "isESM": false,
102
- "relativePath": [
103
- "dist",
104
- "commands",
105
- "compress-spl",
106
- "index.js"
107
- ]
108
- },
109
60
  "balance": {
110
61
  "aliases": [],
111
62
  "args": {},
@@ -147,34 +98,25 @@
147
98
  "index.js"
148
99
  ]
149
100
  },
150
- "create-mint": {
101
+ "compress-sol": {
151
102
  "aliases": [],
152
103
  "args": {},
153
104
  "examples": [
154
- "$ light create-mint --mint-decimals 5"
105
+ "$ light compress-sol --to PublicKey --amount 10"
155
106
  ],
156
107
  "flags": {
157
- "mint-keypair": {
158
- "description": "Provide a path to a mint keypair file. Defaults to a random keypair",
159
- "name": "mint-keypair",
160
- "required": false,
161
- "hasDynamicHelp": false,
162
- "multiple": false,
163
- "type": "option"
164
- },
165
- "mint-authority": {
166
- "description": "Address of the mint authority. Defaults to the fee payer",
167
- "name": "mint-authority",
168
- "required": false,
108
+ "to": {
109
+ "description": "Specify the recipient address.",
110
+ "name": "to",
111
+ "required": true,
169
112
  "hasDynamicHelp": false,
170
113
  "multiple": false,
171
114
  "type": "option"
172
115
  },
173
- "mint-decimals": {
174
- "description": "Number of base 10 digits to the right of the decimal place [default: 9]",
175
- "name": "mint-decimals",
176
- "required": false,
177
- "default": 9,
116
+ "amount": {
117
+ "description": "Amount to compress, in lamports.",
118
+ "name": "amount",
119
+ "required": true,
178
120
  "hasDynamicHelp": false,
179
121
  "multiple": false,
180
122
  "type": "option"
@@ -182,30 +124,38 @@
182
124
  },
183
125
  "hasDynamicHelp": false,
184
126
  "hiddenAliases": [],
185
- "id": "create-mint",
127
+ "id": "compress-sol",
186
128
  "pluginAlias": "@lightprotocol/zk-compression-cli",
187
129
  "pluginName": "@lightprotocol/zk-compression-cli",
188
130
  "pluginType": "core",
189
131
  "strict": true,
190
- "summary": "Create a new compressed token mint",
132
+ "summary": "Compress SOL.",
191
133
  "enableJsonFlag": false,
192
134
  "isESM": false,
193
135
  "relativePath": [
194
136
  "dist",
195
137
  "commands",
196
- "create-mint",
138
+ "compress-sol",
197
139
  "index.js"
198
140
  ]
199
141
  },
200
- "decompress-sol": {
142
+ "compress-spl": {
201
143
  "aliases": [],
202
144
  "args": {},
203
145
  "examples": [
204
- "$ light decompress-sol --to PublicKey --amount 10"
146
+ "$ light compress-spl --mint PublicKey --to PublicKey --amount 10"
205
147
  ],
206
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
+ },
207
157
  "to": {
208
- "description": "Specify the recipient address.",
158
+ "description": "Specify the recipient address (owner of destination compressed token account).",
209
159
  "name": "to",
210
160
  "required": true,
211
161
  "hasDynamicHelp": false,
@@ -213,7 +163,7 @@
213
163
  "type": "option"
214
164
  },
215
165
  "amount": {
216
- "description": "Amount to decompress, in lamports.",
166
+ "description": "Amount to compress, in tokens.",
217
167
  "name": "amount",
218
168
  "required": true,
219
169
  "hasDynamicHelp": false,
@@ -223,18 +173,18 @@
223
173
  },
224
174
  "hasDynamicHelp": false,
225
175
  "hiddenAliases": [],
226
- "id": "decompress-sol",
176
+ "id": "compress-spl",
227
177
  "pluginAlias": "@lightprotocol/zk-compression-cli",
228
178
  "pluginName": "@lightprotocol/zk-compression-cli",
229
179
  "pluginType": "core",
230
180
  "strict": true,
231
- "summary": "Decompress SOL.",
181
+ "summary": "Compress SPL tokens.",
232
182
  "enableJsonFlag": false,
233
183
  "isESM": false,
234
184
  "relativePath": [
235
185
  "dist",
236
186
  "commands",
237
- "decompress-sol",
187
+ "compress-spl",
238
188
  "index.js"
239
189
  ]
240
190
  },
@@ -344,11 +294,61 @@
344
294
  "index.js"
345
295
  ]
346
296
  },
347
- "compress-sol": {
297
+ "create-mint": {
348
298
  "aliases": [],
349
299
  "args": {},
350
300
  "examples": [
351
- "$ light compress-sol --to PublicKey --amount 10"
301
+ "$ light create-mint --mint-decimals 5"
302
+ ],
303
+ "flags": {
304
+ "mint-keypair": {
305
+ "description": "Provide a path to a mint keypair file. Defaults to a random keypair",
306
+ "name": "mint-keypair",
307
+ "required": false,
308
+ "hasDynamicHelp": false,
309
+ "multiple": false,
310
+ "type": "option"
311
+ },
312
+ "mint-authority": {
313
+ "description": "Address of the mint authority. Defaults to the fee payer",
314
+ "name": "mint-authority",
315
+ "required": false,
316
+ "hasDynamicHelp": false,
317
+ "multiple": false,
318
+ "type": "option"
319
+ },
320
+ "mint-decimals": {
321
+ "description": "Number of base 10 digits to the right of the decimal place [default: 9]",
322
+ "name": "mint-decimals",
323
+ "required": false,
324
+ "default": 9,
325
+ "hasDynamicHelp": false,
326
+ "multiple": false,
327
+ "type": "option"
328
+ }
329
+ },
330
+ "hasDynamicHelp": false,
331
+ "hiddenAliases": [],
332
+ "id": "create-mint",
333
+ "pluginAlias": "@lightprotocol/zk-compression-cli",
334
+ "pluginName": "@lightprotocol/zk-compression-cli",
335
+ "pluginType": "core",
336
+ "strict": true,
337
+ "summary": "Create a new compressed token mint",
338
+ "enableJsonFlag": false,
339
+ "isESM": false,
340
+ "relativePath": [
341
+ "dist",
342
+ "commands",
343
+ "create-mint",
344
+ "index.js"
345
+ ]
346
+ },
347
+ "decompress-sol": {
348
+ "aliases": [],
349
+ "args": {},
350
+ "examples": [
351
+ "$ light decompress-sol --to PublicKey --amount 10"
352
352
  ],
353
353
  "flags": {
354
354
  "to": {
@@ -360,7 +360,7 @@
360
360
  "type": "option"
361
361
  },
362
362
  "amount": {
363
- "description": "Amount to compress, in lamports.",
363
+ "description": "Amount to decompress, in lamports.",
364
364
  "name": "amount",
365
365
  "required": true,
366
366
  "hasDynamicHelp": false,
@@ -370,18 +370,18 @@
370
370
  },
371
371
  "hasDynamicHelp": false,
372
372
  "hiddenAliases": [],
373
- "id": "compress-sol",
373
+ "id": "decompress-sol",
374
374
  "pluginAlias": "@lightprotocol/zk-compression-cli",
375
375
  "pluginName": "@lightprotocol/zk-compression-cli",
376
376
  "pluginType": "core",
377
377
  "strict": true,
378
- "summary": "Compress SOL.",
378
+ "summary": "Decompress SOL.",
379
379
  "enableJsonFlag": false,
380
380
  "isESM": false,
381
381
  "relativePath": [
382
382
  "dist",
383
383
  "commands",
384
- "compress-sol",
384
+ "decompress-sol",
385
385
  "index.js"
386
386
  ]
387
387
  },
@@ -762,5 +762,5 @@
762
762
  ]
763
763
  }
764
764
  },
765
- "version": "0.7.0"
765
+ "version": "0.9.0"
766
766
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightprotocol/zk-compression-cli",
3
- "version": "0.7.0",
3
+ "version": "0.9.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/compressed-token": "0.6.0",
48
- "@lightprotocol/stateless.js": "0.7.0",
49
- "@lightprotocol/hasher.rs": "0.2.0"
47
+ "@lightprotocol/compressed-token": "0.11.0",
48
+ "@lightprotocol/hasher.rs": "0.2.0",
49
+ "@lightprotocol/stateless.js": "0.11.0"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@oclif/test": "2.3.9",