ouroboros-consensus-0.1.0.1: Consensus layer for the Ouroboros blockchain protocol
Safe Haskell None
Language Haskell2010

Ouroboros.Consensus.TypeFamilyWrappers

Description

Newtypes around type families so that they can be partially applied

Synopsis

Block based

newtype WrapApplyTxErr blk Source #

Instances

Instances details
Isomorphic WrapApplyTxErr Source #
Instance details

Defined in Ouroboros.Consensus.HardFork.Combinator.Embed.Unary

Inject WrapApplyTxErr Source #
Instance details

Defined in Ouroboros.Consensus.HardFork.Combinator.Embed.Nary

SerialiseNodeToClient blk ( ApplyTxErr blk) => SerialiseNodeToClient blk ( WrapApplyTxErr blk) Source #
Instance details

Defined in Ouroboros.Consensus.Node.Serialisation

Eq ( ApplyTxErr blk) => Eq ( WrapApplyTxErr blk) Source #
Instance details

Defined in Ouroboros.Consensus.TypeFamilyWrappers

Show ( ApplyTxErr blk) => Show ( WrapApplyTxErr blk) Source #
Instance details

Defined in Ouroboros.Consensus.TypeFamilyWrappers

newtype WrapGenTxId blk Source #

Constructors

WrapGenTxId

Instances

Instances details
Isomorphic WrapGenTxId Source #
Instance details

Defined in Ouroboros.Consensus.HardFork.Combinator.Embed.Unary

Inject WrapGenTxId Source #
Instance details

Defined in Ouroboros.Consensus.HardFork.Combinator.Embed.Nary

SerialiseNodeToClient blk ( GenTxId blk) => SerialiseNodeToClient blk ( WrapGenTxId blk) Source #
Instance details

Defined in Ouroboros.Consensus.Node.Serialisation

SerialiseNodeToNode blk ( GenTxId blk) => SerialiseNodeToNode blk ( WrapGenTxId blk) Source #
Instance details

Defined in Ouroboros.Consensus.Node.Serialisation

Eq ( GenTxId blk) => Eq ( WrapGenTxId blk) Source #
Instance details

Defined in Ouroboros.Consensus.TypeFamilyWrappers

Ord ( GenTxId blk) => Ord ( WrapGenTxId blk) Source #
Instance details

Defined in Ouroboros.Consensus.TypeFamilyWrappers

Show ( GenTxId blk) => Show ( WrapGenTxId blk) Source #
Instance details

Defined in Ouroboros.Consensus.TypeFamilyWrappers

NoThunks ( GenTxId blk) => NoThunks ( WrapGenTxId blk) Source #
Instance details

Defined in Ouroboros.Consensus.TypeFamilyWrappers

Serialise ( GenTxId blk) => Serialise ( WrapGenTxId blk) Source #
Instance details

Defined in Ouroboros.Consensus.TypeFamilyWrappers

Condense ( GenTxId blk) => Condense ( WrapGenTxId blk) Source #
Instance details

Defined in Ouroboros.Consensus.HardFork.Combinator.Condense

newtype WrapTipInfo blk Source #

Constructors

WrapTipInfo

Instances

Instances details
Isomorphic WrapTipInfo Source #
Instance details

Defined in Ouroboros.Consensus.HardFork.Combinator.Embed.Unary

Eq ( TipInfo blk) => Eq ( WrapTipInfo blk) Source #
Instance details

Defined in Ouroboros.Consensus.TypeFamilyWrappers

Show ( TipInfo blk) => Show ( WrapTipInfo blk) Source #
Instance details

Defined in Ouroboros.Consensus.TypeFamilyWrappers

NoThunks ( TipInfo blk) => NoThunks ( WrapTipInfo blk) Source #
Instance details

Defined in Ouroboros.Consensus.TypeFamilyWrappers

Serialise ( TipInfo blk) => Serialise ( WrapTipInfo blk) Source #
Instance details

Defined in Ouroboros.Consensus.TypeFamilyWrappers

Protocol based

newtype WrapChainDepState blk Source #

Instances

Instances details
Isomorphic WrapChainDepState Source #
Instance details

Defined in Ouroboros.Consensus.HardFork.Combinator.Embed.Unary

Inject WrapChainDepState Source #
Instance details

Defined in Ouroboros.Consensus.HardFork.Combinator.Embed.Nary

DecodeDisk blk ( ChainDepState ( BlockProtocol blk)) => DecodeDisk blk ( WrapChainDepState blk) Source #
Instance details

Defined in Ouroboros.Consensus.Storage.Serialisation

EncodeDisk blk ( ChainDepState ( BlockProtocol blk)) => EncodeDisk blk ( WrapChainDepState blk) Source #
Instance details

Defined in Ouroboros.Consensus.Storage.Serialisation

Eq ( ChainDepState ( BlockProtocol blk)) => Eq ( WrapChainDepState blk) Source #
Instance details

Defined in Ouroboros.Consensus.TypeFamilyWrappers

Show ( ChainDepState ( BlockProtocol blk)) => Show ( WrapChainDepState blk) Source #
Instance details

Defined in Ouroboros.Consensus.TypeFamilyWrappers

NoThunks ( ChainDepState ( BlockProtocol blk)) => NoThunks ( WrapChainDepState blk) Source #
Instance details

Defined in Ouroboros.Consensus.TypeFamilyWrappers

Serialise ( ChainDepState ( BlockProtocol blk)) => Serialise ( WrapChainDepState blk) Source #
Instance details

Defined in Ouroboros.Consensus.TypeFamilyWrappers

SerialiseHFC xs => DecodeDisk ( HardForkBlock xs) ( HardForkChainDepState xs) Source #
Instance details

Defined in Ouroboros.Consensus.HardFork.Combinator.Serialisation.SerialiseDisk

SerialiseHFC xs => EncodeDisk ( HardForkBlock xs) ( HardForkChainDepState xs) Source #
Instance details

Defined in Ouroboros.Consensus.HardFork.Combinator.Serialisation.SerialiseDisk

newtype Ticked ( WrapChainDepState blk) Source #
Instance details

Defined in Ouroboros.Consensus.TypeFamilyWrappers

data Ticked ( HardForkChainDepState xs) Source #
Instance details

Defined in Ouroboros.Consensus.HardFork.Combinator.Protocol

newtype WrapSelectView blk Source #

Instances

Instances details
Eq ( SelectView ( BlockProtocol blk)) => Eq ( WrapSelectView blk) Source #
Instance details

Defined in Ouroboros.Consensus.TypeFamilyWrappers

Ord ( SelectView ( BlockProtocol blk)) => Ord ( WrapSelectView blk) Source #
Instance details

Defined in Ouroboros.Consensus.TypeFamilyWrappers

Show ( SelectView ( BlockProtocol blk)) => Show ( WrapSelectView blk) Source #
Instance details

Defined in Ouroboros.Consensus.TypeFamilyWrappers

NoThunks ( SelectView ( BlockProtocol blk)) => NoThunks ( WrapSelectView blk) Source #
Instance details

Defined in Ouroboros.Consensus.TypeFamilyWrappers

newtype WrapValidatedGenTx blk Source #

A data family wrapper for Validated . GenTx

Validated is is data family, so this is an outlier in this module full of type family wrappers. However, the standard functor composition operator f :.: g incurs some type classes instances that are inappropriate when the outer type constructor f is a family and hence non-parametric (eg Eq (f :.: g) requires @ Eq1 f)). The bespoke composition WrapValidatedGenTx therefore serves much the same purpose as the other wrappers in this module.

Versioning

Type family instances

data family Ticked st :: Type Source #

" Ticked " piece of state ( LedgerState , LedgerView , ChainIndepState )

Ticking refers to the passage of time (the ticking of the clock). When a piece of state is marked as ticked, it means that time-related changes have been applied to the state (or forecast).

Some examples of time related changes:

  • Scheduled delegations might have been applied in Byron
  • New leader schedule computed for Shelley
  • Transition from Byron to Shelley activated in the hard fork combinator.
  • Nonces switched out at the start of a new epoch.

Instances

Instances details
Show ( Ticked ()) Source #
Instance details

Defined in Ouroboros.Consensus.Ticked

Show ( Ticked a) => Show ( Ticked ( K a x)) Source #
Instance details

Defined in Ouroboros.Consensus.Ticked

( SListI xs, Show ( Ticked a)) => Show ( Ticked ( HardForkLedgerView_ ( K a :: Type -> Type ) xs)) Source #
Instance details

Defined in Ouroboros.Consensus.HardFork.Combinator.Protocol.LedgerView

Generic ( Ticked ( LedgerState ( HardForkBlock xs))) Source #
Instance details

Defined in Ouroboros.Consensus.HardFork.Combinator.Ledger

NoThunks ( Ticked ( LedgerState ( DualBlock m a))) Source #
Instance details

Defined in Ouroboros.Consensus.Ledger.Dual

CanHardFork xs => NoThunks ( Ticked ( LedgerState ( HardForkBlock xs))) Source #
Instance details

Defined in Ouroboros.Consensus.HardFork.Combinator.Ledger

Bridge m a => GetTip ( Ticked ( LedgerState ( DualBlock m a))) Source #
Instance details

Defined in Ouroboros.Consensus.Ledger.Dual

CanHardFork xs => GetTip ( Ticked ( LedgerState ( HardForkBlock xs))) Source #
Instance details

Defined in Ouroboros.Consensus.HardFork.Combinator.Ledger

IsLedger ( LedgerState blk) => GetTip ( Ticked ( ExtLedgerState blk)) Source #
Instance details

Defined in Ouroboros.Consensus.Ledger.Extended

IsLedger l => GetTip ( Ticked ( LedgerDB l)) Source #
Instance details

Defined in Ouroboros.Consensus.Storage.LedgerDB.InMemory

Isomorphic ( Ticked :.: LedgerState ) Source #
Instance details

Defined in Ouroboros.Consensus.HardFork.Combinator.Embed.Unary

Show ( Ticked (f a)) => Show (( Ticked :.: f) a) Source #
Instance details

Defined in Ouroboros.Consensus.Ticked

NoThunks ( Ticked (f a)) => NoThunks (( Ticked :.: f) a) Source #
Instance details

Defined in Ouroboros.Consensus.Ticked

data Ticked () Source #
Instance details

Defined in Ouroboros.Consensus.Ticked

type Rep ( Ticked ( LedgerState ( HardForkBlock xs))) Source #
Instance details

Defined in Ouroboros.Consensus.HardFork.Combinator.Ledger

type Rep ( Ticked ( LedgerState ( HardForkBlock xs))) = D1 (' MetaData "Ticked" "Ouroboros.Consensus.HardFork.Combinator.Ledger" "ouroboros-consensus-0.1.0.1-DT4Cvwf63DZKctsEvaJqCU" ' False ) ( C1 (' MetaCons "TickedHardForkLedgerState" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "tickedHardForkLedgerStateTransition") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 TransitionInfo ) :*: S1 (' MetaSel (' Just "tickedHardForkLedgerStatePerEra") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( HardForkState ( Ticked :.: LedgerState ) xs))))
type HeaderHash ( Ticked l) Source #
Instance details

Defined in Ouroboros.Consensus.Ledger.Basics

data Ticked ( LedgerState ( DualBlock m a)) Source #
Instance details

Defined in Ouroboros.Consensus.Ledger.Dual

data Ticked ( LedgerState ( HardForkBlock xs)) Source #
Instance details

Defined in Ouroboros.Consensus.HardFork.Combinator.Ledger

data Ticked ( HeaderState blk) Source #
Instance details

Defined in Ouroboros.Consensus.HeaderValidation

newtype Ticked ( WrapLedgerView blk) Source #
Instance details

Defined in Ouroboros.Consensus.TypeFamilyWrappers

newtype Ticked ( WrapChainDepState blk) Source #
Instance details

Defined in Ouroboros.Consensus.TypeFamilyWrappers

data Ticked ( ExtLedgerState blk) Source #
Instance details

Defined in Ouroboros.Consensus.Ledger.Extended

data Ticked ( LedgerDB l) Source #

Ticking the ledger DB just ticks the current state

We don't push the new state into the DB until we apply a block.

Instance details

Defined in Ouroboros.Consensus.Storage.LedgerDB.InMemory

data Ticked ( HardForkChainDepState xs) Source #
Instance details

Defined in Ouroboros.Consensus.HardFork.Combinator.Protocol

data Ticked ( PBftState c) Source #
Instance details

Defined in Ouroboros.Consensus.Protocol.PBFT

newtype Ticked ( PBftLedgerView c) Source #
Instance details

Defined in Ouroboros.Consensus.Protocol.PBFT

data Ticked ( HardForkLedgerView_ f xs) Source #
Instance details

Defined in Ouroboros.Consensus.HardFork.Combinator.Protocol.LedgerView

newtype Ticked ( K a x) Source #
Instance details

Defined in Ouroboros.Consensus.Ticked