byron-spec-ledger-1.0.1.0: Executable specification of Cardano ledger
Safe HaskellSafe-Inferred
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 ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → UTXO → c UTXO Source #

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

toConstrUTXOConstr Source #

dataTypeOfUTXODataType Source #

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

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

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

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

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

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

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

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

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

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

STS UTXO Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXO

Embed UTXO UTXOW Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXOW

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 Event UTXO Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXO

type Event UTXO = Void
type PredicateFailure 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
Generic UTxOEnv Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXO

Associated Types

type Rep UTxOEnvTypeType Source #

Methods

fromUTxOEnvRep UTxOEnv x Source #

toRep UTxOEnv x → UTxOEnv Source #

Show UTxOEnv Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXO

Eq UTxOEnv Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXO

Methods

(==)UTxOEnvUTxOEnvBool Source #

(/=)UTxOEnvUTxOEnvBool 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-1.0.1.0-inplace" '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
Generic UTxOState Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXO

Associated Types

type Rep UTxOStateTypeType Source #

Show UTxOState Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXO

Eq UTxOState Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXO

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-1.0.1.0-inplace" '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
Data UtxoPredicateFailure Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXO

Methods

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

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

toConstrUtxoPredicateFailureConstr Source #

dataTypeOfUtxoPredicateFailureDataType Source #

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

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

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

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

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

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

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

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

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

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

Generic UtxoPredicateFailure Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXO

Associated Types

type Rep UtxoPredicateFailureTypeType Source #

Show UtxoPredicateFailure Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXO

Eq UtxoPredicateFailure Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXO

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-1.0.1.0-inplace" 'False) ((C1 ('MetaCons "EmptyTxInputs" 'PrefixI 'False) (U1TypeType) :+: (C1 ('MetaCons "EmptyTxOutputs" 'PrefixI 'False) (U1TypeType) :+: C1 ('MetaCons "FeeTooLow" 'PrefixI 'False) (U1TypeType))) :+: (C1 ('MetaCons "IncreasedTotalBalance" 'PrefixI 'False) (U1TypeType) :+: (C1 ('MetaCons "InputsNotInUTxO" 'PrefixI 'False) (U1TypeType) :+: C1 ('MetaCons "NonPositiveOutputs" 'PrefixI 'False) (U1TypeType))))

type family PredicateFailure 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 ADELEG Source # 
Instance details

Defined in Byron.Spec.Ledger.Delegation

type PredicateFailure ADELEGS Source # 
Instance details

Defined in Byron.Spec.Ledger.Delegation

type PredicateFailure DELEG Source # 
Instance details

Defined in Byron.Spec.Ledger.Delegation

type PredicateFailure SDELEG Source # 
Instance details

Defined in Byron.Spec.Ledger.Delegation

type PredicateFailure SDELEGS Source # 
Instance details

Defined in Byron.Spec.Ledger.Delegation

type PredicateFailure UTXO Source # 
Instance details

Defined in Byron.Spec.Ledger.STS.UTXO

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

type PredicateFailure ADDVOTE Source # 
Instance details

Defined in Byron.Spec.Ledger.Update

type PredicateFailure APPLYVOTES Source # 
Instance details

Defined in Byron.Spec.Ledger.Update

type PredicateFailure FADS Source # 
Instance details

Defined in Byron.Spec.Ledger.Update

type PredicateFailure PVBUMP Source # 
Instance details

Defined in Byron.Spec.Ledger.Update

type PredicateFailure UPEND Source # 
Instance details

Defined in Byron.Spec.Ledger.Update

type PredicateFailure UPIEC Source # 
Instance details

Defined in Byron.Spec.Ledger.Update

type PredicateFailure UPIEND Source # 
Instance details

Defined in Byron.Spec.Ledger.Update

type PredicateFailure UPIREG Source # 
Instance details

Defined in Byron.Spec.Ledger.Update

type PredicateFailure UPIVOTE Source # 
Instance details

Defined in Byron.Spec.Ledger.Update

type PredicateFailure UPIVOTES Source # 
Instance details

Defined in Byron.Spec.Ledger.Update

type PredicateFailure UPPVV Source # 
Instance details

Defined in Byron.Spec.Ledger.Update

type PredicateFailure UPREG Source # 
Instance details

Defined in Byron.Spec.Ledger.Update

type PredicateFailure UPSVV Source # 
Instance details

Defined in Byron.Spec.Ledger.Update

type PredicateFailure UPV Source # 
Instance details

Defined in Byron.Spec.Ledger.Update

type PredicateFailure UPVOTE Source # 
Instance details

Defined in Byron.Spec.Ledger.Update

type PredicateFailure (STUB e st si f m) 
Instance details

Defined in Control.State.Transition.Extended

type PredicateFailure (STUB e st si f m) = f