@lightprotocol/zk-compression-cli 0.4.7 → 0.6.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/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 -3
- 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 +77 -77
- package/package.json +9 -9
|
Binary file
|
package/bin/forester
CHANGED
|
Binary file
|
package/bin/forester.toml
CHANGED
|
@@ -9,7 +9,9 @@ WS_RPC_URL="ws://localhost:8900"
|
|
|
9
9
|
INDEXER_URL="http://localhost:8784"
|
|
10
10
|
PROVER_URL="http://localhost:3001"
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
CU_LIMIT = 1_000_000
|
|
13
|
+
RPC_POOL_SIZE = 20
|
|
14
|
+
CONCURRENCY_LIMIT=100
|
|
15
|
+
BATCH_SIZE=100
|
|
14
16
|
MAX_RETRIES=5
|
|
15
|
-
MAX_CONCURRENT_BATCHES=1
|
|
17
|
+
MAX_CONCURRENT_BATCHES=1
|
|
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.37.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.37.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
|
@@ -98,93 +98,109 @@
|
|
|
98
98
|
"index.js"
|
|
99
99
|
]
|
|
100
100
|
},
|
|
101
|
-
"
|
|
101
|
+
"config:config": {
|
|
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",
|
|
104
105
|
"examples": [
|
|
105
|
-
"$ light
|
|
106
|
+
"$ light config --solanaRpcUrl https://solana-api.example.com"
|
|
106
107
|
],
|
|
107
108
|
"flags": {
|
|
108
|
-
"
|
|
109
|
-
"description": "
|
|
110
|
-
"name": "
|
|
111
|
-
"required": true,
|
|
109
|
+
"solanaRpcUrl": {
|
|
110
|
+
"description": "Solana RPC url",
|
|
111
|
+
"name": "solanaRpcUrl",
|
|
112
112
|
"hasDynamicHelp": false,
|
|
113
113
|
"multiple": false,
|
|
114
114
|
"type": "option"
|
|
115
115
|
},
|
|
116
|
-
"
|
|
117
|
-
"description": "
|
|
118
|
-
"name": "
|
|
119
|
-
"required": true,
|
|
116
|
+
"indexerUrl": {
|
|
117
|
+
"description": "Indexer url",
|
|
118
|
+
"name": "indexerUrl",
|
|
120
119
|
"hasDynamicHelp": false,
|
|
121
120
|
"multiple": false,
|
|
122
121
|
"type": "option"
|
|
122
|
+
},
|
|
123
|
+
"proverUrl": {
|
|
124
|
+
"description": "Prover url",
|
|
125
|
+
"name": "proverUrl",
|
|
126
|
+
"hasDynamicHelp": false,
|
|
127
|
+
"multiple": false,
|
|
128
|
+
"type": "option"
|
|
129
|
+
},
|
|
130
|
+
"get": {
|
|
131
|
+
"description": "Gets the current config values",
|
|
132
|
+
"name": "get",
|
|
133
|
+
"required": false,
|
|
134
|
+
"allowNo": false,
|
|
135
|
+
"type": "boolean"
|
|
123
136
|
}
|
|
124
137
|
},
|
|
125
138
|
"hasDynamicHelp": false,
|
|
126
139
|
"hiddenAliases": [],
|
|
127
|
-
"id": "
|
|
140
|
+
"id": "config:config",
|
|
128
141
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
129
142
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
130
143
|
"pluginType": "core",
|
|
131
144
|
"strict": true,
|
|
132
|
-
"summary": "Compress SOL.",
|
|
133
145
|
"enableJsonFlag": false,
|
|
134
146
|
"isESM": false,
|
|
135
147
|
"relativePath": [
|
|
136
148
|
"dist",
|
|
137
149
|
"commands",
|
|
138
|
-
"
|
|
150
|
+
"config",
|
|
139
151
|
"index.js"
|
|
140
152
|
]
|
|
141
153
|
},
|
|
142
|
-
"
|
|
154
|
+
"config": {
|
|
143
155
|
"aliases": [],
|
|
144
156
|
"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",
|
|
145
158
|
"examples": [
|
|
146
|
-
"$ light
|
|
159
|
+
"$ light config --solanaRpcUrl https://solana-api.example.com"
|
|
147
160
|
],
|
|
148
161
|
"flags": {
|
|
149
|
-
"
|
|
150
|
-
"description": "
|
|
151
|
-
"name": "
|
|
152
|
-
"required": true,
|
|
162
|
+
"solanaRpcUrl": {
|
|
163
|
+
"description": "Solana RPC url",
|
|
164
|
+
"name": "solanaRpcUrl",
|
|
153
165
|
"hasDynamicHelp": false,
|
|
154
166
|
"multiple": false,
|
|
155
167
|
"type": "option"
|
|
156
168
|
},
|
|
157
|
-
"
|
|
158
|
-
"description": "
|
|
159
|
-
"name": "
|
|
160
|
-
"required": true,
|
|
169
|
+
"indexerUrl": {
|
|
170
|
+
"description": "Indexer url",
|
|
171
|
+
"name": "indexerUrl",
|
|
161
172
|
"hasDynamicHelp": false,
|
|
162
173
|
"multiple": false,
|
|
163
174
|
"type": "option"
|
|
164
175
|
},
|
|
165
|
-
"
|
|
166
|
-
"description": "
|
|
167
|
-
"name": "
|
|
168
|
-
"required": true,
|
|
176
|
+
"proverUrl": {
|
|
177
|
+
"description": "Prover url",
|
|
178
|
+
"name": "proverUrl",
|
|
169
179
|
"hasDynamicHelp": false,
|
|
170
180
|
"multiple": false,
|
|
171
181
|
"type": "option"
|
|
182
|
+
},
|
|
183
|
+
"get": {
|
|
184
|
+
"description": "Gets the current config values",
|
|
185
|
+
"name": "get",
|
|
186
|
+
"required": false,
|
|
187
|
+
"allowNo": false,
|
|
188
|
+
"type": "boolean"
|
|
172
189
|
}
|
|
173
190
|
},
|
|
174
191
|
"hasDynamicHelp": false,
|
|
175
192
|
"hiddenAliases": [],
|
|
176
|
-
"id": "
|
|
193
|
+
"id": "config",
|
|
177
194
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
178
195
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
179
196
|
"pluginType": "core",
|
|
180
197
|
"strict": true,
|
|
181
|
-
"summary": "Compress SPL tokens.",
|
|
182
198
|
"enableJsonFlag": false,
|
|
183
199
|
"isESM": false,
|
|
184
200
|
"relativePath": [
|
|
185
201
|
"dist",
|
|
186
202
|
"commands",
|
|
187
|
-
"
|
|
203
|
+
"config",
|
|
188
204
|
"index.js"
|
|
189
205
|
]
|
|
190
206
|
},
|
|
@@ -279,109 +295,93 @@
|
|
|
279
295
|
"index.js"
|
|
280
296
|
]
|
|
281
297
|
},
|
|
282
|
-
"
|
|
298
|
+
"compress-sol": {
|
|
283
299
|
"aliases": [],
|
|
284
300
|
"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",
|
|
286
301
|
"examples": [
|
|
287
|
-
"$ light
|
|
302
|
+
"$ light compress-sol --to PublicKey --amount 10"
|
|
288
303
|
],
|
|
289
304
|
"flags": {
|
|
290
|
-
"
|
|
291
|
-
"description": "
|
|
292
|
-
"name": "
|
|
293
|
-
"
|
|
294
|
-
"multiple": false,
|
|
295
|
-
"type": "option"
|
|
296
|
-
},
|
|
297
|
-
"indexerUrl": {
|
|
298
|
-
"description": "Indexer url",
|
|
299
|
-
"name": "indexerUrl",
|
|
305
|
+
"to": {
|
|
306
|
+
"description": "Specify the recipient address.",
|
|
307
|
+
"name": "to",
|
|
308
|
+
"required": true,
|
|
300
309
|
"hasDynamicHelp": false,
|
|
301
310
|
"multiple": false,
|
|
302
311
|
"type": "option"
|
|
303
312
|
},
|
|
304
|
-
"
|
|
305
|
-
"description": "
|
|
306
|
-
"name": "
|
|
313
|
+
"amount": {
|
|
314
|
+
"description": "Amount to compress, in lamports.",
|
|
315
|
+
"name": "amount",
|
|
316
|
+
"required": true,
|
|
307
317
|
"hasDynamicHelp": false,
|
|
308
318
|
"multiple": false,
|
|
309
319
|
"type": "option"
|
|
310
|
-
},
|
|
311
|
-
"get": {
|
|
312
|
-
"description": "Gets the current config values",
|
|
313
|
-
"name": "get",
|
|
314
|
-
"required": false,
|
|
315
|
-
"allowNo": false,
|
|
316
|
-
"type": "boolean"
|
|
317
320
|
}
|
|
318
321
|
},
|
|
319
322
|
"hasDynamicHelp": false,
|
|
320
323
|
"hiddenAliases": [],
|
|
321
|
-
"id": "
|
|
324
|
+
"id": "compress-sol",
|
|
322
325
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
323
326
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
324
327
|
"pluginType": "core",
|
|
325
328
|
"strict": true,
|
|
329
|
+
"summary": "Compress SOL.",
|
|
326
330
|
"enableJsonFlag": false,
|
|
327
331
|
"isESM": false,
|
|
328
332
|
"relativePath": [
|
|
329
333
|
"dist",
|
|
330
334
|
"commands",
|
|
331
|
-
"
|
|
335
|
+
"compress-sol",
|
|
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.6.0"
|
|
766
766
|
}
|