Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This module provides a depiction of the internal state we carry around to emulate the blockchain index. This is mostly useful in the Direct implementation of the MonadBlockChain.
Synopsis
- newtype UtxoState = UtxoState {}
- newtype UtxoPayloadSet = UtxoPayloadSet {}
- data UtxoPayload = UtxoPayload {}
- holdsInState :: Address -> UtxoState -> Value
Documentation
A description of who owns what in a blockchain. Owners are addresses and
they each own a UtxoPayloadSet
.
Instances
Semigroup UtxoState Source # | |
PrettyCooked UtxoState Source # | Pretty print a |
Defined in Cooked.Pretty.Cooked prettyCooked :: UtxoState -> DocCooked Source # prettyCookedOpt :: PrettyCookedOpts -> UtxoState -> DocCooked Source # | |
Eq UtxoState Source # | |
Show a => PrettyCooked (MockChainReturn a UtxoState) Source # | |
Defined in Cooked.Pretty.Cooked | |
Show a => PrettyCooked (a, UtxoState) Source # | |
Defined in Cooked.Pretty.Cooked prettyCooked :: (a, UtxoState) -> DocCooked Source # prettyCookedOpt :: PrettyCookedOpts -> (a, UtxoState) -> DocCooked Source # |
newtype UtxoPayloadSet Source #
Represents a set of payloads.
Instances
Monoid UtxoPayloadSet Source # | |
Defined in Cooked.MockChain.UtxoState mappend :: UtxoPayloadSet -> UtxoPayloadSet -> UtxoPayloadSet # mconcat :: [UtxoPayloadSet] -> UtxoPayloadSet # | |
Semigroup UtxoPayloadSet Source # | |
Defined in Cooked.MockChain.UtxoState (<>) :: UtxoPayloadSet -> UtxoPayloadSet -> UtxoPayloadSet # sconcat :: NonEmpty UtxoPayloadSet -> UtxoPayloadSet # stimes :: Integral b => b -> UtxoPayloadSet -> UtxoPayloadSet # | |
Show UtxoPayloadSet Source # | |
Defined in Cooked.MockChain.UtxoState showsPrec :: Int -> UtxoPayloadSet -> ShowS # show :: UtxoPayloadSet -> String # showList :: [UtxoPayloadSet] -> ShowS # | |
Eq UtxoPayloadSet Source # | |
Defined in Cooked.MockChain.UtxoState (==) :: UtxoPayloadSet -> UtxoPayloadSet -> Bool # (/=) :: UtxoPayloadSet -> UtxoPayloadSet -> Bool # |
data UtxoPayload Source #
A convenient wrapping of the interesting information of a UTxO.
Instances
Show UtxoPayload Source # | |
Defined in Cooked.MockChain.UtxoState showsPrec :: Int -> UtxoPayload -> ShowS # show :: UtxoPayload -> String # showList :: [UtxoPayload] -> ShowS # | |
Eq UtxoPayload Source # | |
Defined in Cooked.MockChain.UtxoState (==) :: UtxoPayload -> UtxoPayload -> Bool # (/=) :: UtxoPayload -> UtxoPayload -> Bool # |