module Cardano.Ledger.Api.Transition (
EraTransition,
TransitionConfig,
mkLatestTransitionConfig,
mkTransitionConfig,
mkShelleyTransitionConfig,
tcShelleyGenesisL,
tcPreviousEraConfigL,
tcTranslationContextL,
EraGenesis (..),
ShelleyGenesis (..),
AlonzoGenesis (..),
ConwayGenesis (..),
NoGenesis (..),
tcInitialPParamsG,
tcInitialFundsL,
tcInitialStakingL,
createInitialState,
injectIntoTestState,
) where
import Cardano.Ledger.Alonzo.Genesis (AlonzoGenesis (..))
import Cardano.Ledger.Api.Era (LatestKnownEra)
import Cardano.Ledger.Conway.Genesis (ConwayGenesis (..))
import Cardano.Ledger.Genesis (EraGenesis (..), NoGenesis (..))
import Cardano.Ledger.Shelley.Genesis (ShelleyGenesis (..))
import Cardano.Ledger.Shelley.Transition (
EraTransition (..),
TransitionConfig,
createInitialState,
mkShelleyTransitionConfig,
tcInitialFundsL,
tcInitialStakingL,
)
import Data.Function ((&))
mkLatestTransitionConfig ::
ShelleyGenesis ->
AlonzoGenesis ->
ConwayGenesis ->
TransitionConfig LatestKnownEra
mkLatestTransitionConfig :: ShelleyGenesis
-> AlonzoGenesis
-> ConwayGenesis
-> TransitionConfig LatestKnownEra
mkLatestTransitionConfig ShelleyGenesis
shelleyGenesis AlonzoGenesis
alonzoGenesis ConwayGenesis
conwayGenesis =
ShelleyGenesis -> TransitionConfig ShelleyEra
mkShelleyTransitionConfig ShelleyGenesis
shelleyGenesis
forall a b. a -> (a -> b) -> b
& forall era.
EraTransition era =>
TranslationContext era
-> TransitionConfig (PreviousEra era) -> TransitionConfig era
mkTransitionConfig forall era. NoGenesis era
NoGenesis
forall a b. a -> (a -> b) -> b
& forall era.
EraTransition era =>
TranslationContext era
-> TransitionConfig (PreviousEra era) -> TransitionConfig era
mkTransitionConfig forall era. NoGenesis era
NoGenesis
forall a b. a -> (a -> b) -> b
& forall era.
EraTransition era =>
TranslationContext era
-> TransitionConfig (PreviousEra era) -> TransitionConfig era
mkTransitionConfig AlonzoGenesis
alonzoGenesis
forall a b. a -> (a -> b) -> b
& forall era.
EraTransition era =>
TranslationContext era
-> TransitionConfig (PreviousEra era) -> TransitionConfig era
mkTransitionConfig forall era. NoGenesis era
NoGenesis
forall a b. a -> (a -> b) -> b
& forall era.
EraTransition era =>
TranslationContext era
-> TransitionConfig (PreviousEra era) -> TransitionConfig era
mkTransitionConfig ConwayGenesis
conwayGenesis