byron-spec-ledger-1.0.1.0: Executable specification of Cardano ledger
Safe HaskellSafe-Inferred
LanguageHaskell2010

Byron.Spec.Ledger.STS.UTXOW

Description

UTXO transition system with witnessing

Synopsis

Documentation

data UTXOW Source #

Instances

Instances details
Data UTXOW Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXOW

Methods

gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → UTXOW → c UTXOW Source #

gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c UTXOW Source #

toConstrUTXOWConstr Source #

dataTypeOfUTXOWDataType Source #

dataCast1Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c UTXOW) Source #

dataCast2Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c UTXOW) Source #

gmapT ∷ (∀ b. Data b ⇒ b → b) → UTXOWUTXOW Source #

gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → UTXOW → r Source #

gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → UTXOW → r Source #

gmapQ ∷ (∀ d. Data d ⇒ d → u) → UTXOW → [u] Source #

gmapQiInt → (∀ d. Data d ⇒ d → u) → UTXOW → u Source #

gmapMMonad m ⇒ (∀ d. Data d ⇒ d → m d) → UTXOW → m UTXOW Source #

gmapMpMonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UTXOW → m UTXOW Source #

gmapMoMonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UTXOW → m UTXOW Source #

STS UTXOW Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXOW

HasTrace UTXOW Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXOW

Associated Types

type BaseEnv UTXOW Source #

Embed UTXO UTXOW Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXOW

Embed UTXOW UTXOWS Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXOWS

type BaseM UTXOW Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXOW

type Environment UTXOW Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXOW

type Event UTXOW Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXOW

type PredicateFailure UTXOW Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXOW

type Signal UTXOW Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXOW

type Signal UTXOW = Tx
type State UTXOW Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXOW

type BaseEnv UTXOW Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXOW

type BaseEnv UTXOW = ()

data UtxowPredicateFailure Source #

These PredicateFailures are all throwable.

Instances

Instances details
Data UtxowPredicateFailure Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXOW

Methods

gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → UtxowPredicateFailure → c UtxowPredicateFailure Source #

gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c UtxowPredicateFailure Source #

toConstrUtxowPredicateFailureConstr Source #

dataTypeOfUtxowPredicateFailureDataType Source #

dataCast1Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c UtxowPredicateFailure) Source #

dataCast2Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c UtxowPredicateFailure) Source #

gmapT ∷ (∀ b. Data b ⇒ b → b) → UtxowPredicateFailureUtxowPredicateFailure Source #

gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → UtxowPredicateFailure → r Source #

gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → UtxowPredicateFailure → r Source #

gmapQ ∷ (∀ d. Data d ⇒ d → u) → UtxowPredicateFailure → [u] Source #

gmapQiInt → (∀ d. Data d ⇒ d → u) → UtxowPredicateFailure → u Source #

gmapMMonad m ⇒ (∀ d. Data d ⇒ d → m d) → UtxowPredicateFailure → m UtxowPredicateFailure Source #

gmapMpMonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UtxowPredicateFailure → m UtxowPredicateFailure Source #

gmapMoMonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UtxowPredicateFailure → m UtxowPredicateFailure Source #

Generic UtxowPredicateFailure Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXOW

Associated Types

type Rep UtxowPredicateFailureTypeType Source #

Show UtxowPredicateFailure Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXOW

Eq UtxowPredicateFailure Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXOW

NoThunks UtxowPredicateFailure Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXOW

type Rep UtxowPredicateFailure Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXOW

type Rep UtxowPredicateFailure = D1 ('MetaData "UtxowPredicateFailure" "Byron.Spec.Ledger.STS.UTXOW" "byron-spec-ledger-1.0.1.0-inplace" 'False) (C1 ('MetaCons "UtxoFailure" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (PredicateFailure UTXO))) :+: C1 ('MetaCons "InsufficientWitnesses" 'PrefixI 'False) (U1TypeType))

authTxinVKeyTxInUTxOBool Source #

Determine if a UTxO input is authorized by a given key.

witnessedTxUTxOBool Source #

Given a ledger state, determine if the UTxO witnesses in a given transaction are sufficient. TODO - should we only check for one witness for each unique input address?

traceAddrs ∷ [Addr] Source #

Constant list of addresses intended to be used in the generators.

coverUtxoFailure Source #

Arguments

∷ ∀ m a. (MonadTest m, HasCallStack, Data a) 
CoverPercentage

Minimum percentage that each failure must occur.

→ a

Structure containing the failures

→ m () 

Check that all the relevant predicate failures are covered.