Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This module is the Shelley Hard Fork Combinator
Synopsis
- type ProtocolShelley = HardForkProtocol '[ShelleyBlock (TPraos StandardCrypto) StandardShelley]
- type ShelleyBlockHFC proto era = HardForkBlock '[ShelleyBlock proto era]
- data ShelleyPartialLedgerConfig era = ShelleyPartialLedgerConfig {}
- crossEraForecastAcrossShelley ∷ ∀ eraFrom eraTo protoFrom protoTo. (TranslateProto protoFrom protoTo, LedgerSupportsProtocol (ShelleyBlock protoFrom eraFrom)) ⇒ RequiringBoth WrapLedgerConfig (CrossEraForecaster LedgerState WrapLedgerView) (ShelleyBlock protoFrom eraFrom) (ShelleyBlock protoTo eraTo)
- forecastAcrossShelley ∷ ∀ protoFrom protoTo eraFrom eraTo. (TranslateProto protoFrom protoTo, LedgerSupportsProtocol (ShelleyBlock protoFrom eraFrom)) ⇒ ShelleyLedgerConfig eraFrom → ShelleyLedgerConfig eraTo → Bound → SlotNo → LedgerState (ShelleyBlock protoFrom eraFrom) → Except OutsideForecastRange (WrapLedgerView (ShelleyBlock protoTo eraTo))
- translateChainDepStateAcrossShelley ∷ ∀ eraFrom eraTo protoFrom protoTo. TranslateProto protoFrom protoTo ⇒ RequiringBoth WrapConsensusConfig (Translate WrapChainDepState) (ShelleyBlock protoFrom eraFrom) (ShelleyBlock protoTo eraTo)
Documentation
type ProtocolShelley = HardForkProtocol '[ShelleyBlock (TPraos StandardCrypto) StandardShelley] Source #
type ShelleyBlockHFC proto era = HardForkBlock '[ShelleyBlock proto era] Source #
Shelley as the single era in the hard fork combinator
data ShelleyPartialLedgerConfig era Source #
ShelleyPartialLedgerConfig | |
|
Instances
crossEraForecastAcrossShelley ∷ ∀ eraFrom eraTo protoFrom protoTo. (TranslateProto protoFrom protoTo, LedgerSupportsProtocol (ShelleyBlock protoFrom eraFrom)) ⇒ RequiringBoth WrapLedgerConfig (CrossEraForecaster LedgerState WrapLedgerView) (ShelleyBlock protoFrom eraFrom) (ShelleyBlock protoTo eraTo) Source #
forecastAcrossShelley Source #
∷ ∀ protoFrom protoTo eraFrom eraTo. (TranslateProto protoFrom protoTo, LedgerSupportsProtocol (ShelleyBlock protoFrom eraFrom)) | |
⇒ ShelleyLedgerConfig eraFrom | |
→ ShelleyLedgerConfig eraTo | |
→ Bound | Transition between the two eras |
→ SlotNo | Forecast for this slot |
→ LedgerState (ShelleyBlock protoFrom eraFrom) | |
→ Except OutsideForecastRange (WrapLedgerView (ShelleyBlock protoTo eraTo)) |
Forecast from a Shelley-based era to the next Shelley-based era.
translateChainDepStateAcrossShelley ∷ ∀ eraFrom eraTo protoFrom protoTo. TranslateProto protoFrom protoTo ⇒ RequiringBoth WrapConsensusConfig (Translate WrapChainDepState) (ShelleyBlock protoFrom eraFrom) (ShelleyBlock protoTo eraTo) Source #