fedimint_client

Module oplog

Source
Expand description

Operation log subsystem of the client

Structs§

JsonStringed
Json value using string representation as db encoding.
OperationLog
OperationLogEntry
Represents an operation triggered by a user, typically related to sending or receiving money.
OperationLogEntryV0
V0 version of operation log entry for migration purposes
OperationOutcome 🔒
Represents the outcome of an operation, combining both the outcome value and its timestamp

Enums§

UpdateStreamOrOutcome
Either a stream of operation updates if the operation hasn’t finished yet or its outcome otherwise.

Functions§

caching_operation_update_stream
Wraps an operation update stream such that the last update before it closes is tried to be written to the operation log entry as its outcome.
rev_epoch_ranges 🔒
Returns an iterator over the ranges of operation log keys, starting from the most recent range and going backwards in time till slightly later than last_entry.