Expand description
Data types describing the result of running a contract’s constructor or a provable circuit off-chain.
There is one off-chain executor for every Compact contract:
[moonproof_runtime_ir_driver::IrExecutable<W>], which interprets a
contract.mpir (emitted by the patched compactc fork) at runtime.
That executor’s inherent initialize and execute_circuit methods
return the data types defined here, which the deploy / call builders
then assemble into ledger-typed transactions.
Private state and constructor / circuit arguments are
serde_json::Value. The IR is dynamic — its argument descriptors
tell the executor how to encode each Value into the corresponding
AlignedValue for the on-chain VM. There is no per-contract typed
PrivateState parameter and no per-contract typed ConstructorArgs
parameter; the IR’s own descriptors are the typing.
Structs§
- Circuit
Call Context - Call-site context provided to the executor’s
execute_circuit. - Constructor
Context - Constructor context — the subset of
CircuitCallContextthat’s meaningful before the contract has been deployed (no address yet, no on-chain ledger parameters to read). - Execute
Circuit Result - The result of running a circuit off-chain — everything needed to
assemble a
ContractDeploy/ContractCallPrototypedownstream. - Initialize
Result - The result of running a contract’s constructor.