ReferenceRust referencesigil-core
sigil-core · system_contracts
Source declarations, signatures and documentation for system_contracts.
Source: sigil/node/sigil-core/src/system_contracts.rs. SHA-256: 53d3a878cc747ec7963c4546e228629644a0c73068bdfcbec8211f034222fb4c.
This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.
system_contracts::SYSTEM_CONTRACT_REGISTRY_JSON
pub const SYSTEM_CONTRACT_REGISTRY_JSON: &str;Source line: 5.
system_contracts::SystemContractRegistry
#[derive(Debug, Clone, Deserialize)]
pub struct SystemContractRegistry {
pub version: u32,
#[serde(rename = "defaultController")]
pub default_controller: String,
pub contracts: Vec<SystemContract>
}Source line: 9.
system_contracts::SystemContract
#[derive(Debug, Clone, Deserialize)]
pub struct SystemContract {
pub id: String,
pub name: String,
pub version: String,
#[serde(rename = "contractDid")]
pub contract_did: String,
#[serde(rename = "controllerDid")]
pub controller_did: String,
pub runtime: String,
pub deployment: String,
pub wasm: SystemContractWasm,
pub abi: SystemContractAbi,
#[serde(rename = "nativeKernel")]
pub native_kernel: Vec<String>,
#[serde(rename = "ricardianClauses")]
pub ricardian_clauses: Vec<SystemContractRicardianClause>
}Source line: 17.
system_contracts::SystemContractWasm
#[derive(Debug, Clone, Deserialize)]
pub struct SystemContractWasm {
pub source: String,
#[serde(rename = "codeHash")]
pub code_hash: String
}Source line: 36.
system_contracts::SystemContractAbi
#[derive(Debug, Clone, Deserialize)]
pub struct SystemContractAbi {
pub actions: Vec<SystemContractAction>
}Source line: 43.
system_contracts::SystemContractAction
#[derive(Debug, Clone, Deserialize)]
pub struct SystemContractAction {
pub name: String,
pub mutability: String,
pub args: Vec<String>
}Source line: 48.
system_contracts::SystemContractRicardianClause
#[derive(Debug, Clone, Deserialize)]
pub struct SystemContractRicardianClause {
pub title: String,
pub text: String
}Source line: 55.
system_contracts::system_contract_registry
pub fn system_contract_registry() -> Result<SystemContractRegistry, serde_json::Error>;Source line: 60.