Contract 6abac53e2306b09a13f6eb60649953305159ba293f8f97a2ab0720c6a26ad9af

← Back to Index 📥 Download WASM

Meta

cliver 27.0.0#5a7c5fe76530bf4248477ac812fc757146b98cc4
rssdkver 22.0.11#34f7f53ae31e0fd02aab436a9872e79fa671ca02
rsver 1.96.0

Instances

  • CCP5KFIWLUNPV2G7ATBKFMIZF54JYRC343P5JCTARC4PRTGM23IU6ET4

Interface

Fetch a node's build-status record.

fn get_node(
    env: soroban_sdk::Env,
    doc_id: soroban_sdk::String,
    node_id: soroban_sdk::String,
) -> Result

Fetch a document's anchored state.

fn get_document(
    env: soroban_sdk::Env,
    doc_id: soroban_sdk::String,
) -> Result

Record or update the build status of a mindmap node. tool is the builder used (e.g. "n8n"); artifact_ref points to the built artifact (workflow ID, URL, or hash). Owner-only.

fn set_node_status(
    env: soroban_sdk::Env,
    doc_id: soroban_sdk::String,
    node_id: soroban_sdk::String,
    status: NodeStatus,
    tool: soroban_sdk::String,
    artifact_ref: soroban_sdk::String,
) -> Result<(), soroban_sdk::Error>

Anchor a new content hash after a semantic change in the source doc. Only the document owner may call. Returns the new version number.

fn update_document(
    env: soroban_sdk::Env,
    doc_id: soroban_sdk::String,
    new_hash: soroban_sdk::BytesN<32>,
) -> Result

Anchor a new document. Fails if doc_id is already registered. Returns the initial version (always 1).

fn register_document(
    env: soroban_sdk::Env,
    owner: soroban_sdk::Address,
    doc_id: soroban_sdk::String,
    content_hash: soroban_sdk::BytesN<32>,
) -> Result

Imports

WebAssembly Text (WAT) ▶