tx-generator-2.11: A transaction workload generator for Cardano clusters
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cardano.TxGenerator.Utils

Synopsis

Documentation

liftAnyEra :: (forall era. IsCardanoEra era => f1 era -> f2 era) -> InAnyCardanoEra f1 -> InAnyCardanoEra f2 Source #

liftAnyEra applies a function to the value in InAnyCardanoEra regardless of which particular era.

keyAddress :: forall era. IsShelleyBasedEra era => NetworkId -> SigningKey PaymentKey -> AddressInEra era Source #

keyAddress determines an address for the relevant era.

mkTxFee :: IsShelleyBasedEra era => Lovelace -> TxFee era Source #

mkTxFee reinterprets the Either returned by txFeesExplicitInEra with TxFee constructors.

mkTxValidityUpperBound :: forall era. IsShelleyBasedEra era => SlotNo -> TxValidityUpperBound era Source #

mkTxValidityUpperBound rules out needing the TxValidityNoUpperBound with the constraint of IsShelleyBasedEra.

mkTxInModeCardano :: IsShelleyBasedEra era => Tx era -> TxInMode Source #

mkTxInModeCardano never uses the TxInByronSpecial constructor because its type enforces it being a Shelley-based era.