cardano-ledger-shelley-1.15.0.0: Shelley Ledger Executable Model
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Cardano.Ledger.Shelley.Arbitrary

Synopsis

Documentation

collectionDatumMaxSizeInt Source #

Max size of generated Metadatum List and Map

metadataMaxSizeInt Source #

Max size of generated Metadata map

genMetadataEra era ⇒ IntGen (StrictMaybe (ShelleyTxAuxData era)) Source #

Generate ShelleyTxAuxData (and compute hash) with given frequency

genMetadata'Era era ⇒ Gen (ShelleyTxAuxData era) Source #

Generate Metadata (and compute hash) of size up to metadataMaxSize

genUtf8StringOfSizeIntGen [Char] Source #

Produce an arbitrary Unicode string such that it's UTF8 encoding size in bytes is exactly the given length.

data RawSeed Source #

Instances

Instances details
Arbitrary RawSeed Source # 
Instance details

Defined in Test.Cardano.Ledger.Shelley.Arbitrary

Show RawSeed Source # 
Instance details

Defined in Test.Cardano.Ledger.Shelley.Arbitrary

Eq RawSeed Source # 
Instance details

Defined in Test.Cardano.Ledger.Shelley.Arbitrary

Methods

(==)RawSeedRawSeedBool Source #

(/=)RawSeedRawSeedBool Source #

newtype ASC Source #

Constructors

ASC ActiveSlotCoeff 

Instances

Instances details
Arbitrary ASC Source # 
Instance details

Defined in Test.Cardano.Ledger.Shelley.Arbitrary

Methods

arbitraryGen ASC Source #

shrinkASC → [ASC] Source #

Show ASC Source # 
Instance details

Defined in Test.Cardano.Ledger.Shelley.Arbitrary

Methods

showsPrecIntASCShowS Source #

showASCString Source #

showList ∷ [ASC] → ShowS Source #

Orphan instances

Arbitrary CompactTxOut Source # 
Instance details

Arbitrary Metadatum Source # 
Instance details

Arbitrary NominalDiffTimeMicro Source # 
Instance details

Arbitrary AccountState Source # 
Instance details

Arbitrary Likelihood Source # 
Instance details

Arbitrary LogWeight Source # 
Instance details

Arbitrary PerformanceEstimate Source # 
Instance details

Arbitrary StakeShare Source # 
Instance details

Arbitrary VotingPeriod Source # 
Instance details

Arbitrary MIRPot Source # 
Instance details

(Era era, Arbitrary (PredicateFailure (EraRule "LEDGER" era))) ⇒ Arbitrary (ApplyTxError era) Source # 
Instance details

(Crypto c, Arbitrary (PParams (ShelleyEra c))) ⇒ Arbitrary (ShelleyGenesis c) Source # 
Instance details

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

Arbitrary (PParams era) ⇒ Arbitrary (FuturePParams era) Source # 
Instance details

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

(EraTxOut era, Arbitrary (TxOut era), Arbitrary (GovState era)) ⇒ Arbitrary (EpochState era) Source # 
Instance details

Methods

arbitraryGen (EpochState era) Source #

shrinkEpochState era → [EpochState era] Source #

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

(EraTxOut era, Arbitrary (TxOut era), Arbitrary (GovState era)) ⇒ Arbitrary (LedgerState era) Source # 
Instance details

(EraTxOut era, Arbitrary (TxOut era), Arbitrary (Value era), Arbitrary (PParams era), Arbitrary (StashedAVVMAddresses era), Arbitrary (GovState era)) ⇒ Arbitrary (NewEpochState era) Source # 
Instance details

(EraTxOut era, Arbitrary (TxOut era), Arbitrary (GovState era)) ⇒ Arbitrary (UTxOState era) Source # 
Instance details

Methods

arbitraryGen (UTxOState era) Source #

shrinkUTxOState era → [UTxOState era] Source #

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

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

Methods

arbitraryGen (Update era) Source #

shrinkUpdate era → [Update era] Source #

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

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

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

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

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

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

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

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

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

(Era era, Arbitrary (PredicateFailure (EraRule "DELPL" era))) ⇒ Arbitrary (ShelleyDelegsPredFailure era) Source # 
Instance details

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

(Era era, Arbitrary (PredicateFailure (EraRule "DELEGS" era)), Arbitrary (PredicateFailure (EraRule "UTXOW" era))) ⇒ Arbitrary (ShelleyLedgerPredFailure era) Source # 
Instance details

(Era era, Arbitrary (PredicateFailure (EraRule "LEDGER" era))) ⇒ Arbitrary (ShelleyLedgersPredFailure era) Source # 
Instance details

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

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

(Era era, Arbitrary (Value era), Arbitrary (TxOut era), Arbitrary (EraRuleFailure "PPUP" era)) ⇒ Arbitrary (ShelleyUtxoPredFailure era) Source # 
Instance details

(Era era, Arbitrary (PredicateFailure (EraRule "UTXO" era))) ⇒ Arbitrary (ShelleyUtxowPredFailure era) Source # 
Instance details

(ShelleyEraScript era, NativeScript era ~ MultiSig era) ⇒ Arbitrary (MultiSig era) Source # 
Instance details

Methods

arbitraryGen (MultiSig era) Source #

shrinkMultiSig era → [MultiSig era] Source #

(EraTx era, Arbitrary (TxBody era), Arbitrary (Value era), Arbitrary (TxAuxData era), Arbitrary (Script era), Arbitrary (TxWits era)) ⇒ Arbitrary (ShelleyTx era) Source # 
Instance details

Methods

arbitraryGen (ShelleyTx era) Source #

shrinkShelleyTx era → [ShelleyTx era] Source #

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

(EraTxOut era, ShelleyEraScript era, Arbitrary (PParamsUpdate era), Arbitrary (TxOut era), Arbitrary (TxCert era), EncCBOR (TxCert era)) ⇒ Arbitrary (ShelleyTxBody era) Source # 
Instance details

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

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

Methods

arbitraryGen (MIRCert c) Source #

shrinkMIRCert c → [MIRCert c] Source #

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

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

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

(EraTxOut era, Arbitrary (Value era)) ⇒ Arbitrary (ShelleyTxOut era) Source # 
Instance details

(Era era, EraScript era, Arbitrary (Script era)) ⇒ Arbitrary (ShelleyTxWits era) Source # 
Instance details

(Arbitrary k, Arbitrary v) ⇒ Arbitrary (ListMap k v) Source # 
Instance details

Methods

arbitraryGen (ListMap k v) Source #

shrinkListMap k v → [ListMap k v] Source #

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

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

(Crypto c, a ~ RewardAns c) ⇒ Arbitrary (RewardPulser c ShelleyBase a) Source # 
Instance details