| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Cardano.Api.Consensus
Synopsis
- type family ConsensusProtocol era where ...
- type family ChainDepStateProtocol era where ...
- data ConsensusModeParams where
- newtype EpochSlots = EpochSlots {}
- type family ConsensusCryptoForBlock block where ...
- type family ConsensusBlockForEra era where ...
- toConsensusEraIndex :: forall (xs :: [Type]) era. CardanoBlock StandardCrypto ~ HardForkBlock xs => CardanoEra era -> EraIndex xs
- fromConsensusEraIndex :: EraIndex (CardanoEras StandardCrypto) -> AnyCardanoEra
- data TxInMode where
- TxInMode :: forall era. ShelleyBasedEra era -> Tx era -> TxInMode
- TxInByronSpecial :: GenTx ByronBlock -> TxInMode
- fromConsensusGenTx :: CardanoBlock StandardCrypto ~ block => GenTx block -> TxInMode
- toConsensusGenTx :: CardanoBlock StandardCrypto ~ block => TxInMode -> GenTx block
- data TxIdInMode where
- TxIdInMode :: forall era. CardanoEra era -> TxId -> TxIdInMode
- toConsensusTxId :: CardanoBlock StandardCrypto ~ block => TxIdInMode -> TxId (GenTx block)
- data TxValidationError era where
- ByronTxValidationError :: forall era. ApplyTxErr ByronBlock -> TxValidationError era
- ShelleyTxValidationError :: forall era. ShelleyBasedEra era -> ApplyTxErr (ShelleyBlock (ConsensusProtocol era) (ShelleyLedgerEra era)) -> TxValidationError era
- data TxValidationErrorInCardanoMode where
- fromConsensusApplyTxErr :: CardanoBlock StandardCrypto ~ block => ApplyTxErr block -> TxValidationErrorInCardanoMode
- data BlockType blk where
- ByronBlockType :: BlockType (HardForkBlock '[ByronBlock])
- ShelleyBlockType :: BlockType (HardForkBlock '[ShelleyBlock (TPraos StandardCrypto) ShelleyEra])
- CardanoBlockType :: BlockType (HardForkBlock (CardanoEras StandardCrypto))
- data SomeBlockType where
- SomeBlockType :: forall blk. BlockType blk -> SomeBlockType
- reflBlockType :: BlockType blk -> BlockType blk' -> Maybe (blk :~: blk')
- class (RunNode blk, IOLike m) => Protocol (m :: Type -> Type) blk where
- data ProtocolInfoArgs blk
- protocolInfo :: ProtocolInfoArgs blk -> (ProtocolInfo blk, Tracer m KESAgentClientTrace -> m [MkBlockForging m blk])
- data family ProtocolInfoArgs blk
- class RunNode blk => ProtocolClient blk where
- data ProtocolClientInfoArgs blk
- protocolClientInfo :: ProtocolClientInfoArgs blk -> ProtocolClientInfo blk
- data family ProtocolClientInfoArgs blk
- data ByronBlock
- type family ChainDepState p
- data family GenTx blk
- data EraMismatch = EraMismatch {
- ledgerEraName :: !Text
- otherEraName :: !Text
- data PastHorizonException
- class ConsensusProtocol p => PraosProtocolSupportsNode p
- type family PraosProtocolSupportsNodeCrypto p
- data ShelleyGenesisStaking = ShelleyGenesisStaking {}
- byronIdTx :: ATxAux ByteString -> TxId
- condense :: Condense a => a -> String
- getOpCertCounters :: PraosProtocolSupportsNode p => proxy p -> ChainDepState p -> Map (KeyHash 'BlockIssuer) Word64
- interpreterToEpochInfo :: forall (xs :: [Type]). Interpreter xs -> EpochInfo (Except PastHorizonException)
- unsafeExtendSafeZone :: forall (xs :: [Type]). Interpreter xs -> Interpreter xs
- txId :: HasTxId tx => tx -> TxId tx
Consensus modes
Consensus modes. The node supports several different modes with different combinations of consensus protocols and ledger eras.
The protocols supported in each era
type family ConsensusProtocol era where ... Source #
Equations
| ConsensusProtocol ShelleyEra = TPraos StandardCrypto | |
| ConsensusProtocol AllegraEra = TPraos StandardCrypto | |
| ConsensusProtocol MaryEra = TPraos StandardCrypto | |
| ConsensusProtocol AlonzoEra = TPraos StandardCrypto | |
| ConsensusProtocol BabbageEra = Praos StandardCrypto | |
| ConsensusProtocol ConwayEra = Praos StandardCrypto | |
| ConsensusProtocol DijkstraEra = Praos StandardCrypto |
type family ChainDepStateProtocol era where ... Source #
Equations
| ChainDepStateProtocol ShelleyEra = TPraosState | |
| ChainDepStateProtocol AllegraEra = TPraosState | |
| ChainDepStateProtocol MaryEra = TPraosState | |
| ChainDepStateProtocol AlonzoEra = TPraosState | |
| ChainDepStateProtocol BabbageEra = PraosState | |
| ChainDepStateProtocol ConwayEra = PraosState |
Connection parameters for each mode
data ConsensusModeParams where Source #
The consensus-mode-specific parameters needed to connect to a local node that is using each consensus mode.
It is in fact only the Byron era that requires extra parameters, but this is
of course inherited by the CardanoMode that uses the Byron era. The reason
this parameter is needed stems from unfortunate design decisions from the
legacy Byron era. The slots per epoch are needed to be able to decode
epoch boundary blocks from the Byron era.
It is possible in future that we may be able to eliminate this parameter by discovering it from the node during the initial handshake.
Constructors
| CardanoModeParams :: EpochSlots -> ConsensusModeParams |
Instances
newtype EpochSlots Source #
The number of slots per epoch.
Constructors
| EpochSlots | |
Fields | |
Instances
Conversions to and from types in the consensus library
type family ConsensusCryptoForBlock block where ... Source #
Equations
| ConsensusCryptoForBlock ByronBlockHFC = StandardCrypto | |
| ConsensusCryptoForBlock (ShelleyBlockHFC (TPraos StandardCrypto) ShelleyEra) = ShelleyEra | |
| ConsensusCryptoForBlock (CardanoBlock StandardCrypto) = StandardCrypto |
type family ConsensusBlockForEra era where ... Source #
A closed type family that maps between the consensus mode (from this API) and the block type used by the consensus libraries.
Equations
| ConsensusBlockForEra ByronEra = ByronBlock | |
| ConsensusBlockForEra ShelleyEra = StandardShelleyBlock | |
| ConsensusBlockForEra AllegraEra = StandardAllegraBlock | |
| ConsensusBlockForEra MaryEra = StandardMaryBlock | |
| ConsensusBlockForEra AlonzoEra = StandardAlonzoBlock | |
| ConsensusBlockForEra BabbageEra = StandardBabbageBlock | |
| ConsensusBlockForEra ConwayEra = StandardConwayBlock | |
| ConsensusBlockForEra DijkstraEra = StandardDijkstraBlock |
toConsensusEraIndex :: forall (xs :: [Type]) era. CardanoBlock StandardCrypto ~ HardForkBlock xs => CardanoEra era -> EraIndex xs Source #
fromConsensusEraIndex :: EraIndex (CardanoEras StandardCrypto) -> AnyCardanoEra Source #
Transactions in the consensus mode
Transactions in the context of a consensus mode, and other types used in the transaction submission protocol.
Transaction in a consensus mode
A Tx in one of the eras supported by a given protocol mode.
For multi-era modes such as the CardanoMode this type is a sum of the
different transaction types for all the eras. It is used in the
LocalTxSubmission protocol.
Constructors
| TxInMode :: forall era. ShelleyBasedEra era -> Tx era -> TxInMode | Shelley based transactions. |
| TxInByronSpecial :: GenTx ByronBlock -> TxInMode | Legacy Byron transactions and things we can post to the chain which are not actually transactions. This covers: update proposals, votes and delegation certs. |
fromConsensusGenTx :: CardanoBlock StandardCrypto ~ block => GenTx block -> TxInMode Source #
toConsensusGenTx :: CardanoBlock StandardCrypto ~ block => TxInMode -> GenTx block Source #
Transaction id in a consensus mode
data TxIdInMode where Source #
A TxId in one of the eras supported by a given protocol mode.
For multi-era modes such as the CardanoMode this type is a sum of the
different transaction types for all the eras. It is used in the
LocalTxMonitoring protocol.
TODO Rename to TxIdInEra
Constructors
| TxIdInMode :: forall era. CardanoEra era -> TxId -> TxIdInMode |
toConsensusTxId :: CardanoBlock StandardCrypto ~ block => TxIdInMode -> TxId (GenTx block) Source #
Transaction validation errors
data TxValidationError era where Source #
The transaction validations errors that can occur from trying to submit a transaction to a local node. The errors are specific to an era.
Constructors
| ByronTxValidationError :: forall era. ApplyTxErr ByronBlock -> TxValidationError era | |
| ShelleyTxValidationError :: forall era. ShelleyBasedEra era -> ApplyTxErr (ShelleyBlock (ConsensusProtocol era) (ShelleyLedgerEra era)) -> TxValidationError era |
Instances
| ToJSON (TxValidationError era) Source # | |||||
Defined in Cardano.Api.Consensus.Internal.InMode Methods toJSON :: TxValidationError era -> Value # toEncoding :: TxValidationError era -> Encoding # toJSONList :: [TxValidationError era] -> Value # toEncodingList :: [TxValidationError era] -> Encoding # omitField :: TxValidationError era -> Bool # | |||||
| Generic (TxValidationError era) Source # | |||||
Defined in Cardano.Api.Consensus.Internal.InMode Associated Types
Methods from :: TxValidationError era -> Rep (TxValidationError era) x Source # to :: Rep (TxValidationError era) x -> TxValidationError era Source # | |||||
| Show (TxValidationError era) Source # | |||||
Defined in Cardano.Api.Consensus.Internal.InMode | |||||
| type Rep (TxValidationError era) Source # | |||||
Defined in Cardano.Api.Consensus.Internal.InMode type Rep (TxValidationError era) = D1 ('MetaData "TxValidationError" "Cardano.Api.Consensus.Internal.InMode" "cardano-api-10.26.0.0-inplace" 'False) (C1 ('MetaCons "ByronTxValidationError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ApplyTxErr ByronBlock))) :+: C1 ('MetaCons "ShelleyTxValidationError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ShelleyBasedEra era)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ApplyTxErr (ShelleyBlock (ConsensusProtocol era) (ShelleyLedgerEra era)))))) | |||||
data TxValidationErrorInCardanoMode where Source #
A TxValidationError in one of the eras supported by a given protocol
mode.
This is used in the LocalStateQuery protocol.
Constructors
| TxValidationErrorInCardanoMode :: forall era. TxValidationError era -> TxValidationErrorInCardanoMode | |
| TxValidationEraMismatch :: EraMismatch -> TxValidationErrorInCardanoMode |
Instances
| ToJSON TxValidationErrorInCardanoMode Source # | |
Defined in Cardano.Api.Consensus.Internal.InMode Methods toJSON :: TxValidationErrorInCardanoMode -> Value # toEncoding :: TxValidationErrorInCardanoMode -> Encoding # toJSONList :: [TxValidationErrorInCardanoMode] -> Value # toEncodingList :: [TxValidationErrorInCardanoMode] -> Encoding # | |
| Show TxValidationErrorInCardanoMode Source # | |
Defined in Cardano.Api.Consensus.Internal.InMode | |
fromConsensusApplyTxErr :: CardanoBlock StandardCrypto ~ block => ApplyTxErr block -> TxValidationErrorInCardanoMode Source #
Consensus protocol
data BlockType blk where Source #
Constructors
| ByronBlockType :: BlockType (HardForkBlock '[ByronBlock]) | |
| ShelleyBlockType :: BlockType (HardForkBlock '[ShelleyBlock (TPraos StandardCrypto) ShelleyEra]) | |
| CardanoBlockType :: BlockType (HardForkBlock (CardanoEras StandardCrypto)) |
data SomeBlockType where Source #
Constructors
| SomeBlockType :: forall blk. BlockType blk -> SomeBlockType |
Instances
class (RunNode blk, IOLike m) => Protocol (m :: Type -> Type) blk where Source #
Associated Types
data ProtocolInfoArgs blk Source #
Methods
protocolInfo :: ProtocolInfoArgs blk -> (ProtocolInfo blk, Tracer m KESAgentClientTrace -> m [MkBlockForging m blk]) Source #
Instances
| IOLike m => Protocol m ByronBlockHFC Source # | Run PBFT against the Byron ledger | ||||
Defined in Cardano.Api.Consensus.Internal.Protocol Associated Types
Methods protocolInfo :: ProtocolInfoArgs ByronBlockHFC -> (ProtocolInfo ByronBlockHFC, Tracer m KESAgentClientTrace -> m [MkBlockForging m ByronBlockHFC]) Source # | |||||
| (CardanoHardForkConstraints StandardCrypto, IOLike m, MonadKESAgent m) => Protocol m (CardanoBlock StandardCrypto) Source # | |||||
Defined in Cardano.Api.Consensus.Internal.Protocol Associated Types
Methods protocolInfo :: ProtocolInfoArgs (CardanoBlock StandardCrypto) -> (ProtocolInfo (CardanoBlock StandardCrypto), Tracer m KESAgentClientTrace -> m [MkBlockForging m (CardanoBlock StandardCrypto)]) Source # | |||||
| (IOLike m, LedgerSupportsProtocol (ShelleyBlock (TPraos StandardCrypto) ShelleyEra), MonadKESAgent m) => Protocol m (ShelleyBlockHFC (TPraos StandardCrypto) ShelleyEra) Source # | |||||
Defined in Cardano.Api.Consensus.Internal.Protocol Associated Types
Methods protocolInfo :: ProtocolInfoArgs (ShelleyBlockHFC (TPraos StandardCrypto) ShelleyEra) -> (ProtocolInfo (ShelleyBlockHFC (TPraos StandardCrypto) ShelleyEra), Tracer m KESAgentClientTrace -> m [MkBlockForging m (ShelleyBlockHFC (TPraos StandardCrypto) ShelleyEra)]) Source # | |||||
data family ProtocolInfoArgs blk Source #
Instances
| data ProtocolInfoArgs ByronBlockHFC Source # | |
Defined in Cardano.Api.Consensus.Internal.Protocol | |
| data ProtocolInfoArgs (CardanoBlock StandardCrypto) Source # | |
Defined in Cardano.Api.Consensus.Internal.Protocol data ProtocolInfoArgs (CardanoBlock StandardCrypto) = ProtocolInfoArgsCardano (CardanoProtocolParams StandardCrypto) | |
| data ProtocolInfoArgs (ShelleyBlockHFC (TPraos StandardCrypto) ShelleyEra) Source # | |
Defined in Cardano.Api.Consensus.Internal.Protocol data ProtocolInfoArgs (ShelleyBlockHFC (TPraos StandardCrypto) ShelleyEra) = ProtocolInfoArgsShelley ShelleyGenesis (ProtocolParamsShelleyBased StandardCrypto) ProtVer | |
class RunNode blk => ProtocolClient blk where Source #
Node client support for each consensus protocol.
This is like Protocol but for clients of the node, so with less onerous
requirements than to run a node.
Associated Types
data ProtocolClientInfoArgs blk Source #
Methods
protocolClientInfo :: ProtocolClientInfoArgs blk -> ProtocolClientInfo blk Source #
Instances
| ProtocolClient ByronBlockHFC Source # | |||||
Defined in Cardano.Api.Consensus.Internal.Protocol Associated Types
Methods protocolClientInfo :: ProtocolClientInfoArgs ByronBlockHFC -> ProtocolClientInfo ByronBlockHFC Source # | |||||
| CardanoHardForkConstraints StandardCrypto => ProtocolClient (CardanoBlock StandardCrypto) Source # | |||||
Defined in Cardano.Api.Consensus.Internal.Protocol Associated Types
Methods protocolClientInfo :: ProtocolClientInfoArgs (CardanoBlock StandardCrypto) -> ProtocolClientInfo (CardanoBlock StandardCrypto) Source # | |||||
| LedgerSupportsProtocol (ShelleyBlock (TPraos StandardCrypto) ShelleyEra) => ProtocolClient (ShelleyBlockHFC (TPraos StandardCrypto) ShelleyEra) Source # | |||||
Defined in Cardano.Api.Consensus.Internal.Protocol Associated Types
Methods protocolClientInfo :: ProtocolClientInfoArgs (ShelleyBlockHFC (TPraos StandardCrypto) ShelleyEra) -> ProtocolClientInfo (ShelleyBlockHFC (TPraos StandardCrypto) ShelleyEra) Source # | |||||
data family ProtocolClientInfoArgs blk Source #
Instances
| data ProtocolClientInfoArgs ByronBlockHFC Source # | |
Defined in Cardano.Api.Consensus.Internal.Protocol | |
| data ProtocolClientInfoArgs (CardanoBlock StandardCrypto) Source # | |
Defined in Cardano.Api.Consensus.Internal.Protocol data ProtocolClientInfoArgs (CardanoBlock StandardCrypto) = ProtocolClientInfoArgsCardano EpochSlots | |
| data ProtocolClientInfoArgs (ShelleyBlockHFC (TPraos StandardCrypto) ShelleyEra) Source # | |
Defined in Cardano.Api.Consensus.Internal.Protocol data ProtocolClientInfoArgs (ShelleyBlockHFC (TPraos StandardCrypto) ShelleyEra) = ProtocolClientInfoArgsShelley | |
Reexports from ouroboros-consensus
data ByronBlock #
Instances
| ProtocolClient ByronBlockHFC Source # | |||||||||
Defined in Cardano.Api.Consensus.Internal.Protocol Associated Types
Methods protocolClientInfo :: ProtocolClientInfoArgs ByronBlockHFC -> ProtocolClientInfo ByronBlockHFC Source # | |||||||||
| NFData ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Block Methods rnf :: ByronBlock -> () Source # | |||||||||
| Eq ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Block Methods (==) :: ByronBlock -> ByronBlock -> Bool Source # (/=) :: ByronBlock -> ByronBlock -> Bool Source # | |||||||||
| Show ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Block | |||||||||
| ConvertRawHash ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Block Methods toRawHash :: proxy ByronBlock -> HeaderHash ByronBlock -> ByteString Source # fromRawHash :: proxy ByronBlock -> ByteString -> HeaderHash ByronBlock Source # toShortRawHash :: proxy ByronBlock -> HeaderHash ByronBlock -> ShortByteString Source # fromShortRawHash :: proxy ByronBlock -> ShortByteString -> HeaderHash ByronBlock Source # hashSize :: proxy ByronBlock -> Word32 Source # | |||||||||
| GetHeader ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Block Methods getHeader :: ByronBlock -> Header ByronBlock Source # blockMatchesHeader :: Header ByronBlock -> ByronBlock -> Bool Source # headerIsEBB :: Header ByronBlock -> Maybe EpochNo Source # | |||||||||
| GetPrevHash ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Block Methods headerPrevHash :: Header ByronBlock -> ChainHash ByronBlock Source # | |||||||||
| BlockSupportsDiffusionPipelining ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node Associated Types
Methods initialTentativeHeaderState :: Proxy ByronBlock -> TentativeHeaderState ByronBlock Source # tentativeHeaderView :: BlockConfig ByronBlock -> Header ByronBlock -> TentativeHeaderView ByronBlock Source # applyTentativeHeaderView :: Proxy ByronBlock -> TentativeHeaderView ByronBlock -> TentativeHeaderState ByronBlock -> Maybe (TentativeHeaderState ByronBlock) Source # | |||||||||
| BlockSupportsMetrics ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node Methods isSelfIssued :: BlockConfig ByronBlock -> Header ByronBlock -> WhetherSelfIssued Source # | |||||||||
| BlockSupportsProtocol ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.PBFT Methods validateView :: BlockConfig ByronBlock -> Header ByronBlock -> ValidateView (BlockProtocol ByronBlock) Source # tiebreakerView :: BlockConfig ByronBlock -> Header ByronBlock -> TiebreakerView (BlockProtocol ByronBlock) Source # projectChainOrderConfig :: BlockConfig ByronBlock -> ChainOrderConfig (SelectView (BlockProtocol ByronBlock)) Source # | |||||||||
| BlockSupportsSanityCheck ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node Methods configAllSecurityParams :: TopLevelConfig ByronBlock -> NonEmpty SecurityParam Source # | |||||||||
| ConfigSupportsNode ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node Methods getSystemStart :: BlockConfig ByronBlock -> SystemStart Source # getNetworkMagic :: BlockConfig ByronBlock -> NetworkMagic Source # | |||||||||
| HasHardForkHistory ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Associated Types
Methods hardForkSummary :: forall (mk :: MapKind). LedgerConfig ByronBlock -> LedgerState ByronBlock mk -> Summary (HardForkIndices ByronBlock) Source # | |||||||||
| ImmutableEraParams ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.ByronHFC Methods immutableEraParams :: TopLevelConfig ByronBlock -> EraParams Source # | |||||||||
| NoHardForks ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.ByronHFC Methods toPartialLedgerConfig :: proxy ByronBlock -> LedgerConfig ByronBlock -> PartialLedgerConfig ByronBlock Source # | |||||||||
| SingleEraBlock ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.ByronHFC Methods singleEraTransition :: forall (mk :: MapKind). PartialLedgerConfig ByronBlock -> EraParams -> Bound -> LedgerState ByronBlock mk -> Maybe EpochNo Source # singleEraInfo :: proxy ByronBlock -> SingleEraInfo ByronBlock Source # | |||||||||
| HasPartialLedgerConfig ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.ByronHFC Associated Types
Methods completeLedgerConfig :: proxy ByronBlock -> EpochInfo (Except PastHorizonException) -> PartialLedgerConfig ByronBlock -> LedgerConfig ByronBlock Source # | |||||||||
| SerialiseConstraintsHFC ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.ByronHFC | |||||||||
| BasicEnvelopeValidation ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.HeaderValidation Methods expectedFirstBlockNo :: proxy ByronBlock -> BlockNo Source # expectedNextBlockNo :: proxy ByronBlock -> TipInfo ByronBlock -> TipInfo ByronBlock -> BlockNo -> BlockNo Source # minimumPossibleSlotNo :: Proxy ByronBlock -> SlotNo Source # minimumNextSlotNo :: proxy ByronBlock -> TipInfo ByronBlock -> TipInfo ByronBlock -> SlotNo -> SlotNo Source # | |||||||||
| HasAnnTip ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.HeaderValidation Associated Types
Methods getTipInfo :: Header ByronBlock -> TipInfo ByronBlock Source # tipInfoHash :: proxy ByronBlock -> TipInfo ByronBlock -> HeaderHash ByronBlock Source # | |||||||||
| ValidateEnvelope ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.HeaderValidation Associated Types
Methods additionalEnvelopeChecks :: TopLevelConfig ByronBlock -> LedgerView (BlockProtocol ByronBlock) -> Header ByronBlock -> Except (OtherHeaderEnvelopeError ByronBlock) () Source # | |||||||||
| UpdateLedger ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger | |||||||||
| CommonProtocolParams ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Methods maxHeaderSize :: forall (mk :: MapKind). LedgerState ByronBlock mk -> Word32 Source # maxTxSize :: forall (mk :: MapKind). LedgerState ByronBlock mk -> Word32 Source # | |||||||||
| InspectLedger ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Inspect Associated Types
Methods inspectLedger :: forall (mk1 :: MapKind) (mk2 :: MapKind). TopLevelConfig ByronBlock -> LedgerState ByronBlock mk1 -> LedgerState ByronBlock mk2 -> [LedgerEvent ByronBlock] Source # | |||||||||
| BlockSupportsLedgerQuery ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Methods answerPureBlockQuery :: ExtLedgerCfg ByronBlock -> BlockQuery ByronBlock 'QFNoTables result -> ExtLedgerState ByronBlock EmptyMK -> result Source # answerBlockQueryLookup :: MonadSTM m => ExtLedgerCfg ByronBlock -> BlockQuery ByronBlock 'QFLookupTables result -> ReadOnlyForker' m ByronBlock -> m result Source # answerBlockQueryTraverse :: MonadSTM m => ExtLedgerCfg ByronBlock -> BlockQuery ByronBlock 'QFTraverseTables result -> ReadOnlyForker' m ByronBlock -> m result Source # blockQueryIsSupportedOnVersion :: forall (fp :: QueryFootprint) result. BlockQuery ByronBlock fp result -> BlockNodeToClientVersion ByronBlock -> Bool Source # | |||||||||
| HasTxs ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool Methods extractTxs :: ByronBlock -> [GenTx ByronBlock] Source # | |||||||||
| LedgerSupportsMempool ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool Methods txInvariant :: GenTx ByronBlock -> Bool Source # applyTx :: LedgerConfig ByronBlock -> WhetherToIntervene -> SlotNo -> GenTx ByronBlock -> TickedLedgerState ByronBlock ValuesMK -> Except (ApplyTxErr ByronBlock) (TickedLedgerState ByronBlock DiffMK, Validated (GenTx ByronBlock)) Source # reapplyTx :: LedgerConfig ByronBlock -> SlotNo -> Validated (GenTx ByronBlock) -> TickedLedgerState ByronBlock ValuesMK -> Except (ApplyTxErr ByronBlock) (TickedLedgerState ByronBlock ValuesMK) Source # reapplyTxs :: forall (wtd :: WhatToDoWithTxDiffs) extra. LedgerConfig ByronBlock -> SlotNo -> [(Validated (GenTx ByronBlock), InputTxDiffs ByronBlock wtd, extra)] -> TickedLedgerState ByronBlock ValuesMK -> ReapplyTxsResult extra ByronBlock wtd Source # txForgetValidated :: Validated (GenTx ByronBlock) -> GenTx ByronBlock Source # getTransactionKeySets :: GenTx ByronBlock -> LedgerTables (LedgerState ByronBlock) KeysMK Source # prependMempoolDiffs :: TickedLedgerState ByronBlock DiffMK -> TickedLedgerState ByronBlock DiffMK -> TickedLedgerState ByronBlock DiffMK Source # applyMempoolDiffs :: LedgerTables (LedgerState ByronBlock) ValuesMK -> LedgerTables (LedgerState ByronBlock) KeysMK -> TickedLedgerState ByronBlock DiffMK -> TickedLedgerState ByronBlock ValuesMK Source # mkMempoolApplyTxError :: forall (mk :: MapKind). TickedLedgerState ByronBlock mk -> Text -> Maybe (ApplyTxErr ByronBlock) Source # | |||||||||
| TxLimits ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool Associated Types
Methods txWireSize :: GenTx ByronBlock -> SizeInBytes Source # txMeasure :: LedgerConfig ByronBlock -> TickedLedgerState ByronBlock ValuesMK -> GenTx ByronBlock -> Except (ApplyTxErr ByronBlock) (TxMeasure ByronBlock) Source # blockCapacityTxMeasure :: forall (mk :: MapKind). LedgerConfig ByronBlock -> TickedLedgerState ByronBlock mk -> TxMeasure ByronBlock Source # | |||||||||
| LedgerSupportsPeerSelection ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Methods getPeers :: forall (mk :: MapKind). LedgerState ByronBlock mk -> [(PoolStake, NonEmpty StakePoolRelay)] Source # | |||||||||
| LedgerSupportsPeras ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node Methods getLatestPerasCertRound :: forall (mk :: MapKind). LedgerState ByronBlock mk -> Maybe PerasRoundNo Source # | |||||||||
| LedgerSupportsProtocol ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Methods protocolLedgerView :: forall (mk :: MapKind). LedgerConfig ByronBlock -> Ticked (LedgerState ByronBlock) mk -> LedgerView (BlockProtocol ByronBlock) Source # ledgerViewForecastAt :: forall (mk :: MapKind). HasCallStack => LedgerConfig ByronBlock -> LedgerState ByronBlock mk -> Forecast (LedgerView (BlockProtocol ByronBlock)) Source # | |||||||||
| NodeInitStorage ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node Methods nodeImmutableDbChunkInfo :: StorageConfig ByronBlock -> ChunkInfo Source # nodeCheckIntegrity :: StorageConfig ByronBlock -> ByronBlock -> Bool Source # nodeInitChainDB :: IOLike m => StorageConfig ByronBlock -> InitChainDB m ByronBlock -> m () Source # | |||||||||
| HasNetworkProtocolVersion ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.NetworkProtocolVersion Associated Types
| |||||||||
| SupportedNetworkProtocolVersion ByronBlockHFC # | |||||||||
Defined in Ouroboros.Consensus.Byron.ByronHFC Methods supportedNodeToNodeVersions :: Proxy ByronBlockHFC -> Map NodeToNodeVersion (BlockNodeToNodeVersion ByronBlockHFC) Source # supportedNodeToClientVersions :: Proxy ByronBlockHFC -> Map NodeToClientVersion (BlockNodeToClientVersion ByronBlockHFC) Source # latestReleasedNodeVersion :: Proxy ByronBlockHFC -> (Maybe NodeToNodeVersion, Maybe NodeToClientVersion) Source # | |||||||||
| SupportedNetworkProtocolVersion ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.NetworkProtocolVersion Methods supportedNodeToNodeVersions :: Proxy ByronBlock -> Map NodeToNodeVersion (BlockNodeToNodeVersion ByronBlock) Source # supportedNodeToClientVersions :: Proxy ByronBlock -> Map NodeToClientVersion (BlockNodeToClientVersion ByronBlock) Source # latestReleasedNodeVersion :: Proxy ByronBlock -> (Maybe NodeToNodeVersion, Maybe NodeToClientVersion) Source # | |||||||||
| RunNode ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node | |||||||||
| SerialiseNodeToClientConstraints ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node.Serialisation | |||||||||
| SerialiseNodeToNodeConstraints ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node.Serialisation Methods estimateBlockSize :: Header ByronBlock -> SizeInBytes Source # | |||||||||
| SerialiseDiskConstraints ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node.Serialisation | |||||||||
| HasBinaryBlockInfo ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node.Serialisation Methods getBinaryBlockInfo :: ByronBlock -> BinaryBlockInfo Source # | |||||||||
| Condense ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Block Methods condense :: ByronBlock -> String Source # | |||||||||
| HasHeader ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Block Methods | |||||||||
| IOLike m => Protocol m ByronBlockHFC Source # | Run PBFT against the Byron ledger | ||||||||
Defined in Cardano.Api.Consensus.Internal.Protocol Associated Types
Methods protocolInfo :: ProtocolInfoArgs ByronBlockHFC -> (ProtocolInfo ByronBlockHFC, Tracer m KESAgentClientTrace -> m [MkBlockForging m ByronBlockHFC]) Source # | |||||||||
| HasNestedContent Header ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Serialisation Methods unnest :: Header ByronBlock -> DepPair (NestedCtxt Header ByronBlock) Source # nest :: DepPair (NestedCtxt Header ByronBlock) -> Header ByronBlock Source # | |||||||||
| SerialiseNodeToClient ByronBlock ApplyMempoolPayloadErr # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node.Serialisation Methods encodeNodeToClient :: CodecConfig ByronBlock -> BlockNodeToClientVersion ByronBlock -> ApplyMempoolPayloadErr -> Encoding Source # decodeNodeToClient :: CodecConfig ByronBlock -> BlockNodeToClientVersion ByronBlock -> forall s. Decoder s ApplyMempoolPayloadErr Source # | |||||||||
| SerialiseNodeToClient ByronBlock Config # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node.Serialisation Methods encodeNodeToClient :: CodecConfig ByronBlock -> BlockNodeToClientVersion ByronBlock -> Config -> Encoding Source # decodeNodeToClient :: CodecConfig ByronBlock -> BlockNodeToClientVersion ByronBlock -> forall s. Decoder s Config Source # | |||||||||
| SerialiseNodeToClient ByronBlock SlotNo # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node.Serialisation Methods encodeNodeToClient :: CodecConfig ByronBlock -> BlockNodeToClientVersion ByronBlock -> SlotNo -> Encoding Source # decodeNodeToClient :: CodecConfig ByronBlock -> BlockNodeToClientVersion ByronBlock -> forall s. Decoder s SlotNo Source # | |||||||||
| SerialiseNodeToClient ByronBlock ByronPartialLedgerConfig # | |||||||||
Defined in Ouroboros.Consensus.Byron.ByronHFC Methods encodeNodeToClient :: CodecConfig ByronBlock -> BlockNodeToClientVersion ByronBlock -> ByronPartialLedgerConfig -> Encoding Source # decodeNodeToClient :: CodecConfig ByronBlock -> BlockNodeToClientVersion ByronBlock -> forall s. Decoder s ByronPartialLedgerConfig Source # | |||||||||
| SerialiseNodeToClient ByronBlock ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node.Serialisation Methods encodeNodeToClient :: CodecConfig ByronBlock -> BlockNodeToClientVersion ByronBlock -> ByronBlock -> Encoding Source # decodeNodeToClient :: CodecConfig ByronBlock -> BlockNodeToClientVersion ByronBlock -> forall s. Decoder s ByronBlock Source # | |||||||||
| SerialiseNodeToNode ByronBlock ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node.Serialisation Methods encodeNodeToNode :: CodecConfig ByronBlock -> BlockNodeToNodeVersion ByronBlock -> ByronBlock -> Encoding Source # decodeNodeToNode :: CodecConfig ByronBlock -> BlockNodeToNodeVersion ByronBlock -> forall s. Decoder s ByronBlock Source # | |||||||||
| EncodeDisk ByronBlock ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node.Serialisation Methods encodeDisk :: CodecConfig ByronBlock -> ByronBlock -> Encoding Source # | |||||||||
| ReconstructNestedCtxt Header ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node.Serialisation Methods reconstructPrefixLen :: proxy (Header ByronBlock) -> PrefixLen Source # reconstructNestedCtxt :: proxy (Header ByronBlock) -> ShortByteString -> SizeInBytes -> SomeSecond (NestedCtxt Header) ByronBlock Source # | |||||||||
| StandardHash ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Block | |||||||||
| ShowProxy ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Block Methods showProxy :: Proxy ByronBlock -> String # | |||||||||
| SerialiseBlockQueryResult ByronBlock BlockQuery # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node.Serialisation Methods encodeBlockQueryResult :: forall (fp :: QueryFootprint) result. CodecConfig ByronBlock -> BlockNodeToClientVersion ByronBlock -> BlockQuery ByronBlock fp result -> result -> Encoding Source # decodeBlockQueryResult :: forall (fp :: QueryFootprint) result. CodecConfig ByronBlock -> BlockNodeToClientVersion ByronBlock -> BlockQuery ByronBlock fp result -> forall s. Decoder s result Source # | |||||||||
| SameDepIndex2 (BlockQuery ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Methods sameDepIndex2 :: forall (x :: QueryFootprint) a (y :: QueryFootprint) b. BlockQuery ByronBlock x a -> BlockQuery ByronBlock y b -> Maybe ('(x, a) :~: '(y, b)) Source # | |||||||||
| (CardanoHardForkConstraints StandardCrypto, IOLike m, MonadKESAgent m) => Protocol m (CardanoBlock StandardCrypto) Source # | |||||||||
Defined in Cardano.Api.Consensus.Internal.Protocol Associated Types
Methods protocolInfo :: ProtocolInfoArgs (CardanoBlock StandardCrypto) -> (ProtocolInfo (CardanoBlock StandardCrypto), Tracer m KESAgentClientTrace -> m [MkBlockForging m (CardanoBlock StandardCrypto)]) Source # | |||||||||
| SerialiseNodeToClient ByronBlock (SomeBlockQuery (BlockQuery ByronBlock)) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node.Serialisation Methods encodeNodeToClient :: CodecConfig ByronBlock -> BlockNodeToClientVersion ByronBlock -> SomeBlockQuery (BlockQuery ByronBlock) -> Encoding Source # decodeNodeToClient :: CodecConfig ByronBlock -> BlockNodeToClientVersion ByronBlock -> forall s. Decoder s (SomeBlockQuery (BlockQuery ByronBlock)) Source # | |||||||||
| SerialiseNodeToClient ByronBlock (GenTx ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node.Serialisation Methods encodeNodeToClient :: CodecConfig ByronBlock -> BlockNodeToClientVersion ByronBlock -> GenTx ByronBlock -> Encoding Source # decodeNodeToClient :: CodecConfig ByronBlock -> BlockNodeToClientVersion ByronBlock -> forall s. Decoder s (GenTx ByronBlock) Source # | |||||||||
| SerialiseNodeToClient ByronBlock (GenTxId ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node.Serialisation Methods encodeNodeToClient :: CodecConfig ByronBlock -> BlockNodeToClientVersion ByronBlock -> GenTxId ByronBlock -> Encoding Source # decodeNodeToClient :: CodecConfig ByronBlock -> BlockNodeToClientVersion ByronBlock -> forall s. Decoder s (GenTxId ByronBlock) Source # | |||||||||
| SerialiseNodeToNode ByronBlock (Header ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node.Serialisation Methods encodeNodeToNode :: CodecConfig ByronBlock -> BlockNodeToNodeVersion ByronBlock -> Header ByronBlock -> Encoding Source # decodeNodeToNode :: CodecConfig ByronBlock -> BlockNodeToNodeVersion ByronBlock -> forall s. Decoder s (Header ByronBlock) Source # | |||||||||
| SerialiseNodeToNode ByronBlock (GenTx ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node.Serialisation Methods encodeNodeToNode :: CodecConfig ByronBlock -> BlockNodeToNodeVersion ByronBlock -> GenTx ByronBlock -> Encoding Source # decodeNodeToNode :: CodecConfig ByronBlock -> BlockNodeToNodeVersion ByronBlock -> forall s. Decoder s (GenTx ByronBlock) Source # | |||||||||
| SerialiseNodeToNode ByronBlock (GenTxId ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node.Serialisation Methods encodeNodeToNode :: CodecConfig ByronBlock -> BlockNodeToNodeVersion ByronBlock -> GenTxId ByronBlock -> Encoding Source # decodeNodeToNode :: CodecConfig ByronBlock -> BlockNodeToNodeVersion ByronBlock -> forall s. Decoder s (GenTxId ByronBlock) Source # | |||||||||
| SerialiseNodeToNode ByronBlock (SerialisedHeader ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node.Serialisation Methods encodeNodeToNode :: CodecConfig ByronBlock -> BlockNodeToNodeVersion ByronBlock -> SerialisedHeader ByronBlock -> Encoding Source # decodeNodeToNode :: CodecConfig ByronBlock -> BlockNodeToNodeVersion ByronBlock -> forall s. Decoder s (SerialisedHeader ByronBlock) Source # | |||||||||
| DecodeDisk ByronBlock (AnnTip ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node.Serialisation Methods decodeDisk :: CodecConfig ByronBlock -> forall s. Decoder s (AnnTip ByronBlock) Source # | |||||||||
| DecodeDisk ByronBlock (PBftState PBftByronCrypto) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node.Serialisation Methods decodeDisk :: CodecConfig ByronBlock -> forall s. Decoder s (PBftState PBftByronCrypto) Source # | |||||||||
| EncodeDisk ByronBlock (AnnTip ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node.Serialisation Methods encodeDisk :: CodecConfig ByronBlock -> AnnTip ByronBlock -> Encoding Source # | |||||||||
| EncodeDisk ByronBlock (PBftState PBftByronCrypto) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node.Serialisation Methods encodeDisk :: CodecConfig ByronBlock -> PBftState PBftByronCrypto -> Encoding Source # | |||||||||
| ShowProxy (Header ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Block | |||||||||
| ShowProxy (GenTx ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool | |||||||||
| ShowProxy (TxId (GenTx ByronBlock)) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool | |||||||||
| SerialiseNodeToClient ByronBlock (Serialised ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node.Serialisation Methods encodeNodeToClient :: CodecConfig ByronBlock -> BlockNodeToClientVersion ByronBlock -> Serialised ByronBlock -> Encoding Source # decodeNodeToClient :: CodecConfig ByronBlock -> BlockNodeToClientVersion ByronBlock -> forall s. Decoder s (Serialised ByronBlock) Source # | |||||||||
| SerialiseNodeToNode ByronBlock (Serialised ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node.Serialisation Methods encodeNodeToNode :: CodecConfig ByronBlock -> BlockNodeToNodeVersion ByronBlock -> Serialised ByronBlock -> Encoding Source # decodeNodeToNode :: CodecConfig ByronBlock -> BlockNodeToNodeVersion ByronBlock -> forall s. Decoder s (Serialised ByronBlock) Source # | |||||||||
| DecodeDisk ByronBlock (LedgerState ByronBlock mk) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node.Serialisation Methods decodeDisk :: CodecConfig ByronBlock -> forall s. Decoder s (LedgerState ByronBlock mk) Source # | |||||||||
| DecodeDisk ByronBlock (ByteString -> Either DecoderError ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node.Serialisation Methods decodeDisk :: CodecConfig ByronBlock -> forall s. Decoder s (ByteString -> Either DecoderError ByronBlock) Source # | |||||||||
| EncodeDisk ByronBlock (LedgerState ByronBlock mk) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node.Serialisation Methods encodeDisk :: CodecConfig ByronBlock -> LedgerState ByronBlock mk -> Encoding Source # | |||||||||
| SameDepIndex (NestedCtxt_ ByronBlock f :: Type -> Type) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Serialisation Methods sameDepIndex :: NestedCtxt_ ByronBlock f a -> NestedCtxt_ ByronBlock f b -> Maybe (a :~: b) Source # | |||||||||
| CardanoHardForkConstraints StandardCrypto => ProtocolClient (CardanoBlock StandardCrypto) Source # | |||||||||
Defined in Cardano.Api.Consensus.Internal.Protocol Associated Types
Methods protocolClientInfo :: ProtocolClientInfoArgs (CardanoBlock StandardCrypto) -> ProtocolClientInfo (CardanoBlock StandardCrypto) Source # | |||||||||
| Eq (Header ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Block Methods (==) :: Header ByronBlock -> Header ByronBlock -> Bool Source # (/=) :: Header ByronBlock -> Header ByronBlock -> Bool Source # | |||||||||
| Eq (CanonicalTxIn (CardanoEras c)) # | |||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Methods (==) :: CanonicalTxIn (CardanoEras c) -> CanonicalTxIn (CardanoEras c) -> Bool Source # (/=) :: CanonicalTxIn (CardanoEras c) -> CanonicalTxIn (CardanoEras c) -> Bool Source # | |||||||||
| Eq (CanonicalTxIn '[ByronBlock]) # | |||||||||
Defined in Ouroboros.Consensus.Byron.ByronHFC Methods (==) :: CanonicalTxIn '[ByronBlock] -> CanonicalTxIn '[ByronBlock] -> Bool Source # (/=) :: CanonicalTxIn '[ByronBlock] -> CanonicalTxIn '[ByronBlock] -> Bool Source # | |||||||||
| Eq (Validated (GenTx ByronBlock)) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool Methods (==) :: Validated (GenTx ByronBlock) -> Validated (GenTx ByronBlock) -> Bool Source # (/=) :: Validated (GenTx ByronBlock) -> Validated (GenTx ByronBlock) -> Bool Source # | |||||||||
| Eq (GenTx ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool Methods (==) :: GenTx ByronBlock -> GenTx ByronBlock -> Bool Source # (/=) :: GenTx ByronBlock -> GenTx ByronBlock -> Bool Source # | |||||||||
| Eq (TxId (GenTx ByronBlock)) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool Methods (==) :: TxId (GenTx ByronBlock) -> TxId (GenTx ByronBlock) -> Bool Source # (/=) :: TxId (GenTx ByronBlock) -> TxId (GenTx ByronBlock) -> Bool Source # | |||||||||
| Ord (CanonicalTxIn (CardanoEras c)) # | |||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Methods compare :: CanonicalTxIn (CardanoEras c) -> CanonicalTxIn (CardanoEras c) -> Ordering Source # (<) :: CanonicalTxIn (CardanoEras c) -> CanonicalTxIn (CardanoEras c) -> Bool Source # (<=) :: CanonicalTxIn (CardanoEras c) -> CanonicalTxIn (CardanoEras c) -> Bool Source # (>) :: CanonicalTxIn (CardanoEras c) -> CanonicalTxIn (CardanoEras c) -> Bool Source # (>=) :: CanonicalTxIn (CardanoEras c) -> CanonicalTxIn (CardanoEras c) -> Bool Source # max :: CanonicalTxIn (CardanoEras c) -> CanonicalTxIn (CardanoEras c) -> CanonicalTxIn (CardanoEras c) Source # min :: CanonicalTxIn (CardanoEras c) -> CanonicalTxIn (CardanoEras c) -> CanonicalTxIn (CardanoEras c) Source # | |||||||||
| Ord (CanonicalTxIn '[ByronBlock]) # | |||||||||
Defined in Ouroboros.Consensus.Byron.ByronHFC Methods compare :: CanonicalTxIn '[ByronBlock] -> CanonicalTxIn '[ByronBlock] -> Ordering Source # (<) :: CanonicalTxIn '[ByronBlock] -> CanonicalTxIn '[ByronBlock] -> Bool Source # (<=) :: CanonicalTxIn '[ByronBlock] -> CanonicalTxIn '[ByronBlock] -> Bool Source # (>) :: CanonicalTxIn '[ByronBlock] -> CanonicalTxIn '[ByronBlock] -> Bool Source # (>=) :: CanonicalTxIn '[ByronBlock] -> CanonicalTxIn '[ByronBlock] -> Bool Source # max :: CanonicalTxIn '[ByronBlock] -> CanonicalTxIn '[ByronBlock] -> CanonicalTxIn '[ByronBlock] Source # min :: CanonicalTxIn '[ByronBlock] -> CanonicalTxIn '[ByronBlock] -> CanonicalTxIn '[ByronBlock] Source # | |||||||||
| Ord (TxId (GenTx ByronBlock)) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool Methods compare :: TxId (GenTx ByronBlock) -> TxId (GenTx ByronBlock) -> Ordering Source # (<) :: TxId (GenTx ByronBlock) -> TxId (GenTx ByronBlock) -> Bool Source # (<=) :: TxId (GenTx ByronBlock) -> TxId (GenTx ByronBlock) -> Bool Source # (>) :: TxId (GenTx ByronBlock) -> TxId (GenTx ByronBlock) -> Bool Source # (>=) :: TxId (GenTx ByronBlock) -> TxId (GenTx ByronBlock) -> Bool Source # max :: TxId (GenTx ByronBlock) -> TxId (GenTx ByronBlock) -> TxId (GenTx ByronBlock) Source # min :: TxId (GenTx ByronBlock) -> TxId (GenTx ByronBlock) -> TxId (GenTx ByronBlock) Source # | |||||||||
| Generic (BlockConfig ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Config Associated Types
Methods from :: BlockConfig ByronBlock -> Rep (BlockConfig ByronBlock) x Source # to :: Rep (BlockConfig ByronBlock) x -> BlockConfig ByronBlock Source # | |||||||||
| Generic (CodecConfig ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Config Associated Types
Methods from :: CodecConfig ByronBlock -> Rep (CodecConfig ByronBlock) x Source # to :: Rep (CodecConfig ByronBlock) x -> CodecConfig ByronBlock Source # | |||||||||
| Generic (Header ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Block Associated Types
Methods from :: Header ByronBlock -> Rep (Header ByronBlock) x Source # to :: Rep (Header ByronBlock) x -> Header ByronBlock Source # | |||||||||
| Generic (StorageConfig ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Config Associated Types
Methods from :: StorageConfig ByronBlock -> Rep (StorageConfig ByronBlock) x Source # to :: Rep (StorageConfig ByronBlock) x -> StorageConfig ByronBlock Source # | |||||||||
| Generic (Validated (GenTx ByronBlock)) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool Associated Types
Methods from :: Validated (GenTx ByronBlock) -> Rep (Validated (GenTx ByronBlock)) x Source # to :: Rep (Validated (GenTx ByronBlock)) x -> Validated (GenTx ByronBlock) Source # | |||||||||
| Generic (GenTx ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool Associated Types
Methods from :: GenTx ByronBlock -> Rep (GenTx ByronBlock) x Source # to :: Rep (GenTx ByronBlock) x -> GenTx ByronBlock Source # | |||||||||
| Show (Header ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Block | |||||||||
| Show (CanonicalTxIn (CardanoEras c)) # | |||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger | |||||||||
| Show (CanonicalTxIn '[ByronBlock]) # | |||||||||
Defined in Ouroboros.Consensus.Byron.ByronHFC Methods showsPrec :: Int -> CanonicalTxIn '[ByronBlock] -> ShowS Source # show :: CanonicalTxIn '[ByronBlock] -> String Source # showList :: [CanonicalTxIn '[ByronBlock]] -> ShowS Source # | |||||||||
| Show (Validated (GenTx ByronBlock)) # | |||||||||
| Show (GenTx ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool | |||||||||
| Show (GenTxId ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool | |||||||||
| CardanoHardForkConstraints c => MemPack (CanonicalTxIn (CardanoEras c)) # | |||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Methods packedByteCount :: CanonicalTxIn (CardanoEras c) -> Int # packM :: CanonicalTxIn (CardanoEras c) -> Pack s () # unpackM :: Buffer b => Unpack s b (CanonicalTxIn (CardanoEras c)) # | |||||||||
| MemPack (CanonicalTxIn '[ByronBlock]) # | |||||||||
Defined in Ouroboros.Consensus.Byron.ByronHFC Methods packedByteCount :: CanonicalTxIn '[ByronBlock] -> Int # packM :: CanonicalTxIn '[ByronBlock] -> Pack s () # unpackM :: Buffer b => Unpack s b (CanonicalTxIn '[ByronBlock]) # | |||||||||
| NoThunks (BlockConfig ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Config Methods noThunks :: Context -> BlockConfig ByronBlock -> IO (Maybe ThunkInfo) # wNoThunks :: Context -> BlockConfig ByronBlock -> IO (Maybe ThunkInfo) # showTypeOf :: Proxy (BlockConfig ByronBlock) -> String # | |||||||||
| NoThunks (CodecConfig ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Config Methods noThunks :: Context -> CodecConfig ByronBlock -> IO (Maybe ThunkInfo) # wNoThunks :: Context -> CodecConfig ByronBlock -> IO (Maybe ThunkInfo) # showTypeOf :: Proxy (CodecConfig ByronBlock) -> String # | |||||||||
| NoThunks (Header ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Block Methods noThunks :: Context -> Header ByronBlock -> IO (Maybe ThunkInfo) # wNoThunks :: Context -> Header ByronBlock -> IO (Maybe ThunkInfo) # showTypeOf :: Proxy (Header ByronBlock) -> String # | |||||||||
| NoThunks (StorageConfig ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Config Methods noThunks :: Context -> StorageConfig ByronBlock -> IO (Maybe ThunkInfo) # wNoThunks :: Context -> StorageConfig ByronBlock -> IO (Maybe ThunkInfo) # showTypeOf :: Proxy (StorageConfig ByronBlock) -> String # | |||||||||
| NoThunks (CanonicalTxIn (CardanoEras c)) # | |||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Methods noThunks :: Context -> CanonicalTxIn (CardanoEras c) -> IO (Maybe ThunkInfo) # wNoThunks :: Context -> CanonicalTxIn (CardanoEras c) -> IO (Maybe ThunkInfo) # showTypeOf :: Proxy (CanonicalTxIn (CardanoEras c)) -> String # | |||||||||
| NoThunks (CanonicalTxIn '[ByronBlock]) # | |||||||||
Defined in Ouroboros.Consensus.Byron.ByronHFC Methods noThunks :: Context -> CanonicalTxIn '[ByronBlock] -> IO (Maybe ThunkInfo) # wNoThunks :: Context -> CanonicalTxIn '[ByronBlock] -> IO (Maybe ThunkInfo) # showTypeOf :: Proxy (CanonicalTxIn '[ByronBlock]) -> String # | |||||||||
| NoThunks (Validated (GenTx ByronBlock)) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool | |||||||||
| NoThunks (GenTx ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool Methods noThunks :: Context -> GenTx ByronBlock -> IO (Maybe ThunkInfo) # wNoThunks :: Context -> GenTx ByronBlock -> IO (Maybe ThunkInfo) # showTypeOf :: Proxy (GenTx ByronBlock) -> String # | |||||||||
| NoThunks (TxId (GenTx ByronBlock)) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool | |||||||||
| CardanoHardForkConstraints c => CanHardFork (CardanoEras c) # | |||||||||
Defined in Ouroboros.Consensus.Cardano.CanHardFork Associated Types
Methods hardForkEraTranslation :: EraTranslation (CardanoEras c) Source # hardForkChainSel :: Tails AcrossEraTiebreaker (CardanoEras c) Source # hardForkInjectTxs :: InPairs (RequiringBoth WrapLedgerConfig (Product2 InjectTx InjectValidatedTx)) (CardanoEras c) Source # hardForkInjTxMeasure :: NS WrapTxMeasure (CardanoEras c) -> HardForkTxMeasure (CardanoEras c) Source # | |||||||||
| CardanoHardForkConstraints c => HasCanonicalTxIn (CardanoEras c) # | |||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Associated Types
Methods injectCanonicalTxIn :: Index (CardanoEras c) x -> TxIn (LedgerState x) -> CanonicalTxIn (CardanoEras c) Source # ejectCanonicalTxIn :: Index (CardanoEras c) x -> CanonicalTxIn (CardanoEras c) -> TxIn (LedgerState x) Source # | |||||||||
| CardanoHardForkConstraints c => HasHardForkTxOut (CardanoEras c) # | |||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Associated Types
Methods injectHardForkTxOut :: Index (CardanoEras c) x -> TxOut (LedgerState x) -> HardForkTxOut (CardanoEras c) Source # ejectHardForkTxOut :: Index (CardanoEras c) x -> HardForkTxOut (CardanoEras c) -> TxOut (LedgerState x) Source # txOutEjections :: NP ((K (NS WrapTxOut (CardanoEras c)) :: Type -> Type) -.-> WrapTxOut) (CardanoEras c) Source # txOutTranslations :: Tails (Fn2 WrapTxOut) (CardanoEras c) Source # | |||||||||
| CardanoHardForkConstraints c => BlockSupportsHFLedgerQuery (CardanoEras c) # | |||||||||
Defined in Ouroboros.Consensus.Cardano.QueryHF Methods answerBlockQueryHFLookup :: (All SingleEraBlock (CardanoEras c), Monad m) => Index (CardanoEras c) x -> ExtLedgerCfg x -> BlockQuery x 'QFLookupTables result -> ReadOnlyForker' m (HardForkBlock (CardanoEras c)) -> m result Source # answerBlockQueryHFTraverse :: (All SingleEraBlock (CardanoEras c), Monad m) => Index (CardanoEras c) x -> ExtLedgerCfg x -> BlockQuery x 'QFTraverseTables result -> ReadOnlyForker' m (HardForkBlock (CardanoEras c)) -> m result Source # queryLedgerGetTraversingFilter :: Index (CardanoEras c) x -> BlockQuery x 'QFTraverseTables result -> TxOut (LedgerState (HardForkBlock (CardanoEras c))) -> Bool Source # | |||||||||
| CardanoHardForkConstraints c => SerialiseHFC (CardanoEras c) # | |||||||||
Defined in Ouroboros.Consensus.Cardano.Node Methods encodeDiskHfcBlock :: CodecConfig (HardForkBlock (CardanoEras c)) -> HardForkBlock (CardanoEras c) -> Encoding Source # decodeDiskHfcBlock :: CodecConfig (HardForkBlock (CardanoEras c)) -> forall s. Decoder s (ByteString -> Either DecoderError (HardForkBlock (CardanoEras c))) Source # reconstructHfcPrefixLen :: proxy (Header (HardForkBlock (CardanoEras c))) -> PrefixLen Source # reconstructHfcNestedCtxt :: proxy (Header (HardForkBlock (CardanoEras c))) -> ShortByteString -> SizeInBytes -> SomeSecond (NestedCtxt Header) (HardForkBlock (CardanoEras c)) Source # getHfcBinaryBlockInfo :: HardForkBlock (CardanoEras c) -> BinaryBlockInfo Source # estimateHfcBlockSize :: Header (HardForkBlock (CardanoEras c)) -> SizeInBytes Source # | |||||||||
| GetTip (LedgerState ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Methods getTip :: forall (mk :: MapKind). LedgerState ByronBlock mk -> Point (LedgerState ByronBlock) Source # | |||||||||
| IsLedger (LedgerState ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Associated Types
Methods applyChainTickLedgerResult :: ComputeLedgerEvents -> LedgerCfg (LedgerState ByronBlock) -> SlotNo -> LedgerState ByronBlock EmptyMK -> LedgerResult (LedgerState ByronBlock) (Ticked (LedgerState ByronBlock) DiffMK) Source # | |||||||||
| ConvertRawTxId (GenTx ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool Methods toRawTxIdHash :: TxId (GenTx ByronBlock) -> ShortByteString Source # | |||||||||
| HasTxId (GenTx ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool Methods txId :: GenTx ByronBlock -> TxId (GenTx ByronBlock) Source # | |||||||||
| CanStowLedgerTables (LedgerState ByronBlock) # | |||||||||
| HasLedgerTables (LedgerState ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Methods projectLedgerTables :: forall (mk :: MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) => LedgerState ByronBlock mk -> LedgerTables (LedgerState ByronBlock) mk Source # withLedgerTables :: forall (mk :: MapKind) (any :: MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) => LedgerState ByronBlock any -> LedgerTables (LedgerState ByronBlock) mk -> LedgerState ByronBlock mk Source # | |||||||||
| LedgerTablesAreTrivial (LedgerState ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Methods convertMapKind :: forall (mk :: MapKind) (mk' :: MapKind). LedgerState ByronBlock mk -> LedgerState ByronBlock mk' Source # | |||||||||
| CardanoHardForkConstraints c => SerializeTablesWithHint (LedgerState (HardForkBlock (CardanoEras c))) # | |||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Methods encodeTablesWithHint :: SerializeTablesHint (LedgerTables (LedgerState (HardForkBlock (CardanoEras c))) ValuesMK) -> LedgerTables (LedgerState (HardForkBlock (CardanoEras c))) ValuesMK -> Encoding Source # decodeTablesWithHint :: SerializeTablesHint (LedgerTables (LedgerState (HardForkBlock (CardanoEras c))) ValuesMK) -> Decoder s (LedgerTables (LedgerState (HardForkBlock (CardanoEras c))) ValuesMK) Source # | |||||||||
| SerializeTablesWithHint (LedgerState (HardForkBlock '[ByronBlock])) # | |||||||||
Defined in Ouroboros.Consensus.Byron.ByronHFC Methods encodeTablesWithHint :: SerializeTablesHint (LedgerTables (LedgerState (HardForkBlock '[ByronBlock])) ValuesMK) -> LedgerTables (LedgerState (HardForkBlock '[ByronBlock])) ValuesMK -> Encoding Source # decodeTablesWithHint :: SerializeTablesHint (LedgerTables (LedgerState (HardForkBlock '[ByronBlock])) ValuesMK) -> Decoder s (LedgerTables (LedgerState (HardForkBlock '[ByronBlock])) ValuesMK) Source # | |||||||||
| SerializeTablesWithHint (LedgerState ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Methods encodeTablesWithHint :: SerializeTablesHint (LedgerTables (LedgerState ByronBlock) ValuesMK) -> LedgerTables (LedgerState ByronBlock) ValuesMK -> Encoding Source # decodeTablesWithHint :: SerializeTablesHint (LedgerTables (LedgerState ByronBlock) ValuesMK) -> Decoder s (LedgerTables (LedgerState ByronBlock) ValuesMK) Source # | |||||||||
| CardanoHardForkConstraints c => SupportedNetworkProtocolVersion (CardanoBlock c) # | |||||||||
Defined in Ouroboros.Consensus.Cardano.Node Methods supportedNodeToNodeVersions :: Proxy (CardanoBlock c) -> Map NodeToNodeVersion (BlockNodeToNodeVersion (CardanoBlock c)) Source # supportedNodeToClientVersions :: Proxy (CardanoBlock c) -> Map NodeToClientVersion (BlockNodeToClientVersion (CardanoBlock c)) Source # latestReleasedNodeVersion :: Proxy (CardanoBlock c) -> (Maybe NodeToNodeVersion, Maybe NodeToClientVersion) Source # | |||||||||
| CanUpgradeLedgerTables (LedgerState ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Methods upgradeTables :: forall (mk1 :: MapKind) (mk2 :: MapKind). LedgerState ByronBlock mk1 -> LedgerState ByronBlock mk2 -> LedgerTables (LedgerState ByronBlock) ValuesMK -> LedgerTables (LedgerState ByronBlock) ValuesMK Source # | |||||||||
| Condense (Header ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Block | |||||||||
| Condense (GenTx ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool | |||||||||
| Condense (GenTxId ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool | |||||||||
| HasHeader (Header ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Block Methods getHeaderFields :: Header ByronBlock -> HeaderFields (Header ByronBlock) # | |||||||||
| ApplyBlock (LedgerState ByronBlock) ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Methods applyBlockLedgerResultWithValidation :: ValidationPolicy -> ComputeLedgerEvents -> LedgerCfg (LedgerState ByronBlock) -> ByronBlock -> Ticked (LedgerState ByronBlock) ValuesMK -> Except (LedgerErr (LedgerState ByronBlock)) (LedgerResult (LedgerState ByronBlock) (LedgerState ByronBlock DiffMK)) Source # applyBlockLedgerResult :: ComputeLedgerEvents -> LedgerCfg (LedgerState ByronBlock) -> ByronBlock -> Ticked (LedgerState ByronBlock) ValuesMK -> Except (LedgerErr (LedgerState ByronBlock)) (LedgerResult (LedgerState ByronBlock) (LedgerState ByronBlock DiffMK)) Source # reapplyBlockLedgerResult :: ComputeLedgerEvents -> LedgerCfg (LedgerState ByronBlock) -> ByronBlock -> Ticked (LedgerState ByronBlock) ValuesMK -> LedgerResult (LedgerState ByronBlock) (LedgerState ByronBlock DiffMK) Source # getBlockKeySets :: ByronBlock -> LedgerTables (LedgerState ByronBlock) KeysMK Source # | |||||||||
| DecodeDiskDep (NestedCtxt Header) ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node.Serialisation Methods decodeDiskDep :: CodecConfig ByronBlock -> NestedCtxt Header ByronBlock a -> forall s. Decoder s (ByteString -> a) Source # | |||||||||
| DecodeDiskDepIx (NestedCtxt Header) ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node.Serialisation Methods decodeDiskDepIx :: CodecConfig ByronBlock -> Decoder s (SomeSecond (NestedCtxt Header) ByronBlock) Source # | |||||||||
| EncodeDiskDep (NestedCtxt Header) ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node.Serialisation Methods encodeDiskDep :: CodecConfig ByronBlock -> NestedCtxt Header ByronBlock a -> a -> Encoding Source # | |||||||||
| EncodeDiskDepIx (NestedCtxt Header) ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node.Serialisation Methods encodeDiskDepIx :: CodecConfig ByronBlock -> SomeSecond (NestedCtxt Header) ByronBlock -> Encoding Source # | |||||||||
| Eq (LedgerState ByronBlock mk) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Methods (==) :: LedgerState ByronBlock mk -> LedgerState ByronBlock mk -> Bool Source # (/=) :: LedgerState ByronBlock mk -> LedgerState ByronBlock mk -> Bool Source # | |||||||||
| Generic (LedgerState ByronBlock mk) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Associated Types
Methods from :: LedgerState ByronBlock mk -> Rep (LedgerState ByronBlock mk) x Source # to :: Rep (LedgerState ByronBlock mk) x -> LedgerState ByronBlock mk Source # | |||||||||
| Show (LedgerState ByronBlock mk) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Methods showsPrec :: Int -> LedgerState ByronBlock mk -> ShowS Source # show :: LedgerState ByronBlock mk -> String Source # showList :: [LedgerState ByronBlock mk] -> ShowS Source # | |||||||||
| NoThunks (LedgerState ByronBlock mk) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Methods noThunks :: Context -> LedgerState ByronBlock mk -> IO (Maybe ThunkInfo) # wNoThunks :: Context -> LedgerState ByronBlock mk -> IO (Maybe ThunkInfo) # showTypeOf :: Proxy (LedgerState ByronBlock mk) -> String # | |||||||||
| GetTip (Ticked (LedgerState ByronBlock)) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Methods getTip :: forall (mk :: MapKind). Ticked (LedgerState ByronBlock) mk -> Point (Ticked (LedgerState ByronBlock)) Source # | |||||||||
| HasLedgerTables (Ticked (LedgerState ByronBlock)) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Methods projectLedgerTables :: forall (mk :: MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) => Ticked (LedgerState ByronBlock) mk -> LedgerTables (Ticked (LedgerState ByronBlock)) mk Source # withLedgerTables :: forall (mk :: MapKind) (any :: MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) => Ticked (LedgerState ByronBlock) any -> LedgerTables (Ticked (LedgerState ByronBlock)) mk -> Ticked (LedgerState ByronBlock) mk Source # | |||||||||
| LedgerTablesAreTrivial (Ticked (LedgerState ByronBlock)) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Methods convertMapKind :: forall (mk :: MapKind) (mk' :: MapKind). Ticked (LedgerState ByronBlock) mk -> Ticked (LedgerState ByronBlock) mk' Source # | |||||||||
| ShowQuery (BlockQuery ByronBlock fp) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Methods showResult :: BlockQuery ByronBlock fp result -> result -> String # | |||||||||
| IndexedMemPack (LedgerState (HardForkBlock '[ByronBlock]) EmptyMK) Void # | |||||||||
Defined in Ouroboros.Consensus.Byron.ByronHFC Methods indexedPackedByteCount :: LedgerState (HardForkBlock '[ByronBlock]) EmptyMK -> Void -> Int Source # indexedPackM :: LedgerState (HardForkBlock '[ByronBlock]) EmptyMK -> Void -> Pack s () Source # indexedUnpackM :: Buffer b => forall s. LedgerState (HardForkBlock '[ByronBlock]) EmptyMK -> Unpack s b Void Source # indexedTypeName :: LedgerState (HardForkBlock '[ByronBlock]) EmptyMK -> String Source # | |||||||||
| IndexedMemPack (LedgerState ByronBlock EmptyMK) Void # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Methods indexedPackedByteCount :: LedgerState ByronBlock EmptyMK -> Void -> Int Source # indexedPackM :: LedgerState ByronBlock EmptyMK -> Void -> Pack s () Source # indexedUnpackM :: Buffer b => forall s. LedgerState ByronBlock EmptyMK -> Unpack s b Void Source # indexedTypeName :: LedgerState ByronBlock EmptyMK -> String Source # | |||||||||
| CardanoHardForkConstraints c => IndexedMemPack (LedgerState (HardForkBlock (CardanoEras c)) EmptyMK) (CardanoTxOut c) # | |||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Methods indexedPackedByteCount :: LedgerState (HardForkBlock (CardanoEras c)) EmptyMK -> CardanoTxOut c -> Int Source # indexedPackM :: LedgerState (HardForkBlock (CardanoEras c)) EmptyMK -> CardanoTxOut c -> Pack s () Source # indexedUnpackM :: Buffer b => forall s. LedgerState (HardForkBlock (CardanoEras c)) EmptyMK -> Unpack s b (CardanoTxOut c) Source # indexedTypeName :: LedgerState (HardForkBlock (CardanoEras c)) EmptyMK -> String Source # | |||||||||
| ShowProxy (BlockQuery ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Methods showProxy :: Proxy (BlockQuery ByronBlock) -> String # | |||||||||
| Eq (BlockQuery ByronBlock fp result) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Methods (==) :: BlockQuery ByronBlock fp result -> BlockQuery ByronBlock fp result -> Bool Source # (/=) :: BlockQuery ByronBlock fp result -> BlockQuery ByronBlock fp result -> Bool Source # | |||||||||
| Generic (Ticked (LedgerState ByronBlock) mk) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Associated Types
Methods from :: Ticked (LedgerState ByronBlock) mk -> Rep (Ticked (LedgerState ByronBlock) mk) x Source # to :: Rep (Ticked (LedgerState ByronBlock) mk) x -> Ticked (LedgerState ByronBlock) mk Source # | |||||||||
| Show (NestedCtxt_ ByronBlock f a) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Serialisation Methods showsPrec :: Int -> NestedCtxt_ ByronBlock f a -> ShowS Source # show :: NestedCtxt_ ByronBlock f a -> String Source # showList :: [NestedCtxt_ ByronBlock f a] -> ShowS Source # | |||||||||
| Show (BlockQuery ByronBlock fp result) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Methods showsPrec :: Int -> BlockQuery ByronBlock fp result -> ShowS Source # show :: BlockQuery ByronBlock fp result -> String Source # showList :: [BlockQuery ByronBlock fp result] -> ShowS Source # | |||||||||
| NoThunks (Ticked (LedgerState ByronBlock) mk) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Methods noThunks :: Context -> Ticked (LedgerState ByronBlock) mk -> IO (Maybe ThunkInfo) # wNoThunks :: Context -> Ticked (LedgerState ByronBlock) mk -> IO (Maybe ThunkInfo) # showTypeOf :: Proxy (Ticked (LedgerState ByronBlock) mk) -> String # | |||||||||
| HasCanonicalTxIn '[ByronBlock] # | |||||||||
Defined in Ouroboros.Consensus.Byron.ByronHFC Associated Types
Methods injectCanonicalTxIn :: Index '[ByronBlock] x -> TxIn (LedgerState x) -> CanonicalTxIn '[ByronBlock] Source # ejectCanonicalTxIn :: Index '[ByronBlock] x -> CanonicalTxIn '[ByronBlock] -> TxIn (LedgerState x) Source # | |||||||||
| HasHardForkTxOut '[ByronBlock] # | |||||||||
Defined in Ouroboros.Consensus.Byron.ByronHFC Associated Types
Methods injectHardForkTxOut :: Index '[ByronBlock] x -> TxOut (LedgerState x) -> HardForkTxOut '[ByronBlock] Source # ejectHardForkTxOut :: Index '[ByronBlock] x -> HardForkTxOut '[ByronBlock] -> TxOut (LedgerState x) Source # txOutEjections :: NP ((K (NS WrapTxOut '[ByronBlock]) :: Type -> Type) -.-> WrapTxOut) '[ByronBlock] Source # txOutTranslations :: Tails (Fn2 WrapTxOut) '[ByronBlock] Source # | |||||||||
| BlockSupportsHFLedgerQuery '[ByronBlock] # | |||||||||
Defined in Ouroboros.Consensus.Byron.ByronHFC Methods answerBlockQueryHFLookup :: (All SingleEraBlock '[ByronBlock], Monad m) => Index '[ByronBlock] x -> ExtLedgerCfg x -> BlockQuery x 'QFLookupTables result -> ReadOnlyForker' m (HardForkBlock '[ByronBlock]) -> m result Source # answerBlockQueryHFTraverse :: (All SingleEraBlock '[ByronBlock], Monad m) => Index '[ByronBlock] x -> ExtLedgerCfg x -> BlockQuery x 'QFTraverseTables result -> ReadOnlyForker' m (HardForkBlock '[ByronBlock]) -> m result Source # queryLedgerGetTraversingFilter :: Index '[ByronBlock] x -> BlockQuery x 'QFTraverseTables result -> TxOut (LedgerState (HardForkBlock '[ByronBlock])) -> Bool Source # | |||||||||
| SerialiseHFC '[ByronBlock] # | |||||||||
Defined in Ouroboros.Consensus.Byron.ByronHFC Methods encodeDiskHfcBlock :: CodecConfig (HardForkBlock '[ByronBlock]) -> HardForkBlock '[ByronBlock] -> Encoding Source # decodeDiskHfcBlock :: CodecConfig (HardForkBlock '[ByronBlock]) -> forall s. Decoder s (ByteString -> Either DecoderError (HardForkBlock '[ByronBlock])) Source # reconstructHfcPrefixLen :: proxy (Header (HardForkBlock '[ByronBlock])) -> PrefixLen Source # reconstructHfcNestedCtxt :: proxy (Header (HardForkBlock '[ByronBlock])) -> ShortByteString -> SizeInBytes -> SomeSecond (NestedCtxt Header) (HardForkBlock '[ByronBlock]) Source # getHfcBinaryBlockInfo :: HardForkBlock '[ByronBlock] -> BinaryBlockInfo Source # estimateHfcBlockSize :: Header (HardForkBlock '[ByronBlock]) -> SizeInBytes Source # | |||||||||
| data ProtocolClientInfoArgs ByronBlockHFC Source # | |||||||||
Defined in Cardano.Api.Consensus.Internal.Protocol | |||||||||
| data ProtocolInfoArgs ByronBlockHFC Source # | |||||||||
Defined in Cardano.Api.Consensus.Internal.Protocol | |||||||||
| data BlockConfig ByronBlock # | |||||||||
| type BlockProtocol ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.PBFT | |||||||||
| newtype CodecConfig ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Config | |||||||||
| data Header ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Block data Header ByronBlock = ByronHeader {
| |||||||||
| newtype StorageConfig ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Config | |||||||||
| type CannotForge ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node | |||||||||
| type ForgeStateInfo ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node | |||||||||
| type ForgeStateUpdateError ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node | |||||||||
| data NestedCtxt_ ByronBlock f a # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Serialisation data NestedCtxt_ ByronBlock f a where
| |||||||||
| type TentativeHeaderState ByronBlock # | |||||||||
| type TentativeHeaderView ByronBlock # | |||||||||
| type HardForkIndices ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger | |||||||||
| type PartialLedgerConfig ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.ByronHFC | |||||||||
| type OtherHeaderEnvelopeError ByronBlock # | |||||||||
| type TipInfo ByronBlock # | |||||||||
| data LedgerState ByronBlock mk # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger data LedgerState ByronBlock mk = ByronLedgerState {
| |||||||||
| type LedgerUpdate ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Inspect | |||||||||
| type LedgerWarning ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Inspect | |||||||||
| data BlockQuery ByronBlock fp result # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger | |||||||||
| type ApplyTxErr ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool | |||||||||
| data GenTx ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool | |||||||||
| type TxMeasure ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool | |||||||||
| type BlockNodeToClientVersion ByronBlock # | |||||||||
| type BlockNodeToNodeVersion ByronBlock # | |||||||||
| type HeaderHash ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Block | |||||||||
| data ProtocolClientInfoArgs (CardanoBlock StandardCrypto) Source # | |||||||||
Defined in Cardano.Api.Consensus.Internal.Protocol data ProtocolClientInfoArgs (CardanoBlock StandardCrypto) = ProtocolClientInfoArgsCardano EpochSlots | |||||||||
| data ProtocolInfoArgs (CardanoBlock StandardCrypto) Source # | |||||||||
Defined in Cardano.Api.Consensus.Internal.Protocol data ProtocolInfoArgs (CardanoBlock StandardCrypto) = ProtocolInfoArgsCardano (CardanoProtocolParams StandardCrypto) | |||||||||
| type Rep (BlockConfig ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Config type Rep (BlockConfig ByronBlock) = D1 ('MetaData "BlockConfig" "Ouroboros.Consensus.Byron.Ledger.Config" "ouroboros-consensus-3.0.0.0-l-cardano-af9592d6f64ab87e47c798dee6e1db964ebb0989a04b05617d48118746c0307b" 'False) (C1 ('MetaCons "ByronConfig" 'PrefixI 'True) (S1 ('MetaSel ('Just "byronGenesisConfig") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Config) :*: (S1 ('MetaSel ('Just "byronProtocolVersion") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 ProtocolVersion) :*: S1 ('MetaSel ('Just "byronSoftwareVersion") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SoftwareVersion)))) | |||||||||
| type Rep (CodecConfig ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Config type Rep (CodecConfig ByronBlock) = D1 ('MetaData "CodecConfig" "Ouroboros.Consensus.Byron.Ledger.Config" "ouroboros-consensus-3.0.0.0-l-cardano-af9592d6f64ab87e47c798dee6e1db964ebb0989a04b05617d48118746c0307b" 'True) (C1 ('MetaCons "ByronCodecConfig" 'PrefixI 'True) (S1 ('MetaSel ('Just "getByronEpochSlots") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EpochSlots))) | |||||||||
| type Rep (Header ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Block type Rep (Header ByronBlock) = D1 ('MetaData "Header" "Ouroboros.Consensus.Byron.Ledger.Block" "ouroboros-consensus-3.0.0.0-l-cardano-af9592d6f64ab87e47c798dee6e1db964ebb0989a04b05617d48118746c0307b" 'False) (C1 ('MetaCons "ByronHeader" 'PrefixI 'True) ((S1 ('MetaSel ('Just "byronHeaderRaw") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (ABlockOrBoundaryHdr ByteString)) :*: S1 ('MetaSel ('Just "byronHeaderSlotNo") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 SlotNo)) :*: (S1 ('MetaSel ('Just "byronHeaderHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 ByronHash) :*: S1 ('MetaSel ('Just "byronHeaderBlockSizeHint") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 SizeInBytes)))) | |||||||||
| type Rep (StorageConfig ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Config type Rep (StorageConfig ByronBlock) = D1 ('MetaData "StorageConfig" "Ouroboros.Consensus.Byron.Ledger.Config" "ouroboros-consensus-3.0.0.0-l-cardano-af9592d6f64ab87e47c798dee6e1db964ebb0989a04b05617d48118746c0307b" 'True) (C1 ('MetaCons "ByronStorageConfig" 'PrefixI 'True) (S1 ('MetaSel ('Just "getByronBlockConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (BlockConfig ByronBlock)))) | |||||||||
| type Rep (Validated (GenTx ByronBlock)) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool type Rep (Validated (GenTx ByronBlock)) = D1 ('MetaData "Validated" "Ouroboros.Consensus.Byron.Ledger.Mempool" "ouroboros-consensus-3.0.0.0-l-cardano-af9592d6f64ab87e47c798dee6e1db964ebb0989a04b05617d48118746c0307b" 'True) (C1 ('MetaCons "ValidatedByronTx" 'PrefixI 'True) (S1 ('MetaSel ('Just "forgetValidatedByronTx") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (GenTx ByronBlock)))) | |||||||||
| type Rep (GenTx ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool type Rep (GenTx ByronBlock) = D1 ('MetaData "GenTx" "Ouroboros.Consensus.Byron.Ledger.Mempool" "ouroboros-consensus-3.0.0.0-l-cardano-af9592d6f64ab87e47c798dee6e1db964ebb0989a04b05617d48118746c0307b" 'False) ((C1 ('MetaCons "ByronTx" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 TxId) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (ATxAux ByteString))) :+: C1 ('MetaCons "ByronDlg" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 CertificateId) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (ACertificate ByteString)))) :+: (C1 ('MetaCons "ByronUpdateProposal" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 UpId) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (AProposal ByteString))) :+: C1 ('MetaCons "ByronUpdateVote" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 VoteId) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (AVote ByteString))))) | |||||||||
| type HardForkTxMeasure (CardanoEras c) # | |||||||||
Defined in Ouroboros.Consensus.Cardano.CanHardFork type HardForkTxMeasure (CardanoEras c) = DijkstraMeasure | |||||||||
| newtype CanonicalTxIn (CardanoEras c) # | |||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger | |||||||||
| type HardForkTxOut (CardanoEras c) # | |||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger type HardForkTxOut (CardanoEras c) = CardanoTxOut c | |||||||||
| newtype Validated (GenTx ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool | |||||||||
| type AuxLedgerEvent (LedgerState ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger | |||||||||
| type LedgerCfg (LedgerState ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger | |||||||||
| type LedgerErr (LedgerState ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger | |||||||||
| data TxId (GenTx ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool | |||||||||
| type TxIn (LedgerState ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger | |||||||||
| type TxOut (LedgerState ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger | |||||||||
| type Rep (LedgerState ByronBlock mk) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger type Rep (LedgerState ByronBlock mk) = D1 ('MetaData "LedgerState" "Ouroboros.Consensus.Byron.Ledger.Ledger" "ouroboros-consensus-3.0.0.0-l-cardano-af9592d6f64ab87e47c798dee6e1db964ebb0989a04b05617d48118746c0307b" 'False) (C1 ('MetaCons "ByronLedgerState" 'PrefixI 'True) (S1 ('MetaSel ('Just "byronLedgerTipBlockNo") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (WithOrigin BlockNo)) :*: (S1 ('MetaSel ('Just "byronLedgerState") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChainValidationState) :*: S1 ('MetaSel ('Just "byronLedgerTransition") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 ByronTransition)))) | |||||||||
| data Ticked (LedgerState ByronBlock) (mk :: MapKind) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger data Ticked (LedgerState ByronBlock) (mk :: MapKind) = TickedByronLedgerState {
| |||||||||
| type Rep (Ticked (LedgerState ByronBlock) mk) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger type Rep (Ticked (LedgerState ByronBlock) mk) = D1 ('MetaData "Ticked" "Ouroboros.Consensus.Byron.Ledger.Ledger" "ouroboros-consensus-3.0.0.0-l-cardano-af9592d6f64ab87e47c798dee6e1db964ebb0989a04b05617d48118746c0307b" 'False) (C1 ('MetaCons "TickedByronLedgerState" 'PrefixI 'True) (S1 ('MetaSel ('Just "tickedByronLedgerState") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChainValidationState) :*: S1 ('MetaSel ('Just "untickedByronLedgerTransition") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 ByronTransition))) | |||||||||
| newtype CanonicalTxIn '[ByronBlock] # | |||||||||
Defined in Ouroboros.Consensus.Byron.ByronHFC | |||||||||
| type HardForkTxOut '[ByronBlock] # | |||||||||
Defined in Ouroboros.Consensus.Byron.ByronHFC | |||||||||
type family ChainDepState p Source #
Protocol-specific state
NOTE: This chain is blockchain dependent, i.e., updated when new blocks come in (more precisely, new headers), and subject to rollback.
Instances
| type ChainDepState (HardForkProtocol xs) Source # | |
| type ChainDepState (Bft c) Source # | |
Defined in Ouroboros.Consensus.Protocol.BFT | |
| type ChainDepState (PBft c) Source # | |
Defined in Ouroboros.Consensus.Protocol.PBFT | |
| type ChainDepState (Praos c) # | |
Defined in Ouroboros.Consensus.Protocol.Praos type ChainDepState (Praos c) = PraosState | |
| type ChainDepState (TPraos c) # | |
Defined in Ouroboros.Consensus.Protocol.TPraos type ChainDepState (TPraos c) = TPraosState | |
| type ChainDepState (ModChainSel p t) Source # | |
Defined in Ouroboros.Consensus.Protocol.ModChainSel | |
data family GenTx blk Source #
Generalized transaction
The mempool (and, accordingly, blocks) consist of "generalized transactions"; this could be "proper" transactions (transferring funds) but also other kinds of things such as update proposals, delegations, etc.
Instances
| Inject GenTx Source # | |||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Embed.Nary Methods inject :: forall x (xs :: [Type]). (CanHardFork xs, HasCanonicalTxIn xs, HasHardForkTxOut xs) => InjectionIndex xs x -> GenTx x -> GenTx (HardForkBlock xs) Source # | |||||
| Isomorphic GenTx Source # | |||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Embed.Unary Methods project :: NoHardForks blk => GenTx (HardForkBlock '[blk]) -> GenTx blk Source # inject :: NoHardForks blk => GenTx blk -> GenTx (HardForkBlock '[blk]) Source # | |||||
| SerialiseNodeToClient ByronBlock (GenTx ByronBlock) # | |||||
Defined in Ouroboros.Consensus.Byron.Node.Serialisation Methods encodeNodeToClient :: CodecConfig ByronBlock -> BlockNodeToClientVersion ByronBlock -> GenTx ByronBlock -> Encoding Source # decodeNodeToClient :: CodecConfig ByronBlock -> BlockNodeToClientVersion ByronBlock -> forall s. Decoder s (GenTx ByronBlock) Source # | |||||
| SerialiseNodeToClient ByronBlock (GenTxId ByronBlock) # | |||||
Defined in Ouroboros.Consensus.Byron.Node.Serialisation Methods encodeNodeToClient :: CodecConfig ByronBlock -> BlockNodeToClientVersion ByronBlock -> GenTxId ByronBlock -> Encoding Source # decodeNodeToClient :: CodecConfig ByronBlock -> BlockNodeToClientVersion ByronBlock -> forall s. Decoder s (GenTxId ByronBlock) Source # | |||||
| SerialiseNodeToNode ByronBlock (GenTx ByronBlock) # | |||||
Defined in Ouroboros.Consensus.Byron.Node.Serialisation Methods encodeNodeToNode :: CodecConfig ByronBlock -> BlockNodeToNodeVersion ByronBlock -> GenTx ByronBlock -> Encoding Source # decodeNodeToNode :: CodecConfig ByronBlock -> BlockNodeToNodeVersion ByronBlock -> forall s. Decoder s (GenTx ByronBlock) Source # | |||||
| SerialiseNodeToNode ByronBlock (GenTxId ByronBlock) # | |||||
Defined in Ouroboros.Consensus.Byron.Node.Serialisation Methods encodeNodeToNode :: CodecConfig ByronBlock -> BlockNodeToNodeVersion ByronBlock -> GenTxId ByronBlock -> Encoding Source # decodeNodeToNode :: CodecConfig ByronBlock -> BlockNodeToNodeVersion ByronBlock -> forall s. Decoder s (GenTxId ByronBlock) Source # | |||||
| (Typeable era, Typeable proto) => ShowProxy (Validated (GenTx (ShelleyBlock proto era)) :: Type) # | |||||
| Typeable xs => ShowProxy (GenTx (HardForkBlock xs) :: Type) Source # | |||||
| (Typeable m, Typeable a) => ShowProxy (GenTx (DualBlock m a) :: Type) Source # | |||||
| ShowProxy (GenTx ByronBlock) # | |||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool | |||||
| (Typeable era, Typeable proto) => ShowProxy (GenTx (ShelleyBlock proto era) :: Type) # | |||||
| Typeable xs => ShowProxy (TxId (GenTx (HardForkBlock xs)) :: Type) Source # | |||||
| (Typeable m, Typeable a) => ShowProxy (TxId (GenTx (DualBlock m a)) :: Type) Source # | |||||
| ShowProxy (TxId (GenTx ByronBlock)) # | |||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool | |||||
| (Typeable era, Typeable proto) => ShowProxy (TxId (GenTx (ShelleyBlock proto era)) :: Type) # | |||||
| (ShelleyBasedEra era, TranslateEra era (Tx 'TopTx)) => TranslateEra era (GenTx :.: ShelleyBlock proto) # | |||||
Defined in Ouroboros.Consensus.Shelley.ShelleyHFC Associated Types
Methods translateEra :: TranslationContext era -> (GenTx :.: ShelleyBlock proto) (PreviousEra era) -> Except (TranslationError era (GenTx :.: ShelleyBlock proto)) ((GenTx :.: ShelleyBlock proto) era) Source # | |||||
| ShelleyCompatible proto era => FromCBOR (GenTx (ShelleyBlock proto era)) # | |||||
| ShelleyCompatible proto era => ToCBOR (GenTx (ShelleyBlock proto era)) # | |||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Mempool Methods toCBOR :: GenTx (ShelleyBlock proto era) -> Encoding Source # encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy (GenTx (ShelleyBlock proto era)) -> Size Source # encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [GenTx (ShelleyBlock proto era)] -> Size Source # | |||||
| (Typeable era, Typeable proto, Crypto (ProtoCrypto proto)) => DecCBOR (TxId (GenTx (ShelleyBlock proto era))) # | |||||
| Crypto (ProtoCrypto proto) => EncCBOR (TxId (GenTx (ShelleyBlock proto era))) # | |||||
| CanHardFork xs => Eq (Validated (GenTx (HardForkBlock xs))) Source # | |||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Mempool Methods (==) :: Validated (GenTx (HardForkBlock xs)) -> Validated (GenTx (HardForkBlock xs)) -> Bool Source # (/=) :: Validated (GenTx (HardForkBlock xs)) -> Validated (GenTx (HardForkBlock xs)) -> Bool Source # | |||||
| Eq (Validated (GenTx ByronBlock)) # | |||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool Methods (==) :: Validated (GenTx ByronBlock) -> Validated (GenTx ByronBlock) -> Bool Source # (/=) :: Validated (GenTx ByronBlock) -> Validated (GenTx ByronBlock) -> Bool Source # | |||||
| ShelleyBasedEra era => Eq (Validated (GenTx (ShelleyBlock proto era))) # | |||||
| CanHardFork xs => Eq (GenTx (HardForkBlock xs)) Source # | |||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Mempool Methods (==) :: GenTx (HardForkBlock xs) -> GenTx (HardForkBlock xs) -> Bool Source # (/=) :: GenTx (HardForkBlock xs) -> GenTx (HardForkBlock xs) -> Bool Source # | |||||
| Eq (GenTx ByronBlock) # | |||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool Methods (==) :: GenTx ByronBlock -> GenTx ByronBlock -> Bool Source # (/=) :: GenTx ByronBlock -> GenTx ByronBlock -> Bool Source # | |||||
| ShelleyBasedEra era => Eq (GenTx (ShelleyBlock proto era)) # | |||||
| CanHardFork xs => Eq (TxId (GenTx (HardForkBlock xs))) Source # | |||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Mempool Methods (==) :: TxId (GenTx (HardForkBlock xs)) -> TxId (GenTx (HardForkBlock xs)) -> Bool Source # (/=) :: TxId (GenTx (HardForkBlock xs)) -> TxId (GenTx (HardForkBlock xs)) -> Bool Source # | |||||
| Eq (GenTxId m) => Eq (TxId (GenTx (DualBlock m a))) Source # | |||||
| Eq (TxId (GenTx ByronBlock)) # | |||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool Methods (==) :: TxId (GenTx ByronBlock) -> TxId (GenTx ByronBlock) -> Bool Source # (/=) :: TxId (GenTx ByronBlock) -> TxId (GenTx ByronBlock) -> Bool Source # | |||||
| Eq (TxId (GenTx (ShelleyBlock proto era))) # | |||||
| CanHardFork xs => Ord (TxId (GenTx (HardForkBlock xs))) Source # | |||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Mempool Methods compare :: TxId (GenTx (HardForkBlock xs)) -> TxId (GenTx (HardForkBlock xs)) -> Ordering Source # (<) :: TxId (GenTx (HardForkBlock xs)) -> TxId (GenTx (HardForkBlock xs)) -> Bool Source # (<=) :: TxId (GenTx (HardForkBlock xs)) -> TxId (GenTx (HardForkBlock xs)) -> Bool Source # (>) :: TxId (GenTx (HardForkBlock xs)) -> TxId (GenTx (HardForkBlock xs)) -> Bool Source # (>=) :: TxId (GenTx (HardForkBlock xs)) -> TxId (GenTx (HardForkBlock xs)) -> Bool Source # max :: TxId (GenTx (HardForkBlock xs)) -> TxId (GenTx (HardForkBlock xs)) -> TxId (GenTx (HardForkBlock xs)) Source # min :: TxId (GenTx (HardForkBlock xs)) -> TxId (GenTx (HardForkBlock xs)) -> TxId (GenTx (HardForkBlock xs)) Source # | |||||
| Ord (GenTxId m) => Ord (TxId (GenTx (DualBlock m a))) Source # | |||||
Defined in Ouroboros.Consensus.Ledger.Dual Methods compare :: TxId (GenTx (DualBlock m a)) -> TxId (GenTx (DualBlock m a)) -> Ordering Source # (<) :: TxId (GenTx (DualBlock m a)) -> TxId (GenTx (DualBlock m a)) -> Bool Source # (<=) :: TxId (GenTx (DualBlock m a)) -> TxId (GenTx (DualBlock m a)) -> Bool Source # (>) :: TxId (GenTx (DualBlock m a)) -> TxId (GenTx (DualBlock m a)) -> Bool Source # (>=) :: TxId (GenTx (DualBlock m a)) -> TxId (GenTx (DualBlock m a)) -> Bool Source # max :: TxId (GenTx (DualBlock m a)) -> TxId (GenTx (DualBlock m a)) -> TxId (GenTx (DualBlock m a)) Source # min :: TxId (GenTx (DualBlock m a)) -> TxId (GenTx (DualBlock m a)) -> TxId (GenTx (DualBlock m a)) Source # | |||||
| Ord (TxId (GenTx ByronBlock)) # | |||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool Methods compare :: TxId (GenTx ByronBlock) -> TxId (GenTx ByronBlock) -> Ordering Source # (<) :: TxId (GenTx ByronBlock) -> TxId (GenTx ByronBlock) -> Bool Source # (<=) :: TxId (GenTx ByronBlock) -> TxId (GenTx ByronBlock) -> Bool Source # (>) :: TxId (GenTx ByronBlock) -> TxId (GenTx ByronBlock) -> Bool Source # (>=) :: TxId (GenTx ByronBlock) -> TxId (GenTx ByronBlock) -> Bool Source # max :: TxId (GenTx ByronBlock) -> TxId (GenTx ByronBlock) -> TxId (GenTx ByronBlock) Source # min :: TxId (GenTx ByronBlock) -> TxId (GenTx ByronBlock) -> TxId (GenTx ByronBlock) Source # | |||||
| Ord (TxId (GenTx (ShelleyBlock proto era))) # | |||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Mempool Methods compare :: TxId (GenTx (ShelleyBlock proto era)) -> TxId (GenTx (ShelleyBlock proto era)) -> Ordering Source # (<) :: TxId (GenTx (ShelleyBlock proto era)) -> TxId (GenTx (ShelleyBlock proto era)) -> Bool Source # (<=) :: TxId (GenTx (ShelleyBlock proto era)) -> TxId (GenTx (ShelleyBlock proto era)) -> Bool Source # (>) :: TxId (GenTx (ShelleyBlock proto era)) -> TxId (GenTx (ShelleyBlock proto era)) -> Bool Source # (>=) :: TxId (GenTx (ShelleyBlock proto era)) -> TxId (GenTx (ShelleyBlock proto era)) -> Bool Source # max :: TxId (GenTx (ShelleyBlock proto era)) -> TxId (GenTx (ShelleyBlock proto era)) -> TxId (GenTx (ShelleyBlock proto era)) Source # min :: TxId (GenTx (ShelleyBlock proto era)) -> TxId (GenTx (ShelleyBlock proto era)) -> TxId (GenTx (ShelleyBlock proto era)) Source # | |||||
| Generic (Validated (GenTx (HardForkBlock xs))) Source # | |||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Mempool Associated Types
Methods from :: Validated (GenTx (HardForkBlock xs)) -> Rep (Validated (GenTx (HardForkBlock xs))) x Source # to :: Rep (Validated (GenTx (HardForkBlock xs))) x -> Validated (GenTx (HardForkBlock xs)) Source # | |||||
| Generic (Validated (GenTx ByronBlock)) # | |||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool Associated Types
Methods from :: Validated (GenTx ByronBlock) -> Rep (Validated (GenTx ByronBlock)) x Source # to :: Rep (Validated (GenTx ByronBlock)) x -> Validated (GenTx ByronBlock) Source # | |||||
| Generic (Validated (GenTx (ShelleyBlock proto era))) # | |||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Mempool Associated Types
| |||||
| Generic (GenTx (HardForkBlock xs)) Source # | |||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Mempool Associated Types
Methods from :: GenTx (HardForkBlock xs) -> Rep (GenTx (HardForkBlock xs)) x Source # to :: Rep (GenTx (HardForkBlock xs)) x -> GenTx (HardForkBlock xs) Source # | |||||
| Generic (GenTx ByronBlock) # | |||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool Associated Types
Methods from :: GenTx ByronBlock -> Rep (GenTx ByronBlock) x Source # to :: Rep (GenTx ByronBlock) x -> GenTx ByronBlock Source # | |||||
| Generic (GenTx (ShelleyBlock proto era)) # | |||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Mempool Associated Types
| |||||
| Generic (TxId (GenTx (HardForkBlock xs))) Source # | |||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Mempool Associated Types
Methods from :: TxId (GenTx (HardForkBlock xs)) -> Rep (TxId (GenTx (HardForkBlock xs))) x Source # to :: Rep (TxId (GenTx (HardForkBlock xs))) x -> TxId (GenTx (HardForkBlock xs)) Source # | |||||
| CanHardFork xs => Show (Validated (GenTx (HardForkBlock xs))) Source # | |||||
| Bridge m a => Show (Validated (GenTx (DualBlock m a))) Source # | |||||
| Show (Validated (GenTx ByronBlock)) # | |||||
| ShelleyBasedEra era => Show (Validated (GenTx (ShelleyBlock proto era))) # | |||||
| CanHardFork xs => Show (GenTx (HardForkBlock xs)) Source # | |||||
| Bridge m a => Show (GenTx (DualBlock m a)) Source # | |||||
| Show (GenTx ByronBlock) # | |||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool | |||||
| ShelleyBasedEra era => Show (GenTx (ShelleyBlock proto era)) # | |||||
| Show (GenTxId ByronBlock) # | |||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool | |||||
| Show (GenTxId (ShelleyBlock proto era)) # | |||||
| CanHardFork xs => Show (TxId (GenTx (HardForkBlock xs))) Source # | |||||
| Show (GenTxId m) => Show (TxId (GenTx (DualBlock m a))) Source # | |||||
| CanHardFork xs => NoThunks (Validated (GenTx (HardForkBlock xs))) Source # | |||||
| NoThunks (Validated (GenTx (DualBlock m a))) Source # | |||||
| NoThunks (Validated (GenTx ByronBlock)) # | |||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool | |||||
| ShelleyBasedEra era => NoThunks (Validated (GenTx (ShelleyBlock proto era))) # | |||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Mempool | |||||
| CanHardFork xs => NoThunks (GenTx (HardForkBlock xs)) Source # | |||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Mempool Methods noThunks :: Context -> GenTx (HardForkBlock xs) -> IO (Maybe ThunkInfo) # wNoThunks :: Context -> GenTx (HardForkBlock xs) -> IO (Maybe ThunkInfo) # showTypeOf :: Proxy (GenTx (HardForkBlock xs)) -> String # | |||||
| NoThunks (GenTx (DualBlock m a)) Source # | |||||
| NoThunks (GenTx ByronBlock) # | |||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool Methods noThunks :: Context -> GenTx ByronBlock -> IO (Maybe ThunkInfo) # wNoThunks :: Context -> GenTx ByronBlock -> IO (Maybe ThunkInfo) # showTypeOf :: Proxy (GenTx ByronBlock) -> String # | |||||
| ShelleyBasedEra era => NoThunks (GenTx (ShelleyBlock proto era)) # | |||||
| CanHardFork xs => NoThunks (TxId (GenTx (HardForkBlock xs))) Source # | |||||
| NoThunks (TxId (GenTx (DualBlock m a))) Source # | |||||
| NoThunks (TxId (GenTx ByronBlock)) # | |||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool | |||||
| NoThunks (TxId (GenTx (ShelleyBlock proto era))) # | |||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Mempool | |||||
| ConvertRawTxId (GenTx ByronBlock) # | |||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool Methods toRawTxIdHash :: TxId (GenTx ByronBlock) -> ShortByteString Source # | |||||
| ShelleyBasedEra era => ConvertRawTxId (GenTx (ShelleyBlock proto era)) # | |||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Mempool Methods toRawTxIdHash :: TxId (GenTx (ShelleyBlock proto era)) -> ShortByteString Source # | |||||
| CanHardFork xs => HasTxId (GenTx (HardForkBlock xs)) Source # | |||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Mempool Methods txId :: GenTx (HardForkBlock xs) -> TxId (GenTx (HardForkBlock xs)) Source # | |||||
| Bridge m a => HasTxId (GenTx (DualBlock m a)) Source # | |||||
| HasTxId (GenTx ByronBlock) # | |||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool Methods txId :: GenTx ByronBlock -> TxId (GenTx ByronBlock) Source # | |||||
| ShelleyBasedEra era => HasTxId (GenTx (ShelleyBlock proto era)) # | |||||
| Condense (GenTx ByronBlock) # | |||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool | |||||
| ShelleyBasedEra era => Condense (GenTx (ShelleyBlock proto era)) # | |||||
| Condense (GenTxId ByronBlock) # | |||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool | |||||
| Condense (GenTxId (ShelleyBlock proto era)) # | |||||
| SerialiseHFC xs => SerialiseNodeToClient (HardForkBlock xs) (GenTx (HardForkBlock xs)) Source # | |||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Serialisation.SerialiseNodeToClient Methods encodeNodeToClient :: CodecConfig (HardForkBlock xs) -> BlockNodeToClientVersion (HardForkBlock xs) -> GenTx (HardForkBlock xs) -> Encoding Source # decodeNodeToClient :: CodecConfig (HardForkBlock xs) -> BlockNodeToClientVersion (HardForkBlock xs) -> forall s. Decoder s (GenTx (HardForkBlock xs)) Source # | |||||
| SerialiseHFC xs => SerialiseNodeToClient (HardForkBlock xs) (GenTxId (HardForkBlock xs)) Source # | |||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Serialisation.SerialiseNodeToClient Methods encodeNodeToClient :: CodecConfig (HardForkBlock xs) -> BlockNodeToClientVersion (HardForkBlock xs) -> GenTxId (HardForkBlock xs) -> Encoding Source # decodeNodeToClient :: CodecConfig (HardForkBlock xs) -> BlockNodeToClientVersion (HardForkBlock xs) -> forall s. Decoder s (GenTxId (HardForkBlock xs)) Source # | |||||
| SerialiseHFC xs => SerialiseNodeToNode (HardForkBlock xs) (GenTx (HardForkBlock xs)) Source # | |||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Serialisation.SerialiseNodeToNode Methods encodeNodeToNode :: CodecConfig (HardForkBlock xs) -> BlockNodeToNodeVersion (HardForkBlock xs) -> GenTx (HardForkBlock xs) -> Encoding Source # decodeNodeToNode :: CodecConfig (HardForkBlock xs) -> BlockNodeToNodeVersion (HardForkBlock xs) -> forall s. Decoder s (GenTx (HardForkBlock xs)) Source # | |||||
| SerialiseHFC xs => SerialiseNodeToNode (HardForkBlock xs) (GenTxId (HardForkBlock xs)) Source # | |||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Serialisation.SerialiseNodeToNode Methods encodeNodeToNode :: CodecConfig (HardForkBlock xs) -> BlockNodeToNodeVersion (HardForkBlock xs) -> GenTxId (HardForkBlock xs) -> Encoding Source # decodeNodeToNode :: CodecConfig (HardForkBlock xs) -> BlockNodeToNodeVersion (HardForkBlock xs) -> forall s. Decoder s (GenTxId (HardForkBlock xs)) Source # | |||||
| ShelleyCompatible proto era => SerialiseNodeToClient (ShelleyBlock proto era) (GenTx (ShelleyBlock proto era)) # | |||||
Defined in Ouroboros.Consensus.Shelley.Node.Serialisation Methods encodeNodeToClient :: CodecConfig (ShelleyBlock proto era) -> BlockNodeToClientVersion (ShelleyBlock proto era) -> GenTx (ShelleyBlock proto era) -> Encoding Source # decodeNodeToClient :: CodecConfig (ShelleyBlock proto era) -> BlockNodeToClientVersion (ShelleyBlock proto era) -> forall s. Decoder s (GenTx (ShelleyBlock proto era)) Source # | |||||
| ShelleyCompatible proto era => SerialiseNodeToClient (ShelleyBlock proto era) (GenTxId (ShelleyBlock proto era)) # | |||||
Defined in Ouroboros.Consensus.Shelley.Node.Serialisation Methods encodeNodeToClient :: CodecConfig (ShelleyBlock proto era) -> BlockNodeToClientVersion (ShelleyBlock proto era) -> GenTxId (ShelleyBlock proto era) -> Encoding Source # decodeNodeToClient :: CodecConfig (ShelleyBlock proto era) -> BlockNodeToClientVersion (ShelleyBlock proto era) -> forall s. Decoder s (GenTxId (ShelleyBlock proto era)) Source # | |||||
| ShelleyCompatible proto era => SerialiseNodeToNode (ShelleyBlock proto era) (GenTx (ShelleyBlock proto era)) # | |||||
Defined in Ouroboros.Consensus.Shelley.Node.Serialisation Methods encodeNodeToNode :: CodecConfig (ShelleyBlock proto era) -> BlockNodeToNodeVersion (ShelleyBlock proto era) -> GenTx (ShelleyBlock proto era) -> Encoding Source # decodeNodeToNode :: CodecConfig (ShelleyBlock proto era) -> BlockNodeToNodeVersion (ShelleyBlock proto era) -> forall s. Decoder s (GenTx (ShelleyBlock proto era)) Source # | |||||
| ShelleyCompatible proto era => SerialiseNodeToNode (ShelleyBlock proto era) (GenTxId (ShelleyBlock proto era)) # | |||||
Defined in Ouroboros.Consensus.Shelley.Node.Serialisation Methods encodeNodeToNode :: CodecConfig (ShelleyBlock proto era) -> BlockNodeToNodeVersion (ShelleyBlock proto era) -> GenTxId (ShelleyBlock proto era) -> Encoding Source # decodeNodeToNode :: CodecConfig (ShelleyBlock proto era) -> BlockNodeToNodeVersion (ShelleyBlock proto era) -> forall s. Decoder s (GenTxId (ShelleyBlock proto era)) Source # | |||||
| data GenTx ByronBlock # | |||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool | |||||
| type TranslationError era (GenTx :.: ShelleyBlock proto) # | |||||
Defined in Ouroboros.Consensus.Shelley.ShelleyHFC | |||||
| type Rep (Validated (GenTx (HardForkBlock xs))) Source # | |||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Mempool type Rep (Validated (GenTx (HardForkBlock xs))) = D1 ('MetaData "Validated" "Ouroboros.Consensus.HardFork.Combinator.Mempool" "ouroboros-consensus-3.0.0.0-e56c70450b32403f0bb2259cc50981ca64bfa88d12f9c25e984feb3f15259e4e" 'True) (C1 ('MetaCons "HardForkValidatedGenTx" 'PrefixI 'True) (S1 ('MetaSel ('Just "getHardForkValidatedGenTx") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (OneEraValidatedGenTx xs)))) | |||||
| type Rep (Validated (GenTx ByronBlock)) # | |||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool type Rep (Validated (GenTx ByronBlock)) = D1 ('MetaData "Validated" "Ouroboros.Consensus.Byron.Ledger.Mempool" "ouroboros-consensus-3.0.0.0-l-cardano-af9592d6f64ab87e47c798dee6e1db964ebb0989a04b05617d48118746c0307b" 'True) (C1 ('MetaCons "ValidatedByronTx" 'PrefixI 'True) (S1 ('MetaSel ('Just "forgetValidatedByronTx") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (GenTx ByronBlock)))) | |||||
| type Rep (Validated (GenTx (ShelleyBlock proto era))) # | |||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Mempool type Rep (Validated (GenTx (ShelleyBlock proto era))) = D1 ('MetaData "Validated" "Ouroboros.Consensus.Shelley.Ledger.Mempool" "ouroboros-consensus-3.0.0.0-l-cardano-af9592d6f64ab87e47c798dee6e1db964ebb0989a04b05617d48118746c0307b" 'False) (C1 ('MetaCons "ShelleyValidatedTx" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxId) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Validated (Tx 'TopTx era))))) | |||||
| type Rep (GenTx (HardForkBlock xs)) Source # | |||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Mempool type Rep (GenTx (HardForkBlock xs)) = D1 ('MetaData "GenTx" "Ouroboros.Consensus.HardFork.Combinator.Mempool" "ouroboros-consensus-3.0.0.0-e56c70450b32403f0bb2259cc50981ca64bfa88d12f9c25e984feb3f15259e4e" 'True) (C1 ('MetaCons "HardForkGenTx" 'PrefixI 'True) (S1 ('MetaSel ('Just "getHardForkGenTx") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (OneEraGenTx xs)))) | |||||
| type Rep (GenTx ByronBlock) # | |||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool type Rep (GenTx ByronBlock) = D1 ('MetaData "GenTx" "Ouroboros.Consensus.Byron.Ledger.Mempool" "ouroboros-consensus-3.0.0.0-l-cardano-af9592d6f64ab87e47c798dee6e1db964ebb0989a04b05617d48118746c0307b" 'False) ((C1 ('MetaCons "ByronTx" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 TxId) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (ATxAux ByteString))) :+: C1 ('MetaCons "ByronDlg" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 CertificateId) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (ACertificate ByteString)))) :+: (C1 ('MetaCons "ByronUpdateProposal" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 UpId) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (AProposal ByteString))) :+: C1 ('MetaCons "ByronUpdateVote" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 VoteId) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (AVote ByteString))))) | |||||
| type Rep (GenTx (ShelleyBlock proto era)) # | |||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Mempool type Rep (GenTx (ShelleyBlock proto era)) = D1 ('MetaData "GenTx" "Ouroboros.Consensus.Shelley.Ledger.Mempool" "ouroboros-consensus-3.0.0.0-l-cardano-af9592d6f64ab87e47c798dee6e1db964ebb0989a04b05617d48118746c0307b" 'False) (C1 ('MetaCons "ShelleyTx" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxId) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Tx 'TopTx era)))) | |||||
| type Rep (TxId (GenTx (HardForkBlock xs))) Source # | |||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Mempool type Rep (TxId (GenTx (HardForkBlock xs))) = D1 ('MetaData "TxId" "Ouroboros.Consensus.HardFork.Combinator.Mempool" "ouroboros-consensus-3.0.0.0-e56c70450b32403f0bb2259cc50981ca64bfa88d12f9c25e984feb3f15259e4e" 'True) (C1 ('MetaCons "HardForkGenTxId" 'PrefixI 'True) (S1 ('MetaSel ('Just "getHardForkGenTxId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (OneEraGenTxId xs)))) | |||||
| newtype Validated (GenTx (HardForkBlock xs)) Source # | |||||
| data Validated (GenTx (DualBlock m a)) Source # | |||||
Defined in Ouroboros.Consensus.Ledger.Dual data Validated (GenTx (DualBlock m a)) = ValidatedDualGenTx {
| |||||
| newtype Validated (GenTx ByronBlock) # | |||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool | |||||
| data Validated (GenTx (ShelleyBlock proto era)) # | |||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Mempool | |||||
| newtype GenTx (HardForkBlock xs) Source # | |||||
| newtype TxId (GenTx (HardForkBlock xs)) Source # | |||||
| newtype TxId (GenTx (DualBlock m a)) Source # | |||||
Defined in Ouroboros.Consensus.Ledger.Dual | |||||
| data TxId (GenTx ByronBlock) # | |||||
Defined in Ouroboros.Consensus.Byron.Ledger.Mempool | |||||
| newtype TxId (GenTx (ShelleyBlock proto era)) # | |||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Mempool | |||||
| data GenTx (DualBlock m a) Source # | |||||
Defined in Ouroboros.Consensus.Ledger.Dual data GenTx (DualBlock m a) = DualGenTx {
| |||||
| data GenTx (ShelleyBlock proto 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
| Error EraMismatch Source # | |||||
Defined in Cardano.Api.Internal.Orphans.Misc Methods prettyError :: EraMismatch -> Doc ann Source # | |||||
| Eq EraMismatch Source # | |||||
Defined in Ouroboros.Consensus.HardFork.Combinator.AcrossEras Methods (==) :: EraMismatch -> EraMismatch -> Bool Source # (/=) :: EraMismatch -> EraMismatch -> Bool Source # | |||||
| Generic EraMismatch Source # | |||||
Defined in Ouroboros.Consensus.HardFork.Combinator.AcrossEras Associated Types
Methods from :: EraMismatch -> Rep EraMismatch x Source # to :: Rep EraMismatch x -> EraMismatch Source # | |||||
| Show EraMismatch Source # | |||||
| type Rep EraMismatch Source # | |||||
Defined in Ouroboros.Consensus.HardFork.Combinator.AcrossEras type Rep EraMismatch = D1 ('MetaData "EraMismatch" "Ouroboros.Consensus.HardFork.Combinator.AcrossEras" "ouroboros-consensus-3.0.0.0-e56c70450b32403f0bb2259cc50981ca64bfa88d12f9c25e984feb3f15259e4e" 'False) (C1 ('MetaCons "EraMismatch" 'PrefixI 'True) (S1 ('MetaSel ('Just "ledgerEraName") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "otherEraName") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text))) | |||||
data PastHorizonException Source #
We tried to convert something that is past the horizon
That is, we tried to convert something that is past the point in time beyond which we lack information due to uncertainty about the next hard fork.
Instances
| Error PastHorizonException Source # | |
Defined in Cardano.Api.Internal.Orphans.Misc Methods prettyError :: PastHorizonException -> Doc ann Source # | |
| Exception PastHorizonException Source # | |
Defined in Ouroboros.Consensus.HardFork.History.Qry | |
| Show PastHorizonException Source # | |
Defined in Ouroboros.Consensus.HardFork.History.Qry | |
class ConsensusProtocol p => PraosProtocolSupportsNode p #
Minimal complete definition
getPraosNonces, getOpCertCounters
Instances
| PraosCrypto c => PraosProtocolSupportsNode (Praos c) # | |||||
Defined in Ouroboros.Consensus.Protocol.Praos Associated Types
Methods getPraosNonces :: proxy (Praos c) -> ChainDepState (Praos c) -> PraosNonces getOpCertCounters :: proxy (Praos c) -> ChainDepState (Praos c) -> Map (KeyHash 'BlockIssuer) Word64 # | |||||
| PraosCrypto c => PraosProtocolSupportsNode (TPraos c) # | |||||
Defined in Ouroboros.Consensus.Protocol.TPraos Associated Types
Methods getPraosNonces :: proxy (TPraos c) -> ChainDepState (TPraos c) -> PraosNonces getOpCertCounters :: proxy (TPraos c) -> ChainDepState (TPraos c) -> Map (KeyHash 'BlockIssuer) Word64 # | |||||
type family PraosProtocolSupportsNodeCrypto p #
Instances
| type PraosProtocolSupportsNodeCrypto (Praos c) # | |
Defined in Ouroboros.Consensus.Protocol.Praos type PraosProtocolSupportsNodeCrypto (Praos c) = c | |
| type PraosProtocolSupportsNodeCrypto (TPraos c) # | |
Defined in Ouroboros.Consensus.Protocol.TPraos type PraosProtocolSupportsNodeCrypto (TPraos c) = c | |
data ShelleyGenesisStaking Source #
Genesis Shelley staking configuration.
This allows us to configure some initial stake pools and delegation to them, in order to test Praos in a static configuration, without requiring on-chain registration and delegation.
For simplicity, pools defined in the genesis staking do not pay deposits for their registration.
Constructors
| ShelleyGenesisStaking | |
Fields
| |
Instances
| FromJSON ShelleyGenesisStaking Source # | |||||
Defined in Cardano.Ledger.Shelley.Genesis Methods parseJSON :: Value -> Parser ShelleyGenesisStaking # parseJSONList :: Value -> Parser [ShelleyGenesisStaking] # | |||||
| ToJSON ShelleyGenesisStaking Source # | |||||
Defined in Cardano.Ledger.Shelley.Genesis Methods toJSON :: ShelleyGenesisStaking -> Value # toEncoding :: ShelleyGenesisStaking -> Encoding # toJSONList :: [ShelleyGenesisStaking] -> Value # toEncodingList :: [ShelleyGenesisStaking] -> Encoding # omitField :: ShelleyGenesisStaking -> Bool # | |||||
| DecCBOR ShelleyGenesisStaking Source # | |||||
Defined in Cardano.Ledger.Shelley.Genesis | |||||
| EncCBOR ShelleyGenesisStaking Source # | |||||
Defined in Cardano.Ledger.Shelley.Genesis Methods | |||||
| ToKeyValuePairs ShelleyGenesisStaking Source # | |||||
Defined in Cardano.Ledger.Shelley.Genesis Methods toKeyValuePairs :: KeyValue e kv => ShelleyGenesisStaking -> [kv] Source # | |||||
| NFData ShelleyGenesisStaking Source # | |||||
Defined in Cardano.Ledger.Shelley.Genesis Methods rnf :: ShelleyGenesisStaking -> () Source # | |||||
| Monoid ShelleyGenesisStaking Source # | |||||
Defined in Cardano.Ledger.Shelley.Genesis | |||||
| Semigroup ShelleyGenesisStaking Source # | |||||
Defined in Cardano.Ledger.Shelley.Genesis Methods (<>) :: ShelleyGenesisStaking -> ShelleyGenesisStaking -> ShelleyGenesisStaking Source # sconcat :: NonEmpty ShelleyGenesisStaking -> ShelleyGenesisStaking Source # stimes :: Integral b => b -> ShelleyGenesisStaking -> ShelleyGenesisStaking Source # | |||||
| Eq ShelleyGenesisStaking Source # | |||||
Defined in Cardano.Ledger.Shelley.Genesis Methods (==) :: ShelleyGenesisStaking -> ShelleyGenesisStaking -> Bool Source # (/=) :: ShelleyGenesisStaking -> ShelleyGenesisStaking -> Bool Source # | |||||
| Generic ShelleyGenesisStaking Source # | |||||
Defined in Cardano.Ledger.Shelley.Genesis Associated Types
Methods from :: ShelleyGenesisStaking -> Rep ShelleyGenesisStaking x Source # to :: Rep ShelleyGenesisStaking x -> ShelleyGenesisStaking Source # | |||||
| Show ShelleyGenesisStaking Source # | |||||
Defined in Cardano.Ledger.Shelley.Genesis | |||||
| NoThunks ShelleyGenesisStaking Source # | |||||
Defined in Cardano.Ledger.Shelley.Genesis Methods noThunks :: Context -> ShelleyGenesisStaking -> IO (Maybe ThunkInfo) # wNoThunks :: Context -> ShelleyGenesisStaking -> IO (Maybe ThunkInfo) # | |||||
| type Rep ShelleyGenesisStaking Source # | |||||
Defined in Cardano.Ledger.Shelley.Genesis type Rep ShelleyGenesisStaking = D1 ('MetaData "ShelleyGenesisStaking" "Cardano.Ledger.Shelley.Genesis" "cardano-ledger-shelley-1.18.0.0-354459bdbb7674169916592cedcbeff697feec9edfefb98014ad7ca415f6a892" 'False) (C1 ('MetaCons "ShelleyGenesisStaking" 'PrefixI 'True) (S1 ('MetaSel ('Just "sgsPools") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ListMap (KeyHash 'StakePool) StakePoolParams)) :*: S1 ('MetaSel ('Just "sgsStake") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ListMap (KeyHash 'Staking) (KeyHash 'StakePool))))) | |||||
byronIdTx :: ATxAux ByteString -> TxId #
getOpCertCounters :: PraosProtocolSupportsNode p => proxy p -> ChainDepState p -> Map (KeyHash 'BlockIssuer) Word64 #
interpreterToEpochInfo :: forall (xs :: [Type]). Interpreter xs -> EpochInfo (Except PastHorizonException) Source #
Construct an EpochInfo for a snapshot of the ledger state
unsafeExtendSafeZone :: forall (xs :: [Type]). Interpreter xs -> Interpreter xs Source #
UNSAFE: extend the safe zone of the current era of the given Interpreter
to be unbounded, ignoring any future hard forks.
This only has effect when the Interpreter was obtained in an era that was
not the final one (in the final era, this is a no-op). The Interpreter
will be made to believe that the current era is the final era, making its
horizon unbounded, and thus never returning a PastHorizonException.
Use of this function is strongly discouraged, as it will ignore any future
hard forks, and the results produced by the Interpreter can thus be
incorrect.
txId :: HasTxId tx => tx -> TxId tx Source #
NOTE: a TxId must be unique up to ledger rules, i.e., two GenTxs with
the same TxId must be the same transaction according to the ledger.
However, we do not assume that a TxId uniquely determines a GenTx:
two GenTxs with the same TxId can differ in, e.g., witnesses.
Should be cheap as this will be called often.