@pwngh/economy-lab
    Preparing search index...

    Type Alias Leg

    One line of a posting: an account and the amount applied, debit-positive — a credit is stored negated whatever the account's normal side, so the sign is the ledger's, not the account holder's (a top-up's wallet leg is negative). balanceDelta (from /store-kit) converts a leg to the signed change in that account's balance.

    type Leg = {
        account: AccountRef;
        amount: Amount;
    }
    Index
    account: AccountRef
    amount: Amount