cardano-ledger-shelley-1.19.0.0: Shelley Ledger Executable Model
Safe HaskellNone
LanguageHaskell2010

Test.Cardano.Ledger.Shelley.Examples

Synopsis

Documentation

mkShelleyBasedExampleTxEraTx era ⇒ TxBody 'TopTx era → Tx 'TopTx era Source #

This is not a valid transaction. We don't care, we are only interested in serialisation, not validation.

exampleShelleyBasedShelleyTxBodyShelleyEraTxBody era ⇒ Value era → TxBody 'TopTx era Source #

Shelley era TxBody which is compatible with TxBody of future eras. Doesn't have the ttl field, since that field only exists in Shelley era. For an example which includes the ttl field, use exampleTxBodyShelley.

exampleCerts ∷ (ShelleyEraTxCert era, AtMostEra "Babbage" era) ⇒ StrictSeq (TxCert era) Source #

exampleNewEpochState ∷ (EraTxOut era, EraGov era, EraStake era, EraCertState era, Default (StashedAVVMAddresses era)) ⇒ Value era → PParams era → PParams era → NewEpochState era Source #

This is probably not a valid ledger. We don't care, we are only interested in serialisation, not validation.

testShelleyGenesisShelleyGenesis Source #

These are dummy values.

mkDSIGNKeyPair ∷ ∀ (kd ∷ KeyRole). Word8KeyPair kd Source #

mkKeyPair' from Test.Cardano.Ledger.Shelley.Utils doesn't work for real crypto: https://github.com/intersectmbo/cardano-ledger/issues/1770

mkKeyHash ∷ ∀ (discriminator ∷ KeyRole). IntKeyHash discriminator Source #