cardano-ledger-conway-1.18.0.0: Cardano ledger with an updated on-chain governance system.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Cardano.Ledger.Conway.Arbitrary

Synopsis

Documentation

genGovAction ∷ ∀ era. (Era era, Arbitrary (PParamsHKD StrictMaybe era)) ⇒ Proposals era → Gen (GovAction era) Source #

data ShuffledGovActionStates era Source #

These lists of GovActionStates contain only one of a priority. In other words, no two GovActionStates in the list have the same actionPriority.

Orphan instances

Arbitrary GovActionIx Source # 
Instance details

Arbitrary Vote Source # 
Instance details

Arbitrary DRepVotingThresholds Source # 
Instance details

Arbitrary PoolVotingThresholds Source # 
Instance details

Crypto c ⇒ Arbitrary (ConwayGenesis c) Source # 
Instance details

(EraPParams era, Arbitrary (PParams era), Arbitrary (PParamsHKD StrictMaybe era)) ⇒ Arbitrary (ConwayGovState era) Source # 
Instance details

(Arbitrary (PParams era), Arbitrary (PParamsUpdate era), Era era) ⇒ Arbitrary (DRepPulsingState era) Source # 
Instance details

(Era era, Arbitrary (PParamsUpdate era)) ⇒ Arbitrary (PulsingSnapshot era) Source # 
Instance details

(Era era, Arbitrary (PParams era)) ⇒ Arbitrary (EnactState era) Source # 
Instance details

Methods

arbitraryGen (EnactState era) Source #

shrinkEnactState era → [EnactState era] Source #

Era era ⇒ Arbitrary (RatifyEnv era) Source # 
Instance details

Methods

arbitraryGen (RatifyEnv era) Source #

shrinkRatifyEnv era → [RatifyEnv era] Source #

(Era era, Arbitrary (PParams era), Arbitrary (PParamsUpdate era)) ⇒ Arbitrary (RatifyState era) Source # 
Instance details

Era era ⇒ Arbitrary (Committee era) Source # 
Instance details

Methods

arbitraryGen (Committee era) Source #

shrinkCommittee era → [Committee era] Source #

Era era ⇒ Arbitrary (Constitution era) Source # 
Instance details

(Era era, Arbitrary (PParamsUpdate era)) ⇒ Arbitrary (GovAction era) Source # 
Instance details

Methods

arbitraryGen (GovAction era) Source #

shrinkGovAction era → [GovAction era] Source #

Crypto c ⇒ Arbitrary (GovActionId c) Source # 
Instance details

(Era era, Arbitrary (PParamsUpdate era)) ⇒ Arbitrary (GovActionState era) Source # 
Instance details

(Era era, Arbitrary (PParamsUpdate era)) ⇒ Arbitrary (ProposalProcedure era) Source # 
Instance details

Crypto c ⇒ Arbitrary (Voter c) Source # 
Instance details

Methods

arbitraryGen (Voter c) Source #

shrinkVoter c → [Voter c] Source #

Era era ⇒ Arbitrary (VotingProcedure era) Source # 
Instance details

Era era ⇒ Arbitrary (VotingProcedures era) Source # 
Instance details

(EraPParams era, Arbitrary (PParamsUpdate era), Arbitrary (PParamsHKD StrictMaybe era)) ⇒ Arbitrary (Proposals era) Source # 
Instance details

Methods

arbitraryGen (Proposals era) Source #

shrinkProposals era → [Proposals era] Source #

Arbitrary (UpgradeConwayPParams Identity) Source # 
Instance details

(Era era, Arbitrary (PredicateFailure (EraRule "DELEG" era)), Arbitrary (PredicateFailure (EraRule "POOL" era)), Arbitrary (PredicateFailure (EraRule "GOVCERT" era))) ⇒ Arbitrary (ConwayCertPredFailure era) Source # 
Instance details

(Era era, Arbitrary (PredicateFailure (EraRule "CERT" era))) ⇒ Arbitrary (ConwayCertsPredFailure era) Source # 
Instance details

Era era ⇒ Arbitrary (ConwayDelegPredFailure era) Source # 
Instance details

(Era era, Arbitrary (Event (EraRule "POOLREAP" era)), Arbitrary (Event (EraRule "SNAP" era))) ⇒ Arbitrary (ConwayEpochEvent era) Source # 
Instance details

(Era era, Arbitrary (PParamsHKD StrictMaybe era)) ⇒ Arbitrary (ConwayGovPredFailure era) Source # 
Instance details

(Era era, Arbitrary (PParamsHKD Identity era)) ⇒ Arbitrary (GovEnv era) Source # 
Instance details

Methods

arbitraryGen (GovEnv era) Source #

shrinkGovEnv era → [GovEnv era] Source #

(EraPParams era, Arbitrary (PParamsUpdate era), Arbitrary (TxCert era)) ⇒ Arbitrary (GovSignal era) Source # 
Instance details

Methods

arbitraryGen (GovSignal era) Source #

shrinkGovSignal era → [GovSignal era] Source #

Era era ⇒ Arbitrary (ConwayGovCertPredFailure era) Source # 
Instance details

(Era era, Arbitrary (PredicateFailure (EraRule "UTXOW" era)), Arbitrary (PredicateFailure (EraRule "CERTS" era)), Arbitrary (PredicateFailure (EraRule "GOV" era))) ⇒ Arbitrary (ConwayLedgerPredFailure era) Source # 
Instance details

(Era era, Arbitrary (Event (EraRule "RUPD" era))) ⇒ Arbitrary (ConwayNewEpochEvent era) Source # 
Instance details

(EraTxOut era, Arbitrary (Value era), Arbitrary (TxOut era), Arbitrary (PredicateFailure (EraRule "UTXOS" era))) ⇒ Arbitrary (ConwayUtxoPredFailure era) Source # 
Instance details

(Era era, Arbitrary (CollectError era)) ⇒ Arbitrary (ConwayUtxosPredFailure era) Source # 
Instance details

(Era era, Arbitrary (PredicateFailure (EraRule "UTXO" era)), Arbitrary (TxCert era), Arbitrary (PlutusPurpose AsItem era), Arbitrary (PlutusPurpose AsIx era)) ⇒ Arbitrary (ConwayUtxowPredFailure era) Source # 
Instance details

(ConwayEraTxBody era, Arbitrary (Sized (TxOut era)), Arbitrary (TxOut era), Arbitrary (Value era), Arbitrary (Script era), Arbitrary (PParamsUpdate era)) ⇒ Arbitrary (ConwayTxBody era) Source # 
Instance details

Crypto c ⇒ Arbitrary (ConwayDelegCert c) Source # 
Instance details

Crypto c ⇒ Arbitrary (ConwayGovCert c) Source # 
Instance details

Era era ⇒ Arbitrary (ConwayTxCert era) Source # 
Instance details

Crypto c ⇒ Arbitrary (Delegatee c) Source # 
Instance details

(EraPParams era, Arbitrary (PlutusPurpose AsItem era), Arbitrary (PlutusPurpose AsIx era), Arbitrary (TxCert era), Arbitrary (PParamsHKD StrictMaybe era)) ⇒ Arbitrary (ConwayContextError era) Source # 
Instance details

Crypto (EraCrypto era) ⇒ Arbitrary (GovPurposeId p era) Source # 
Instance details

Methods

arbitraryGen (GovPurposeId p era) Source #

shrinkGovPurposeId p era → [GovPurposeId p era] Source #

(∀ (p ∷ GovActionPurpose). Arbitrary (f (GovPurposeId p era))) ⇒ Arbitrary (GovRelation f era) Source # 
Instance details

Methods

arbitraryGen (GovRelation f era) Source #

shrinkGovRelation f era → [GovRelation f era] Source #

Era era ⇒ Arbitrary (ConwayPParams Identity era) Source # 
Instance details

Era era ⇒ Arbitrary (ConwayPParams StrictMaybe era) Source # 
Instance details

(Era era, Arbitrary (TxCert era), Arbitrary (PParamsHKD StrictMaybe era)) ⇒ Arbitrary (ConwayPlutusPurpose AsItem era) Source # 
Instance details

Era era ⇒ Arbitrary (ConwayPlutusPurpose AsIx era) Source # 
Instance details

(Era era, Arbitrary (TxCert era), Arbitrary (PParamsHKD StrictMaybe era)) ⇒ Arbitrary (ConwayPlutusPurpose AsIxItem era) Source # 
Instance details

Arbitrary (HKD f a) ⇒ Arbitrary (THKD t f a) Source # 
Instance details

Methods

arbitraryGen (THKD t f a) Source #

shrinkTHKD t f a → [THKD t f a] Source #