Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- class (EraTxOut era, Default (StashedAVVMAddresses era), EraGov era) ⇒ CanStartFromGenesis era where
- type AdditionalGenesisConfig era ∷ Type
- fromShelleyPParams ∷ AdditionalGenesisConfig era → PParams (ShelleyEra (EraCrypto era)) → PParams era
- initialState ∷ ShelleyGenesis (EraCrypto era) → AdditionalGenesisConfig era → NewEpochState era
- initialStateFromGenesis ∷ ∀ era. CanStartFromGenesis era ⇒ ShelleyGenesis (EraCrypto era) → AdditionalGenesisConfig era → NewEpochState era
Documentation
class (EraTxOut era, Default (StashedAVVMAddresses era), EraGov era) ⇒ CanStartFromGenesis era where Source #
Deprecated: Use EraTransition
instead
Indicates that this era may be bootstrapped from ShelleyGenesis
.
type AdditionalGenesisConfig era ∷ Type Source #
Additional genesis configuration necessary for this era.
type AdditionalGenesisConfig era = ()
fromShelleyPParams ∷ AdditionalGenesisConfig era → PParams (ShelleyEra (EraCrypto era)) → PParams era Source #
Deprecated: Use tcInitialPParamsG
instead
Upgrade PParams
from ShelleyEra
all the way to the current one.
initialState ∷ ShelleyGenesis (EraCrypto era) → AdditionalGenesisConfig era → NewEpochState era Source #
Deprecated: Use createInitialState
instead
Construct an initial state given a ShelleyGenesis
and any appropriate
AdditionalGenesisConfig
for the era.
Instances
Crypto c ⇒ CanStartFromGenesis (ShelleyEra c) Source # | |
Defined in Cardano.Ledger.Shelley.API.Genesis type AdditionalGenesisConfig (ShelleyEra c) Source # fromShelleyPParams ∷ AdditionalGenesisConfig (ShelleyEra c) → PParams (ShelleyEra (EraCrypto (ShelleyEra c))) → PParams (ShelleyEra c) Source # initialState ∷ ShelleyGenesis (EraCrypto (ShelleyEra c)) → AdditionalGenesisConfig (ShelleyEra c) → NewEpochState (ShelleyEra c) Source # |
initialStateFromGenesis Source #
∷ ∀ era. CanStartFromGenesis era | |
⇒ ShelleyGenesis (EraCrypto era) | Genesis type |
→ AdditionalGenesisConfig era | |
→ NewEpochState era |
Helper function for constructing the initial state for any era