tarlatan
    Preparing search index...

    Interface LedgerTx

    What a write transaction can do: read every row, and append rows.

    interface LedgerTx {
        append: (
            rows: readonly (
                | Grant
                | Charged
                | GrantCanceled
                | ReadingRow
                | PeriodOpened
                | Reserve
                | Allocation
                | SpendDown
                | SpendDownCanceled
                | Retirement
                | RateUpdated
            )[],
        ) => Effect<
            readonly (number & Brand<"LedgerSeq">)[],
            LedgerError | GrantSettled,
        >;
        read: Effect<LedgerSnapshot, LedgerError>;
    }
    Index
    append: (
        rows: readonly (
            | Grant
            | Charged
            | GrantCanceled
            | ReadingRow
            | PeriodOpened
            | Reserve
            | Allocation
            | SpendDown
            | SpendDownCanceled
            | Retirement
            | RateUpdated
        )[],
    ) => Effect<
        readonly (number & Brand<"LedgerSeq">)[],
        LedgerError | GrantSettled,
    >

    Appends rows and returns the seqs written. A second charge or cancel of a grant is skipped (no seq); a charge of a canceled grant or a cancel of a charged one fails with GrantSettled.

    Every stored row, including those this transaction appended.