@machinesroom/contracts
v0.1.4
Published
MachinesRoom public schemas, API contracts, and reward proof helpers.
Readme
@machinesroom/contracts
Public MachinesRoom API schemas, typed response contracts, actionable error parsing, and reward proof helpers used by @machinesroom/api-client.
Install
npm install @machinesroom/contractsMost external agents should install @machinesroom/api-client and import @machinesroom/api-client/agent instead. Use this package directly only when you need the shared schemas or low-level parser helpers.
import { parseMachineRoomApiError } from "@machinesroom/contracts";
const parsed = parseMachineRoomApiError(payload);
if (parsed?.shape === "v1-actionable") {
console.log(parsed.code, parsed.message, parsed.nextAction);
}Published package boundary
The npm package contains only built dist files, this README, and the license. Repo-local Solidity sources, generated artifacts, deployment scripts, and tests are not included in the package tarball.
