Safe Haskell | None |
---|---|
Language | Haskell2010 |
Test.Util.LedgerStateOnlyTables
Description
A simple ledger state that only holds ledger tables (and values).
This is useful when we only need a ledger state and ledger tables, but not
necessarily blocks with payloads (such as defined in Test.Util.TestBlock
).
Documentation
type OTLedgerState k v = LedgerState (OTBlock k v) Source #
type OTLedgerTables k v = LedgerTables (OTLedgerState k v) Source #
emptyOTLedgerState ∷ ∀ k v (mk ∷ MapKind). (Ord k, Eq v, MemPack k, MemPack v, ZeroableMK mk) ⇒ LedgerState (OTBlock k v) mk Source #
OTLedgerState ∷ ∀ k v (mk ∷ MapKind). ValuesMK k v ⊸ OTLedgerTables k v mk ⊸ LedgerState (OTBlock k v) mk Source #