Module models

Source
Expand description

Persistence-focused data models.

This module defines serializable types that mirror core in-memory structures but are tailored for durable storage and retrieval via a BarkPersister implementation.

Intent

  • Keep storage concerns decoupled from runtime types used by protocol logic.
  • Provide stable, serde-friendly representations for database backends.
  • Enable forward/backward compatibility when schema migrations occur.

Structsยง

LightningReceive
Persisted representation of an incoming Lightning payment.
LightningSend
Persisted representation of a lightning send.
PendingBoard
Persisted representation of a pending board.
SerdeRoundState
Model for RoundState
SerdeUnconfirmedRound
Model for UnconfirmedRound
StoredExit
Persistable view of an ExitVtxo.