@lightprotocol/zk-compression-cli 0.25.0 → 0.27.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.
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -61,33 +61,21 @@ const initRepo = async (name, flags) => {
61
61
  "--define",
62
62
  `anchor-version=${constants_1.ANCHOR_VERSION}`,
63
63
  "--define",
64
- `borsh-version=${constants_1.BORSH_VERSION}`,
65
- "--define",
66
64
  `light-hasher-version=${constants_1.LIGHT_HASHER_VERSION}`,
67
65
  "--define",
68
66
  `light-macros-version=${constants_1.LIGHT_MACROS_VERSION}`,
69
67
  "--define",
70
- `light-account-checks-version=${constants_1.LIGHT_ACCOUNT_CHECKS}`,
68
+ `light-sdk-types-version=${constants_1.LIGHT_SDK_TYPES_VERSION}`,
71
69
  "--define",
72
70
  `light-sdk-version=${constants_1.LIGHT_SDK_VERSION}`,
73
71
  "--define",
74
72
  `light-sdk-macros-version=${constants_1.LIGHT_SDK_MACROS_VERSION}`,
75
73
  "--define",
76
- `light-utils-version=${constants_1.LIGHT_UTILS_VERSION}`,
77
- "--define",
78
- `light-compressed-account-version=${constants_1.LIGHT_COMPRESSED_ACCOUNT_VERSION}`,
79
- "--define",
80
- `light-verifier-version=${constants_1.LIGHT_VERIFIER_VERSION}`, // TODO: remove
81
- "--define",
82
74
  `solana-sdk-version=${constants_1.SOLANA_SDK_VERSION}`,
83
75
  "--define",
84
76
  `light-client-version=${constants_1.LIGHT_CLIENT_VERSION}`,
85
77
  "--define",
86
- `light-test-utils-version=${constants_1.LIGHT_TEST_UTILS_VERSION}`,
87
- "--define",
88
- `light-program-test-version=${constants_1.SOLANA_PROGRAM_TEST_VERSION}`,
89
- "--define",
90
- `solana-program-test-version=${constants_1.SOLANA_PROGRAM_TEST_VERSION}`, // TODO: remove
78
+ `light-program-test-version=${constants_1.LIGHT_PROGRAM_TEST_VERSION}`, // TODO: remove
91
79
  "--define",
92
80
  `tokio-version=${constants_1.TOKIO_VERSION}`,
93
81
  "--define",
@@ -18,7 +18,14 @@ class StartProver extends core_1.Command {
18
18
  const proverPort = flags["prover-port"] || 3001;
19
19
  const force = flags["force"] || false;
20
20
  const redisUrl = flags["redisUrl"] || process.env.REDIS_URL || undefined;
21
- await (0, processProverServer_1.startProver)(proverPort, flags["run-mode"], flags["circuit"], force, redisUrl);
21
+ // TODO: remove this workaround.
22
+ // Force local-rpc mode when rpc is specified
23
+ let runMode = flags["run-mode"];
24
+ if (runMode === "rpc") {
25
+ runMode = "local-rpc";
26
+ this.log("Note: Running in local-rpc mode instead of rpc mode");
27
+ }
28
+ await (0, processProverServer_1.startProver)(proverPort, runMode, flags["circuit"], force, redisUrl);
22
29
  const healthy = await (0, processProverServer_1.healthCheck)(proverPort, 10, 1000);
23
30
  loader.stop();
24
31
  if (healthy) {
@@ -21,20 +21,16 @@ export declare const BASE_PATH = "../../bin/";
21
21
  export declare const PROGRAM_ID = "Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS";
22
22
  export declare const SOLANA_SDK_VERSION = "2.2";
23
23
  export declare const ANCHOR_VERSION = "0.31.1";
24
- export declare const BORSH_VERSION = "0.10.4";
25
- export declare const COMPRESSED_PROGRAM_TEMPLATE_TAG = "v0.3.0";
24
+ export declare const COMPRESSED_PROGRAM_TEMPLATE_TAG = "v0.3.1";
26
25
  export declare const TOKIO_VERSION = "1.36.0";
27
- export declare const SOLANA_PROGRAM_TEST_VERSION = "2.2";
26
+ export declare const LIGHT_CLI_VERSION = "0.27.0";
28
27
  export declare const SOLANA_CLI_VERSION = "2.2.15";
29
28
  export declare const LIGHT_HASHER_VERSION = "3.1.0";
30
29
  export declare const LIGHT_MACROS_VERSION = "2.1.0";
31
- export declare const LIGHT_SDK_VERSION = "0.13.0";
32
30
  export declare const LIGHT_SDK_MACROS_VERSION = "0.13.0";
33
- export declare const LIGHT_UTILS_VERSION = "0.13.0";
31
+ export declare const LIGHT_SDK_VERSION = "0.13.0";
32
+ export declare const LIGHT_SDK_TYPES_VERSION = "0.13.0";
34
33
  export declare const LIGHT_COMPRESSED_ACCOUNT_VERSION = "0.3.0";
35
- export declare const LIGHT_VERIFIER_VERSION = "2.0.0";
36
- export declare const LIGHT_CLIENT_VERSION = "0.9.1";
37
- export declare const LIGHT_TEST_UTILS_VERSION = "1.2.1";
38
- export declare const LIGHT_ACCOUNT_CHECKS = "0.3.0";
34
+ export declare const LIGHT_PROGRAM_TEST_VERSION = "0.13.1";
35
+ export declare const LIGHT_CLIENT_VERSION = "0.13.0";
39
36
  export declare const STATELESS_JS_VERSION = "0.22.0";
40
- export declare const LIGHT_CLI_VERSION = "0.25.0";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LIGHT_CLI_VERSION = exports.STATELESS_JS_VERSION = exports.LIGHT_ACCOUNT_CHECKS = exports.LIGHT_TEST_UTILS_VERSION = exports.LIGHT_CLIENT_VERSION = exports.LIGHT_VERIFIER_VERSION = exports.LIGHT_COMPRESSED_ACCOUNT_VERSION = exports.LIGHT_UTILS_VERSION = exports.LIGHT_SDK_MACROS_VERSION = exports.LIGHT_SDK_VERSION = exports.LIGHT_MACROS_VERSION = exports.LIGHT_HASHER_VERSION = exports.SOLANA_CLI_VERSION = exports.SOLANA_PROGRAM_TEST_VERSION = exports.TOKIO_VERSION = exports.COMPRESSED_PROGRAM_TEMPLATE_TAG = exports.BORSH_VERSION = exports.ANCHOR_VERSION = exports.SOLANA_SDK_VERSION = exports.PROGRAM_ID = exports.BASE_PATH = exports.LIGHT_PROTOCOL_PROGRAMS_DIR_ENV = exports.PHOTON_GIT_COMMIT = exports.PHOTON_GIT_REPO = exports.USE_PHOTON_FROM_GIT = exports.PHOTON_VERSION = exports.INDEXER_PROCESS_NAME = exports.LIGHT_PROVER_PROCESS_NAME = exports.SOLANA_VALIDATOR_PROCESS_NAME = exports.CARGO_GENERATE_TAG = exports.DEFAULT_CONFIG = exports.CONFIG_FILE_NAME = exports.CONFIG_PATH = exports.LIGHT_COMPRESSED_TOKEN_TAG = exports.LIGHT_REGISTRY_TAG = exports.LIGHT_SYSTEM_PROGRAM_TAG = exports.LIGHT_ACCOUNT_COMPRESSION_TAG = exports.SPL_NOOP_PROGRAM_TAG = void 0;
3
+ exports.STATELESS_JS_VERSION = exports.LIGHT_CLIENT_VERSION = exports.LIGHT_PROGRAM_TEST_VERSION = exports.LIGHT_COMPRESSED_ACCOUNT_VERSION = exports.LIGHT_SDK_TYPES_VERSION = exports.LIGHT_SDK_VERSION = exports.LIGHT_SDK_MACROS_VERSION = exports.LIGHT_MACROS_VERSION = exports.LIGHT_HASHER_VERSION = exports.SOLANA_CLI_VERSION = exports.LIGHT_CLI_VERSION = exports.TOKIO_VERSION = exports.COMPRESSED_PROGRAM_TEMPLATE_TAG = exports.ANCHOR_VERSION = exports.SOLANA_SDK_VERSION = exports.PROGRAM_ID = exports.BASE_PATH = exports.LIGHT_PROTOCOL_PROGRAMS_DIR_ENV = exports.PHOTON_GIT_COMMIT = exports.PHOTON_GIT_REPO = exports.USE_PHOTON_FROM_GIT = exports.PHOTON_VERSION = exports.INDEXER_PROCESS_NAME = exports.LIGHT_PROVER_PROCESS_NAME = exports.SOLANA_VALIDATOR_PROCESS_NAME = exports.CARGO_GENERATE_TAG = exports.DEFAULT_CONFIG = exports.CONFIG_FILE_NAME = exports.CONFIG_PATH = exports.LIGHT_COMPRESSED_TOKEN_TAG = exports.LIGHT_REGISTRY_TAG = exports.LIGHT_SYSTEM_PROGRAM_TAG = exports.LIGHT_ACCOUNT_COMPRESSION_TAG = exports.SPL_NOOP_PROGRAM_TAG = void 0;
4
4
  exports.SPL_NOOP_PROGRAM_TAG = "spl-noop-v0.2.0";
5
5
  exports.LIGHT_ACCOUNT_COMPRESSION_TAG = "account-compression-v1.0.0";
6
6
  exports.LIGHT_SYSTEM_PROGRAM_TAG = "light-system-program-v1.0.0";
@@ -27,22 +27,16 @@ exports.BASE_PATH = "../../bin/";
27
27
  exports.PROGRAM_ID = "Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS";
28
28
  exports.SOLANA_SDK_VERSION = "2.2";
29
29
  exports.ANCHOR_VERSION = "0.31.1";
30
- exports.BORSH_VERSION = "0.10.4";
31
- exports.COMPRESSED_PROGRAM_TEMPLATE_TAG = "v0.3.0";
30
+ exports.COMPRESSED_PROGRAM_TEMPLATE_TAG = "v0.3.1";
32
31
  exports.TOKIO_VERSION = "1.36.0";
33
- exports.SOLANA_PROGRAM_TEST_VERSION = "2.2";
32
+ exports.LIGHT_CLI_VERSION = "0.27.0";
34
33
  exports.SOLANA_CLI_VERSION = "2.2.15";
35
34
  exports.LIGHT_HASHER_VERSION = "3.1.0";
36
35
  exports.LIGHT_MACROS_VERSION = "2.1.0";
37
- exports.LIGHT_SDK_VERSION = "0.13.0";
38
36
  exports.LIGHT_SDK_MACROS_VERSION = "0.13.0";
39
- exports.LIGHT_UTILS_VERSION = "0.13.0";
37
+ exports.LIGHT_SDK_VERSION = "0.13.0";
38
+ exports.LIGHT_SDK_TYPES_VERSION = "0.13.0";
40
39
  exports.LIGHT_COMPRESSED_ACCOUNT_VERSION = "0.3.0";
41
- exports.LIGHT_VERIFIER_VERSION = "2.0.0";
42
- exports.LIGHT_CLIENT_VERSION = "0.9.1";
43
- // TODO: replace with light program test
44
- exports.LIGHT_TEST_UTILS_VERSION = "1.2.1";
45
- exports.LIGHT_ACCOUNT_CHECKS = "0.3.0";
46
- // js packages
40
+ exports.LIGHT_PROGRAM_TEST_VERSION = "0.13.1";
41
+ exports.LIGHT_CLIENT_VERSION = "0.13.0";
47
42
  exports.STATELESS_JS_VERSION = "0.22.0";
48
- exports.LIGHT_CLI_VERSION = "0.25.0";
@@ -57,88 +57,6 @@
57
57
  "index.js"
58
58
  ]
59
59
  },
60
- "balance": {
61
- "aliases": [],
62
- "args": {},
63
- "examples": [
64
- "$ light balance --owner=<ADDRESS>"
65
- ],
66
- "flags": {
67
- "owner": {
68
- "description": "Address of the owner.",
69
- "name": "owner",
70
- "required": true,
71
- "hasDynamicHelp": false,
72
- "multiple": false,
73
- "type": "option"
74
- }
75
- },
76
- "hasDynamicHelp": false,
77
- "hiddenAliases": [],
78
- "id": "balance",
79
- "pluginAlias": "@lightprotocol/zk-compression-cli",
80
- "pluginName": "@lightprotocol/zk-compression-cli",
81
- "pluginType": "core",
82
- "strict": true,
83
- "summary": "Get compressed SOL balance",
84
- "enableJsonFlag": false,
85
- "isESM": false,
86
- "relativePath": [
87
- "dist",
88
- "commands",
89
- "balance",
90
- "index.js"
91
- ]
92
- },
93
- "compress-spl": {
94
- "aliases": [],
95
- "args": {},
96
- "examples": [
97
- "$ light compress-spl --mint PublicKey --to PublicKey --amount 10"
98
- ],
99
- "flags": {
100
- "mint": {
101
- "description": "Specify the mint address.",
102
- "name": "mint",
103
- "required": true,
104
- "hasDynamicHelp": false,
105
- "multiple": false,
106
- "type": "option"
107
- },
108
- "to": {
109
- "description": "Specify the recipient address (owner of destination compressed token account).",
110
- "name": "to",
111
- "required": true,
112
- "hasDynamicHelp": false,
113
- "multiple": false,
114
- "type": "option"
115
- },
116
- "amount": {
117
- "description": "Amount to compress, in tokens.",
118
- "name": "amount",
119
- "required": true,
120
- "hasDynamicHelp": false,
121
- "multiple": false,
122
- "type": "option"
123
- }
124
- },
125
- "hasDynamicHelp": false,
126
- "hiddenAliases": [],
127
- "id": "compress-spl",
128
- "pluginAlias": "@lightprotocol/zk-compression-cli",
129
- "pluginName": "@lightprotocol/zk-compression-cli",
130
- "pluginType": "core",
131
- "strict": true,
132
- "summary": "Compress SPL tokens.",
133
- "enableJsonFlag": false,
134
- "isESM": false,
135
- "relativePath": [
136
- "dist",
137
- "commands",
138
- "compress-spl",
139
- "index.js"
140
- ]
141
- },
142
60
  "compress-sol": {
143
61
  "aliases": [],
144
62
  "args": {},
@@ -230,16 +148,16 @@
230
148
  "index.js"
231
149
  ]
232
150
  },
233
- "create-token-pool": {
151
+ "balance": {
234
152
  "aliases": [],
235
153
  "args": {},
236
154
  "examples": [
237
- "$ light create-token-pool --mint-decimals 5"
155
+ "$ light balance --owner=<ADDRESS>"
238
156
  ],
239
157
  "flags": {
240
- "mint": {
241
- "description": "Provide a base58 encoded mint address to register",
242
- "name": "mint",
158
+ "owner": {
159
+ "description": "Address of the owner.",
160
+ "name": "owner",
243
161
  "required": true,
244
162
  "hasDynamicHelp": false,
245
163
  "multiple": false,
@@ -248,18 +166,18 @@
248
166
  },
249
167
  "hasDynamicHelp": false,
250
168
  "hiddenAliases": [],
251
- "id": "create-token-pool",
169
+ "id": "balance",
252
170
  "pluginAlias": "@lightprotocol/zk-compression-cli",
253
171
  "pluginName": "@lightprotocol/zk-compression-cli",
254
172
  "pluginType": "core",
255
173
  "strict": true,
256
- "summary": "Register an existing mint with the CompressedToken program",
174
+ "summary": "Get compressed SOL balance",
257
175
  "enableJsonFlag": false,
258
176
  "isESM": false,
259
177
  "relativePath": [
260
178
  "dist",
261
179
  "commands",
262
- "create-token-pool",
180
+ "balance",
263
181
  "index.js"
264
182
  ]
265
183
  },
@@ -369,6 +287,88 @@
369
287
  "index.js"
370
288
  ]
371
289
  },
290
+ "create-token-pool": {
291
+ "aliases": [],
292
+ "args": {},
293
+ "examples": [
294
+ "$ light create-token-pool --mint-decimals 5"
295
+ ],
296
+ "flags": {
297
+ "mint": {
298
+ "description": "Provide a base58 encoded mint address to register",
299
+ "name": "mint",
300
+ "required": true,
301
+ "hasDynamicHelp": false,
302
+ "multiple": false,
303
+ "type": "option"
304
+ }
305
+ },
306
+ "hasDynamicHelp": false,
307
+ "hiddenAliases": [],
308
+ "id": "create-token-pool",
309
+ "pluginAlias": "@lightprotocol/zk-compression-cli",
310
+ "pluginName": "@lightprotocol/zk-compression-cli",
311
+ "pluginType": "core",
312
+ "strict": true,
313
+ "summary": "Register an existing mint with the CompressedToken program",
314
+ "enableJsonFlag": false,
315
+ "isESM": false,
316
+ "relativePath": [
317
+ "dist",
318
+ "commands",
319
+ "create-token-pool",
320
+ "index.js"
321
+ ]
322
+ },
323
+ "compress-spl": {
324
+ "aliases": [],
325
+ "args": {},
326
+ "examples": [
327
+ "$ light compress-spl --mint PublicKey --to PublicKey --amount 10"
328
+ ],
329
+ "flags": {
330
+ "mint": {
331
+ "description": "Specify the mint address.",
332
+ "name": "mint",
333
+ "required": true,
334
+ "hasDynamicHelp": false,
335
+ "multiple": false,
336
+ "type": "option"
337
+ },
338
+ "to": {
339
+ "description": "Specify the recipient address (owner of destination compressed token account).",
340
+ "name": "to",
341
+ "required": true,
342
+ "hasDynamicHelp": false,
343
+ "multiple": false,
344
+ "type": "option"
345
+ },
346
+ "amount": {
347
+ "description": "Amount to compress, in tokens.",
348
+ "name": "amount",
349
+ "required": true,
350
+ "hasDynamicHelp": false,
351
+ "multiple": false,
352
+ "type": "option"
353
+ }
354
+ },
355
+ "hasDynamicHelp": false,
356
+ "hiddenAliases": [],
357
+ "id": "compress-spl",
358
+ "pluginAlias": "@lightprotocol/zk-compression-cli",
359
+ "pluginName": "@lightprotocol/zk-compression-cli",
360
+ "pluginType": "core",
361
+ "strict": true,
362
+ "summary": "Compress SPL tokens.",
363
+ "enableJsonFlag": false,
364
+ "isESM": false,
365
+ "relativePath": [
366
+ "dist",
367
+ "commands",
368
+ "compress-spl",
369
+ "index.js"
370
+ ]
371
+ },
372
372
  "decompress-sol": {
373
373
  "aliases": [],
374
374
  "args": {},
@@ -956,5 +956,5 @@
956
956
  ]
957
957
  }
958
958
  },
959
- "version": "0.25.0"
959
+ "version": "0.27.0"
960
960
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightprotocol/zk-compression-cli",
3
- "version": "0.25.0",
3
+ "version": "0.27.0",
4
4
  "description": "ZK Compression: Secure Scaling on Solana",
5
5
  "maintainers": [
6
6
  {