@lightprotocol/zk-compression-cli 0.4.3 → 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.
Binary file
package/bin/forester CHANGED
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
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.registerMint)((0, utils_1.rpc)(), payer, mintAddress);
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.26.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/";
@@ -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.26.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/";
@@ -98,34 +98,25 @@
98
98
  "index.js"
99
99
  ]
100
100
  },
101
- "create-mint": {
101
+ "compress-sol": {
102
102
  "aliases": [],
103
103
  "args": {},
104
104
  "examples": [
105
- "$ light create-mint --mint-decimals 5"
105
+ "$ light compress-sol --to PublicKey --amount 10"
106
106
  ],
107
107
  "flags": {
108
- "mint-keypair": {
109
- "description": "Provide a path to a mint keypair file. Defaults to a random keypair",
110
- "name": "mint-keypair",
111
- "required": false,
112
- "hasDynamicHelp": false,
113
- "multiple": false,
114
- "type": "option"
115
- },
116
- "mint-authority": {
117
- "description": "Address of the mint authority. Defaults to the fee payer",
118
- "name": "mint-authority",
119
- "required": false,
108
+ "to": {
109
+ "description": "Specify the recipient address.",
110
+ "name": "to",
111
+ "required": true,
120
112
  "hasDynamicHelp": false,
121
113
  "multiple": false,
122
114
  "type": "option"
123
115
  },
124
- "mint-decimals": {
125
- "description": "Number of base 10 digits to the right of the decimal place [default: 9]",
126
- "name": "mint-decimals",
127
- "required": false,
128
- "default": 9,
116
+ "amount": {
117
+ "description": "Amount to compress, in lamports.",
118
+ "name": "amount",
119
+ "required": true,
129
120
  "hasDynamicHelp": false,
130
121
  "multiple": false,
131
122
  "type": "option"
@@ -133,124 +124,117 @@
133
124
  },
134
125
  "hasDynamicHelp": false,
135
126
  "hiddenAliases": [],
136
- "id": "create-mint",
127
+ "id": "compress-sol",
137
128
  "pluginAlias": "@lightprotocol/zk-compression-cli",
138
129
  "pluginName": "@lightprotocol/zk-compression-cli",
139
130
  "pluginType": "core",
140
131
  "strict": true,
141
- "summary": "Create a new compressed token mint",
132
+ "summary": "Compress SOL.",
142
133
  "enableJsonFlag": false,
143
134
  "isESM": false,
144
135
  "relativePath": [
145
136
  "dist",
146
137
  "commands",
147
- "create-mint",
138
+ "compress-sol",
148
139
  "index.js"
149
140
  ]
150
141
  },
151
- "config:config": {
142
+ "compress-spl": {
152
143
  "aliases": [],
153
144
  "args": {},
154
- "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",
155
145
  "examples": [
156
- "$ light config --solanaRpcUrl https://solana-api.example.com"
146
+ "$ light compress-spl --mint PublicKey --to PublicKey --amount 10"
157
147
  ],
158
148
  "flags": {
159
- "solanaRpcUrl": {
160
- "description": "Solana RPC url",
161
- "name": "solanaRpcUrl",
149
+ "mint": {
150
+ "description": "Specify the mint address.",
151
+ "name": "mint",
152
+ "required": true,
162
153
  "hasDynamicHelp": false,
163
154
  "multiple": false,
164
155
  "type": "option"
165
156
  },
166
- "indexerUrl": {
167
- "description": "Indexer url",
168
- "name": "indexerUrl",
157
+ "to": {
158
+ "description": "Specify the recipient address (owner of destination compressed token account).",
159
+ "name": "to",
160
+ "required": true,
169
161
  "hasDynamicHelp": false,
170
162
  "multiple": false,
171
163
  "type": "option"
172
164
  },
173
- "proverUrl": {
174
- "description": "Prover url",
175
- "name": "proverUrl",
165
+ "amount": {
166
+ "description": "Amount to compress, in tokens.",
167
+ "name": "amount",
168
+ "required": true,
176
169
  "hasDynamicHelp": false,
177
170
  "multiple": false,
178
171
  "type": "option"
179
- },
180
- "get": {
181
- "description": "Gets the current config values",
182
- "name": "get",
183
- "required": false,
184
- "allowNo": false,
185
- "type": "boolean"
186
172
  }
187
173
  },
188
174
  "hasDynamicHelp": false,
189
175
  "hiddenAliases": [],
190
- "id": "config:config",
176
+ "id": "compress-spl",
191
177
  "pluginAlias": "@lightprotocol/zk-compression-cli",
192
178
  "pluginName": "@lightprotocol/zk-compression-cli",
193
179
  "pluginType": "core",
194
180
  "strict": true,
181
+ "summary": "Compress SPL tokens.",
195
182
  "enableJsonFlag": false,
196
183
  "isESM": false,
197
184
  "relativePath": [
198
185
  "dist",
199
186
  "commands",
200
- "config",
187
+ "compress-spl",
201
188
  "index.js"
202
189
  ]
203
190
  },
204
- "config": {
191
+ "create-mint": {
205
192
  "aliases": [],
206
193
  "args": {},
207
- "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",
208
194
  "examples": [
209
- "$ light config --solanaRpcUrl https://solana-api.example.com"
195
+ "$ light create-mint --mint-decimals 5"
210
196
  ],
211
197
  "flags": {
212
- "solanaRpcUrl": {
213
- "description": "Solana RPC url",
214
- "name": "solanaRpcUrl",
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,
215
202
  "hasDynamicHelp": false,
216
203
  "multiple": false,
217
204
  "type": "option"
218
205
  },
219
- "indexerUrl": {
220
- "description": "Indexer url",
221
- "name": "indexerUrl",
206
+ "mint-authority": {
207
+ "description": "Address of the mint authority. Defaults to the fee payer",
208
+ "name": "mint-authority",
209
+ "required": false,
222
210
  "hasDynamicHelp": false,
223
211
  "multiple": false,
224
212
  "type": "option"
225
213
  },
226
- "proverUrl": {
227
- "description": "Prover url",
228
- "name": "proverUrl",
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,
229
219
  "hasDynamicHelp": false,
230
220
  "multiple": false,
231
221
  "type": "option"
232
- },
233
- "get": {
234
- "description": "Gets the current config values",
235
- "name": "get",
236
- "required": false,
237
- "allowNo": false,
238
- "type": "boolean"
239
222
  }
240
223
  },
241
224
  "hasDynamicHelp": false,
242
225
  "hiddenAliases": [],
243
- "id": "config",
226
+ "id": "create-mint",
244
227
  "pluginAlias": "@lightprotocol/zk-compression-cli",
245
228
  "pluginName": "@lightprotocol/zk-compression-cli",
246
229
  "pluginType": "core",
247
230
  "strict": true,
231
+ "summary": "Create a new compressed token mint",
248
232
  "enableJsonFlag": false,
249
233
  "isESM": false,
250
234
  "relativePath": [
251
235
  "dist",
252
236
  "commands",
253
- "config",
237
+ "create-mint",
254
238
  "index.js"
255
239
  ]
256
240
  },
@@ -295,93 +279,109 @@
295
279
  "index.js"
296
280
  ]
297
281
  },
298
- "compress-spl": {
282
+ "config:config": {
299
283
  "aliases": [],
300
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",
301
286
  "examples": [
302
- "$ light compress-spl --mint PublicKey --to PublicKey --amount 10"
287
+ "$ light config --solanaRpcUrl https://solana-api.example.com"
303
288
  ],
304
289
  "flags": {
305
- "mint": {
306
- "description": "Specify the mint address.",
307
- "name": "mint",
308
- "required": true,
290
+ "solanaRpcUrl": {
291
+ "description": "Solana RPC url",
292
+ "name": "solanaRpcUrl",
309
293
  "hasDynamicHelp": false,
310
294
  "multiple": false,
311
295
  "type": "option"
312
296
  },
313
- "to": {
314
- "description": "Specify the recipient address (owner of destination compressed token account).",
315
- "name": "to",
316
- "required": true,
297
+ "indexerUrl": {
298
+ "description": "Indexer url",
299
+ "name": "indexerUrl",
317
300
  "hasDynamicHelp": false,
318
301
  "multiple": false,
319
302
  "type": "option"
320
303
  },
321
- "amount": {
322
- "description": "Amount to compress, in tokens.",
323
- "name": "amount",
324
- "required": true,
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": "compress-spl",
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": "Compress SPL tokens.",
338
326
  "enableJsonFlag": false,
339
327
  "isESM": false,
340
328
  "relativePath": [
341
329
  "dist",
342
330
  "commands",
343
- "compress-spl",
331
+ "config",
344
332
  "index.js"
345
333
  ]
346
334
  },
347
- "compress-sol": {
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 compress-sol --to PublicKey --amount 10"
340
+ "$ light config --solanaRpcUrl https://solana-api.example.com"
352
341
  ],
353
342
  "flags": {
354
- "to": {
355
- "description": "Specify the recipient address.",
356
- "name": "to",
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
- "amount": {
363
- "description": "Amount to compress, in lamports.",
364
- "name": "amount",
365
- "required": true,
350
+ "indexerUrl": {
351
+ "description": "Indexer url",
352
+ "name": "indexerUrl",
353
+ "hasDynamicHelp": false,
354
+ "multiple": false,
355
+ "type": "option"
356
+ },
357
+ "proverUrl": {
358
+ "description": "Prover url",
359
+ "name": "proverUrl",
366
360
  "hasDynamicHelp": false,
367
361
  "multiple": false,
368
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": "compress-sol",
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
- "compress-sol",
384
+ "config",
385
385
  "index.js"
386
386
  ]
387
387
  },
@@ -762,5 +762,5 @@
762
762
  ]
763
763
  }
764
764
  },
765
- "version": "0.4.3"
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",
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.1",
48
- "@lightprotocol/hasher.rs": "0.2.0",
49
- "@lightprotocol/stateless.js": "0.4.1"
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",