| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Byron.Spec.Ledger.Update
Contents
Synopsis
- (==>) ∷ Bool → Bool → Bool
- (<=?) ∷ Ord a ⇒ a → a → Maybe (a, Threshold a)
- data Metadata = Metadata
- data Vote = Vote {}
- delegationMap ∷ UPIEnv → Bimap VKeyGenesis VKey
- data PParams = PParams {}
- newtype FactorA = FactorA Int
- newtype FactorB = FactorB Int
- newtype BkSgnCntT = BkSgnCntT Double
- newtype UpAdptThd = UpAdptThd Double
- newtype UpId = UpId Int
- data ProtVer = ProtVer {}
- newtype ApName = ApName String
- newtype ApVer = ApVer Natural
- data SwVer = SwVer {}
- type UpSD = (ProtVer, PParams, SwVer, Set STag, Metadata)
- type STag = String
- data UProp = UProp {}
- upSigData ∷ Lens' UProp UpSD
- upPV ∷ Lens' UProp ProtVer
- upParams ∷ Lens' UProp PParams
- upSwVer ∷ Lens' UProp SwVer
- upSTags ∷ Lens' UProp (Set STag)
- upMdt ∷ Lens' UProp Metadata
- getUpSigData ∷ UProp → UpSD
- mkUProp ∷ UpId → VKey → ProtVer → PParams → SwVer → Set STag → Metadata → UProp
- inMap ∷ (Ord key, Eq v) ⇒ key → v → Map key v → Bool
- invertMap ∷ (Ord k, Ord v) ⇒ Map k v → Map v (Set k)
- invertBijection ∷ Ord v ⇒ Map k v → Map v k
- pvCanFollow ∷ ProtVer → ProtVer → Bool
- checkUpdateConstraints ∷ PParams → UProp → [UpdateConstraintViolation]
- data UpdateConstraintViolation
- maxBkSz ∷ Lens' PParams Natural
- orError ∷ Maybe (a, b) → (a → b → e) → Maybe e
- maxTxSz ∷ Lens' PParams Natural
- scriptVersion ∷ Lens' PParams Natural
- canUpdate ∷ ∀ (ctx ∷ RuleType). PParams → UProp → Rule UPPVV ctx ()
- data UPPVV
- data UppvvPredicateFailure
- svCanFollow ∷ Map ApName (ApVer, Slot, Metadata) → (ApName, ApVer) → Bool
- data UPSVV
- data UpsvvPredicateFailure
- upId ∷ Lens' UProp UpId
- data UPV
- data UpvPredicateFailure
- data UPREG
- data UpregPredicateFailure
- upIssuer ∷ Lens' UProp VKey
- upSig ∷ Lens' UProp (Sig UpSD)
- mkVote ∷ VKey → UpId → Vote
- data ADDVOTE
- data AddvotePredicateFailure
- vPropId ∷ Lens' Vote UpId
- vCaster ∷ Lens' Vote VKey
- vSig ∷ Lens' Vote (Sig UpId)
- data UPVOTE
- data UpvotePredicateFailure
- data FADS
- data FadsPredicateFailure
- data UPEND
- findKey ∷ (v → Bool) → Map k v → Maybe (k, v)
- data UpendPredicateFailure
- type UPIEnv = (Slot, Bimap VKeyGenesis VKey, BlockCount, Word8)
- type UPIState = ((ProtVer, PParams), [(Slot, (ProtVer, PParams))], Map ApName (ApVer, Slot, Metadata), Map UpId (ProtVer, PParams), Map UpId (ApName, ApVer, Metadata), Map UpId Slot, Set (UpId, VKeyGenesis), Set (ProtVer, VKeyGenesis), Map UpId Slot)
- fstUPIState ∷ UPIState → (ProtVer, PParams)
- sndUPIState ∷ UPIState → [(Slot, (ProtVer, PParams))]
- trdUPIState ∷ UPIState → Map ApName (ApVer, Slot, Metadata)
- emptyUPIState ∷ UPIState
- initialPParams ∷ PParams
- protocolVersion ∷ UPIState → ProtVer
- protocolParameters ∷ UPIState → PParams
- applicationVersions ∷ UPIState → Map ApName (ApVer, Slot, Metadata)
- confirmedProposals ∷ UPIState → Map UpId Slot
- futureAdoptions ∷ UPIState → [(Slot, (ProtVer, PParams))]
- endorsements ∷ UPIState → Set (ProtVer, VKeyGenesis)
- registeredProtocolUpdateProposals ∷ UPIState → Map UpId (ProtVer, PParams)
- data UPIREG
- data UpiregPredicateFailure = UPREGFailure (PredicateFailure UPREG)
- upiEnvGen ∷ Gen UPIEnv
- ppsUpdateFrom ∷ PParams → Gen PParams
- dmapGen ∷ Word8 → Gen (Bimap VKeyGenesis VKey)
- increasingProbabilityAt ∷ Gen a → (a, a) → Gen a
- randomUpId ∷ Gen UpId
- reSign ∷ UProp → UProp
- data UPIVOTE
- data UpivotePredicateFailure = UPVOTEFailure (PredicateFailure UPVOTE)
- upAdptThd ∷ Lens' PParams UpAdptThd
- data APPLYVOTES
- data ApplyVotesPredicateFailure = UpivoteFailure (PredicateFailure UPIVOTE)
- data UPIVOTES
- data UpivotesPredicateFailure = ApplyVotesFailure (PredicateFailure APPLYVOTES)
- data UPIEND
- data UpiendPredicateFailure = UPENDFailure (PredicateFailure UPEND)
- upTtl ∷ Lens' PParams SlotCount
- pickHighlyEndorsedProtocolVersion ∷ [(ProtVer, Set VKeyGenesis)] → Gen (Maybe ProtVer)
- data PVBUMP
- data PvbumpPredicateFailure = NoPVBUMPFailure
- data UPIEC
- data UpiecPredicateFailure = PVBUMPFailure (PredicateFailure PVBUMP)
- updateProposalAndVotesGen ∷ UPIEnv → UPIState → Gen (Maybe UProp, [Vote])
- protocolVersionEndorsementGen ∷ UPIEnv → UPIState → Gen ProtVer
- bkSgnCntT ∷ Lens' PParams BkSgnCntT
- bkSlotsPerEpoch ∷ Lens' PParams SlotCount
- factorA ∷ Lens' PParams FactorA
- factorB ∷ Lens' PParams FactorB
- maxHdrSz ∷ Lens' PParams Natural
- maxPropSz ∷ Lens' PParams Natural
- pvAlt ∷ Lens' ProtVer Natural
- pvMaj ∷ Lens' ProtVer Natural
- pvMin ∷ Lens' ProtVer Natural
- svName ∷ Lens' SwVer ApName
- svVer ∷ Lens' SwVer ApVer
- type family PredicateFailure a
Documentation
For now we do not have any requirements on metadata.
Constructors
| Metadata |
Instances
Instances
Protocol parameters.
Constructors
| PParams | |
Fields
| |
Instances
| HasTypeReps PParams Source # | |||||
| Data PParams Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → PParams → c PParams # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c PParams # dataTypeOf ∷ PParams → DataType # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c PParams) # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c PParams) # gmapT ∷ (∀ b. Data b ⇒ b → b) → PParams → PParams # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → PParams → r # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → PParams → r # gmapQ ∷ (∀ d. Data d ⇒ d → u) → PParams → [u] # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → PParams → u # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → PParams → m PParams # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → PParams → m PParams # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → PParams → m PParams # | |||||
| Generic PParams Source # | |||||
Defined in Byron.Spec.Ledger.Update Associated Types
| |||||
| Show PParams Source # | |||||
| Eq PParams Source # | |||||
| Ord PParams Source # | |||||
| Hashable PParams Source # | |||||
| NoThunks PParams Source # | |||||
| HasTypeReps (ProtVer, PParams, SwVer, Set STag, Metadata) Source # | |||||
| type Rep PParams Source # | |||||
Defined in Byron.Spec.Ledger.Update type Rep PParams = D1 ('MetaData "PParams" "Byron.Spec.Ledger.Update" "byron-spec-ledger-1.1.0.1-inplace" 'False) (C1 ('MetaCons "PParams" 'PrefixI 'True) (((S1 ('MetaSel ('Just "_maxBkSz") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Natural) :*: S1 ('MetaSel ('Just "_maxHdrSz") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Natural)) :*: (S1 ('MetaSel ('Just "_maxTxSz") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Natural) :*: (S1 ('MetaSel ('Just "_maxPropSz") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Natural) :*: S1 ('MetaSel ('Just "_bkSgnCntT") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 BkSgnCntT)))) :*: ((S1 ('MetaSel ('Just "_bkSlotsPerEpoch") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SlotCount) :*: (S1 ('MetaSel ('Just "_upTtl") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SlotCount) :*: S1 ('MetaSel ('Just "_scriptVersion") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Natural))) :*: (S1 ('MetaSel ('Just "_upAdptThd") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UpAdptThd) :*: (S1 ('MetaSel ('Just "_factorA") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 FactorA) :*: S1 ('MetaSel ('Just "_factorB") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 FactorB)))))) | |||||
Instances
| HasTypeReps FactorA Source # | |||||
| Data FactorA Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → FactorA → c FactorA # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c FactorA # dataTypeOf ∷ FactorA → DataType # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c FactorA) # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c FactorA) # gmapT ∷ (∀ b. Data b ⇒ b → b) → FactorA → FactorA # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → FactorA → r # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → FactorA → r # gmapQ ∷ (∀ d. Data d ⇒ d → u) → FactorA → [u] # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → FactorA → u # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → FactorA → m FactorA # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → FactorA → m FactorA # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → FactorA → m FactorA # | |||||
| Generic FactorA Source # | |||||
Defined in Byron.Spec.Ledger.Update Associated Types
| |||||
| Show FactorA Source # | |||||
| Eq FactorA Source # | |||||
| Ord FactorA Source # | |||||
| Hashable FactorA Source # | |||||
| NoThunks FactorA Source # | |||||
| type Rep FactorA Source # | |||||
Defined in Byron.Spec.Ledger.Update | |||||
Instances
| HasTypeReps FactorB Source # | |||||
| Data FactorB Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → FactorB → c FactorB # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c FactorB # dataTypeOf ∷ FactorB → DataType # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c FactorB) # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c FactorB) # gmapT ∷ (∀ b. Data b ⇒ b → b) → FactorB → FactorB # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → FactorB → r # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → FactorB → r # gmapQ ∷ (∀ d. Data d ⇒ d → u) → FactorB → [u] # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → FactorB → u # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → FactorB → m FactorB # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → FactorB → m FactorB # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → FactorB → m FactorB # | |||||
| Generic FactorB Source # | |||||
Defined in Byron.Spec.Ledger.Update Associated Types
| |||||
| Show FactorB Source # | |||||
| Eq FactorB Source # | |||||
| Ord FactorB Source # | |||||
| Hashable FactorB Source # | |||||
| NoThunks FactorB Source # | |||||
| type Rep FactorB Source # | |||||
Defined in Byron.Spec.Ledger.Update | |||||
Instances
| HasTypeReps BkSgnCntT Source # | |||||
| Data BkSgnCntT Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → BkSgnCntT → c BkSgnCntT # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c BkSgnCntT # toConstr ∷ BkSgnCntT → Constr # dataTypeOf ∷ BkSgnCntT → DataType # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c BkSgnCntT) # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c BkSgnCntT) # gmapT ∷ (∀ b. Data b ⇒ b → b) → BkSgnCntT → BkSgnCntT # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → BkSgnCntT → r # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → BkSgnCntT → r # gmapQ ∷ (∀ d. Data d ⇒ d → u) → BkSgnCntT → [u] # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → BkSgnCntT → u # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → BkSgnCntT → m BkSgnCntT # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → BkSgnCntT → m BkSgnCntT # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → BkSgnCntT → m BkSgnCntT # | |||||
| Generic BkSgnCntT Source # | |||||
Defined in Byron.Spec.Ledger.Update Associated Types
| |||||
| Num BkSgnCntT Source # | |||||
| Fractional BkSgnCntT Source # | |||||
| Show BkSgnCntT Source # | |||||
| Eq BkSgnCntT Source # | |||||
| Ord BkSgnCntT Source # | |||||
Defined in Byron.Spec.Ledger.Update | |||||
| Hashable BkSgnCntT Source # | |||||
| NoThunks BkSgnCntT Source # | |||||
| type Rep BkSgnCntT Source # | |||||
Defined in Byron.Spec.Ledger.Update | |||||
Instances
| HasTypeReps UpAdptThd Source # | |||||
| Data UpAdptThd Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → UpAdptThd → c UpAdptThd # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c UpAdptThd # toConstr ∷ UpAdptThd → Constr # dataTypeOf ∷ UpAdptThd → DataType # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c UpAdptThd) # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c UpAdptThd) # gmapT ∷ (∀ b. Data b ⇒ b → b) → UpAdptThd → UpAdptThd # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → UpAdptThd → r # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → UpAdptThd → r # gmapQ ∷ (∀ d. Data d ⇒ d → u) → UpAdptThd → [u] # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → UpAdptThd → u # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → UpAdptThd → m UpAdptThd # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UpAdptThd → m UpAdptThd # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UpAdptThd → m UpAdptThd # | |||||
| Generic UpAdptThd Source # | |||||
Defined in Byron.Spec.Ledger.Update Associated Types
| |||||
| Num UpAdptThd Source # | |||||
| Fractional UpAdptThd Source # | |||||
| Real UpAdptThd Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods toRational ∷ UpAdptThd → Rational # | |||||
| RealFrac UpAdptThd Source # | |||||
| Show UpAdptThd Source # | |||||
| Eq UpAdptThd Source # | |||||
| Ord UpAdptThd Source # | |||||
Defined in Byron.Spec.Ledger.Update | |||||
| Hashable UpAdptThd Source # | |||||
| NoThunks UpAdptThd Source # | |||||
| type Rep UpAdptThd Source # | |||||
Defined in Byron.Spec.Ledger.Update | |||||
Instances
| HasTypeReps UpId Source # | |||||
| Data UpId Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → UpId → c UpId # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c UpId # dataTypeOf ∷ UpId → DataType # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c UpId) # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c UpId) # gmapT ∷ (∀ b. Data b ⇒ b → b) → UpId → UpId # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → UpId → r # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → UpId → r # gmapQ ∷ (∀ d. Data d ⇒ d → u) → UpId → [u] # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → UpId → u # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → UpId → m UpId # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UpId → m UpId # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UpId → m UpId # | |||||
| Generic UpId Source # | |||||
Defined in Byron.Spec.Ledger.Update Associated Types
| |||||
| Show UpId Source # | |||||
| Eq UpId Source # | |||||
| Ord UpId Source # | |||||
| Hashable UpId Source # | |||||
| NoThunks UpId Source # | |||||
| type Rep UpId Source # | |||||
Defined in Byron.Spec.Ledger.Update | |||||
Protocol version
Instances
| HasTypeReps ProtVer Source # | |||||
| Data ProtVer Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → ProtVer → c ProtVer # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c ProtVer # dataTypeOf ∷ ProtVer → DataType # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c ProtVer) # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c ProtVer) # gmapT ∷ (∀ b. Data b ⇒ b → b) → ProtVer → ProtVer # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → ProtVer → r # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → ProtVer → r # gmapQ ∷ (∀ d. Data d ⇒ d → u) → ProtVer → [u] # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → ProtVer → u # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → ProtVer → m ProtVer # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → ProtVer → m ProtVer # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → ProtVer → m ProtVer # | |||||
| Generic ProtVer Source # | |||||
Defined in Byron.Spec.Ledger.Update Associated Types
| |||||
| Show ProtVer Source # | |||||
| Eq ProtVer Source # | |||||
| Ord ProtVer Source # | |||||
| Hashable ProtVer Source # | |||||
| NoThunks ProtVer Source # | |||||
| HasTypeReps (ProtVer, PParams, SwVer, Set STag, Metadata) Source # | |||||
| type Rep ProtVer Source # | |||||
Defined in Byron.Spec.Ledger.Update type Rep ProtVer = D1 ('MetaData "ProtVer" "Byron.Spec.Ledger.Update" "byron-spec-ledger-1.1.0.1-inplace" 'False) (C1 ('MetaCons "ProtVer" 'PrefixI 'True) (S1 ('MetaSel ('Just "_pvMaj") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural) :*: (S1 ('MetaSel ('Just "_pvMin") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural) :*: S1 ('MetaSel ('Just "_pvAlt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural)))) | |||||
Instances
| HasTypeReps ApName Source # | |||||
| Data ApName Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → ApName → c ApName # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c ApName # dataTypeOf ∷ ApName → DataType # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c ApName) # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c ApName) # gmapT ∷ (∀ b. Data b ⇒ b → b) → ApName → ApName # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → ApName → r # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → ApName → r # gmapQ ∷ (∀ d. Data d ⇒ d → u) → ApName → [u] # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → ApName → u # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → ApName → m ApName # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → ApName → m ApName # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → ApName → m ApName # | |||||
| Generic ApName Source # | |||||
Defined in Byron.Spec.Ledger.Update Associated Types
| |||||
| Show ApName Source # | |||||
| Eq ApName Source # | |||||
| Ord ApName Source # | |||||
| Hashable ApName Source # | |||||
| NoThunks ApName Source # | |||||
| type Rep ApName Source # | |||||
Defined in Byron.Spec.Ledger.Update | |||||
Application version
Instances
| HasTypeReps ApVer Source # | |||||
| Data ApVer Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → ApVer → c ApVer # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c ApVer # dataTypeOf ∷ ApVer → DataType # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c ApVer) # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c ApVer) # gmapT ∷ (∀ b. Data b ⇒ b → b) → ApVer → ApVer # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → ApVer → r # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → ApVer → r # gmapQ ∷ (∀ d. Data d ⇒ d → u) → ApVer → [u] # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → ApVer → u # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → ApVer → m ApVer # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → ApVer → m ApVer # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → ApVer → m ApVer # | |||||
| Generic ApVer Source # | |||||
Defined in Byron.Spec.Ledger.Update Associated Types
| |||||
| Num ApVer Source # | |||||
| Show ApVer Source # | |||||
| Eq ApVer Source # | |||||
| Ord ApVer Source # | |||||
| Hashable ApVer Source # | |||||
| NoThunks ApVer Source # | |||||
| type Rep ApVer Source # | |||||
Defined in Byron.Spec.Ledger.Update | |||||
Instances
| HasTypeReps SwVer Source # | |||||
| Data SwVer Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → SwVer → c SwVer # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c SwVer # dataTypeOf ∷ SwVer → DataType # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c SwVer) # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c SwVer) # gmapT ∷ (∀ b. Data b ⇒ b → b) → SwVer → SwVer # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → SwVer → r # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → SwVer → r # gmapQ ∷ (∀ d. Data d ⇒ d → u) → SwVer → [u] # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → SwVer → u # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → SwVer → m SwVer # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → SwVer → m SwVer # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → SwVer → m SwVer # | |||||
| Generic SwVer Source # | |||||
Defined in Byron.Spec.Ledger.Update Associated Types
| |||||
| Show SwVer Source # | |||||
| Eq SwVer Source # | |||||
| Hashable SwVer Source # | |||||
| NoThunks SwVer Source # | |||||
| HasTypeReps (ProtVer, PParams, SwVer, Set STag, Metadata) Source # | |||||
| type Rep SwVer Source # | |||||
Defined in Byron.Spec.Ledger.Update type Rep SwVer = D1 ('MetaData "SwVer" "Byron.Spec.Ledger.Update" "byron-spec-ledger-1.1.0.1-inplace" 'False) (C1 ('MetaCons "SwVer" 'PrefixI 'True) (S1 ('MetaSel ('Just "_svName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ApName) :*: S1 ('MetaSel ('Just "_svVer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ApVer))) | |||||
type UpSD = (ProtVer, PParams, SwVer, Set STag, Metadata) Source #
Part of the update proposal which must be signed
System tag, this represents a target operating system for the update (e.g.
linux, win64, or mac32).
Update proposal
Constructors
| UProp | |
Instances
| HasTypeReps UProp Source # | |||||
| Data UProp Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → UProp → c UProp # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c UProp # dataTypeOf ∷ UProp → DataType # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c UProp) # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c UProp) # gmapT ∷ (∀ b. Data b ⇒ b → b) → UProp → UProp # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → UProp → r # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → UProp → r # gmapQ ∷ (∀ d. Data d ⇒ d → u) → UProp → [u] # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → UProp → u # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → UProp → m UProp # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UProp → m UProp # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UProp → m UProp # | |||||
| Generic UProp Source # | |||||
Defined in Byron.Spec.Ledger.Update Associated Types
| |||||
| Show UProp Source # | |||||
| Eq UProp Source # | |||||
| Hashable UProp Source # | |||||
| NoThunks UProp Source # | |||||
| HasHash (Maybe UProp, [Vote]) Source # | |||||
| type Rep UProp Source # | |||||
Defined in Byron.Spec.Ledger.Update type Rep UProp = D1 ('MetaData "UProp" "Byron.Spec.Ledger.Update" "byron-spec-ledger-1.1.0.1-inplace" 'False) (C1 ('MetaCons "UProp" 'PrefixI 'True) (((S1 ('MetaSel ('Just "_upId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 UpId) :*: S1 ('MetaSel ('Just "_upIssuer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 VKey)) :*: (S1 ('MetaSel ('Just "_upParams") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PParams) :*: S1 ('MetaSel ('Just "_upPV") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ProtVer))) :*: ((S1 ('MetaSel ('Just "_upSwVer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SwVer) :*: S1 ('MetaSel ('Just "_upSig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sig UpSD))) :*: (S1 ('MetaSel ('Just "_upSTags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Set STag)) :*: S1 ('MetaSel ('Just "_upMdt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Metadata))))) | |||||
getUpSigData ∷ UProp → UpSD Source #
invertMap ∷ (Ord k, Ord v) ⇒ Map k v → Map v (Set k) Source #
Invert a map
Examples:
>>>import qualified Data.Map.Strict as Map>>>import Byron.Spec.Ledger.Update (invertMap)>>>invertMap (Map.fromList [('a', 1 :: Int), ('b', 2), ('c', 3), ('d', 1)])fromList [(1,fromList "ad"),(2,fromList "b"),(3,fromList "c")]
invertBijection ∷ Ord v ⇒ Map k v → Map v k Source #
Invert a map which we assert to be a bijection. If this map is not a bijection, the behaviour is not guaranteed.
Examples:
>>>import qualified Data.Map.Strict as Map>>>invertBijection (Map.fromList [('a', 1 :: Int), ('b', 2), ('c', 3)])fromList [(1,'a'),(2,'b'),(3,'c')]
Check whether a protocol version can follow the current protocol version.
checkUpdateConstraints ∷ PParams → UProp → [UpdateConstraintViolation] Source #
Check whether an update proposal marks a valid update
data UpdateConstraintViolation Source #
Violations on the constraints of the allowed values for new protocol parameters.
Constructors
| BlockSizeTooLarge Natural (Threshold Natural) | |
| TransactionSizeTooLarge Natural (Threshold Natural) | |
| ScriptVersionTooLarge Natural (Threshold Natural) | |
| ScriptVersionTooSmall Natural (Threshold Natural) |
Instances
| Data UpdateConstraintViolation Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → UpdateConstraintViolation → c UpdateConstraintViolation # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c UpdateConstraintViolation # toConstr ∷ UpdateConstraintViolation → Constr # dataTypeOf ∷ UpdateConstraintViolation → DataType # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c UpdateConstraintViolation) # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c UpdateConstraintViolation) # gmapT ∷ (∀ b. Data b ⇒ b → b) → UpdateConstraintViolation → UpdateConstraintViolation # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → UpdateConstraintViolation → r # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → UpdateConstraintViolation → r # gmapQ ∷ (∀ d. Data d ⇒ d → u) → UpdateConstraintViolation → [u] # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → UpdateConstraintViolation → u # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → UpdateConstraintViolation → m UpdateConstraintViolation # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UpdateConstraintViolation → m UpdateConstraintViolation # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UpdateConstraintViolation → m UpdateConstraintViolation # | |||||
| Generic UpdateConstraintViolation Source # | |||||
Defined in Byron.Spec.Ledger.Update Associated Types
| |||||
| Show UpdateConstraintViolation Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods showsPrec ∷ Int → UpdateConstraintViolation → ShowS # | |||||
| Eq UpdateConstraintViolation Source # | |||||
Defined in Byron.Spec.Ledger.Update | |||||
| Ord UpdateConstraintViolation Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods compare ∷ UpdateConstraintViolation → UpdateConstraintViolation → Ordering # (<) ∷ UpdateConstraintViolation → UpdateConstraintViolation → Bool # (<=) ∷ UpdateConstraintViolation → UpdateConstraintViolation → Bool # (>) ∷ UpdateConstraintViolation → UpdateConstraintViolation → Bool # (>=) ∷ UpdateConstraintViolation → UpdateConstraintViolation → Bool # max ∷ UpdateConstraintViolation → UpdateConstraintViolation → UpdateConstraintViolation # min ∷ UpdateConstraintViolation → UpdateConstraintViolation → UpdateConstraintViolation # | |||||
| NoThunks UpdateConstraintViolation Source # | |||||
Defined in Byron.Spec.Ledger.Update | |||||
| type Rep UpdateConstraintViolation Source # | |||||
Defined in Byron.Spec.Ledger.Update type Rep UpdateConstraintViolation = D1 ('MetaData "UpdateConstraintViolation" "Byron.Spec.Ledger.Update" "byron-spec-ledger-1.1.0.1-inplace" 'False) ((C1 ('MetaCons "BlockSizeTooLarge" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural) :*: S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Threshold Natural))) :+: C1 ('MetaCons "TransactionSizeTooLarge" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural) :*: S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Threshold Natural)))) :+: (C1 ('MetaCons "ScriptVersionTooLarge" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural) :*: S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Threshold Natural))) :+: C1 ('MetaCons "ScriptVersionTooSmall" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural) :*: S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Threshold Natural))))) | |||||
Instances
| Data UPPVV Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Methods gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → UPPVV → c UPPVV # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c UPPVV # dataTypeOf ∷ UPPVV → DataType # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c UPPVV) # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c UPPVV) # gmapT ∷ (∀ b. Data b ⇒ b → b) → UPPVV → UPPVV # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → UPPVV → r # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → UPPVV → r # gmapQ ∷ (∀ d. Data d ⇒ d → u) → UPPVV → [u] # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → UPPVV → u # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → UPPVV → m UPPVV # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UPPVV → m UPPVV # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UPPVV → m UPPVV # | |||||||||||||||||||||||||
| Generic UPPVV Source # | |||||||||||||||||||||||||
| STS UPPVV Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Associated Types
| |||||||||||||||||||||||||
| Embed UPPVV UPV Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Methods wrapFailed ∷ PredicateFailure UPPVV → PredicateFailure UPV Source # | |||||||||||||||||||||||||
| type Rep UPPVV Source # | |||||||||||||||||||||||||
| type BaseM UPPVV Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Environment UPPVV Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Event UPPVV Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type PredicateFailure UPPVV Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Signal UPPVV Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type State UPPVV Source # | |||||||||||||||||||||||||
data UppvvPredicateFailure Source #
These PredicateFailures are all "throwable". The disjunction of the
rules' preconditions is not True - the PredicateFailures represent
False cases.
Instances
| Data UppvvPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → UppvvPredicateFailure → c UppvvPredicateFailure # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c UppvvPredicateFailure # toConstr ∷ UppvvPredicateFailure → Constr # dataTypeOf ∷ UppvvPredicateFailure → DataType # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c UppvvPredicateFailure) # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c UppvvPredicateFailure) # gmapT ∷ (∀ b. Data b ⇒ b → b) → UppvvPredicateFailure → UppvvPredicateFailure # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → UppvvPredicateFailure → r # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → UppvvPredicateFailure → r # gmapQ ∷ (∀ d. Data d ⇒ d → u) → UppvvPredicateFailure → [u] # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → UppvvPredicateFailure → u # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → UppvvPredicateFailure → m UppvvPredicateFailure # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UppvvPredicateFailure → m UppvvPredicateFailure # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UppvvPredicateFailure → m UppvvPredicateFailure # | |||||
| Generic UppvvPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Associated Types
Methods from ∷ UppvvPredicateFailure → Rep UppvvPredicateFailure x # | |||||
| Show UppvvPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods showsPrec ∷ Int → UppvvPredicateFailure → ShowS # show ∷ UppvvPredicateFailure → String # showList ∷ [UppvvPredicateFailure] → ShowS # | |||||
| Eq UppvvPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods (==) ∷ UppvvPredicateFailure → UppvvPredicateFailure → Bool # (/=) ∷ UppvvPredicateFailure → UppvvPredicateFailure → Bool # | |||||
| NoThunks UppvvPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update | |||||
| type Rep UppvvPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update type Rep UppvvPredicateFailure = D1 ('MetaData "UppvvPredicateFailure" "Byron.Spec.Ledger.Update" "byron-spec-ledger-1.1.0.1-inplace" 'False) (C1 ('MetaCons "CannotFollowPv" 'PrefixI 'False) (U1 ∷ Type → Type) :+: (C1 ('MetaCons "CannotUpdatePv" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [UpdateConstraintViolation])) :+: C1 ('MetaCons "AlreadyProposedPv" 'PrefixI 'False) (U1 ∷ Type → Type))) | |||||
Update Proposal Software Version Validation
Instances
| Data UPSVV Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Methods gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → UPSVV → c UPSVV # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c UPSVV # dataTypeOf ∷ UPSVV → DataType # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c UPSVV) # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c UPSVV) # gmapT ∷ (∀ b. Data b ⇒ b → b) → UPSVV → UPSVV # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → UPSVV → r # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → UPSVV → r # gmapQ ∷ (∀ d. Data d ⇒ d → u) → UPSVV → [u] # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → UPSVV → u # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → UPSVV → m UPSVV # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UPSVV → m UPSVV # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UPSVV → m UPSVV # | |||||||||||||||||||||||||
| Generic UPSVV Source # | |||||||||||||||||||||||||
| STS UPSVV Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Associated Types
| |||||||||||||||||||||||||
| Embed UPSVV UPV Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Methods wrapFailed ∷ PredicateFailure UPSVV → PredicateFailure UPV Source # | |||||||||||||||||||||||||
| type Rep UPSVV Source # | |||||||||||||||||||||||||
| type BaseM UPSVV Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Environment UPSVV Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Event UPSVV Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type PredicateFailure UPSVV Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Signal UPSVV Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type State UPSVV Source # | |||||||||||||||||||||||||
data UpsvvPredicateFailure Source #
These PredicateFailures are all "throwable". The disjunction of the
rules' preconditions is not True - the PredicateFailures represent
False cases.
Instances
| Data UpsvvPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → UpsvvPredicateFailure → c UpsvvPredicateFailure # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c UpsvvPredicateFailure # toConstr ∷ UpsvvPredicateFailure → Constr # dataTypeOf ∷ UpsvvPredicateFailure → DataType # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c UpsvvPredicateFailure) # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c UpsvvPredicateFailure) # gmapT ∷ (∀ b. Data b ⇒ b → b) → UpsvvPredicateFailure → UpsvvPredicateFailure # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → UpsvvPredicateFailure → r # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → UpsvvPredicateFailure → r # gmapQ ∷ (∀ d. Data d ⇒ d → u) → UpsvvPredicateFailure → [u] # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → UpsvvPredicateFailure → u # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → UpsvvPredicateFailure → m UpsvvPredicateFailure # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UpsvvPredicateFailure → m UpsvvPredicateFailure # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UpsvvPredicateFailure → m UpsvvPredicateFailure # | |||||
| Generic UpsvvPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Associated Types
Methods from ∷ UpsvvPredicateFailure → Rep UpsvvPredicateFailure x # | |||||
| Show UpsvvPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods showsPrec ∷ Int → UpsvvPredicateFailure → ShowS # show ∷ UpsvvPredicateFailure → String # showList ∷ [UpsvvPredicateFailure] → ShowS # | |||||
| Eq UpsvvPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods (==) ∷ UpsvvPredicateFailure → UpsvvPredicateFailure → Bool # (/=) ∷ UpsvvPredicateFailure → UpsvvPredicateFailure → Bool # | |||||
| NoThunks UpsvvPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update | |||||
| type Rep UpsvvPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update type Rep UpsvvPredicateFailure = D1 ('MetaData "UpsvvPredicateFailure" "Byron.Spec.Ledger.Update" "byron-spec-ledger-1.1.0.1-inplace" 'False) ((C1 ('MetaCons "AlreadyProposedSv" 'PrefixI 'False) (U1 ∷ Type → Type) :+: C1 ('MetaCons "CannotFollowSv" 'PrefixI 'False) (U1 ∷ Type → Type)) :+: (C1 ('MetaCons "InvalidApplicationName" 'PrefixI 'False) (U1 ∷ Type → Type) :+: C1 ('MetaCons "InvalidSystemTags" 'PrefixI 'False) (U1 ∷ Type → Type))) | |||||
Update proposal validity
Instances
| Data UPV Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Methods gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → UPV → c UPV # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c UPV # dataTypeOf ∷ UPV → DataType # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c UPV) # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c UPV) # gmapT ∷ (∀ b. Data b ⇒ b → b) → UPV → UPV # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → UPV → r # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → UPV → r # gmapQ ∷ (∀ d. Data d ⇒ d → u) → UPV → [u] # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → UPV → u # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → UPV → m UPV # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UPV → m UPV # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UPV → m UPV # | |||||||||||||||||||||||||
| Generic UPV Source # | |||||||||||||||||||||||||
| STS UPV Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Associated Types
Methods initialRules ∷ [InitialRule UPV] Source # transitionRules ∷ [TransitionRule UPV] Source # assertions ∷ [Assertion UPV] Source # renderAssertionViolation ∷ AssertionViolation UPV → String Source # | |||||||||||||||||||||||||
| Embed UPPVV UPV Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Methods wrapFailed ∷ PredicateFailure UPPVV → PredicateFailure UPV Source # | |||||||||||||||||||||||||
| Embed UPSVV UPV Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Methods wrapFailed ∷ PredicateFailure UPSVV → PredicateFailure UPV Source # | |||||||||||||||||||||||||
| Embed UPV UPREG Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Methods wrapFailed ∷ PredicateFailure UPV → PredicateFailure UPREG Source # | |||||||||||||||||||||||||
| type Rep UPV Source # | |||||||||||||||||||||||||
| type BaseM UPV Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Environment UPV Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Event UPV Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type PredicateFailure UPV Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Signal UPV Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type State UPV Source # | |||||||||||||||||||||||||
data UpvPredicateFailure Source #
These PredicateFailures are all throwable.
Constructors
| UPPVVFailure (PredicateFailure UPPVV) | |
| UPSVVFailure (PredicateFailure UPSVV) | |
| AVChangedInPVUpdate ApName ApVer (Maybe (ApVer, Slot, Metadata)) | |
| ParamsChangedInSVUpdate | |
| PVChangedInSVUpdate |
Instances
| Data UpvPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → UpvPredicateFailure → c UpvPredicateFailure # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c UpvPredicateFailure # toConstr ∷ UpvPredicateFailure → Constr # dataTypeOf ∷ UpvPredicateFailure → DataType # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c UpvPredicateFailure) # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c UpvPredicateFailure) # gmapT ∷ (∀ b. Data b ⇒ b → b) → UpvPredicateFailure → UpvPredicateFailure # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → UpvPredicateFailure → r # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → UpvPredicateFailure → r # gmapQ ∷ (∀ d. Data d ⇒ d → u) → UpvPredicateFailure → [u] # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → UpvPredicateFailure → u # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → UpvPredicateFailure → m UpvPredicateFailure # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UpvPredicateFailure → m UpvPredicateFailure # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UpvPredicateFailure → m UpvPredicateFailure # | |||||
| Generic UpvPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Associated Types
Methods | |||||
| Show UpvPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods showsPrec ∷ Int → UpvPredicateFailure → ShowS # show ∷ UpvPredicateFailure → String # showList ∷ [UpvPredicateFailure] → ShowS # | |||||
| Eq UpvPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods | |||||
| NoThunks UpvPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update | |||||
| type Rep UpvPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update type Rep UpvPredicateFailure = D1 ('MetaData "UpvPredicateFailure" "Byron.Spec.Ledger.Update" "byron-spec-ledger-1.1.0.1-inplace" 'False) ((C1 ('MetaCons "UPPVVFailure" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (PredicateFailure UPPVV))) :+: C1 ('MetaCons "UPSVVFailure" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (PredicateFailure UPSVV)))) :+: (C1 ('MetaCons "AVChangedInPVUpdate" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ApName) :*: (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ApVer) :*: S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (ApVer, Slot, Metadata))))) :+: (C1 ('MetaCons "ParamsChangedInSVUpdate" 'PrefixI 'False) (U1 ∷ Type → Type) :+: C1 ('MetaCons "PVChangedInSVUpdate" 'PrefixI 'False) (U1 ∷ Type → Type)))) | |||||
Instances
| Data UPREG Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Methods gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → UPREG → c UPREG # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c UPREG # dataTypeOf ∷ UPREG → DataType # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c UPREG) # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c UPREG) # gmapT ∷ (∀ b. Data b ⇒ b → b) → UPREG → UPREG # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → UPREG → r # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → UPREG → r # gmapQ ∷ (∀ d. Data d ⇒ d → u) → UPREG → [u] # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → UPREG → u # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → UPREG → m UPREG # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UPREG → m UPREG # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UPREG → m UPREG # | |||||||||||||||||||||||||
| Generic UPREG Source # | |||||||||||||||||||||||||
| STS UPREG Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Associated Types
| |||||||||||||||||||||||||
| Embed UPREG UPIREG Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Methods wrapFailed ∷ PredicateFailure UPREG → PredicateFailure UPIREG Source # | |||||||||||||||||||||||||
| Embed UPV UPREG Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Methods wrapFailed ∷ PredicateFailure UPV → PredicateFailure UPREG Source # | |||||||||||||||||||||||||
| type Rep UPREG Source # | |||||||||||||||||||||||||
| type BaseM UPREG Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Environment UPREG Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Event UPREG Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type PredicateFailure UPREG Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Signal UPREG Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type State UPREG Source # | |||||||||||||||||||||||||
data UpregPredicateFailure Source #
These PredicateFailures are all throwable.
Constructors
| UPVFailure (PredicateFailure UPV) | |
| NotGenesisDelegate | |
| DoesNotVerify |
Instances
| Data UpregPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → UpregPredicateFailure → c UpregPredicateFailure # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c UpregPredicateFailure # toConstr ∷ UpregPredicateFailure → Constr # dataTypeOf ∷ UpregPredicateFailure → DataType # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c UpregPredicateFailure) # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c UpregPredicateFailure) # gmapT ∷ (∀ b. Data b ⇒ b → b) → UpregPredicateFailure → UpregPredicateFailure # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → UpregPredicateFailure → r # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → UpregPredicateFailure → r # gmapQ ∷ (∀ d. Data d ⇒ d → u) → UpregPredicateFailure → [u] # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → UpregPredicateFailure → u # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → UpregPredicateFailure → m UpregPredicateFailure # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UpregPredicateFailure → m UpregPredicateFailure # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UpregPredicateFailure → m UpregPredicateFailure # | |||||
| Generic UpregPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Associated Types
Methods from ∷ UpregPredicateFailure → Rep UpregPredicateFailure x # | |||||
| Show UpregPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods showsPrec ∷ Int → UpregPredicateFailure → ShowS # show ∷ UpregPredicateFailure → String # showList ∷ [UpregPredicateFailure] → ShowS # | |||||
| Eq UpregPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods (==) ∷ UpregPredicateFailure → UpregPredicateFailure → Bool # (/=) ∷ UpregPredicateFailure → UpregPredicateFailure → Bool # | |||||
| NoThunks UpregPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update | |||||
| type Rep UpregPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update type Rep UpregPredicateFailure = D1 ('MetaData "UpregPredicateFailure" "Byron.Spec.Ledger.Update" "byron-spec-ledger-1.1.0.1-inplace" 'False) (C1 ('MetaCons "UPVFailure" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (PredicateFailure UPV))) :+: (C1 ('MetaCons "NotGenesisDelegate" 'PrefixI 'False) (U1 ∷ Type → Type) :+: C1 ('MetaCons "DoesNotVerify" 'PrefixI 'False) (U1 ∷ Type → Type))) | |||||
Instances
| Data ADDVOTE Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Methods gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → ADDVOTE → c ADDVOTE # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c ADDVOTE # dataTypeOf ∷ ADDVOTE → DataType # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c ADDVOTE) # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c ADDVOTE) # gmapT ∷ (∀ b. Data b ⇒ b → b) → ADDVOTE → ADDVOTE # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → ADDVOTE → r # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → ADDVOTE → r # gmapQ ∷ (∀ d. Data d ⇒ d → u) → ADDVOTE → [u] # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → ADDVOTE → u # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → ADDVOTE → m ADDVOTE # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → ADDVOTE → m ADDVOTE # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → ADDVOTE → m ADDVOTE # | |||||||||||||||||||||||||
| Generic ADDVOTE Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| STS ADDVOTE Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Associated Types
| |||||||||||||||||||||||||
| Embed ADDVOTE UPVOTE Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Methods wrapFailed ∷ PredicateFailure ADDVOTE → PredicateFailure UPVOTE Source # | |||||||||||||||||||||||||
| type Rep ADDVOTE Source # | |||||||||||||||||||||||||
| type BaseM ADDVOTE Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Environment ADDVOTE Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Event ADDVOTE Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type PredicateFailure ADDVOTE Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Signal ADDVOTE Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type State ADDVOTE Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
data AddvotePredicateFailure Source #
These PredicateFailures are all throwable.
Constructors
| AVSigDoesNotVerify | |
| NoUpdateProposal UpId | |
| VoteByNonGenesisDelegate VKey | |
| RepeatVoteByGenesisDelegate VKey |
Instances
| Data AddvotePredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → AddvotePredicateFailure → c AddvotePredicateFailure # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c AddvotePredicateFailure # toConstr ∷ AddvotePredicateFailure → Constr # dataTypeOf ∷ AddvotePredicateFailure → DataType # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c AddvotePredicateFailure) # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c AddvotePredicateFailure) # gmapT ∷ (∀ b. Data b ⇒ b → b) → AddvotePredicateFailure → AddvotePredicateFailure # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → AddvotePredicateFailure → r # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → AddvotePredicateFailure → r # gmapQ ∷ (∀ d. Data d ⇒ d → u) → AddvotePredicateFailure → [u] # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → AddvotePredicateFailure → u # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → AddvotePredicateFailure → m AddvotePredicateFailure # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → AddvotePredicateFailure → m AddvotePredicateFailure # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → AddvotePredicateFailure → m AddvotePredicateFailure # | |||||
| Generic AddvotePredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Associated Types
Methods from ∷ AddvotePredicateFailure → Rep AddvotePredicateFailure x # to ∷ Rep AddvotePredicateFailure x → AddvotePredicateFailure # | |||||
| Show AddvotePredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update | |||||
| Eq AddvotePredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update | |||||
| NoThunks AddvotePredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update | |||||
| type Rep AddvotePredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update type Rep AddvotePredicateFailure = D1 ('MetaData "AddvotePredicateFailure" "Byron.Spec.Ledger.Update" "byron-spec-ledger-1.1.0.1-inplace" 'False) ((C1 ('MetaCons "AVSigDoesNotVerify" 'PrefixI 'False) (U1 ∷ Type → Type) :+: C1 ('MetaCons "NoUpdateProposal" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 UpId))) :+: (C1 ('MetaCons "VoteByNonGenesisDelegate" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 VKey)) :+: C1 ('MetaCons "RepeatVoteByGenesisDelegate" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 VKey)))) | |||||
Instances
| Data UPVOTE Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Methods gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → UPVOTE → c UPVOTE # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c UPVOTE # dataTypeOf ∷ UPVOTE → DataType # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c UPVOTE) # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c UPVOTE) # gmapT ∷ (∀ b. Data b ⇒ b → b) → UPVOTE → UPVOTE # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → UPVOTE → r # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → UPVOTE → r # gmapQ ∷ (∀ d. Data d ⇒ d → u) → UPVOTE → [u] # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → UPVOTE → u # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → UPVOTE → m UPVOTE # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UPVOTE → m UPVOTE # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UPVOTE → m UPVOTE # | |||||||||||||||||||||||||
| Generic UPVOTE Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| STS UPVOTE Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Associated Types
| |||||||||||||||||||||||||
| Embed ADDVOTE UPVOTE Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Methods wrapFailed ∷ PredicateFailure ADDVOTE → PredicateFailure UPVOTE Source # | |||||||||||||||||||||||||
| Embed UPVOTE UPIVOTE Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Methods wrapFailed ∷ PredicateFailure UPVOTE → PredicateFailure UPIVOTE Source # | |||||||||||||||||||||||||
| type Rep UPVOTE Source # | |||||||||||||||||||||||||
| type BaseM UPVOTE Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Environment UPVOTE Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Event UPVOTE Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type PredicateFailure UPVOTE Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Signal UPVOTE Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type State UPVOTE Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
data UpvotePredicateFailure Source #
The 3 non-embedded PredicateFailures here are all structural. The
disjuntion of the preconditions is True - one rule either fires or the
other does.
Constructors
| ADDVOTEFailure (PredicateFailure ADDVOTE) | |
| S_HigherThanThdAndNotAlreadyConfirmed | |
| S_CfmThdNotReached | |
| S_AlreadyConfirmed |
Instances
| Data UpvotePredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → UpvotePredicateFailure → c UpvotePredicateFailure # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c UpvotePredicateFailure # toConstr ∷ UpvotePredicateFailure → Constr # dataTypeOf ∷ UpvotePredicateFailure → DataType # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c UpvotePredicateFailure) # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c UpvotePredicateFailure) # gmapT ∷ (∀ b. Data b ⇒ b → b) → UpvotePredicateFailure → UpvotePredicateFailure # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → UpvotePredicateFailure → r # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → UpvotePredicateFailure → r # gmapQ ∷ (∀ d. Data d ⇒ d → u) → UpvotePredicateFailure → [u] # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → UpvotePredicateFailure → u # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → UpvotePredicateFailure → m UpvotePredicateFailure # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UpvotePredicateFailure → m UpvotePredicateFailure # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UpvotePredicateFailure → m UpvotePredicateFailure # | |||||
| Generic UpvotePredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Associated Types
Methods from ∷ UpvotePredicateFailure → Rep UpvotePredicateFailure x # to ∷ Rep UpvotePredicateFailure x → UpvotePredicateFailure # | |||||
| Show UpvotePredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods showsPrec ∷ Int → UpvotePredicateFailure → ShowS # show ∷ UpvotePredicateFailure → String # showList ∷ [UpvotePredicateFailure] → ShowS # | |||||
| Eq UpvotePredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods (==) ∷ UpvotePredicateFailure → UpvotePredicateFailure → Bool # (/=) ∷ UpvotePredicateFailure → UpvotePredicateFailure → Bool # | |||||
| NoThunks UpvotePredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update | |||||
| type Rep UpvotePredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update type Rep UpvotePredicateFailure = D1 ('MetaData "UpvotePredicateFailure" "Byron.Spec.Ledger.Update" "byron-spec-ledger-1.1.0.1-inplace" 'False) ((C1 ('MetaCons "ADDVOTEFailure" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (PredicateFailure ADDVOTE))) :+: C1 ('MetaCons "S_HigherThanThdAndNotAlreadyConfirmed" 'PrefixI 'False) (U1 ∷ Type → Type)) :+: (C1 ('MetaCons "S_CfmThdNotReached" 'PrefixI 'False) (U1 ∷ Type → Type) :+: C1 ('MetaCons "S_AlreadyConfirmed" 'PrefixI 'False) (U1 ∷ Type → Type))) | |||||
Instances
| Data FADS Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Methods gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → FADS → c FADS # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c FADS # dataTypeOf ∷ FADS → DataType # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c FADS) # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c FADS) # gmapT ∷ (∀ b. Data b ⇒ b → b) → FADS → FADS # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → FADS → r # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → FADS → r # gmapQ ∷ (∀ d. Data d ⇒ d → u) → FADS → [u] # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → FADS → u # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → FADS → m FADS # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → FADS → m FADS # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → FADS → m FADS # | |||||||||||||||||||||||||
| Generic FADS Source # | |||||||||||||||||||||||||
| STS FADS Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Associated Types
| |||||||||||||||||||||||||
| Embed FADS UPEND Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Methods wrapFailed ∷ PredicateFailure FADS → PredicateFailure UPEND Source # | |||||||||||||||||||||||||
| type Rep FADS Source # | |||||||||||||||||||||||||
| type BaseM FADS Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Environment FADS Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Event FADS Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type PredicateFailure FADS Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Signal FADS Source # | |||||||||||||||||||||||||
| type State FADS Source # | |||||||||||||||||||||||||
data FadsPredicateFailure Source #
Instances
| Data FadsPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → FadsPredicateFailure → c FadsPredicateFailure # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c FadsPredicateFailure # toConstr ∷ FadsPredicateFailure → Constr # dataTypeOf ∷ FadsPredicateFailure → DataType # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c FadsPredicateFailure) # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c FadsPredicateFailure) # gmapT ∷ (∀ b. Data b ⇒ b → b) → FadsPredicateFailure → FadsPredicateFailure # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → FadsPredicateFailure → r # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → FadsPredicateFailure → r # gmapQ ∷ (∀ d. Data d ⇒ d → u) → FadsPredicateFailure → [u] # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → FadsPredicateFailure → u # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → FadsPredicateFailure → m FadsPredicateFailure # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → FadsPredicateFailure → m FadsPredicateFailure # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → FadsPredicateFailure → m FadsPredicateFailure # | |||||
| Generic FadsPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Associated Types
Methods | |||||
| Show FadsPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods showsPrec ∷ Int → FadsPredicateFailure → ShowS # show ∷ FadsPredicateFailure → String # showList ∷ [FadsPredicateFailure] → ShowS # | |||||
| Eq FadsPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods | |||||
| type Rep FadsPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update | |||||
Instances
| Data UPEND Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Methods gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → UPEND → c UPEND # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c UPEND # dataTypeOf ∷ UPEND → DataType # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c UPEND) # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c UPEND) # gmapT ∷ (∀ b. Data b ⇒ b → b) → UPEND → UPEND # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → UPEND → r # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → UPEND → r # gmapQ ∷ (∀ d. Data d ⇒ d → u) → UPEND → [u] # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → UPEND → u # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → UPEND → m UPEND # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UPEND → m UPEND # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UPEND → m UPEND # | |||||||||||||||||||||||||
| Generic UPEND Source # | |||||||||||||||||||||||||
| STS UPEND Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Associated Types
| |||||||||||||||||||||||||
| Embed FADS UPEND Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Methods wrapFailed ∷ PredicateFailure FADS → PredicateFailure UPEND Source # | |||||||||||||||||||||||||
| Embed UPEND UPIEND Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Methods wrapFailed ∷ PredicateFailure UPEND → PredicateFailure UPIEND Source # | |||||||||||||||||||||||||
| type Rep UPEND Source # | |||||||||||||||||||||||||
| type BaseM UPEND Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Environment UPEND Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update type Environment UPEND = (Slot, Natural, Bimap VKeyGenesis VKey, Map UpId Slot, Map UpId (ProtVer, PParams), BlockCount) | |||||||||||||||||||||||||
| type Event UPEND Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type PredicateFailure UPEND Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Signal UPEND Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type State UPEND Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
findKey ∷ (v → Bool) → Map k v → Maybe (k, v) Source #
Find the key that corresponds to the value satisfying the given predicate. In case zero or more than one key is found this function returns Nothing.
data UpendPredicateFailure Source #
S_TryNextRule is a structural PredicateFailure, used to fail from
one transition rule to the other. The other PredicateFailures are all
throwable.
Constructors
| ProtVerUnknown ProtVer | |
| S_TryNextRule | |
| CanAdopt ProtVer | |
| CannotAdopt ProtVer | |
| NotADelegate VKey | |
| UnconfirmedProposal UpId |
Instances
| Data UpendPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → UpendPredicateFailure → c UpendPredicateFailure # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c UpendPredicateFailure # toConstr ∷ UpendPredicateFailure → Constr # dataTypeOf ∷ UpendPredicateFailure → DataType # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c UpendPredicateFailure) # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c UpendPredicateFailure) # gmapT ∷ (∀ b. Data b ⇒ b → b) → UpendPredicateFailure → UpendPredicateFailure # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → UpendPredicateFailure → r # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → UpendPredicateFailure → r # gmapQ ∷ (∀ d. Data d ⇒ d → u) → UpendPredicateFailure → [u] # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → UpendPredicateFailure → u # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → UpendPredicateFailure → m UpendPredicateFailure # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UpendPredicateFailure → m UpendPredicateFailure # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UpendPredicateFailure → m UpendPredicateFailure # | |||||
| Generic UpendPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Associated Types
Methods from ∷ UpendPredicateFailure → Rep UpendPredicateFailure x # | |||||
| Show UpendPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods showsPrec ∷ Int → UpendPredicateFailure → ShowS # show ∷ UpendPredicateFailure → String # showList ∷ [UpendPredicateFailure] → ShowS # | |||||
| Eq UpendPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods (==) ∷ UpendPredicateFailure → UpendPredicateFailure → Bool # (/=) ∷ UpendPredicateFailure → UpendPredicateFailure → Bool # | |||||
| NoThunks UpendPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update | |||||
| type Rep UpendPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update type Rep UpendPredicateFailure = D1 ('MetaData "UpendPredicateFailure" "Byron.Spec.Ledger.Update" "byron-spec-ledger-1.1.0.1-inplace" 'False) ((C1 ('MetaCons "ProtVerUnknown" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ProtVer)) :+: (C1 ('MetaCons "S_TryNextRule" 'PrefixI 'False) (U1 ∷ Type → Type) :+: C1 ('MetaCons "CanAdopt" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ProtVer)))) :+: (C1 ('MetaCons "CannotAdopt" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ProtVer)) :+: (C1 ('MetaCons "NotADelegate" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 VKey)) :+: C1 ('MetaCons "UnconfirmedProposal" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 UpId))))) | |||||
type UPIEnv = (Slot, Bimap VKeyGenesis VKey, BlockCount, Word8) Source #
The update interface environment is shared amongst various rules, so we define it as an alias here.
type UPIState = ((ProtVer, PParams), [(Slot, (ProtVer, PParams))], Map ApName (ApVer, Slot, Metadata), Map UpId (ProtVer, PParams), Map UpId (ApName, ApVer, Metadata), Map UpId Slot, Set (UpId, VKeyGenesis), Set (ProtVer, VKeyGenesis), Map UpId Slot) Source #
The update interface state is shared amongst various rules, so we define it as an alias here.
endorsements ∷ UPIState → Set (ProtVer, VKeyGenesis) Source #
Instances
| Data UPIREG Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Methods gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → UPIREG → c UPIREG # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c UPIREG # dataTypeOf ∷ UPIREG → DataType # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c UPIREG) # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c UPIREG) # gmapT ∷ (∀ b. Data b ⇒ b → b) → UPIREG → UPIREG # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → UPIREG → r # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → UPIREG → r # gmapQ ∷ (∀ d. Data d ⇒ d → u) → UPIREG → [u] # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → UPIREG → u # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → UPIREG → m UPIREG # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UPIREG → m UPIREG # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UPIREG → m UPIREG # | |||||||||||||||||||||||||
| Generic UPIREG Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| STS UPIREG Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Associated Types
| |||||||||||||||||||||||||
| HasTrace UPIREG Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Associated Types
Methods interpretSTS ∷ BaseEnv UPIREG → BaseM UPIREG a → a Source # envGen ∷ Word64 → Gen (Environment UPIREG) Source # sigGen ∷ SignalGenerator UPIREG Source # trace ∷ BaseEnv UPIREG → Word64 → Gen (Trace UPIREG) Source # traceWithProfile ∷ BaseEnv UPIREG → Word64 → TraceProfile UPIREG → Gen (Trace UPIREG) Source # traceOfLength ∷ BaseEnv UPIREG → Word64 → Gen (Trace UPIREG) Source # traceOfLengthWithInitState ∷ BaseEnv UPIREG → Word64 → (Environment UPIREG → Gen (State UPIREG)) → Gen (Trace UPIREG) Source # | |||||||||||||||||||||||||
| Embed UPREG UPIREG Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Methods wrapFailed ∷ PredicateFailure UPREG → PredicateFailure UPIREG Source # | |||||||||||||||||||||||||
| type Rep UPIREG Source # | |||||||||||||||||||||||||
| type BaseM UPIREG Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Environment UPIREG Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Event UPIREG Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type PredicateFailure UPIREG Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Signal UPIREG Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type State UPIREG Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type BaseEnv UPIREG Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
data UpiregPredicateFailure Source #
Constructors
| UPREGFailure (PredicateFailure UPREG) |
Instances
| Data UpiregPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → UpiregPredicateFailure → c UpiregPredicateFailure # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c UpiregPredicateFailure # toConstr ∷ UpiregPredicateFailure → Constr # dataTypeOf ∷ UpiregPredicateFailure → DataType # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c UpiregPredicateFailure) # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c UpiregPredicateFailure) # gmapT ∷ (∀ b. Data b ⇒ b → b) → UpiregPredicateFailure → UpiregPredicateFailure # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → UpiregPredicateFailure → r # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → UpiregPredicateFailure → r # gmapQ ∷ (∀ d. Data d ⇒ d → u) → UpiregPredicateFailure → [u] # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → UpiregPredicateFailure → u # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → UpiregPredicateFailure → m UpiregPredicateFailure # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UpiregPredicateFailure → m UpiregPredicateFailure # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UpiregPredicateFailure → m UpiregPredicateFailure # | |||||
| Generic UpiregPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Associated Types
Methods from ∷ UpiregPredicateFailure → Rep UpiregPredicateFailure x # to ∷ Rep UpiregPredicateFailure x → UpiregPredicateFailure # | |||||
| Show UpiregPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods showsPrec ∷ Int → UpiregPredicateFailure → ShowS # show ∷ UpiregPredicateFailure → String # showList ∷ [UpiregPredicateFailure] → ShowS # | |||||
| Eq UpiregPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods (==) ∷ UpiregPredicateFailure → UpiregPredicateFailure → Bool # (/=) ∷ UpiregPredicateFailure → UpiregPredicateFailure → Bool # | |||||
| NoThunks UpiregPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update | |||||
| type Rep UpiregPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update type Rep UpiregPredicateFailure = D1 ('MetaData "UpiregPredicateFailure" "Byron.Spec.Ledger.Update" "byron-spec-ledger-1.1.0.1-inplace" 'False) (C1 ('MetaCons "UPREGFailure" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (PredicateFailure UPREG)))) | |||||
ppsUpdateFrom ∷ PParams → Gen PParams Source #
Generate a protocol parameter update from a given set of current
protocol-parameters, ensuring the consistency of the new protocol parameters
w.r.t. the current ones, according to the canUpdate predicate in the
formal specification.
TODO: we can move this into a Generator's module, but first we need to
disentangle the dependencies. Moving this to Byron.Spec.Ledger.Update.Generators will
cause a circular dependency. I think the rules need to be moved into their
own modules.
increasingProbabilityAt ∷ Gen a → (a, a) → Gen a Source #
Generate values the given distribution in 90% of the cases, and values at the bounds of the range in 10% of the cases.
This can be used to generate enough extreme values. The exponential and
linear distributions provided by hedgehog will generate a small percentage
of these (0-1%).
randomUpId ∷ Gen UpId Source #
Generate a random update proposal id, by picking a large number so that the probability of having an update proposal with that id is nearly zero.
Instances
| Data UPIVOTE Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Methods gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → UPIVOTE → c UPIVOTE # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c UPIVOTE # dataTypeOf ∷ UPIVOTE → DataType # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c UPIVOTE) # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c UPIVOTE) # gmapT ∷ (∀ b. Data b ⇒ b → b) → UPIVOTE → UPIVOTE # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → UPIVOTE → r # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → UPIVOTE → r # gmapQ ∷ (∀ d. Data d ⇒ d → u) → UPIVOTE → [u] # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → UPIVOTE → u # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → UPIVOTE → m UPIVOTE # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UPIVOTE → m UPIVOTE # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UPIVOTE → m UPIVOTE # | |||||||||||||||||||||||||
| Generic UPIVOTE Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| STS UPIVOTE Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Associated Types
| |||||||||||||||||||||||||
| Embed UPIVOTE APPLYVOTES Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| Embed UPVOTE UPIVOTE Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Methods wrapFailed ∷ PredicateFailure UPVOTE → PredicateFailure UPIVOTE Source # | |||||||||||||||||||||||||
| type Rep UPIVOTE Source # | |||||||||||||||||||||||||
| type BaseM UPIVOTE Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Environment UPIVOTE Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Event UPIVOTE Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type PredicateFailure UPIVOTE Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Signal UPIVOTE Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type State UPIVOTE Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
data UpivotePredicateFailure Source #
Constructors
| UPVOTEFailure (PredicateFailure UPVOTE) |
Instances
| Data UpivotePredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → UpivotePredicateFailure → c UpivotePredicateFailure # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c UpivotePredicateFailure # toConstr ∷ UpivotePredicateFailure → Constr # dataTypeOf ∷ UpivotePredicateFailure → DataType # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c UpivotePredicateFailure) # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c UpivotePredicateFailure) # gmapT ∷ (∀ b. Data b ⇒ b → b) → UpivotePredicateFailure → UpivotePredicateFailure # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → UpivotePredicateFailure → r # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → UpivotePredicateFailure → r # gmapQ ∷ (∀ d. Data d ⇒ d → u) → UpivotePredicateFailure → [u] # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → UpivotePredicateFailure → u # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → UpivotePredicateFailure → m UpivotePredicateFailure # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UpivotePredicateFailure → m UpivotePredicateFailure # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UpivotePredicateFailure → m UpivotePredicateFailure # | |||||
| Generic UpivotePredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Associated Types
Methods from ∷ UpivotePredicateFailure → Rep UpivotePredicateFailure x # to ∷ Rep UpivotePredicateFailure x → UpivotePredicateFailure # | |||||
| Show UpivotePredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update | |||||
| Eq UpivotePredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update | |||||
| NoThunks UpivotePredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update | |||||
| type Rep UpivotePredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update type Rep UpivotePredicateFailure = D1 ('MetaData "UpivotePredicateFailure" "Byron.Spec.Ledger.Update" "byron-spec-ledger-1.1.0.1-inplace" 'False) (C1 ('MetaCons "UPVOTEFailure" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (PredicateFailure UPVOTE)))) | |||||
data APPLYVOTES Source #
Instances
| Data APPLYVOTES Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Methods gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → APPLYVOTES → c APPLYVOTES # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c APPLYVOTES # toConstr ∷ APPLYVOTES → Constr # dataTypeOf ∷ APPLYVOTES → DataType # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c APPLYVOTES) # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c APPLYVOTES) # gmapT ∷ (∀ b. Data b ⇒ b → b) → APPLYVOTES → APPLYVOTES # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → APPLYVOTES → r # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → APPLYVOTES → r # gmapQ ∷ (∀ d. Data d ⇒ d → u) → APPLYVOTES → [u] # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → APPLYVOTES → u # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → APPLYVOTES → m APPLYVOTES # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → APPLYVOTES → m APPLYVOTES # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → APPLYVOTES → m APPLYVOTES # | |||||||||||||||||||||||||
| Generic APPLYVOTES Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Associated Types
| |||||||||||||||||||||||||
| STS APPLYVOTES Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Associated Types
| |||||||||||||||||||||||||
| Embed APPLYVOTES UPIVOTES Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| Embed UPIVOTE APPLYVOTES Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Rep APPLYVOTES Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type BaseM APPLYVOTES Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Environment APPLYVOTES Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Event APPLYVOTES Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type PredicateFailure APPLYVOTES Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Signal APPLYVOTES Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type State APPLYVOTES Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
data ApplyVotesPredicateFailure Source #
Constructors
| UpivoteFailure (PredicateFailure UPIVOTE) |
Instances
| Data ApplyVotesPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → ApplyVotesPredicateFailure → c ApplyVotesPredicateFailure # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c ApplyVotesPredicateFailure # toConstr ∷ ApplyVotesPredicateFailure → Constr # dataTypeOf ∷ ApplyVotesPredicateFailure → DataType # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c ApplyVotesPredicateFailure) # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c ApplyVotesPredicateFailure) # gmapT ∷ (∀ b. Data b ⇒ b → b) → ApplyVotesPredicateFailure → ApplyVotesPredicateFailure # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → ApplyVotesPredicateFailure → r # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → ApplyVotesPredicateFailure → r # gmapQ ∷ (∀ d. Data d ⇒ d → u) → ApplyVotesPredicateFailure → [u] # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → ApplyVotesPredicateFailure → u # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → ApplyVotesPredicateFailure → m ApplyVotesPredicateFailure # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → ApplyVotesPredicateFailure → m ApplyVotesPredicateFailure # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → ApplyVotesPredicateFailure → m ApplyVotesPredicateFailure # | |||||
| Generic ApplyVotesPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Associated Types
| |||||
| Show ApplyVotesPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods showsPrec ∷ Int → ApplyVotesPredicateFailure → ShowS # | |||||
| Eq ApplyVotesPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update | |||||
| NoThunks ApplyVotesPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update | |||||
| type Rep ApplyVotesPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update type Rep ApplyVotesPredicateFailure = D1 ('MetaData "ApplyVotesPredicateFailure" "Byron.Spec.Ledger.Update" "byron-spec-ledger-1.1.0.1-inplace" 'False) (C1 ('MetaCons "UpivoteFailure" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (PredicateFailure UPIVOTE)))) | |||||
Instances
| Data UPIVOTES Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Methods gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → UPIVOTES → c UPIVOTES # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c UPIVOTES # toConstr ∷ UPIVOTES → Constr # dataTypeOf ∷ UPIVOTES → DataType # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c UPIVOTES) # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c UPIVOTES) # gmapT ∷ (∀ b. Data b ⇒ b → b) → UPIVOTES → UPIVOTES # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → UPIVOTES → r # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → UPIVOTES → r # gmapQ ∷ (∀ d. Data d ⇒ d → u) → UPIVOTES → [u] # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → UPIVOTES → u # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → UPIVOTES → m UPIVOTES # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UPIVOTES → m UPIVOTES # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UPIVOTES → m UPIVOTES # | |||||||||||||||||||||||||
| Generic UPIVOTES Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| STS UPIVOTES Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Associated Types
| |||||||||||||||||||||||||
| HasTrace UPIVOTES Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Associated Types
Methods interpretSTS ∷ BaseEnv UPIVOTES → BaseM UPIVOTES a → a Source # envGen ∷ Word64 → Gen (Environment UPIVOTES) Source # sigGen ∷ SignalGenerator UPIVOTES Source # trace ∷ BaseEnv UPIVOTES → Word64 → Gen (Trace UPIVOTES) Source # traceWithProfile ∷ BaseEnv UPIVOTES → Word64 → TraceProfile UPIVOTES → Gen (Trace UPIVOTES) Source # traceOfLength ∷ BaseEnv UPIVOTES → Word64 → Gen (Trace UPIVOTES) Source # traceOfLengthWithInitState ∷ BaseEnv UPIVOTES → Word64 → (Environment UPIVOTES → Gen (State UPIVOTES)) → Gen (Trace UPIVOTES) Source # | |||||||||||||||||||||||||
| Embed APPLYVOTES UPIVOTES Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Rep UPIVOTES Source # | |||||||||||||||||||||||||
| type BaseM UPIVOTES Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Environment UPIVOTES Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Event UPIVOTES Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type PredicateFailure UPIVOTES Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Signal UPIVOTES Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type State UPIVOTES Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type BaseEnv UPIVOTES Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
data UpivotesPredicateFailure Source #
Constructors
| ApplyVotesFailure (PredicateFailure APPLYVOTES) |
Instances
| Data UpivotesPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → UpivotesPredicateFailure → c UpivotesPredicateFailure # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c UpivotesPredicateFailure # toConstr ∷ UpivotesPredicateFailure → Constr # dataTypeOf ∷ UpivotesPredicateFailure → DataType # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c UpivotesPredicateFailure) # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c UpivotesPredicateFailure) # gmapT ∷ (∀ b. Data b ⇒ b → b) → UpivotesPredicateFailure → UpivotesPredicateFailure # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → UpivotesPredicateFailure → r # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → UpivotesPredicateFailure → r # gmapQ ∷ (∀ d. Data d ⇒ d → u) → UpivotesPredicateFailure → [u] # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → UpivotesPredicateFailure → u # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → UpivotesPredicateFailure → m UpivotesPredicateFailure # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UpivotesPredicateFailure → m UpivotesPredicateFailure # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UpivotesPredicateFailure → m UpivotesPredicateFailure # | |||||
| Generic UpivotesPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Associated Types
| |||||
| Show UpivotesPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods showsPrec ∷ Int → UpivotesPredicateFailure → ShowS # | |||||
| Eq UpivotesPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update | |||||
| NoThunks UpivotesPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update | |||||
| type Rep UpivotesPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update type Rep UpivotesPredicateFailure = D1 ('MetaData "UpivotesPredicateFailure" "Byron.Spec.Ledger.Update" "byron-spec-ledger-1.1.0.1-inplace" 'False) (C1 ('MetaCons "ApplyVotesFailure" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (PredicateFailure APPLYVOTES)))) | |||||
Instances
| Data UPIEND Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Methods gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → UPIEND → c UPIEND # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c UPIEND # dataTypeOf ∷ UPIEND → DataType # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c UPIEND) # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c UPIEND) # gmapT ∷ (∀ b. Data b ⇒ b → b) → UPIEND → UPIEND # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → UPIEND → r # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → UPIEND → r # gmapQ ∷ (∀ d. Data d ⇒ d → u) → UPIEND → [u] # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → UPIEND → u # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → UPIEND → m UPIEND # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UPIEND → m UPIEND # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UPIEND → m UPIEND # | |||||||||||||||||||||||||
| Generic UPIEND Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| STS UPIEND Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Associated Types
| |||||||||||||||||||||||||
| Embed UPEND UPIEND Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Methods wrapFailed ∷ PredicateFailure UPEND → PredicateFailure UPIEND Source # | |||||||||||||||||||||||||
| type Rep UPIEND Source # | |||||||||||||||||||||||||
| type BaseM UPIEND Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Environment UPIEND Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Event UPIEND Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type PredicateFailure UPIEND Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Signal UPIEND Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type State UPIEND Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
data UpiendPredicateFailure Source #
Constructors
| UPENDFailure (PredicateFailure UPEND) |
Instances
| Data UpiendPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → UpiendPredicateFailure → c UpiendPredicateFailure # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c UpiendPredicateFailure # toConstr ∷ UpiendPredicateFailure → Constr # dataTypeOf ∷ UpiendPredicateFailure → DataType # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c UpiendPredicateFailure) # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c UpiendPredicateFailure) # gmapT ∷ (∀ b. Data b ⇒ b → b) → UpiendPredicateFailure → UpiendPredicateFailure # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → UpiendPredicateFailure → r # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → UpiendPredicateFailure → r # gmapQ ∷ (∀ d. Data d ⇒ d → u) → UpiendPredicateFailure → [u] # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → UpiendPredicateFailure → u # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → UpiendPredicateFailure → m UpiendPredicateFailure # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UpiendPredicateFailure → m UpiendPredicateFailure # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UpiendPredicateFailure → m UpiendPredicateFailure # | |||||
| Generic UpiendPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Associated Types
Methods from ∷ UpiendPredicateFailure → Rep UpiendPredicateFailure x # to ∷ Rep UpiendPredicateFailure x → UpiendPredicateFailure # | |||||
| Show UpiendPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods showsPrec ∷ Int → UpiendPredicateFailure → ShowS # show ∷ UpiendPredicateFailure → String # showList ∷ [UpiendPredicateFailure] → ShowS # | |||||
| Eq UpiendPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods (==) ∷ UpiendPredicateFailure → UpiendPredicateFailure → Bool # (/=) ∷ UpiendPredicateFailure → UpiendPredicateFailure → Bool # | |||||
| NoThunks UpiendPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update | |||||
| type Rep UpiendPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update type Rep UpiendPredicateFailure = D1 ('MetaData "UpiendPredicateFailure" "Byron.Spec.Ledger.Update" "byron-spec-ledger-1.1.0.1-inplace" 'False) (C1 ('MetaCons "UPENDFailure" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (PredicateFailure UPEND)))) | |||||
pickHighlyEndorsedProtocolVersion Source #
Given a list of protocol versions and keys endorsing those versions,
generate a protocol-version endorsement, or Nothing if the list of
endorsements is empty. The version to be endorsed will be selected from those
versions that have the most endorsements.
Instances
| Data PVBUMP Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Methods gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → PVBUMP → c PVBUMP # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c PVBUMP # dataTypeOf ∷ PVBUMP → DataType # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c PVBUMP) # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c PVBUMP) # gmapT ∷ (∀ b. Data b ⇒ b → b) → PVBUMP → PVBUMP # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → PVBUMP → r # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → PVBUMP → r # gmapQ ∷ (∀ d. Data d ⇒ d → u) → PVBUMP → [u] # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → PVBUMP → u # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → PVBUMP → m PVBUMP # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → PVBUMP → m PVBUMP # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → PVBUMP → m PVBUMP # | |||||||||||||||||||||||||
| Generic PVBUMP Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| STS PVBUMP Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Associated Types
| |||||||||||||||||||||||||
| Embed PVBUMP UPIEC Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Methods wrapFailed ∷ PredicateFailure PVBUMP → PredicateFailure UPIEC Source # | |||||||||||||||||||||||||
| type Rep PVBUMP Source # | |||||||||||||||||||||||||
| type BaseM PVBUMP Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Environment PVBUMP Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Event PVBUMP Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type PredicateFailure PVBUMP Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Signal PVBUMP Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type State PVBUMP Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
data PvbumpPredicateFailure Source #
Constructors
| NoPVBUMPFailure |
Instances
| Data PvbumpPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → PvbumpPredicateFailure → c PvbumpPredicateFailure # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c PvbumpPredicateFailure # toConstr ∷ PvbumpPredicateFailure → Constr # dataTypeOf ∷ PvbumpPredicateFailure → DataType # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c PvbumpPredicateFailure) # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c PvbumpPredicateFailure) # gmapT ∷ (∀ b. Data b ⇒ b → b) → PvbumpPredicateFailure → PvbumpPredicateFailure # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → PvbumpPredicateFailure → r # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → PvbumpPredicateFailure → r # gmapQ ∷ (∀ d. Data d ⇒ d → u) → PvbumpPredicateFailure → [u] # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → PvbumpPredicateFailure → u # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → PvbumpPredicateFailure → m PvbumpPredicateFailure # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → PvbumpPredicateFailure → m PvbumpPredicateFailure # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → PvbumpPredicateFailure → m PvbumpPredicateFailure # | |||||
| Generic PvbumpPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Associated Types
Methods from ∷ PvbumpPredicateFailure → Rep PvbumpPredicateFailure x # to ∷ Rep PvbumpPredicateFailure x → PvbumpPredicateFailure # | |||||
| Show PvbumpPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods showsPrec ∷ Int → PvbumpPredicateFailure → ShowS # show ∷ PvbumpPredicateFailure → String # showList ∷ [PvbumpPredicateFailure] → ShowS # | |||||
| Eq PvbumpPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods (==) ∷ PvbumpPredicateFailure → PvbumpPredicateFailure → Bool # (/=) ∷ PvbumpPredicateFailure → PvbumpPredicateFailure → Bool # | |||||
| NoThunks PvbumpPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update | |||||
| type Rep PvbumpPredicateFailure Source # | |||||
Instances
| Data UPIEC Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Methods gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → UPIEC → c UPIEC # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c UPIEC # dataTypeOf ∷ UPIEC → DataType # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c UPIEC) # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c UPIEC) # gmapT ∷ (∀ b. Data b ⇒ b → b) → UPIEC → UPIEC # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → UPIEC → r # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → UPIEC → r # gmapQ ∷ (∀ d. Data d ⇒ d → u) → UPIEC → [u] # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → UPIEC → u # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → UPIEC → m UPIEC # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UPIEC → m UPIEC # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UPIEC → m UPIEC # | |||||||||||||||||||||||||
| Generic UPIEC Source # | |||||||||||||||||||||||||
| STS UPIEC Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Associated Types
| |||||||||||||||||||||||||
| Embed PVBUMP UPIEC Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update Methods wrapFailed ∷ PredicateFailure PVBUMP → PredicateFailure UPIEC Source # | |||||||||||||||||||||||||
| type Rep UPIEC Source # | |||||||||||||||||||||||||
| type BaseM UPIEC Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Environment UPIEC Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Event UPIEC Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type PredicateFailure UPIEC Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type Signal UPIEC Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
| type State UPIEC Source # | |||||||||||||||||||||||||
Defined in Byron.Spec.Ledger.Update | |||||||||||||||||||||||||
data UpiecPredicateFailure Source #
Constructors
| PVBUMPFailure (PredicateFailure PVBUMP) |
Instances
| Data UpiecPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → UpiecPredicateFailure → c UpiecPredicateFailure # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c UpiecPredicateFailure # toConstr ∷ UpiecPredicateFailure → Constr # dataTypeOf ∷ UpiecPredicateFailure → DataType # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c UpiecPredicateFailure) # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c UpiecPredicateFailure) # gmapT ∷ (∀ b. Data b ⇒ b → b) → UpiecPredicateFailure → UpiecPredicateFailure # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → UpiecPredicateFailure → r # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → UpiecPredicateFailure → r # gmapQ ∷ (∀ d. Data d ⇒ d → u) → UpiecPredicateFailure → [u] # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → UpiecPredicateFailure → u # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → UpiecPredicateFailure → m UpiecPredicateFailure # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UpiecPredicateFailure → m UpiecPredicateFailure # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → UpiecPredicateFailure → m UpiecPredicateFailure # | |||||
| Generic UpiecPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Associated Types
Methods from ∷ UpiecPredicateFailure → Rep UpiecPredicateFailure x # | |||||
| Show UpiecPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods showsPrec ∷ Int → UpiecPredicateFailure → ShowS # show ∷ UpiecPredicateFailure → String # showList ∷ [UpiecPredicateFailure] → ShowS # | |||||
| Eq UpiecPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update Methods (==) ∷ UpiecPredicateFailure → UpiecPredicateFailure → Bool # (/=) ∷ UpiecPredicateFailure → UpiecPredicateFailure → Bool # | |||||
| NoThunks UpiecPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update | |||||
| type Rep UpiecPredicateFailure Source # | |||||
Defined in Byron.Spec.Ledger.Update type Rep UpiecPredicateFailure = D1 ('MetaData "UpiecPredicateFailure" "Byron.Spec.Ledger.Update" "byron-spec-ledger-1.1.0.1-inplace" 'False) (C1 ('MetaCons "PVBUMPFailure" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (PredicateFailure PVBUMP)))) | |||||
updateProposalAndVotesGen ∷ UPIEnv → UPIState → Gen (Maybe UProp, [Vote]) Source #
Generate an optional update-proposal and a list of votes, given an update environment and state.
The update proposal and votes need to be generated at the same time, since this allow us to generate update votes for update proposals issued in the same block as the votes.
protocolVersionEndorsementGen ∷ UPIEnv → UPIState → Gen ProtVer Source #
Generate an endorsement given an update environment and state.
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 | |