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.
Locked
MissingStateError
PendingBoard
Persisted representation of a pending board.
PendingOffboard
Persisted representation of a pending offboard.
RoundStateId
Identifier for a stored RoundState.
SerdeExitChildTx
Exit child transaction for persistence.
SerdeRoundState
Model for RoundState
SerdeVtxo
VTXO with state history for persistence.
SerdeVtxoKey
VTXO key mapping for persistence.
StoredExit
Persistable view of an ExitVtxo.
StoredRoundState
Unlocked