@effectstream/npm-midnight-proof-server 0.104.0 → 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 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 (ledger-8.1.0).
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
@@ -4,7 +4,7 @@ const axios = require("axios");
4
4
  const extract = require("extract-zip");
5
5
  const path = require("path");
6
6
 
7
- const CURRENT_BINARY_VERSION = "ledger-8.1.0";
7
+ const CURRENT_BINARY_VERSION = "9.0.0-rc.5";
8
8
  const FINAL_BINARY_NAME = "midnight-proof-server";
9
9
 
10
10
  /**
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 = "midnightnetwork/proof-server";
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 = "latest") {
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 = "latest",
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 only)
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.104.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": {