Constructors
AllIssuerKeysaikCold :: KeyPair raikVrf :: VRFKeyPair caikHot :: NonEmpty (KESPeriod, KESKeyPair c)aikColdKeyHash :: KeyHash r
:: a typeCtrl KGHC 9.14.1 · lts/ghc-9.14.x · d82dee8 · 2026-10-12
Modulecardano-ledger-shelley-test-1.9.0.0Haskell2010
AllIssuerKeysaikCold :: KeyPair raikVrf :: VRFKeyPair caikHot :: NonEmpty (KESPeriod, KESKeyPair c)aikColdKeyHash :: KeyHash rVRFKeyPairvrfSignKey :: !SignKeyVRF (VRF c)vrfVerKey :: !VerKeyVRF (VRF c)KESKeyPairkesSignKey :: !UnsoundPureSignKeyKES (KES c)kesVerKey :: !VerKeyKES (KES c)Generator environment.
GenEnvgeKeySpace :: KeySpace c erageScriptSpapce :: ScriptSpace erageConstants :: Constants(ApplyTx era, EraGen era, EraGov era, EraUTxO era, EraCertState era, ShelleyEraAccounts era, MinLEDGER_STS era, Embed (EraRule "DELPL"
era) (CERTS era), Environment (EraRule "DELPL"
era) ~ DelplEnv era, State (EraRule "DELPL"
era) ~ CertState era, Signal (EraRule "DELPL"
era) ~ TxCert era, PredicateFailure (EraRule "DELPL"
era) ~ ShelleyDelplPredFailure era, Embed (EraRule "DELEGS"
era) (LEDGER era), Embed (EraRule "UTXOW"
era) (LEDGER era), Environment (EraRule "UTXOW"
era) ~ UtxoEnv era, State (EraRule "UTXOW"
era) ~ UTxOState era, Signal (EraRule "UTXOW"
era) ~ StAnnTx TopTx era, Environment (EraRule "DELEGS"
era) ~ DelegsEnv era, State (EraRule "DELEGS"
era) ~ CertState era, Signal (EraRule "DELEGS"
era) ~ Seq (TxCert era), AtMostEra "Babbage"
era, EraRule "LEDGER"
era ~ LEDGER era, Crypto c) => HasTrace (LEDGER era) (GenEnv c era)Defined in cardano-ledger-shelley-test-1.9.0.0 · Test.Cardano.Ledger.Shelley.Generator.Trace.Ledger · orphan(EraGen era, EraBlockBody era, EraBlockHeader (BHeader MockCrypto) era, ApplyBlock TestBlockHeader era, ShelleyEraForecast era, MinLEDGER_STS era, MinCHAIN_STS era, Embed (EraRule "BBODY"
era) (CHAIN era), Environment (EraRule "BBODY"
era) ~ BbodyEnv era, State (EraRule "BBODY"
era) ~ ShelleyBbodyState era, Signal (EraRule "BBODY"
era) ~ BbodySignal era, Embed (EraRule "TICKN"
era) (CHAIN era), Environment (EraRule "TICKN"
era) ~ TicknEnv, State (EraRule "TICKN"
era) ~ TicknState, Signal (EraRule "TICKN"
era) ~ Bool, Embed (EraRule "TICK"
era) (CHAIN era), Environment (EraRule "TICK"
era) ~ (), State (EraRule "TICK"
era) ~ NewEpochState era, Signal (EraRule "TICK"
era) ~ SlotNo, HasTrace (EraRule "LEDGERS"
era) (GenEnv MockCrypto era), PredicateFailure (EraRule "TICKF"
era) ~ Void) => HasTrace (CHAIN era) (GenEnv MockCrypto era)Defined in cardano-ledger-shelley-test-1.9.0.0 · Test.Cardano.Ledger.Shelley.Generator.Trace.Chain · orphan(EraGen era, Embed (EraRule "DELPL"
era) (CERTS era), Environment (EraRule "DELPL"
era) ~ DelplEnv era, State (EraRule "DELPL"
era) ~ CertState era, Signal (EraRule "DELPL"
era) ~ TxCert era, AtMostEra "Babbage"
era, EraCertState era, Crypto c) => HasTrace (CERTS era) (GenEnv c era)Defined in cardano-ledger-shelley-test-1.9.0.0 · Test.Cardano.Ledger.Shelley.Generator.Trace.TxCert(Crypto c, ApplyTx era, EraGen era, EraGov era, EraUTxO era, EraStake era, EraCertState era, ShelleyEraAccounts era, MinLEDGER_STS era, Embed (EraRule "DELPL"
era) (CERTS era), Environment (EraRule "DELPL"
era) ~ DelplEnv era, State (EraRule "DELPL"
era) ~ CertState era, Signal (EraRule "DELPL"
era) ~ TxCert era, PredicateFailure (EraRule "DELPL"
era) ~ ShelleyDelplPredFailure era, Embed (EraRule "DELEG"
era) (DELPL era), Embed (EraRule "LEDGER"
era) (LEDGERS era), AtMostEra "Babbage"
era) => HasTrace (LEDGERS era) (GenEnv c era)Defined in cardano-ledger-shelley-test-1.9.0.0 · Test.Cardano.Ledger.Shelley.Generator.Trace.Ledger · orphanScriptSpacessScripts3 :: [TwoPhase3ArgInfo era]A list of Two Phase 3 Arg Scripts and their associated data we can use.
ssScripts2 :: [TwoPhase2ArgInfo era]A list of Two Phase 2 Arg Scripts and their associated data we can use.
ssHash3 :: Map ScriptHash (TwoPhase3ArgInfo era)ssHash2 :: Map ScriptHash (TwoPhase2ArgInfo era)Show (Script era) => Show (ScriptSpace era)Defined in cardano-ledger-shelley-test-1.9.0.0 · Test.Cardano.Ledger.Shelley.Generator.CoreTwoPhase3ArgInfogetScript3 :: Script eraA Plutus Script
getHash3 :: ScriptHashIts ScriptHash
getData3 :: DataA Data that will make it succeed
getRedeemer3 :: (Data, Natural, Natural)A Redeemer that will make it succeed
getSucceeds3 :: BoolShow (Script era) => Show (TwoPhase3ArgInfo era)Defined in cardano-ledger-shelley-test-1.9.0.0 · Test.Cardano.Ledger.Shelley.Generator.CoreTwoPhase2ArgInfogetScript2 :: Script eraA Plutus Script
getHash2 :: ScriptHashIts ScriptHash
getRedeemer2 :: (Data, Natural, Natural)A Redeemer that will make it succeed
getSucceeds2 :: BoolShow (Script era) => Show (TwoPhase2ArgInfo era)Defined in cardano-ledger-shelley-test-1.9.0.0 · Test.Cardano.Ledger.Shelley.Generator.Coretype ScriptInfo era = (Map ScriptHash (TwoPhase3ArgInfo era), Map ScriptHash (TwoPhase2ArgInfo era))Collection of all keys which are required to generate a trace.
These are the _only_ keys which should be involved in the trace.
KeySpace_ksCoreNodes :: [(GenesisKeyPair c, AllIssuerKeys c GenesisDelegate)]ksGenesisDelegates :: [AllIssuerKeys c GenesisDelegate]Bag of keys to be used for future genesis delegates
ksStakePools :: [AllIssuerKeys c StakePool]Bag of keys to be used for future stake pools
ksKeyPairs :: KeyPairsBag of keys to be used for future payment/staking addresses
ksMSigScripts :: [(Script era, Script era)]ksIndexedPaymentKeys :: Map (KeyHash Payment) (KeyPair Payment)Index over the payment keys in ksKeyPairs
ksIndexedStakingKeys :: Map (KeyHash Staking) (KeyPair Staking)Index over the staking keys in ksKeyPairs
ksIndexedGenDelegates :: Map (KeyHash GenesisDelegate) (AllIssuerKeys c GenesisDelegate)Index over the cold key hashes in Genesis Delegates
ksIndexedPayScripts :: Map ScriptHash (Script era, Script era)Index over the pay script hashes in Script pairs
ksIndexedStakeScripts :: Map ScriptHash (Script era, Script era)Index over the stake script hashes in Script pairs
pattern KeySpace :: ScriptClass era => [(GenesisKeyPair c, AllIssuerKeys c GenesisDelegate)] -> [AllIssuerKeys c GenesisDelegate] -> [AllIssuerKeys c StakePool] -> KeyPairs -> [(Script era, Script era)] -> KeySpace c eraFind first matching key pair for address. Returns the matching key pair
where the first element of the pair matched the hash in addr.
Find first matching key pair for a credential. Returns the matching key pair
where the first element of the pair matched the hash in addr.
Find matching multisig scripts for a credential.
Find first matching script for a credential.
Find first matching multisig script for an address.
Generates a list of Coin values of length between lower and upper
and with values between minCoin and maxCoin.
Generator for a natural number between lower and upper
Generator for a Word64 between lower and upper
Creates the UTxO for a new ledger with the specified genesis TxId and transaction outputs.
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%).
Select one random verification staking key from list of pairs of KeyPair.
Takes a sequence of KES hot keys and checks to see whether there is one whose range contains the current KES period. If so, return its index in the list of hot keys.
True if the given slot is within the last `2 * stabilityWindow` slots of the current epoch.
For testing purposes, generate a deterministic key pair given a seed.
For testing purposes, generate a deterministic genesis key pair given a seed.
Account with empty treasury
For use in the Serialisation and Example Tests, which assume Shelley, Allegra, or Mary Eras.
Find the preallocated Script from its Hash.