cooked-validators
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cooked.MockChain.UtxoState

Description

This module provides a depiction of the state we return when running a MockChain.

Synopsis

Documentation

newtype UtxoPayloadSet Source #

Represents a set of payloads.

Constructors

UtxoPayloadSet 

Fields

Instances

Instances details
Monoid UtxoPayloadSet Source # 
Instance details

Defined in Cooked.MockChain.UtxoState

Semigroup UtxoPayloadSet Source # 
Instance details

Defined in Cooked.MockChain.UtxoState

Show UtxoPayloadSet Source # 
Instance details

Defined in Cooked.MockChain.UtxoState

PrettyCookedList UtxoPayloadSet Source #

Pretty prints the state of an address, that is the list of UTxOs (including value and datum), grouped

Instance details

Defined in Cooked.Pretty.MockChain

Eq UtxoPayloadSet Source # 
Instance details

Defined in Cooked.MockChain.UtxoState

PrettyCooked (Map Address UtxoPayloadSet) Source #

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

Instance details

Defined in Cooked.Pretty.MockChain

data UtxoPayload Source #

A convenient wrapping of the interesting information of a UTxO.

Constructors

UtxoPayload 

Fields

Instances

Instances details
Show UtxoPayload Source # 
Instance details

Defined in Cooked.MockChain.UtxoState

Eq UtxoPayload Source # 
Instance details

Defined in Cooked.MockChain.UtxoState

holdsInState :: ToAddress a => a -> UtxoState -> Value Source #

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