@effectstream/npm-midnight-proof-server 0.104.1 → 0.200.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 -1
- package/binary.js +1 -1
- package/docker.js +4 -3
- package/index.js +1 -1
- package/package.json +1 -2
package/README.md
CHANGED
|
@@ -5,7 +5,8 @@ version into `node_modules/.bin/npm-midnight-proof-server` so the
|
|
|
5
5
|
EffectStream orchestrator can boot the proving sidecar that the
|
|
6
6
|
Midnight node depends on.
|
|
7
7
|
|
|
8
|
-
- Pinned Midnight proof-server sidecar (
|
|
8
|
+
- Pinned Midnight proof-server sidecar (`9.0.0-rc.5`).
|
|
9
|
+
- Native targets are `macos-arm64` and `linux-amd64`; no Linux arm64 asset is published.
|
|
9
10
|
- Boots alongside `@effectstream/npm-midnight-node`; no app-code import needed.
|
|
10
11
|
- Cache management via `--clean-binaries` / `--only-clean`.
|
|
11
12
|
- Required by ZK-heavy Midnight templates.
|
package/binary.js
CHANGED
package/docker.js
CHANGED
|
@@ -2,7 +2,8 @@ const { spawn, exec, execSync } = require("child_process");
|
|
|
2
2
|
const { promisify } = require("util");
|
|
3
3
|
const execAsync = promisify(exec);
|
|
4
4
|
|
|
5
|
-
const IMAGE_NAME = "
|
|
5
|
+
const IMAGE_NAME = "midnightntwrk/proof-server";
|
|
6
|
+
const IMAGE_TAG = "9.0.0-rc.5";
|
|
6
7
|
const CONTAINER_NAME = "midnight-proof-server";
|
|
7
8
|
|
|
8
9
|
async function checkIfDockerExists() {
|
|
@@ -14,7 +15,7 @@ async function checkIfDockerExists() {
|
|
|
14
15
|
}
|
|
15
16
|
}
|
|
16
17
|
|
|
17
|
-
async function pullDockerImage(tag =
|
|
18
|
+
async function pullDockerImage(tag = IMAGE_TAG) {
|
|
18
19
|
return new Promise((resolve, reject) => {
|
|
19
20
|
const child = spawn("docker", ["pull", `${IMAGE_NAME}:${tag}`], {
|
|
20
21
|
stdio: "inherit",
|
|
@@ -72,7 +73,7 @@ async function checkIfContainerRunning(containerName) {
|
|
|
72
73
|
async function runDockerContainer(
|
|
73
74
|
env = process.env,
|
|
74
75
|
args = [],
|
|
75
|
-
tag =
|
|
76
|
+
tag = IMAGE_TAG,
|
|
76
77
|
) {
|
|
77
78
|
const containerExists = await checkIfContainerExists(CONTAINER_NAME);
|
|
78
79
|
const containerRunning = await checkIfContainerRunning(CONTAINER_NAME);
|
package/index.js
CHANGED
|
@@ -26,7 +26,7 @@ function showUsage() {
|
|
|
26
26
|
console.log(`\nUsage: npm-midnight-proof-server [options] [args...]\n
|
|
27
27
|
Options:
|
|
28
28
|
--docker Force use of Docker container
|
|
29
|
-
--binary Force binary execution (Linux
|
|
29
|
+
--binary Force binary execution (macOS arm64 or Linux amd64)
|
|
30
30
|
--clean-binaries Delete downloaded binaries and download them again
|
|
31
31
|
--only-clean Only delete downloaded binaries without downloading them again
|
|
32
32
|
--help, -h Show this help message\n`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effectstream/npm-midnight-proof-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.200.1",
|
|
4
4
|
"description": "A wrapper for the Midnight proof server binary",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
},
|
|
14
14
|
"supportedPlatforms": [
|
|
15
15
|
"linux-amd64",
|
|
16
|
-
"linux-arm64",
|
|
17
16
|
"macos-arm64"
|
|
18
17
|
],
|
|
19
18
|
"dependencies": {
|