@lightprotocol/zk-compression-cli 0.10.0 → 0.15.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/README.md +6 -6
- package/bin/account_compression.so +0 -0
- package/bin/{forester → cargo-generate} +0 -0
- 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/bin/proving-keys/combined_26_1_1.key +0 -0
- package/bin/proving-keys/combined_26_1_1.vkey +1 -1
- package/bin/proving-keys/combined_26_1_2.key +0 -0
- package/bin/proving-keys/combined_26_1_2.vkey +1 -1
- package/bin/proving-keys/combined_26_2_1.key +0 -0
- package/bin/proving-keys/combined_26_2_1.vkey +1 -1
- package/bin/proving-keys/combined_26_2_2.key +0 -0
- package/bin/proving-keys/combined_26_2_2.vkey +1 -1
- package/bin/proving-keys/combined_26_3_1.key +0 -0
- package/bin/proving-keys/combined_26_3_1.vkey +1 -1
- package/bin/proving-keys/combined_26_3_2.key +0 -0
- package/bin/proving-keys/combined_26_3_2.vkey +1 -1
- package/bin/proving-keys/combined_26_4_1.key +0 -0
- package/bin/proving-keys/combined_26_4_1.vkey +1 -1
- package/bin/proving-keys/combined_26_4_2.key +0 -0
- package/bin/proving-keys/combined_26_4_2.vkey +1 -1
- package/bin/proving-keys/inclusion_26_1.key +0 -0
- package/bin/proving-keys/inclusion_26_1.vkey +1 -1
- package/bin/proving-keys/inclusion_26_2.key +0 -0
- package/bin/proving-keys/inclusion_26_2.vkey +1 -1
- package/bin/proving-keys/inclusion_26_3.key +0 -0
- package/bin/proving-keys/inclusion_26_3.vkey +1 -1
- package/bin/proving-keys/inclusion_26_4.key +0 -0
- package/bin/proving-keys/inclusion_26_4.vkey +1 -1
- package/bin/proving-keys/inclusion_26_8.key +0 -0
- package/bin/proving-keys/inclusion_26_8.vkey +1 -1
- package/bin/proving-keys/non-inclusion_26_1.key +0 -0
- package/bin/proving-keys/non-inclusion_26_1.vkey +1 -1
- package/bin/proving-keys/non-inclusion_26_2.key +0 -0
- package/bin/proving-keys/non-inclusion_26_2.vkey +1 -1
- package/dist/commands/{register-mint → create-token-pool}/index.js +4 -4
- package/dist/commands/init/index.d.ts +26 -0
- package/dist/commands/init/index.js +180 -0
- package/dist/commands/merge-token-accounts/index.d.ts +11 -0
- package/dist/commands/merge-token-accounts/index.js +41 -0
- package/dist/commands/test-validator/index.d.ts +1 -1
- package/dist/commands/test-validator/index.js +29 -20
- package/dist/utils/constants.d.ts +20 -7
- package/dist/utils/constants.js +21 -8
- package/dist/utils/initTestEnv.d.ts +8 -4
- package/dist/utils/initTestEnv.js +31 -8
- package/dist/utils/process.d.ts +1 -1
- package/dist/utils/process.js +26 -13
- package/dist/utils/processPhotonIndexer.d.ts +1 -0
- package/dist/utils/processPhotonIndexer.js +1 -0
- package/dist/utils/processProverServer.d.ts +1 -0
- package/dist/utils/processProverServer.js +6 -1
- package/oclif.manifest.json +242 -173
- package/package.json +9 -9
- package/bin/forester.toml +0 -8
- package/dist/utils/processForester.d.ts +0 -3
- package/dist/utils/processForester.js +0 -24
- /package/dist/commands/{register-mint → create-token-pool}/index.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightprotocol/zk-compression-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
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.95.
|
|
33
|
+
"@solana/web3.js": "^1.95.3",
|
|
34
34
|
"axios": "^1.6.8",
|
|
35
35
|
"case-anything": "^2.1.13",
|
|
36
36
|
"cli-progress": "^3.12.0",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"tweetnacl": "^1.0.3",
|
|
45
45
|
"wait-on": "^7.2.0",
|
|
46
46
|
"which": "^4.0.0",
|
|
47
|
-
"@lightprotocol/
|
|
48
|
-
"@lightprotocol/
|
|
47
|
+
"@lightprotocol/compressed-token": "0.13.0",
|
|
48
|
+
"@lightprotocol/stateless.js": "0.13.0",
|
|
49
49
|
"@lightprotocol/hasher.rs": "0.2.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
@@ -100,8 +100,7 @@
|
|
|
100
100
|
"inputs": [
|
|
101
101
|
"{workspaceRoot}/js",
|
|
102
102
|
"{workspaceRoot}/programs",
|
|
103
|
-
"{workspaceRoot}/gnark-prover"
|
|
104
|
-
"{workspaceRoot}/forester"
|
|
103
|
+
"{workspaceRoot}/gnark-prover"
|
|
105
104
|
],
|
|
106
105
|
"outputs": [
|
|
107
106
|
"{workspaceRoot}/bin",
|
|
@@ -113,7 +112,7 @@
|
|
|
113
112
|
}
|
|
114
113
|
},
|
|
115
114
|
"scripts": {
|
|
116
|
-
"add-bins": "./scripts/copyLocalProgramBinaries.sh &&
|
|
115
|
+
"add-bins": "./scripts/copyLocalProgramBinaries.sh && scripts/buildProver.sh",
|
|
117
116
|
"postinstall": "[ -d ./bin ] && find ./bin -type f -exec chmod +x {} + || echo 'No bin directory found, skipping chmod'",
|
|
118
117
|
"build": "shx rm -rf dist && pnpm tsc -p tsconfig.json && pnpm tsc -p tsconfig.test.json && pnpm add-bins",
|
|
119
118
|
"format": "pnpm prettier --write \"src/**/*.{ts,js}\" \"test/**/*.{ts,js}\" -w",
|
|
@@ -123,7 +122,8 @@
|
|
|
123
122
|
"test-utils": "mocha ./test/utils/index.test.ts -t 10000000 --exit",
|
|
124
123
|
"test-config": "mocha ./test/commands/config/index.test.ts -t 10000000 --exit",
|
|
125
124
|
"test-create-mint": "mocha ./test/commands/create-mint/index.test.ts -t 10000000 --exit",
|
|
126
|
-
"test-
|
|
125
|
+
"test-merge-token-accounts": "mocha ./test/commands/merge-token-accounts/index.test.ts -t 10000000 --exit",
|
|
126
|
+
"test-create-token-pool": "mocha ./test/commands/create-token-pool/index.test.ts -t 10000000 --exit",
|
|
127
127
|
"test-approve-and-mint-to": "mocha ./test/commands/approve-and-mint-to/index.test.ts -t 10000000 --exit",
|
|
128
128
|
"test-mint-to": "mocha ./test/commands/mint-to/index.test.ts -t 10000000 --exit",
|
|
129
129
|
"test-transfer": "mocha ./test/commands/transfer/index.test.ts -t 10000000 --exit",
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
"test-decompress-spl": "mocha ./test/commands/decompress-spl/index.test.ts -t 10000000 --exit",
|
|
135
135
|
"kill": "killall solana-test-validator || true && killall solana-test-val || true && sleep 1",
|
|
136
136
|
"test-cli": "pnpm test-config && pnpm kill",
|
|
137
|
-
"test": "pnpm kill && pnpm test-cli && pnpm test-utils && pnpm test-create-mint && pnpm test-mint-to && pnpm test-transfer && pnpm test-compress-spl && pnpm test-decompress-spl && pnpm test-balance && pnpm test-compress-sol && pnpm test-decompress-sol && pnpm test-
|
|
137
|
+
"test": "pnpm kill && pnpm test-cli && pnpm test-utils && pnpm test-create-mint && pnpm test-mint-to && pnpm test-transfer && pnpm test-merge-token-accounts && pnpm test-create-token-pool && pnpm test-compress-spl && pnpm test-decompress-spl && pnpm test-balance && pnpm test-compress-sol && pnpm test-decompress-sol && pnpm test-approve-and-mint-to",
|
|
138
138
|
"install-local": "pnpm build && pnpm global remove @lightprotocol/zk-compression-cli || true && pnpm global add $PWD",
|
|
139
139
|
"version": "oclif readme && git add README.md"
|
|
140
140
|
}
|
package/bin/forester.toml
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.killForester = killForester;
|
|
4
|
-
exports.startForester = startForester;
|
|
5
|
-
exports.getForesterBinaryName = getForesterBinaryName;
|
|
6
|
-
const tslib_1 = require("tslib");
|
|
7
|
-
const path_1 = tslib_1.__importDefault(require("path"));
|
|
8
|
-
const process_1 = require("./process");
|
|
9
|
-
const constants_1 = require("./constants");
|
|
10
|
-
async function killForester() {
|
|
11
|
-
await (0, process_1.killProcess)(constants_1.FORESTER_PROCESS_NAME);
|
|
12
|
-
}
|
|
13
|
-
async function startForester() {
|
|
14
|
-
console.log("Killing existing forester process...");
|
|
15
|
-
await killForester();
|
|
16
|
-
console.log("Starting forester...");
|
|
17
|
-
(0, process_1.spawnBinary)(getForesterBinaryName(), ["subscribe"]);
|
|
18
|
-
console.log("Forester started successfully!");
|
|
19
|
-
}
|
|
20
|
-
function getForesterBinaryName() {
|
|
21
|
-
const binDir = path_1.default.join(__dirname, "../..", "bin");
|
|
22
|
-
const binaryName = path_1.default.join(binDir, "forester");
|
|
23
|
-
return binaryName;
|
|
24
|
-
}
|
|
File without changes
|