✅nexus_interface::onchain_tool_result
Struct OnchainToolResult
Durable result layout for a canonical on-chain Tool invocation.
public struct OnchainToolResult has keyStruct OnchainToolResultInnerV1
Version one stored layout for [OnchainToolResult].
The stable [OnchainToolResult] cannot contain these fields because its published layout must remain unchanged while stored data evolves.
Struct InputCommitmentKey
Private-construction key for the result's canonical input-commitment dynamic field.
Struct InputCommitment
Private-construction value for the result's canonical input-commitment dynamic field.
Constants
Function new
Creates an owned empty result bound to the execution UID that created the worksheet.
Function finalize_and_share
Finalizes and shares the result after every required UID has participated.
The result satisfies its own requirement before completing [UIDRequirements]. This verifies that no requirements remain and binds them to this exact result without restricting which caller may complete the operation.
Function consume
Consumes and deletes the finalized result, returning the exact durable contents workflow needs.
Function id
The object ID of the result.
Function is_finalized
Whether the result has been finalized by its tool.
Function execution_id
The ID of the execution this result belongs to.
Function input_commitment
Returns the canonical resolved-input commitment stamped for this Tool invocation.
Last updated

