Safe Haskell | None |
---|---|
Language | Haskell2010 |
Ouroboros.Consensus.HardFork.Combinator.AcrossEras
Synopsis
- newtype PerEraBlockConfig (xs ∷ [Type]) = PerEraBlockConfig {}
- newtype PerEraChainOrderConfig (xs ∷ [Type]) = PerEraChainOrderConfig {}
- newtype PerEraCodecConfig (xs ∷ [Type]) = PerEraCodecConfig {}
- newtype PerEraConsensusConfig (xs ∷ [Type]) = PerEraConsensusConfig {}
- newtype PerEraLedgerConfig (xs ∷ [Type]) = PerEraLedgerConfig {}
- newtype PerEraStorageConfig (xs ∷ [Type]) = PerEraStorageConfig {}
- newtype SomeErasCanBeLeader (xs ∷ [Type]) = SomeErasCanBeLeader {}
- newtype OneEraApplyTxErr (xs ∷ [Type]) = OneEraApplyTxErr {}
- newtype OneEraBlock (xs ∷ [Type]) = OneEraBlock {
- getOneEraBlock ∷ NS I xs
- newtype OneEraCannotForge (xs ∷ [Type]) = OneEraCannotForge {}
- newtype OneEraEnvelopeErr (xs ∷ [Type]) = OneEraEnvelopeErr {}
- newtype OneEraForgeStateInfo (xs ∷ [Type]) = OneEraForgeStateInfo {}
- newtype OneEraForgeStateUpdateError (xs ∷ [Type]) = OneEraForgeStateUpdateError {}
- newtype OneEraGenTx (xs ∷ [Type]) = OneEraGenTx {
- getOneEraGenTx ∷ NS GenTx xs
- newtype OneEraGenTxId (xs ∷ [Type]) = OneEraGenTxId {}
- newtype OneEraHash (xs ∷ [k]) = OneEraHash {}
- newtype OneEraHeader (xs ∷ [Type]) = OneEraHeader {
- getOneEraHeader ∷ NS Header xs
- newtype OneEraIsLeader (xs ∷ [Type]) = OneEraIsLeader {}
- newtype OneEraLedgerError (xs ∷ [Type]) = OneEraLedgerError {}
- newtype OneEraLedgerEvent (xs ∷ [Type]) = OneEraLedgerEvent {}
- newtype OneEraLedgerUpdate (xs ∷ [Type]) = OneEraLedgerUpdate {}
- newtype OneEraLedgerWarning (xs ∷ [Type]) = OneEraLedgerWarning {}
- newtype OneEraSelectView (xs ∷ [Type]) = OneEraSelectView {}
- newtype OneEraTentativeHeaderState (xs ∷ [Type]) = OneEraTentativeHeaderState {}
- newtype OneEraTentativeHeaderView (xs ∷ [Type]) = OneEraTentativeHeaderView {}
- newtype OneEraTipInfo (xs ∷ [Type]) = OneEraTipInfo {}
- newtype OneEraValidateView (xs ∷ [Type]) = OneEraValidateView {}
- newtype OneEraValidatedGenTx (xs ∷ [Type]) = OneEraValidatedGenTx {}
- newtype OneEraValidationErr (xs ∷ [Type]) = OneEraValidationErr {}
- data EraMismatch = EraMismatch {}
- newtype MismatchEraInfo (xs ∷ [Type]) = MismatchEraInfo {}
- mismatchFutureEra ∷ ∀ (xs ∷ [Type]) x. SListI xs ⇒ MismatchEraInfo (x ': xs) → NS SingleEraInfo xs
- mismatchOneEra ∷ MismatchEraInfo '[b] → Void
- mkEraMismatch ∷ ∀ (xs ∷ [Type]). SListI xs ⇒ MismatchEraInfo xs → EraMismatch
- getSameValue ∷ ∀ {k} (xs ∷ [k]) a. (IsNonEmpty xs, Eq a, SListI xs, HasCallStack) ⇒ NP (K a ∷ k → Type) xs → a
- oneEraBlockHeader ∷ ∀ (xs ∷ [Type]). CanHardFork xs ⇒ OneEraBlock xs → OneEraHeader xs
Value for each era
newtype PerEraBlockConfig (xs ∷ [Type]) Source #
Constructors
PerEraBlockConfig | |
Fields |
Instances
CanHardFork xs ⇒ NoThunks (PerEraBlockConfig xs) Source # | |
newtype PerEraChainOrderConfig (xs ∷ [Type]) Source #
Constructors
PerEraChainOrderConfig | |
Fields |
newtype PerEraCodecConfig (xs ∷ [Type]) Source #
Constructors
PerEraCodecConfig | |
Fields |
Instances
CanHardFork xs ⇒ NoThunks (PerEraCodecConfig xs) Source # | |
newtype PerEraConsensusConfig (xs ∷ [Type]) Source #
Constructors
PerEraConsensusConfig | |
Fields |
Instances
CanHardFork xs ⇒ NoThunks (PerEraConsensusConfig xs) Source # | |
newtype PerEraLedgerConfig (xs ∷ [Type]) Source #
Constructors
PerEraLedgerConfig | |
Fields |
Instances
CanHardFork xs ⇒ NoThunks (PerEraLedgerConfig xs) Source # | |
SerialiseHFC xs ⇒ SerialiseNodeToClient (HardForkBlock xs) (PerEraLedgerConfig xs) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.Serialisation.SerialiseNodeToClient Methods encodeNodeToClient ∷ CodecConfig (HardForkBlock xs) → BlockNodeToClientVersion (HardForkBlock xs) → PerEraLedgerConfig xs → Encoding Source # decodeNodeToClient ∷ CodecConfig (HardForkBlock xs) → BlockNodeToClientVersion (HardForkBlock xs) → ∀ s. Decoder s (PerEraLedgerConfig xs) Source # |
newtype PerEraStorageConfig (xs ∷ [Type]) Source #
Constructors
PerEraStorageConfig | |
Fields |
Instances
CanHardFork xs ⇒ NoThunks (PerEraStorageConfig xs) Source # | |
Values for some eras
newtype SomeErasCanBeLeader (xs ∷ [Type]) Source #
Constructors
SomeErasCanBeLeader | |
Fields |
Value for one era
newtype OneEraApplyTxErr (xs ∷ [Type]) Source #
Constructors
OneEraApplyTxErr | |
Fields |
Instances
CanHardFork xs ⇒ Show (OneEraApplyTxErr xs) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.AcrossEras Methods showsPrec ∷ Int → OneEraApplyTxErr xs → ShowS # show ∷ OneEraApplyTxErr xs → String # showList ∷ [OneEraApplyTxErr xs] → ShowS # | |
CanHardFork xs ⇒ Eq (OneEraApplyTxErr xs) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.AcrossEras Methods (==) ∷ OneEraApplyTxErr xs → OneEraApplyTxErr xs → Bool # (/=) ∷ OneEraApplyTxErr xs → OneEraApplyTxErr xs → Bool # |
newtype OneEraBlock (xs ∷ [Type]) Source #
Constructors
OneEraBlock | |
Fields
|
Instances
CanHardFork xs ⇒ Show (OneEraBlock xs) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.AcrossEras Methods showsPrec ∷ Int → OneEraBlock xs → ShowS # show ∷ OneEraBlock xs → String # showList ∷ [OneEraBlock xs] → ShowS # |
newtype OneEraCannotForge (xs ∷ [Type]) Source #
Constructors
OneEraCannotForge | |
Fields |
Instances
CanHardFork xs ⇒ Show (OneEraCannotForge xs) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.AcrossEras Methods showsPrec ∷ Int → OneEraCannotForge xs → ShowS # show ∷ OneEraCannotForge xs → String # showList ∷ [OneEraCannotForge xs] → ShowS # |
newtype OneEraEnvelopeErr (xs ∷ [Type]) Source #
Constructors
OneEraEnvelopeErr | |
Fields |
Instances
CanHardFork xs ⇒ Show (OneEraEnvelopeErr xs) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.AcrossEras Methods showsPrec ∷ Int → OneEraEnvelopeErr xs → ShowS # show ∷ OneEraEnvelopeErr xs → String # showList ∷ [OneEraEnvelopeErr xs] → ShowS # | |
CanHardFork xs ⇒ Eq (OneEraEnvelopeErr xs) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.AcrossEras Methods (==) ∷ OneEraEnvelopeErr xs → OneEraEnvelopeErr xs → Bool # (/=) ∷ OneEraEnvelopeErr xs → OneEraEnvelopeErr xs → Bool # | |
CanHardFork xs ⇒ NoThunks (OneEraEnvelopeErr xs) Source # | |
newtype OneEraForgeStateInfo (xs ∷ [Type]) Source #
Constructors
OneEraForgeStateInfo | |
Fields |
Instances
CanHardFork xs ⇒ Show (OneEraForgeStateInfo xs) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.AcrossEras Methods showsPrec ∷ Int → OneEraForgeStateInfo xs → ShowS # show ∷ OneEraForgeStateInfo xs → String # showList ∷ [OneEraForgeStateInfo xs] → ShowS # |
newtype OneEraForgeStateUpdateError (xs ∷ [Type]) Source #
Constructors
OneEraForgeStateUpdateError | |
Instances
CanHardFork xs ⇒ Show (OneEraForgeStateUpdateError xs) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.AcrossEras Methods showsPrec ∷ Int → OneEraForgeStateUpdateError xs → ShowS # show ∷ OneEraForgeStateUpdateError xs → String # showList ∷ [OneEraForgeStateUpdateError xs] → ShowS # |
newtype OneEraGenTx (xs ∷ [Type]) Source #
Constructors
OneEraGenTx | |
Fields
|
Instances
CanHardFork xs ⇒ Show (OneEraGenTx xs) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.AcrossEras Methods showsPrec ∷ Int → OneEraGenTx xs → ShowS # show ∷ OneEraGenTx xs → String # showList ∷ [OneEraGenTx xs] → ShowS # | |
CanHardFork xs ⇒ Eq (OneEraGenTx xs) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.AcrossEras Methods (==) ∷ OneEraGenTx xs → OneEraGenTx xs → Bool # (/=) ∷ OneEraGenTx xs → OneEraGenTx xs → Bool # | |
CanHardFork xs ⇒ NoThunks (OneEraGenTx xs) Source # | |
newtype OneEraGenTxId (xs ∷ [Type]) Source #
Constructors
OneEraGenTxId | |
Fields |
Instances
newtype OneEraHash (xs ∷ [k]) Source #
The hash for an era
This type is special: we don't use an NS here, because the hash by itself
should not allow us to differentiate between eras. If it did, the size
of the hash would necessarily have to increase, and that leads to trouble.
So, the type parameter xs
here is merely a phantom one, and we just store
the underlying raw hash.
Constructors
OneEraHash | |
Fields |
Instances
newtype OneEraHeader (xs ∷ [Type]) Source #
Constructors
OneEraHeader | |
Fields
|
Instances
CanHardFork xs ⇒ Show (OneEraHeader xs) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.AcrossEras Methods showsPrec ∷ Int → OneEraHeader xs → ShowS # show ∷ OneEraHeader xs → String # showList ∷ [OneEraHeader xs] → ShowS # | |
CanHardFork xs ⇒ NoThunks (OneEraHeader xs) Source # | |
newtype OneEraIsLeader (xs ∷ [Type]) Source #
Constructors
OneEraIsLeader | |
Fields |
newtype OneEraLedgerError (xs ∷ [Type]) Source #
Constructors
OneEraLedgerError | |
Fields |
Instances
CanHardFork xs ⇒ Show (OneEraLedgerError xs) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.AcrossEras Methods showsPrec ∷ Int → OneEraLedgerError xs → ShowS # show ∷ OneEraLedgerError xs → String # showList ∷ [OneEraLedgerError xs] → ShowS # | |
CanHardFork xs ⇒ Eq (OneEraLedgerError xs) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.AcrossEras Methods (==) ∷ OneEraLedgerError xs → OneEraLedgerError xs → Bool # (/=) ∷ OneEraLedgerError xs → OneEraLedgerError xs → Bool # | |
CanHardFork xs ⇒ NoThunks (OneEraLedgerError xs) Source # | |
newtype OneEraLedgerEvent (xs ∷ [Type]) Source #
Constructors
OneEraLedgerEvent | |
Fields |
newtype OneEraLedgerUpdate (xs ∷ [Type]) Source #
Constructors
OneEraLedgerUpdate | |
Fields |
Instances
CanHardFork xs ⇒ Show (OneEraLedgerUpdate xs) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.AcrossEras Methods showsPrec ∷ Int → OneEraLedgerUpdate xs → ShowS # show ∷ OneEraLedgerUpdate xs → String # showList ∷ [OneEraLedgerUpdate xs] → ShowS # | |
CanHardFork xs ⇒ Eq (OneEraLedgerUpdate xs) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.AcrossEras Methods (==) ∷ OneEraLedgerUpdate xs → OneEraLedgerUpdate xs → Bool # (/=) ∷ OneEraLedgerUpdate xs → OneEraLedgerUpdate xs → Bool # |
newtype OneEraLedgerWarning (xs ∷ [Type]) Source #
Constructors
OneEraLedgerWarning | |
Fields |
Instances
CanHardFork xs ⇒ Show (OneEraLedgerWarning xs) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.AcrossEras Methods showsPrec ∷ Int → OneEraLedgerWarning xs → ShowS # show ∷ OneEraLedgerWarning xs → String # showList ∷ [OneEraLedgerWarning xs] → ShowS # | |
CanHardFork xs ⇒ Eq (OneEraLedgerWarning xs) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.AcrossEras Methods (==) ∷ OneEraLedgerWarning xs → OneEraLedgerWarning xs → Bool # (/=) ∷ OneEraLedgerWarning xs → OneEraLedgerWarning xs → Bool # |
newtype OneEraSelectView (xs ∷ [Type]) Source #
Constructors
OneEraSelectView | |
Fields |
Instances
CanHardFork xs ⇒ Show (OneEraSelectView xs) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.AcrossEras Methods showsPrec ∷ Int → OneEraSelectView xs → ShowS # show ∷ OneEraSelectView xs → String # showList ∷ [OneEraSelectView xs] → ShowS # | |
CanHardFork xs ⇒ Eq (OneEraSelectView xs) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.AcrossEras Methods (==) ∷ OneEraSelectView xs → OneEraSelectView xs → Bool # (/=) ∷ OneEraSelectView xs → OneEraSelectView xs → Bool # | |
CanHardFork xs ⇒ NoThunks (OneEraSelectView xs) Source # | |
newtype OneEraTentativeHeaderState (xs ∷ [Type]) Source #
Constructors
OneEraTentativeHeaderState | |
Instances
CanHardFork xs ⇒ Show (OneEraTentativeHeaderState xs) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.AcrossEras Methods showsPrec ∷ Int → OneEraTentativeHeaderState xs → ShowS # show ∷ OneEraTentativeHeaderState xs → String # showList ∷ [OneEraTentativeHeaderState xs] → ShowS # | |
CanHardFork xs ⇒ NoThunks (OneEraTentativeHeaderState xs) Source # | |
newtype OneEraTentativeHeaderView (xs ∷ [Type]) Source #
Constructors
OneEraTentativeHeaderView | |
Instances
CanHardFork xs ⇒ Show (OneEraTentativeHeaderView xs) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.AcrossEras Methods showsPrec ∷ Int → OneEraTentativeHeaderView xs → ShowS # show ∷ OneEraTentativeHeaderView xs → String # showList ∷ [OneEraTentativeHeaderView xs] → ShowS # |
newtype OneEraTipInfo (xs ∷ [Type]) Source #
Constructors
OneEraTipInfo | |
Fields |
Instances
CanHardFork xs ⇒ Show (OneEraTipInfo xs) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.AcrossEras Methods showsPrec ∷ Int → OneEraTipInfo xs → ShowS # show ∷ OneEraTipInfo xs → String # showList ∷ [OneEraTipInfo xs] → ShowS # | |
CanHardFork xs ⇒ Eq (OneEraTipInfo xs) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.AcrossEras Methods (==) ∷ OneEraTipInfo xs → OneEraTipInfo xs → Bool # (/=) ∷ OneEraTipInfo xs → OneEraTipInfo xs → Bool # | |
CanHardFork xs ⇒ NoThunks (OneEraTipInfo xs) Source # | |
newtype OneEraValidateView (xs ∷ [Type]) Source #
Constructors
OneEraValidateView | |
Fields |
newtype OneEraValidatedGenTx (xs ∷ [Type]) Source #
Constructors
OneEraValidatedGenTx | |
Fields |
Instances
CanHardFork xs ⇒ Show (OneEraValidatedGenTx xs) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.AcrossEras Methods showsPrec ∷ Int → OneEraValidatedGenTx xs → ShowS # show ∷ OneEraValidatedGenTx xs → String # showList ∷ [OneEraValidatedGenTx xs] → ShowS # | |
CanHardFork xs ⇒ Eq (OneEraValidatedGenTx xs) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.AcrossEras Methods (==) ∷ OneEraValidatedGenTx xs → OneEraValidatedGenTx xs → Bool # (/=) ∷ OneEraValidatedGenTx xs → OneEraValidatedGenTx xs → Bool # | |
CanHardFork xs ⇒ NoThunks (OneEraValidatedGenTx xs) Source # | |
newtype OneEraValidationErr (xs ∷ [Type]) Source #
Constructors
OneEraValidationErr | |
Fields |
Instances
CanHardFork xs ⇒ Show (OneEraValidationErr xs) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.AcrossEras Methods showsPrec ∷ Int → OneEraValidationErr xs → ShowS # show ∷ OneEraValidationErr xs → String # showList ∷ [OneEraValidationErr xs] → ShowS # | |
CanHardFork xs ⇒ Eq (OneEraValidationErr xs) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.AcrossEras Methods (==) ∷ OneEraValidationErr xs → OneEraValidationErr xs → Bool # (/=) ∷ OneEraValidationErr xs → OneEraValidationErr xs → Bool # | |
CanHardFork xs ⇒ NoThunks (OneEraValidationErr xs) Source # | |
Value for two different eras
data EraMismatch Source #
Extra info for errors caused by applying a block, header, transaction, or query from one era to a ledger from a different era.
Constructors
EraMismatch | |
Fields
|
Instances
newtype MismatchEraInfo (xs ∷ [Type]) Source #
Constructors
MismatchEraInfo | |
Fields
|
Instances
All SingleEraBlock xs ⇒ Show (MismatchEraInfo xs) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.AcrossEras Methods showsPrec ∷ Int → MismatchEraInfo xs → ShowS # show ∷ MismatchEraInfo xs → String # showList ∷ [MismatchEraInfo xs] → ShowS # | |
All SingleEraBlock xs ⇒ Eq (MismatchEraInfo xs) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.AcrossEras Methods (==) ∷ MismatchEraInfo xs → MismatchEraInfo xs → Bool # (/=) ∷ MismatchEraInfo xs → MismatchEraInfo xs → Bool # | |
CanHardFork xs ⇒ NoThunks (MismatchEraInfo xs) Source # | |
mismatchFutureEra ∷ ∀ (xs ∷ [Type]) x. SListI xs ⇒ MismatchEraInfo (x ': xs) → NS SingleEraInfo xs Source #
A mismatch _must_ involve a future era
mismatchOneEra ∷ MismatchEraInfo '[b] → Void Source #
mkEraMismatch ∷ ∀ (xs ∷ [Type]). SListI xs ⇒ MismatchEraInfo xs → EraMismatch Source #
When a transaction or block from a certain era was applied to a ledger
from another era, we get a MismatchEraInfo
.
Given such a MismatchEraInfo
, return the name of the era of the
transaction/block and the name of the era of the ledger.
Utility
getSameValue ∷ ∀ {k} (xs ∷ [k]) a. (IsNonEmpty xs, Eq a, SListI xs, HasCallStack) ⇒ NP (K a ∷ k → Type) xs → a Source #
oneEraBlockHeader ∷ ∀ (xs ∷ [Type]). CanHardFork xs ⇒ OneEraBlock xs → OneEraHeader xs Source #