InMemorySpendLedger

A process-lifetime SpendLedger, the default when a host wires a policy without persistence. Fine for tests and demos; a real wallet must persist, or every restart resets the daily cap.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open suspend override fun append(receipt: SpendReceipt)

Records one executed spend. The session calls this after execution succeeds, never before.

Link copied to clipboard
open suspend override fun receiptsSince(peerId: String, since: Instant): List<SpendReceipt>

Receipts for peerId with at >= since, oldest first.