cooked-validators
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cooked.MockChain.MockChainState

Description

This module exposes the internal state in which our direct simulation is run, and functions to update and query it.

Synopsis

Documentation

data MockChainState Source #

The state used to run the simulation in Direct

Constructors

MockChainState 

Fields

mcstParamsL :: Lens' MockChainState Params Source #

A lens to set or get the parameters of the MockChainState

mcstLedgerStateL :: Lens' MockChainState EmulatedLedgerState Source #

A lens to set or get the ledger state of the MockChainState

mcstOutputsL :: Lens' MockChainState (Map TxOutRef (TxSkelOut, Bool)) Source #

A lens to set or get the outputs of the MockChainState

mcstConstitutionL :: Lens' MockChainState (Maybe (Versioned Script)) Source #

A lens to set or get the constitution script of the MockChainState