@lightprotocol/zk-compression-cli 0.17.0 → 0.18.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/dist/commands/init/index.js +7 -15
- package/oclif.manifest.json +89 -89
- package/package.json +3 -3
|
@@ -17,7 +17,6 @@ class InitCommand extends core_1.Command {
|
|
|
17
17
|
const { name } = args;
|
|
18
18
|
this.log("Initializing project...");
|
|
19
19
|
await (0, exports.initRepo)(name, flags);
|
|
20
|
-
this.log("✅ Project initialized successfully");
|
|
21
20
|
}
|
|
22
21
|
}
|
|
23
22
|
InitCommand.description = "Initialize a compressed account project.";
|
|
@@ -41,10 +40,6 @@ const initRepo = async (name, flags) => {
|
|
|
41
40
|
const camelCaseName = (0, case_anything_1.pascalCase)(name);
|
|
42
41
|
let command = localFilePath;
|
|
43
42
|
let env = { ...process.env };
|
|
44
|
-
if (os.platform() === "darwin") {
|
|
45
|
-
const cpathExport = 'export CPATH="/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include:$CPATH"';
|
|
46
|
-
command = `${cpathExport} && ${command}`;
|
|
47
|
-
}
|
|
48
43
|
await (0, process_1.executeCommand)({
|
|
49
44
|
command,
|
|
50
45
|
args: [
|
|
@@ -93,21 +88,18 @@ const initRepo = async (name, flags) => {
|
|
|
93
88
|
logFile: true,
|
|
94
89
|
env: env,
|
|
95
90
|
});
|
|
91
|
+
console.log("✅ Project initialized successfully");
|
|
96
92
|
if (os.platform() === "darwin") {
|
|
97
93
|
console.log(`
|
|
98
94
|
🧢 Important for macOS users 🧢
|
|
99
|
-
|
|
100
|
-
1. Run this command in your terminal:
|
|
101
|
-
export CPATH="/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include:$CPATH"
|
|
95
|
+
===============================
|
|
102
96
|
|
|
103
|
-
|
|
104
|
-
• Zsh users (default): Add the line to ~/.zshrc
|
|
105
|
-
• Bash users: Add the line to ~/.bash_profile
|
|
97
|
+
Run this command in your terminal before building your project:
|
|
106
98
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
99
|
+
----------------------------------------------------------------------------------------------------
|
|
100
|
+
echo 'export CPATH="/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include:$CPATH"' >> ~/.zshrc && source ~/.zshrc
|
|
101
|
+
----------------------------------------------------------------------------------------------------
|
|
102
|
+
`);
|
|
111
103
|
}
|
|
112
104
|
await (0, stateless_js_1.sleep)(1000);
|
|
113
105
|
};
|
package/oclif.manifest.json
CHANGED
|
@@ -98,109 +98,85 @@
|
|
|
98
98
|
"index.js"
|
|
99
99
|
]
|
|
100
100
|
},
|
|
101
|
-
"
|
|
101
|
+
"compress-spl": {
|
|
102
102
|
"aliases": [],
|
|
103
103
|
"args": {},
|
|
104
|
-
"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",
|
|
105
104
|
"examples": [
|
|
106
|
-
"$ light
|
|
105
|
+
"$ light compress-spl --mint PublicKey --to PublicKey --amount 10"
|
|
107
106
|
],
|
|
108
107
|
"flags": {
|
|
109
|
-
"
|
|
110
|
-
"description": "
|
|
111
|
-
"name": "
|
|
108
|
+
"mint": {
|
|
109
|
+
"description": "Specify the mint address.",
|
|
110
|
+
"name": "mint",
|
|
111
|
+
"required": true,
|
|
112
112
|
"hasDynamicHelp": false,
|
|
113
113
|
"multiple": false,
|
|
114
114
|
"type": "option"
|
|
115
115
|
},
|
|
116
|
-
"
|
|
117
|
-
"description": "
|
|
118
|
-
"name": "
|
|
116
|
+
"to": {
|
|
117
|
+
"description": "Specify the recipient address (owner of destination compressed token account).",
|
|
118
|
+
"name": "to",
|
|
119
|
+
"required": true,
|
|
119
120
|
"hasDynamicHelp": false,
|
|
120
121
|
"multiple": false,
|
|
121
122
|
"type": "option"
|
|
122
123
|
},
|
|
123
|
-
"
|
|
124
|
-
"description": "
|
|
125
|
-
"name": "
|
|
124
|
+
"amount": {
|
|
125
|
+
"description": "Amount to compress, in tokens.",
|
|
126
|
+
"name": "amount",
|
|
127
|
+
"required": true,
|
|
126
128
|
"hasDynamicHelp": false,
|
|
127
129
|
"multiple": false,
|
|
128
130
|
"type": "option"
|
|
129
|
-
},
|
|
130
|
-
"get": {
|
|
131
|
-
"description": "Gets the current config values",
|
|
132
|
-
"name": "get",
|
|
133
|
-
"required": false,
|
|
134
|
-
"allowNo": false,
|
|
135
|
-
"type": "boolean"
|
|
136
131
|
}
|
|
137
132
|
},
|
|
138
133
|
"hasDynamicHelp": false,
|
|
139
134
|
"hiddenAliases": [],
|
|
140
|
-
"id": "
|
|
135
|
+
"id": "compress-spl",
|
|
141
136
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
142
137
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
143
138
|
"pluginType": "core",
|
|
144
139
|
"strict": true,
|
|
140
|
+
"summary": "Compress SPL tokens.",
|
|
145
141
|
"enableJsonFlag": false,
|
|
146
142
|
"isESM": false,
|
|
147
143
|
"relativePath": [
|
|
148
144
|
"dist",
|
|
149
145
|
"commands",
|
|
150
|
-
"
|
|
146
|
+
"compress-spl",
|
|
151
147
|
"index.js"
|
|
152
148
|
]
|
|
153
149
|
},
|
|
154
|
-
"
|
|
150
|
+
"create-token-pool": {
|
|
155
151
|
"aliases": [],
|
|
156
152
|
"args": {},
|
|
157
|
-
"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",
|
|
158
153
|
"examples": [
|
|
159
|
-
"$ light
|
|
154
|
+
"$ light create-token-pool --mint-decimals 5"
|
|
160
155
|
],
|
|
161
156
|
"flags": {
|
|
162
|
-
"
|
|
163
|
-
"description": "
|
|
164
|
-
"name": "
|
|
165
|
-
"
|
|
166
|
-
"multiple": false,
|
|
167
|
-
"type": "option"
|
|
168
|
-
},
|
|
169
|
-
"indexerUrl": {
|
|
170
|
-
"description": "Indexer url",
|
|
171
|
-
"name": "indexerUrl",
|
|
172
|
-
"hasDynamicHelp": false,
|
|
173
|
-
"multiple": false,
|
|
174
|
-
"type": "option"
|
|
175
|
-
},
|
|
176
|
-
"proverUrl": {
|
|
177
|
-
"description": "Prover url",
|
|
178
|
-
"name": "proverUrl",
|
|
157
|
+
"mint": {
|
|
158
|
+
"description": "Provide a base58 encoded mint address to register",
|
|
159
|
+
"name": "mint",
|
|
160
|
+
"required": true,
|
|
179
161
|
"hasDynamicHelp": false,
|
|
180
162
|
"multiple": false,
|
|
181
163
|
"type": "option"
|
|
182
|
-
},
|
|
183
|
-
"get": {
|
|
184
|
-
"description": "Gets the current config values",
|
|
185
|
-
"name": "get",
|
|
186
|
-
"required": false,
|
|
187
|
-
"allowNo": false,
|
|
188
|
-
"type": "boolean"
|
|
189
164
|
}
|
|
190
165
|
},
|
|
191
166
|
"hasDynamicHelp": false,
|
|
192
167
|
"hiddenAliases": [],
|
|
193
|
-
"id": "
|
|
168
|
+
"id": "create-token-pool",
|
|
194
169
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
195
170
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
196
171
|
"pluginType": "core",
|
|
197
172
|
"strict": true,
|
|
173
|
+
"summary": "Register an existing mint with the CompressedToken program",
|
|
198
174
|
"enableJsonFlag": false,
|
|
199
175
|
"isESM": false,
|
|
200
176
|
"relativePath": [
|
|
201
177
|
"dist",
|
|
202
178
|
"commands",
|
|
203
|
-
"
|
|
179
|
+
"create-token-pool",
|
|
204
180
|
"index.js"
|
|
205
181
|
]
|
|
206
182
|
},
|
|
@@ -254,16 +230,24 @@
|
|
|
254
230
|
"index.js"
|
|
255
231
|
]
|
|
256
232
|
},
|
|
257
|
-
"
|
|
233
|
+
"compress-sol": {
|
|
258
234
|
"aliases": [],
|
|
259
235
|
"args": {},
|
|
260
236
|
"examples": [
|
|
261
|
-
"$ light
|
|
237
|
+
"$ light compress-sol --to PublicKey --amount 10"
|
|
262
238
|
],
|
|
263
239
|
"flags": {
|
|
264
|
-
"
|
|
265
|
-
"description": "
|
|
266
|
-
"name": "
|
|
240
|
+
"to": {
|
|
241
|
+
"description": "Specify the recipient address.",
|
|
242
|
+
"name": "to",
|
|
243
|
+
"required": true,
|
|
244
|
+
"hasDynamicHelp": false,
|
|
245
|
+
"multiple": false,
|
|
246
|
+
"type": "option"
|
|
247
|
+
},
|
|
248
|
+
"amount": {
|
|
249
|
+
"description": "Amount to compress, in lamports.",
|
|
250
|
+
"name": "amount",
|
|
267
251
|
"required": true,
|
|
268
252
|
"hasDynamicHelp": false,
|
|
269
253
|
"multiple": false,
|
|
@@ -272,108 +256,124 @@
|
|
|
272
256
|
},
|
|
273
257
|
"hasDynamicHelp": false,
|
|
274
258
|
"hiddenAliases": [],
|
|
275
|
-
"id": "
|
|
259
|
+
"id": "compress-sol",
|
|
276
260
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
277
261
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
278
262
|
"pluginType": "core",
|
|
279
263
|
"strict": true,
|
|
280
|
-
"summary": "
|
|
264
|
+
"summary": "Compress SOL.",
|
|
281
265
|
"enableJsonFlag": false,
|
|
282
266
|
"isESM": false,
|
|
283
267
|
"relativePath": [
|
|
284
268
|
"dist",
|
|
285
269
|
"commands",
|
|
286
|
-
"
|
|
270
|
+
"compress-sol",
|
|
287
271
|
"index.js"
|
|
288
272
|
]
|
|
289
273
|
},
|
|
290
|
-
"
|
|
274
|
+
"config:config": {
|
|
291
275
|
"aliases": [],
|
|
292
276
|
"args": {},
|
|
277
|
+
"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",
|
|
293
278
|
"examples": [
|
|
294
|
-
"$ light
|
|
279
|
+
"$ light config --solanaRpcUrl https://solana-api.example.com"
|
|
295
280
|
],
|
|
296
281
|
"flags": {
|
|
297
|
-
"
|
|
298
|
-
"description": "
|
|
299
|
-
"name": "
|
|
300
|
-
"required": true,
|
|
282
|
+
"solanaRpcUrl": {
|
|
283
|
+
"description": "Solana RPC url",
|
|
284
|
+
"name": "solanaRpcUrl",
|
|
301
285
|
"hasDynamicHelp": false,
|
|
302
286
|
"multiple": false,
|
|
303
287
|
"type": "option"
|
|
304
288
|
},
|
|
305
|
-
"
|
|
306
|
-
"description": "
|
|
307
|
-
"name": "
|
|
308
|
-
"required": true,
|
|
289
|
+
"indexerUrl": {
|
|
290
|
+
"description": "Indexer url",
|
|
291
|
+
"name": "indexerUrl",
|
|
309
292
|
"hasDynamicHelp": false,
|
|
310
293
|
"multiple": false,
|
|
311
294
|
"type": "option"
|
|
312
295
|
},
|
|
313
|
-
"
|
|
314
|
-
"description": "
|
|
315
|
-
"name": "
|
|
316
|
-
"required": true,
|
|
296
|
+
"proverUrl": {
|
|
297
|
+
"description": "Prover url",
|
|
298
|
+
"name": "proverUrl",
|
|
317
299
|
"hasDynamicHelp": false,
|
|
318
300
|
"multiple": false,
|
|
319
301
|
"type": "option"
|
|
302
|
+
},
|
|
303
|
+
"get": {
|
|
304
|
+
"description": "Gets the current config values",
|
|
305
|
+
"name": "get",
|
|
306
|
+
"required": false,
|
|
307
|
+
"allowNo": false,
|
|
308
|
+
"type": "boolean"
|
|
320
309
|
}
|
|
321
310
|
},
|
|
322
311
|
"hasDynamicHelp": false,
|
|
323
312
|
"hiddenAliases": [],
|
|
324
|
-
"id": "
|
|
313
|
+
"id": "config:config",
|
|
325
314
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
326
315
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
327
316
|
"pluginType": "core",
|
|
328
317
|
"strict": true,
|
|
329
|
-
"summary": "Compress SPL tokens.",
|
|
330
318
|
"enableJsonFlag": false,
|
|
331
319
|
"isESM": false,
|
|
332
320
|
"relativePath": [
|
|
333
321
|
"dist",
|
|
334
322
|
"commands",
|
|
335
|
-
"
|
|
323
|
+
"config",
|
|
336
324
|
"index.js"
|
|
337
325
|
]
|
|
338
326
|
},
|
|
339
|
-
"
|
|
327
|
+
"config": {
|
|
340
328
|
"aliases": [],
|
|
341
329
|
"args": {},
|
|
330
|
+
"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",
|
|
342
331
|
"examples": [
|
|
343
|
-
"$ light
|
|
332
|
+
"$ light config --solanaRpcUrl https://solana-api.example.com"
|
|
344
333
|
],
|
|
345
334
|
"flags": {
|
|
346
|
-
"
|
|
347
|
-
"description": "
|
|
348
|
-
"name": "
|
|
349
|
-
"required": true,
|
|
335
|
+
"solanaRpcUrl": {
|
|
336
|
+
"description": "Solana RPC url",
|
|
337
|
+
"name": "solanaRpcUrl",
|
|
350
338
|
"hasDynamicHelp": false,
|
|
351
339
|
"multiple": false,
|
|
352
340
|
"type": "option"
|
|
353
341
|
},
|
|
354
|
-
"
|
|
355
|
-
"description": "
|
|
356
|
-
"name": "
|
|
357
|
-
"required": true,
|
|
342
|
+
"indexerUrl": {
|
|
343
|
+
"description": "Indexer url",
|
|
344
|
+
"name": "indexerUrl",
|
|
358
345
|
"hasDynamicHelp": false,
|
|
359
346
|
"multiple": false,
|
|
360
347
|
"type": "option"
|
|
348
|
+
},
|
|
349
|
+
"proverUrl": {
|
|
350
|
+
"description": "Prover url",
|
|
351
|
+
"name": "proverUrl",
|
|
352
|
+
"hasDynamicHelp": false,
|
|
353
|
+
"multiple": false,
|
|
354
|
+
"type": "option"
|
|
355
|
+
},
|
|
356
|
+
"get": {
|
|
357
|
+
"description": "Gets the current config values",
|
|
358
|
+
"name": "get",
|
|
359
|
+
"required": false,
|
|
360
|
+
"allowNo": false,
|
|
361
|
+
"type": "boolean"
|
|
361
362
|
}
|
|
362
363
|
},
|
|
363
364
|
"hasDynamicHelp": false,
|
|
364
365
|
"hiddenAliases": [],
|
|
365
|
-
"id": "
|
|
366
|
+
"id": "config",
|
|
366
367
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
367
368
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
368
369
|
"pluginType": "core",
|
|
369
370
|
"strict": true,
|
|
370
|
-
"summary": "Compress SOL.",
|
|
371
371
|
"enableJsonFlag": false,
|
|
372
372
|
"isESM": false,
|
|
373
373
|
"relativePath": [
|
|
374
374
|
"dist",
|
|
375
375
|
"commands",
|
|
376
|
-
"
|
|
376
|
+
"config",
|
|
377
377
|
"index.js"
|
|
378
378
|
]
|
|
379
379
|
},
|
|
@@ -831,5 +831,5 @@
|
|
|
831
831
|
]
|
|
832
832
|
}
|
|
833
833
|
},
|
|
834
|
-
"version": "0.
|
|
834
|
+
"version": "0.18.0"
|
|
835
835
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightprotocol/zk-compression-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.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/stateless.js": "0.13.0",
|
|
47
48
|
"@lightprotocol/compressed-token": "0.13.0",
|
|
48
|
-
"@lightprotocol/hasher.rs": "0.2.0"
|
|
49
|
-
"@lightprotocol/stateless.js": "0.13.0"
|
|
49
|
+
"@lightprotocol/hasher.rs": "0.2.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@oclif/test": "2.3.9",
|