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

💲nexus_tool::fixed_price

Struct Policy

Private construction witness for this policy.

public struct Policy has drop
Fields

Function get_invocation

Creates an Invocation for the price snapshotted by its execution.

public fun get_invocation(cashier: &nexus_tool::tool_cashier::ToolCashier, request: nexus_interface::payment::InvocationRequest, ctx: &mut sui::tx_context::TxContext): nexus_tool::invocation::Invocation

Function collect

Collects finalized fixed price Invocations under Tool owner authority.

public fun collect(cashier: &mut nexus_tool::tool_cashier::ToolCashier, owner_cap: &nexus_primitives::owner_cap::CloneableOwnerCap<nexus_tool::tool_cashier::OverToolCashier>, invocations: vector<sui::transfer::Receiving<nexus_tool::invocation::Invocation>>): sui::balance::Balance<sui::sui::SUI>

Last updated