Vixen
02b45cc4
csharp
public record class LedgerEntry

One row of the journal. Append-only, and never updated.

Read the guide page for this →

Fields and properties (9)

  • public long Sequence

    Its position. Monotonic across the whole ledger.

  • public IdempotencyKey Key

    The operation that wrote it.

  • public LedgerAccount Account

    Whose holding changed.

  • public AssetId Asset

    Of what.

  • public long Delta

    By how much.

  • public long Balance

    What that account held of that asset afterwards.

  • public DateTimeOffset At

    The acting realm's clock when it decided.

  • public DateTimeOffset Recorded

    The store's clock when it landed. Not the same, and both matter.

  • public string Detail

    The intent's free text.

Methods (2)

  • public LedgerEntry(long Sequence, IdempotencyKey Key, LedgerAccount Account, AssetId Asset, long Delta, long Balance, DateTimeOffset At, DateTimeOffset Recorded, string Detail)

    One row of the journal. Append-only, and never updated.

  • public override string ToString()

    Returns a string that represents the current object.

Used by (6)

  • ConservationTestsVixen.Live.Persistence.Tests
  • ILedgerVixen.Live.Persistence
  • LedgerTestsVixen.Live.Persistence.Tests
  • MemoryPersistenceVixen.Live.Persistence
  • SqlPersistenceVixen.Live.Persistence
  • TransferFleetVixen.Live.Realm.Tests