| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Ouroboros.Consensus.HardFork.Combinator.AcrossEras
Synopsis
- newtype PerEraConsensusConfig xs = PerEraConsensusConfig {}
- newtype PerEraBlockConfig xs = PerEraBlockConfig {}
- newtype PerEraChainSelConfig xs = PerEraChainSelConfig {}
- newtype PerEraCodecConfig xs = PerEraCodecConfig {}
- newtype PerEraLedgerConfig xs = PerEraLedgerConfig {}
- newtype PerEraStorageConfig xs = PerEraStorageConfig {}
- newtype OneEraApplyTxErr xs = OneEraApplyTxErr {}
- newtype OneEraBlock xs = OneEraBlock {
- getOneEraBlock :: NS I xs
- newtype OneEraCanBeLeader xs = OneEraCanBeLeader {}
- newtype OneEraCannotForge xs = OneEraCannotForge {}
- newtype OneEraEnvelopeErr xs = OneEraEnvelopeErr {}
- newtype OneEraForgeStateInfo xs = OneEraForgeStateInfo {}
- newtype OneEraForgeStateUpdateError xs = OneEraForgeStateUpdateError {}
- newtype OneEraGenTx xs = OneEraGenTx {
- getOneEraGenTx :: NS GenTx xs
- newtype OneEraGenTxId xs = OneEraGenTxId {
- getOneEraGenTxId :: NS WrapGenTxId xs
- newtype OneEraHash (xs :: [k]) = OneEraHash {}
- newtype OneEraHeader xs = OneEraHeader {
- getOneEraHeader :: NS Header xs
- newtype OneEraIsLeader xs = OneEraIsLeader {
- getOneEraIsLeader :: NS WrapIsLeader xs
- newtype OneEraLedgerError xs = OneEraLedgerError {}
- newtype OneEraLedgerUpdate xs = OneEraLedgerUpdate {}
- newtype OneEraLedgerWarning xs = OneEraLedgerWarning {}
- newtype OneEraSelectView xs = OneEraSelectView {}
- newtype OneEraTipInfo xs = OneEraTipInfo {
- getOneEraTipInfo :: NS WrapTipInfo xs
- newtype OneEraValidateView xs = OneEraValidateView {}
- newtype OneEraValidationErr xs = OneEraValidationErr {}
- newtype MismatchEraInfo xs = MismatchEraInfo {}
- mismatchOneEra :: MismatchEraInfo '[b] -> Void
- mismatchFutureEra :: SListI xs => MismatchEraInfo (x ': xs) -> NS SingleEraInfo xs
- data EraMismatch = EraMismatch {
- ledgerEraName :: !Text
- otherEraName :: !Text
- mkEraMismatch :: SListI xs => MismatchEraInfo xs -> EraMismatch
- oneEraBlockHeader :: CanHardFork xs => OneEraBlock xs -> OneEraHeader xs
- getSameValue :: forall xs a. (IsNonEmpty xs, Eq a, SListI xs, HasCallStack) => NP (K a) xs -> a
Value for each era
newtype PerEraConsensusConfig xs Source #
Constructors
| PerEraConsensusConfig | |
Fields | |
Instances
| CanHardFork xs => NoThunks (PerEraConsensusConfig xs) Source # | |
newtype PerEraBlockConfig xs Source #
Constructors
| PerEraBlockConfig | |
Fields | |
Instances
| CanHardFork xs => NoThunks (PerEraBlockConfig xs) Source # | |
newtype PerEraChainSelConfig xs Source #
Constructors
| PerEraChainSelConfig | |
Fields | |
Instances
| CanHardFork xs => Eq (PerEraChainSelConfig xs) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.AcrossEras Methods (==) :: PerEraChainSelConfig xs -> PerEraChainSelConfig xs -> Bool # (/=) :: PerEraChainSelConfig xs -> PerEraChainSelConfig xs -> Bool # | |
| CanHardFork xs => Show (PerEraChainSelConfig xs) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.AcrossEras Methods showsPrec :: Int -> PerEraChainSelConfig xs -> ShowS # show :: PerEraChainSelConfig xs -> String # showList :: [PerEraChainSelConfig xs] -> ShowS # | |
| CanHardFork xs => NoThunks (PerEraChainSelConfig xs) Source # | |
newtype PerEraCodecConfig xs Source #
Constructors
| PerEraCodecConfig | |
Fields | |
Instances
| CanHardFork xs => NoThunks (PerEraCodecConfig xs) Source # | |
newtype PerEraLedgerConfig xs Source #
Constructors
| PerEraLedgerConfig | |
Fields | |
Instances
| CanHardFork xs => NoThunks (PerEraLedgerConfig xs) Source # | |
newtype PerEraStorageConfig xs Source #
Constructors
| PerEraStorageConfig | |
Fields | |
Instances
| CanHardFork xs => NoThunks (PerEraStorageConfig xs) Source # | |
Value for one era
newtype OneEraApplyTxErr xs Source #
Constructors
| OneEraApplyTxErr | |
Fields | |
Instances
| CanHardFork xs => Eq (OneEraApplyTxErr xs) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.AcrossEras Methods (==) :: OneEraApplyTxErr xs -> OneEraApplyTxErr xs -> Bool # (/=) :: OneEraApplyTxErr xs -> OneEraApplyTxErr xs -> Bool # | |
| 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 # | |
newtype OneEraBlock xs 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 OneEraCanBeLeader xs Source #
Constructors
| OneEraCanBeLeader | |
Fields | |
newtype OneEraCannotForge xs 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 Source #
Constructors
| OneEraEnvelopeErr | |
Fields | |
Instances
| 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 => 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 => NoThunks (OneEraEnvelopeErr xs) Source # | |
newtype OneEraForgeStateInfo xs 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 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 Source #
Constructors
| OneEraGenTx | |
Fields
| |
Instances
| 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 => 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 => NoThunks (OneEraGenTx xs) Source # | |
newtype OneEraGenTxId xs 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 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 Source #
Constructors
| OneEraIsLeader | |
Fields
| |
newtype OneEraLedgerError xs Source #
Constructors
| OneEraLedgerError | |
Fields | |
Instances
| 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 => 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 => NoThunks (OneEraLedgerError xs) Source # | |
newtype OneEraLedgerUpdate xs Source #
Constructors
| OneEraLedgerUpdate | |
Fields | |
Instances
| CanHardFork xs => Eq (OneEraLedgerUpdate xs) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.AcrossEras Methods (==) :: OneEraLedgerUpdate xs -> OneEraLedgerUpdate xs -> Bool # (/=) :: OneEraLedgerUpdate xs -> OneEraLedgerUpdate xs -> Bool # | |
| 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 # | |
newtype OneEraLedgerWarning xs Source #
Constructors
| OneEraLedgerWarning | |
Fields | |
Instances
| CanHardFork xs => Eq (OneEraLedgerWarning xs) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.AcrossEras Methods (==) :: OneEraLedgerWarning xs -> OneEraLedgerWarning xs -> Bool # (/=) :: OneEraLedgerWarning xs -> OneEraLedgerWarning xs -> Bool # | |
| 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 # | |
newtype OneEraSelectView xs 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 # | |
newtype OneEraTipInfo xs Source #
Constructors
| OneEraTipInfo | |
Fields
| |
Instances
| 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 => 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 => NoThunks (OneEraTipInfo xs) Source # | |
newtype OneEraValidateView xs Source #
Constructors
| OneEraValidateView | |
Fields | |
newtype OneEraValidationErr xs Source #
Constructors
| OneEraValidationErr | |
Fields | |
Instances
| 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 => 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 => NoThunks (OneEraValidationErr xs) Source # | |
Value for two different eras
newtype MismatchEraInfo xs Source #
Constructors
| MismatchEraInfo | |
Fields
| |
Instances
| 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 # | |
| 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 # | |
| CanHardFork xs => NoThunks (MismatchEraInfo xs) Source # | |
mismatchOneEra :: MismatchEraInfo '[b] -> Void Source #
mismatchFutureEra :: SListI xs => MismatchEraInfo (x ': xs) -> NS SingleEraInfo xs Source #
A mismatch _must_ involve a future era
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
| Eq EraMismatch Source # | |
| Show EraMismatch Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.AcrossEras Methods showsPrec :: Int -> EraMismatch -> ShowS # show :: EraMismatch -> String # showList :: [EraMismatch] -> ShowS # | |
| Generic EraMismatch Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.AcrossEras Associated Types type Rep EraMismatch :: Type -> Type # | |
| type Rep EraMismatch Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.AcrossEras type Rep EraMismatch = D1 ('MetaData "EraMismatch" "Ouroboros.Consensus.HardFork.Combinator.AcrossEras" "ouroboros-consensus-0.1.0.0-GfJNvFcM6lj2s5utKAUPEp" 'False) (C1 ('MetaCons "EraMismatch" 'PrefixI 'True) (S1 ('MetaSel ('Just "ledgerEraName") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "otherEraName") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text))) | |
mkEraMismatch :: 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
oneEraBlockHeader :: CanHardFork xs => OneEraBlock xs -> OneEraHeader xs Source #
getSameValue :: forall xs a. (IsNonEmpty xs, Eq a, SListI xs, HasCallStack) => NP (K a) xs -> a Source #