ouroboros-consensus-shelley-0.1.0.1: Shelley ledger integration in the Ouroboros consensus layer
Safe Haskell None
Language Haskell2010

Ouroboros.Consensus.Shelley.Ledger.Config

Synopsis

Documentation

data family BlockConfig blk Source #

Static configuration required to work with this type of blocks

Instances

Instances details
ShelleyBasedEra era => Show ( BlockConfig ( ShelleyBlock proto era)) Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Config

Generic ( BlockConfig ( ShelleyBlock proto era)) Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Config

Associated Types

type Rep ( BlockConfig ( ShelleyBlock proto era)) :: Type -> Type Source #

CanHardFork xs => NoThunks ( BlockConfig ( HardForkBlock xs))
Instance details

Defined in Ouroboros.Consensus.HardFork.Combinator.Basics

ShelleyBasedEra era => NoThunks ( BlockConfig ( ShelleyBlock proto era)) Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Config

type Rep ( BlockConfig ( ShelleyBlock proto era)) Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Config

newtype BlockConfig ( HardForkBlock xs)
Instance details

Defined in Ouroboros.Consensus.HardFork.Combinator.Basics

data BlockConfig ( ShelleyBlock proto era) Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Config

data family CodecConfig blk Source #

Static configuration required for serialisation and deserialisation of types pertaining to this type of block.

Data family instead of type family to get better type inference.

Instances

Instances details
Generic ( CodecConfig ( ShelleyBlock proto era)) Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Config

Associated Types

type Rep ( CodecConfig ( ShelleyBlock proto era)) :: Type -> Type Source #

CanHardFork xs => NoThunks ( CodecConfig ( HardForkBlock xs))
Instance details

Defined in Ouroboros.Consensus.HardFork.Combinator.Basics

NoThunks ( CodecConfig ( ShelleyBlock proto era)) Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Config

type Rep ( CodecConfig ( ShelleyBlock proto era)) Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Config

type Rep ( CodecConfig ( ShelleyBlock proto era)) = D1 (' MetaData "CodecConfig" "Ouroboros.Consensus.Shelley.Ledger.Config" "ouroboros-consensus-shelley-0.1.0.1-Kwox0dapAHUG8fY5XKE0pO" ' False ) ( C1 (' MetaCons "ShelleyCodecConfig" ' PrefixI ' False ) ( U1 :: Type -> Type ))
newtype CodecConfig ( HardForkBlock xs)
Instance details

Defined in Ouroboros.Consensus.HardFork.Combinator.Basics

data CodecConfig ( ShelleyBlock proto era) Source #

No particular codec configuration is needed for Shelley

Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Config

data family StorageConfig blk Source #

Config needed for the NodeInitStorage class. Defined here to avoid circular dependencies.

Instances

Instances details
Generic ( StorageConfig ( ShelleyBlock proto era)) Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Config

Associated Types

type Rep ( StorageConfig ( ShelleyBlock proto era)) :: Type -> Type Source #

CanHardFork xs => NoThunks ( StorageConfig ( HardForkBlock xs))
Instance details

Defined in Ouroboros.Consensus.HardFork.Combinator.Basics

NoThunks ( StorageConfig ( ShelleyBlock proto era)) Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Config

type Rep ( StorageConfig ( ShelleyBlock proto era)) Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Config

type Rep ( StorageConfig ( ShelleyBlock proto era)) = D1 (' MetaData "StorageConfig" "Ouroboros.Consensus.Shelley.Ledger.Config" "ouroboros-consensus-shelley-0.1.0.1-Kwox0dapAHUG8fY5XKE0pO" ' False ) ( C1 (' MetaCons "ShelleyStorageConfig" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "shelleyStorageConfigSlotsPerKESPeriod") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 Word64 ) :*: S1 (' MetaSel (' Just "shelleyStorageConfigSecurityParam") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 SecurityParam )))
newtype StorageConfig ( HardForkBlock xs)
Instance details

Defined in Ouroboros.Consensus.HardFork.Combinator.Basics

data StorageConfig ( ShelleyBlock proto era) Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Config

opaque

data CompactGenesis era Source #

Compact variant of ShelleyGenesis with some fields erased that are only used on start-up and that should not be kept in memory forever.

Concretely:

  • The sgInitialFunds field is erased. It is only used to set up the initial UTxO in tests and testnets.
  • The sgStaking field is erased. It is only used to register initial stake pools in tests and benchmarks.

Instances

Instances details
Eq ( CompactGenesis era) Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Config

Show ( CompactGenesis era) Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Config

Generic ( CompactGenesis era) Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Config

Associated Types

type Rep ( CompactGenesis era) :: Type -> Type Source #

Era era => ToCBOR ( CompactGenesis era) Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Config

Era era => FromCBOR ( CompactGenesis era) Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Config

ShelleyBasedEra era => NoThunks ( CompactGenesis era) Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Config

type Rep ( CompactGenesis era) Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Config

type Rep ( CompactGenesis era) = D1 (' MetaData "CompactGenesis" "Ouroboros.Consensus.Shelley.Ledger.Config" "ouroboros-consensus-shelley-0.1.0.1-Kwox0dapAHUG8fY5XKE0pO" ' True ) ( C1 (' MetaCons "CompactGenesis" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "getCompactGenesis") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( ShelleyGenesis era))))

Orphan instances

ShelleyBasedEra era => Show ( BlockConfig ( ShelleyBlock proto era)) Source #
Instance details

Generic ( BlockConfig ( ShelleyBlock proto era)) Source #
Instance details

Associated Types

type Rep ( BlockConfig ( ShelleyBlock proto era)) :: Type -> Type Source #

Generic ( CodecConfig ( ShelleyBlock proto era)) Source #
Instance details

Associated Types

type Rep ( CodecConfig ( ShelleyBlock proto era)) :: Type -> Type Source #

Generic ( StorageConfig ( ShelleyBlock proto era)) Source #
Instance details

Associated Types

type Rep ( StorageConfig ( ShelleyBlock proto era)) :: Type -> Type Source #

ShelleyBasedEra era => NoThunks ( BlockConfig ( ShelleyBlock proto era)) Source #
Instance details

NoThunks ( CodecConfig ( ShelleyBlock proto era)) Source #
Instance details

NoThunks ( StorageConfig ( ShelleyBlock proto era)) Source #
Instance details