Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

💳nexus_scheduler::execution_settlement

Function abort_expired_execution

Aborts an execution whose active walk has expired.

public fun abort_expired_execution(authority: &nexus_kernel::runtime_authority::RuntimeAuthority, dag: &nexus_interface::dag::DAG, execution: &mut nexus_workflow::execution::DAGExecution, clock: &sui::clock::Clock, ctx: &mut sui::tx_context::TxContext)

Function settle_committed_tool_result_for_walk_by_leader

Records gas and settles one committed Tool result as the responsible leader.

public fun settle_committed_tool_result_for_walk_by_leader(authority: &nexus_kernel::runtime_authority::RuntimeAuthority, dag: &nexus_interface::dag::DAG, execution: &mut nexus_workflow::execution::DAGExecution, tool_registry: &nexus_tool::tool_registry::ToolRegistry, leader_registry: &nexus_registry::leader::LeaderRegistry, priority_fee_vault: &nexus_registry::priority_fee_vault::PriorityFeeVault, leader_cap: &nexus_primitives::owner_cap::CloneableOwnerCap<nexus_registry::leader_cap::OverNetwork>, walk_index: u64, expected_vertex: nexus_interface::graph::RuntimeVertex, failed_onchain_tool_reason: std::option::Option<vector<u8>>, commit_tx_digest: vector<u8>, commit_gas_charge: u64, settlement_gas_charge: u64, clock: &sui::clock::Clock, ctx: &mut sui::tx_context::TxContext)

Function record_committed_tool_result_gas_charge_by_leader

Records one leader's committed Tool result gas charge.

Function refill_tap_execution_payment

Refills one execution payment from a coin.

Function refill_tap_execution_payment_from_agent_vault

Refills one execution payment from its Agent vault.

Function settle_committed_tool_result_for_walk

Settles one committed Tool result after its permissionless deadline.

Function cleanup_broken_onchain_tool_result

Removes an invalid Tool result after its cleanup deadline.

Function settle_onchain_tool_result_for_walk

Consumes and settles a permissionless onchain Tool result.

Function emit_payment_ready_walk_requests

Emits requests for active walks whose payment is ready.

Last updated