Skip to main content

Module ir_executable

Module ir_executable 

Source
Expand description

IrExecutable — the runtime-ir-driven off-chain executor.

Loads a parsed contract.mpir (MoonIr) plus a host-supplied Witnesses callback table, and exposes inherent methods for initialize (run the constructor) and execute_circuit (run a provable circuit body) by walking the IR’s Statement / Expression tree at call time.

Arguments are serde_json::Value. The IR’s argument descriptors tell the executor how to encode each Value into the AlignedValue shape the on-chain VM expects. Callers never build AlignedValues by hand.

Structs§

IrExecutable
Off-chain executor backed by a parsed contract.mpir.

Enums§

LedgerFieldSchema
Parsed-once schema for one ledger field. Re-export of the IR’s typed Storage — kept as a public alias under the historical LedgerFieldSchema name so generated code referring to moonproof_runtime::ir_executable::LedgerFieldSchema keeps resolving without an emitter rebuild. Storage shape of a ledger field. Discriminated on a "storage" JSON tag — the wire format compactc emits is: