Skip to main content

Module accounting

Module accounting 

Source
Expand description

Host-owned durable call settlement and aggregate budget contracts. Legacy append-only rows are history, never inferred opening balances.

Structs§

AccountingCall
AccountingDelegation
Immutable link from the existing authenticated contract digest to the source reservation. Its presence in the destination store proves shared accounting authority; network/process identity alone does not.
AccountingScope
A bounded aggregate; call history is stored separately and never rewritten here.
CallAdmission
CallIdentity
CallUsage
Cumulative provider counter. Only a priced terminal counter with nonempty host/provider evidence releases a reservation. The trusted host binds that evidence to identity; cancellation, elapsed time and stream errors are not terminal usage evidence. The same terminal payload may be replayed after a lost settlement response, while a conflicting payload is rejected.
RemoteGrantState
Destination accounting seals the first admission deadline. Resubmitting the same peer contract never refreshes time, attempt counts, or financial scopes.
ScopeBinding
ScopeIdentity
Exact verified principal key is supplied by the host, never model arguments.
ScopeLimits
ScopeUpdate
Administrative CAS. Opening balances require external reconciliation evidence.

Enums§

AccountingError
AccountingState
RemoteGrantActivity
Authorized attempts are cumulative even when their execution later fails.