byron-spec-ledger-0.1.0.0: 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 :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UTXOW -> c UTXOW #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UTXOW #

toConstr :: UTXOW -> Constr #

dataTypeOf :: UTXOW -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c UTXOW) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UTXOW) #

gmapT :: (forall b. Data b => b -> b) -> UTXOW -> UTXOW #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UTXOW -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UTXOW -> r #

gmapQ :: (forall d. Data d => d -> u) -> UTXOW -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UTXOW -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UTXOW -> m UTXOW #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UTXOW -> m UTXOW #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UTXOW -> m UTXOW #

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

Defined in Byron.Spec.Ledger.STS.UTXOW

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 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
Eq UtxowPredicateFailure Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXOW

Data UtxowPredicateFailure Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXOW

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UtxowPredicateFailure -> c UtxowPredicateFailure #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UtxowPredicateFailure #

toConstr :: UtxowPredicateFailure -> Constr #

dataTypeOf :: UtxowPredicateFailure -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c UtxowPredicateFailure) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UtxowPredicateFailure) #

gmapT :: (forall b. Data b => b -> b) -> UtxowPredicateFailure -> UtxowPredicateFailure #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UtxowPredicateFailure -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UtxowPredicateFailure -> r #

gmapQ :: (forall d. Data d => d -> u) -> UtxowPredicateFailure -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UtxowPredicateFailure -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UtxowPredicateFailure -> m UtxowPredicateFailure #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UtxowPredicateFailure -> m UtxowPredicateFailure #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UtxowPredicateFailure -> m UtxowPredicateFailure #

Show UtxowPredicateFailure Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXOW

Generic UtxowPredicateFailure Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXOW

Associated Types

type Rep UtxowPredicateFailure :: Type -> Type #

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-0.1.0.0-AWpYh6fpW7YLETcmEzrAvm" 'False) (C1 ('MetaCons "UtxoFailure" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (PredicateFailure UTXO))) :+: C1 ('MetaCons "InsufficientWitnesses" 'PrefixI 'False) (U1 :: Type -> Type))

authTxin :: VKey -> TxIn -> UTxO -> Bool Source #

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

witnessed :: Tx -> UTxO -> Bool 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

:: forall 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.