@lightprotocol/zk-compression-cli 0.19.3 → 0.20.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/README.md +2 -4
- package/bin/account_compression.so +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/dist/commands/start-prover/index.js +2 -0
- package/dist/utils/constants.d.ts +1 -1
- package/dist/utils/constants.js +1 -1
- package/dist/utils/initTestEnv.js +1 -1
- package/dist/utils/process.js +2 -3
- package/dist/utils/processProverServer.js +0 -1
- package/oclif.manifest.json +4 -2
- package/package.json +7 -3
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ZK Compression CLI
|
|
2
2
|
|
|
3
|
-
CLI to interact with
|
|
3
|
+
CLI to interact with compressed accounts and compressed tokens on Solana.
|
|
4
4
|
|
|
5
5
|
## Requirements
|
|
6
6
|
|
|
@@ -179,9 +179,7 @@ FLAGS
|
|
|
179
179
|
|
|
180
180
|
```
|
|
181
181
|
|
|
182
|
-
####
|
|
183
|
-
|
|
184
|
-
> **Note:** Ensure the SOL omnibus account of the Light system program is already initialized by running: `light init-sol-pool`
|
|
182
|
+
#### Assign native SOL to a compressed account
|
|
185
183
|
|
|
186
184
|
```bash
|
|
187
185
|
light compress-sol --amount 1000 --to "YOUR_WALLET_ADDRESS_BASE58"
|
|
Binary file
|
|
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
|
|
@@ -39,9 +39,11 @@ StartProver.flags = {
|
|
|
39
39
|
"append-with-proofs",
|
|
40
40
|
"append-with-subtrees",
|
|
41
41
|
"update",
|
|
42
|
+
"address-append",
|
|
42
43
|
"append-with-proofs-test",
|
|
43
44
|
"append-with-subtrees-test",
|
|
44
45
|
"update-test",
|
|
46
|
+
"address-append-test",
|
|
45
47
|
],
|
|
46
48
|
multiple: true,
|
|
47
49
|
required: false,
|
|
@@ -12,7 +12,7 @@ export declare const CARGO_GENERATE_TAG = "v0.18.4";
|
|
|
12
12
|
export declare const SOLANA_VALIDATOR_PROCESS_NAME = "solana-test-validator";
|
|
13
13
|
export declare const LIGHT_PROVER_PROCESS_NAME = "light-prover";
|
|
14
14
|
export declare const INDEXER_PROCESS_NAME = "photon";
|
|
15
|
-
export declare const PHOTON_VERSION = "0.
|
|
15
|
+
export declare const PHOTON_VERSION = "0.50.0";
|
|
16
16
|
export declare const LIGHT_PROTOCOL_PROGRAMS_DIR_ENV = "LIGHT_PROTOCOL_PROGRAMS_DIR";
|
|
17
17
|
export declare const BASE_PATH = "../../bin/";
|
|
18
18
|
export declare const PROGRAM_ID = "Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS";
|
package/dist/utils/constants.js
CHANGED
|
@@ -17,7 +17,7 @@ exports.CARGO_GENERATE_TAG = "v0.18.4";
|
|
|
17
17
|
exports.SOLANA_VALIDATOR_PROCESS_NAME = "solana-test-validator";
|
|
18
18
|
exports.LIGHT_PROVER_PROCESS_NAME = "light-prover";
|
|
19
19
|
exports.INDEXER_PROCESS_NAME = "photon";
|
|
20
|
-
exports.PHOTON_VERSION = "0.
|
|
20
|
+
exports.PHOTON_VERSION = "0.50.0";
|
|
21
21
|
exports.LIGHT_PROTOCOL_PROGRAMS_DIR_ENV = "LIGHT_PROTOCOL_PROGRAMS_DIR";
|
|
22
22
|
exports.BASE_PATH = "../../bin/";
|
|
23
23
|
exports.PROGRAM_ID = "Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS";
|
|
@@ -192,7 +192,7 @@ async function startTestValidator({ additionalPrograms, skipSystemAccounts, limi
|
|
|
192
192
|
});
|
|
193
193
|
await killTestValidator();
|
|
194
194
|
await new Promise((r) => setTimeout(r, 1000));
|
|
195
|
-
console.log("Starting test validator..."
|
|
195
|
+
console.log("Starting test validator...");
|
|
196
196
|
await (0, process_1.executeCommand)({
|
|
197
197
|
command,
|
|
198
198
|
args: [...solanaArgs],
|
package/dist/utils/process.js
CHANGED
|
@@ -77,7 +77,6 @@ async function executeCommand({ command, args, additionalPath, logFile = true, e
|
|
|
77
77
|
}
|
|
78
78
|
logStream = fs_1.default.createWriteStream(file, { flags: "a" });
|
|
79
79
|
}
|
|
80
|
-
console.log(`Executing command: ${fullCommand}`);
|
|
81
80
|
let childProcess;
|
|
82
81
|
try {
|
|
83
82
|
childProcess = (0, child_process_1.spawn)(fullCommand, [], options);
|
|
@@ -165,8 +164,8 @@ async function waitForServers(servers) {
|
|
|
165
164
|
const opts = {
|
|
166
165
|
resources: servers.map(({ port, path }) => `http-get://127.0.0.1:${port}${path}`),
|
|
167
166
|
delay: 1000,
|
|
168
|
-
timeout:
|
|
169
|
-
interval:
|
|
167
|
+
timeout: 300000,
|
|
168
|
+
interval: 1000,
|
|
170
169
|
simultaneous: 2,
|
|
171
170
|
validateStatus: function (status) {
|
|
172
171
|
return ((status >= 200 && status < 300) || status === 404 || status === 405);
|
package/oclif.manifest.json
CHANGED
|
@@ -634,9 +634,11 @@
|
|
|
634
634
|
"append-with-proofs",
|
|
635
635
|
"append-with-subtrees",
|
|
636
636
|
"update",
|
|
637
|
+
"address-append",
|
|
637
638
|
"append-with-proofs-test",
|
|
638
639
|
"append-with-subtrees-test",
|
|
639
|
-
"update-test"
|
|
640
|
+
"update-test",
|
|
641
|
+
"address-append-test"
|
|
640
642
|
],
|
|
641
643
|
"type": "option"
|
|
642
644
|
}
|
|
@@ -871,5 +873,5 @@
|
|
|
871
873
|
]
|
|
872
874
|
}
|
|
873
875
|
},
|
|
874
|
-
"version": "0.
|
|
876
|
+
"version": "0.20.1"
|
|
875
877
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightprotocol/zk-compression-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.1",
|
|
4
4
|
"description": "ZK Compression: Secure Scaling on Solana",
|
|
5
5
|
"maintainers": [
|
|
6
6
|
{
|
|
@@ -21,6 +21,10 @@
|
|
|
21
21
|
"./config.json",
|
|
22
22
|
"/npm-shrinkwrap.json",
|
|
23
23
|
"/oclif.manifest.json",
|
|
24
|
+
"!bin/proving-keys/address-append_26_1.key",
|
|
25
|
+
"!bin/proving-keys/address-append_26_1.vkey",
|
|
26
|
+
"!bin/proving-keys/address-append_26_10.key",
|
|
27
|
+
"!bin/proving-keys/address-append_26_10.vkey",
|
|
24
28
|
"!bin/proving-keys/append-with-proofs_26_10.key",
|
|
25
29
|
"!bin/proving-keys/append-with-proofs_26_10.vkey",
|
|
26
30
|
"!bin/proving-keys/append-with-subtrees_26_10.key",
|
|
@@ -51,8 +55,8 @@
|
|
|
51
55
|
"tweetnacl": "^1.0.3",
|
|
52
56
|
"wait-on": "^7.2.0",
|
|
53
57
|
"which": "^4.0.0",
|
|
54
|
-
"@lightprotocol/compressed-token": "0.
|
|
55
|
-
"@lightprotocol/stateless.js": "0.
|
|
58
|
+
"@lightprotocol/compressed-token": "0.15.1",
|
|
59
|
+
"@lightprotocol/stateless.js": "0.15.1",
|
|
56
60
|
"@lightprotocol/hasher.rs": "0.2.0"
|
|
57
61
|
},
|
|
58
62
|
"devDependencies": {
|