@lightprotocol/zk-compression-cli 0.26.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",
@@ -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.26.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.26.0";
@@ -57,6 +57,97 @@
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
+ },
101
+ "create-mint": {
102
+ "aliases": [],
103
+ "args": {},
104
+ "examples": [
105
+ "$ light create-mint --mint-decimals 5"
106
+ ],
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,
120
+ "hasDynamicHelp": false,
121
+ "multiple": false,
122
+ "type": "option"
123
+ },
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,
129
+ "hasDynamicHelp": false,
130
+ "multiple": false,
131
+ "type": "option"
132
+ }
133
+ },
134
+ "hasDynamicHelp": false,
135
+ "hiddenAliases": [],
136
+ "id": "create-mint",
137
+ "pluginAlias": "@lightprotocol/zk-compression-cli",
138
+ "pluginName": "@lightprotocol/zk-compression-cli",
139
+ "pluginType": "core",
140
+ "strict": true,
141
+ "summary": "Create a new compressed token mint",
142
+ "enableJsonFlag": false,
143
+ "isESM": false,
144
+ "relativePath": [
145
+ "dist",
146
+ "commands",
147
+ "create-mint",
148
+ "index.js"
149
+ ]
150
+ },
60
151
  "balance": {
61
152
  "aliases": [],
62
153
  "args": {},
@@ -229,97 +320,6 @@
229
320
  "index.js"
230
321
  ]
231
322
  },
232
- "create-mint": {
233
- "aliases": [],
234
- "args": {},
235
- "examples": [
236
- "$ light create-mint --mint-decimals 5"
237
- ],
238
- "flags": {
239
- "mint-keypair": {
240
- "description": "Provide a path to a mint keypair file. Defaults to a random keypair",
241
- "name": "mint-keypair",
242
- "required": false,
243
- "hasDynamicHelp": false,
244
- "multiple": false,
245
- "type": "option"
246
- },
247
- "mint-authority": {
248
- "description": "Address of the mint authority. Defaults to the fee payer",
249
- "name": "mint-authority",
250
- "required": false,
251
- "hasDynamicHelp": false,
252
- "multiple": false,
253
- "type": "option"
254
- },
255
- "mint-decimals": {
256
- "description": "Number of base 10 digits to the right of the decimal place [default: 9]",
257
- "name": "mint-decimals",
258
- "required": false,
259
- "default": 9,
260
- "hasDynamicHelp": false,
261
- "multiple": false,
262
- "type": "option"
263
- }
264
- },
265
- "hasDynamicHelp": false,
266
- "hiddenAliases": [],
267
- "id": "create-mint",
268
- "pluginAlias": "@lightprotocol/zk-compression-cli",
269
- "pluginName": "@lightprotocol/zk-compression-cli",
270
- "pluginType": "core",
271
- "strict": true,
272
- "summary": "Create a new compressed token mint",
273
- "enableJsonFlag": false,
274
- "isESM": false,
275
- "relativePath": [
276
- "dist",
277
- "commands",
278
- "create-mint",
279
- "index.js"
280
- ]
281
- },
282
- "compress-sol": {
283
- "aliases": [],
284
- "args": {},
285
- "examples": [
286
- "$ light compress-sol --to PublicKey --amount 10"
287
- ],
288
- "flags": {
289
- "to": {
290
- "description": "Specify the recipient address.",
291
- "name": "to",
292
- "required": true,
293
- "hasDynamicHelp": false,
294
- "multiple": false,
295
- "type": "option"
296
- },
297
- "amount": {
298
- "description": "Amount to compress, in lamports.",
299
- "name": "amount",
300
- "required": true,
301
- "hasDynamicHelp": false,
302
- "multiple": false,
303
- "type": "option"
304
- }
305
- },
306
- "hasDynamicHelp": false,
307
- "hiddenAliases": [],
308
- "id": "compress-sol",
309
- "pluginAlias": "@lightprotocol/zk-compression-cli",
310
- "pluginName": "@lightprotocol/zk-compression-cli",
311
- "pluginType": "core",
312
- "strict": true,
313
- "summary": "Compress SOL.",
314
- "enableJsonFlag": false,
315
- "isESM": false,
316
- "relativePath": [
317
- "dist",
318
- "commands",
319
- "compress-sol",
320
- "index.js"
321
- ]
322
- },
323
323
  "compress-spl": {
324
324
  "aliases": [],
325
325
  "args": {},
@@ -956,5 +956,5 @@
956
956
  ]
957
957
  }
958
958
  },
959
- "version": "0.26.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.26.0",
3
+ "version": "0.27.0",
4
4
  "description": "ZK Compression: Secure Scaling on Solana",
5
5
  "maintainers": [
6
6
  {