Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Cooked.MockChain.UtxoState
Description
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
- data SkelContext = SkelContext {}
Documentation
A description of who owns what in a blockchain. Owners are addresses and
they each own a UtxoPayloadSet
.
Constructors
UtxoState | |
Fields |
Instances
Semigroup UtxoState Source # | |
PrettyCooked UtxoState Source # | Pretty print a |
Defined in Cooked.Pretty.Cooked Methods prettyCooked :: UtxoState -> DocCooked Source # prettyCookedOpt :: PrettyCookedOpts -> UtxoState -> DocCooked Source # | |
Eq UtxoState Source # | |
Show a => PrettyCooked (MockChainReturn a UtxoState) Source # | |
Defined in Cooked.Pretty.Cooked Methods prettyCooked :: MockChainReturn a UtxoState -> DocCooked Source # prettyCookedOpt :: PrettyCookedOpts -> MockChainReturn a UtxoState -> DocCooked Source # | |
Show a => PrettyCooked (a, UtxoState) Source # | |
Defined in Cooked.Pretty.Cooked Methods prettyCooked :: (a, UtxoState) -> DocCooked Source # prettyCookedOpt :: PrettyCookedOpts -> (a, UtxoState) -> DocCooked Source # |
newtype UtxoPayloadSet Source #
Represents a set of payloads.
Constructors
UtxoPayloadSet | |
Fields |
Instances
Monoid UtxoPayloadSet Source # | |
Defined in Cooked.MockChain.UtxoState Methods mappend :: UtxoPayloadSet -> UtxoPayloadSet -> UtxoPayloadSet # mconcat :: [UtxoPayloadSet] -> UtxoPayloadSet # | |
Semigroup UtxoPayloadSet Source # | |
Defined in Cooked.MockChain.UtxoState Methods (<>) :: UtxoPayloadSet -> UtxoPayloadSet -> UtxoPayloadSet # sconcat :: NonEmpty UtxoPayloadSet -> UtxoPayloadSet # stimes :: Integral b => b -> UtxoPayloadSet -> UtxoPayloadSet # | |
Show UtxoPayloadSet Source # | |
Defined in Cooked.MockChain.UtxoState Methods showsPrec :: Int -> UtxoPayloadSet -> ShowS # show :: UtxoPayloadSet -> String # showList :: [UtxoPayloadSet] -> ShowS # | |
Eq UtxoPayloadSet Source # | |
Defined in Cooked.MockChain.UtxoState Methods (==) :: UtxoPayloadSet -> UtxoPayloadSet -> Bool # (/=) :: UtxoPayloadSet -> UtxoPayloadSet -> Bool # |
data UtxoPayload Source #
A convenient wrapping of the interesting information of a UTxO.
Constructors
UtxoPayload | |
Instances
Show UtxoPayload Source # | |
Defined in Cooked.MockChain.UtxoState Methods showsPrec :: Int -> UtxoPayload -> ShowS # show :: UtxoPayload -> String # showList :: [UtxoPayload] -> ShowS # | |
Eq UtxoPayload Source # | |
Defined in Cooked.MockChain.UtxoState |
holdsInState :: Address -> UtxoState -> Value Source #
Total value accessible to what's pointed by the address.
data SkelContext Source #
The missing information on a TxSkel
that can only be resolved by querying
the state of the blockchain.
Constructors
SkelContext | |