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.Crypto
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 ::
Crypto c =>
ShelleyGenesis c ->
AlonzoGenesis ->
ConwayGenesis c ->
TransitionConfig (LatestKnownEra c)
mkLatestTransitionConfig :: forall c.
Crypto c =>
ShelleyGenesis c
-> AlonzoGenesis
-> ConwayGenesis c
-> TransitionConfig (LatestKnownEra c)
mkLatestTransitionConfig ShelleyGenesis c
shelleyGenesis AlonzoGenesis
alonzoGenesis ConwayGenesis c
conwayGenesis =
forall c. ShelleyGenesis c -> TransitionConfig (ShelleyEra c)
mkShelleyTransitionConfig ShelleyGenesis c
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 c
conwayGenesis