byron-spec-ledger-0.1.0.0: Executable specification of Cardano ledger
Safe HaskellNone
LanguageHaskell2010

Byron.Spec.Ledger.STS.UTXO

Description

UTXO transition system

Synopsis

Documentation

data UTXO Source #

Instances

Instances details
Data UTXO Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXO

Methods

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

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

toConstr :: UTXO -> Constr #

dataTypeOf :: UTXO -> DataType #

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

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

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

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

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

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

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

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

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

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

STS UTXO Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXO

Associated Types

type State UTXO Source #

type Signal UTXO Source #

type Environment UTXO Source #

type BaseM UTXO :: Type -> Type Source #

type PredicateFailure UTXO = (b :: Type) Source #

Embed UTXO UTXOW Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXOW

type PredicateFailure UTXO Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXO

type BaseM UTXO Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXO

type Environment UTXO Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXO

type Signal UTXO Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXO

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

Defined in Byron.Spec.Ledger.STS.UTXO

data UTxOEnv Source #

Constructors

UTxOEnv UTxO PParams 

Instances

Instances details
Eq UTxOEnv Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXO

Methods

(==) :: UTxOEnv -> UTxOEnv -> Bool #

(/=) :: UTxOEnv -> UTxOEnv -> Bool #

Show UTxOEnv Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXO

Generic UTxOEnv Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXO

Associated Types

type Rep UTxOEnv :: Type -> Type #

Methods

from :: UTxOEnv -> Rep UTxOEnv x #

to :: Rep UTxOEnv x -> UTxOEnv #

SeedGoblin UTxOEnv Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXO

Methods

seeder :: UTxOEnv -> TinkerM g () Source #

NoThunks UTxOEnv Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXO

type Rep UTxOEnv Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXO

type Rep UTxOEnv = D1 ('MetaData "UTxOEnv" "Byron.Spec.Ledger.STS.UTXO" "byron-spec-ledger-0.1.0.0-AWpYh6fpW7YLETcmEzrAvm" 'False) (C1 ('MetaCons "UTxOEnv" 'PrefixI 'True) (S1 ('MetaSel ('Just "utxo0") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 UTxO) :*: S1 ('MetaSel ('Just "pps") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PParams)))

data UTxOState Source #

Constructors

UTxOState UTxO Lovelace 

Instances

Instances details
Eq UTxOState Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXO

Show UTxOState Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXO

Generic UTxOState Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXO

Associated Types

type Rep UTxOState :: Type -> Type #

SeedGoblin UTxOState Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXO

Methods

seeder :: UTxOState -> TinkerM g () Source #

NoThunks UTxOState Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXO

type Rep UTxOState Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXO

type Rep UTxOState = D1 ('MetaData "UTxOState" "Byron.Spec.Ledger.STS.UTXO" "byron-spec-ledger-0.1.0.0-AWpYh6fpW7YLETcmEzrAvm" 'False) (C1 ('MetaCons "UTxOState" 'PrefixI 'True) (S1 ('MetaSel ('Just "utxo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 UTxO) :*: S1 ('MetaSel ('Just "reserves") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Lovelace)))

data UtxoPredicateFailure Source #

These PredicateFailures are all "throwable". The disjunction of the rules' preconditions is not True - the PredicateFailures represent False cases.

Instances

Instances details
Eq UtxoPredicateFailure Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXO

Data UtxoPredicateFailure Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXO

Methods

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

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

toConstr :: UtxoPredicateFailure -> Constr #

dataTypeOf :: UtxoPredicateFailure -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UtxoPredicateFailure Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXO

Generic UtxoPredicateFailure Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXO

Associated Types

type Rep UtxoPredicateFailure :: Type -> Type #

NoThunks UtxoPredicateFailure Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXO

type Rep UtxoPredicateFailure Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXO

type Rep UtxoPredicateFailure = D1 ('MetaData "UtxoPredicateFailure" "Byron.Spec.Ledger.STS.UTXO" "byron-spec-ledger-0.1.0.0-AWpYh6fpW7YLETcmEzrAvm" 'False) ((C1 ('MetaCons "EmptyTxInputs" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "EmptyTxOutputs" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FeeTooLow" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "IncreasedTotalBalance" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "InputsNotInUTxO" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NonPositiveOutputs" 'PrefixI 'False) (U1 :: Type -> Type))))

type family PredicateFailure a = (b :: Type) | b -> a Source #

Descriptive type for the possible failures which might cause a transition to fail.

As a convention, PredicateFailures which are "structural" (meaning that they are not "throwable" in practice, and are used to pass control from one transition rule to another) are prefixed with S_.

Structural PredicateFailures represent conditions between rules where the disjunction of all rules' preconditions is equal to True. That is, either one rule will throw a structural PredicateFailure and the other will succeed, or vice-versa.

Instances

Instances details
type PredicateFailure UPREG Source # 
Instance details

Defined in Byron.Spec.Ledger.Update

type PredicateFailure UPV Source # 
Instance details

Defined in Byron.Spec.Ledger.Update

type PredicateFailure UPPVV Source # 
Instance details

Defined in Byron.Spec.Ledger.Update

type PredicateFailure UPSVV Source # 
Instance details

Defined in Byron.Spec.Ledger.Update

type PredicateFailure UPIEC Source # 
Instance details

Defined in Byron.Spec.Ledger.Update

type PredicateFailure PVBUMP Source # 
Instance details

Defined in Byron.Spec.Ledger.Update

type PredicateFailure UPIEND Source # 
Instance details

Defined in Byron.Spec.Ledger.Update

type PredicateFailure UPIVOTES Source # 
Instance details

Defined in Byron.Spec.Ledger.Update

type PredicateFailure APPLYVOTES Source # 
Instance details

Defined in Byron.Spec.Ledger.Update

type PredicateFailure UPIVOTE Source # 
Instance details

Defined in Byron.Spec.Ledger.Update

type PredicateFailure UPIREG Source # 
Instance details

Defined in Byron.Spec.Ledger.Update

type PredicateFailure UPEND Source # 
Instance details

Defined in Byron.Spec.Ledger.Update

type PredicateFailure FADS Source # 
Instance details

Defined in Byron.Spec.Ledger.Update

type PredicateFailure UPVOTE Source # 
Instance details

Defined in Byron.Spec.Ledger.Update

type PredicateFailure ADDVOTE Source # 
Instance details

Defined in Byron.Spec.Ledger.Update

type PredicateFailure UTXO Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXO

type PredicateFailure DELEG Source # 
Instance details

Defined in Byron.Spec.Ledger.Delegation

type PredicateFailure ADELEGS Source # 
Instance details

Defined in Byron.Spec.Ledger.Delegation

type PredicateFailure SDELEGS Source # 
Instance details

Defined in Byron.Spec.Ledger.Delegation

type PredicateFailure ADELEG Source # 
Instance details

Defined in Byron.Spec.Ledger.Delegation

type PredicateFailure SDELEG Source # 
Instance details

Defined in Byron.Spec.Ledger.Delegation

type PredicateFailure UTXOW Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXOW

type PredicateFailure UTXOWS Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXOWS