cooked-validators-4.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

Documentation

newtype UtxoState Source #

A description of who owns what in a blockchain. Owners are addresses and they each own a UtxoPayloadSet.

Constructors

UtxoState 

Instances

Instances details
Semigroup UtxoState Source # 
Instance details

Defined in Cooked.MockChain.UtxoState

PrettyCooked UtxoState Source #

Pretty print a UtxoState. Print the known wallets first, then unknown pubkeys, then scripts.

Instance details

Defined in Cooked.Pretty.Cooked

Eq UtxoState Source # 
Instance details

Defined in Cooked.MockChain.UtxoState

Show a => PrettyCooked (MockChainReturn a UtxoState) Source # 
Instance details

Defined in Cooked.Pretty.Cooked

Show a => PrettyCooked (a, UtxoState) Source # 
Instance details

Defined in Cooked.Pretty.Cooked

data UtxoPayload Source #

A convenient wrapping of the interesting information of a UTxO.

Instances

Instances details
Show UtxoPayload Source # 
Instance details

Defined in Cooked.MockChain.UtxoState

Eq UtxoPayload Source # 
Instance details

Defined in Cooked.MockChain.UtxoState

holdsInState :: Address -> UtxoState -> Value Source #

Total value accessible to what's pointed by the address.