byron-spec-ledger-1.1.0.1: Executable specification of Cardano ledger
Safe HaskellNone
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 #

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

toConstrUTXOWConstr #

dataTypeOfUTXOWDataType #

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

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

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

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

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

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

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

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

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

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

STS UTXOW Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXOW

Associated Types

type State UTXOW 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXOW

type Signal UTXOW 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXOW

type Signal UTXOW = Tx
type Environment UTXOW 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXOW

type BaseM UTXOW 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXOW

type Event UTXOW 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXOW

type PredicateFailure UTXOW 
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 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXOW

type BaseEnv UTXOW = ()
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 #

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

toConstrUtxowPredicateFailureConstr #

dataTypeOfUtxowPredicateFailureDataType #

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

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

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

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

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

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

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

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

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

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

Generic UtxowPredicateFailure Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXOW

Associated Types

type Rep UtxowPredicateFailure 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXOW

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

∷ (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.