Expand description
Persistent append-only wallet ledger — tracks ILP micropayment dispatches and
locally-signed transaction hashes so that WalletStatus can report real values
instead of hardcoded mocks.
Storage format: NDJSON in <storage_path>/wallet_ledger.ndjson.
Each line is a LedgerEntry serialized as JSON.
Structs§
- Ledger
Entry - A single entry in the wallet ledger.
Enums§
Functions§
- append_
entry - Append a ledger entry to the NDJSON file. Creates the file if it doesn’t exist.
- epoch_
days_ to_ date_ pub - Public accessor for epoch-to-date conversion (used by api.rs timestamp formatting).
- ledger_
path - Returns the path to the wallet ledger file.
- new_
entry - Create a new LedgerEntry with the current timestamp.
- read_
entries - Read all ledger entries. Returns an empty vec if the file doesn’t exist.
- total_
ilp_ sent_ micro_ cents - Sum total ILP micro-cents dispatched with status “sent”.