pub struct MoonIr {Show 19 fields
pub schema_version: u32,
pub compiler_version: String,
pub language_version: String,
pub runtime_version: String,
pub contracts: Vec<TypeDescriptor>,
pub ledger: Vec<LedgerField>,
pub witnesses: Vec<Witness>,
pub natives: Vec<Native>,
pub circuits: Vec<CircuitBody>,
pub descriptors: IndexMap<String, TypeDescriptor>,
pub constructor: Constructor,
pub external_contracts: Vec<RuntimeValue>,
pub pure_circuits: Vec<RuntimeValue>,
pub frontend: Option<FrontendMeta>,
pub debug_info: Option<DebugInfo>,
pub capabilities: Option<CapabilitiesMeta>,
pub workflows: Vec<WorkflowMeta>,
pub privacy: Option<PrivacyMeta>,
pub type_roles: IndexMap<String, SemanticTypeRole>,
}Fields§
§schema_version: u32§compiler_version: String§language_version: String§runtime_version: String§contracts: Vec<TypeDescriptor>Subcontract types the contract declares. A contract passed only
as a circuit argument never reaches a ledger field, so this is
the only record of its circuit signatures. Each entry is a
TypeDescriptor::Contract.
ledger: Vec<LedgerField>§witnesses: Vec<Witness>§natives: Vec<Native>§circuits: Vec<CircuitBody>§descriptors: IndexMap<String, TypeDescriptor>§constructor: Constructor§external_contracts: Vec<RuntimeValue>§pure_circuits: Vec<RuntimeValue>§frontend: Option<FrontendMeta>Source frontend identification (schema v3, optional).
debug_info: Option<DebugInfo>Source file & span mapping for diagnostics and debugging (schema v3, optional).
capabilities: Option<CapabilitiesMeta>Governance and capability-model declarations (schema v3, optional).
workflows: Vec<WorkflowMeta>Multi-step workflow declarations such as Pact defpact (schema v3, optional).
privacy: Option<PrivacyMeta>Static privacy classification and circuit resource bounds (schema v3, optional).
type_roles: IndexMap<String, SemanticTypeRole>Semantic roles attached to descriptor keys for frontend-rich types lowered onto core IR primitives (schema v3, optional).
Implementations§
Source§impl MoonIr
impl MoonIr
Sourcepub fn new_v3(
compiler_version: impl Into<String>,
language_version: impl Into<String>,
runtime_version: impl Into<String>,
) -> Self
pub fn new_v3( compiler_version: impl Into<String>, language_version: impl Into<String>, runtime_version: impl Into<String>, ) -> Self
Construct an empty schema-v3 MoonIr with default constructor
and no optional metadata populated.