@lightprotocol/zk-compression-cli 0.4.7 → 0.5.1
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/accounts/address_merkle_tree_C83cpRN6oaafjNgMQJvaYgAz592EP5wunKvbokeTKPLn.json +1 -1
- package/accounts/address_merkle_tree_queue_HNjtNrjt6irUPYEgxhx2Vcs42koK9fxzm3aFLHVaaRWz.json +1 -1
- package/accounts/merkle_tree_pubkey_5bdFnXU47QjzGpzHfXnxcEi5WXyxzEAZzd1vrE39bf1W.json +1 -1
- package/accounts/nullifier_queue_pubkey_44J4oDXpjPAbzHCSc24q7NEiPekss4sAbLd8ka4gd9CZ.json +1 -1
- package/bin/account_compression.so +0 -0
- package/bin/forester +0 -0
- package/bin/forester.toml +5 -15
- package/bin/light_compressed_token.so +0 -0
- package/bin/light_registry.so +0 -0
- package/bin/light_system_program.so +0 -0
- package/bin/prover-darwin-arm64 +0 -0
- package/bin/prover-darwin-x64 +0 -0
- package/bin/prover-linux-arm64 +0 -0
- package/bin/prover-linux-x64 +0 -0
- package/bin/prover-windows-arm64.exe +0 -0
- package/bin/prover-windows-x64.exe +0 -0
- package/dist/index.js +0 -1
- package/dist/psp-utils/download.js +2 -3
- package/dist/utils/constants.d.ts +1 -1
- package/dist/utils/constants.js +1 -1
- package/dist/utils/initTestEnv.js +5 -6
- package/dist/utils/process.js +7 -8
- package/dist/utils/processForester.js +3 -4
- package/dist/utils/processPhotonIndexer.js +1 -2
- package/dist/utils/processProverServer.js +3 -4
- package/dist/utils/utils.js +7 -7
- package/oclif.manifest.json +52 -52
- package/package.json +10 -10
|
Binary file
|
package/bin/forester
CHANGED
|
Binary file
|
package/bin/forester.toml
CHANGED
|
@@ -1,15 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
RPC_URL="http://localhost:8899"
|
|
8
|
-
WS_RPC_URL="ws://localhost:8900"
|
|
9
|
-
INDEXER_URL="http://localhost:8784"
|
|
10
|
-
PROVER_URL="http://localhost:3001"
|
|
11
|
-
|
|
12
|
-
CONCURRENCY_LIMIT=10
|
|
13
|
-
BATCH_SIZE=10
|
|
14
|
-
MAX_RETRIES=5
|
|
15
|
-
MAX_CONCURRENT_BATCHES=1
|
|
1
|
+
CU_LIMIT=1_000_000
|
|
2
|
+
CONCURRENCY_LIMIT=100
|
|
3
|
+
RPC_POOL_SIZE=20
|
|
4
|
+
PHOTON_BATCH_SIZE=50
|
|
5
|
+
MAX_RETRIES=5
|
|
Binary file
|
package/bin/light_registry.so
CHANGED
|
Binary file
|
|
Binary file
|
package/bin/prover-darwin-arm64
CHANGED
|
Binary file
|
package/bin/prover-darwin-x64
CHANGED
|
Binary file
|
package/bin/prover-linux-arm64
CHANGED
|
Binary file
|
package/bin/prover-linux-x64
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.run = void 0;
|
|
4
3
|
const tslib_1 = require("tslib");
|
|
5
4
|
var core_1 = require("@oclif/core");
|
|
6
5
|
Object.defineProperty(exports, "run", { enumerable: true, get: function () { return core_1.run; } });
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.downloadFile = downloadFile;
|
|
4
|
+
exports.downloadBinIfNotExists = downloadBinIfNotExists;
|
|
4
5
|
const tslib_1 = require("tslib");
|
|
5
6
|
const axios_1 = tslib_1.__importDefault(require("axios"));
|
|
6
7
|
const fs = tslib_1.__importStar(require("fs"));
|
|
@@ -169,7 +170,6 @@ async function downloadFile({ localFilePath, dirPath, url, }) {
|
|
|
169
170
|
}
|
|
170
171
|
}
|
|
171
172
|
}
|
|
172
|
-
exports.downloadFile = downloadFile;
|
|
173
173
|
/**
|
|
174
174
|
* Download a binary from the given release artifact of the GitHub repository,
|
|
175
175
|
* if it was not already downloaded.
|
|
@@ -200,4 +200,3 @@ async function downloadBinIfNotExists({ localFilePath, dirPath, owner, repoName,
|
|
|
200
200
|
// Wait for a second to make sure the file is written
|
|
201
201
|
await (0, stateless_js_1.sleep)(1000);
|
|
202
202
|
}
|
|
203
|
-
exports.downloadBinIfNotExists = downloadBinIfNotExists;
|
|
@@ -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.
|
|
17
|
+
export declare const PHOTON_VERSION = "0.38.0";
|
|
18
18
|
export declare const LIGHT_PROTOCOL_PROGRAMS_DIR_ENV = "LIGHT_PROTOCOL_PROGRAMS_DIR";
|
|
19
19
|
export declare const BASE_PATH = "../../bin/";
|
package/dist/utils/constants.js
CHANGED
|
@@ -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.
|
|
22
|
+
exports.PHOTON_VERSION = "0.38.0";
|
|
23
23
|
exports.LIGHT_PROTOCOL_PROGRAMS_DIR_ENV = "LIGHT_PROTOCOL_PROGRAMS_DIR";
|
|
24
24
|
exports.BASE_PATH = "../../bin/";
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.initTestEnv = initTestEnv;
|
|
4
|
+
exports.initTestEnvIfNeeded = initTestEnvIfNeeded;
|
|
5
|
+
exports.getSolanaArgs = getSolanaArgs;
|
|
6
|
+
exports.startTestValidator = startTestValidator;
|
|
7
|
+
exports.killTestValidator = killTestValidator;
|
|
4
8
|
const tslib_1 = require("tslib");
|
|
5
9
|
const stateless_js_1 = require("@lightprotocol/stateless.js");
|
|
6
10
|
const utils_1 = require("./utils");
|
|
@@ -49,7 +53,6 @@ async function initTestEnv({ additionalPrograms, skipSystemAccounts, indexer = t
|
|
|
49
53
|
await (0, processForester_1.startForester)();
|
|
50
54
|
}
|
|
51
55
|
}
|
|
52
|
-
exports.initTestEnv = initTestEnv;
|
|
53
56
|
async function initTestEnvIfNeeded({ additionalPrograms, skipSystemAccounts, indexer = false, prover = false, forester = false, } = {}) {
|
|
54
57
|
try {
|
|
55
58
|
const anchorProvider = await (0, utils_1.setAnchorProvider)();
|
|
@@ -68,7 +71,6 @@ async function initTestEnvIfNeeded({ additionalPrograms, skipSystemAccounts, ind
|
|
|
68
71
|
});
|
|
69
72
|
}
|
|
70
73
|
}
|
|
71
|
-
exports.initTestEnvIfNeeded = initTestEnvIfNeeded;
|
|
72
74
|
/*
|
|
73
75
|
* Determines a path to which Light Protocol programs should be downloaded.
|
|
74
76
|
*
|
|
@@ -167,7 +169,6 @@ async function getSolanaArgs({ additionalPrograms, skipSystemAccounts, limitLedg
|
|
|
167
169
|
}
|
|
168
170
|
return solanaArgs;
|
|
169
171
|
}
|
|
170
|
-
exports.getSolanaArgs = getSolanaArgs;
|
|
171
172
|
async function startTestValidator({ additionalPrograms, skipSystemAccounts, limitLedgerSize, rpcPort, gossipHost, }) {
|
|
172
173
|
const command = "solana-test-validator";
|
|
173
174
|
const solanaArgs = await getSolanaArgs({
|
|
@@ -185,8 +186,6 @@ async function startTestValidator({ additionalPrograms, skipSystemAccounts, limi
|
|
|
185
186
|
args: [...solanaArgs],
|
|
186
187
|
});
|
|
187
188
|
}
|
|
188
|
-
exports.startTestValidator = startTestValidator;
|
|
189
189
|
async function killTestValidator() {
|
|
190
190
|
await (0, process_1.killProcess)("solana-test-validator");
|
|
191
191
|
}
|
|
192
|
-
exports.killTestValidator = killTestValidator;
|
package/dist/utils/process.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.killProcess = killProcess;
|
|
4
|
+
exports.killProcessByPort = killProcessByPort;
|
|
5
|
+
exports.executeCommand = executeCommand;
|
|
6
|
+
exports.execute = execute;
|
|
7
|
+
exports.spawnBinary = spawnBinary;
|
|
8
|
+
exports.waitForServers = waitForServers;
|
|
9
|
+
exports.confirmServerStability = confirmServerStability;
|
|
4
10
|
const tslib_1 = require("tslib");
|
|
5
11
|
const child_process_1 = require("child_process");
|
|
6
12
|
const path_1 = tslib_1.__importDefault(require("path"));
|
|
@@ -17,11 +23,9 @@ async function killProcess(processName) {
|
|
|
17
23
|
process.kill(proc.pid);
|
|
18
24
|
});
|
|
19
25
|
}
|
|
20
|
-
exports.killProcess = killProcess;
|
|
21
26
|
async function killProcessByPort(port) {
|
|
22
27
|
await execute(`lsof -t -i:${port} | while read line; do kill -9 $line; done`);
|
|
23
28
|
}
|
|
24
|
-
exports.killProcessByPort = killProcessByPort;
|
|
25
29
|
/**
|
|
26
30
|
* Executes a command and logs the output to the console.
|
|
27
31
|
* @param command - Path to the command to be executed.
|
|
@@ -85,7 +89,6 @@ async function executeCommand({ command, args, additionalPath, logFile = true, }
|
|
|
85
89
|
});
|
|
86
90
|
});
|
|
87
91
|
}
|
|
88
|
-
exports.executeCommand = executeCommand;
|
|
89
92
|
const exec = (0, util_1.promisify)(node_child_process_1.exec);
|
|
90
93
|
/**
|
|
91
94
|
* Executes a shell command and returns a promise that resolves to the output of the shell command, or an error.
|
|
@@ -105,7 +108,6 @@ async function execute(command) {
|
|
|
105
108
|
throw err;
|
|
106
109
|
}
|
|
107
110
|
}
|
|
108
|
-
exports.execute = execute;
|
|
109
111
|
function spawnBinary(command, args = []) {
|
|
110
112
|
const logDir = "test-ledger";
|
|
111
113
|
const binaryName = path_1.default.basename(command);
|
|
@@ -124,7 +126,6 @@ function spawnBinary(command, args = []) {
|
|
|
124
126
|
console.log(`${binaryName} process exited with code ${code}`);
|
|
125
127
|
});
|
|
126
128
|
}
|
|
127
|
-
exports.spawnBinary = spawnBinary;
|
|
128
129
|
async function waitForServers(servers) {
|
|
129
130
|
const opts = {
|
|
130
131
|
resources: servers.map(({ port, path }) => `http-get://127.0.0.1:${port}${path}`),
|
|
@@ -147,7 +148,6 @@ async function waitForServers(servers) {
|
|
|
147
148
|
throw err;
|
|
148
149
|
}
|
|
149
150
|
}
|
|
150
|
-
exports.waitForServers = waitForServers;
|
|
151
151
|
// Solana test validator can be unreliable when starting up.
|
|
152
152
|
async function confirmServerStability(url, attempts = 20) {
|
|
153
153
|
try {
|
|
@@ -165,4 +165,3 @@ async function confirmServerStability(url, attempts = 20) {
|
|
|
165
165
|
throw error;
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
|
-
exports.confirmServerStability = confirmServerStability;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.killForester = killForester;
|
|
4
|
+
exports.startForester = startForester;
|
|
5
|
+
exports.getForesterBinaryName = getForesterBinaryName;
|
|
4
6
|
const tslib_1 = require("tslib");
|
|
5
7
|
const path_1 = tslib_1.__importDefault(require("path"));
|
|
6
8
|
const process_1 = require("./process");
|
|
@@ -8,7 +10,6 @@ const constants_1 = require("./constants");
|
|
|
8
10
|
async function killForester() {
|
|
9
11
|
await (0, process_1.killProcess)(constants_1.FORESTER_PROCESS_NAME);
|
|
10
12
|
}
|
|
11
|
-
exports.killForester = killForester;
|
|
12
13
|
async function startForester() {
|
|
13
14
|
console.log("Killing existing forester process...");
|
|
14
15
|
await killForester();
|
|
@@ -16,10 +17,8 @@ async function startForester() {
|
|
|
16
17
|
(0, process_1.spawnBinary)(getForesterBinaryName(), ["subscribe"]);
|
|
17
18
|
console.log("Forester started successfully!");
|
|
18
19
|
}
|
|
19
|
-
exports.startForester = startForester;
|
|
20
20
|
function getForesterBinaryName() {
|
|
21
21
|
const binDir = path_1.default.join(__dirname, "../..", "bin");
|
|
22
22
|
const binaryName = path_1.default.join(binDir, "forester");
|
|
23
23
|
return binaryName;
|
|
24
24
|
}
|
|
25
|
-
exports.getForesterBinaryName = getForesterBinaryName;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.startIndexer =
|
|
3
|
+
exports.startIndexer = startIndexer;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const which_1 = tslib_1.__importDefault(require("which"));
|
|
6
6
|
const process_1 = require("./process");
|
|
@@ -34,7 +34,6 @@ async function startIndexer(rpcUrl, indexerPort, checkPhotonVersion = true, phot
|
|
|
34
34
|
console.log("Indexer started successfully!");
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
exports.startIndexer = startIndexer;
|
|
38
37
|
async function killIndexer() {
|
|
39
38
|
await (0, process_1.killProcess)(constants_1.INDEXER_PROCESS_NAME);
|
|
40
39
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.killProver = killProver;
|
|
4
|
+
exports.startProver = startProver;
|
|
5
|
+
exports.getProverNameByArch = getProverNameByArch;
|
|
4
6
|
const tslib_1 = require("tslib");
|
|
5
7
|
const path_1 = tslib_1.__importDefault(require("path"));
|
|
6
8
|
const process_1 = require("./process");
|
|
@@ -11,7 +13,6 @@ async function killProver() {
|
|
|
11
13
|
// Temporary fix for the case when prover is instantiated via prover.sh:
|
|
12
14
|
await (0, process_1.killProcess)(constants_1.LIGHT_PROVER_PROCESS_NAME);
|
|
13
15
|
}
|
|
14
|
-
exports.killProver = killProver;
|
|
15
16
|
async function startProver(proverPort, proveCompressedAccounts, proveNewAddresses) {
|
|
16
17
|
if (!proveCompressedAccounts && !proveNewAddresses) {
|
|
17
18
|
console.log("No flags provided. Please provide at least one flag to start the prover.");
|
|
@@ -31,7 +32,6 @@ async function startProver(proverPort, proveCompressedAccounts, proveNewAddresse
|
|
|
31
32
|
await (0, process_1.waitForServers)([{ port: proverPort, path: "/" }]);
|
|
32
33
|
console.log("Prover started successfully!");
|
|
33
34
|
}
|
|
34
|
-
exports.startProver = startProver;
|
|
35
35
|
function getProverNameByArch() {
|
|
36
36
|
const platform = process.platform;
|
|
37
37
|
const arch = process.arch;
|
|
@@ -47,4 +47,3 @@ function getProverNameByArch() {
|
|
|
47
47
|
binaryName = path_1.default.join(binDir, binaryName);
|
|
48
48
|
return binaryName;
|
|
49
49
|
}
|
|
50
|
-
exports.getProverNameByArch = getProverNameByArch;
|
package/dist/utils/utils.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.CustomLoader = exports.setConfig = exports.getConfig = exports.getProverUrl = exports.getIndexerUrl = exports.getSolanaRpcUrl = exports.setAnchorProvider = exports.defaultSolanaWalletKeypair = void 0;
|
|
4
|
+
exports.rpc = rpc;
|
|
5
|
+
exports.getPayer = getPayer;
|
|
6
|
+
exports.generateSolanaTransactionURL = generateSolanaTransactionURL;
|
|
7
|
+
exports.ensureDirectoryExists = ensureDirectoryExists;
|
|
8
|
+
exports.isValidURL = isValidURL;
|
|
9
|
+
exports.isValidBase58SecretKey = isValidBase58SecretKey;
|
|
4
10
|
const tslib_1 = require("tslib");
|
|
5
11
|
const fs = tslib_1.__importStar(require("fs"));
|
|
6
12
|
const fs_1 = require("fs");
|
|
@@ -42,18 +48,15 @@ function rpc() {
|
|
|
42
48
|
}
|
|
43
49
|
return (0, stateless_js_1.createRpc)((0, exports.getSolanaRpcUrl)(), (0, exports.getIndexerUrl)(), (0, exports.getProverUrl)());
|
|
44
50
|
}
|
|
45
|
-
exports.rpc = rpc;
|
|
46
51
|
function getWalletPath() {
|
|
47
52
|
return process.env.HOME + "/.config/solana/id.json";
|
|
48
53
|
}
|
|
49
54
|
async function getPayer() {
|
|
50
55
|
return await (0, helpers_1.getKeypairFromFile)(getWalletPath());
|
|
51
56
|
}
|
|
52
|
-
exports.getPayer = getPayer;
|
|
53
57
|
function generateSolanaTransactionURL(transactionType, transactionHash, cluster) {
|
|
54
58
|
return `https://explorer.solana.com/${transactionType}/${transactionHash}?cluster=${cluster}`;
|
|
55
59
|
}
|
|
56
|
-
exports.generateSolanaTransactionURL = generateSolanaTransactionURL;
|
|
57
60
|
const getSolanaRpcUrl = () => {
|
|
58
61
|
const config = (0, exports.getConfig)();
|
|
59
62
|
return config.solanaRpcUrl;
|
|
@@ -114,7 +117,6 @@ function ensureDirectoryExists(dirPath) {
|
|
|
114
117
|
fs.mkdirSync(dirPath, { recursive: true });
|
|
115
118
|
}
|
|
116
119
|
}
|
|
117
|
-
exports.ensureDirectoryExists = ensureDirectoryExists;
|
|
118
120
|
const setConfig = (config, filePath) => {
|
|
119
121
|
if (!filePath)
|
|
120
122
|
filePath = getConfigPath();
|
|
@@ -161,9 +163,7 @@ function isValidURL(url) {
|
|
|
161
163
|
return false;
|
|
162
164
|
}
|
|
163
165
|
}
|
|
164
|
-
exports.isValidURL = isValidURL;
|
|
165
166
|
function isValidBase58SecretKey(secretKey) {
|
|
166
167
|
const base58Regex = /^[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]+$/;
|
|
167
168
|
return base58Regex.test(secretKey);
|
|
168
169
|
}
|
|
169
|
-
exports.isValidBase58SecretKey = isValidBase58SecretKey;
|
package/oclif.manifest.json
CHANGED
|
@@ -139,23 +139,15 @@
|
|
|
139
139
|
"index.js"
|
|
140
140
|
]
|
|
141
141
|
},
|
|
142
|
-
"
|
|
142
|
+
"decompress-sol": {
|
|
143
143
|
"aliases": [],
|
|
144
144
|
"args": {},
|
|
145
145
|
"examples": [
|
|
146
|
-
"$ light
|
|
146
|
+
"$ light decompress-sol --to PublicKey --amount 10"
|
|
147
147
|
],
|
|
148
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
|
-
},
|
|
157
149
|
"to": {
|
|
158
|
-
"description": "Specify the recipient address
|
|
150
|
+
"description": "Specify the recipient address.",
|
|
159
151
|
"name": "to",
|
|
160
152
|
"required": true,
|
|
161
153
|
"hasDynamicHelp": false,
|
|
@@ -163,7 +155,7 @@
|
|
|
163
155
|
"type": "option"
|
|
164
156
|
},
|
|
165
157
|
"amount": {
|
|
166
|
-
"description": "Amount to
|
|
158
|
+
"description": "Amount to decompress, in lamports.",
|
|
167
159
|
"name": "amount",
|
|
168
160
|
"required": true,
|
|
169
161
|
"hasDynamicHelp": false,
|
|
@@ -173,18 +165,18 @@
|
|
|
173
165
|
},
|
|
174
166
|
"hasDynamicHelp": false,
|
|
175
167
|
"hiddenAliases": [],
|
|
176
|
-
"id": "
|
|
168
|
+
"id": "decompress-sol",
|
|
177
169
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
178
170
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
179
171
|
"pluginType": "core",
|
|
180
172
|
"strict": true,
|
|
181
|
-
"summary": "
|
|
173
|
+
"summary": "Decompress SOL.",
|
|
182
174
|
"enableJsonFlag": false,
|
|
183
175
|
"isESM": false,
|
|
184
176
|
"relativePath": [
|
|
185
177
|
"dist",
|
|
186
178
|
"commands",
|
|
187
|
-
"
|
|
179
|
+
"decompress-sol",
|
|
188
180
|
"index.js"
|
|
189
181
|
]
|
|
190
182
|
},
|
|
@@ -238,48 +230,60 @@
|
|
|
238
230
|
"index.js"
|
|
239
231
|
]
|
|
240
232
|
},
|
|
241
|
-
"
|
|
233
|
+
"config:config": {
|
|
242
234
|
"aliases": [],
|
|
243
235
|
"args": {},
|
|
236
|
+
"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",
|
|
244
237
|
"examples": [
|
|
245
|
-
"$ light
|
|
238
|
+
"$ light config --solanaRpcUrl https://solana-api.example.com"
|
|
246
239
|
],
|
|
247
240
|
"flags": {
|
|
248
|
-
"
|
|
249
|
-
"description": "
|
|
250
|
-
"name": "
|
|
251
|
-
"required": true,
|
|
241
|
+
"solanaRpcUrl": {
|
|
242
|
+
"description": "Solana RPC url",
|
|
243
|
+
"name": "solanaRpcUrl",
|
|
252
244
|
"hasDynamicHelp": false,
|
|
253
245
|
"multiple": false,
|
|
254
246
|
"type": "option"
|
|
255
247
|
},
|
|
256
|
-
"
|
|
257
|
-
"description": "
|
|
258
|
-
"name": "
|
|
259
|
-
"
|
|
248
|
+
"indexerUrl": {
|
|
249
|
+
"description": "Indexer url",
|
|
250
|
+
"name": "indexerUrl",
|
|
251
|
+
"hasDynamicHelp": false,
|
|
252
|
+
"multiple": false,
|
|
253
|
+
"type": "option"
|
|
254
|
+
},
|
|
255
|
+
"proverUrl": {
|
|
256
|
+
"description": "Prover url",
|
|
257
|
+
"name": "proverUrl",
|
|
260
258
|
"hasDynamicHelp": false,
|
|
261
259
|
"multiple": false,
|
|
262
260
|
"type": "option"
|
|
261
|
+
},
|
|
262
|
+
"get": {
|
|
263
|
+
"description": "Gets the current config values",
|
|
264
|
+
"name": "get",
|
|
265
|
+
"required": false,
|
|
266
|
+
"allowNo": false,
|
|
267
|
+
"type": "boolean"
|
|
263
268
|
}
|
|
264
269
|
},
|
|
265
270
|
"hasDynamicHelp": false,
|
|
266
271
|
"hiddenAliases": [],
|
|
267
|
-
"id": "
|
|
272
|
+
"id": "config:config",
|
|
268
273
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
269
274
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
270
275
|
"pluginType": "core",
|
|
271
276
|
"strict": true,
|
|
272
|
-
"summary": "Decompress SOL.",
|
|
273
277
|
"enableJsonFlag": false,
|
|
274
278
|
"isESM": false,
|
|
275
279
|
"relativePath": [
|
|
276
280
|
"dist",
|
|
277
281
|
"commands",
|
|
278
|
-
"
|
|
282
|
+
"config",
|
|
279
283
|
"index.js"
|
|
280
284
|
]
|
|
281
285
|
},
|
|
282
|
-
"config
|
|
286
|
+
"config": {
|
|
283
287
|
"aliases": [],
|
|
284
288
|
"args": {},
|
|
285
289
|
"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",
|
|
@@ -318,7 +322,7 @@
|
|
|
318
322
|
},
|
|
319
323
|
"hasDynamicHelp": false,
|
|
320
324
|
"hiddenAliases": [],
|
|
321
|
-
"id": "config
|
|
325
|
+
"id": "config",
|
|
322
326
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
323
327
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
324
328
|
"pluginType": "core",
|
|
@@ -332,56 +336,52 @@
|
|
|
332
336
|
"index.js"
|
|
333
337
|
]
|
|
334
338
|
},
|
|
335
|
-
"
|
|
339
|
+
"compress-spl": {
|
|
336
340
|
"aliases": [],
|
|
337
341
|
"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",
|
|
339
342
|
"examples": [
|
|
340
|
-
"$ light
|
|
343
|
+
"$ light compress-spl --mint PublicKey --to PublicKey --amount 10"
|
|
341
344
|
],
|
|
342
345
|
"flags": {
|
|
343
|
-
"
|
|
344
|
-
"description": "
|
|
345
|
-
"name": "
|
|
346
|
+
"mint": {
|
|
347
|
+
"description": "Specify the mint address.",
|
|
348
|
+
"name": "mint",
|
|
349
|
+
"required": true,
|
|
346
350
|
"hasDynamicHelp": false,
|
|
347
351
|
"multiple": false,
|
|
348
352
|
"type": "option"
|
|
349
353
|
},
|
|
350
|
-
"
|
|
351
|
-
"description": "
|
|
352
|
-
"name": "
|
|
354
|
+
"to": {
|
|
355
|
+
"description": "Specify the recipient address (owner of destination compressed token account).",
|
|
356
|
+
"name": "to",
|
|
357
|
+
"required": true,
|
|
353
358
|
"hasDynamicHelp": false,
|
|
354
359
|
"multiple": false,
|
|
355
360
|
"type": "option"
|
|
356
361
|
},
|
|
357
|
-
"
|
|
358
|
-
"description": "
|
|
359
|
-
"name": "
|
|
362
|
+
"amount": {
|
|
363
|
+
"description": "Amount to compress, in tokens.",
|
|
364
|
+
"name": "amount",
|
|
365
|
+
"required": true,
|
|
360
366
|
"hasDynamicHelp": false,
|
|
361
367
|
"multiple": false,
|
|
362
368
|
"type": "option"
|
|
363
|
-
},
|
|
364
|
-
"get": {
|
|
365
|
-
"description": "Gets the current config values",
|
|
366
|
-
"name": "get",
|
|
367
|
-
"required": false,
|
|
368
|
-
"allowNo": false,
|
|
369
|
-
"type": "boolean"
|
|
370
369
|
}
|
|
371
370
|
},
|
|
372
371
|
"hasDynamicHelp": false,
|
|
373
372
|
"hiddenAliases": [],
|
|
374
|
-
"id": "
|
|
373
|
+
"id": "compress-spl",
|
|
375
374
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
376
375
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
377
376
|
"pluginType": "core",
|
|
378
377
|
"strict": true,
|
|
378
|
+
"summary": "Compress SPL tokens.",
|
|
379
379
|
"enableJsonFlag": false,
|
|
380
380
|
"isESM": false,
|
|
381
381
|
"relativePath": [
|
|
382
382
|
"dist",
|
|
383
383
|
"commands",
|
|
384
|
-
"
|
|
384
|
+
"compress-spl",
|
|
385
385
|
"index.js"
|
|
386
386
|
]
|
|
387
387
|
},
|
|
@@ -762,5 +762,5 @@
|
|
|
762
762
|
]
|
|
763
763
|
}
|
|
764
764
|
},
|
|
765
|
-
"version": "0.
|
|
765
|
+
"version": "0.5.1"
|
|
766
766
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightprotocol/zk-compression-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "ZK Compression: Secure Scaling on Solana",
|
|
5
5
|
"maintainers": [
|
|
6
6
|
{
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@oclif/plugin-not-found": "^3.1.2",
|
|
31
31
|
"@oclif/plugin-plugins": "^5.0.7",
|
|
32
32
|
"@solana-developers/helpers": "^1.5.1",
|
|
33
|
-
"@solana/web3.js": "^1.
|
|
33
|
+
"@solana/web3.js": "^1.95.0",
|
|
34
34
|
"axios": "^1.6.8",
|
|
35
35
|
"case-anything": "^2.1.13",
|
|
36
36
|
"cli-progress": "^3.12.0",
|
|
@@ -44,17 +44,17 @@
|
|
|
44
44
|
"tweetnacl": "^1.0.3",
|
|
45
45
|
"wait-on": "^7.2.0",
|
|
46
46
|
"which": "^4.0.0",
|
|
47
|
-
"@lightprotocol/compressed-token": "0.
|
|
48
|
-
"@lightprotocol/
|
|
49
|
-
"@lightprotocol/
|
|
47
|
+
"@lightprotocol/compressed-token": "0.4.1",
|
|
48
|
+
"@lightprotocol/stateless.js": "0.5.1",
|
|
49
|
+
"@lightprotocol/hasher.rs": "0.2.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@oclif/test": "2.3.9",
|
|
53
53
|
"@solana/spl-token": "^0.3.11",
|
|
54
54
|
"@types/bn.js": "^5.1.5",
|
|
55
|
-
"@types/chai": "^4.3.
|
|
55
|
+
"@types/chai": "^4.3.16",
|
|
56
56
|
"@types/cli-progress": "^3.11.5",
|
|
57
|
-
"@types/mocha": "^10.0.
|
|
57
|
+
"@types/mocha": "^10.0.7",
|
|
58
58
|
"@types/node": "^20.12.8",
|
|
59
59
|
"@types/tar": "^6.1.12",
|
|
60
60
|
"@types/which": "^3.0.3",
|
|
@@ -65,14 +65,14 @@
|
|
|
65
65
|
"eslint-config-oclif": "5.1.1",
|
|
66
66
|
"eslint-config-oclif-typescript": "3.1.4",
|
|
67
67
|
"eslint-config-prettier": "9.1.0",
|
|
68
|
-
"mocha": "^10.
|
|
68
|
+
"mocha": "^10.6.0",
|
|
69
69
|
"oclif": "4.8.0",
|
|
70
|
-
"prettier": "^3.3.
|
|
70
|
+
"prettier": "^3.3.3",
|
|
71
71
|
"shx": "^0.3.4",
|
|
72
72
|
"ts-mocha": "^10.0.0",
|
|
73
73
|
"ts-node": "^10.9.2",
|
|
74
74
|
"tslib": "^2.6.2",
|
|
75
|
-
"typescript": "^5.
|
|
75
|
+
"typescript": "^5.5.3",
|
|
76
76
|
"@lightprotocol/programs": "0.3.0"
|
|
77
77
|
},
|
|
78
78
|
"oclif": {
|