cardano-ledger-alonzo-1.12.0.0: Cardano ledger introducing Plutus Core
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Cardano.Ledger.Alonzo.Arbitrary

Synopsis

Documentation

mkPlutusScript' ∷ ∀ era l. (HasCallStack, AlonzoEraScript era, PlutusLanguage l) ⇒ Plutus l → Script era Source #

Partial version of mkPlutusScript

genScripts ∷ ∀ era. (EraScript era, Arbitrary (Script era)) ⇒ Gen (Map (ScriptHash (EraCrypto era)) (Script era)) Source #

Orphan instances

Arbitrary AlonzoGenesis Source # 
Instance details

Arbitrary CoinPerWord Source # 
Instance details

Arbitrary OrdExUnits Source # 
Instance details

Arbitrary FailureDescription Source # 
Instance details

Arbitrary TagMismatchDescription Source # 
Instance details

Arbitrary IsValid Source # 
Instance details

Arbitrary Data Source # 
Instance details

(Era era, Arbitrary (PlutusPurpose AsItem era), Arbitrary (ContextError era)) ⇒ Arbitrary (CollectError era) Source # 
Instance details

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

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

(Era era, Arbitrary (EraRuleFailure "PPUP" era), Arbitrary (PlutusPurpose AsItem era), Arbitrary (ContextError era)) ⇒ Arbitrary (AlonzoUtxosPredFailure era) Source # 
Instance details

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

(AlonzoEraScript era, Script era ~ AlonzoScript era, NativeScript era ~ Timelock era) ⇒ Arbitrary (AlonzoScript era) Source # 
Instance details

(Arbitrary (TxBody era), Arbitrary (TxWits era), Arbitrary (TxAuxData era)) ⇒ Arbitrary (AlonzoTx era) Source # 
Instance details

Methods

arbitraryGen (AlonzoTx era) Source #

shrinkAlonzoTx era → [AlonzoTx era] Source #

(AlonzoEraScript era, AlonzoEraPParams era, Arbitrary (PParams era), Arbitrary (PlutusPurpose AsIx era)) ⇒ Arbitrary (ScriptIntegrity era) Source # 
Instance details

(Arbitrary (AlonzoScript era), AlonzoEraScript era) ⇒ Arbitrary (AlonzoTxAuxData era) Source # 
Instance details

(EraTxOut era, EraTxCert era, Arbitrary (TxOut era), Arbitrary (PParamsHKD StrictMaybe era), Arbitrary (TxCert era)) ⇒ Arbitrary (AlonzoTxBody era) Source # 
Instance details

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

(Era era, Arbitrary (Script era), AlonzoEraScript era, Arbitrary (PlutusPurpose AsIx era)) ⇒ Arbitrary (AlonzoTxWits era) Source # 
Instance details

(AlonzoEraScript era, Arbitrary (PlutusPurpose AsIx era)) ⇒ Arbitrary (Redeemers era) Source # 
Instance details

Methods

arbitraryGen (Redeemers era) Source #

shrinkRedeemers era → [Redeemers era] Source #

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

Methods

arbitraryGen (TxDats era) Source #

shrinkTxDats era → [TxDats era] Source #

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

Methods

arbitraryGen (BinaryData era) Source #

shrinkBinaryData era → [BinaryData era] Source #

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

Methods

arbitraryGen (Data era) Source #

shrinkData era → [Data era] Source #

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

Methods

arbitraryGen (Datum era) Source #

shrinkDatum era → [Datum era] Source #

Arbitrary (AlonzoPParams Identity era) Source # 
Instance details

Arbitrary (AlonzoPParams StrictMaybe era) Source # 
Instance details

(Era era, Arbitrary (TxCert era)) ⇒ Arbitrary (AlonzoPlutusPurpose AsItem era) Source # 
Instance details

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

(Era era, Arbitrary (TxCert era)) ⇒ Arbitrary (AlonzoPlutusPurpose AsIxItem era) Source # 
Instance details

Arbitrary it ⇒ Arbitrary (AsItem ix it) Source # 
Instance details

Methods

arbitraryGen (AsItem ix it) Source #

shrinkAsItem ix it → [AsItem ix it] Source #

Arbitrary ix ⇒ Arbitrary (AsIx ix it) Source # 
Instance details

Methods

arbitraryGen (AsIx ix it) Source #

shrinkAsIx ix it → [AsIx ix it] Source #

(Arbitrary ix, Arbitrary it) ⇒ Arbitrary (AsIxItem ix it) Source # 
Instance details

Methods

arbitraryGen (AsIxItem ix it) Source #

shrinkAsIxItem ix it → [AsIxItem ix it] Source #