stellar-contract-platform [OPTIONS] <COMMAND>
| Option | Description |
|---|---|
--json |
Emit a machine-readable JSON report envelope (alias for --format json). |
--format <text|json> |
Output format; defaults to text. |
-q, --quiet |
Suppress non-essential diagnostics (progress/notes). Primary results still print. |
-v, --verbose |
Emit diagnostics to stderr (repeatable). |
-h, --help |
Print help. |
-V, --version |
Print version. |
Inspects a WASM artifact: size, version, artifact SHA-256, type/function/table/
global counts, memories, imports, exports, custom sections, and code size. With
--security, runs bounded heuristics.
Summarizes the contract specification. --function prints a single function;
--type prints a single user-defined type.
Decodes an event fixture and filters it. --limit is applied last.
Diff two contract interfaces. Changes are classified as breaking,
non-breaking, or informational. Always exits 0.
Assess compatibility under a documented policy. Exits 6 when incompatible.
Prints the artifact SHA-256 and, when a specification is present, the canonical interface fingerprint.
Inspects a deployed contract using a deterministic RPC fixture. The live HTTP
transport is not shipped yet; --rpc-url is validated and recorded only.
Compares the local artifact hash against the deployed executable hash.
MATCHexits0.MISMATCHexits7.INSUFFICIENT_DATA/ERRORexit8.
Parse and compare build metadata JSON documents.
Prints capabilities, schema version, networks, and the RPC transport status.
| Code | Meaning |
|---|---|
0 |
success |
2 |
usage error |
3 |
input / filesystem error |
4 |
parse / decode error |
5 |
unsupported feature |
6 |
incompatible interface change |
7 |
verification mismatch |
8 |
verification inconclusive |
Every --json report has the shape:
{
"schema_version": "1.0",
"kind": "inspect",
"tool": "stellar-contract-platform",
"version": "0.1.0",
"data": { }
}Errors serialize as { "schema_version", "kind": "error", "code", "message" }.