| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Byron.Spec.Ledger.STS.UTXO
Description
UTXO transition system
Documentation
Instances
Instances
| Generic UTxOEnv Source # | |||||
Defined in Byron.Spec.Ledger.STS.UTXO Associated Types
| |||||
| Show UTxOEnv Source # | |||||
| Eq UTxOEnv Source # | |||||
| NoThunks UTxOEnv Source # | |||||
| type Rep UTxOEnv Source # | |||||
Defined in Byron.Spec.Ledger.STS.UTXO type Rep UTxOEnv = D1 ('MetaData "UTxOEnv" "Byron.Spec.Ledger.STS.UTXO" "byron-spec-ledger-1.1.0.1-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))) | |||||
Instances
| Generic UTxOState Source # | |||||
Defined in Byron.Spec.Ledger.STS.UTXO Associated Types
| |||||
| Show UTxOState Source # | |||||
| Eq UTxOState Source # | |||||
| NoThunks UTxOState Source # | |||||
| type Rep UTxOState Source # | |||||
Defined in Byron.Spec.Ledger.STS.UTXO type Rep UTxOState = D1 ('MetaData "UTxOState" "Byron.Spec.Ledger.STS.UTXO" "byron-spec-ledger-1.1.0.1-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.
Constructors
| EmptyTxInputs | |
| EmptyTxOutputs | |
| FeeTooLow | |
| IncreasedTotalBalance | |
| InputsNotInUTxO | |
| NonPositiveOutputs |
Instances
| Data UtxoPredicateFailure Source # | |||||
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 # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c UtxoPredicateFailure # toConstr ∷ UtxoPredicateFailure → Constr # dataTypeOf ∷ UtxoPredicateFailure → DataType # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c UtxoPredicateFailure) # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c UtxoPredicateFailure) # gmapT ∷ (∀ b. Data b ⇒ b → b) → UtxoPredicateFailure → UtxoPredicateFailure # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → UtxoPredicateFailure → r # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → UtxoPredicateFailure → r # gmapQ ∷ (∀ d. Data d ⇒ d → u) → UtxoPredicateFailure → [u] # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → UtxoPredicateFailure → u # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → UtxoPredicateFailure → m UtxoPredicateFailure # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UtxoPredicateFailure → m UtxoPredicateFailure # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UtxoPredicateFailure → m UtxoPredicateFailure # | |||||
| Generic UtxoPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.STS.UTXO Associated Types
Methods | |||||
| Show UtxoPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.STS.UTXO Methods showsPrec ∷ Int → UtxoPredicateFailure → ShowS # show ∷ UtxoPredicateFailure → String # showList ∷ [UtxoPredicateFailure] → ShowS # | |||||
| Eq UtxoPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.STS.UTXO Methods | |||||
| NoThunks UtxoPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.STS.UTXO | |||||
| type Rep UtxoPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.STS.UTXO type Rep UtxoPredicateFailure = D1 ('MetaData "UtxoPredicateFailure" "Byron.Spec.Ledger.STS.UTXO" "byron-spec-ledger-1.1.0.1-inplace" '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 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
| type PredicateFailure ADELEG Source # | |
Defined in Byron.Spec.Ledger.Delegation | |
| type PredicateFailure ADELEGS Source # | |
Defined in Byron.Spec.Ledger.Delegation | |
| type PredicateFailure DELEG Source # | |
Defined in Byron.Spec.Ledger.Delegation | |
| type PredicateFailure SDELEG Source # | |
Defined in Byron.Spec.Ledger.Delegation | |
| type PredicateFailure SDELEGS Source # | |
Defined in Byron.Spec.Ledger.Delegation | |
| type PredicateFailure UTXO Source # | |
Defined in Byron.Spec.Ledger.STS.UTXO | |
| type PredicateFailure UTXOW Source # | |
Defined in Byron.Spec.Ledger.STS.UTXOW | |
| type PredicateFailure UTXOWS Source # | |
Defined in Byron.Spec.Ledger.STS.UTXOWS | |
| type PredicateFailure ADDVOTE Source # | |
Defined in Byron.Spec.Ledger.Update | |
| type PredicateFailure APPLYVOTES Source # | |
Defined in Byron.Spec.Ledger.Update | |
| type PredicateFailure FADS Source # | |
Defined in Byron.Spec.Ledger.Update | |
| type PredicateFailure PVBUMP Source # | |
Defined in Byron.Spec.Ledger.Update | |
| type PredicateFailure UPEND Source # | |
Defined in Byron.Spec.Ledger.Update | |
| type PredicateFailure UPIEC Source # | |
Defined in Byron.Spec.Ledger.Update | |
| type PredicateFailure UPIEND Source # | |
Defined in Byron.Spec.Ledger.Update | |
| type PredicateFailure UPIREG Source # | |
Defined in Byron.Spec.Ledger.Update | |
| type PredicateFailure UPIVOTE Source # | |
Defined in Byron.Spec.Ledger.Update | |
| type PredicateFailure UPIVOTES Source # | |
Defined in Byron.Spec.Ledger.Update | |
| type PredicateFailure UPPVV Source # | |
Defined in Byron.Spec.Ledger.Update | |
| type PredicateFailure UPREG Source # | |
Defined in Byron.Spec.Ledger.Update | |
| type PredicateFailure UPSVV Source # | |
Defined in Byron.Spec.Ledger.Update | |
| type PredicateFailure UPV Source # | |
Defined in Byron.Spec.Ledger.Update | |
| type PredicateFailure UPVOTE Source # | |
Defined in Byron.Spec.Ledger.Update | |
| type PredicateFailure (STUB e st si f m) | |
Defined in Control.State.Transition.Extended | |