Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

docs: document the meshopt decode, the OIN operator lane and the federation runbook

nirholasaaafda7a9adb
diff --git a/README.md b/README.md
index 4c3a566cd..a66b18aaa 100644
--- a/README.md
+++ b/README.md
@@ -10646,7 +10646,7 @@ three.ws ships in four phases. Each phase closes a specific gap between the curr
| Phase | Theme | Status |
| ----- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
| **0** | Platform foundations (viewer, runtime, ERC-8004 + Metaplex Core identity, embed layer) | ✅ Shipped |
-| **1** | Selfie → Avatar engine (3-photo capture, hosted inference) | 🟡 In progress — capture UX + quality gates shipped; GPU reconstruction backend wiring |
+| **1** | Selfie → Avatar engine (3-photo capture, hosted inference) | 🟡 In progress: capture, reconstruction backend, rigging, R2 storage and draft mint are wired end to end; likeness fidelity is the open track |
| **2** | Agent personalization + voice cloning | 🟡 In progress — voice clone, persona, memory seeds shipped behind `/demos`; main-flow integration next |
| **3** | Onchain economy (agent tokens, reputation markets, royalties) | 🟡 In progress: bonding-curve sim, EAS-reputation viewer, 0xsplits + EAS SDKs landed; per-call skill royalties accrue on paid skill calls (`royalty_ledger`); contracts + audits next |
| **4** | Open inference network (decentralized GPU layer) | 🟡 Live core: open node-operator daemon + `/api/nodes` job queue with signed receipts shipped; Livepeer federation behind a flag |
@@ -10668,10 +10668,27 @@ The full stack is live at [three.ws](https://three.ws): WebGL viewer, LLM agent
**Deliverables**
-- Mobile-first capture UX with realtime quality gates (lighting, framing, blur)
-- Multi-view face reconstruction pipeline (FLAME / 3DMM fitting on top of a base body mesh)
-- Hosted inference workers (GPU-backed) for sub-minute generation
-- Output written directly to R2 and minted as a draft agent token — ERC-8004 on EVM, Metaplex Core asset on Solana
+- Mobile-first capture UX with realtime quality gates (lighting, framing, blur). Shipped: [src/selfie-capture.js](src/selfie-capture.js), [src/selfie-gates.js](src/selfie-gates.js)
+- Multi-view face reconstruction pipeline (landmark fitting on top of a base body mesh). Shipped: [workers/avatar-reconstruction](workers/avatar-reconstruction/) morphs a rigged template head to the person's 468 MediaPipe landmarks and projects the photo onto its skin
+- Hosted inference workers for sub-minute generation. Shipped on Cloud Run: submission, job status, the rig chain, and the abandoned-tab backstop are all live (see [Reconstruction backend](#reconstruction-backend-selfie--rigged-glb) below)
+- Output written directly to R2 and minted as a draft agent token: ERC-8004 on EVM, Metaplex Core asset on Solana. Shipped: [api/\_lib/reconstruct-finalize.js](api/_lib/reconstruct-finalize.js)
+
+**Open track:** likeness fidelity, measured by Identity Shape Error rather than by eye. The metric, the reference set and the adversarial set live in [workers/avatar-reconstruction/eval](workers/avatar-reconstruction/eval/); the program plan is [docs/avatar-fidelity-program.md](docs/avatar-fidelity-program.md).
+
+#### Reconstruction backend: selfie → rigged GLB
+
+The path a capture actually takes, end to end. Each hop is a real service; nothing here is stubbed.
+
+| Step | Where | What happens |
+| ---- | ----- | ------------ |
+| 1. Capture + gate | [src/selfie-pipeline.js](src/selfie-pipeline.js) | Three shots (frontal, left, right). The frontal must contain a face; every other gate is a warning the user can proceed past. Each shot is background-isolated and reframed to a head-and-shoulders square before it is sent. |
+| 2. Submit | `POST /api/avatars/reconstruct` | Resolves a provider (platform credentials first, then the caller's own key), submits, and writes an `avatar_regen_jobs` row. A submit that fails over to the next provider never double-charges. |
+| 3. Generate | Cloud Run worker | The worker fits the head geometry and skin to the photo and returns a rigged GLB. A capture it cannot use comes back classified as an input error, so the client can say what to fix instead of "try again". |
+| 4. Rig chain | [api/\_lib/reconstruct-finalize.js](api/_lib/reconstruct-finalize.js) | A mesh that arrives without a skeleton is sent to the rig worker. If rigging is unavailable or fails, the bare mesh is delivered tagged `unrigged`: the user is never left empty-handed. |
+| 5. Store + register | R2, `avatars`, `forge_creations` | The GLB is canonicalized (bone names, up-axis), stored in R2, and registered in the same Forge store the rest of the platform reads, so galleries, embeds and provenance see a capture like any other creation. |
+| 6. Draft mint | [api/\_lib/draft-mint.js](api/_lib/draft-mint.js) | Best-effort draft agent identity. A mint hiccup never fails a delivered avatar. |
+| 7. Poll | `GET /api/avatars/regenerate-status?jobId=…` | Drives steps 4 to 6 from the browser and reports `queued` / `running` / `rigging` / `done` / `failed`. |
+| 8. Backstop | [api/cron/reconstruct-sweep.js](api/cron/reconstruct-sweep.js) | Close the tab and the browser poll stops. The sweep runs the same finalize stages server-side, so an abandoned capture still lands in the user's library. |
**Compute requirements**
diff --git a/STRUCTURE.md b/STRUCTURE.md
index 9fde88e07..17e9a6fbe 100644
--- a/STRUCTURE.md
+++ b/STRUCTURE.md
@@ -140,6 +140,7 @@ bottom.
| Integration demos | [multiplayer/](multiplayer), [examples/coach-leo/](examples/coach-leo) | In-repo | Multiplayer and VR demos |
| Avatar service backend | [api/](api) + [workers/](workers) | In-repo | Serverless-style handlers + Cloudflare workers |
| Open inference network: node operator client | [node-operator/](node-operator) (README, Dockerfile + Dockerfile.gpu, src/) | In-repo | Phase 4 roadmap: anyone runs an inference node. Self-contained daemon that registers with the coordinator (bearer shared-secret, the `SCREEN_WORKER_SECRET` pattern), claims `llm.completion` jobs, executes them with a real open model (distilgpt2 via ONNX Runtime, CPU default with a one-flag GPU image), and returns results signed with the node's Solana Ed25519 key over a canonical string that binds job id, node address, model, and the SHA-256 of input and output. `node src/cli.js selftest` proves register -> claim -> signed verified result end to end against an in-process coordinator; `node src/cli.js verify receipt.json` verifies any signed result offline. Docs: [docs/inference-node-operator.md](docs/inference-node-operator.md). Tests: [tests/node-operator.test.js](tests/node-operator.test.js) |
+| Open Inference Protocol (OIN v0.1) | spec [specs/OPEN_INFERENCE_PROTOCOL.md](specs/OPEN_INFERENCE_PROTOCOL.md), verifier [api/_lib/oin-verify.js](api/_lib/oin-verify.js), conformance runner [scripts/oin-conformance.mjs](scripts/oin-conformance.mjs), reference node [workers/stylize/oin.py](workers/stylize/oin.py) | In-repo | Phase 4 roadmap: the vendor-neutral wire protocol that decouples inference from any single provider. A job envelope, a signed capability advertisement at `GET /.well-known/oin`, and an Ed25519-signed response bound to the job by a SHA-256 digest over its RFC 8785 canonical form, so any third party can verify a node's result without trusting the transport or the platform. The stylize worker is the reference node behind `OIN_ENABLED=true` (byte-for-byte its pre-OIN self with the flag off) and self-hosted operators with no GCS bucket sign filesystem artifacts via `OIN_RESULT_DIR`. `node scripts/oin-conformance.mjs --node <url>` drives advertisement, submit, poll, response verification, and artifact hashing end to end. Settlement rides on [specs/inference-receipts.md](specs/inference-receipts.md). Tests: [tests/oin-verify.test.js](tests/oin-verify.test.js), [workers/stylize/test_stylize.py](workers/stylize/test_stylize.py) |
| Production server (Google Cloud Run) | [server/](server) + [Dockerfile](Dockerfile) | Live | Single Express container serving the static frontend, the vercel.json route table, and all `api/**` handlers with Vercel-parity routing; deploy via `npm run deploy:gcp` ([server/cloudbuild.yaml](server/cloudbuild.yaml)), crons via [scripts/create-gcp-scheduler.mjs](scripts/create-gcp-scheduler.mjs) · see [server/README.md](server/README.md) |
| Multiplayer 3D world (world.three.ws) | [deploy/world/](deploy/world) — [Dockerfile](deploy/world/Dockerfile), [cloudrun.yaml](deploy/world/cloudrun.yaml), [apply-hardening.sh](deploy/world/apply-hardening.sh), patches in [deploy/world/patches/](deploy/world/patches); health monitor [api/cron/world-health.js](api/cron/world-health.js) | Live · `hyperfy-world` on Cloud Run | [Hyperfy](https://github.com/hyperfy-xyz/hyperfy) pinned to an exact upstream commit and rebuilt with three local patches (server-side upload cap, `/status` blueprint-asset enumeration, fail-closed-without-`ADMIN_CODE`). World state (SQLite + uploaded assets) lives in the GCS bucket `world-three-ws-data` mounted at `/app/world`, so the container is stateless. **The world is gated:** without `ADMIN_CODE` Hyperfy's `effectiveRank` falls back to `Ranks.ADMIN` and every anonymous visitor gets server-side build rights — the fail-open default that emptied the world on 2026-06-12. Deploy + verify with `bash deploy/world/apply-hardening.sh`; builders unlock in-world with `/admin <code>`. See [deploy/world/README.md](deploy/world/README.md) |
| On-chain identity | [contracts/](contracts) | In-repo | Foundry-based on-chain agent identity, ERC-8004 |
diff --git a/api/_lib/agent-manifest-sign.js b/api/_lib/agent-manifest-sign.js
index 618d05e2e..62f097991 100644
--- a/api/_lib/agent-manifest-sign.js
+++ b/api/_lib/agent-manifest-sign.js
@@ -86,7 +86,7 @@ export function buildAgentManifest(a) {
if (!a || !a.agentId) throw new Error('buildAgentManifest: agentId is required');
const systemPrompt = str(a.systemPrompt);
if (!systemPrompt.trim()) {
- throw new Error('buildAgentManifest: systemPrompt is required — an unconfigured agent has nothing to attest');
+ throw new Error('buildAgentManifest: systemPrompt is required. An unconfigured agent has nothing to attest');
}
const traits = {};
diff --git a/api/agents/_id/manifest-signed.js b/api/agents/_id/manifest-signed.js
index 12541c91c..1cedfd130 100644
--- a/api/agents/_id/manifest-signed.js
+++ b/api/agents/_id/manifest-signed.js
@@ -110,7 +110,7 @@ export const handleSignedManifest = wrap(async (req, res, id, action) => {
res,
404,
'not_published',
- 'this agent has no signed manifest yet — save its persona, or POST /api/agents/:id/manifest/publish',
+ 'this agent has no signed manifest yet. Save its persona, or POST /api/agents/:id/manifest/publish',
);
}
diff --git a/contracts/program-tests/Cargo.lock b/contracts/program-tests/Cargo.lock
index 81e00403b..701abf8e2 100644
--- a/contracts/program-tests/Cargo.lock
+++ b/contracts/program-tests/Cargo.lock
@@ -45,11 +45,11 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "402f8462d64e03c9b09a96b1898f7dbc8b9c5d6e9534fb777905df599ad5d787"
dependencies = [
"ahash",
- "solana-epoch-schedule 3.2.0",
- "solana-hash 4.5.0",
+ "solana-epoch-schedule",
+ "solana-hash",
"solana-keypair",
"solana-pubkey 4.2.1",
- "solana-sha256-hasher 3.1.0",
+ "solana-sha256-hasher",
"solana-svm-feature-set",
]
@@ -61,7 +61,7 @@ checksum = "67feaf5d8fc8454cbeed9a4ed0f80b2deb7f552a00bf20ac594a44289dcbd2d0"
dependencies = [
"agave-feature-set",
"solana-pubkey 4.2.1",
- "solana-sdk-ids 3.1.0",
+ "solana-sdk-ids",
]
[[package]]
@@ -505,12 +505,6 @@ dependencies = [
"tinyvec",
]
-[[package]]
-name = "bumpalo"
-version = "3.20.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649"
-
[[package]]
name = "bv"
version = "0.11.1"
@@ -874,18 +868,6 @@ dependencies = [
"zeroize",
]
-[[package]]
-name = "ed25519-dalek-bip32"
-version = "0.3.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6b49a684b133c4980d7ee783936af771516011c8cd15f429dbda77245e282f03"
-dependencies = [
- "derivation-path",
- "ed25519-dalek",
- "hmac",
- "sha2 0.10.9",
-]
-
[[package]]
name = "educe"
version = "0.6.0"
@@ -998,31 +980,13 @@ version = "0.1.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "26b73573e6edcd2af0cdf47bd6cb58f0b3839491263c314eaad1ccf24430e1de"
-[[package]]
-name = "five8"
-version = "0.2.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a75b8549488b4715defcb0d8a8a1c1c76a80661b5fa106b4ca0e7fce59d7d875"
-dependencies = [
- "five8_core 0.1.2",
-]
-
[[package]]
name = "five8"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "23f76610e969fa1784327ded240f1e28a3fd9520c9cec93b636fcf62dd37f772"
dependencies = [
- "five8_core 1.0.0",
-]
-
-[[package]]
-name = "five8_const"
-version = "0.1.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "26dec3da8bc3ef08f2c04f61eab298c3ab334523e55f076354d6d6f613799a7b"
-dependencies = [
- "five8_core 0.1.2",
+ "five8_core",
]
[[package]]
@@ -1031,15 +995,9 @@ version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1a0f1728185f277989ca573a402716ae0beaaea3f76a8ff87ef9dd8fb19436c5"
dependencies = [
- "five8_core 1.0.0",
+ "five8_core",
]
-[[package]]
-name = "five8_core"
-version = "0.1.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2551bf44bc5f776c15044b9b94153a00198be06743e262afaaa61f11ac7523a5"
-
[[package]]
name = "five8_core"
version = "1.0.0"
@@ -1058,30 +1016,6 @@ version = "2.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c"
-[[package]]
-name = "futures-core"
-version = "0.3.34"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e"
-
-[[package]]
-name = "futures-task"
-version = "0.3.34"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cd417de3d1d015fc3bfd2b1ea46dfc7bab72ef86f1cc7cc9c78e728b34a6d1fd"
-
-[[package]]
-name = "futures-util"
-version = "0.3.34"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0d50a92467f8ba5dd6e3ee5d4bd04d73ab2e4e1c44474a0674821dfce14b79bc"
-dependencies = [
- "futures-core",
- "futures-task",
- "pin-project-lite",
- "slab",
-]
-
[[package]]
name = "generic-array"
version = "0.14.7"
@@ -1100,10 +1034,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0"
dependencies = [
"cfg-if",
- "js-sys",
"libc",
"wasi",
- "wasm-bindgen",
]
[[package]]
@@ -1252,17 +1184,6 @@ version = "1.0.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
-[[package]]
-name = "js-sys"
-version = "0.3.104"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0e0c1080212aad755ea003d18543e8768dd432c48819efd73a7bf1e39b7a5a3a"
-dependencies = [
- "cfg-if",
- "futures-util",
- "wasm-bindgen",
-]
-
[[package]]
name = "k256"
version = "0.13.4"
@@ -1381,53 +1302,53 @@ dependencies = [
"itertools 0.14.0",
"log",
"serde",
- "solana-account 4.3.2",
+ "solana-account",
"solana-address 2.6.1",
"solana-address-lookup-table-interface",
"solana-builtins",
- "solana-clock 3.1.1",
+ "solana-clock",
"solana-compute-budget",
"solana-compute-budget-instruction",
- "solana-epoch-rewards 3.1.0",
- "solana-epoch-schedule 3.2.0",
+ "solana-epoch-rewards",
+ "solana-epoch-schedule",
"solana-feature-gate-interface",
"solana-fee",
- "solana-fee-calculator 3.2.2",
+ "solana-fee-calculator",
"solana-fee-structure",
- "solana-hash 4.5.0",
- "solana-instruction 3.4.1",
+ "solana-hash",
+ "solana-instruction",
"solana-instruction-error",
"solana-instructions-sysvar 4.0.0",
"solana-keypair",
- "solana-last-restart-slot 3.1.0",
+ "solana-last-restart-slot",
"solana-loader-v3-interface 8.0.1",
"solana-loader-v4-interface",
- "solana-message 4.4.1",
+ "solana-message",
"solana-native-token",
"solana-nonce",
"solana-nonce-account",
"solana-precompile-error",
- "solana-program-error 3.0.1",
+ "solana-program-error",
"solana-program-runtime",
- "solana-rent 4.3.0",
- "solana-sdk-ids 3.1.0",
- "solana-sha256-hasher 3.1.0",
+ "solana-rent",
+ "solana-sdk-ids",
+ "solana-sha256-hasher",
"solana-short-vec",
"solana-signature",
"solana-signer",
- "solana-slot-hashes 3.1.0",
- "solana-slot-history 3.1.0",
+ "solana-slot-hashes",
+ "solana-slot-history",
"solana-stake-history",
"solana-svm-callback",
"solana-svm-log-collector",
"solana-svm-timings",
"solana-svm-transaction",
"solana-syscalls",
- "solana-system-interface 3.2.0",
+ "solana-system-interface",
"solana-system-program",
- "solana-sysvar 4.1.0",
- "solana-sysvar-id 3.1.0",
- "solana-transaction 4.1.6",
+ "solana-sysvar",
+ "solana-sysvar-id",
+ "solana-transaction",
"solana-transaction-context",
"solana-transaction-error",
"thiserror 2.0.20",
@@ -1455,15 +1376,6 @@ version = "2.8.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
-[[package]]
-name = "memoffset"
-version = "0.9.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
-dependencies = [
- "autocfg",
-]
-
[[package]]
name = "merlin"
version = "3.0.0"
@@ -1582,28 +1494,6 @@ dependencies = [
"libc",
]
-[[package]]
-name = "num_enum"
-version = "0.7.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5d0bca838442ec211fa11de3a8b0e0e8f3a4522575b5c4c06ed722e005036f26"
-dependencies = [
- "num_enum_derive",
- "rustversion",
-]
-
-[[package]]
-name = "num_enum_derive"
-version = "0.7.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "680998035259dcfcafe653688bf2aa6d3e2dc05e98be6ab46afb089dc84f1df8"
-dependencies = [
- "proc-macro-crate",
- "proc-macro2",
- "quote",
- "syn 2.0.119",
-]
-
[[package]]
name = "once_cell"
version = "1.21.4"
@@ -1684,12 +1574,6 @@ dependencies = [
"num",
]
-[[package]]
-name = "pin-project-lite"
-version = "0.2.17"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
-
[[package]]
name = "pkcs8"
version = "0.10.2"
@@ -1747,10 +1631,14 @@ dependencies = [
"litesvm",
"sha2 0.10.9",
"solana-builtins",
+ "solana-instruction",
+ "solana-keypair",
"solana-program-runtime",
- "solana-sdk",
+ "solana-pubkey 3.0.0",
+ "solana-signer",
+ "solana-system-interface",
+ "solana-transaction",
"solana-transaction-context",
- "spl-token",
]
[[package]]
@@ -1896,12 +1784,6 @@ dependencies = [
"semver",
]
-[[package]]
-name = "rustversion"
-version = "1.0.23"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f"
-
[[package]]
name = "scopeguard"
version = "1.2.0"
@@ -1938,15 +1820,6 @@ dependencies = [
"serde_derive",
]
-[[package]]
-name = "serde-big-array"
-version = "0.5.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "11fc7cc2c76d73e0f27ee52abbd64eec84d46f370c88371120433196934e4b7f"
-dependencies = [
- "serde",
-]
-
[[package]]
name = "serde_bytes"
version = "0.11.19"
@@ -2068,42 +1941,12 @@ dependencies = [
"rand_core 0.6.4",
]
-[[package]]
-name = "siphasher"
-version = "0.3.11"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "38b58827f4464d87d377d175e90bf58eb00fd8716ff0a62f80356b5e61555d0d"
-
-[[package]]
-name = "slab"
-version = "0.4.12"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
-
[[package]]
name = "smallvec"
version = "1.15.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8ed6a63f02c8539c91a8685a86f4099661ba3da017932f6ebbea6de3f0fa7c90"
-[[package]]
-name = "solana-account"
-version = "3.4.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "efc0ed36decb689413b9da5d57f2be49eea5bebb3cf7897015167b0c4336e731"
-dependencies = [
- "bincode",
- "serde",
- "serde_bytes",
- "serde_derive",
- "solana-account-info 3.1.1",
- "solana-clock 3.1.1",
- "solana-instruction-error",
- "solana-pubkey 4.2.1",
- "solana-sdk-ids 3.1.0",
- "solana-sysvar 3.1.1",
-]
-
[[package]]
name = "solana-account"
version = "4.3.2"
@@ -2114,23 +1957,12 @@ dependencies = [
"serde",
"serde_bytes",
"serde_derive",
- "solana-account-info 3.1.1",
- "solana-clock 3.1.1",
+ "solana-account-info",
+ "solana-clock",
"solana-instruction-error",
"solana-pubkey 4.2.1",
- "solana-sdk-ids 3.1.0",
- "solana-sysvar 4.1.0",
-]
-
-[[package]]
-name = "solana-account-info"
-version = "2.3.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c8f5152a288ef1912300fc6efa6c2d1f9bb55d9398eb6c72326360b8063987da"
-dependencies = [
- "solana-program-error 2.2.2",
- "solana-program-memory 2.3.1",
- "solana-pubkey 2.4.0",
+ "solana-sdk-ids",
+ "solana-sysvar",
]
[[package]]
@@ -2139,11 +1971,9 @@ version = "3.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a9cf16495d9eb53e3d04e72366a33bb1c20c24e78c171d8b8f5978357b63ae95"
dependencies = [
- "bincode",
- "serde_core",
"solana-address 2.6.1",
- "solana-program-error 3.0.1",
- "solana-program-memory 3.1.0",
+ "solana-program-error",
+ "solana-program-memory",
]
[[package]]
@@ -2165,17 +1995,16 @@ dependencies = [
"bytemuck",
"bytemuck_derive",
"curve25519-dalek",
- "five8 1.0.0",
- "five8_const 1.0.0",
- "rand 0.9.5",
+ "five8",
+ "five8_const",
"serde",
"serde_derive",
"sha2-const-stable",
- "solana-atomic-u64 3.0.1",
+ "solana-atomic-u64",
"solana-define-syscall 5.2.0",
- "solana-program-error 3.0.1",
- "solana-sanitize 3.0.1",
- "solana-sha256-hasher 3.1.0",
+ "solana-program-error",
+ "solana-sanitize",
+ "solana-sha256-hasher",
"wincode",
]
@@ -2189,21 +2018,12 @@ dependencies = [
"bytemuck",
"serde",
"serde_derive",
- "solana-clock 3.1.1",
- "solana-instruction 3.4.1",
+ "solana-clock",
+ "solana-instruction",
"solana-instruction-error",
"solana-pubkey 4.2.1",
- "solana-sdk-ids 3.1.0",
- "solana-slot-hashes 3.1.0",
-]
-
-[[package]]
-name = "solana-atomic-u64"
-version = "2.2.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d52e52720efe60465b052b9e7445a01c17550666beec855cce66f44766697bc2"
-dependencies = [
- "parking_lot",
+ "solana-sdk-ids",
+ "solana-slot-hashes",
]
[[package]]
@@ -2245,7 +2065,7 @@ checksum = "7116e1d942a2432ca3f514625104757ab8a56233787e95144c93950029e31176"
dependencies = [
"blake3",
"solana-define-syscall 4.0.1",
- "solana-hash 4.5.0",
+ "solana-hash",
]
[[package]]
@@ -2315,22 +2135,22 @@ checksum = "405953767b67426780c616218b911d095e00fbf97bdfe7e9d0b83002ec4b0731"
dependencies = [
"bincode",
"qualifier_attr",
- "solana-account 4.3.2",
+ "solana-account",
"solana-bincode",
- "solana-clock 3.1.1",
- "solana-instruction 3.4.1",
+ "solana-clock",
+ "solana-instruction",
"solana-loader-v3-interface 7.0.0",
- "solana-packet 4.2.0",
+ "solana-packet",
"solana-program-runtime",
"solana-pubkey 4.2.1",
"solana-sbpf",
- "solana-sdk-ids 3.1.0",
+ "solana-sdk-ids",
"solana-svm-feature-set",
"solana-svm-log-collector",
"solana-svm-measure",
"solana-svm-type-overrides",
"solana-syscalls",
- "solana-system-interface 3.2.0",
+ "solana-system-interface",
"solana-transaction-context",
]
@@ -2343,10 +2163,10 @@ dependencies = [
"agave-feature-set",
"solana-bpf-loader-program",
"solana-compute-budget-program",
- "solana-hash 4.5.0",
+ "solana-hash",
"solana-program-runtime",
"solana-pubkey 4.2.1",
- "solana-sdk-ids 3.1.0",
+ "solana-sdk-ids",
"solana-system-program",
"solana-vote-program",
"solana-zk-elgamal-proof-program",
@@ -2362,20 +2182,7 @@ dependencies = [
"agave-feature-set",
"ahash",
"solana-pubkey 4.2.1",
- "solana-sdk-ids 3.1.0",
-]
-
-[[package]]
-name = "solana-clock"
-version = "2.2.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f8584296123df8fe229b95e2ebfd37ae637fe9db9b7d4dd677ac5a78e80dbfce"
-dependencies = [
- "serde",
- "serde_derive",
- "solana-sdk-ids 2.2.1",
- "solana-sdk-macro 2.2.1",
- "solana-sysvar-id 2.2.1",
+ "solana-sdk-ids",
]
[[package]]
@@ -2387,9 +2194,9 @@ dependencies = [
"serde",
"serde_derive",
"solana-get-sysvar",
- "solana-sdk-ids 3.1.0",
- "solana-sdk-macro 3.0.1",
- "solana-sysvar-id 3.1.0",
+ "solana-sdk-ids",
+ "solana-sdk-macro",
+ "solana-sysvar-id",
"wincode",
]
@@ -2414,10 +2221,10 @@ dependencies = [
"solana-builtins-default-costs",
"solana-compute-budget",
"solana-compute-budget-interface",
- "solana-instruction 3.4.1",
- "solana-packet 4.2.0",
+ "solana-instruction",
+ "solana-packet",
"solana-pubkey 4.2.1",
- "solana-sdk-ids 3.1.0",
+ "solana-sdk-ids",
"solana-svm-transaction",
"solana-transaction-error",
]
@@ -2429,8 +2236,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8292c436b269ad23cecc8b24f7da3ab07ca111661e25e00ce0e1d22771951ab9"
dependencies = [
"borsh",
- "solana-instruction 3.4.1",
- "solana-sdk-ids 3.1.0",
+ "solana-instruction",
+ "solana-sdk-ids",
]
[[package]]
@@ -2442,32 +2249,18 @@ dependencies = [
"solana-program-runtime",
]
-[[package]]
-name = "solana-cpi"
-version = "2.2.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8dc71126edddc2ba014622fc32d0f5e2e78ec6c5a1e0eb511b85618c09e9ea11"
-dependencies = [
- "solana-account-info 2.3.0",
- "solana-define-syscall 2.3.0",
- "solana-instruction 2.3.3",
- "solana-program-error 2.2.2",
- "solana-pubkey 2.4.0",
- "solana-stable-layout 2.2.1",
-]
-
[[package]]
name = "solana-cpi"
version = "3.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4dea26709d867aada85d0d3617db0944215c8bb28d3745b912de7db13a23280c"
dependencies = [
- "solana-account-info 3.1.1",
+ "solana-account-info",
"solana-define-syscall 4.0.1",
- "solana-instruction 3.4.1",
- "solana-program-error 3.0.1",
+ "solana-instruction",
+ "solana-program-error",
"solana-pubkey 4.2.1",
- "solana-stable-layout 3.0.1",
+ "solana-stable-layout",
]
[[package]]
@@ -2484,21 +2277,6 @@ dependencies = [
"thiserror 2.0.20",
]
-[[package]]
-name = "solana-decode-error"
-version = "2.3.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8c781686a18db2f942e70913f7ca15dc120ec38dcab42ff7557db2c70c625a35"
-dependencies = [
- "num-traits",
-]
-
-[[package]]
-name = "solana-define-syscall"
-version = "2.3.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2ae3e2abcf541c8122eafe9a625d4d194b4023c20adde1e251f94e056bb1aee2"
-
[[package]]
name = "solana-define-syscall"
version = "3.0.0"
@@ -2528,30 +2306,6 @@ dependencies = [
"uriparse",
]
-[[package]]
-name = "solana-epoch-info"
-version = "3.1.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e093c84f6ece620a6b10cd036574b0cd51944231ab32d81f80f76d54aba833e6"
-dependencies = [
- "serde",
- "serde_derive",
-]
-
-[[package]]
-name = "solana-epoch-rewards"
-version = "2.2.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "86b575d3dd323b9ea10bb6fe89bf6bf93e249b215ba8ed7f68f1a3633f384db7"
-dependencies = [
- "serde",
- "serde_derive",
- "solana-hash 2.3.0",
- "solana-sdk-ids 2.2.1",
- "solana-sdk-macro 2.2.1",
- "solana-sysvar-id 2.2.1",
-]
-
[[package]]
name = "solana-epoch-rewards"
version = "3.1.0"
@@ -2561,37 +2315,13 @@ dependencies = [
"serde",
"serde_derive",
"solana-get-sysvar",
- "solana-hash 4.5.0",
- "solana-sdk-ids 3.1.0",
- "solana-sdk-macro 3.0.1",
- "solana-sysvar-id 3.1.0",
+ "solana-hash",
+ "solana-sdk-ids",
+ "solana-sdk-macro",
+ "solana-sysvar-id",
"wincode",
]
-[[package]]
-name = "solana-epoch-rewards-hasher"
-version = "3.1.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1ee8beac9bff4db9225e57d532d169b0be5e447f1e6601a2f50f27a01bf5518f"
-dependencies = [
- "siphasher",
- "solana-address 2.6.1",
- "solana-hash 4.5.0",
-]
-
-[[package]]
-name = "solana-epoch-schedule"
-version = "2.2.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3fce071fbddecc55d727b1d7ed16a629afe4f6e4c217bc8d00af3b785f6f67ed"
-dependencies = [
- "serde",
- "serde_derive",
- "solana-sdk-ids 2.2.1",
- "solana-sdk-macro 2.2.1",
- "solana-sysvar-id 2.2.1",
-]
-
[[package]]
name = "solana-epoch-schedule"
version = "3.2.0"
@@ -2601,44 +2331,13 @@ dependencies = [
"serde",
"serde_derive",
"solana-get-sysvar",
- "solana-program-error 3.0.1",
- "solana-sdk-ids 3.1.0",
- "solana-sdk-macro 3.0.1",
- "solana-sysvar-id 3.1.0",
+ "solana-program-error",
+ "solana-sdk-ids",
+ "solana-sdk-macro",
+ "solana-sysvar-id",
"wincode",
]
-[[package]]
-name = "solana-epoch-stake"
-version = "3.0.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "027e6d0b9e7daac5b2ac7c3f9ca1b727861121d9ef05084cf435ff736051e7c2"
-dependencies = [
- "solana-define-syscall 5.2.0",
- "solana-pubkey 4.2.1",
-]
-
-[[package]]
-name = "solana-example-mocks"
-version = "3.0.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "978855d164845c1b0235d4b4d101cadc55373fffaf0b5b6cfa2194d25b2ed658"
-dependencies = [
- "serde",
- "serde_derive",
- "solana-address-lookup-table-interface",
- "solana-clock 3.1.1",
- "solana-hash 3.1.0",
- "solana-instruction 3.4.1",
- "solana-keccak-hasher",
- "solana-message 3.1.0",
- "solana-nonce",
- "solana-pubkey 3.0.0",
- "solana-sdk-ids 3.1.0",
- "solana-system-interface 2.0.0",
- "thiserror 2.0.20",
-]
-
[[package]]
name = "solana-feature-gate-interface"
version = "4.0.0"
@@ -2648,14 +2347,14 @@ dependencies = [
"bincode",
"serde",
"serde_derive",
- "solana-account 4.3.2",
- "solana-account-info 3.1.1",
- "solana-instruction 3.4.1",
- "solana-program-error 3.0.1",
+ "solana-account",
+ "solana-account-info",
+ "solana-instruction",
+ "solana-program-error",
"solana-pubkey 4.2.1",
- "solana-rent 4.3.0",
- "solana-sdk-ids 3.1.0",
- "solana-system-interface 3.2.0",
+ "solana-rent",
+ "solana-sdk-ids",
+ "solana-system-interface",
]
[[package]]
@@ -2669,17 +2368,6 @@ dependencies = [
"solana-svm-transaction",
]
-[[package]]
-name = "solana-fee-calculator"
-version = "2.2.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d89bc408da0fb3812bc3008189d148b4d3e08252c79ad810b245482a3f70cd8d"
-dependencies = [
- "log",
- "serde",
- "serde_derive",
-]
-
[[package]]
name = "solana-fee-calculator"
version = "3.2.2"
@@ -2697,10 +2385,6 @@ name = "solana-fee-structure"
version = "3.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5e2abdb1223eea8ec64136f39cb1ffcf257e00f915c957c35c0dd9e3f4e700b0"
-dependencies = [
- "serde",
- "serde_derive",
-]
[[package]]
name = "solana-get-sysvar"
@@ -2710,39 +2394,7 @@ checksum = "ef3bc859fc036ed490146793557386cbfae614ebba4adc704c37d94350824ed4"
dependencies = [
"solana-address 2.6.1",
"solana-define-syscall 5.2.0",
- "solana-program-error 3.0.1",
-]
-
-[[package]]
-name = "solana-hard-forks"
-version = "3.2.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cdb50b2df7a36a2af58ce24bb0229622ac845dcc196e8c23b3ea4a29dd6bee09"
-
-[[package]]
-name = "solana-hash"
-version = "2.3.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b5b96e9f0300fa287b545613f007dfe20043d7812bee255f418c1eb649c93b63"
-dependencies = [
- "bytemuck",
- "bytemuck_derive",
- "five8 0.2.1",
- "js-sys",
- "serde",
- "serde_derive",
- "solana-atomic-u64 2.2.1",
- "solana-sanitize 2.2.1",
- "wasm-bindgen",
-]
-
-[[package]]
-name = "solana-hash"
-version = "3.1.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "337c246447142f660f778cf6cb582beba8e28deb05b3b24bfb9ffd7c562e5f41"
-dependencies = [
- "solana-hash 4.5.0",
+ "solana-program-error",
]
[[package]]
@@ -2751,14 +2403,12 @@ version = "4.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6f4c847893a2ea50b4ae3ca723b124e07cd0544fecea3598f785168f9b78333f"
dependencies = [
- "borsh",
"bytemuck",
"bytemuck_derive",
- "five8 1.0.0",
+ "five8",
"serde",
"serde_derive",
- "solana-atomic-u64 3.0.1",
- "solana-sanitize 3.0.1",
+ "solana-sanitize",
"wincode",
]
@@ -2769,76 +2419,28 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7ce934b02bab639341f2fd62c3e7e3c39dcceb47f0196b7630ed1f82ecb704bd"
[[package]]
-name = "solana-inflation"
-version = "3.2.0"
+name = "solana-instruction"
+version = "3.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dbf186550ea7438e2708bd0c233f01fe9c3fa45b9b607ff993b650ce60af102e"
+checksum = "a3957ca1d31107efd9a6bb88b25c348ca5e3b4b6683e3d08adb86d3d17aa01f1"
dependencies = [
+ "bincode",
"serde",
"serde_derive",
+ "solana-define-syscall 5.2.0",
+ "solana-instruction-error",
+ "solana-pubkey 4.2.1",
+ "wincode",
]
[[package]]
-name = "solana-instruction"
-version = "2.3.3"
+name = "solana-instruction-error"
+version = "2.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bab5682934bd1f65f8d2c16f21cb532526fcc1a09f796e2cacdb091eee5774ad"
+checksum = "3b7d34343838343a3755b7dfb1e438d94c6db2263b519cfe3c2257af932b6e93"
dependencies = [
- "bincode",
- "getrandom 0.2.17",
- "js-sys",
"num-traits",
- "serde",
- "serde_derive",
- "serde_json",
- "solana-define-syscall 2.3.0",
- "solana-pubkey 2.4.0",
- "wasm-bindgen",
-]
-
-[[package]]
-name = "solana-instruction"
-version = "3.4.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a3957ca1d31107efd9a6bb88b25c348ca5e3b4b6683e3d08adb86d3d17aa01f1"
-dependencies = [
- "bincode",
- "borsh",
- "serde",
- "serde_derive",
- "solana-define-syscall 5.2.0",
- "solana-instruction-error",
- "solana-pubkey 4.2.1",
- "wincode",
-]
-
-[[package]]
-name = "solana-instruction-error"
-version = "2.4.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3b7d34343838343a3755b7dfb1e438d94c6db2263b519cfe3c2257af932b6e93"
-dependencies = [
- "num-traits",
- "serde",
- "serde_derive",
- "solana-program-error 3.0.1",
-]
-
-[[package]]
-name = "solana-instructions-sysvar"
-version = "2.2.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e0e85a6fad5c2d0c4f5b91d34b8ca47118fc593af706e523cdbedf846a954f57"
-dependencies = [
- "bitflags",
- "solana-account-info 2.3.0",
- "solana-instruction 2.3.3",
- "solana-program-error 2.2.2",
- "solana-pubkey 2.4.0",
- "solana-sanitize 2.2.1",
- "solana-sdk-ids 2.2.1",
- "solana-serialize-utils 2.2.1",
- "solana-sysvar-id 2.2.1",
+ "solana-program-error",
]
[[package]]
@@ -2848,14 +2450,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9e0732294560e88ecdb2bbc656e67383e9f88c78ec09469cef172f0d28cd1bcd"
dependencies = [
"bitflags",
- "solana-account-info 3.1.1",
- "solana-instruction 3.4.1",
+ "solana-account-info",
+ "solana-instruction",
"solana-instruction-error",
- "solana-program-error 3.0.1",
- "solana-sanitize 3.0.1",
- "solana-sdk-ids 3.1.0",
- "solana-serialize-utils 3.1.2",
- "solana-sysvar-id 3.1.0",
+ "solana-program-error",
+ "solana-sanitize",
+ "solana-sdk-ids",
+ "solana-serialize-utils",
+ "solana-sysvar-id",
]
[[package]]
@@ -2865,14 +2467,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e38363a181313d607f7a118df2b401bb27b477a0104b09283cbf504f5f0f00cc"
dependencies = [
"bitflags",
- "solana-account-info 3.1.1",
- "solana-instruction 3.4.1",
+ "solana-account-info",
+ "solana-instruction",
"solana-instruction-error",
- "solana-program-error 3.0.1",
- "solana-sanitize 3.0.1",
- "solana-sdk-ids 3.1.0",
- "solana-serialize-utils 3.1.2",
- "solana-sysvar-id 3.1.0",
+ "solana-program-error",
+ "solana-sanitize",
+ "solana-sdk-ids",
+ "solana-serialize-utils",
+ "solana-sysvar-id",
]
[[package]]
@@ -2883,7 +2485,7 @@ checksum = "ed1c0d16d6fdeba12291a1f068cdf0d479d9bff1141bf44afd7aa9d485f65ef8"
dependencies = [
"sha3",
"solana-define-syscall 4.0.1",
- "solana-hash 4.5.0",
+ "solana-hash",
]
[[package]]
@@ -2893,31 +2495,15 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "263d614c12aa267a3278703175fd6440552ca61bc960b5a02a4482720c53438b"
dependencies = [
"ed25519-dalek",
- "ed25519-dalek-bip32",
- "five8 1.0.0",
- "five8_core 1.0.0",
+ "five8",
+ "five8_core",
"rand 0.9.5",
"solana-address 2.6.1",
- "solana-derivation-path",
- "solana-seed-derivable",
"solana-seed-phrase",
"solana-signature",
"solana-signer",
]
-[[package]]
-name = "solana-last-restart-slot"
-version = "2.2.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4a6360ac2fdc72e7463565cd256eedcf10d7ef0c28a1249d261ec168c1b55cdd"
-dependencies = [
- "serde",
- "serde_derive",
- "solana-sdk-ids 2.2.1",
- "solana-sdk-macro 2.2.1",
- "solana-sysvar-id 2.2.1",
-]
-
[[package]]
name = "solana-last-restart-slot"
version = "3.1.0"
@@ -2927,9 +2513,9 @@ dependencies = [
"serde",
"serde_derive",
"solana-get-sysvar",
- "solana-sdk-ids 3.1.0",
- "solana-sdk-macro 3.0.1",
- "solana-sysvar-id 3.1.0",
+ "solana-sdk-ids",
+ "solana-sdk-macro",
+ "solana-sysvar-id",
"wincode",
]
@@ -2942,9 +2528,9 @@ dependencies = [
"serde",
"serde_bytes",
"serde_derive",
- "solana-instruction 3.4.1",
+ "solana-instruction",
"solana-pubkey 4.2.1",
- "solana-sdk-ids 3.1.0",
+ "solana-sdk-ids",
]
[[package]]
@@ -2953,10 +2539,10 @@ version = "8.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "362b468fbde4c20521b9ff5ef743bc0d9b410455a5a92a8b29fd46954e89345f"
dependencies = [
- "solana-instruction 3.4.1",
+ "solana-instruction",
"solana-pubkey 4.2.1",
- "solana-sdk-ids 3.1.0",
- "solana-system-interface 3.2.0",
+ "solana-sdk-ids",
+ "solana-system-interface",
"wincode",
]
@@ -2966,29 +2552,9 @@ version = "3.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e4c948b33ff81fa89699911b207059e493defdba9647eaf18f23abdf3674e0fb"
dependencies = [
- "solana-instruction 3.4.1",
+ "solana-instruction",
"solana-pubkey 3.0.0",
- "solana-sdk-ids 3.1.0",
-]
-
-[[package]]
-name = "solana-message"
-version = "3.1.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0448b1fd891c5f46491e5dc7d9986385ba3c852c340db2911dd29faa01d2b08d"
-dependencies = [
- "bincode",
- "blake3",
- "lazy_static",
- "serde",
- "serde_derive",
- "solana-address 2.6.1",
- "solana-hash 4.5.0",
- "solana-instruction 3.4.1",
- "solana-sanitize 3.0.1",
- "solana-sdk-ids 3.1.0",
- "solana-short-vec",
- "solana-transaction-error",
+ "solana-sdk-ids",
]
[[package]]
@@ -2999,24 +2565,15 @@ checksum = "7e29e655f222a3a64145fedceacdca3e696ba7aded1dbd5391aa09d5fbfba53c"
dependencies = [
"blake3",
"solana-address 2.6.1",
- "solana-hash 4.5.0",
- "solana-instruction 3.4.1",
- "solana-sanitize 3.0.1",
- "solana-sdk-ids 3.1.0",
+ "solana-hash",
+ "solana-instruction",
+ "solana-sanitize",
+ "solana-sdk-ids",
"solana-short-vec",
"solana-transaction-error",
"wincode",
]
-[[package]]
-name = "solana-msg"
-version = "2.2.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f36a1a14399afaabc2781a1db09cb14ee4cc4ee5c7a5a3cfcc601811379a8092"
-dependencies = [
- "solana-define-syscall 2.3.0",
-]
-
[[package]]
name = "solana-msg"
version = "3.1.0"
@@ -3040,10 +2597,10 @@ checksum = "c4172d5b33a0a38fcdb2af8f84406570dd51567267da96c28ad0f31fc11621c0"
dependencies = [
"serde",
"serde_derive",
- "solana-fee-calculator 3.2.2",
- "solana-hash 4.5.0",
+ "solana-fee-calculator",
+ "solana-hash",
"solana-pubkey 4.2.1",
- "solana-sha256-hasher 3.1.0",
+ "solana-sha256-hasher",
"wincode",
]
@@ -3053,38 +2610,13 @@ version = "4.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b81bf7e2aa8c443724051507c1007d0b6d9c34b70925d3232dc78f5ca485209e"
dependencies = [
- "solana-account 4.3.2",
- "solana-hash 4.5.0",
+ "solana-account",
+ "solana-hash",
"solana-nonce",
- "solana-sdk-ids 3.1.0",
+ "solana-sdk-ids",
"wincode",
]
-[[package]]
-name = "solana-offchain-message"
-version = "3.0.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f6e2a1141a673f72a05cf406b99e4b2b8a457792b7c01afa07b3f00d4e2de393"
-dependencies = [
- "num_enum",
- "solana-hash 3.1.0",
- "solana-packet 3.0.0",
- "solana-pubkey 3.0.0",
- "solana-sanitize 3.0.1",
- "solana-sha256-hasher 3.1.0",
- "solana-signature",
- "solana-signer",
-]
-
-[[package]]
-name = "solana-packet"
-version = "3.0.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6edf2f25743c95229ac0fdc32f8f5893ef738dbf332c669e9861d33ddb0f469d"
-dependencies = [
- "bitflags",
-]
-
[[package]]
name = "solana-packet"
version = "4.2.0"
@@ -3118,120 +2650,23 @@ dependencies = [
"num-traits",
]
-[[package]]
-name = "solana-presigner"
-version = "3.0.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0f704eaf825be3180832445b9e4983b875340696e8e7239bf2d535b0f86c14a2"
-dependencies = [
- "solana-pubkey 3.0.0",
- "solana-signature",
- "solana-signer",
-]
-
-[[package]]
-name = "solana-program"
-version = "3.0.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "91b12305dd81045d705f427acd0435a2e46444b65367d7179d7bdcfc3bc5f5eb"
-dependencies = [
- "memoffset",
- "solana-account-info 3.1.1",
- "solana-big-mod-exp",
- "solana-blake3-hasher",
- "solana-borsh",
- "solana-clock 3.1.1",
- "solana-cpi 3.1.0",
- "solana-define-syscall 3.0.0",
- "solana-epoch-rewards 3.1.0",
- "solana-epoch-schedule 3.2.0",
- "solana-epoch-stake",
- "solana-example-mocks",
- "solana-fee-calculator 3.2.2",
- "solana-hash 3.1.0",
- "solana-instruction 3.4.1",
- "solana-instruction-error",
- "solana-instructions-sysvar 3.0.1",
- "solana-keccak-hasher",
- "solana-last-restart-slot 3.1.0",
- "solana-msg 3.1.0",
- "solana-native-token",
- "solana-program-entrypoint 3.1.1",
- "solana-program-error 3.0.1",
- "solana-program-memory 3.1.0",
- "solana-program-option 3.1.0",
- "solana-program-pack 3.1.0",
- "solana-pubkey 3.0.0",
- "solana-rent 3.1.0",
- "solana-sdk-ids 3.1.0",
- "solana-secp256k1-recover",
- "solana-serde-varint",
- "solana-serialize-utils 3.1.2",
- "solana-sha256-hasher 3.1.0",
- "solana-short-vec",
- "solana-slot-hashes 3.1.0",
- "solana-slot-history 3.1.0",
- "solana-stable-layout 3.0.1",
- "solana-sysvar 3.1.1",
- "solana-sysvar-id 3.1.0",
-]
-
-[[package]]
-name = "solana-program-entrypoint"
-version = "2.3.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "32ce041b1a0ed275290a5008ee1a4a6c48f5054c8a3d78d313c08958a06aedbd"
-dependencies = [
- "solana-account-info 2.3.0",
- "solana-msg 2.2.1",
- "solana-program-error 2.2.2",
- "solana-pubkey 2.4.0",
-]
-
[[package]]
name = "solana-program-entrypoint"
version = "3.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "84c9b0a1ff494e05f503a08b3d51150b73aa639544631e510279d6375f290997"
dependencies = [
- "solana-account-info 3.1.1",
+ "solana-account-info",
"solana-define-syscall 4.0.1",
- "solana-program-error 3.0.1",
+ "solana-program-error",
"solana-pubkey 4.2.1",
]
-[[package]]
-name = "solana-program-error"
-version = "2.2.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9ee2e0217d642e2ea4bee237f37bd61bb02aec60da3647c48ff88f6556ade775"
-dependencies = [
- "num-traits",
- "solana-decode-error",
- "solana-instruction 2.3.3",
- "solana-msg 2.2.1",
- "solana-pubkey 2.4.0",
-]
-
[[package]]
name = "solana-program-error"
version = "3.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4f04fa578707b3612b095f0c8e19b66a1233f7c42ca8082fcb3b745afcc0add6"
-dependencies = [
- "borsh",
- "serde",
- "serde_derive",
-]
-
-[[package]]
-name = "solana-program-memory"
-version = "2.3.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3a5426090c6f3fd6cfdc10685322fede9ca8e5af43cd6a59e98bfe4e91671712"
-dependencies = [
- "solana-define-syscall 2.3.0",
-]
[[package]]
name = "solana-program-memory"
@@ -3242,36 +2677,6 @@ dependencies = [
"solana-define-syscall 4.0.1",
]
-[[package]]
-name = "solana-program-option"
-version = "2.2.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dc677a2e9bc616eda6dbdab834d463372b92848b2bfe4a1ed4e4b4adba3397d0"
-
-[[package]]
-name = "solana-program-option"
-version = "3.1.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7a88006a9b8594088cec9027ab77caaaa258a2aaa2083d3f086c44b42e50aeab"
-
-[[package]]
-name = "solana-program-pack"
-version = "2.2.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "319f0ef15e6e12dc37c597faccb7d62525a509fec5f6975ecb9419efddeb277b"
-dependencies = [
- "solana-program-error 2.2.2",
-]
-
-[[package]]
-name = "solana-program-pack"
-version = "3.1.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3d7701cb15b90667ae1c89ef4ac35a59c61e66ce58ddee13d729472af7f41d59"
-dependencies = [
- "solana-program-error 3.0.1",
-]
-
[[package]]
name = "solana-program-runtime"
version = "4.1.1"
@@ -3286,24 +2691,24 @@ dependencies = [
"percentage",
"rand 0.9.5",
"serde",
- "solana-account 4.3.2",
- "solana-account-info 3.1.1",
- "solana-clock 3.1.1",
- "solana-epoch-rewards 3.1.0",
- "solana-epoch-schedule 3.2.0",
+ "solana-account",
+ "solana-account-info",
+ "solana-clock",
+ "solana-epoch-rewards",
+ "solana-epoch-schedule",
"solana-fee-structure",
- "solana-hash 4.5.0",
- "solana-instruction 3.4.1",
- "solana-last-restart-slot 3.1.0",
+ "solana-hash",
+ "solana-instruction",
+ "solana-last-restart-slot",
"solana-loader-v3-interface 7.0.0",
- "solana-program-entrypoint 3.1.1",
+ "solana-program-entrypoint",
"solana-pubkey 4.2.1",
- "solana-rent 4.3.0",
+ "solana-rent",
"solana-sbpf",
- "solana-sdk-ids 3.1.0",
- "solana-slot-hashes 3.1.0",
- "solana-stable-layout 3.0.1",
- "solana-stake-interface 3.1.0",
+ "solana-sdk-ids",
+ "solana-slot-hashes",
+ "solana-stable-layout",
+ "solana-stake-interface",
"solana-svm-callback",
"solana-svm-feature-set",
"solana-svm-log-collector",
@@ -3311,43 +2716,19 @@ dependencies = [
"solana-svm-timings",
"solana-svm-transaction",
"solana-svm-type-overrides",
- "solana-system-interface 3.2.0",
- "solana-sysvar 4.1.0",
- "solana-sysvar-id 3.1.0",
+ "solana-system-interface",
+ "solana-sysvar",
+ "solana-sysvar-id",
"solana-transaction-context",
"thiserror 2.0.20",
]
-[[package]]
-name = "solana-pubkey"
-version = "2.4.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9b62adb9c3261a052ca1f999398c388f1daf558a1b492f60a6d9e64857db4ff1"
-dependencies = [
- "bytemuck",
- "bytemuck_derive",
- "five8 0.2.1",
- "five8_const 0.1.4",
- "getrandom 0.2.17",
- "js-sys",
- "num-traits",
- "serde",
- "serde_derive",
- "solana-atomic-u64 2.2.1",
- "solana-decode-error",
- "solana-define-syscall 2.3.0",
- "solana-sanitize 2.2.1",
- "solana-sha256-hasher 2.3.0",
- "wasm-bindgen",
-]
-
[[package]]
name = "solana-pubkey"
version = "3.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8909d399deb0851aa524420beeb5646b115fd253ef446e35fe4504c904da3941"
dependencies = [
- "rand 0.8.7",
"solana-address 1.1.0",
]
@@ -3360,32 +2741,6 @@ dependencies = [
"solana-address 2.6.1",
]
-[[package]]
-name = "solana-rent"
-version = "2.2.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d1aea8fdea9de98ca6e8c2da5827707fb3842833521b528a713810ca685d2480"
-dependencies = [
- "serde",
- "serde_derive",
- "solana-sdk-ids 2.2.1",
- "solana-sdk-macro 2.2.1",
- "solana-sysvar-id 2.2.1",
-]
-
-[[package]]
-name = "solana-rent"
-version = "3.1.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e860d5499a705369778647e97d760f7670adfb6fc8419dd3d568deccd46d5487"
-dependencies = [
- "serde",
- "serde_derive",
- "solana-sdk-ids 3.1.0",
- "solana-sdk-macro 3.0.1",
- "solana-sysvar-id 3.1.0",
-]
-
[[package]]
name = "solana-rent"
version = "4.3.0"
@@ -3395,18 +2750,12 @@ dependencies = [
"serde",
"serde_derive",
"solana-get-sysvar",
- "solana-sdk-ids 3.1.0",
- "solana-sdk-macro 3.0.1",
- "solana-sysvar-id 3.1.0",
+ "solana-sdk-ids",
+ "solana-sdk-macro",
+ "solana-sysvar-id",
"wincode",
]
-[[package]]
-name = "solana-sanitize"
-version = "2.2.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "61f1bc1357b8188d9c4a3af3fc55276e56987265eb7ad073ae6f8180ee54cecf"
-
[[package]]
name = "solana-sanitize"
version = "3.0.1"
@@ -3430,53 +2779,6 @@ dependencies = [
"winapi",
]
-[[package]]
-name = "solana-sdk"
-version = "3.0.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3f03df7969f5e723ad31b6c9eadccc209037ac4caa34d8dc259316b05c11e82b"
-dependencies = [
- "bincode",
- "bs58",
- "serde",
- "solana-account 3.4.0",
- "solana-epoch-info",
- "solana-epoch-rewards-hasher",
- "solana-fee-structure",
- "solana-inflation",
- "solana-keypair",
- "solana-message 3.1.0",
- "solana-offchain-message",
- "solana-presigner",
- "solana-program",
- "solana-program-memory 3.1.0",
- "solana-pubkey 3.0.0",
- "solana-sanitize 3.0.1",
- "solana-sdk-ids 3.1.0",
- "solana-sdk-macro 3.0.1",
- "solana-seed-derivable",
- "solana-seed-phrase",
- "solana-serde",
- "solana-serde-varint",
- "solana-short-vec",
- "solana-shred-version",
- "solana-signature",
- "solana-signer",
- "solana-time-utils",
- "solana-transaction 3.1.0",
- "solana-transaction-error",
- "thiserror 2.0.20",
-]
-
-[[package]]
-name = "solana-sdk-ids"
-version = "2.2.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5c5d8b9cc68d5c88b062a33e23a6466722467dde0035152d8fb1afbcdf350a5f"
-dependencies = [
- "solana-pubkey 2.4.0",
-]
-
[[package]]
name = "solana-sdk-ids"
version = "3.1.0"
@@ -3486,18 +2788,6 @@ dependencies = [
"solana-address 2.6.1",
]
-[[package]]
-name = "solana-sdk-macro"
-version = "2.2.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "86280da8b99d03560f6ab5aca9de2e38805681df34e0bb8f238e69b29433b9df"
-dependencies = [
- "bs58",
- "proc-macro2",
- "quote",
- "syn 2.0.119",
-]
-
[[package]]
name = "solana-sdk-macro"
version = "3.0.1"
@@ -3541,15 +2831,6 @@ dependencies = [
"sha2 0.10.9",
]
-[[package]]
-name = "solana-serde"
-version = "3.0.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "709a93cab694c70f40b279d497639788fc2ccbcf9b4aa32273d4b361322c02dd"
-dependencies = [
- "serde",
-]
-
[[package]]
name = "solana-serde-varint"
version = "3.0.1"
@@ -3559,17 +2840,6 @@ dependencies = [
"serde",
]
-[[package]]
-name = "solana-serialize-utils"
-version = "2.2.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "817a284b63197d2b27afdba829c5ab34231da4a9b4e763466a003c40ca4f535e"
-dependencies = [
- "solana-instruction 2.3.3",
- "solana-pubkey 2.4.0",
- "solana-sanitize 2.2.1",
-]
-
[[package]]
name = "solana-serialize-utils"
version = "3.1.2"
@@ -3578,18 +2848,7 @@ checksum = "761357b0853c9623bf12c1d2314b3d6160a85b087b84c45224fb85766d22616b"
dependencies = [
"solana-instruction-error",
"solana-pubkey 4.2.1",
- "solana-sanitize 3.0.1",
-]
-
-[[package]]
-name = "solana-sha256-hasher"
-version = "2.3.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5aa3feb32c28765f6aa1ce8f3feac30936f16c5c3f7eb73d63a5b8f6f8ecdc44"
-dependencies = [
- "sha2 0.10.9",
- "solana-define-syscall 2.3.0",
- "solana-hash 2.3.0",
+ "solana-sanitize",
]
[[package]]
@@ -3600,7 +2859,7 @@ checksum = "db7dc3011ea4c0334aaaa7e7128cb390ecf546b28d412e9bf2064680f57f588f"
dependencies = [
"sha2 0.10.9",
"solana-define-syscall 4.0.1",
- "solana-hash 4.5.0",
+ "solana-hash",
]
[[package]]
@@ -3624,17 +2883,6 @@ dependencies = [
"wincode",
]
-[[package]]
-name = "solana-shred-version"
-version = "3.0.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d6c79722e299d957958bf33695f7cd1ef6724ff55563c60fd9e3e24487cccde2"
-dependencies = [
- "solana-hard-forks",
- "solana-hash 4.5.0",
- "solana-sha256-hasher 3.1.0",
-]
-
[[package]]
name = "solana-signature"
version = "3.4.1"
@@ -3642,12 +2890,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b0364c7577c3c82a693ce28a1febc8d1b5d1b0a175fdc2114ae6186b69effe1e"
dependencies = [
"ed25519-dalek",
- "five8 1.0.0",
- "rand 0.9.5",
+ "five8",
"serde",
- "serde-big-array",
- "serde_derive",
- "solana-sanitize 3.0.1",
+ "solana-sanitize",
"wincode",
]
@@ -3662,19 +2907,6 @@ dependencies = [
"solana-transaction-error",
]
-[[package]]
-name = "solana-slot-hashes"
-version = "2.2.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0c8691982114513763e88d04094c9caa0376b867a29577939011331134c301ce"
-dependencies = [
- "serde",
- "serde_derive",
- "solana-hash 2.3.0",
- "solana-sdk-ids 2.2.1",
- "solana-sysvar-id 2.2.1",
-]
-
[[package]]
name = "solana-slot-hashes"
version = "3.1.0"
@@ -3684,25 +2916,12 @@ dependencies = [
"serde",
"serde_derive",
"solana-get-sysvar",
- "solana-hash 4.5.0",
- "solana-sdk-ids 3.1.0",
- "solana-sysvar-id 3.1.0",
+ "solana-hash",
+ "solana-sdk-ids",
+ "solana-sysvar-id",
"wincode",
]
-[[package]]
-name = "solana-slot-history"
-version = "2.2.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "97ccc1b2067ca22754d5283afb2b0126d61eae734fc616d23871b0943b0d935e"
-dependencies = [
- "bv",
- "serde",
- "serde_derive",
- "solana-sdk-ids 2.2.1",
- "solana-sysvar-id 2.2.1",
-]
-
[[package]]
name = "solana-slot-history"
version = "3.1.0"
@@ -3713,28 +2932,18 @@ dependencies = [
"serde",
"serde_derive",
"solana-get-sysvar",
- "solana-sdk-ids 3.1.0",
- "solana-sysvar-id 3.1.0",
+ "solana-sdk-ids",
+ "solana-sysvar-id",
"wincode",
]
-[[package]]
-name = "solana-stable-layout"
-version = "2.2.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9f14f7d02af8f2bc1b5efeeae71bc1c2b7f0f65cd75bcc7d8180f2c762a57f54"
-dependencies = [
- "solana-instruction 2.3.3",
- "solana-pubkey 2.4.0",
-]
-
[[package]]
name = "solana-stable-layout"
version = "3.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c9f6a291ba063a37780af29e7db14bdd3dc447584d8ba5b3fc4b88e2bbc982fa"
dependencies = [
- "solana-instruction 3.4.1",
+ "solana-instruction",
"solana-pubkey 4.2.1",
]
@@ -3746,32 +2955,13 @@ checksum = "c736a6aa0e53b9d264d90b06589fc0996f49f882f3e71842ed754fc57ffc1a43"
dependencies = [
"serde",
"serde_derive",
- "solana-clock 3.1.1",
+ "solana-clock",
"solana-get-sysvar",
- "solana-sdk-ids 3.1.0",
- "solana-sysvar-id 3.1.0",
+ "solana-sdk-ids",
+ "solana-sysvar-id",
"wincode",
]
-[[package]]
-name = "solana-stake-interface"
-version = "1.2.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5269e89fde216b4d7e1d1739cf5303f8398a1ff372a81232abbee80e554a838c"
-dependencies = [
- "num-traits",
- "serde",
- "serde_derive",
- "solana-clock 2.2.3",
- "solana-cpi 2.2.1",
- "solana-decode-error",
- "solana-instruction 2.3.3",
- "solana-program-error 2.2.2",
- "solana-pubkey 2.4.0",
- "solana-system-interface 1.0.0",
- "solana-sysvar-id 2.2.1",
-]
-
[[package]]
name = "solana-stake-interface"
version = "3.1.0"
@@ -3781,14 +2971,14 @@ dependencies = [
"num-traits",
"serde",
"serde_derive",
- "solana-clock 3.1.1",
- "solana-cpi 3.1.0",
- "solana-instruction 3.4.1",
- "solana-program-error 3.0.1",
+ "solana-clock",
+ "solana-cpi",
+ "solana-instruction",
+ "solana-program-error",
"solana-pubkey 4.2.1",
- "solana-system-interface 3.2.0",
- "solana-sysvar 4.1.0",
- "solana-sysvar-id 3.1.0",
+ "solana-system-interface",
+ "solana-sysvar",
+ "solana-sysvar-id",
]
[[package]]
@@ -3797,8 +2987,8 @@ version = "4.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3170a3cfc032f3efca975154dee904ecefea5ae11fbd50787c062886196d32c1"
dependencies = [
- "solana-account 4.3.2",
- "solana-clock 3.1.1",
+ "solana-account",
+ "solana-clock",
"solana-precompile-error",
"solana-pubkey 4.2.1",
]
@@ -3841,12 +3031,12 @@ version = "4.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8fa27dd1eb7ce4d339cf9dfc1dfb70866488e4e1436fb05728aea7af0185191a"
dependencies = [
- "solana-hash 4.5.0",
- "solana-message 4.4.1",
+ "solana-hash",
+ "solana-message",
"solana-pubkey 4.2.1",
- "solana-sdk-ids 3.1.0",
+ "solana-sdk-ids",
"solana-signature",
- "solana-transaction 4.1.6",
+ "solana-transaction",
]
[[package]]
@@ -3867,67 +3057,39 @@ dependencies = [
"bincode",
"libsecp256k1",
"num-traits",
- "solana-account 4.3.2",
- "solana-account-info 3.1.1",
+ "solana-account",
+ "solana-account-info",
"solana-big-mod-exp",
"solana-blake3-hasher",
"solana-bls12-381-syscall",
"solana-bn254",
- "solana-clock 3.1.1",
- "solana-cpi 3.1.0",
+ "solana-clock",
+ "solana-cpi",
"solana-curve25519",
- "solana-hash 4.5.0",
+ "solana-hash",
"solana-hash-512",
- "solana-instruction 3.4.1",
+ "solana-instruction",
"solana-keccak-hasher",
"solana-poseidon",
- "solana-program-entrypoint 3.1.1",
+ "solana-program-entrypoint",
"solana-program-runtime",
"solana-pubkey 4.2.1",
"solana-sbpf",
- "solana-sdk-ids 3.1.0",
+ "solana-sdk-ids",
"solana-secp256k1-recover",
- "solana-sha256-hasher 3.1.0",
+ "solana-sha256-hasher",
"solana-sha512-hasher",
- "solana-stable-layout 3.0.1",
- "solana-stake-interface 3.1.0",
+ "solana-stable-layout",
+ "solana-stake-interface",
"solana-svm-feature-set",
"solana-svm-log-collector",
"solana-svm-type-overrides",
- "solana-sysvar 4.1.0",
- "solana-sysvar-id 3.1.0",
+ "solana-sysvar",
+ "solana-sysvar-id",
"solana-transaction-context",
"thiserror 2.0.20",
]
-[[package]]
-name = "solana-system-interface"
-version = "1.0.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "94d7c18cb1a91c6be5f5a8ac9276a1d7c737e39a21beba9ea710ab4b9c63bc90"
-dependencies = [
- "js-sys",
- "num-traits",
- "serde",
- "serde_derive",
- "solana-decode-error",
- "solana-instruction 2.3.3",
- "solana-pubkey 2.4.0",
- "wasm-bindgen",
-]
-
-[[package]]
-name = "solana-system-interface"
-version = "2.0.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4e1790547bfc3061f1ee68ea9d8dc6c973c02a163697b24263a8e9f2e6d4afa2"
-dependencies = [
- "num-traits",
- "solana-msg 3.1.0",
- "solana-program-error 3.0.1",
- "solana-pubkey 3.0.0",
-]
-
[[package]]
name = "solana-system-interface"
version = "3.2.0"
@@ -3938,9 +3100,9 @@ dependencies = [
"serde",
"serde_derive",
"solana-address 2.6.1",
- "solana-instruction 3.4.1",
- "solana-msg 3.1.0",
- "solana-program-error 3.0.1",
+ "solana-instruction",
+ "solana-msg",
+ "solana-program-error",
"wincode",
]
@@ -3952,91 +3114,22 @@ checksum = "84eaae98e1576c1b490760d102ca15cb0cfc7ed2b52012dc0d06698a2529e093"
dependencies = [
"bincode",
"log",
- "solana-account 4.3.2",
+ "solana-account",
"solana-bincode",
- "solana-fee-calculator 3.2.2",
- "solana-instruction 3.4.1",
+ "solana-fee-calculator",
+ "solana-instruction",
"solana-nonce",
"solana-nonce-account",
- "solana-packet 4.2.0",
+ "solana-packet",
"solana-program-runtime",
"solana-pubkey 4.2.1",
- "solana-sdk-ids 3.1.0",
+ "solana-sdk-ids",
"solana-svm-log-collector",
- "solana-system-interface 3.2.0",
- "solana-sysvar 4.1.0",
+ "solana-system-interface",
+ "solana-sysvar",
"solana-transaction-context",
]
-[[package]]
-name = "solana-sysvar"
-version = "2.3.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b8c3595f95069f3d90f275bb9bd235a1973c4d059028b0a7f81baca2703815db"
-dependencies = [
- "base64",
- "bincode",
- "lazy_static",
- "serde",
- "serde_derive",
- "solana-account-info 2.3.0",
- "solana-clock 2.2.3",
- "solana-define-syscall 2.3.0",
- "solana-epoch-rewards 2.2.1",
- "solana-epoch-schedule 2.2.1",
- "solana-fee-calculator 2.2.1",
- "solana-hash 2.3.0",
- "solana-instruction 2.3.3",
- "solana-instructions-sysvar 2.2.2",
- "solana-last-restart-slot 2.2.1",
- "solana-program-entrypoint 2.3.0",
- "solana-program-error 2.2.2",
- "solana-program-memory 2.3.1",
- "solana-pubkey 2.4.0",
- "solana-rent 2.2.1",
- "solana-sanitize 2.2.1",
- "solana-sdk-ids 2.2.1",
- "solana-sdk-macro 2.2.1",
- "solana-slot-hashes 2.2.1",
- "solana-slot-history 2.2.1",
- "solana-stake-interface 1.2.1",
- "solana-sysvar-id 2.2.1",
-]
-
-[[package]]
-name = "solana-sysvar"
-version = "3.1.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6690d3dd88f15c21edff68eb391ef8800df7a1f5cec84ee3e8d1abf05affdf74"
-dependencies = [
- "base64",
- "bincode",
- "bytemuck",
- "bytemuck_derive",
- "lazy_static",
- "serde",
- "serde_derive",
- "solana-account-info 3.1.1",
- "solana-clock 3.1.1",
- "solana-define-syscall 4.0.1",
- "solana-epoch-rewards 3.1.0",
- "solana-epoch-schedule 3.2.0",
- "solana-fee-calculator 3.2.2",
- "solana-hash 4.5.0",
- "solana-instruction 3.4.1",
- "solana-last-restart-slot 3.1.0",
- "solana-program-entrypoint 3.1.1",
- "solana-program-error 3.0.1",
- "solana-program-memory 3.1.0",
- "solana-pubkey 4.2.1",
- "solana-rent 3.1.0",
- "solana-sdk-ids 3.1.0",
- "solana-sdk-macro 3.0.1",
- "solana-slot-hashes 3.1.0",
- "solana-slot-history 3.1.0",
- "solana-sysvar-id 3.1.0",
-]
-
[[package]]
name = "solana-sysvar"
version = "4.1.0"
@@ -4048,40 +3141,30 @@ dependencies = [
"lazy_static",
"serde",
"serde_derive",
- "solana-account-info 3.1.1",
- "solana-clock 3.1.1",
+ "solana-account-info",
+ "solana-clock",
"solana-define-syscall 5.2.0",
- "solana-epoch-rewards 3.1.0",
- "solana-epoch-schedule 3.2.0",
- "solana-fee-calculator 3.2.2",
+ "solana-epoch-rewards",
+ "solana-epoch-schedule",
+ "solana-fee-calculator",
"solana-get-sysvar",
- "solana-hash 4.5.0",
- "solana-instruction 3.4.1",
- "solana-last-restart-slot 3.1.0",
- "solana-program-entrypoint 3.1.1",
- "solana-program-error 3.0.1",
- "solana-program-memory 3.1.0",
+ "solana-hash",
+ "solana-instruction",
+ "solana-last-restart-slot",
+ "solana-program-entrypoint",
+ "solana-program-error",
+ "solana-program-memory",
"solana-pubkey 4.2.1",
- "solana-rent 4.3.0",
- "solana-sdk-ids 3.1.0",
- "solana-sdk-macro 3.0.1",
- "solana-slot-hashes 3.1.0",
- "solana-slot-history 3.1.0",
+ "solana-rent",
+ "solana-sdk-ids",
+ "solana-sdk-macro",
+ "solana-slot-hashes",
+ "solana-slot-history",
"solana-stake-history",
- "solana-sysvar-id 3.1.0",
+ "solana-sysvar-id",
"wincode",
]
-[[package]]
-name = "solana-sysvar-id"
-version = "2.2.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5762b273d3325b047cfda250787f8d796d781746860d5d0a746ee29f3e8812c1"
-dependencies = [
- "solana-pubkey 2.4.0",
- "solana-sdk-ids 2.2.1",
-]
-
[[package]]
name = "solana-sysvar-id"
version = "3.1.0"
@@ -4089,35 +3172,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "17358d1e9a13e5b9c2264d301102126cf11a47fd394cdf3dec174fe7bc96e1de"
dependencies = [
"solana-address 2.6.1",
- "solana-sdk-ids 3.1.0",
-]
-
-[[package]]
-name = "solana-time-utils"
-version = "3.0.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0ced92c60aa76ec4780a9d93f3bd64dfa916e1b998eacc6f1c110f3f444f02c9"
-
-[[package]]
-name = "solana-transaction"
-version = "3.1.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "96697cff5075a028265324255efed226099f6d761ca67342b230d09f72cc48d2"
-dependencies = [
- "bincode",
- "serde",
- "serde_derive",
- "solana-address 2.6.1",
- "solana-hash 4.5.0",
- "solana-instruction 3.4.1",
- "solana-instruction-error",
- "solana-message 3.1.0",
- "solana-sanitize 3.0.1",
- "solana-sdk-ids 3.1.0",
- "solana-short-vec",
- "solana-signature",
- "solana-signer",
- "solana-transaction-error",
+ "solana-sdk-ids",
]
[[package]]
@@ -4127,12 +3182,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a8008008a75246adaf8b67411093a6d78db8232c74b00eff6041fd1da73679e7"
dependencies = [
"solana-address 2.6.1",
- "solana-hash 4.5.0",
- "solana-instruction 3.4.1",
+ "solana-hash",
+ "solana-instruction",
"solana-instruction-error",
- "solana-message 4.4.1",
- "solana-sanitize 3.0.1",
- "solana-sdk-ids 3.1.0",
+ "solana-message",
+ "solana-sanitize",
+ "solana-sdk-ids",
"solana-short-vec",
"solana-signature",
"solana-signer",
@@ -4148,13 +3203,13 @@ checksum = "168e409c531b6e5b4a4bcf4a0286795acb80e6c6330c21fe6ad5d7e6918a7245"
dependencies = [
"bincode",
"serde",
- "solana-account 4.3.2",
- "solana-instruction 3.4.1",
+ "solana-account",
+ "solana-instruction",
"solana-instructions-sysvar 3.0.1",
"solana-pubkey 4.2.1",
- "solana-rent 4.3.0",
+ "solana-rent",
"solana-sbpf",
- "solana-sdk-ids 3.1.0",
+ "solana-sdk-ids",
]
[[package]]
@@ -4163,10 +3218,8 @@ version = "3.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "054e54d15164b0c34cb744600a1a0330e9fd97a12d979f2eb95904c807a07713"
dependencies = [
- "serde",
- "serde_derive",
"solana-instruction-error",
- "solana-sanitize 3.0.1",
+ "solana-sanitize",
]
[[package]]
@@ -4182,17 +3235,17 @@ dependencies = [
"serde",
"serde_derive",
"serde_with",
- "solana-clock 3.1.1",
- "solana-hash 4.5.0",
- "solana-instruction 3.4.1",
+ "solana-clock",
+ "solana-hash",
+ "solana-instruction",
"solana-instruction-error",
"solana-pubkey 4.2.1",
- "solana-rent 4.3.0",
- "solana-sdk-ids 3.1.0",
+ "solana-rent",
+ "solana-sdk-ids",
"solana-serde-varint",
- "solana-serialize-utils 3.1.2",
+ "solana-serialize-utils",
"solana-short-vec",
- "solana-system-interface 3.2.0",
+ "solana-system-interface",
]
[[package]]
@@ -4204,20 +3257,20 @@ dependencies = [
"agave-feature-set",
"bincode",
"log",
- "solana-account 4.3.2",
+ "solana-account",
"solana-bincode",
"solana-bls-signatures",
- "solana-clock 3.1.1",
- "solana-epoch-schedule 3.2.0",
- "solana-hash 4.5.0",
- "solana-instruction 3.4.1",
- "solana-packet 4.2.0",
+ "solana-clock",
+ "solana-epoch-schedule",
+ "solana-hash",
+ "solana-instruction",
+ "solana-packet",
"solana-program-runtime",
"solana-pubkey 4.2.1",
- "solana-rent 4.3.0",
- "solana-sdk-ids 3.1.0",
- "solana-slot-hashes 3.1.0",
- "solana-system-interface 3.2.0",
+ "solana-rent",
+ "solana-sdk-ids",
+ "solana-slot-hashes",
+ "solana-system-interface",
"solana-transaction-context",
"solana-vote-interface",
]
@@ -4229,9 +3282,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "01c61b68701d57e260b4f0bd7f2872709d907689ff4d750673a7b55e67de0372"
dependencies = [
"bytemuck",
- "solana-instruction 3.4.1",
+ "solana-instruction",
"solana-program-runtime",
- "solana-sdk-ids 3.1.0",
+ "solana-sdk-ids",
"solana-svm-log-collector",
"solana-zk-sdk",
]
@@ -4259,8 +3312,8 @@ dependencies = [
"sha3",
"solana-address 2.6.1",
"solana-derivation-path",
- "solana-instruction 3.4.1",
- "solana-sdk-ids 3.1.0",
+ "solana-instruction",
+ "solana-sdk-ids",
"solana-seed-derivable",
"solana-seed-phrase",
"solana-signature",
@@ -4289,34 +3342,6 @@ dependencies = [
"der",
]
-[[package]]
-name = "spl-token"
-version = "8.0.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "053067c6a82c705004f91dae058b11b4780407e9ccd6799dc9e7d0fab5f242da"
-dependencies = [
- "arrayref",
- "bytemuck",
- "num-derive",
- "num-traits",
- "num_enum",
- "solana-account-info 2.3.0",
- "solana-cpi 2.2.1",
- "solana-decode-error",
- "solana-instruction 2.3.3",
- "solana-msg 2.2.1",
- "solana-program-entrypoint 2.3.0",
- "solana-program-error 2.2.2",
- "solana-program-memory 2.3.1",
- "solana-program-option 2.2.1",
- "solana-program-pack 2.2.1",
- "solana-pubkey 2.4.0",
- "solana-rent 2.2.1",
- "solana-sdk-ids 2.2.1",
- "solana-sysvar 2.3.0",
- "thiserror 2.0.20",
-]
-
[[package]]
name = "strsim"
version = "0.11.1"
@@ -4530,51 +3555,6 @@ dependencies = [
"wit-bindgen",
]
-[[package]]
-name = "wasm-bindgen"
-version = "0.2.127"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1b70935747edd64d89de3efa29d73789b806c15798f8e7dca4d8ac356b50ce70"
-dependencies = [
- "cfg-if",
- "once_cell",
- "rustversion",
- "wasm-bindgen-macro",
- "wasm-bindgen-shared",
-]
-
-[[package]]
-name = "wasm-bindgen-macro"
-version = "0.2.127"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "77775f8f3f7217702089053b94958f8f54061a3f663417df76e19cbdcca29bc1"
-dependencies = [
- "quote",
- "wasm-bindgen-macro-support",
-]
-
-[[package]]
-name = "wasm-bindgen-macro-support"
-version = "0.2.127"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e11d33f857dc2fb11b8bc75aee111aa9cbeb12cd9f25efd3d4c2a3dd4e235284"
-dependencies = [
- "bumpalo",
- "proc-macro2",
- "quote",
- "syn 2.0.119",
- "wasm-bindgen-shared",
-]
-
-[[package]]
-name = "wasm-bindgen-shared"
-version = "0.2.127"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7ef64dbcc55df09c7e5a46182d181c2cfa3e925f3da937ea764728b4bbb9dcbf"
-dependencies = [
- "unicode-ident",
-]
-
[[package]]
name = "winapi"
version = "0.3.9"
diff --git a/contracts/program-tests/Cargo.toml b/contracts/program-tests/Cargo.toml
index 74b40ebde..7703e5582 100644
--- a/contracts/program-tests/Cargo.toml
+++ b/contracts/program-tests/Cargo.toml
@@ -10,10 +10,13 @@ publish = false
description = "Invariant tests for the three.ws Solana programs, run against real compiled bytecode in LiteSVM."
[dependencies]
-
-[dev-dependencies]
litesvm = "=0.15.2"
-solana-sdk = "3"
+solana-instruction = "3.4"
+solana-keypair = "3.1"
+solana-signer = "3.0"
+solana-transaction = "4.1"
+solana-pubkey = "3"
+solana-system-interface = "3.2"
borsh = "1.5"
sha2 = "0.10"
diff --git a/contracts/program-tests/src/lib.rs b/contracts/program-tests/src/lib.rs
index ae9b51cb4..1fd35cd1a 100644
--- a/contracts/program-tests/src/lib.rs
+++ b/contracts/program-tests/src/lib.rs
@@ -1,4 +1,165 @@
-//! Shared helpers for the Solana program invariant tests in `tests/`.
+//! Shared harness for the Solana program invariant tests in `tests/`.
//!
-//! The crate itself ships no runtime code: every contract under test is real
-//! compiled SBF bytecode loaded into LiteSVM by the integration tests.
+//! Every test in this crate runs the REAL compiled SBF bytecode of the program
+//! under test inside [LiteSVM](https://github.com/LiteSVM/litesvm). Nothing here
+//! re-implements program logic: the helpers below only build instructions, derive
+//! addresses, and read account bytes back, so a test failure always means the
+//! program (or the invariant) is wrong, never the harness.
+//!
+//! Build the bytecode before running the tests:
+//!
+//! ```text
+//! cd contracts/skill-license && cargo-build-sbf
+//! cd contracts/agent-invocation && cargo-build-sbf
+//! cd contracts/program-tests && cargo test
+//! ```
+
+use litesvm::LiteSVM;
+use sha2::{Digest, Sha256};
+use solana_pubkey::Pubkey;
+use std::path::PathBuf;
+use std::str::FromStr;
+
+/// `skill_license`'s `declare_id!`.
+pub const SKILL_LICENSE_ID: &str = "EdngSwxmDktyrr4phwGEZnCXEoQ27vgnBtowjhKa7Wr8";
+/// `agent_invocation`'s `declare_id!`.
+pub const AGENT_INVOCATION_ID: &str = "AgEntJDMi1A7UadCoYcx6Fm3gusNk8SHLCi7vSUa4Zfo";
+
+/// SPL Associated Token Account program, the canonical mainnet address.
+pub const ASSOCIATED_TOKEN_PROGRAM_ID: &str = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
+/// SPL Token program, the canonical mainnet address.
+pub const TOKEN_PROGRAM_ID: &str = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
+
+/// Parse a base58 program address that is a compile-time constant of this crate.
+pub fn pk(s: &str) -> Pubkey {
+ Pubkey::from_str(s).expect("constant program address must parse")
+}
+
+/// SHA-256, the same digest the programs use for `skill_seed` and the same one
+/// Anchor uses to derive discriminators.
+pub fn sha256(bytes: &[u8]) -> [u8; 32] {
+ let mut hasher = Sha256::new();
+ hasher.update(bytes);
+ hasher.finalize().into()
+}
+
+/// Anchor's 8-byte discriminator: the first eight bytes of
+/// `sha256("<namespace>:<name>")`. `namespace` is `global` for an instruction
+/// and `account` for an account type.
+pub fn discriminator(namespace: &str, name: &str) -> [u8; 8] {
+ let digest = sha256(format!("{namespace}:{name}").as_bytes());
+ let mut out = [0u8; 8];
+ out.copy_from_slice(&digest[..8]);
+ out
+}
+
+/// Instruction data for an Anchor instruction: discriminator followed by the
+/// borsh-encoded arguments.
+pub fn ix_data(name: &str, args: &[u8]) -> Vec<u8> {
+ let mut data = discriminator("global", name).to_vec();
+ data.extend_from_slice(args);
+ data
+}
+
+/// Load a program's compiled bytecode into the VM, failing with an actionable
+/// message when the SBF build has not been run yet.
+pub fn load_program(svm: &mut LiteSVM, program_id: Pubkey, crate_dir: &str, so_name: &str) {
+ let path = PathBuf::from(env!("CARGO_MANIFEST_DIR"))
+ .join("..")
+ .join(crate_dir)
+ .join("target/deploy")
+ .join(so_name);
+ let bytes = std::fs::read(&path).unwrap_or_else(|e| {
+ panic!(
+ "cannot read {}: {e}. Build it first: cd contracts/{crate_dir} && cargo-build-sbf",
+ path.display()
+ )
+ });
+ svm.add_program(program_id, &bytes);
+}
+
+/// Derive the associated token account for `(owner, mint)`, the same derivation
+/// the ATA program itself performs.
+pub fn associated_token_address(owner: &Pubkey, mint: &Pubkey) -> Pubkey {
+ Pubkey::find_program_address(
+ &[
+ owner.as_ref(),
+ pk(TOKEN_PROGRAM_ID).as_ref(),
+ mint.as_ref(),
+ ],
+ &pk(ASSOCIATED_TOKEN_PROGRAM_ID),
+ )
+ .0
+}
+
+/// Fields of an SPL token `Mint` this suite asserts on. Offsets are the SPL
+/// Token program's fixed 82-byte layout, which is part of its wire format.
+pub struct MintState {
+ pub mint_authority: Option<Pubkey>,
+ pub supply: u64,
+ pub decimals: u8,
+ pub freeze_authority: Option<Pubkey>,
+}
+
+/// Decode an SPL `Mint` account.
+pub fn decode_mint(data: &[u8]) -> MintState {
+ assert!(data.len() >= 82, "mint account is {} bytes", data.len());
+ let coption = |offset: usize| -> Option<Pubkey> {
+ let tag = u32::from_le_bytes(data[offset..offset + 4].try_into().unwrap());
+ if tag == 0 {
+ None
+ } else {
+ Some(Pubkey::new_from_array(
+ data[offset + 4..offset + 36].try_into().unwrap(),
+ ))
+ }
+ };
+ MintState {
+ mint_authority: coption(0),
+ supply: u64::from_le_bytes(data[36..44].try_into().unwrap()),
+ decimals: data[44],
+ freeze_authority: coption(46),
+ }
+}
+
+/// Fields of an SPL token account this suite asserts on. Offsets are the SPL
+/// Token program's fixed 165-byte layout.
+pub struct TokenAccountState {
+ pub mint: Pubkey,
+ pub owner: Pubkey,
+ pub amount: u64,
+ /// SPL `AccountState`: 0 uninitialized, 1 initialized, 2 frozen.
+ pub state: u8,
+}
+
+impl TokenAccountState {
+ pub fn is_frozen(&self) -> bool {
+ self.state == 2
+ }
+}
+
+/// Decode an SPL token account.
+pub fn decode_token_account(data: &[u8]) -> TokenAccountState {
+ assert!(data.len() >= 165, "token account is {} bytes", data.len());
+ TokenAccountState {
+ mint: Pubkey::new_from_array(data[0..32].try_into().unwrap()),
+ owner: Pubkey::new_from_array(data[32..64].try_into().unwrap()),
+ amount: u64::from_le_bytes(data[64..72].try_into().unwrap()),
+ state: data[108],
+ }
+}
+
+/// Borsh-encode a string argument (4-byte little-endian length, then bytes).
+pub fn borsh_string(s: &str) -> Vec<u8> {
+ let mut out = (s.len() as u32).to_le_bytes().to_vec();
+ out.extend_from_slice(s.as_bytes());
+ out
+}
+
+/// True when a failed transaction's logs mention the given Anchor error name.
+/// Anchor logs `Error Code: <Name>. Error Number: <n>` on a constraint or
+/// `require!` failure, so matching the name is exact, not a substring guess.
+pub fn logs_have_anchor_error(logs: &[String], error_name: &str) -> bool {
+ let needle = format!("Error Code: {error_name}.");
+ logs.iter().any(|l| l.contains(&needle))
+}
diff --git a/contracts/program-tests/tests/agent_invocation.rs b/contracts/program-tests/tests/agent_invocation.rs
index fc8f3d0a0..3d0e9a599 100644
--- a/contracts/program-tests/tests/agent_invocation.rs
+++ b/contracts/program-tests/tests/agent_invocation.rs
@@ -7,12 +7,12 @@
use litesvm::LiteSVM;
use program_tests::*;
-use solana_sdk::instruction::{AccountMeta, Instruction};
-use solana_sdk::pubkey::Pubkey;
-use solana_sdk::signature::Keypair;
-use solana_sdk::signer::Signer;
-use solana_sdk::system_program;
-use solana_sdk::transaction::Transaction;
+use solana_instruction::{AccountMeta, Instruction};
+use solana_pubkey::Pubkey;
+use solana_keypair::Keypair;
+use solana_signer::Signer;
+use solana_system_interface::program as system_program;
+use solana_transaction::Transaction;
const AGENT_SEED: &[u8] = b"agent";
diff --git a/docs/agent-manifest.md b/docs/agent-manifest.md
index 1e34f0b85..f1a039693 100644
--- a/docs/agent-manifest.md
+++ b/docs/agent-manifest.md
@@ -706,6 +706,8 @@ result VERIFIED (ok)
Add `--issuer <base58>` to require a specific signing identity, `--json` for machine-readable output, or `--file ./envelope.json` to check a local copy. Exit code is 0 when verified, 1 when verification fails, 2 when the document could not be fetched.
+The script queries `ipfs.io`, `dweb.link`, `w3s.link`, and `gateway.pinata.cloud` at the same time and uses whichever answers first, which is safe precisely because the gateway only supplies bytes: the signature check that follows is what establishes trust. The `source` line names the gateway that served your copy. For a manifest published in the last few hours, expect that to be the pinning provider's gateway. A new CID takes minutes to hours to propagate across the DHT, and until it does the other gateways answer 504 for a document that is genuinely pinned.
+
In your own code, the verification primitive is pure and has no database or network dependency:
```js
@@ -770,6 +772,7 @@ With no pinning provider configured, manifests are still signed and stored, and
| `No registry deployed on chain X` | Chain has no known IdentityRegistry | Pass `registry=` override or use a supported chain. |
| `Agent X on chain Y has no URI` | Token exists but `tokenURI` returned empty | Agent was registered without a manifest URI — re-register or update the token URI. |
| `All IPFS gateways failed` | CID is not propagated or pinned | Re-pin with your IPFS provider; wait for propagation. |
+| `no IPFS gateway served <cid>` | A just-published CID has not reached the public gateways yet | Retry in a few minutes, or read it from the pinning provider's gateway, which holds it immediately. |
---
diff --git a/docs/inference-node-operator.md b/docs/inference-node-operator.md
index ecaeb76ac..798a6c42e 100644
--- a/docs/inference-node-operator.md
+++ b/docs/inference-node-operator.md
@@ -85,6 +85,38 @@ Anyone can verify a result offline with only the node's public address:
node src/cli.js verify receipt.json
```
+## The open protocol (OIN), and when to use it instead
+
+The contract above is the coordinator's: the platform hands out `llm.completion`
+jobs and this client claims them. It assumes a coordinator exists and that you
+have its shared secret.
+
+The [Open Inference Protocol](../specs/OPEN_INFERENCE_PROTOCOL.md) is the other
+direction: your node stands on its own and any requester can reach it, with no
+coordinator in the middle. You publish a signed capability advertisement at
+`GET /.well-known/oin` saying what you can run and what it costs, you accept job
+envelopes at `POST /oin/jobs`, and every result you return carries an Ed25519
+signature over a digest of the exact job plus a hash of the exact bytes you
+produced. Nothing about it is three.ws-specific, which is the point: a requester
+that has never heard of this platform can verify your work.
+
+Use the coordinator contract to sell compute into the platform's job queue; use
+OIN to be reachable by anyone. They share a key type (Ed25519) and coexist on
+one process, so a node can do both.
+
+The platform's mesh stylization worker is the reference OIN node
+([`workers/stylize/oin.py`](../workers/stylize/oin.py), enabled by
+`OIN_ENABLED=true`), and the conformance runner proves any node speaks the
+protocol before it takes a paying job:
+
+```bash
+node scripts/oin-conformance.mjs --node https://your-node.example \
+ --api-key "$NODE_API_KEY" --input https://three.ws/avatars/fox.glb
+```
+
+It exits 0 only when the advertisement signature, the job digest, the response
+signature, and the artifact hash all check out.
+
## Quickstart
Requires Node.js 20+ and access to huggingface.co (one-time model download).
diff --git a/docs/ops/livepeer-federation.md b/docs/ops/livepeer-federation.md
index a3b7350d4..64800c591 100644
--- a/docs/ops/livepeer-federation.md
+++ b/docs/ops/livepeer-federation.md
@@ -4,8 +4,9 @@ Roadmap Phase 4 slice: "federate with existing decentralized compute networks
where appropriate." This note is the measured record: what was built, what the
live network did when we pointed real jobs at it, and whether to expand.
-Every number here was measured on 2026-08-12 from this workspace. Re-measure
-before trusting it: `node scripts/livepeer-federation-bench.mjs --jobs 20`.
+Every number here was measured from this workspace, most recently on
+2026-08-13. Re-measure before trusting it:
+`node scripts/livepeer-federation-bench.mjs --jobs 20`.
---
@@ -40,17 +41,36 @@ routes exactly that class:
## Gateways
-| Gateway | Auth | State (measured 2026-08-12) |
+| Gateway | Auth | State (re-measured 2026-08-13) |
|---|---|---|
-| `https://livepeer.studio/api/generate` | `LIVEPEER_API_KEY` bearer | Reachable (404 on bare path, TLS valid). Requires an API key; none exists in `.env`, the Cloud Run env, or Secret Manager. |
-| `https://dream-gateway.livepeer.cloud` | none (public, rate-limited) | **Dead at the DNS edge.** DNS (local resolver AND Cloudflare/Google DoH, so it is not a local hijack) resolves the host to 216.128.149.0, which serves a Let's Encrypt cert for `plasticoslins.com` and an unrelated "Plasticos Lins" 404 page. The domain's authoritative DNS appears expired or hijacked; there is no Livepeer service behind it. |
+| `https://livepeer.studio/api/generate` | `LIVEPEER_API_KEY` bearer | **Live and authenticating.** An unkeyed POST to `/api/generate/text-to-image` returns `401 {"errors":["request is not authenticated"]}`, not a 404, so the adapter's exact path is correct and the route is serving. The path is confirmed independently by the official SDK we depend on: `[email protected]` builds the same `/api/generate/text-to-image` on server `https://livepeer.studio/api` (`node_modules/livepeer/funcs/generateTextToImage.js`). Requires an API key; none exists in `.env`, the Cloud Run env, or Secret Manager. |
+| `https://dream-gateway.livepeer.cloud` | none (public, rate-limited) | **Dead, and the cause is a stale DNS record rather than a lapsed domain.** `livepeer.cloud` is still actively managed (authoritative NS `merlin`/`ariella.ns.cloudflare.com`, and `www.livepeer.cloud` resolves to live Cloudflare proxy IPs), but the `dream-gateway` record still points at 216.128.149.0, which reverse-resolves to `vultrusercontent.com` and serves a Let's Encrypt cert for `plasticoslins.com`. That is a decommissioned Vultr GPU host whose IP has been reassigned to an unrelated tenant: a dangling DNS record, not an expired registration. Confirmed against the local resolver and both Cloudflare and Google DoH, so it is not a local hijack. |
| `LIVEPEER_GATEWAY_URL` override | env | Supported for a self-hosted gateway or a future replacement edge. |
+Why the distinction matters: a lapsed domain would eventually be reclaimed or
+go dark, whereas a dangling record inside a live zone points user prompt text
+at whoever currently holds that IP, indefinitely and with a valid TLS
+certificate for their own name. That is the reason both lanes refuse the
+public gateway outright instead of retrying it.
+
+The developer documentation for this API surface is in flux, which is itself
+input to the recommendation below. As of 2026-08-13 `docs.livepeer.org` serves
+network-operator documentation (orchestrators and delegators) and states
+plainly: "These docs cover *running* the network. A developer platform, and a
+Build section of these docs, is on the way. In the meantime, ask in the
+Livepeer Discord." The AI API reference pages (`text-to-image`, `llm`,
+`image-to-video`, and siblings) are still listed in
+`https://docs.livepeer.org/llms.txt`, so the surface is not withdrawn, but
+there is currently no rendered public reference for it. The request shape this
+adapter sends is therefore pinned to the official SDK's generated client, which
+is versioned in our lockfile, rather than to a documentation page that moved.
+
The same outage is visible from production, so it is not sandbox network
-egress: `POST https://three.ws/api/inference/livepeer` (an existing demo
-endpoint that calls the dream gateway's `/llm` surface from Cloud Run) returned
-`livepeer.ok: false` on the public gateway while the platform leg answered
-fine.
+egress. Re-confirmed 2026-08-13: `POST https://three.ws/api/inference/livepeer`
+(an existing demo endpoint that calls the dream gateway's `/llm` surface from
+Cloud Run) returns `livepeer.ok: false`, `error: "network_error"` against
+`https://dream-gateway.livepeer.cloud/llm` while the platform leg answers fine
+in the same response.
Both lanes resolve their gateway through one module,
[`api/_lib/livepeer-gateway.js`](../../api/_lib/livepeer-gateway.js)
@@ -58,24 +78,61 @@ Both lanes resolve their gateway through one module,
gateway that moves is a one-file change. That module also marks the public
gateway unusable, and the LLM comparison lane acts on it: with no key and no
override, `/api/inference/livepeer` returns
-`livepeer.error: "gateway_unavailable"` without dialing. The point is not the
-failed request, it is that a POST there would hand the user's prompt text to
-whoever now answers for that hostname. Point `LIVEPEER_GATEWAY_URL` at the
-host to dial it again if the domain is ever restored.
-
-## Measured comparison (2026-08-12)
-
-`node scripts/livepeer-federation-bench.mjs --jobs 3`:
-
-- **baseline lane** (platform chain, flag off): 0/3. Not a lane failure: this
- workspace carries no `.env` (NVIDIA_API_KEY / GOOGLE_CLOUD_PROJECT /
- REPLICATE_API_TOKEN all unset), so the chain correctly throws
- `unconfigured` at the request boundary. The adapter's wiring into the chain
- is covered by `tests/livepeer-federation.test.js` instead.
-- **livepeer lane** (public gateway): 0/3, failure class `unreachable`
- (TLS `ERR_TLS_CERT_ALTNAME_INVALID` against the unrelated cert above).
- Cost $0.00, no fallback paid: the adapter failed over exactly as designed
- and the harness recorded the exact request it would send.
+`livepeer.error: "gateway_unavailable"` without dialing.
+
+**That guard is in the tree but not yet in production.** The live revision at
+the time of writing was built from commit `6839844cc` (2026-08-12T18:37Z),
+which predates it, which is why the re-confirmation above shows the endpoint
+still dialing the host and reporting `network_error` rather than refusing up
+front. The next deploy of `api/inference/livepeer.js` closes it; deploys are
+owner-gated, so this note records the gap rather than assuming it away. The
+point is not the failed request, it is that a POST there hands the user's
+prompt text to whoever now answers for that hostname, and production is still
+doing that on every run of the demo until the deploy lands. Point
+`LIVEPEER_GATEWAY_URL` at the host to dial it again if the record is ever
+repointed at a real gateway.
+
+## Measured comparison (full 20-job run, 2026-08-13)
+
+`node scripts/livepeer-federation-bench.mjs --jobs 20`, 20 distinct seeded
+prompts per lane:
+
+| Lane | Succeeded | Failure class | Cost | Latency p50/p95 |
+|---|---|---|---|---|
+| baseline (platform chain, flag off) | 0/20 | `unconfigured` (20/20) | $0.00 | n/a |
+| livepeer (public gateway) | 0/20 | `tls` (20/20) | $0.00 | n/a |
+
+Neither zero is a lane defect, and they are zero for different reasons:
+
+- **baseline**: this workspace's `.env` carries only the QA sweep account, so
+ `NVIDIA_API_KEY` / `GOOGLE_CLOUD_PROJECT` / `REPLICATE_API_TOKEN` are unset
+ and the chain throws `text-to-image is not configured` at the request
+ boundary before any network call. The adapter's wiring into the chain is
+ covered by `tests/livepeer-federation.test.js` instead. Supplying the
+ production credentials does not fix this from here either: NVIDIA's
+ `ai.api.nvidia.com` accepts the TLS handshake from this sandbox but never
+ answers the inference POST (measured: two direct probes with the lane's exact
+ body, 120 s and 150 s, zero bytes received), while the Vertex lane needs
+ `GCP_SERVICE_ACCOUNT_JSON` or the GCE metadata server, neither of which
+ exists outside Cloud Run. Production serves this lane normally, so a
+ first-party latency baseline has to be measured from production, not from a
+ developer workspace.
+- **livepeer**: every one of the 20 jobs died at the TLS layer against the
+ dangling `dream-gateway` record, verbatim:
+ `livepeer gateway unreachable: fetch failed: ERR_TLS_CERT_ALTNAME_INVALID
+ Hostname/IP does not match certificate's altnames: Host:
+ dream-gateway.livepeer.cloud. is not in the cert's altnames:
+ DNS:plasticoslins.com`. Cost $0.00 and nothing was paid downstream: the
+ adapter failed over exactly as designed.
+
+That verbatim cause is new in this run. Node's `fetch` collapses every
+transport fault to the string `fetch failed` and hides the reason on
+`err.cause`, so the adapter previously reported the outage as a bare
+`unreachable` with no diagnosis, and the bench's `tls` failure class was
+unreachable code. The adapter now flattens the cause chain into the message
+(`describeTransportFailure`), which is what lets the table above distinguish a
+certificate fault from a DNS miss or a refused connection. Covered by
+`tests/livepeer-federation.test.js`.
Because the free path cannot execute the job class, the work order's dry-run
branch applies. The adapter is proven to the request boundary: the exact POST
@@ -100,18 +157,35 @@ the funded 20-job run.** Rationale:
1. The only currently working gateway requires a paid-account key, and the
free no-key path (dream-gateway) is not rate-limited or degraded, it is
- dead at DNS. A federated lane that fails 100% of requests would still be
- correct (the chain fails over), but it would add a 90s-timeout-class
- hang risk on every text-to-3D job for zero benefit.
+ dead: 20 of 20 jobs failed at the TLS layer against a certificate issued to
+ an unrelated domain. A federated lane that fails 100% of requests would
+ still be correct (the chain fails over), but it would add a
+ 90s-timeout-class hang risk on every text-to-3D job for zero benefit.
2. When `LIVEPEER_API_KEY` lands, the expansion decision is a measurement,
not an argument: run the bench, and expand only if the studio lane clears
roughly 9 of 10 jobs with p95 latency under the Vertex lane's and cost
- under Replicate's $0.003/image.
-3. If Livepeer's AI gateway program does not recover (the public gateway has
- been sunset in favor of the studio product line), the same adapter shape
+ under Replicate's $0.003/image. Measure the Vertex comparison number from
+ production, not from a workspace run: the 2026-08-13 attempt above showed
+ the first-party lanes cannot execute locally even with production
+ credentials supplied, so a locally-derived p95 would be a sandbox artifact
+ rather than the bar the federated lane has to beat.
+3. The vendor's own developer surface is mid-migration, which is a reason to
+ wait rather than to commit. The public gateway is gone, the AI API
+ reference pages are unrendered, and the docs site says a developer platform
+ is still "on the way". Adopting a lane whose documented contract is
+ temporarily unpublished means taking the SDK's generated client as the only
+ specification, which is fine for a dark adapter and not fine for a lane in
+ the live path.
+4. If Livepeer's AI gateway program does not recover, the same adapter shape
ports to the next decentralized network (the env-var contract, envelope,
verification gates, and bench harness are network-agnostic; only
`api/_providers/livepeer.js` internals change).
+**Revisit trigger.** Re-run the bench when any one of these changes: an
+`LIVEPEER_API_KEY` is provisioned, the `dream-gateway` record starts resolving
+to a host serving a certificate for a `livepeer` name, or the Build section of
+`docs.livepeer.org` ships a rendered AI API reference. Absent one of those,
+there is nothing new to measure and the lane stays dark.
+
Solana note: nothing in this slice touches a chain. No EVM dependency was
introduced; the federation lane is a plain HTTPS compute call.
diff --git a/docs/selfie-to-avatar.md b/docs/selfie-to-avatar.md
index 2a1ef1298..0e20dc603 100644
--- a/docs/selfie-to-avatar.md
+++ b/docs/selfie-to-avatar.md
@@ -22,7 +22,9 @@ The client half lives in three modules the page imports on demand: [`src/selfie-
5. **Submit.** The pipeline ([`src/selfie-pipeline.js`](../src/selfie-pipeline.js)) downscales each photo to a 1024px longest edge at JPEG quality 0.88, POSTs them as data URIs to `/api/avatars/reconstruct`, and gets back a `jobId`.
6. **Reconstruct, server-side.** The reconstruct handler (`api/avatars/_actions.js`) selects a provider through [`api/_lib/regen-provider.js`](../api/_lib/regen-provider.js). The production lane is **GCP**: it POSTs `{ images, body_type }` to the Cloud Run service behind `GCP_RECONSTRUCTION_URL`, today the [`workers/avatar-reconstruction/`](../workers/avatar-reconstruction/) FastAPI app deployed as `avatar-reconstruction`. (The multi-backend [`workers/avatar-pipeline-controller/`](../workers/avatar-pipeline-controller/) speaks the identical contract and can take over that env var, but is not deployed today.) That pipeline (`face_texture_transfer_v2`) uses **MediaPipe FaceLandmarker** (468 landmarks, Apache-2.0) to transfer your face texture and geometry onto a fixed-topology, pre-rigged Wolf3D/Ready-Player-Me-style humanoid template carrying a Mixamo-compatible skeleton, 52 ARKit blendshapes, and 15 visemes. Full engine detail is in [avatar-reconstruction.md](./avatar-reconstruction.md).
7. **Auto-rig fallback.** The template is born rigged. If a generic mesh comes back unrigged and a rig model is configured, `reconstruct-finalize.js` chains a `rerig` job (the `model-rig` worker, `workers/rig`) and moves the job through a `rigging` status before surfacing the avatar. If rigging is impossible it delivers the static mesh tagged `unrigged` rather than nothing.
-8. **Poll and finish.** The client polls `GET /api/avatars/regenerate-status?jobId=...` every ~3 seconds (backing off on errors). On `status: 'done'` it fetches the finished avatar from `GET /api/avatars/:id` and shows it in a `<model-viewer>`.
+8. **Poll and finish.** The client polls `GET /api/avatars/regenerate-status?jobId=...` every ~3 seconds (backing off on errors). On `status: 'done'` it fetches the finished avatar from `GET /api/avatars/:id` and shows it in a `<model-viewer>`. The poll uses the adapter for the provider recorded on the job row, not whichever provider currently leads the precedence order, because the stored job id is provider-shaped and only that backend can read it.
+9. **Register and mint.** Materializing the avatar also registers it in the Forge store (`forge_creations`, `path: 'reconstruct'`) so galleries, share and embed pages, and provenance treat a capture like any other creation, and fires a best-effort draft agent identity mint. Both are best-effort by design: the avatar is already delivered, so neither can fail the job.
+10. **Backstop for a closed tab.** The browser poll is what drives finalization, so closing the tab mid-build would otherwise strand the job even though the worker finished. [`api/cron/reconstruct-sweep.js`](../api/cron/reconstruct-sweep.js) runs the same finalize stages server-side every few minutes, so an abandoned capture still lands in your library. It rescues jobs up to 30 days old, and fails anything older with an honest reason rather than leaving it open forever.
### The text-to-avatar variant
@@ -75,6 +77,7 @@ Request body: `name` (1-120, required), `photos` (1-6 image URLs or data URIs) *
- **Quality gating.** Only a frontal with no detectable face hard-blocks. Blur, illustrations, or multiple faces are surfaced as warnings you can proceed past.
- **Error handling.** Camera denial distinguishes `NotAllowedError` ("Camera access was denied... use Upload instead") from other failures. Job failures map to friendly messages (no face, content-safety flag, blur, service unavailable, timeout, out-of-memory). Poll tolerates up to 5 consecutive network errors with backoff before "Lost connection to the avatar engine." Rate limits (`429`) start a 60-second cooldown with a live countdown. Pending jobs resume across reloads.
- **Output.** glTF 2.0 GLB with a Mixamo-standard humanoid rig, 52 ARKit blendshapes, and 15 visemes. Private avatars return a short-lived signed `url`; `model_url` is the public CDN URL once you make it public.
+- **Error copy.** The worker classifies a failure as either the caller's input or a service fault. An input rejection ("no face detected in any of the provided photos") is relayed verbatim so the client can name the fix; a service fault is masked into neutral retry copy, because its raw text can carry a vendor name or an operator-only correlation id. Your visibility choice rides along to the Forge store, so a private capture never surfaces in a public gallery.
## Related
diff --git a/docs/skills.md b/docs/skills.md
index ce7a6a046..12d4db4cc 100644
--- a/docs/skills.md
+++ b/docs/skills.md
@@ -716,7 +716,7 @@ Installing is free and instant (`POST /api/skills/:id/install`, sign-in required
- **Knowledge skills load into your chats.** `/api/chat` reads your installed skills at request time (`api/_lib/installed-skills.js`) and injects their playbooks into the system prompt, so your agent follows them anywhere you chat signed-in on three.ws (the `/app` workspace included). Budgets keep prompts sane: newest 8 installs, 6k chars per skill, 24k total. Each reply's SSE `done` event lists the slugs that were in context as `skills_applied`.
- **Your installed set is one API call away.** `GET /api/skills?installed=true` (authed) returns the full payload, `content` and `schema_json` included, so an external agent, MCP client, or script can hydrate itself from your library.
-Paid skills price per *call*, not per install: the detail page shows an x402 endpoint (`GET /api/x402/skill-call?skill=<slug>`) any wallet can pay in USDC on Base, settling to the author.
+Paid skills price per *call*, not per install: the detail page shows an x402 endpoint (`GET /api/x402/skill-call?skill=<slug>`) any wallet can pay in USDC, settling to the author. The 402 challenge names the author's own wallet as the payee, so their share moves at settlement rather than being forwarded later, and Solana is offered first whenever the author has a Solana wallet. What the author keeps, where they watch it land, and how to verify a payout on-chain: [Skill royalties](./skill-royalties.md).
Publish your own from the marketplace ("Publish a Skill") or `POST /api/skills` with `{ name, slug, description, category, tags, content }` (or `schema_json`).
diff --git a/docs/start-here.md b/docs/start-here.md
index 5ffc3b454..0ee1aea23 100644
--- a/docs/start-here.md
+++ b/docs/start-here.md
@@ -120,6 +120,7 @@ Curious what happens between the prompt and the model? [How the Forge works](./h
- **Driving an agent wallet from code?** → [The agent wallet control API](./agent-wallet-api.md): the reference for all seven owner-only surfaces on an agent's Solana wallet (scoped session keys, programmable orders, plain-language intents, Treasury Autopilot, portfolio P&L, guardians and the dead-man switch, and the anomaly guard), each with its exact JSON, every error, and a curl example
- **Turning a token into a paid endpoint?** → [CA to x402](./ca2x402.md): paste a contract address and get a live agent-payable market-intel endpoint, discoverable in the bazaar, with the generated snippets
- **Want other agents to pay for your tools?** → [Monetize an MCP server](./tutorials/monetize-mcp-server.md): build an MCP server that charges per `tools/call` in USDC on Solana, with a free orientation tool in front of the paid ones and the verify-work-settle ordering that means a failed call never takes money. The runnable code is [examples/paid-mcp-server](https://github.com/nirholas/three.ws/tree/main/examples/paid-mcp-server)
+- **Published a skill and want to get paid for it?** → [Skill royalties](./skill-royalties.md): every paid call to a skill you wrote routes your share straight to your own wallet at settlement (Solana first), with the exact split, the ledger where you watch it land with an explorer link per payout, and a proof lane that verifies the whole accounting path without moving a cent
- **Checking whether the economy is real?** → [Agent economy volume](./agent-economy-volume.md) counts only settled agent-to-agent USDC for paid skills, and [Viability](./viability.md) shows the unit economics (GMV, take rate, repeat buyers, realized P&L) from on-chain data with no projections
- **Designing an agent's look and brand?** → [Agent Identity Studio](./agent-identities.md) turns a brand brief into a rigged avatar plus posed studio renders; [Living Stages](./stage.md) covers shareable stages; [the Avatar Engines Atlas](./avatar-engines.md) is the factual survey of the engines in this space and which ones we animate
- **Need to prove what an agent was told to do?** → [Signed manifests](./agent-manifest.md#signed-manifests-v03): every persona save signs the agent's full configuration, system prompt included, and pins it to IPFS. Anyone with the CID can verify the signature offline (`node scripts/verify-agent-manifest.mjs --cid …`) and diff the pinned record against the agent running today, with no account and no trust in us
diff --git a/scripts/inference-receipt-verify.mjs b/scripts/inference-receipt-verify.mjs
index 9ae8be8db..c36b55b3d 100644
--- a/scripts/inference-receipt-verify.mjs
+++ b/scripts/inference-receipt-verify.mjs
@@ -57,6 +57,19 @@ function parseArgs(argv) {
return args;
}
+// The two public Solana lanes, by CAIP-2 id (the id is `solana:` plus the first
+// 32 base58 characters of the cluster's genesis hash). Anything else is a
+// private or local lane: it gets named by its id and needs an explicit --rpc,
+// because there is no public endpoint to guess.
+const SOLANA_LANES = {
+ 'solana:5eykt4usfv8p8njdtrepy1vzqkqzkvdp': { label: 'Solana mainnet', defaultRpc: 'https://api.mainnet-beta.solana.com' },
+ 'solana:etwtrabzayq6imfeykouru166vu2xqa1': { label: 'Solana devnet', defaultRpc: 'https://api.devnet.solana.com' },
+};
+
+function laneOf(lowercaseNetwork) {
+ return SOLANA_LANES[lowercaseNetwork] || { label: lowercaseNetwork, defaultRpc: null };
+}
+
// Read-only on-chain confirmation of the settlement transaction. Solana and
// devnet first (the home lane); EVM receipts point the operator at their own
// node because this script deliberately stays dependency-light.
@@ -70,8 +83,18 @@ async function confirmOnchain(receipt, rpcUrl) {
detail: `on-chain confirmation in this CLI covers Solana lanes; for ${network} confirm ${transaction} on any ${network} explorer or RPC`,
};
}
- const devnet = n.includes('etwtrabzayq6imeykouru166vu2xqa1');
- const url = rpcUrl || (devnet ? 'https://api.devnet.solana.com' : 'https://api.mainnet-beta.solana.com');
+ // Name the lane from the receipt's own CAIP-2 id. Reporting anything that is
+ // not devnet as "mainnet" would tell an operator their payment settled on a
+ // chain it never touched, which is the one thing a verifier must never do.
+ const { label, defaultRpc } = laneOf(n);
+ const url = rpcUrl || defaultRpc;
+ if (!url) {
+ return {
+ verified: false,
+ status: 'rpc_required',
+ detail: `${network} is not a public Solana lane this CLI can assume an RPC for; re-run with --rpc <url>`,
+ };
+ }
try {
const res = await fetch(url, {
method: 'POST',
@@ -86,13 +109,13 @@ async function confirmOnchain(receipt, rpcUrl) {
if (!res.ok) throw new Error(`RPC HTTP ${res.status}`);
const data = await res.json();
const st = data?.result?.value?.[0];
- if (!st) return { verified: false, status: 'not_found', detail: `signature not found on Solana ${devnet ? 'devnet' : 'mainnet'} (${url})` };
+ if (!st) return { verified: false, status: 'not_found', detail: `signature not found on ${label} (${url})` };
if (st.err) return { verified: false, status: 'failed', detail: 'transaction failed on-chain', slot: st.slot ?? null };
const confirmed = st.confirmationStatus === 'confirmed' || st.confirmationStatus === 'finalized';
return {
verified: confirmed,
status: st.confirmationStatus || 'processed',
- detail: confirmed ? `settlement confirmed on Solana ${devnet ? 'devnet' : 'mainnet'}` : 'seen but not yet confirmed',
+ detail: confirmed ? `settlement confirmed on ${label}` : 'seen but not yet confirmed',
slot: st.slot ?? null,
};
} catch (err) {
diff --git a/scripts/inference-settlement-proof.mjs b/scripts/inference-settlement-proof.mjs
index 0e792548b..b243de74a 100644
--- a/scripts/inference-settlement-proof.mjs
+++ b/scripts/inference-settlement-proof.mjs
@@ -35,9 +35,25 @@
// the ledger the payment actually settled on, never a devnet label it did not
// earn.
//
+// ── The database the settle gate needs ────────────────────────────────────
+// settlePayment() runs the settle-credit gate, which fails closed without a
+// database (by design: see api/_lib/x402/settle-credit.js). A local Postgres
+// behind a Neon-protocol proxy satisfies it without touching any real data:
+//
+// docker network create threews-proof-net
+// docker run -d --name threews-proof-pg --network threews-proof-net \
+// -e POSTGRES_PASSWORD=proof -e POSTGRES_DB=threews postgres:16-alpine
+// docker run -d --name threews-proof-neon --network threews-proof-net -p 4444:4444 \
+// -e PG_CONNECTION_STRING=postgres://postgres:proof@threews-proof-pg:5432/threews \
+// ghcr.io/timowilhelm/local-neon-http-proxy:main
+// docker cp api/_lib/migrations threews-proof-pg:/migrations
+// docker exec threews-proof-pg sh -c \
+// 'psql -U postgres -d threews -f /migrations/20260729000000_x402_settle_sig_unique.sql'
+//
// Run: node scripts/inference-settlement-proof.mjs
// Optional env: INFERENCE_PROOF_PROMPT, INFERENCE_PROOF_LANE,
-// INFERENCE_PROOF_LOCAL_RPC, SOLANA_DEVNET_RPC_URL.
+// INFERENCE_PROOF_LOCAL_RPC, SOLANA_DEVNET_RPC_URL, DATABASE_URL,
+// INFERENCE_PROOF_NEON_HTTP_ENDPOINT.
import { randomUUID } from 'node:crypto';
import { readFileSync } from 'node:fs';
@@ -116,6 +132,19 @@ if (requestedLane === 'devnet') {
process.env.X402_SELF_FACILITATOR_ENABLED = 'true';
process.env.SOLANA_RPC_URL = rpcUrl;
+// The settle path runs the DB-backed settle-credit gate (one on-chain signature
+// credits at most one payment, api/_lib/x402/settle-credit.js). That gate fails
+// CLOSED with no database, and relaxing it for a proof run would defeat the
+// exact double-credit defence it was built for, so the proof brings its own
+// Postgres rather than bypassing it. `api/_lib/db.js` speaks Neon's HTTP
+// protocol; INFERENCE_PROOF_NEON_HTTP_ENDPOINT points that driver at a local
+// Neon-compatible proxy in front of an ordinary Postgres. See the header.
+if (process.env.INFERENCE_PROOF_NEON_HTTP_ENDPOINT) {
+ const { neonConfig } = await import('@neondatabase/serverless');
+ neonConfig.fetchEndpoint = process.env.INFERENCE_PROOF_NEON_HTTP_ENDPOINT;
+ log('lane', `neon HTTP driver pointed at ${process.env.INFERENCE_PROOF_NEON_HTTP_ENDPOINT}`);
+}
+
const { caip2ForGenesisHash } = await import('../api/_lib/x402/solana-networks.js');
const { NETWORK_SOLANA_DEVNET } = await import('../api/_lib/x402-spec.js');
diff --git a/src/widgets/bonding-curve.test.js b/src/widgets/bonding-curve.test.js
index 46d301df8..0f2931ddb 100644
--- a/src/widgets/bonding-curve.test.js
+++ b/src/widgets/bonding-curve.test.js
@@ -153,7 +153,12 @@ describe('computeView', () => {
const data = {
mint: 'MintAddr',
network: 'mainnet',
- curve: { realSolReserves: String(20 * LAMPORTS), complete: false, isMayhemMode: false },
+ curve: {
+ realSolReserves: String(20 * LAMPORTS),
+ tokenTotalSupply: '1000000000000000', // 1B tokens at 6 decimals
+ complete: false,
+ isMayhemMode: false,
+ },
price: { buyPricePerToken: '30', marketCap: String(42 * LAMPORTS), isGraduated: false },
graduation: {
progressBps: 3450,
@@ -165,22 +170,37 @@ describe('computeView', () => {
expect(v.status).toBe('bonding');
expect(v.progress).toBeCloseTo(0.345, 5);
expect(v.progressPct).toBeCloseTo(34.5, 5);
- expect(v.marketCapSol).toBe(42);
+ // 30 lamports per token × 1B tokens = 30 SOL. The SDK's `price.marketCap`
+ // is deliberately not used — see the derivation note in computeView.
+ expect(v.marketCapSol).toBeCloseTo(30, 6);
expect(v.raisedSol).toBe(18);
expect(v.hasUsd).toBe(false);
expect(v.marketCapUsd).toBeNull();
});
+ it('falls back to the fixed 1B pump.fun supply when the payload omits it', () => {
+ const v = computeView(
+ {
+ mint: 'M',
+ curve: { realSolReserves: '0', complete: false },
+ price: { buyPricePerToken: '30' },
+ graduation: { progressBps: 0, solAccumulated: '0' },
+ },
+ null,
+ );
+ expect(v.marketCapSol).toBeCloseTo(30, 6);
+ });
+
it('enriches with USD when a SOL price is supplied', () => {
const data = {
mint: 'M',
- curve: { realSolReserves: '0', complete: false },
- price: { marketCap: String(10 * LAMPORTS), buyPricePerToken: '0' },
+ curve: { realSolReserves: '0', complete: false, tokenTotalSupply: '1000000000000000' },
+ price: { marketCap: String(10 * LAMPORTS), buyPricePerToken: '10' },
graduation: { progressBps: 5000, solAccumulated: String(2 * LAMPORTS) },
};
const v = computeView(data, 150);
expect(v.hasUsd).toBe(true);
- expect(v.marketCapUsd).toBe(1500);
+ expect(v.marketCapUsd).toBe(1500); // 10 SOL × $150
expect(v.raisedUsd).toBe(300);
});
@@ -248,17 +268,40 @@ describe('computeView', () => {
expect(v.marketCapUsd).toBe(10_000_000);
});
- it('clamps the negative market cap a fresh curve can report to zero', () => {
+ // The SDK's `price.marketCap` goes negative on real curves — a live devnet
+ // coin 95% of the way to graduation reports -1.75 SOL while holding 30.3 SOL
+ // of virtual reserves. Reading it and clamping rendered "◎0" for a coin with
+ // a real price, which is why the market cap is derived from price × supply.
+ it('ignores the negative pseudo-market-cap the SDK reports', () => {
const data = {
mint: 'M',
network: 'mainnet',
- curve: { realSolReserves: '0', complete: false, isMayhemMode: false },
+ curve: {
+ realSolReserves: '0',
+ tokenTotalSupply: '1000000000000000',
+ complete: false,
+ isMayhemMode: false,
+ },
price: { marketCap: '-2041006523', buyPricePerToken: '30', isGraduated: false },
graduation: { progressBps: 0, isGraduated: false, solAccumulated: '0' },
};
const v = computeView(data, 150);
expect(v.status).toBe('bonding');
expect(v.progress).toBe(0);
+ expect(v.marketCapSol).toBeCloseTo(30, 6);
+ expect(v.marketCapUsd).toBeCloseTo(4500, 6);
+ });
+
+ it('reports no market cap when the curve has no price yet', () => {
+ const v = computeView(
+ {
+ mint: 'M',
+ curve: { realSolReserves: '0', complete: false, tokenTotalSupply: '1000000000000000' },
+ price: { buyPricePerToken: '0' },
+ graduation: { progressBps: 0, solAccumulated: '0' },
+ },
+ 150,
+ );
expect(v.marketCapSol).toBe(0);
expect(v.marketCapUsd).toBe(0);
});
diff --git a/tests/api/regenerate-status.test.js b/tests/api/regenerate-status.test.js
index 9fb126725..9c55d8d60 100644
--- a/tests/api/regenerate-status.test.js
+++ b/tests/api/regenerate-status.test.js
@@ -20,6 +20,11 @@
// 4. Ownership: another user's job id is a 404, not an oracle.
// 5. The rig chain: a job parked at 'rigging' polls its child rig job via
// pollRiggingStage and reports the real post-call status.
+// 6. Provider routing: the poll uses the adapter for the provider stored on
+// the row. ext_job_id is provider-shaped, so resolving by the current
+// primary instead asks the wrong backend about an id it never issued.
+// 7. A job whose provider lost its credentials is left alone rather than
+// failed, since it may still be running on a backend we can no longer ask.
import { describe, it, expect, vi, beforeEach } from 'vitest';
@@ -31,6 +36,9 @@ const state = {
userId: 'u1',
statusReturn: null,
persisted: [],
+ // undefined = the job's provider resolves normally; null = its credentials
+ // are gone, so there is nothing to poll with.
+ providerInstanceForJob: undefined,
};
function resetState() {
@@ -38,6 +46,7 @@ function resetState() {
state.userId = 'u1';
state.statusReturn = null;
state.persisted = [];
+ state.providerInstanceForJob = undefined;
}
// Job lookup + the in-flight status persist update. Branching on query text,
@@ -63,10 +72,18 @@ vi.mock('../../api/_lib/auth.js', () => ({
}));
const providerInstance = { status: vi.fn(async () => state.statusReturn) };
+// A spy, not a constant: the handler must hand this the row's own provider
+// name, and a job whose provider is no longer credentialed must resolve to no
+// instance without the row being touched.
+const getRegenProviderForJobMock = vi.fn(async (jobProvider) =>
+ state.providerInstanceForJob === undefined
+ ? { name: jobProvider, instance: providerInstance }
+ : { name: jobProvider, instance: state.providerInstanceForJob },
+);
vi.mock('../../api/_lib/regen-provider.js', () => ({
getRegenProvider: async () => ({ name: 'gcp', instance: providerInstance }),
getRegenProviderForMode: async () => ({ name: 'gcp', instance: providerInstance }),
- getRegenProviderForJob: async () => ({ name: 'gcp', instance: providerInstance }),
+ getRegenProviderForJob: (...a) => getRegenProviderForJobMock(...a),
getRegenProviderByName: async () => ({ name: 'gcp', instance: providerInstance }),
getRegenProviderCandidates: async () => [{ name: 'gcp', instance: providerInstance }],
BYOK_REGEN_PROVIDERS: [],
@@ -206,4 +223,28 @@ describe('regenerate-status: capture-to-avatar poll contract', () => {
expect(finalizeReconstructStageMock).not.toHaveBeenCalled();
expect(state.persisted[0]).toMatchObject({ status: 'running' });
});
+
+ it("polls with the adapter for the row's own provider, not the current primary", async () => {
+ // ext_job_id is provider-shaped (the gcp adapter packs a base64url
+ // envelope; Replicate stores a bare prediction id), so resolving by the
+ // primary instead of the row would ask the wrong backend about an id it
+ // never issued and fail a capture that is generating fine.
+ state.job = baseJob({ provider: 'huggingface', ext_job_id: 'hf-task-7' });
+ state.statusReturn = { status: 'running' };
+ await poll('gcp-job-1');
+ expect(getRegenProviderForJobMock).toHaveBeenCalledWith('huggingface', expect.anything());
+ expect(providerInstance.status).toHaveBeenCalledWith('hf-task-7');
+ });
+
+ it('leaves the row untouched when the job provider is no longer credentialed', async () => {
+ // Nothing can poll this job any more. Reporting a failure here would be a
+ // lie about a job that may still be running; the row stays as-is and
+ // reconstruct-sweep is what eventually ages it out with an honest reason.
+ state.job = baseJob({ status: 'running' });
+ state.providerInstanceForJob = null;
+ const { body } = await poll('gcp-job-1');
+ expect(body.status).toBe('running');
+ expect(state.persisted).toHaveLength(0);
+ expect(providerInstance.status).not.toHaveBeenCalled();
+ });
});
diff --git a/tests/livepeer-federation.test.js b/tests/livepeer-federation.test.js
index aa2680186..64ccba2db 100644
--- a/tests/livepeer-federation.test.js
+++ b/tests/livepeer-federation.test.js
@@ -235,6 +235,27 @@ describe('livepeerTextToImage', () => {
await expect(livepeerTextToImage('x', {})).rejects.toMatchObject({ code: 'provider_unreachable' });
});
+ // Node's fetch reports every transport fault as the bare string "fetch
+ // failed" and puts the real reason on err.cause. Losing that chain is losing
+ // the diagnosis: the measured public-gateway outage is a certificate that
+ // belongs to an unrelated domain, which reads identically to a DNS miss or a
+ // refused connection unless the cause is carried into the message.
+ it('carries the transport cause chain into the unreachable message', async () => {
+ const cause = Object.assign(new Error("Hostname/IP does not match certificate's altnames"), {
+ code: 'ERR_TLS_CERT_ALTNAME_INVALID',
+ });
+ fetchMock.mockRejectedValueOnce(Object.assign(new TypeError('fetch failed'), { cause }));
+ await expect(livepeerTextToImage('x', {})).rejects.toMatchObject({
+ code: 'provider_unreachable',
+ message: expect.stringContaining('ERR_TLS_CERT_ALTNAME_INVALID'),
+ });
+ });
+
+ it('reports a transport failure that carries no cause without inventing one', async () => {
+ fetchMock.mockRejectedValue(new Error('socket hang up'));
+ await expect(livepeerTextToImage('x', {})).rejects.toThrow(/socket hang up/);
+ });
+
it('codes 429 rate_limited and other non-2xx upstream_error', async () => {
fetchMock.mockResolvedValueOnce(gatewayResponse(429, 'slow down'));
await expect(livepeerTextToImage('x', {})).rejects.toMatchObject({ code: 'rate_limited', providerStatus: 429 });
diff --git a/workers/remesh/README.md b/workers/remesh/README.md
index 1fb16afa9..55d5a1154 100644
--- a/workers/remesh/README.md
+++ b/workers/remesh/README.md
@@ -102,6 +102,14 @@ Remote URLs are fetched through the SSRF guard in
[`worker_security.py`](./worker_security.py) — https-only, with private,
loopback, link-local, and cloud-metadata addresses rejected.
+A glTF asset that declares `EXT_meshopt_compression` (what `gltfpack` emits, and
+what most three.ws avatars ship as) is transcoded to plain glTF by
+[`gltf_meshopt.py`](./gltf_meshopt.py) before loading. trimesh has no decoder for
+that extension and fails on the compressed asset's fallback buffer, so those
+meshes used to fail outright. The `gltfpack` binary is pinned by release tag and
+checksum in the [`Dockerfile`](./Dockerfile); set `GLTFPACK_BIN` to run that path
+against your own copy locally.
+
### `GET /tasks/{task_id}`
```json
diff --git a/workers/rig/README.md b/workers/rig/README.md
index 91a945e9e..c2c71bfcc 100644
--- a/workers/rig/README.md
+++ b/workers/rig/README.md
@@ -113,9 +113,18 @@ cd workers/rig
python3 test_rig_glb.py # skin authoring: skeleton, weights, morph targets
python3 test_blendshapes.py # ARKit transfer: head mask, alignment, falloff
python3 test_pipeline.py # core path: the 52-bone Mixamo + ARKit-52 contract
+python3 test_gltf_meshopt.py # the meshopt decode every input GLB passes through
npx vitest run tests/glb-canonicalize.test.js # from the repo root
```
+An input GLB saved with `EXT_meshopt_compression` (what `gltfpack` emits, and
+what most three.ws avatars ship as) is transcoded to plain glTF by
+[`gltf_meshopt.py`](./gltf_meshopt.py) as soon as it is fetched, because neither
+trimesh nor pygltflib can decode that extension and rigging one used to fail
+outright. The `gltfpack` binary is pinned by release tag and checksum in the
+[`Dockerfile`](./Dockerfile); set `GLTFPACK_BIN` to point at your own copy when
+running that path locally.
+
`test_pipeline.py` runs the two stages composed the way `main.py._rig_sync`
composes them and asserts what the platform consumes: the exact 52 Mixamo bone
names, their hierarchy, unit-sum skin weights, 52 ARKit morph targets on the
diff --git a/workers/segment/README.md b/workers/segment/README.md
index e02015452..6362af627 100644
--- a/workers/segment/README.md
+++ b/workers/segment/README.md
@@ -36,6 +36,14 @@ Supported input formats: `.glb`, `.gltf`, `.obj`, `.stl`, `.ply`, `.fbx`,
`worker_security.fetch_remote_bytes` (https-only, private/loopback/metadata IPs
rejected, redirects re-validated per hop).
+A glTF asset that declares `EXT_meshopt_compression` (what `gltfpack` emits, and
+what most three.ws avatars ship as) is transcoded to plain glTF by
+[`gltf_meshopt.py`](./gltf_meshopt.py) before loading. trimesh has no decoder for
+that extension and fails on the compressed asset's fallback buffer, so those
+meshes used to fail outright. The `gltfpack` binary is pinned by release tag and
+checksum in the [`Dockerfile`](./Dockerfile); set `GLTFPACK_BIN` to run that path
+against your own copy locally.
+
The parts are a strict **partition** of the input: same faces, redistributed,
never repaired and never invented. (trimesh patches holes while splitting by
default, which grew a real 17031-face forge model to 17050 faces across its
@@ -76,6 +84,8 @@ implementation.
| `segment_core.py` | The geometry engine: `load_concatenated`, `segment`, `build_scene`, `manifest`. Trimesh + numpy + scipy. |
| `test_segment_core.py` | Core-path tests for the geometry engine. No GCS, no network. Run as a Docker build gate. |
| `worker_security.py` | Shared bearer-auth + SSRF-hardened fetch + opaque error helper. Byte-identical copy across all workers, so keep it in sync when editing. |
+| `gltf_meshopt.py` | Shared `EXT_meshopt_compression` decode (via the pinned `gltfpack` binary) applied to every fetched mesh. Byte-identical copy across the workers that load caller meshes; `npm run check:vendored` enforces that. |
+| `test_gltf_meshopt.py` | Tests for the decode, run as a Docker build gate alongside the core suite. |
| `Dockerfile` | `python:3.11-slim` + native libs (`libgl1`, `libassimp5`, `libopenblas`); runs the test gate, then serves via `uvicorn` on port 8080. |
| `cloudbuild.yaml` | Cloud Build to Artifact Registry to Cloud Run deploy. |
diff --git a/workers/stylize/README.md b/workers/stylize/README.md
index 6fb6234de..1c7a028dc 100644
--- a/workers/stylize/README.md
+++ b/workers/stylize/README.md
@@ -40,10 +40,11 @@ Input formats: `.glb`, `.gltf`, `.obj`, `.stl`, `.ply`, `.fbx`, `.off`, `.dae`
(FBX/DAE via `pyassimp`). Output formats: `glb` (default), `obj`, `stl`, `ply`.
A glTF asset that declares `EXT_meshopt_compression` (what `gltfpack` emits, and
-what most three.ws avatars ship as) is transcoded to plain glTF with
-[`gltfpack`](https://github.com/zeux/meshoptimizer) before loading: trimesh has
-no decoder for that extension and fails on the compressed asset's fallback
-buffer, so every filter used to fail on those meshes. The binary is pinned by
+what most three.ws avatars ship as) is transcoded to plain glTF by
+[`gltf_meshopt.py`](gltf_meshopt.py) before loading: trimesh has no decoder for
+that extension and fails on the compressed asset's fallback buffer, so every
+filter used to fail on those meshes. The
+[`gltfpack`](https://github.com/zeux/meshoptimizer) binary behind it is pinned by
release tag and checksum in the [`Dockerfile`](Dockerfile); point `GLTFPACK_BIN`
at your own copy to run that path locally.
@@ -262,6 +263,8 @@ curl -s -X POST https://three.ws/api/forge-stylize \
| [`main.py`](main.py) | FastAPI app: filters, color sampler, mesh loading, task queue, GCS upload, routes, OIN executor. |
| [`test_stylize.py`](test_stylize.py) | Core-path unit suite; also a Docker build gate. |
| [`worker_security.py`](worker_security.py) | Shared bearer-auth, SSRF-safe fetch, error sanitizer. |
+| [`gltf_meshopt.py`](gltf_meshopt.py) | Shared `EXT_meshopt_compression` decode applied to every fetched mesh. Vendored byte-identical into every worker that loads a caller mesh; `npm run check:vendored` enforces that. |
+| [`test_gltf_meshopt.py`](test_gltf_meshopt.py) | Tests for the decode; a Docker build gate alongside the filter suite. |
| [`oin.py`](oin.py) | OIN protocol layer: canonicalization, job digests, Ed25519 signing, the `/oin/*` routes. Vendored copy, kept byte-identical across workers. |
| [`oin_upload.py`](oin_upload.py) | OIN result sinks: GCS in production, a local directory for self-hosted runs. |
| [`requirements.txt`](requirements.txt) | Pinned deps (`trimesh`, `open3d`, `scipy`, `pyassimp`, `pynacl`, …). |
diff --git a/workers/texture/README.md b/workers/texture/README.md
index c52223485..eec22b35c 100644
--- a/workers/texture/README.md
+++ b/workers/texture/README.md
@@ -125,8 +125,12 @@ pyrender so it runs anywhere, GPU or not:
```bash
cd workers/texture
python3 test_texture_projection.py # camera, rasterizer, occlusion, blend
+python3 test_gltf_meshopt.py # the meshopt decode every caller mesh passes through
```
+Both run as a Docker build gate, so a regression fails the image instead of
+reaching a user mid-retexture.
+
## API
Async task shape. Every route except `/health` requires
@@ -135,6 +139,13 @@ Async task shape. Every route except `/health` requires
`error`). Remote mesh and mask URLs are fetched through the SSRF guard in
[`worker_security.py`](./worker_security.py).
+A mesh saved with `EXT_meshopt_compression` (what `gltfpack` emits, and what most
+three.ws avatars ship as) is transcoded to plain glTF by
+[`gltf_meshopt.py`](./gltf_meshopt.py) before loading: trimesh has no decoder for
+that extension, so those meshes used to fail outright. The `gltfpack` binary is
+pinned by release tag and checksum in the [`Dockerfile`](./Dockerfile); set
+`GLTFPACK_BIN` to point at your own copy locally.
+
### `POST /texture` → `202`
```bash