cardano-ledger-test-9.9.9.9: Testing harness, tests and benchmarks for Shelley style cardano ledgers
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Cardano.Ledger.Constrained.Preds.Universes

Synopsis

Documentation

genAddrPairNetworkGen (BootstrapAddress c, SigningKey) Source #

Generate a pair, A Byron address, and the key that can sign it.

genByronUnivCrypto c ⇒ NetworkGen (Map (KeyHash 'Payment c) (Addr c, SigningKey)) Source #

Generate a Map, that maps the Hash of a Byron address to a pair of the actual Byron address and the key that can sign it.

bootWitness ∷ (Crypto c, DSIGN c ~ Ed25519DSIGN) ⇒ Hash c EraIndependentTxBody → [BootstrapAddress c] → Map (KeyHash 'Payment c) (Addr c, SigningKey) → Set (BootstrapWitness c) Source #

Given a list of Byron addresses, compute BootStrap witnesses of all of those addresses Can only be used with StandardCrypto

genDatumsEra era ⇒ UnivSizeIntMap (DataHash (EraCrypto era)) (Data era) → Gen [Datum era] Source #

The universe of non-empty Datums. i.e. There are no NoDatum Datums in this list

genDatumEra era ⇒ UnivSizeMap (DataHash (EraCrypto era)) (Data era) → Gen (Datum era) Source #

Only generate non-empty Datums. I.e. There are no NoDatum Datums generated.

genTxOutReflect era ⇒ UnivSize → (CoinMap (ScriptHash (EraCrypto era)) (ScriptF era) → Gen (Value era)) → Proof era → CoinSet (Addr (EraCrypto era)) → Map (ScriptHash (EraCrypto era)) (ScriptF era) → Map (ScriptHash (EraCrypto era)) (ScriptF era) → Map (DataHash (EraCrypto era)) (Data era) → Gen (TxOut era) Source #

genTxOutsReflect era ⇒ UnivSize → (CoinMap (ScriptHash (EraCrypto era)) (ScriptF era) → Gen (Value era)) → Proof era → IntSet (Addr (EraCrypto era)) → Map (ScriptHash (EraCrypto era)) (ScriptF era) → Map (ScriptHash (EraCrypto era)) (ScriptF era) → Map (DataHash (EraCrypto era)) (Data era) → Gen [TxOutF era] Source #

pick1 ∷ [String] → Set t → Gen t Source #

genDataWitsEra era ⇒ Proof era → IntGen (Map (DataHash (EraCrypto era)) (Data era)) Source #

noScriptsProof era → Addr (EraCrypto era) → Bool Source #

genDRepsSet (Credential 'Staking c) → Gen [DRep c] Source #

Make some candidate DReps. The 'Always...' and one from each Credential.

genDRepsTUnivSizeTerm era (Set (Credential 'Staking (EraCrypto era))) → Target era (Gen (Set (DRep (EraCrypto era)))) Source #

txOutTReflect era ⇒ Proof era → Addr (EraCrypto era) → CoinTxOutF era Source #

colTxOutTEraTxOut era ⇒ Proof era → Set (Addr (EraCrypto era)) → Gen (TxOutF era) Source #

The collateral consists only of VKey addresses and the collateral outputs in the UTxO do not contain any non-ADA part

colTxOutSetTEraTxOut era ⇒ Proof era → Set (Addr (EraCrypto era)) → Gen (Set (TxOutF era)) Source #

The collateral consists only of VKey addresses and the collateral outputs in the UTxO do not contain any non-ADA part

ptrUnivTIntTerm era SlotNoTarget era (Gen (Set Ptr)) Source #

addrUnivTProof era → IntTerm era NetworkTerm era (Set (Credential 'Payment (EraCrypto era))) → Term era (Set Ptr) → Term era (Set (Credential 'Staking (EraCrypto era))) → Term era (Map (KeyHash 'Payment (EraCrypto era)) (Addr (EraCrypto era), SigningKey)) → Target era (Gen (Set (Addr (EraCrypto era)))) Source #

cast ∷ ∀ c k. Set (KeyHash 'Witness c) → Set (KeyHash k c) Source #

universePredsReflect era ⇒ UnivSizeProof era → [Pred era] Source #

genValueFUnivSizeProof era → CoinMap (ScriptHash (EraCrypto era)) (ScriptF era) → Gen (Value era) Source #

solveUnivReflect era ⇒ UnivSizeProof era → Gen (Subst era) Source #

universeStageReflect era ⇒ UnivSizeProof era → Subst era → Gen (Subst era) Source #

demoReplModeIO () Source #

mainIO () Source #