| 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).
Synopsis
- type OTLedgerState k v = LedgerState (OTBlock k v)
- type OTLedgerTables k v = LedgerTables (OTBlock k v)
- data OTBlock k v
- emptyOTLedgerState ∷ ∀ k v (mk ∷ MapKind). (Ord k, Eq v, ZeroableMK mk) ⇒ LedgerState (OTBlock k v) mk
- OTLedgerState ∷ ∀ k v (mk ∷ MapKind). ValuesMK k v ⊸ OTLedgerTables k v mk ⊸ LedgerState (OTBlock k v) mk
Documentation
type OTLedgerState k v = LedgerState (OTBlock k v) Source #
type OTLedgerTables k v = LedgerTables (OTBlock k v) Source #
An empty type for blocks, which is only used to record the types k and
v.
Instances
emptyOTLedgerState ∷ ∀ k v (mk ∷ MapKind). (Ord k, Eq 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 #