cardano-ledger-api-1.12.0.0: Public API for the cardano ledger codebase
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Cardano.Ledger.Api.Examples.Consensus.Shelley

Synopsis

Documentation

exampleTx ∷ ∀ era. EraTx era ⇒ (TxBody era → [KeyPair 'Witness] → TxWits era) → TxBody era → TxAuxData era → Tx era Source #

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

exampleNewEpochState ∷ ∀ era. (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.

ledgerExamplesShelleyShelleyLedgerExamples ShelleyEra Source #

ShelleyLedgerExamples for Shelley era

testShelleyGenesisShelleyGenesis Source #

These are dummy values.

helper functions used in other examples

mkKeyHash ∷ ∀ discriminator. IntKeyHash discriminator Source #

mkWitnessesPreAlonzoEraTx era ⇒ Proxy era → TxBody era → [KeyPair 'Witness] → ShelleyTxWits era Source #

from Translation

emptyFromByronTranslationContextFromByronTranslationContext Source #

Trivial FromByronTranslationContext value, for use in cases where we do not need to translate from Byron to Shelley.