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 UtxoState Source #

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

Constructors

UtxoState 

newtype UtxoPayloadSet Source #

Represents a set of payloads.

Constructors

UtxoPayloadSet 

Fields

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.