| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Test.Consensus.Leios.TestBlock
Description
A test block whose headers can carry Leios announcements.
Its protocol enforces no leader schedule and checks no crypto, so a test is free to mint any chain shape and any announcement. A header can be marked invalid, which its protocol then rejects, both in ordinary header validation and in the out-of-context validation an announcement gets. Its ledger view is forecastable only within a configured range, just like the Cardano ledger's, so a test can reach the forecast horizon on demand.
No chain may exceed maxLeiosTestChainLength blocks, since the block hash is
a path from genesis and must fit a fixed size.
Synopsis
- data family Header blk
- newtype LeiosTestBlock = LeiosTestBlock {}
- maxLeiosTestChainLength ∷ Int
- firstLeiosBlock ∷ Word64 → LeiosTestBlock
- forkLeiosBlock ∷ LeiosTestBlock → LeiosTestBlock
- setAnnouncement ∷ EbHash → BytesSize → LeiosTestBlock → LeiosTestBlock
- setCounterBelowImmTips ∷ LeiosTestBlock → LeiosTestBlock
- setInvalid ∷ LeiosTestBlock → LeiosTestBlock
- setIssuer ∷ Word64 → LeiosTestBlock → LeiosTestBlock
- setSlot ∷ SlotNo → LeiosTestBlock → LeiosTestBlock
- successorLeiosBlock ∷ LeiosTestBlock → LeiosTestBlock
- data family LedgerState blk (mk ∷ MapKind)
- data LeiosTestBlockError = LeiosTestInvalidHash (ChainHash LeiosTestBlock) (ChainHash LeiosTestBlock)
- data LeiosTestLedgerConfig = LeiosTestLedgerConfig {}
- leiosTestInitExtLedger ∷ LeiosTestLedgerConfig → ExtLedgerState LeiosTestBlock ValuesMK
- data LeiosTestInvalidHeader = LeiosTestInvalidHeader
- data LeiosTestProtocol
- data family BlockConfig blk
- singleNodeLeiosTestConfig ∷ LeiosTestLedgerConfig → SecurityParam → TopLevelConfig LeiosTestBlock
Block
data family Header blk Source #
Instances
newtype LeiosTestBlock Source #
A block is just its header: nothing here fetches or applies a body.
Constructors
| LeiosTestBlock | |
Fields | |
Instances
| Eq LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods (==) ∷ LeiosTestBlock → LeiosTestBlock → Bool # (/=) ∷ LeiosTestBlock → LeiosTestBlock → Bool # | |||||||||||||||||||||
| Generic LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Associated Types
| |||||||||||||||||||||
| Show LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods showsPrec ∷ Int → LeiosTestBlock → ShowS # show ∷ LeiosTestBlock → String # showList ∷ [LeiosTestBlock] → ShowS # | |||||||||||||||||||||
| NoThunks LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| ConvertRawHash LeiosTestBlock Source # | The raw hash is 32 bytes, as a real header hash is, so that a message that carries one has its real size. It holds the path's length and then one byte per path component, so a path component, a fork number, must be below 256. | ||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Associated Types
Methods toRawHash ∷ proxy LeiosTestBlock → HeaderHash LeiosTestBlock → ByteString Source # toShortRawHash ∷ proxy LeiosTestBlock → HeaderHash LeiosTestBlock → ShortByteString Source # fromRawHash ∷ proxy LeiosTestBlock → ByteString → Maybe (HeaderHash LeiosTestBlock) Source # fromShortRawHash ∷ proxy LeiosTestBlock → ShortByteString → Maybe (HeaderHash LeiosTestBlock) Source # unsafeFromRawHash ∷ proxy LeiosTestBlock → ByteString → HeaderHash LeiosTestBlock Source # unsafeFromShortRawHash ∷ proxy LeiosTestBlock → ShortByteString → HeaderHash LeiosTestBlock Source # hashSize ∷ proxy LeiosTestBlock → Word32 Source # | |||||||||||||||||||||
| GetHeader LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| GetPrevHash LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods headerPrevHash ∷ Header LeiosTestBlock → ChainHash LeiosTestBlock Source # | |||||||||||||||||||||
| BlockSupportsDiffusionPipelining LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Associated Types
Methods initialTentativeHeaderState ∷ Proxy LeiosTestBlock → TentativeHeaderState LeiosTestBlock Source # tentativeHeaderView ∷ BlockConfig LeiosTestBlock → Header LeiosTestBlock → TentativeHeaderView LeiosTestBlock Source # applyTentativeHeaderView ∷ Proxy LeiosTestBlock → TentativeHeaderView LeiosTestBlock → TentativeHeaderState LeiosTestBlock → Maybe (TentativeHeaderState LeiosTestBlock) Source # | |||||||||||||||||||||
| BlockSupportsMetrics LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| BlockSupportsPeras LeiosTestBlock Source # | A mock, as for | ||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Associated Types
Methods forgePerasVoteIfEligible ∷ PerasEpochContext LeiosTestBlock → PoolId → PrivateKey (PerasCrypto LeiosTestBlock) → PerasRoundNo → Point LeiosTestBlock → Either (PerasError LeiosTestBlock) (Maybe (ValidatedPerasVote LeiosTestBlock)) Source # verifyPerasVote ∷ PerasEpochContext LeiosTestBlock → PerasVote LeiosTestBlock → Either (PerasError LeiosTestBlock) (ValidatedPerasVote LeiosTestBlock) Source # forgePerasCert ∷ PerasEpochContext LeiosTestBlock → PerasVoteCollectionWithQuorum LeiosTestBlock → Either (PerasError LeiosTestBlock) (ValidatedPerasCert LeiosTestBlock) Source # verifyPerasCert ∷ PerasEpochContext LeiosTestBlock → PerasCert LeiosTestBlock → Either (PerasError LeiosTestBlock) (ValidatedPerasCert LeiosTestBlock) Source # getPerasCertInBlock ∷ LeiosTestBlock → Either (PerasError LeiosTestBlock) (Maybe (PerasCert LeiosTestBlock)) Source # | |||||||||||||||||||||
| BlockSupportsProtocol LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods validateView ∷ BlockConfig LeiosTestBlock → Header LeiosTestBlock → ValidateView (BlockProtocol LeiosTestBlock) Source # tiebreakerView ∷ BlockConfig LeiosTestBlock → Header LeiosTestBlock → TiebreakerView (BlockProtocol LeiosTestBlock) Source # projectChainOrderConfig ∷ BlockConfig LeiosTestBlock → ChainOrderConfig (SelectView (BlockProtocol LeiosTestBlock)) Source # | |||||||||||||||||||||
| BlockSupportsSanityCheck LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| ConfigSupportsNode LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods getSystemStart ∷ BlockConfig LeiosTestBlock → SystemStart Source # getNetworkMagic ∷ BlockConfig LeiosTestBlock → NetworkMagic Source # | |||||||||||||||||||||
| HasHardForkHistory LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Associated Types
Methods hardForkSummary ∷ ∀ (mk ∷ MapKind). LedgerConfig LeiosTestBlock → LedgerState LeiosTestBlock mk → Summary (HardForkIndices LeiosTestBlock) Source # | |||||||||||||||||||||
| ImmutableEraParams LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods immutableEraParams ∷ TopLevelConfig LeiosTestBlock → EraParams Source # | |||||||||||||||||||||
| BasicEnvelopeValidation LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods expectedFirstBlockNo ∷ proxy LeiosTestBlock → BlockNo Source # expectedNextBlockNo ∷ proxy LeiosTestBlock → TipInfo LeiosTestBlock → TipInfo LeiosTestBlock → BlockNo → BlockNo Source # minimumPossibleSlotNo ∷ Proxy LeiosTestBlock → SlotNo Source # minimumNextSlotNo ∷ proxy LeiosTestBlock → TipInfo LeiosTestBlock → TipInfo LeiosTestBlock → SlotNo → SlotNo Source # | |||||||||||||||||||||
| HasAnnTip LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Associated Types
Methods getTipInfo ∷ Header LeiosTestBlock → TipInfo LeiosTestBlock Source # tipInfoHash ∷ proxy LeiosTestBlock → TipInfo LeiosTestBlock → HeaderHash LeiosTestBlock Source # | |||||||||||||||||||||
| ValidateEnvelope LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Associated Types
| |||||||||||||||||||||
| GetBlockKeySets LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods getBlockKeySets ∷ LeiosTestBlock → LedgerTables LeiosTestBlock KeysMK Source # | |||||||||||||||||||||
| UpdateLedger LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| CommonProtocolParams LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods maxHeaderSize ∷ ∀ (mk ∷ MapKind). LedgerState LeiosTestBlock mk → Word32 Source # maxTxSize ∷ ∀ (mk ∷ MapKind). LedgerState LeiosTestBlock mk → Word32 Source # | |||||||||||||||||||||
| InspectLedger LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Associated Types
Methods inspectLedger ∷ ∀ (mk1 ∷ MapKind) (mk2 ∷ MapKind). TopLevelConfig LeiosTestBlock → LedgerState LeiosTestBlock mk1 → LedgerState LeiosTestBlock mk2 → [LedgerEvent LeiosTestBlock] Source # | |||||||||||||||||||||
| BlockSupportsLedgerQuery LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods answerPureBlockQuery ∷ ExtLedgerCfg LeiosTestBlock → BlockQuery LeiosTestBlock 'QFNoTables result → ExtLedgerState LeiosTestBlock EmptyMK → result Source # answerBlockQueryLookup ∷ MonadSTM m ⇒ ExtLedgerCfg LeiosTestBlock → BlockQuery LeiosTestBlock 'QFLookupTables result → ReadOnlyForker' m LeiosTestBlock → m result Source # answerBlockQueryTraverse ∷ MonadSTM m ⇒ ExtLedgerCfg LeiosTestBlock → BlockQuery LeiosTestBlock 'QFTraverseTables result → ReadOnlyForker' m LeiosTestBlock → m result Source # blockQueryIsSupportedOnVersion ∷ ∀ (fp ∷ QueryFootprint) result. BlockQuery LeiosTestBlock fp result → BlockNodeToClientVersion LeiosTestBlock → Bool Source # | |||||||||||||||||||||
| LedgerSupportsMempool LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods txInvariant ∷ GenTx LeiosTestBlock → Bool Source # applyTx ∷ LedgerConfig LeiosTestBlock → WhetherToIntervene → SlotNo → GenTx LeiosTestBlock → TickedLedgerState LeiosTestBlock ValuesMK → Except (ApplyTxErr LeiosTestBlock) (TickedLedgerState LeiosTestBlock DiffMK, Validated (GenTx LeiosTestBlock)) Source # reapplyTx ∷ LedgerConfig LeiosTestBlock → SlotNo → Validated (GenTx LeiosTestBlock) → TickedLedgerState LeiosTestBlock ValuesMK → Except (ApplyTxErr LeiosTestBlock) (TickedLedgerState LeiosTestBlock ValuesMK) Source # reapplyTxs ∷ ∀ (wtd ∷ WhatToDoWithTxDiffs) extra. LedgerConfig LeiosTestBlock → SlotNo → [(Validated (GenTx LeiosTestBlock), InputTxDiffs LeiosTestBlock wtd, extra)] → TickedLedgerState LeiosTestBlock ValuesMK → ReapplyTxsResult extra LeiosTestBlock wtd Source # txForgetValidated ∷ Validated (GenTx LeiosTestBlock) → GenTx LeiosTestBlock Source # getTransactionKeySets ∷ GenTx LeiosTestBlock → LedgerTables LeiosTestBlock KeysMK Source # prependMempoolDiffs ∷ TickedLedgerState LeiosTestBlock DiffMK → TickedLedgerState LeiosTestBlock DiffMK → TickedLedgerState LeiosTestBlock DiffMK Source # applyMempoolDiffs ∷ LedgerTables LeiosTestBlock ValuesMK → LedgerTables LeiosTestBlock KeysMK → TickedLedgerState LeiosTestBlock DiffMK → TickedLedgerState LeiosTestBlock ValuesMK Source # mkMempoolApplyTxError ∷ ∀ (mk ∷ MapKind). TickedLedgerState LeiosTestBlock mk → Text → Maybe (ApplyTxErr LeiosTestBlock) Source # | |||||||||||||||||||||
| TxLimits LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Associated Types
Methods txWireSize ∷ GenTx LeiosTestBlock → SizeInBytes Source # txMeasurePhase1 ∷ LedgerConfig LeiosTestBlock → TickedLedgerState LeiosTestBlock EmptyMK → GenTx LeiosTestBlock → Except (ApplyTxErr LeiosTestBlock) (TxMeasurePhase1 LeiosTestBlock) Source # txMeasurePhase2 ∷ LedgerConfig LeiosTestBlock → TickedLedgerState LeiosTestBlock ValuesMK → GenTx LeiosTestBlock → Except (ApplyTxErr LeiosTestBlock) (TxMeasurePhase2 LeiosTestBlock) Source # blockCapacityTxMeasure ∷ ∀ (mk ∷ MapKind). LedgerConfig LeiosTestBlock → TickedLedgerState LeiosTestBlock mk → TxMeasure LeiosTestBlock Source # txEbMeasure ∷ proxy LeiosTestBlock → TxMeasure LeiosTestBlock → TxEbMeasure LeiosTestBlock Source # ebCapacityTxMeasure ∷ ∀ (mk ∷ MapKind). LedgerConfig LeiosTestBlock → TickedLedgerState LeiosTestBlock mk → TxEbMeasure LeiosTestBlock Source # mempoolEbReservation ∷ proxy LeiosTestBlock → TxEbMeasure LeiosTestBlock → TxMeasure LeiosTestBlock Source # | |||||||||||||||||||||
| LedgerSupportsPeerSelection LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods getPeers ∷ ∀ (mk ∷ MapKind). LedgerState LeiosTestBlock mk → [(PoolStake, NonEmpty StakePoolRelay)] Source # | |||||||||||||||||||||
| LedgerSupportsProtocol LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods protocolLedgerView ∷ ∀ (mk ∷ MapKind). LedgerConfig LeiosTestBlock → Ticked LedgerState LeiosTestBlock mk → LedgerView (BlockProtocol LeiosTestBlock) Source # ledgerViewForecastAt ∷ ∀ (mk ∷ MapKind). HasCallStack ⇒ LedgerConfig LeiosTestBlock → LedgerState LeiosTestBlock mk → Forecast (LedgerView (BlockProtocol LeiosTestBlock)) Source # | |||||||||||||||||||||
| NodeInitStorage LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| HasNetworkProtocolVersion LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Associated Types
| |||||||||||||||||||||
| SupportedNetworkProtocolVersion LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods supportedNodeToNodeVersions ∷ Proxy LeiosTestBlock → Map NodeToNodeVersion (BlockNodeToNodeVersion LeiosTestBlock) Source # supportedNodeToClientVersions ∷ Proxy LeiosTestBlock → Map NodeToClientVersion (BlockNodeToClientVersion LeiosTestBlock) Source # latestReleasedNodeVersion ∷ Proxy LeiosTestBlock → (Maybe NodeToNodeVersion, Maybe NodeToClientVersion) Source # | |||||||||||||||||||||
| RunNode LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| SerialiseNodeToClientConstraints LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| SerialiseNodeToNodeConstraints LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods estimateBlockSize ∷ Header LeiosTestBlock → SizeInBytes Source # | |||||||||||||||||||||
| StateSupportsPerasEpochContext LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Associated Types
Methods fromMaybeEraIndexedEpochToPerasRoundInfo ∷ proxy LeiosTestBlock → MaybeEraIndexedEpochToPerasRoundInfo LeiosTestBlock → EpochToPerasRoundInfo Source # toMaybeEraIndexedEpochToPerasRoundInfo ∷ All (Top ∷ Type → Constraint) (HardForkIndices LeiosTestBlock) ⇒ proxy LeiosTestBlock → EraIndexed (HardForkIndices LeiosTestBlock) EpochToPerasRoundInfo → MaybeEraIndexedEpochToPerasRoundInfo LeiosTestBlock Source # mkBoundedPerasEpochContext ∷ (LedgerStateSupportsPeras ledgerState, ChainDepStateSupportsPeras chainDepState) ⇒ MaybeEraIndexedEpochToPerasRoundInfo LeiosTestBlock → ledgerState EmptyMK → chainDepState → Either (PerasError LeiosTestBlock) (BoundedPerasEpochContext LeiosTestBlock) Source # | |||||||||||||||||||||
| SerialiseDiskConstraints LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| HasBinaryBlockInfo LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods getBinaryBlockInfo ∷ LeiosTestBlock → BinaryBlockInfo Source # | |||||||||||||||||||||
| Condense LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods | |||||||||||||||||||||
| HasHeader LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods getHeaderFields ∷ LeiosTestBlock → HeaderFields LeiosTestBlock # | |||||||||||||||||||||
| Serialise LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods encode ∷ LeiosTestBlock → Encoding Source # decode ∷ Decoder s LeiosTestBlock Source # encodeList ∷ [LeiosTestBlock] → Encoding Source # decodeList ∷ Decoder s [LeiosTestBlock] Source # | |||||||||||||||||||||
| HasNestedContent f LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods unnest ∷ f LeiosTestBlock → DepPair (NestedCtxt f LeiosTestBlock) Source # nest ∷ DepPair (NestedCtxt f LeiosTestBlock) → f LeiosTestBlock Source # | |||||||||||||||||||||
| ApplyBlock LedgerState LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods applyBlockLedgerResultWithValidation ∷ ValidationPolicy → ComputeLedgerEvents → LedgerCfg LedgerState LeiosTestBlock → LeiosTestBlock → Ticked LedgerState LeiosTestBlock ValuesMK → Except (LedgerErr LedgerState LeiosTestBlock) (LedgerResult LeiosTestBlock (LedgerState LeiosTestBlock DiffMK)) Source # applyBlockLedgerResult ∷ ComputeLedgerEvents → LedgerCfg LedgerState LeiosTestBlock → LeiosTestBlock → Ticked LedgerState LeiosTestBlock ValuesMK → Except (LedgerErr LedgerState LeiosTestBlock) (LedgerResult LeiosTestBlock (LedgerState LeiosTestBlock DiffMK)) Source # reapplyBlockLedgerResult ∷ ComputeLedgerEvents → LedgerCfg LedgerState LeiosTestBlock → LeiosTestBlock → Ticked LedgerState LeiosTestBlock ValuesMK → LedgerResult LeiosTestBlock (LedgerState LeiosTestBlock DiffMK) Source # | |||||||||||||||||||||
| IsLedger LedgerState LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Associated Types
| |||||||||||||||||||||
| CanUpgradeLedgerTables LedgerState LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods upgradeTables ∷ ∀ (mk1 ∷ MapKind) (mk2 ∷ MapKind). LedgerState LeiosTestBlock mk1 → LedgerState LeiosTestBlock mk2 → LedgerTables LeiosTestBlock ValuesMK → LedgerTables LeiosTestBlock ValuesMK Source # | |||||||||||||||||||||
| HasLedgerTables LedgerState LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods projectLedgerTables ∷ ∀ (mk ∷ MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) ⇒ LedgerState LeiosTestBlock mk → LedgerTables LeiosTestBlock mk Source # withLedgerTables ∷ ∀ (mk ∷ MapKind) (any ∷ MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) ⇒ LedgerState LeiosTestBlock any → LedgerTables LeiosTestBlock mk → LedgerState LeiosTestBlock mk Source # | |||||||||||||||||||||
| LedgerTablesAreTrivial LedgerState LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods convertMapKind ∷ ∀ (mk ∷ MapKind) (mk' ∷ MapKind). LedgerState LeiosTestBlock mk → LedgerState LeiosTestBlock mk' Source # | |||||||||||||||||||||
| SerializeTablesWithHint LedgerState LeiosTestBlock Source # | |||||||||||||||||||||
| SerialiseNodeToClient LeiosTestBlock SlotNo Source # | |||||||||||||||||||||
| SerialiseNodeToClient LeiosTestBlock LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| SerialiseNodeToClient LeiosTestBlock LeiosTestLedgerConfig Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| SerialiseNodeToNode LeiosTestBlock LeiosTestBlock Source # | |||||||||||||||||||||
| DecodeDisk LeiosTestBlock () Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods decodeDisk ∷ CodecConfig LeiosTestBlock → ∀ s. Decoder s () Source # | |||||||||||||||||||||
| EncodeDisk LeiosTestBlock LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods encodeDisk ∷ CodecConfig LeiosTestBlock → LeiosTestBlock → Encoding Source # | |||||||||||||||||||||
| EncodeDisk LeiosTestBlock () Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods encodeDisk ∷ CodecConfig LeiosTestBlock → () → Encoding Source # | |||||||||||||||||||||
| ReconstructNestedCtxt Header LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods reconstructPrefixLen ∷ proxy (Header LeiosTestBlock) → PrefixLen Source # reconstructNestedCtxt ∷ proxy (Header LeiosTestBlock) → ShortByteString → SizeInBytes → SomeSecond (NestedCtxt Header) LeiosTestBlock Source # | |||||||||||||||||||||
| StandardHash LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| ShowProxy LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods | |||||||||||||||||||||
| SerialiseBlockQueryResult LeiosTestBlock BlockQuery Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods encodeBlockQueryResult ∷ ∀ (fp ∷ QueryFootprint) result. CodecConfig LeiosTestBlock → BlockNodeToClientVersion LeiosTestBlock → BlockQuery LeiosTestBlock fp result → result → Encoding Source # decodeBlockQueryResult ∷ ∀ (fp ∷ QueryFootprint) result. CodecConfig LeiosTestBlock → BlockNodeToClientVersion LeiosTestBlock → BlockQuery LeiosTestBlock fp result → ∀ s. Decoder s result Source # | |||||||||||||||||||||
| IndexedMemPack LedgerState LeiosTestBlock Void Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods indexedPackedByteCount ∷ LedgerState LeiosTestBlock EmptyMK → Void → Int Source # indexedPackM ∷ LedgerState LeiosTestBlock EmptyMK → Void → Pack s () Source # indexedUnpackM ∷ Buffer b ⇒ ∀ s. LedgerState LeiosTestBlock EmptyMK → Unpack s b Void Source # indexedTypeName ∷ Proxy Void → LedgerState LeiosTestBlock EmptyMK → String Source # | |||||||||||||||||||||
| SameDepIndex2 (BlockQuery LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods sameDepIndex2 ∷ ∀ (x ∷ QueryFootprint) a (y ∷ QueryFootprint) b. BlockQuery LeiosTestBlock x a → BlockQuery LeiosTestBlock y b → Maybe ('(x, a) :~: '(y, b)) Source # | |||||||||||||||||||||
| SerialiseNodeToClient LeiosTestBlock (SomeBlockQuery (BlockQuery LeiosTestBlock)) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods encodeNodeToClient ∷ CodecConfig LeiosTestBlock → BlockNodeToClientVersion LeiosTestBlock → SomeBlockQuery (BlockQuery LeiosTestBlock) → Encoding Source # decodeNodeToClient ∷ CodecConfig LeiosTestBlock → BlockNodeToClientVersion LeiosTestBlock → ∀ s. Decoder s (SomeBlockQuery (BlockQuery LeiosTestBlock)) Source # | |||||||||||||||||||||
| SerialiseNodeToClient LeiosTestBlock (GenTx LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| SerialiseNodeToClient LeiosTestBlock (GenTxId LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| SerialiseNodeToNode LeiosTestBlock (Header LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| SerialiseNodeToNode LeiosTestBlock (GenTx LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| SerialiseNodeToNode LeiosTestBlock (GenTxId LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| SerialiseNodeToNode LeiosTestBlock (SerialisedHeader LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| DecodeDisk LeiosTestBlock (AnnTip LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods decodeDisk ∷ CodecConfig LeiosTestBlock → ∀ s. Decoder s (AnnTip LeiosTestBlock) Source # | |||||||||||||||||||||
| EncodeDisk LeiosTestBlock (Header LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods encodeDisk ∷ CodecConfig LeiosTestBlock → Header LeiosTestBlock → Encoding Source # | |||||||||||||||||||||
| EncodeDisk LeiosTestBlock (AnnTip LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods encodeDisk ∷ CodecConfig LeiosTestBlock → AnnTip LeiosTestBlock → Encoding Source # | |||||||||||||||||||||
| ShowProxy (Header LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| ShowProxy (GenTx LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| ShowProxy (TxId (GenTx LeiosTestBlock)) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| SerialiseNodeToClient LeiosTestBlock (Serialised LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods encodeNodeToClient ∷ CodecConfig LeiosTestBlock → BlockNodeToClientVersion LeiosTestBlock → Serialised LeiosTestBlock → Encoding Source # decodeNodeToClient ∷ CodecConfig LeiosTestBlock → BlockNodeToClientVersion LeiosTestBlock → ∀ s. Decoder s (Serialised LeiosTestBlock) Source # | |||||||||||||||||||||
| SerialiseNodeToNode LeiosTestBlock (Serialised LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods encodeNodeToNode ∷ CodecConfig LeiosTestBlock → BlockNodeToNodeVersion LeiosTestBlock → Serialised LeiosTestBlock → Encoding Source # decodeNodeToNode ∷ CodecConfig LeiosTestBlock → BlockNodeToNodeVersion LeiosTestBlock → ∀ s. Decoder s (Serialised LeiosTestBlock) Source # | |||||||||||||||||||||
| DecodeDisk LeiosTestBlock (LedgerState LeiosTestBlock EmptyMK) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods decodeDisk ∷ CodecConfig LeiosTestBlock → ∀ s. Decoder s (LedgerState LeiosTestBlock EmptyMK) Source # | |||||||||||||||||||||
| DecodeDisk LeiosTestBlock (ByteString → Either DecoderError LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods decodeDisk ∷ CodecConfig LeiosTestBlock → ∀ s. Decoder s (ByteString → Either DecoderError LeiosTestBlock) Source # | |||||||||||||||||||||
| DecodeDisk LeiosTestBlock (ByteString → Header LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods decodeDisk ∷ CodecConfig LeiosTestBlock → ∀ s. Decoder s (ByteString → Header LeiosTestBlock) Source # | |||||||||||||||||||||
| EncodeDisk LeiosTestBlock (LedgerState LeiosTestBlock EmptyMK) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods encodeDisk ∷ CodecConfig LeiosTestBlock → LedgerState LeiosTestBlock EmptyMK → Encoding Source # | |||||||||||||||||||||
| SameDepIndex (NestedCtxt_ LeiosTestBlock f ∷ Type → Type) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods sameDepIndex ∷ NestedCtxt_ LeiosTestBlock f a → NestedCtxt_ LeiosTestBlock f b → Maybe (a :~: b) Source # | |||||||||||||||||||||
| TrivialDependency (NestedCtxt_ LeiosTestBlock f ∷ Type → Type) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods hasSingleIndex ∷ NestedCtxt_ LeiosTestBlock f a → NestedCtxt_ LeiosTestBlock f b → a :~: b Source # indexIsTrivial ∷ NestedCtxt_ LeiosTestBlock f (TrivialIndex (NestedCtxt_ LeiosTestBlock f) ∷ Type) Source # | |||||||||||||||||||||
| Eq (Header LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods (==) ∷ Header LeiosTestBlock → Header LeiosTestBlock → Bool # (/=) ∷ Header LeiosTestBlock → Header LeiosTestBlock → Bool # | |||||||||||||||||||||
| Eq (Validated (GenTx LeiosTestBlock)) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods (==) ∷ Validated (GenTx LeiosTestBlock) → Validated (GenTx LeiosTestBlock) → Bool # (/=) ∷ Validated (GenTx LeiosTestBlock) → Validated (GenTx LeiosTestBlock) → Bool # | |||||||||||||||||||||
| Eq (GenTx LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods (==) ∷ GenTx LeiosTestBlock → GenTx LeiosTestBlock → Bool # (/=) ∷ GenTx LeiosTestBlock → GenTx LeiosTestBlock → Bool # | |||||||||||||||||||||
| Eq (TxId (GenTx LeiosTestBlock)) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods (==) ∷ TxId (GenTx LeiosTestBlock) → TxId (GenTx LeiosTestBlock) → Bool # (/=) ∷ TxId (GenTx LeiosTestBlock) → TxId (GenTx LeiosTestBlock) → Bool # | |||||||||||||||||||||
| Ord (TxId (GenTx LeiosTestBlock)) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods compare ∷ TxId (GenTx LeiosTestBlock) → TxId (GenTx LeiosTestBlock) → Ordering # (<) ∷ TxId (GenTx LeiosTestBlock) → TxId (GenTx LeiosTestBlock) → Bool # (<=) ∷ TxId (GenTx LeiosTestBlock) → TxId (GenTx LeiosTestBlock) → Bool # (>) ∷ TxId (GenTx LeiosTestBlock) → TxId (GenTx LeiosTestBlock) → Bool # (>=) ∷ TxId (GenTx LeiosTestBlock) → TxId (GenTx LeiosTestBlock) → Bool # max ∷ TxId (GenTx LeiosTestBlock) → TxId (GenTx LeiosTestBlock) → TxId (GenTx LeiosTestBlock) # min ∷ TxId (GenTx LeiosTestBlock) → TxId (GenTx LeiosTestBlock) → TxId (GenTx LeiosTestBlock) # | |||||||||||||||||||||
| Generic (BlockConfig LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Associated Types
Methods from ∷ BlockConfig LeiosTestBlock → Rep (BlockConfig LeiosTestBlock) x # to ∷ Rep (BlockConfig LeiosTestBlock) x → BlockConfig LeiosTestBlock # | |||||||||||||||||||||
| Generic (CodecConfig LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Associated Types
Methods from ∷ CodecConfig LeiosTestBlock → Rep (CodecConfig LeiosTestBlock) x # to ∷ Rep (CodecConfig LeiosTestBlock) x → CodecConfig LeiosTestBlock # | |||||||||||||||||||||
| Generic (Header LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Associated Types
Methods from ∷ Header LeiosTestBlock → Rep (Header LeiosTestBlock) x # to ∷ Rep (Header LeiosTestBlock) x → Header LeiosTestBlock # | |||||||||||||||||||||
| Generic (StorageConfig LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Associated Types
Methods from ∷ StorageConfig LeiosTestBlock → Rep (StorageConfig LeiosTestBlock) x # to ∷ Rep (StorageConfig LeiosTestBlock) x → StorageConfig LeiosTestBlock # | |||||||||||||||||||||
| Generic (Validated (GenTx LeiosTestBlock)) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Associated Types
Methods from ∷ Validated (GenTx LeiosTestBlock) → Rep (Validated (GenTx LeiosTestBlock)) x # to ∷ Rep (Validated (GenTx LeiosTestBlock)) x → Validated (GenTx LeiosTestBlock) # | |||||||||||||||||||||
| Generic (GenTx LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Associated Types
Methods from ∷ GenTx LeiosTestBlock → Rep (GenTx LeiosTestBlock) x # to ∷ Rep (GenTx LeiosTestBlock) x → GenTx LeiosTestBlock # | |||||||||||||||||||||
| Generic (TxId (GenTx LeiosTestBlock)) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Associated Types
Methods from ∷ TxId (GenTx LeiosTestBlock) → Rep (TxId (GenTx LeiosTestBlock)) x # to ∷ Rep (TxId (GenTx LeiosTestBlock)) x → TxId (GenTx LeiosTestBlock) # | |||||||||||||||||||||
| Show (BlockConfig LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods showsPrec ∷ Int → BlockConfig LeiosTestBlock → ShowS # show ∷ BlockConfig LeiosTestBlock → String # showList ∷ [BlockConfig LeiosTestBlock] → ShowS # | |||||||||||||||||||||
| Show (CodecConfig LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods showsPrec ∷ Int → CodecConfig LeiosTestBlock → ShowS # show ∷ CodecConfig LeiosTestBlock → String # showList ∷ [CodecConfig LeiosTestBlock] → ShowS # | |||||||||||||||||||||
| Show (Header LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| Show (StorageConfig LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods showsPrec ∷ Int → StorageConfig LeiosTestBlock → ShowS # | |||||||||||||||||||||
| Show (Validated (GenTx LeiosTestBlock)) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| Show (GenTx LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| Show (TxId (GenTx LeiosTestBlock)) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| NoThunks (BlockConfig LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods noThunks ∷ Context → BlockConfig LeiosTestBlock → IO (Maybe ThunkInfo) Source # wNoThunks ∷ Context → BlockConfig LeiosTestBlock → IO (Maybe ThunkInfo) Source # showTypeOf ∷ Proxy (BlockConfig LeiosTestBlock) → String Source # | |||||||||||||||||||||
| NoThunks (CodecConfig LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods noThunks ∷ Context → CodecConfig LeiosTestBlock → IO (Maybe ThunkInfo) Source # wNoThunks ∷ Context → CodecConfig LeiosTestBlock → IO (Maybe ThunkInfo) Source # showTypeOf ∷ Proxy (CodecConfig LeiosTestBlock) → String Source # | |||||||||||||||||||||
| NoThunks (Header LeiosTestBlock) Source # | |||||||||||||||||||||
| NoThunks (StorageConfig LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods noThunks ∷ Context → StorageConfig LeiosTestBlock → IO (Maybe ThunkInfo) Source # wNoThunks ∷ Context → StorageConfig LeiosTestBlock → IO (Maybe ThunkInfo) Source # showTypeOf ∷ Proxy (StorageConfig LeiosTestBlock) → String Source # | |||||||||||||||||||||
| NoThunks (Validated (GenTx LeiosTestBlock)) Source # | |||||||||||||||||||||
| NoThunks (GenTx LeiosTestBlock) Source # | |||||||||||||||||||||
| NoThunks (TxId (GenTx LeiosTestBlock)) Source # | |||||||||||||||||||||
| GetTip (LedgerState LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods getTip ∷ ∀ (mk ∷ MapKind). LedgerState LeiosTestBlock mk → Point (LedgerState LeiosTestBlock) Source # | |||||||||||||||||||||
| ConvertRawTxId (GenTx LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods toRawTxIdHash ∷ TxId (GenTx LeiosTestBlock) → ShortByteString Source # | |||||||||||||||||||||
| HasTxId (GenTx LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods txId ∷ GenTx LeiosTestBlock → TxId (GenTx LeiosTestBlock) Source # | |||||||||||||||||||||
| LedgerStateSupportsPeras (LedgerState LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods getPoolDistr ∷ LedgerState LeiosTestBlock EmptyMK → PoolDistr Source # getPerasParams ∷ proxy blk → LedgerState LeiosTestBlock EmptyMK → PerasParams blk Source # | |||||||||||||||||||||
| CanStowLedgerTables (LedgerState LeiosTestBlock) Source # | |||||||||||||||||||||
| Condense (Header LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| HasHeader (Header LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods getHeaderFields ∷ Header LeiosTestBlock → HeaderFields (Header LeiosTestBlock) # | |||||||||||||||||||||
| HasRawTxId (TxId (GenTx LeiosTestBlock)) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Associated Types
Methods getRawTxId ∷ TxId (GenTx LeiosTestBlock) → RawTxId (TxId (GenTx LeiosTestBlock)) | |||||||||||||||||||||
| Serialise (Header LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods encode ∷ Header LeiosTestBlock → Encoding Source # decode ∷ Decoder s (Header LeiosTestBlock) Source # encodeList ∷ [Header LeiosTestBlock] → Encoding Source # decodeList ∷ Decoder s [Header LeiosTestBlock] Source # | |||||||||||||||||||||
| Serialise (RealPoint LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods encode ∷ RealPoint LeiosTestBlock → Encoding Source # decode ∷ Decoder s (RealPoint LeiosTestBlock) Source # | |||||||||||||||||||||
| Serialise (AnnTip LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods encode ∷ AnnTip LeiosTestBlock → Encoding Source # decode ∷ Decoder s (AnnTip LeiosTestBlock) Source # encodeList ∷ [AnnTip LeiosTestBlock] → Encoding Source # decodeList ∷ Decoder s [AnnTip LeiosTestBlock] Source # | |||||||||||||||||||||
| Serialise (GenTx LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods encode ∷ GenTx LeiosTestBlock → Encoding Source # decode ∷ Decoder s (GenTx LeiosTestBlock) Source # encodeList ∷ [GenTx LeiosTestBlock] → Encoding Source # decodeList ∷ Decoder s [GenTx LeiosTestBlock] Source # | |||||||||||||||||||||
| Serialise (TxId (GenTx LeiosTestBlock)) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods encode ∷ TxId (GenTx LeiosTestBlock) → Encoding Source # decode ∷ Decoder s (TxId (GenTx LeiosTestBlock)) Source # encodeList ∷ [TxId (GenTx LeiosTestBlock)] → Encoding Source # decodeList ∷ Decoder s [TxId (GenTx LeiosTestBlock)] Source # | |||||||||||||||||||||
| DecodeDiskDep (NestedCtxt Header) LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods decodeDiskDep ∷ CodecConfig LeiosTestBlock → NestedCtxt Header LeiosTestBlock a → ∀ s. Decoder s (ByteString → a) Source # | |||||||||||||||||||||
| EncodeDiskDep (NestedCtxt Header) LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods encodeDiskDep ∷ CodecConfig LeiosTestBlock → NestedCtxt Header LeiosTestBlock a → a → Encoding Source # | |||||||||||||||||||||
| Eq (LedgerState LeiosTestBlock mk) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods (==) ∷ LedgerState LeiosTestBlock mk → LedgerState LeiosTestBlock mk → Bool # (/=) ∷ LedgerState LeiosTestBlock mk → LedgerState LeiosTestBlock mk → Bool # | |||||||||||||||||||||
| Generic (LedgerState LeiosTestBlock mk) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Associated Types
Methods from ∷ LedgerState LeiosTestBlock mk → Rep (LedgerState LeiosTestBlock mk) x # to ∷ Rep (LedgerState LeiosTestBlock mk) x → LedgerState LeiosTestBlock mk # | |||||||||||||||||||||
| Show (LedgerState LeiosTestBlock mk) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods showsPrec ∷ Int → LedgerState LeiosTestBlock mk → ShowS # show ∷ LedgerState LeiosTestBlock mk → String # showList ∷ [LedgerState LeiosTestBlock mk] → ShowS # | |||||||||||||||||||||
| NoThunks (LedgerState LeiosTestBlock mk) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods noThunks ∷ Context → LedgerState LeiosTestBlock mk → IO (Maybe ThunkInfo) Source # wNoThunks ∷ Context → LedgerState LeiosTestBlock mk → IO (Maybe ThunkInfo) Source # showTypeOf ∷ Proxy (LedgerState LeiosTestBlock mk) → String Source # | |||||||||||||||||||||
| ShowQuery (BlockQuery LeiosTestBlock fp) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods showResult ∷ BlockQuery LeiosTestBlock fp result → result → String # | |||||||||||||||||||||
| Serialise (LedgerState LeiosTestBlock mk) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods encode ∷ LedgerState LeiosTestBlock mk → Encoding Source # decode ∷ Decoder s (LedgerState LeiosTestBlock mk) Source # encodeList ∷ [LedgerState LeiosTestBlock mk] → Encoding Source # decodeList ∷ Decoder s [LedgerState LeiosTestBlock mk] Source # | |||||||||||||||||||||
| Serialise (ExtLedgerState LeiosTestBlock EmptyMK) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| HasLedgerTables (Ticked LedgerState) LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods projectLedgerTables ∷ ∀ (mk ∷ MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) ⇒ Ticked LedgerState LeiosTestBlock mk → LedgerTables LeiosTestBlock mk Source # withLedgerTables ∷ ∀ (mk ∷ MapKind) (any ∷ MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) ⇒ Ticked LedgerState LeiosTestBlock any → LedgerTables LeiosTestBlock mk → Ticked LedgerState LeiosTestBlock mk Source # | |||||||||||||||||||||
| LedgerTablesAreTrivial (Ticked LedgerState) LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods convertMapKind ∷ ∀ (mk ∷ MapKind) (mk' ∷ MapKind). Ticked LedgerState LeiosTestBlock mk → Ticked LedgerState LeiosTestBlock mk' Source # | |||||||||||||||||||||
| ShowProxy (BlockQuery LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods | |||||||||||||||||||||
| Show (NestedCtxt_ LeiosTestBlock f a) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods showsPrec ∷ Int → NestedCtxt_ LeiosTestBlock f a → ShowS # show ∷ NestedCtxt_ LeiosTestBlock f a → String # showList ∷ [NestedCtxt_ LeiosTestBlock f a] → ShowS # | |||||||||||||||||||||
| Show (BlockQuery LeiosTestBlock fp result) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods showsPrec ∷ Int → BlockQuery LeiosTestBlock fp result → ShowS # show ∷ BlockQuery LeiosTestBlock fp result → String # showList ∷ [BlockQuery LeiosTestBlock fp result] → ShowS # | |||||||||||||||||||||
| GetTip (Ticked LedgerState LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods getTip ∷ ∀ (mk ∷ MapKind). Ticked LedgerState LeiosTestBlock mk → Point (Ticked LedgerState LeiosTestBlock) Source # | |||||||||||||||||||||
| LedgerStateSupportsPeras (Ticked LedgerState LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods getPoolDistr ∷ Ticked LedgerState LeiosTestBlock EmptyMK → PoolDistr Source # getPerasParams ∷ proxy blk → Ticked LedgerState LeiosTestBlock EmptyMK → PerasParams blk Source # | |||||||||||||||||||||
| Generic (Ticked LedgerState LeiosTestBlock mk) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Associated Types
Methods from ∷ Ticked LedgerState LeiosTestBlock mk → Rep (Ticked LedgerState LeiosTestBlock mk) x # to ∷ Rep (Ticked LedgerState LeiosTestBlock mk) x → Ticked LedgerState LeiosTestBlock mk # | |||||||||||||||||||||
| NoThunks (Ticked LedgerState LeiosTestBlock mk) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods noThunks ∷ Context → Ticked LedgerState LeiosTestBlock mk → IO (Maybe ThunkInfo) Source # wNoThunks ∷ Context → Ticked LedgerState LeiosTestBlock mk → IO (Maybe ThunkInfo) Source # showTypeOf ∷ Proxy (Ticked LedgerState LeiosTestBlock mk) → String Source # | |||||||||||||||||||||
| type Rep LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock type Rep LeiosTestBlock = D1 ('MetaData "LeiosTestBlock" "Test.Consensus.Leios.TestBlock" "ouroboros-consensus-5.0.0.0-inplace-consensus-diffusion-test" 'True) (C1 ('MetaCons "LeiosTestBlock" 'PrefixI 'True) (S1 ('MetaSel ('Just "ltbHeader") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Header LeiosTestBlock)))) | |||||||||||||||||||||
| data BlockConfig LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| type BlockProtocol LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| data CodecConfig LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| type HashSize LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| data Header LeiosTestBlock Source # | The hash is a path through the tree of forks, exactly as
LIMIT: no chain may exceed | ||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock data Header LeiosTestBlock = LeiosTestHeader {
| |||||||||||||||||||||
| data StorageConfig LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| type CannotForge LeiosTestBlock Source # | The node under test has no credentials, so it never forges; these exist
only because | ||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| type ForgeStateInfo LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| type ForgeStateUpdateError LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| data NestedCtxt_ LeiosTestBlock f a Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock data NestedCtxt_ LeiosTestBlock f a where
| |||||||||||||||||||||
| type TentativeHeaderState LeiosTestBlock Source # | |||||||||||||||||||||
| type TentativeHeaderView LeiosTestBlock Source # | |||||||||||||||||||||
| type PerasCert LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| type PerasCrypto LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| type PerasError LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| type PerasVote LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| type PerasVotingCommitteeScheme LeiosTestBlock Source # | |||||||||||||||||||||
| type HardForkIndices LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| type OtherHeaderEnvelopeError LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| type TipInfo LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| type AuxLedgerEvent LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| newtype LedgerState LeiosTestBlock mk Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| type LedgerUpdate LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| type LedgerWarning LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| data BlockQuery LeiosTestBlock fp result Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| type ApplyTxErr LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| data GenTx LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| type TxEbMeasure LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| type TxMeasurePhase1 LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| type TxMeasurePhase2 LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| type TxIn LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| type TxOut LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| type BlockNodeToClientVersion LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| type BlockNodeToNodeVersion LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| type MaybeEraIndexedEpochToPerasRoundInfo LeiosTestBlock Source # | |||||||||||||||||||||
| type LedgerCfg LedgerState LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| type LedgerErr LedgerState LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| type HeaderHash LeiosTestBlock Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| type TrivialIndex (NestedCtxt_ LeiosTestBlock f ∷ Type → Type) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| type Rep (BlockConfig LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| type Rep (CodecConfig LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| type Rep (Header LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| type Rep (StorageConfig LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| type Rep (Validated (GenTx LeiosTestBlock)) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock type Rep (Validated (GenTx LeiosTestBlock)) = D1 ('MetaData "Validated" "Test.Consensus.Leios.TestBlock" "ouroboros-consensus-5.0.0.0-inplace-consensus-diffusion-test" 'True) (C1 ('MetaCons "ValidatedLeiosTestGenTx" 'PrefixI 'True) (S1 ('MetaSel ('Just "forgetValidatedLeiosTestGenTx") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (GenTx LeiosTestBlock)))) | |||||||||||||||||||||
| type Rep (GenTx LeiosTestBlock) Source # | |||||||||||||||||||||
| type Rep (TxId (GenTx LeiosTestBlock)) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock type Rep (TxId (GenTx LeiosTestBlock)) = D1 ('MetaData "TxId" "Test.Consensus.Leios.TestBlock" "ouroboros-consensus-5.0.0.0-inplace-consensus-diffusion-test" 'True) (C1 ('MetaCons "LeiosTestTxId" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64))) | |||||||||||||||||||||
| newtype Validated (GenTx LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| newtype TxId (GenTx LeiosTestBlock) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| type RawTxId (TxId (GenTx LeiosTestBlock)) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| type Rep (LedgerState LeiosTestBlock mk) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock type Rep (LedgerState LeiosTestBlock mk) = D1 ('MetaData "LedgerState" "Test.Consensus.Leios.TestBlock" "ouroboros-consensus-5.0.0.0-inplace-consensus-diffusion-test" 'True) (C1 ('MetaCons "LeiosTestLedger" 'PrefixI 'True) (S1 ('MetaSel ('Just "ltlsTip") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Point LeiosTestBlock)))) | |||||||||||||||||||||
| newtype Ticked LedgerState LeiosTestBlock (mk ∷ MapKind) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||
| type Rep (Ticked LedgerState LeiosTestBlock mk) Source # | |||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock type Rep (Ticked LedgerState LeiosTestBlock mk) = D1 ('MetaData "Ticked" "Test.Consensus.Leios.TestBlock" "ouroboros-consensus-5.0.0.0-inplace-consensus-diffusion-test" 'True) (C1 ('MetaCons "TickedLeiosTestLedger" 'PrefixI 'True) (S1 ('MetaSel ('Just "getTickedLeiosTestLedger") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (LedgerState LeiosTestBlock mk)))) | |||||||||||||||||||||
maxLeiosTestChainLength ∷ Int Source #
The cap this block's hash imposes on chain length: its 32 bytes hold the
path's length and 31 path components. See the LIMIT on Header
LeiosTestBlock.
Building chains
firstLeiosBlock ∷ Word64 → LeiosTestBlock Source #
The first block of the given fork, in slot 1.
forkLeiosBlock ∷ LeiosTestBlock → LeiosTestBlock Source #
A sibling of the given block: same slot and same predecessor, different hash.
setAnnouncement ∷ EbHash → BytesSize → LeiosTestBlock → LeiosTestBlock Source #
Announce the endorser block with this hash, claiming this size.
setCounterBelowImmTips ∷ LeiosTestBlock → LeiosTestBlock Source #
Put this header's operational certificate counter below the one the immutable tip records for its issuer, so that its announcement is accepted but not processed.
setInvalid ∷ LeiosTestBlock → LeiosTestBlock Source #
Make the protocol reject this header.
setSlot ∷ SlotNo → LeiosTestBlock → LeiosTestBlock Source #
Move this block to another slot.
successorLeiosBlock ∷ LeiosTestBlock → LeiosTestBlock Source #
The successor of the given block: b -> b ++ [0], one slot later.
Ledger
data family LedgerState blk (mk ∷ MapKind) Source #
Ledger state associated with a block
This is the Consensus notion of a Ledger ledger state. Each block type is
associated with one of the Ledger types for the ledger state. Virtually
every concept in this codebase revolves around this type, or the referenced
blk. Whenever we use the type variable l we intend to signal that the
expected instantiation is either a LedgerState or some wrapper over it
(like the ExtLedgerState).
This type is parametrized over mk :: to express the
MapKindLedgerTables contained in such a LedgerState. See LedgerTables for a
more thorough description.
The main operations we can do with a LedgerState are ticking (defined in
IsLedger), and applying a block (defined in
ApplyBlock).
Instances
| ApplyBlock LedgerState BlockA Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.A Methods applyBlockLedgerResultWithValidation ∷ ValidationPolicy → ComputeLedgerEvents → LedgerCfg LedgerState BlockA → BlockA → Ticked LedgerState BlockA ValuesMK → Except (LedgerErr LedgerState BlockA) (LedgerResult BlockA (LedgerState BlockA DiffMK)) Source # applyBlockLedgerResult ∷ ComputeLedgerEvents → LedgerCfg LedgerState BlockA → BlockA → Ticked LedgerState BlockA ValuesMK → Except (LedgerErr LedgerState BlockA) (LedgerResult BlockA (LedgerState BlockA DiffMK)) Source # reapplyBlockLedgerResult ∷ ComputeLedgerEvents → LedgerCfg LedgerState BlockA → BlockA → Ticked LedgerState BlockA ValuesMK → LedgerResult BlockA (LedgerState BlockA DiffMK) Source # | |||||
| ApplyBlock LedgerState BlockB Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.B Methods applyBlockLedgerResultWithValidation ∷ ValidationPolicy → ComputeLedgerEvents → LedgerCfg LedgerState BlockB → BlockB → Ticked LedgerState BlockB ValuesMK → Except (LedgerErr LedgerState BlockB) (LedgerResult BlockB (LedgerState BlockB DiffMK)) Source # applyBlockLedgerResult ∷ ComputeLedgerEvents → LedgerCfg LedgerState BlockB → BlockB → Ticked LedgerState BlockB ValuesMK → Except (LedgerErr LedgerState BlockB) (LedgerResult BlockB (LedgerState BlockB DiffMK)) Source # reapplyBlockLedgerResult ∷ ComputeLedgerEvents → LedgerCfg LedgerState BlockB → BlockB → Ticked LedgerState BlockB ValuesMK → LedgerResult BlockB (LedgerState BlockB DiffMK) Source # | |||||
| ApplyBlock LedgerState LeiosTestBlock Source # | |||||
Defined in Test.Consensus.Leios.TestBlock Methods applyBlockLedgerResultWithValidation ∷ ValidationPolicy → ComputeLedgerEvents → LedgerCfg LedgerState LeiosTestBlock → LeiosTestBlock → Ticked LedgerState LeiosTestBlock ValuesMK → Except (LedgerErr LedgerState LeiosTestBlock) (LedgerResult LeiosTestBlock (LedgerState LeiosTestBlock DiffMK)) Source # applyBlockLedgerResult ∷ ComputeLedgerEvents → LedgerCfg LedgerState LeiosTestBlock → LeiosTestBlock → Ticked LedgerState LeiosTestBlock ValuesMK → Except (LedgerErr LedgerState LeiosTestBlock) (LedgerResult LeiosTestBlock (LedgerState LeiosTestBlock DiffMK)) Source # reapplyBlockLedgerResult ∷ ComputeLedgerEvents → LedgerCfg LedgerState LeiosTestBlock → LeiosTestBlock → Ticked LedgerState LeiosTestBlock ValuesMK → LedgerResult LeiosTestBlock (LedgerState LeiosTestBlock DiffMK) Source # | |||||
| ApplyBlock LedgerState TestBlock # | |||||
Defined in Test.Ouroboros.Storage.TestBlock Methods applyBlockLedgerResultWithValidation ∷ ValidationPolicy → ComputeLedgerEvents → LedgerCfg LedgerState TestBlock → TestBlock → Ticked LedgerState TestBlock ValuesMK → Except (LedgerErr LedgerState TestBlock) (LedgerResult TestBlock (LedgerState TestBlock DiffMK)) Source # applyBlockLedgerResult ∷ ComputeLedgerEvents → LedgerCfg LedgerState TestBlock → TestBlock → Ticked LedgerState TestBlock ValuesMK → Except (LedgerErr LedgerState TestBlock) (LedgerResult TestBlock (LedgerState TestBlock DiffMK)) Source # reapplyBlockLedgerResult ∷ ComputeLedgerEvents → LedgerCfg LedgerState TestBlock → TestBlock → Ticked LedgerState TestBlock ValuesMK → LedgerResult TestBlock (LedgerState TestBlock DiffMK) Source # | |||||
| IsLedger LedgerState BlockA Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.A Associated Types
| |||||
| IsLedger LedgerState BlockB Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.B Associated Types
| |||||
| IsLedger LedgerState LeiosTestBlock Source # | |||||
Defined in Test.Consensus.Leios.TestBlock Associated Types
| |||||
| IsLedger LedgerState TestBlock # | |||||
Defined in Test.Ouroboros.Storage.TestBlock Associated Types
Methods applyChainTickLedgerResult ∷ ComputeLedgerEvents → LedgerCfg LedgerState TestBlock → SlotNo → LedgerState TestBlock EmptyMK → LedgerResult TestBlock (Ticked LedgerState TestBlock DiffMK) Source # | |||||
| CanUpgradeLedgerTables LedgerState BlockA Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.A Methods upgradeTables ∷ ∀ (mk1 ∷ MapKind) (mk2 ∷ MapKind). LedgerState BlockA mk1 → LedgerState BlockA mk2 → LedgerTables BlockA ValuesMK → LedgerTables BlockA ValuesMK Source # | |||||
| CanUpgradeLedgerTables LedgerState BlockB Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.B Methods upgradeTables ∷ ∀ (mk1 ∷ MapKind) (mk2 ∷ MapKind). LedgerState BlockB mk1 → LedgerState BlockB mk2 → LedgerTables BlockB ValuesMK → LedgerTables BlockB ValuesMK Source # | |||||
| CanUpgradeLedgerTables LedgerState LeiosTestBlock Source # | |||||
Defined in Test.Consensus.Leios.TestBlock Methods upgradeTables ∷ ∀ (mk1 ∷ MapKind) (mk2 ∷ MapKind). LedgerState LeiosTestBlock mk1 → LedgerState LeiosTestBlock mk2 → LedgerTables LeiosTestBlock ValuesMK → LedgerTables LeiosTestBlock ValuesMK Source # | |||||
| CanUpgradeLedgerTables LedgerState TestBlock # | |||||
Defined in Test.Ouroboros.Storage.TestBlock Methods upgradeTables ∷ ∀ (mk1 ∷ MapKind) (mk2 ∷ MapKind). LedgerState TestBlock mk1 → LedgerState TestBlock mk2 → LedgerTables TestBlock ValuesMK → LedgerTables TestBlock ValuesMK Source # | |||||
| CanUpgradeLedgerTables LedgerState TestBlock # | |||||
Defined in Test.Util.TestBlock Methods upgradeTables ∷ ∀ (mk1 ∷ MapKind) (mk2 ∷ MapKind). LedgerState TestBlock mk1 → LedgerState TestBlock mk2 → LedgerTables TestBlock ValuesMK → LedgerTables TestBlock ValuesMK Source # | |||||
| HasLedgerTables LedgerState BlockA Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.A Methods projectLedgerTables ∷ ∀ (mk ∷ MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) ⇒ LedgerState BlockA mk → LedgerTables BlockA mk Source # withLedgerTables ∷ ∀ (mk ∷ MapKind) (any ∷ MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) ⇒ LedgerState BlockA any → LedgerTables BlockA mk → LedgerState BlockA mk Source # | |||||
| HasLedgerTables LedgerState BlockB Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.B Methods projectLedgerTables ∷ ∀ (mk ∷ MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) ⇒ LedgerState BlockB mk → LedgerTables BlockB mk Source # withLedgerTables ∷ ∀ (mk ∷ MapKind) (any ∷ MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) ⇒ LedgerState BlockB any → LedgerTables BlockB mk → LedgerState BlockB mk Source # | |||||
| HasLedgerTables LedgerState LeiosTestBlock Source # | |||||
Defined in Test.Consensus.Leios.TestBlock Methods projectLedgerTables ∷ ∀ (mk ∷ MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) ⇒ LedgerState LeiosTestBlock mk → LedgerTables LeiosTestBlock mk Source # withLedgerTables ∷ ∀ (mk ∷ MapKind) (any ∷ MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) ⇒ LedgerState LeiosTestBlock any → LedgerTables LeiosTestBlock mk → LedgerState LeiosTestBlock mk Source # | |||||
| HasLedgerTables LedgerState TestBlock # | |||||
Defined in Test.Ouroboros.Storage.TestBlock Methods projectLedgerTables ∷ ∀ (mk ∷ MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) ⇒ LedgerState TestBlock mk → LedgerTables TestBlock mk Source # withLedgerTables ∷ ∀ (mk ∷ MapKind) (any ∷ MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) ⇒ LedgerState TestBlock any → LedgerTables TestBlock mk → LedgerState TestBlock mk Source # | |||||
| HasLedgerTables LedgerState TestBlock # | |||||
Defined in Test.Util.TestBlock Methods projectLedgerTables ∷ ∀ (mk ∷ MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) ⇒ LedgerState TestBlock mk → LedgerTables TestBlock mk Source # withLedgerTables ∷ ∀ (mk ∷ MapKind) (any ∷ MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) ⇒ LedgerState TestBlock any → LedgerTables TestBlock mk → LedgerState TestBlock mk Source # | |||||
| LedgerTablesAreTrivial LedgerState BlockA Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.A Methods convertMapKind ∷ ∀ (mk ∷ MapKind) (mk' ∷ MapKind). LedgerState BlockA mk → LedgerState BlockA mk' Source # | |||||
| LedgerTablesAreTrivial LedgerState BlockB Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.B Methods convertMapKind ∷ ∀ (mk ∷ MapKind) (mk' ∷ MapKind). LedgerState BlockB mk → LedgerState BlockB mk' Source # | |||||
| LedgerTablesAreTrivial LedgerState LeiosTestBlock Source # | |||||
Defined in Test.Consensus.Leios.TestBlock Methods convertMapKind ∷ ∀ (mk ∷ MapKind) (mk' ∷ MapKind). LedgerState LeiosTestBlock mk → LedgerState LeiosTestBlock mk' Source # | |||||
| LedgerTablesAreTrivial LedgerState TestBlock # | |||||
Defined in Test.Ouroboros.Storage.TestBlock Methods convertMapKind ∷ ∀ (mk ∷ MapKind) (mk' ∷ MapKind). LedgerState TestBlock mk → LedgerState TestBlock mk' Source # | |||||
| LedgerTablesAreTrivial LedgerState TestBlock # | |||||
Defined in Test.Util.TestBlock Methods convertMapKind ∷ ∀ (mk ∷ MapKind) (mk' ∷ MapKind). LedgerState TestBlock mk → LedgerState TestBlock mk' Source # | |||||
| SerializeTablesWithHint LedgerState BlockA Source # | |||||
| SerializeTablesWithHint LedgerState BlockB Source # | |||||
| SerializeTablesWithHint LedgerState LeiosTestBlock Source # | |||||
| SerializeTablesWithHint LedgerState TestBlock # | |||||
Defined in Test.Ouroboros.Storage.TestBlock Methods encodeTablesWithHint ∷ LedgerState TestBlock EmptyMK → LedgerTables TestBlock ValuesMK → Encoding Source # decodeTablesWithHint ∷ LedgerState TestBlock EmptyMK → Decoder s (LedgerTables TestBlock ValuesMK) Source # | |||||
| SerializeTablesWithHint LedgerState TestBlock # | |||||
Defined in Test.Util.TestBlock Methods encodeTablesWithHint ∷ LedgerState TestBlock EmptyMK → LedgerTables TestBlock ValuesMK → Encoding Source # decodeTablesWithHint ∷ LedgerState TestBlock EmptyMK → Decoder s (LedgerTables TestBlock ValuesMK) Source # | |||||
| IndexedMemPack LedgerState BlockA Void Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.A Methods indexedPackedByteCount ∷ LedgerState BlockA EmptyMK → Void → Int Source # indexedPackM ∷ LedgerState BlockA EmptyMK → Void → Pack s () Source # indexedUnpackM ∷ Buffer b ⇒ ∀ s. LedgerState BlockA EmptyMK → Unpack s b Void Source # indexedTypeName ∷ Proxy Void → LedgerState BlockA EmptyMK → String Source # | |||||
| IndexedMemPack LedgerState BlockB Void Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.B Methods indexedPackedByteCount ∷ LedgerState BlockB EmptyMK → Void → Int Source # indexedPackM ∷ LedgerState BlockB EmptyMK → Void → Pack s () Source # indexedUnpackM ∷ Buffer b ⇒ ∀ s. LedgerState BlockB EmptyMK → Unpack s b Void Source # indexedTypeName ∷ Proxy Void → LedgerState BlockB EmptyMK → String Source # | |||||
| IndexedMemPack LedgerState LeiosTestBlock Void Source # | |||||
Defined in Test.Consensus.Leios.TestBlock Methods indexedPackedByteCount ∷ LedgerState LeiosTestBlock EmptyMK → Void → Int Source # indexedPackM ∷ LedgerState LeiosTestBlock EmptyMK → Void → Pack s () Source # indexedUnpackM ∷ Buffer b ⇒ ∀ s. LedgerState LeiosTestBlock EmptyMK → Unpack s b Void Source # indexedTypeName ∷ Proxy Void → LedgerState LeiosTestBlock EmptyMK → String Source # | |||||
| IndexedMemPack LedgerState TestBlock Void # | |||||
Defined in Test.Ouroboros.Storage.TestBlock Methods indexedPackedByteCount ∷ LedgerState TestBlock EmptyMK → Void → Int Source # indexedPackM ∷ LedgerState TestBlock EmptyMK → Void → Pack s () Source # indexedUnpackM ∷ Buffer b ⇒ ∀ s. LedgerState TestBlock EmptyMK → Unpack s b Void Source # indexedTypeName ∷ Proxy Void → LedgerState TestBlock EmptyMK → String Source # | |||||
| IndexedMemPack LedgerState TestBlock Void # | |||||
Defined in Test.Util.TestBlock Methods indexedPackedByteCount ∷ LedgerState TestBlock EmptyMK → Void → Int Source # indexedPackM ∷ LedgerState TestBlock EmptyMK → Void → Pack s () Source # indexedUnpackM ∷ Buffer b ⇒ ∀ s. LedgerState TestBlock EmptyMK → Unpack s b Void Source # indexedTypeName ∷ Proxy Void → LedgerState TestBlock EmptyMK → String Source # | |||||
| (CanHardFork xs, HasCanonicalTxIn xs, HasHardForkTxOut xs) ⇒ ApplyBlock LedgerState (HardForkBlock xs) Source # | |||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Ledger Methods applyBlockLedgerResultWithValidation ∷ ValidationPolicy → ComputeLedgerEvents → LedgerCfg LedgerState (HardForkBlock xs) → HardForkBlock xs → Ticked LedgerState (HardForkBlock xs) ValuesMK → Except (LedgerErr LedgerState (HardForkBlock xs)) (LedgerResult (HardForkBlock xs) (LedgerState (HardForkBlock xs) DiffMK)) Source # applyBlockLedgerResult ∷ ComputeLedgerEvents → LedgerCfg LedgerState (HardForkBlock xs) → HardForkBlock xs → Ticked LedgerState (HardForkBlock xs) ValuesMK → Except (LedgerErr LedgerState (HardForkBlock xs)) (LedgerResult (HardForkBlock xs) (LedgerState (HardForkBlock xs) DiffMK)) Source # reapplyBlockLedgerResult ∷ ComputeLedgerEvents → LedgerCfg LedgerState (HardForkBlock xs) → HardForkBlock xs → Ticked LedgerState (HardForkBlock xs) ValuesMK → LedgerResult (HardForkBlock xs) (LedgerState (HardForkBlock xs) DiffMK) Source # | |||||
| PayloadSemantics ptype ⇒ ApplyBlock LedgerState (TestBlockWith ptype) # | |||||
Defined in Test.Util.TestBlock Methods applyBlockLedgerResultWithValidation ∷ ValidationPolicy → ComputeLedgerEvents → LedgerCfg LedgerState (TestBlockWith ptype) → TestBlockWith ptype → Ticked LedgerState (TestBlockWith ptype) ValuesMK → Except (LedgerErr LedgerState (TestBlockWith ptype)) (LedgerResult (TestBlockWith ptype) (LedgerState (TestBlockWith ptype) DiffMK)) Source # applyBlockLedgerResult ∷ ComputeLedgerEvents → LedgerCfg LedgerState (TestBlockWith ptype) → TestBlockWith ptype → Ticked LedgerState (TestBlockWith ptype) ValuesMK → Except (LedgerErr LedgerState (TestBlockWith ptype)) (LedgerResult (TestBlockWith ptype) (LedgerState (TestBlockWith ptype) DiffMK)) Source # reapplyBlockLedgerResult ∷ ComputeLedgerEvents → LedgerCfg LedgerState (TestBlockWith ptype) → TestBlockWith ptype → Ticked LedgerState (TestBlockWith ptype) ValuesMK → LedgerResult (TestBlockWith ptype) (LedgerState (TestBlockWith ptype) DiffMK) Source # | |||||
| CanHardFork xs ⇒ IsLedger LedgerState (HardForkBlock xs) Source # | |||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Ledger Associated Types
Methods applyChainTickLedgerResult ∷ ComputeLedgerEvents → LedgerCfg LedgerState (HardForkBlock xs) → SlotNo → LedgerState (HardForkBlock xs) EmptyMK → LedgerResult (HardForkBlock xs) (Ticked LedgerState (HardForkBlock xs) DiffMK) Source # | |||||
| PayloadSemantics ptype ⇒ IsLedger LedgerState (TestBlockWith ptype) # | |||||
Defined in Test.Util.TestBlock Associated Types
Methods applyChainTickLedgerResult ∷ ComputeLedgerEvents → LedgerCfg LedgerState (TestBlockWith ptype) → SlotNo → LedgerState (TestBlockWith ptype) EmptyMK → LedgerResult (TestBlockWith ptype) (Ticked LedgerState (TestBlockWith ptype) DiffMK) Source # | |||||
| (CanHardFork xs, HasHardForkTxOut xs) ⇒ CanUpgradeLedgerTables LedgerState (HardForkBlock xs) Source # | |||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Ledger Methods upgradeTables ∷ ∀ (mk1 ∷ MapKind) (mk2 ∷ MapKind). LedgerState (HardForkBlock xs) mk1 → LedgerState (HardForkBlock xs) mk2 → LedgerTables (HardForkBlock xs) ValuesMK → LedgerTables (HardForkBlock xs) ValuesMK Source # | |||||
| (CanHardFork xs, HasCanonicalTxIn xs, HasHardForkTxOut xs) ⇒ HasLedgerTables LedgerState (HardForkBlock xs) Source # | Warning: | ||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Ledger Methods projectLedgerTables ∷ ∀ (mk ∷ MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) ⇒ LedgerState (HardForkBlock xs) mk → LedgerTables (HardForkBlock xs) mk Source # withLedgerTables ∷ ∀ (mk ∷ MapKind) (any ∷ MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) ⇒ LedgerState (HardForkBlock xs) any → LedgerTables (HardForkBlock xs) mk → LedgerState (HardForkBlock xs) mk Source # | |||||
| SerializeTablesWithHint LedgerState (HardForkBlock '[BlockA, BlockB]) Source # | |||||
Defined in Test.Consensus.HardFork.Combinator Methods encodeTablesWithHint ∷ LedgerState (HardForkBlock '[BlockA, BlockB]) EmptyMK → LedgerTables (HardForkBlock '[BlockA, BlockB]) ValuesMK → Encoding Source # decodeTablesWithHint ∷ LedgerState (HardForkBlock '[BlockA, BlockB]) EmptyMK → Decoder s (LedgerTables (HardForkBlock '[BlockA, BlockB]) ValuesMK) Source # | |||||
| IndexedMemPack LedgerState (HardForkBlock '[BlockA, BlockB]) (DefaultHardForkTxOut '[BlockA, BlockB]) Source # | |||||
Defined in Test.Consensus.HardFork.Combinator Methods indexedPackedByteCount ∷ LedgerState (HardForkBlock '[BlockA, BlockB]) EmptyMK → DefaultHardForkTxOut '[BlockA, BlockB] → Int Source # indexedPackM ∷ LedgerState (HardForkBlock '[BlockA, BlockB]) EmptyMK → DefaultHardForkTxOut '[BlockA, BlockB] → Pack s () Source # indexedUnpackM ∷ Buffer b ⇒ ∀ s. LedgerState (HardForkBlock '[BlockA, BlockB]) EmptyMK → Unpack s b (DefaultHardForkTxOut '[BlockA, BlockB]) Source # indexedTypeName ∷ Proxy (DefaultHardForkTxOut '[BlockA, BlockB]) → LedgerState (HardForkBlock '[BlockA, BlockB]) EmptyMK → String Source # | |||||
| Bridge m a ⇒ ApplyBlock LedgerState (DualBlock m a) Source # | |||||
Defined in Ouroboros.Consensus.Ledger.Dual Methods applyBlockLedgerResultWithValidation ∷ ValidationPolicy → ComputeLedgerEvents → LedgerCfg LedgerState (DualBlock m a) → DualBlock m a → Ticked LedgerState (DualBlock m a) ValuesMK → Except (LedgerErr LedgerState (DualBlock m a)) (LedgerResult (DualBlock m a) (LedgerState (DualBlock m a) DiffMK)) Source # applyBlockLedgerResult ∷ ComputeLedgerEvents → LedgerCfg LedgerState (DualBlock m a) → DualBlock m a → Ticked LedgerState (DualBlock m a) ValuesMK → Except (LedgerErr LedgerState (DualBlock m a)) (LedgerResult (DualBlock m a) (LedgerState (DualBlock m a) DiffMK)) Source # reapplyBlockLedgerResult ∷ ComputeLedgerEvents → LedgerCfg LedgerState (DualBlock m a) → DualBlock m a → Ticked LedgerState (DualBlock m a) ValuesMK → LedgerResult (DualBlock m a) (LedgerState (DualBlock m a) DiffMK) Source # | |||||
| Bridge m a ⇒ IsLedger LedgerState (DualBlock m a) Source # | |||||
Defined in Ouroboros.Consensus.Ledger.Dual Associated Types
Methods applyChainTickLedgerResult ∷ ComputeLedgerEvents → LedgerCfg LedgerState (DualBlock m a) → SlotNo → LedgerState (DualBlock m a) EmptyMK → LedgerResult (DualBlock m a) (Ticked LedgerState (DualBlock m a) DiffMK) Source # | |||||
| CanUpgradeLedgerTables LedgerState (DualBlock m a) Source # | |||||
Defined in Ouroboros.Consensus.Ledger.Dual Methods upgradeTables ∷ ∀ (mk1 ∷ MapKind) (mk2 ∷ MapKind). LedgerState (DualBlock m a) mk1 → LedgerState (DualBlock m a) mk2 → LedgerTables (DualBlock m a) ValuesMK → LedgerTables (DualBlock m a) ValuesMK Source # | |||||
| CanUpgradeLedgerTables LedgerState (OTBlock k v) # | |||||
Defined in Test.Util.LedgerStateOnlyTables Methods upgradeTables ∷ ∀ (mk1 ∷ MapKind) (mk2 ∷ MapKind). LedgerState (OTBlock k v) mk1 → LedgerState (OTBlock k v) mk2 → LedgerTables (OTBlock k v) ValuesMK → LedgerTables (OTBlock k v) ValuesMK Source # | |||||
| (Bridge m a, HasLedgerTables LedgerState m) ⇒ HasLedgerTables LedgerState (DualBlock m a) Source # | |||||
Defined in Ouroboros.Consensus.Ledger.Dual Methods projectLedgerTables ∷ ∀ (mk ∷ MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) ⇒ LedgerState (DualBlock m a) mk → LedgerTables (DualBlock m a) mk Source # withLedgerTables ∷ ∀ (mk ∷ MapKind) (any ∷ MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) ⇒ LedgerState (DualBlock m a) any → LedgerTables (DualBlock m a) mk → LedgerState (DualBlock m a) mk Source # | |||||
| (Ord k, Eq v, NoThunks k, NoThunks v) ⇒ HasLedgerTables LedgerState (OTBlock k v) # | |||||
Defined in Test.Util.LedgerStateOnlyTables Methods projectLedgerTables ∷ ∀ (mk ∷ MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) ⇒ LedgerState (OTBlock k v) mk → LedgerTables (OTBlock k v) mk Source # withLedgerTables ∷ ∀ (mk ∷ MapKind) (any ∷ MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) ⇒ LedgerState (OTBlock k v) any → LedgerTables (OTBlock k v) mk → LedgerState (OTBlock k v) mk Source # | |||||
| (Ord (TxIn m), MemPack (TxIn m), MemPack (TxOut m)) ⇒ SerializeTablesWithHint LedgerState (DualBlock m a) Source # | |||||
Defined in Ouroboros.Consensus.Ledger.Dual Methods encodeTablesWithHint ∷ LedgerState (DualBlock m a) EmptyMK → LedgerTables (DualBlock m a) ValuesMK → Encoding Source # decodeTablesWithHint ∷ LedgerState (DualBlock m a) EmptyMK → Decoder s (LedgerTables (DualBlock m a) ValuesMK) Source # | |||||
| (Ord k, MemPack k, MemPack v) ⇒ SerializeTablesWithHint LedgerState (OTBlock k v) # | |||||
Defined in Test.Util.LedgerStateOnlyTables Methods encodeTablesWithHint ∷ LedgerState (OTBlock k v) EmptyMK → LedgerTables (OTBlock k v) ValuesMK → Encoding Source # decodeTablesWithHint ∷ LedgerState (OTBlock k v) EmptyMK → Decoder s (LedgerTables (OTBlock k v) ValuesMK) Source # | |||||
| DecodeDisk BlockA (LedgerState BlockA EmptyMK) Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.A Methods decodeDisk ∷ CodecConfig BlockA → ∀ s. Decoder s (LedgerState BlockA EmptyMK) Source # | |||||
| DecodeDisk BlockB (LedgerState BlockB EmptyMK) Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.B Methods decodeDisk ∷ CodecConfig BlockB → ∀ s. Decoder s (LedgerState BlockB EmptyMK) Source # | |||||
| DecodeDisk LeiosTestBlock (LedgerState LeiosTestBlock EmptyMK) Source # | |||||
Defined in Test.Consensus.Leios.TestBlock Methods decodeDisk ∷ CodecConfig LeiosTestBlock → ∀ s. Decoder s (LedgerState LeiosTestBlock EmptyMK) Source # | |||||
| DecodeDisk TestBlock (LedgerState TestBlock EmptyMK) # | |||||
Defined in Test.Ouroboros.Storage.TestBlock Methods decodeDisk ∷ CodecConfig TestBlock → ∀ s. Decoder s (LedgerState TestBlock EmptyMK) Source # | |||||
| EncodeDisk BlockA (LedgerState BlockA EmptyMK) Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.A Methods encodeDisk ∷ CodecConfig BlockA → LedgerState BlockA EmptyMK → Encoding Source # | |||||
| EncodeDisk BlockB (LedgerState BlockB EmptyMK) Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.B Methods encodeDisk ∷ CodecConfig BlockB → LedgerState BlockB EmptyMK → Encoding Source # | |||||
| EncodeDisk LeiosTestBlock (LedgerState LeiosTestBlock EmptyMK) Source # | |||||
Defined in Test.Consensus.Leios.TestBlock Methods encodeDisk ∷ CodecConfig LeiosTestBlock → LedgerState LeiosTestBlock EmptyMK → Encoding Source # | |||||
| EncodeDisk TestBlock (LedgerState TestBlock EmptyMK) # | |||||
Defined in Test.Ouroboros.Storage.TestBlock Methods encodeDisk ∷ CodecConfig TestBlock → LedgerState TestBlock EmptyMK → Encoding Source # | |||||
| (txout ~ TxOut m, IndexedMemPack LedgerState m txout) ⇒ IndexedMemPack LedgerState (DualBlock m a) txout Source # | |||||
Defined in Ouroboros.Consensus.Ledger.Dual Methods indexedPackedByteCount ∷ LedgerState (DualBlock m a) EmptyMK → txout → Int Source # indexedPackM ∷ LedgerState (DualBlock m a) EmptyMK → txout → Pack s () Source # indexedUnpackM ∷ Buffer b ⇒ ∀ s. LedgerState (DualBlock m a) EmptyMK → Unpack s b txout Source # indexedTypeName ∷ Proxy txout → LedgerState (DualBlock m a) EmptyMK → String Source # | |||||
| MemPack v ⇒ IndexedMemPack LedgerState (OTBlock k v) v # | |||||
Defined in Test.Util.LedgerStateOnlyTables Methods indexedPackedByteCount ∷ LedgerState (OTBlock k v) EmptyMK → v → Int Source # indexedPackM ∷ LedgerState (OTBlock k v) EmptyMK → v → Pack s () Source # indexedUnpackM ∷ Buffer b ⇒ ∀ s. LedgerState (OTBlock k v) EmptyMK → Unpack s b v Source # indexedTypeName ∷ Proxy v → LedgerState (OTBlock k v) EmptyMK → String Source # | |||||
| CanHardFork xs ⇒ GetTip (LedgerState (HardForkBlock xs)) Source # | |||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Ledger Methods getTip ∷ ∀ (mk ∷ MapKind). LedgerState (HardForkBlock xs) mk → Point (LedgerState (HardForkBlock xs)) Source # | |||||
| Bridge m a ⇒ GetTip (LedgerState (DualBlock m a)) Source # | |||||
Defined in Ouroboros.Consensus.Ledger.Dual Methods getTip ∷ ∀ (mk ∷ MapKind). LedgerState (DualBlock m a) mk → Point (LedgerState (DualBlock m a)) Source # | |||||
| GetTip (LedgerState BlockA) Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.A Methods getTip ∷ ∀ (mk ∷ MapKind). LedgerState BlockA mk → Point (LedgerState BlockA) Source # | |||||
| GetTip (LedgerState BlockB) Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.B Methods getTip ∷ ∀ (mk ∷ MapKind). LedgerState BlockB mk → Point (LedgerState BlockB) Source # | |||||
| GetTip (LedgerState LeiosTestBlock) Source # | |||||
Defined in Test.Consensus.Leios.TestBlock Methods getTip ∷ ∀ (mk ∷ MapKind). LedgerState LeiosTestBlock mk → Point (LedgerState LeiosTestBlock) Source # | |||||
| GetTip (LedgerState TestBlock) # | |||||
Defined in Test.Ouroboros.Storage.TestBlock Methods getTip ∷ ∀ (mk ∷ MapKind). LedgerState TestBlock mk → Point (LedgerState TestBlock) Source # | |||||
| GetTip (LedgerState (TestBlockWith ptype)) # | |||||
Defined in Test.Util.TestBlock Methods getTip ∷ ∀ (mk ∷ MapKind). LedgerState (TestBlockWith ptype) mk → Point (LedgerState (TestBlockWith ptype)) Source # | |||||
| CanHardFork xs ⇒ LedgerStateSupportsPeras (LedgerState (HardForkBlock xs)) Source # | |||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Basics Methods getPoolDistr ∷ LedgerState (HardForkBlock xs) EmptyMK → PoolDistr Source # getPerasParams ∷ proxy blk → LedgerState (HardForkBlock xs) EmptyMK → PerasParams blk Source # | |||||
| LedgerStateSupportsPeras (LedgerState (DualBlock m a)) Source # | |||||
Defined in Ouroboros.Consensus.Ledger.Dual Methods getPoolDistr ∷ LedgerState (DualBlock m a) EmptyMK → PoolDistr Source # getPerasParams ∷ proxy blk → LedgerState (DualBlock m a) EmptyMK → PerasParams blk Source # | |||||
| LedgerStateSupportsPeras (LedgerState BlockA) Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.A Methods getPoolDistr ∷ LedgerState BlockA EmptyMK → PoolDistr Source # getPerasParams ∷ proxy blk → LedgerState BlockA EmptyMK → PerasParams blk Source # | |||||
| LedgerStateSupportsPeras (LedgerState BlockB) Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.B Methods getPoolDistr ∷ LedgerState BlockB EmptyMK → PoolDistr Source # getPerasParams ∷ proxy blk → LedgerState BlockB EmptyMK → PerasParams blk Source # | |||||
| LedgerStateSupportsPeras (LedgerState LeiosTestBlock) Source # | |||||
Defined in Test.Consensus.Leios.TestBlock Methods getPoolDistr ∷ LedgerState LeiosTestBlock EmptyMK → PoolDistr Source # getPerasParams ∷ proxy blk → LedgerState LeiosTestBlock EmptyMK → PerasParams blk Source # | |||||
| LedgerStateSupportsPeras (LedgerState TestBlock) # | |||||
Defined in Test.Ouroboros.Storage.TestBlock Methods getPoolDistr ∷ LedgerState TestBlock EmptyMK → PoolDistr Source # getPerasParams ∷ proxy blk → LedgerState TestBlock EmptyMK → PerasParams blk Source # | |||||
| LedgerStateSupportsPeras (LedgerState (TestBlockWith ptype)) # | |||||
Defined in Test.Util.TestBlock Methods getPoolDistr ∷ LedgerState (TestBlockWith ptype) EmptyMK → PoolDistr Source # getPerasParams ∷ proxy blk → LedgerState (TestBlockWith ptype) EmptyMK → PerasParams blk Source # | |||||
| All (Compose CanStowLedgerTables LedgerState) xs ⇒ CanStowLedgerTables (LedgerState (HardForkBlock xs)) Source # | |||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Ledger Methods stowLedgerTables ∷ LedgerState (HardForkBlock xs) ValuesMK → LedgerState (HardForkBlock xs) EmptyMK Source # unstowLedgerTables ∷ LedgerState (HardForkBlock xs) EmptyMK → LedgerState (HardForkBlock xs) ValuesMK Source # | |||||
| CanStowLedgerTables (LedgerState m) ⇒ CanStowLedgerTables (LedgerState (DualBlock m a)) Source # | |||||
Defined in Ouroboros.Consensus.Ledger.Dual Methods stowLedgerTables ∷ LedgerState (DualBlock m a) ValuesMK → LedgerState (DualBlock m a) EmptyMK Source # unstowLedgerTables ∷ LedgerState (DualBlock m a) EmptyMK → LedgerState (DualBlock m a) ValuesMK Source # | |||||
| CanStowLedgerTables (LedgerState BlockA) Source # | |||||
| CanStowLedgerTables (LedgerState BlockB) Source # | |||||
| CanStowLedgerTables (LedgerState LeiosTestBlock) Source # | |||||
| CanStowLedgerTables (LedgerState TestBlock) # | |||||
Defined in Test.Ouroboros.Storage.TestBlock Methods stowLedgerTables ∷ LedgerState TestBlock ValuesMK → LedgerState TestBlock EmptyMK Source # unstowLedgerTables ∷ LedgerState TestBlock EmptyMK → LedgerState TestBlock ValuesMK Source # | |||||
| CanStowLedgerTables (LedgerState TestBlock) # | |||||
Defined in Test.Util.TestBlock Methods stowLedgerTables ∷ LedgerState TestBlock ValuesMK → LedgerState TestBlock EmptyMK Source # unstowLedgerTables ∷ LedgerState TestBlock EmptyMK → LedgerState TestBlock ValuesMK Source # | |||||
| SerialiseHFC xs ⇒ DecodeDisk (HardForkBlock xs) (LedgerState (HardForkBlock xs) EmptyMK) Source # | |||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Serialisation.SerialiseDisk Methods decodeDisk ∷ CodecConfig (HardForkBlock xs) → ∀ s. Decoder s (LedgerState (HardForkBlock xs) EmptyMK) Source # | |||||
| PayloadSemantics ptype ⇒ DecodeDisk (TestBlockWith ptype) (LedgerState (TestBlockWith ptype) EmptyMK) # | |||||
Defined in Test.Util.TestBlock Methods decodeDisk ∷ CodecConfig (TestBlockWith ptype) → ∀ s. Decoder s (LedgerState (TestBlockWith ptype) EmptyMK) Source # | |||||
| SerialiseHFC xs ⇒ EncodeDisk (HardForkBlock xs) (LedgerState (HardForkBlock xs) EmptyMK) Source # | |||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Serialisation.SerialiseDisk Methods encodeDisk ∷ CodecConfig (HardForkBlock xs) → LedgerState (HardForkBlock xs) EmptyMK → Encoding Source # | |||||
| PayloadSemantics ptype ⇒ EncodeDisk (TestBlockWith ptype) (LedgerState (TestBlockWith ptype) EmptyMK) # | |||||
Defined in Test.Util.TestBlock Methods encodeDisk ∷ CodecConfig (TestBlockWith ptype) → LedgerState (TestBlockWith ptype) EmptyMK → Encoding Source # | |||||
| (IsNonEmpty xs, SListI xs, All (Compose Arbitrary (Flip LedgerState mk)) xs) ⇒ Arbitrary (LedgerState (HardForkBlock xs) mk) # | |||||
Defined in Test.Util.Orphans.Arbitrary Methods arbitrary ∷ Gen (LedgerState (HardForkBlock xs) mk) Source # shrink ∷ LedgerState (HardForkBlock xs) mk → [LedgerState (HardForkBlock xs) mk] Source # | |||||
| (EqMK mk, CanHardFork xs) ⇒ Eq (LedgerState (HardForkBlock xs) mk) Source # | |||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Basics Methods (==) ∷ LedgerState (HardForkBlock xs) mk → LedgerState (HardForkBlock xs) mk → Bool # (/=) ∷ LedgerState (HardForkBlock xs) mk → LedgerState (HardForkBlock xs) mk → Bool # | |||||
| (Bridge m a, EqMK mk) ⇒ Eq (LedgerState (DualBlock m a) mk) Source # | |||||
Defined in Ouroboros.Consensus.Ledger.Dual Methods (==) ∷ LedgerState (DualBlock m a) mk → LedgerState (DualBlock m a) mk → Bool # (/=) ∷ LedgerState (DualBlock m a) mk → LedgerState (DualBlock m a) mk → Bool # | |||||
| Eq (LedgerState BlockA mk) Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.A Methods (==) ∷ LedgerState BlockA mk → LedgerState BlockA mk → Bool # (/=) ∷ LedgerState BlockA mk → LedgerState BlockA mk → Bool # | |||||
| Eq (LedgerState BlockB mk) Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.B Methods (==) ∷ LedgerState BlockB mk → LedgerState BlockB mk → Bool # (/=) ∷ LedgerState BlockB mk → LedgerState BlockB mk → Bool # | |||||
| Eq (LedgerState LeiosTestBlock mk) Source # | |||||
Defined in Test.Consensus.Leios.TestBlock Methods (==) ∷ LedgerState LeiosTestBlock mk → LedgerState LeiosTestBlock mk → Bool # (/=) ∷ LedgerState LeiosTestBlock mk → LedgerState LeiosTestBlock mk → Bool # | |||||
| Eq (LedgerState TestBlock mk) # | |||||
Defined in Test.Ouroboros.Storage.TestBlock Methods (==) ∷ LedgerState TestBlock mk → LedgerState TestBlock mk → Bool # (/=) ∷ LedgerState TestBlock mk → LedgerState TestBlock mk → Bool # | |||||
| Eq (PayloadDependentState ptype mk) ⇒ Eq (LedgerState (TestBlockWith ptype) mk) # | |||||
Defined in Test.Util.TestBlock Methods (==) ∷ LedgerState (TestBlockWith ptype) mk → LedgerState (TestBlockWith ptype) mk → Bool # (/=) ∷ LedgerState (TestBlockWith ptype) mk → LedgerState (TestBlockWith ptype) mk → Bool # | |||||
| Generic (LedgerState BlockA mk) Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.A Associated Types
Methods from ∷ LedgerState BlockA mk → Rep (LedgerState BlockA mk) x # to ∷ Rep (LedgerState BlockA mk) x → LedgerState BlockA mk # | |||||
| Generic (LedgerState BlockB mk) Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.B Associated Types
Methods from ∷ LedgerState BlockB mk → Rep (LedgerState BlockB mk) x # to ∷ Rep (LedgerState BlockB mk) x → LedgerState BlockB mk # | |||||
| Generic (LedgerState LeiosTestBlock mk) Source # | |||||
Defined in Test.Consensus.Leios.TestBlock Associated Types
Methods from ∷ LedgerState LeiosTestBlock mk → Rep (LedgerState LeiosTestBlock mk) x # to ∷ Rep (LedgerState LeiosTestBlock mk) x → LedgerState LeiosTestBlock mk # | |||||
| Generic (LedgerState TestBlock mk) # | |||||
Defined in Test.Ouroboros.Storage.TestBlock Associated Types
Methods from ∷ LedgerState TestBlock mk → Rep (LedgerState TestBlock mk) x # to ∷ Rep (LedgerState TestBlock mk) x → LedgerState TestBlock mk # | |||||
| Generic (LedgerState (OTBlock k v) mk) # | |||||
Defined in Test.Util.LedgerStateOnlyTables Associated Types
Methods from ∷ LedgerState (OTBlock k v) mk → Rep (LedgerState (OTBlock k v) mk) x # to ∷ Rep (LedgerState (OTBlock k v) mk) x → LedgerState (OTBlock k v) mk # | |||||
| Generic (LedgerState (TestBlockWith ptype) mk) # | |||||
Defined in Test.Util.TestBlock Associated Types
Methods from ∷ LedgerState (TestBlockWith ptype) mk → Rep (LedgerState (TestBlockWith ptype) mk) x # to ∷ Rep (LedgerState (TestBlockWith ptype) mk) x → LedgerState (TestBlockWith ptype) mk # | |||||
| (ShowMK mk, CanHardFork xs) ⇒ Show (LedgerState (HardForkBlock xs) mk) Source # | |||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Basics Methods showsPrec ∷ Int → LedgerState (HardForkBlock xs) mk → ShowS # show ∷ LedgerState (HardForkBlock xs) mk → String # showList ∷ [LedgerState (HardForkBlock xs) mk] → ShowS # | |||||
| (Bridge m a, ShowMK mk) ⇒ Show (LedgerState (DualBlock m a) mk) Source # | |||||
Defined in Ouroboros.Consensus.Ledger.Dual | |||||
| Show (LedgerState BlockA mk) Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.A | |||||
| Show (LedgerState BlockB mk) Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.B | |||||
| Show (LedgerState LeiosTestBlock mk) Source # | |||||
Defined in Test.Consensus.Leios.TestBlock Methods showsPrec ∷ Int → LedgerState LeiosTestBlock mk → ShowS # show ∷ LedgerState LeiosTestBlock mk → String # showList ∷ [LedgerState LeiosTestBlock mk] → ShowS # | |||||
| Show (LedgerState TestBlock mk) # | |||||
Defined in Test.Ouroboros.Storage.TestBlock Methods showsPrec ∷ Int → LedgerState TestBlock mk → ShowS # show ∷ LedgerState TestBlock mk → String # showList ∷ [LedgerState TestBlock mk] → ShowS # | |||||
| (ShowMK mk, PayloadSemantics ptype) ⇒ Show (LedgerState (TestBlockWith ptype) mk) # | |||||
Defined in Test.Util.TestBlock Methods showsPrec ∷ Int → LedgerState (TestBlockWith ptype) mk → ShowS # show ∷ LedgerState (TestBlockWith ptype) mk → String # showList ∷ [LedgerState (TestBlockWith ptype) mk] → ShowS # | |||||
| (NoThunksMK mk, CanHardFork xs) ⇒ NoThunks (LedgerState (HardForkBlock xs) mk) Source # | |||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Basics Methods noThunks ∷ Context → LedgerState (HardForkBlock xs) mk → IO (Maybe ThunkInfo) Source # wNoThunks ∷ Context → LedgerState (HardForkBlock xs) mk → IO (Maybe ThunkInfo) Source # showTypeOf ∷ Proxy (LedgerState (HardForkBlock xs) mk) → String Source # | |||||
| NoThunks (LedgerState (DualBlock m a) mk) Source # | |||||
| NoThunks (LedgerState BlockA mk) Source # | |||||
| NoThunks (LedgerState BlockB mk) Source # | |||||
| NoThunks (LedgerState LeiosTestBlock mk) Source # | |||||
Defined in Test.Consensus.Leios.TestBlock Methods noThunks ∷ Context → LedgerState LeiosTestBlock mk → IO (Maybe ThunkInfo) Source # wNoThunks ∷ Context → LedgerState LeiosTestBlock mk → IO (Maybe ThunkInfo) Source # showTypeOf ∷ Proxy (LedgerState LeiosTestBlock mk) → String Source # | |||||
| NoThunks (LedgerState TestBlock mk) # | |||||
Defined in Test.Ouroboros.Storage.TestBlock | |||||
| NoThunks (PayloadDependentState ptype mk) ⇒ NoThunks (LedgerState (TestBlockWith ptype) mk) # | |||||
Defined in Test.Util.TestBlock | |||||
| (Ord k, Eq v) ⇒ CanStowLedgerTables (OTLedgerState k v) # | |||||
Defined in Test.Util.LedgerStateOnlyTables Methods stowLedgerTables ∷ OTLedgerState k v ValuesMK → OTLedgerState k v EmptyMK Source # unstowLedgerTables ∷ OTLedgerState k v EmptyMK → OTLedgerState k v ValuesMK Source # | |||||
| Serialise (LedgerState BlockA mk) Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.A Methods encode ∷ LedgerState BlockA mk → Encoding Source # decode ∷ Decoder s (LedgerState BlockA mk) Source # encodeList ∷ [LedgerState BlockA mk] → Encoding Source # decodeList ∷ Decoder s [LedgerState BlockA mk] Source # | |||||
| Serialise (LedgerState BlockB mk) Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.B Methods encode ∷ LedgerState BlockB mk → Encoding Source # decode ∷ Decoder s (LedgerState BlockB mk) Source # encodeList ∷ [LedgerState BlockB mk] → Encoding Source # decodeList ∷ Decoder s [LedgerState BlockB mk] Source # | |||||
| Serialise (LedgerState LeiosTestBlock mk) Source # | |||||
Defined in Test.Consensus.Leios.TestBlock Methods encode ∷ LedgerState LeiosTestBlock mk → Encoding Source # decode ∷ Decoder s (LedgerState LeiosTestBlock mk) Source # encodeList ∷ [LedgerState LeiosTestBlock mk] → Encoding Source # decodeList ∷ Decoder s [LedgerState LeiosTestBlock mk] Source # | |||||
| Serialise (LedgerState TestBlock mk) # | |||||
Defined in Test.Ouroboros.Storage.TestBlock Methods encode ∷ LedgerState TestBlock mk → Encoding Source # decode ∷ Decoder s (LedgerState TestBlock mk) Source # encodeList ∷ [LedgerState TestBlock mk] → Encoding Source # decodeList ∷ Decoder s [LedgerState TestBlock mk] Source # | |||||
| PayloadSemantics ptype ⇒ Serialise (LedgerState (TestBlockWith ptype) EmptyMK) # | |||||
Defined in Test.Util.TestBlock Methods encode ∷ LedgerState (TestBlockWith ptype) EmptyMK → Encoding Source # decode ∷ Decoder s (LedgerState (TestBlockWith ptype) EmptyMK) Source # encodeList ∷ [LedgerState (TestBlockWith ptype) EmptyMK] → Encoding Source # decodeList ∷ Decoder s [LedgerState (TestBlockWith ptype) EmptyMK] Source # | |||||
| ToExpr (LedgerState TestBlock EmptyMK) # | |||||
Defined in Test.Ouroboros.Storage.TestBlock Methods toExpr ∷ LedgerState TestBlock EmptyMK → Expr Source # listToExpr ∷ [LedgerState TestBlock EmptyMK] → Expr Source # | |||||
| HasLedgerTables (Ticked LedgerState) BlockA Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.A Methods projectLedgerTables ∷ ∀ (mk ∷ MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) ⇒ Ticked LedgerState BlockA mk → LedgerTables BlockA mk Source # withLedgerTables ∷ ∀ (mk ∷ MapKind) (any ∷ MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) ⇒ Ticked LedgerState BlockA any → LedgerTables BlockA mk → Ticked LedgerState BlockA mk Source # | |||||
| HasLedgerTables (Ticked LedgerState) BlockB Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.B Methods projectLedgerTables ∷ ∀ (mk ∷ MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) ⇒ Ticked LedgerState BlockB mk → LedgerTables BlockB mk Source # withLedgerTables ∷ ∀ (mk ∷ MapKind) (any ∷ MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) ⇒ Ticked LedgerState BlockB any → LedgerTables BlockB mk → Ticked LedgerState BlockB mk Source # | |||||
| HasLedgerTables (Ticked LedgerState) LeiosTestBlock Source # | |||||
Defined in Test.Consensus.Leios.TestBlock Methods projectLedgerTables ∷ ∀ (mk ∷ MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) ⇒ Ticked LedgerState LeiosTestBlock mk → LedgerTables LeiosTestBlock mk Source # withLedgerTables ∷ ∀ (mk ∷ MapKind) (any ∷ MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) ⇒ Ticked LedgerState LeiosTestBlock any → LedgerTables LeiosTestBlock mk → Ticked LedgerState LeiosTestBlock mk Source # | |||||
| HasLedgerTables (Ticked LedgerState) TestBlock # | |||||
Defined in Test.Ouroboros.Storage.TestBlock Methods projectLedgerTables ∷ ∀ (mk ∷ MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) ⇒ Ticked LedgerState TestBlock mk → LedgerTables TestBlock mk Source # withLedgerTables ∷ ∀ (mk ∷ MapKind) (any ∷ MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) ⇒ Ticked LedgerState TestBlock any → LedgerTables TestBlock mk → Ticked LedgerState TestBlock mk Source # | |||||
| HasLedgerTables (Ticked LedgerState) TestBlock # | |||||
Defined in Test.Util.TestBlock Methods projectLedgerTables ∷ ∀ (mk ∷ MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) ⇒ Ticked LedgerState TestBlock mk → LedgerTables TestBlock mk Source # withLedgerTables ∷ ∀ (mk ∷ MapKind) (any ∷ MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) ⇒ Ticked LedgerState TestBlock any → LedgerTables TestBlock mk → Ticked LedgerState TestBlock mk Source # | |||||
| LedgerTablesAreTrivial (Ticked LedgerState) BlockA Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.A Methods convertMapKind ∷ ∀ (mk ∷ MapKind) (mk' ∷ MapKind). Ticked LedgerState BlockA mk → Ticked LedgerState BlockA mk' Source # | |||||
| LedgerTablesAreTrivial (Ticked LedgerState) BlockB Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.B Methods convertMapKind ∷ ∀ (mk ∷ MapKind) (mk' ∷ MapKind). Ticked LedgerState BlockB mk → Ticked LedgerState BlockB mk' Source # | |||||
| LedgerTablesAreTrivial (Ticked LedgerState) LeiosTestBlock Source # | |||||
Defined in Test.Consensus.Leios.TestBlock Methods convertMapKind ∷ ∀ (mk ∷ MapKind) (mk' ∷ MapKind). Ticked LedgerState LeiosTestBlock mk → Ticked LedgerState LeiosTestBlock mk' Source # | |||||
| LedgerTablesAreTrivial (Ticked LedgerState) TestBlock # | |||||
Defined in Test.Ouroboros.Storage.TestBlock Methods convertMapKind ∷ ∀ (mk ∷ MapKind) (mk' ∷ MapKind). Ticked LedgerState TestBlock mk → Ticked LedgerState TestBlock mk' Source # | |||||
| LedgerTablesAreTrivial (Ticked LedgerState) TestBlock # | |||||
Defined in Test.Util.TestBlock Methods convertMapKind ∷ ∀ (mk ∷ MapKind) (mk' ∷ MapKind). Ticked LedgerState TestBlock mk → Ticked LedgerState TestBlock mk' Source # | |||||
| (CanHardFork xs, HasCanonicalTxIn xs, HasHardForkTxOut xs) ⇒ HasLedgerTables (Ticked LedgerState) (HardForkBlock xs) Source # | |||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Ledger Methods projectLedgerTables ∷ ∀ (mk ∷ MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) ⇒ Ticked LedgerState (HardForkBlock xs) mk → LedgerTables (HardForkBlock xs) mk Source # withLedgerTables ∷ ∀ (mk ∷ MapKind) (any ∷ MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) ⇒ Ticked LedgerState (HardForkBlock xs) any → LedgerTables (HardForkBlock xs) mk → Ticked LedgerState (HardForkBlock xs) mk Source # | |||||
| StandardHash blk ⇒ StandardHash (LedgerState blk ∷ MapKind → Type) Source # | |||||
Defined in Ouroboros.Consensus.Ledger.Basics | |||||
| IndexedMemPack (Ticked LedgerState) (HardForkBlock '[BlockA, BlockB]) (DefaultHardForkTxOut '[BlockA, BlockB]) Source # | |||||
Defined in Test.Consensus.HardFork.Combinator Methods indexedPackedByteCount ∷ Ticked LedgerState (HardForkBlock '[BlockA, BlockB]) EmptyMK → DefaultHardForkTxOut '[BlockA, BlockB] → Int Source # indexedPackM ∷ Ticked LedgerState (HardForkBlock '[BlockA, BlockB]) EmptyMK → DefaultHardForkTxOut '[BlockA, BlockB] → Pack s () Source # indexedUnpackM ∷ Buffer b ⇒ ∀ s. Ticked LedgerState (HardForkBlock '[BlockA, BlockB]) EmptyMK → Unpack s b (DefaultHardForkTxOut '[BlockA, BlockB]) Source # indexedTypeName ∷ Proxy (DefaultHardForkTxOut '[BlockA, BlockB]) → Ticked LedgerState (HardForkBlock '[BlockA, BlockB]) EmptyMK → String Source # | |||||
| (Bridge m a, HasLedgerTables (Ticked LedgerState) m) ⇒ HasLedgerTables (Ticked LedgerState) (DualBlock m a) Source # | |||||
Defined in Ouroboros.Consensus.Ledger.Dual Methods projectLedgerTables ∷ ∀ (mk ∷ MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) ⇒ Ticked LedgerState (DualBlock m a) mk → LedgerTables (DualBlock m a) mk Source # withLedgerTables ∷ ∀ (mk ∷ MapKind) (any ∷ MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) ⇒ Ticked LedgerState (DualBlock m a) any → LedgerTables (DualBlock m a) mk → Ticked LedgerState (DualBlock m a) mk Source # | |||||
| (Ord k, Eq v, Eq (mk k v)) ⇒ Eq (OTLedgerState k v mk) # | |||||
| (Show k, Show v, Show (mk k v)) ⇒ Show (OTLedgerState k v mk) # | |||||
| (NoThunks k, NoThunks v, NoThunks (mk k v)) ⇒ NoThunks (OTLedgerState k v mk) # | |||||
| CanHardFork xs ⇒ GetTip (Ticked LedgerState (HardForkBlock xs)) Source # | |||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Ledger Methods getTip ∷ ∀ (mk ∷ MapKind). Ticked LedgerState (HardForkBlock xs) mk → Point (Ticked LedgerState (HardForkBlock xs)) Source # | |||||
| Bridge m a ⇒ GetTip (Ticked LedgerState (DualBlock m a)) Source # | |||||
Defined in Ouroboros.Consensus.Ledger.Dual | |||||
| GetTip (Ticked LedgerState BlockA) Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.A | |||||
| GetTip (Ticked LedgerState BlockB) Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.B | |||||
| GetTip (Ticked LedgerState LeiosTestBlock) Source # | |||||
Defined in Test.Consensus.Leios.TestBlock Methods getTip ∷ ∀ (mk ∷ MapKind). Ticked LedgerState LeiosTestBlock mk → Point (Ticked LedgerState LeiosTestBlock) Source # | |||||
| GetTip (Ticked LedgerState TestBlock) # | |||||
Defined in Test.Ouroboros.Storage.TestBlock Methods getTip ∷ ∀ (mk ∷ MapKind). Ticked LedgerState TestBlock mk → Point (Ticked LedgerState TestBlock) Source # | |||||
| GetTip (Ticked LedgerState (TestBlockWith ptype)) # | |||||
Defined in Test.Util.TestBlock Methods getTip ∷ ∀ (mk ∷ MapKind). Ticked LedgerState (TestBlockWith ptype) mk → Point (Ticked LedgerState (TestBlockWith ptype)) Source # | |||||
| CanHardFork xs ⇒ LedgerStateSupportsPeras (Ticked LedgerState (HardForkBlock xs)) Source # |
| ||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Ledger Methods getPoolDistr ∷ Ticked LedgerState (HardForkBlock xs) EmptyMK → PoolDistr Source # getPerasParams ∷ proxy blk → Ticked LedgerState (HardForkBlock xs) EmptyMK → PerasParams blk Source # | |||||
| LedgerStateSupportsPeras (Ticked LedgerState (DualBlock m a)) Source # | |||||
Defined in Ouroboros.Consensus.Ledger.Dual Methods getPoolDistr ∷ Ticked LedgerState (DualBlock m a) EmptyMK → PoolDistr Source # getPerasParams ∷ proxy blk → Ticked LedgerState (DualBlock m a) EmptyMK → PerasParams blk Source # | |||||
| LedgerStateSupportsPeras (Ticked LedgerState BlockA) Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.A Methods getPoolDistr ∷ Ticked LedgerState BlockA EmptyMK → PoolDistr Source # getPerasParams ∷ proxy blk → Ticked LedgerState BlockA EmptyMK → PerasParams blk Source # | |||||
| LedgerStateSupportsPeras (Ticked LedgerState BlockB) Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.B Methods getPoolDistr ∷ Ticked LedgerState BlockB EmptyMK → PoolDistr Source # getPerasParams ∷ proxy blk → Ticked LedgerState BlockB EmptyMK → PerasParams blk Source # | |||||
| LedgerStateSupportsPeras (Ticked LedgerState LeiosTestBlock) Source # | |||||
Defined in Test.Consensus.Leios.TestBlock Methods getPoolDistr ∷ Ticked LedgerState LeiosTestBlock EmptyMK → PoolDistr Source # getPerasParams ∷ proxy blk → Ticked LedgerState LeiosTestBlock EmptyMK → PerasParams blk Source # | |||||
| LedgerStateSupportsPeras (Ticked LedgerState TestBlock) # | |||||
Defined in Test.Ouroboros.Storage.TestBlock Methods getPoolDistr ∷ Ticked LedgerState TestBlock EmptyMK → PoolDistr Source # getPerasParams ∷ proxy blk → Ticked LedgerState TestBlock EmptyMK → PerasParams blk Source # | |||||
| LedgerStateSupportsPeras (Ticked LedgerState (TestBlockWith ptype)) # | |||||
Defined in Test.Util.TestBlock Methods getPoolDistr ∷ Ticked LedgerState (TestBlockWith ptype) EmptyMK → PoolDistr Source # getPerasParams ∷ proxy blk → Ticked LedgerState (TestBlockWith ptype) EmptyMK → PerasParams blk Source # | |||||
| Eq (Ticked LedgerState BlockA mk) Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.A Methods (==) ∷ Ticked LedgerState BlockA mk → Ticked LedgerState BlockA mk → Bool # (/=) ∷ Ticked LedgerState BlockA mk → Ticked LedgerState BlockA mk → Bool # | |||||
| Generic (Ticked LedgerState BlockA mk) Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.A Associated Types
Methods from ∷ Ticked LedgerState BlockA mk → Rep (Ticked LedgerState BlockA mk) x # to ∷ Rep (Ticked LedgerState BlockA mk) x → Ticked LedgerState BlockA mk # | |||||
| Generic (Ticked LedgerState LeiosTestBlock mk) Source # | |||||
Defined in Test.Consensus.Leios.TestBlock Associated Types
Methods from ∷ Ticked LedgerState LeiosTestBlock mk → Rep (Ticked LedgerState LeiosTestBlock mk) x # to ∷ Rep (Ticked LedgerState LeiosTestBlock mk) x → Ticked LedgerState LeiosTestBlock mk # | |||||
| Generic (Ticked LedgerState (TestBlockWith ptype) mk) # | |||||
Defined in Test.Util.TestBlock Associated Types
Methods from ∷ Ticked LedgerState (TestBlockWith ptype) mk → Rep (Ticked LedgerState (TestBlockWith ptype) mk) x # to ∷ Rep (Ticked LedgerState (TestBlockWith ptype) mk) x → Ticked LedgerState (TestBlockWith ptype) mk # | |||||
| Show (Ticked LedgerState BlockA mk) Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.A | |||||
| NoThunks (Ticked LedgerState (DualBlock m a) mk) Source # | |||||
Defined in Ouroboros.Consensus.Ledger.Dual | |||||
| NoThunks (Ticked LedgerState BlockA mk) Source # | |||||
| NoThunks (Ticked LedgerState BlockB mk) Source # | |||||
| NoThunks (Ticked LedgerState LeiosTestBlock mk) Source # | |||||
Defined in Test.Consensus.Leios.TestBlock Methods noThunks ∷ Context → Ticked LedgerState LeiosTestBlock mk → IO (Maybe ThunkInfo) Source # wNoThunks ∷ Context → Ticked LedgerState LeiosTestBlock mk → IO (Maybe ThunkInfo) Source # showTypeOf ∷ Proxy (Ticked LedgerState LeiosTestBlock mk) → String Source # | |||||
| (NoThunksMK mk, NoThunks (PayloadDependentState ptype mk)) ⇒ NoThunks (Ticked LedgerState (TestBlockWith ptype) mk) # | |||||
Defined in Test.Util.TestBlock | |||||
| Inject (Flip LedgerState mk) Source # | |||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Embed.Nary Methods inject ∷ ∀ x (xs ∷ [Type]). (CanHardFork xs, HasCanonicalTxIn xs, HasHardForkTxOut xs) ⇒ InjectionIndex xs x → Flip LedgerState mk x → Flip LedgerState mk (HardForkBlock xs) Source # | |||||
| Isomorphic (Flip LedgerState mk) Source # | |||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Embed.Unary Methods project ∷ NoHardForks blk ⇒ Flip LedgerState mk (HardForkBlock '[blk]) → Flip LedgerState mk blk Source # inject ∷ NoHardForks blk ⇒ Flip LedgerState mk blk → Flip LedgerState mk (HardForkBlock '[blk]) Source # | |||||
| data LedgerState BlockA mk Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.A | |||||
| data LedgerState BlockB mk Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.B | |||||
| newtype LedgerState LeiosTestBlock mk Source # | |||||
Defined in Test.Consensus.Leios.TestBlock | |||||
| data LedgerState TestBlock mk # | |||||
Defined in Test.Ouroboros.Storage.TestBlock data LedgerState TestBlock mk = TestLedger {
| |||||
| type LedgerCfg LedgerState BlockA Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.A | |||||
| type LedgerCfg LedgerState BlockB Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.B | |||||
| type LedgerCfg LedgerState LeiosTestBlock Source # | |||||
Defined in Test.Consensus.Leios.TestBlock | |||||
| type LedgerCfg LedgerState TestBlock # | |||||
Defined in Test.Ouroboros.Storage.TestBlock | |||||
| type LedgerErr LedgerState BlockA Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.A | |||||
| type LedgerErr LedgerState BlockB Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.B | |||||
| type LedgerErr LedgerState LeiosTestBlock Source # | |||||
Defined in Test.Consensus.Leios.TestBlock | |||||
| type LedgerErr LedgerState TestBlock # | |||||
Defined in Test.Ouroboros.Storage.TestBlock | |||||
| type LedgerCfg LedgerState (HardForkBlock xs) Source # | |||||
| type LedgerCfg LedgerState (TestBlockWith ptype) # | |||||
Defined in Test.Util.TestBlock | |||||
| type LedgerErr LedgerState (HardForkBlock xs) Source # | |||||
| type LedgerErr LedgerState (TestBlockWith ptype) # | |||||
Defined in Test.Util.TestBlock | |||||
| type LedgerCfg LedgerState (DualBlock m a) Source # | |||||
Defined in Ouroboros.Consensus.Ledger.Dual | |||||
| type LedgerErr LedgerState (DualBlock m a) Source # | |||||
Defined in Ouroboros.Consensus.Ledger.Dual | |||||
| newtype LedgerState (HardForkBlock xs) mk Source # | |||||
| data LedgerState (TestBlockWith ptype) mk # | |||||
Defined in Test.Util.TestBlock data LedgerState (TestBlockWith ptype) mk = TestLedger {
| |||||
| type Rep (LedgerState BlockA mk) Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.A type Rep (LedgerState BlockA mk) = D1 ('MetaData "LedgerState" "Test.Consensus.HardFork.Combinator.A" "ouroboros-consensus-5.0.0.0-inplace-consensus-diffusion-test" 'False) (C1 ('MetaCons "LgrA" 'PrefixI 'True) (S1 ('MetaSel ('Just "lgrA_tip") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Point BlockA)) :*: S1 ('MetaSel ('Just "lgrA_transition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe SlotNo)))) | |||||
| type Rep (LedgerState BlockB mk) Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.B type Rep (LedgerState BlockB mk) = D1 ('MetaData "LedgerState" "Test.Consensus.HardFork.Combinator.B" "ouroboros-consensus-5.0.0.0-inplace-consensus-diffusion-test" 'False) (C1 ('MetaCons "LgrB" 'PrefixI 'True) (S1 ('MetaSel ('Just "lgrB_tip") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Point BlockB)))) | |||||
| type Rep (LedgerState LeiosTestBlock mk) Source # | |||||
Defined in Test.Consensus.Leios.TestBlock type Rep (LedgerState LeiosTestBlock mk) = D1 ('MetaData "LedgerState" "Test.Consensus.Leios.TestBlock" "ouroboros-consensus-5.0.0.0-inplace-consensus-diffusion-test" 'True) (C1 ('MetaCons "LeiosTestLedger" 'PrefixI 'True) (S1 ('MetaSel ('Just "ltlsTip") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Point LeiosTestBlock)))) | |||||
| type Rep (LedgerState TestBlock mk) # | |||||
Defined in Test.Ouroboros.Storage.TestBlock type Rep (LedgerState TestBlock mk) = D1 ('MetaData "LedgerState" "Test.Ouroboros.Storage.TestBlock" "ouroboros-consensus-5.0.0.0-inplace-unstable-consensus-testlib" 'False) (C1 ('MetaCons "TestLedger" 'PrefixI 'True) (S1 ('MetaSel ('Just "lastAppliedPoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Point TestBlock)) :*: (S1 ('MetaSel ('Just "lastAppliedHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (ChainHash TestBlock)) :*: S1 ('MetaSel ('Just "latestPerasCertRound") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe PerasRoundNo))))) | |||||
| type Rep (LedgerState (OTBlock k v) mk) # | |||||
Defined in Test.Util.LedgerStateOnlyTables type Rep (LedgerState (OTBlock k v) mk) = D1 ('MetaData "LedgerState" "Test.Util.LedgerStateOnlyTables" "ouroboros-consensus-5.0.0.0-inplace-unstable-consensus-testlib" 'False) (C1 ('MetaCons "OTLedgerState" 'PrefixI 'True) (S1 ('MetaSel ('Just "otlsLedgerState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ValuesMK k v)) :*: S1 ('MetaSel ('Just "otlsLedgerTables") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (OTLedgerTables k v mk)))) | |||||
| type Rep (LedgerState (TestBlockWith ptype) mk) # | |||||
Defined in Test.Util.TestBlock type Rep (LedgerState (TestBlockWith ptype) mk) = D1 ('MetaData "LedgerState" "Test.Util.TestBlock" "ouroboros-consensus-5.0.0.0-inplace-unstable-consensus-testlib" 'False) (C1 ('MetaCons "TestLedger" 'PrefixI 'True) (S1 ('MetaSel ('Just "lastAppliedPoint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Point (TestBlockWith ptype))) :*: S1 ('MetaSel ('Just "payloadDependentState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (PayloadDependentState ptype mk)))) | |||||
| data LedgerState (DualBlock m a) mk Source # | |||||
Defined in Ouroboros.Consensus.Ledger.Dual | |||||
| data LedgerState (OTBlock k v) mk # | |||||
Defined in Test.Util.LedgerStateOnlyTables data LedgerState (OTBlock k v) mk = OTLedgerState {
| |||||
| newtype Ticked LedgerState BlockA (mk ∷ MapKind) Source # | Ticking has no state on the A ledger state | ||||
Defined in Test.Consensus.HardFork.Combinator.A | |||||
| newtype Ticked LedgerState BlockB (mk ∷ MapKind) Source # | Ticking has no state on the B ledger state | ||||
Defined in Test.Consensus.HardFork.Combinator.B | |||||
| newtype Ticked LedgerState LeiosTestBlock (mk ∷ MapKind) Source # | |||||
Defined in Test.Consensus.Leios.TestBlock | |||||
| newtype Ticked LedgerState TestBlock (mk ∷ MapKind) # | |||||
Defined in Test.Ouroboros.Storage.TestBlock newtype Ticked LedgerState TestBlock (mk ∷ MapKind) = TickedTestLedger {
| |||||
| data Ticked LedgerState (HardForkBlock xs ∷ Type) (mk ∷ MapKind) Source # | |||||
| newtype Ticked LedgerState (TestBlockWith ptype ∷ Type) (mk ∷ MapKind) # | |||||
Defined in Test.Util.TestBlock newtype Ticked LedgerState (TestBlockWith ptype ∷ Type) (mk ∷ MapKind) = TickedTestLedger {
| |||||
| data Ticked LedgerState (DualBlock m a ∷ Type) (mk ∷ MapKind) Source # | |||||
Defined in Ouroboros.Consensus.Ledger.Dual | |||||
| type HeaderHash (LedgerState blk ∷ MapKind → Type) Source # | |||||
Defined in Ouroboros.Consensus.Ledger.Basics | |||||
| type Rep (Ticked LedgerState BlockA mk) Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.A type Rep (Ticked LedgerState BlockA mk) = D1 ('MetaData "Ticked" "Test.Consensus.HardFork.Combinator.A" "ouroboros-consensus-5.0.0.0-inplace-consensus-diffusion-test" 'True) (C1 ('MetaCons "TickedLedgerStateA" 'PrefixI 'True) (S1 ('MetaSel ('Just "getTickedLedgerStateA") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (LedgerState BlockA mk)))) | |||||
| type Rep (Ticked LedgerState LeiosTestBlock mk) Source # | |||||
Defined in Test.Consensus.Leios.TestBlock type Rep (Ticked LedgerState LeiosTestBlock mk) = D1 ('MetaData "Ticked" "Test.Consensus.Leios.TestBlock" "ouroboros-consensus-5.0.0.0-inplace-consensus-diffusion-test" 'True) (C1 ('MetaCons "TickedLeiosTestLedger" 'PrefixI 'True) (S1 ('MetaSel ('Just "getTickedLeiosTestLedger") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (LedgerState LeiosTestBlock mk)))) | |||||
| type Rep (Ticked LedgerState (TestBlockWith ptype) mk) # | |||||
Defined in Test.Util.TestBlock type Rep (Ticked LedgerState (TestBlockWith ptype) mk) = D1 ('MetaData "Ticked" "Test.Util.TestBlock" "ouroboros-consensus-5.0.0.0-inplace-unstable-consensus-testlib" 'True) (C1 ('MetaCons "TickedTestLedger" 'PrefixI 'True) (S1 ('MetaSel ('Just "getTickedTestLedger") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (LedgerState (TestBlockWith ptype) mk)))) | |||||
data LeiosTestBlockError Source #
The block does not fit onto the ledger's tip.
Constructors
| LeiosTestInvalidHash (ChainHash LeiosTestBlock) (ChainHash LeiosTestBlock) |
Instances
| Eq LeiosTestBlockError Source # | |||||
Defined in Test.Consensus.Leios.TestBlock Methods | |||||
| Generic LeiosTestBlockError Source # | |||||
Defined in Test.Consensus.Leios.TestBlock Associated Types
Methods | |||||
| Show LeiosTestBlockError Source # | |||||
Defined in Test.Consensus.Leios.TestBlock Methods showsPrec ∷ Int → LeiosTestBlockError → ShowS # show ∷ LeiosTestBlockError → String # showList ∷ [LeiosTestBlockError] → ShowS # | |||||
| NoThunks LeiosTestBlockError Source # | |||||
Defined in Test.Consensus.Leios.TestBlock | |||||
| type Rep LeiosTestBlockError Source # | |||||
Defined in Test.Consensus.Leios.TestBlock type Rep LeiosTestBlockError = D1 ('MetaData "LeiosTestBlockError" "Test.Consensus.Leios.TestBlock" "ouroboros-consensus-5.0.0.0-inplace-consensus-diffusion-test" 'False) (C1 ('MetaCons "LeiosTestInvalidHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ChainHash LeiosTestBlock)) :*: S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ChainHash LeiosTestBlock)))) | |||||
data LeiosTestLedgerConfig Source #
The forecast range is finite, so a test can reach OutsideForecastRange
on demand.
Constructors
| LeiosTestLedgerConfig | |
Fields
| |
Instances
| Generic LeiosTestLedgerConfig Source # | |||||
Defined in Test.Consensus.Leios.TestBlock Associated Types
Methods from ∷ LeiosTestLedgerConfig → Rep LeiosTestLedgerConfig x # | |||||
| Show LeiosTestLedgerConfig Source # | |||||
Defined in Test.Consensus.Leios.TestBlock Methods showsPrec ∷ Int → LeiosTestLedgerConfig → ShowS # show ∷ LeiosTestLedgerConfig → String # showList ∷ [LeiosTestLedgerConfig] → ShowS # | |||||
| NoThunks LeiosTestLedgerConfig Source # | |||||
Defined in Test.Consensus.Leios.TestBlock | |||||
| Serialise LeiosTestLedgerConfig Source # | |||||
Defined in Test.Consensus.Leios.TestBlock | |||||
| SerialiseNodeToClient LeiosTestBlock LeiosTestLedgerConfig Source # | |||||
Defined in Test.Consensus.Leios.TestBlock | |||||
| type Rep LeiosTestLedgerConfig Source # | |||||
Defined in Test.Consensus.Leios.TestBlock type Rep LeiosTestLedgerConfig = D1 ('MetaData "LeiosTestLedgerConfig" "Test.Consensus.Leios.TestBlock" "ouroboros-consensus-5.0.0.0-inplace-consensus-diffusion-test" 'False) (C1 ('MetaCons "LeiosTestLedgerConfig" 'PrefixI 'True) (S1 ('MetaSel ('Just "ltlcHardForkParams") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 EraParams) :*: (S1 ('MetaSel ('Just "ltlcForecastRange") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SlotNo) :*: S1 ('MetaSel ('Just "ltlcLeios") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 LeiosLedgerView)))) | |||||
Protocol
data LeiosTestInvalidHeader Source #
Constructors
| LeiosTestInvalidHeader |
Instances
| Eq LeiosTestInvalidHeader Source # | |||||
Defined in Test.Consensus.Leios.TestBlock Methods (==) ∷ LeiosTestInvalidHeader → LeiosTestInvalidHeader → Bool # (/=) ∷ LeiosTestInvalidHeader → LeiosTestInvalidHeader → Bool # | |||||
| Generic LeiosTestInvalidHeader Source # | |||||
Defined in Test.Consensus.Leios.TestBlock Associated Types
Methods from ∷ LeiosTestInvalidHeader → Rep LeiosTestInvalidHeader x # to ∷ Rep LeiosTestInvalidHeader x → LeiosTestInvalidHeader # | |||||
| Show LeiosTestInvalidHeader Source # | |||||
Defined in Test.Consensus.Leios.TestBlock Methods showsPrec ∷ Int → LeiosTestInvalidHeader → ShowS # show ∷ LeiosTestInvalidHeader → String # showList ∷ [LeiosTestInvalidHeader] → ShowS # | |||||
| NoThunks LeiosTestInvalidHeader Source # | |||||
Defined in Test.Consensus.Leios.TestBlock | |||||
| type Rep LeiosTestInvalidHeader Source # | |||||
data LeiosTestProtocol Source #
No leader schedule and no header crypto: a header is valid exactly when the test has not marked it invalid.
Instances
| LeiosProtocol LeiosTestProtocol Source # | |||||||||||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods getLeiosAnnouncement ∷ proxy LeiosTestProtocol → ValidateView LeiosTestProtocol → Maybe LeiosAnnouncement Source # validateLeiosAnnouncement ∷ ConsensusConfig LeiosTestProtocol → ValidateView LeiosTestProtocol → SlotNo → Ticked (ChainDepState LeiosTestProtocol) → Except (ValidationErr LeiosTestProtocol) OCINStaleness Source # getLeiosLedgerView ∷ proxy LeiosTestProtocol → LedgerView LeiosTestProtocol → Maybe LeiosLedgerView Source # | |||||||||||||||||||||||||||||
| ConsensusProtocol LeiosTestProtocol Source # | |||||||||||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Associated Types
Methods checkIsLeader ∷ ConsensusConfig LeiosTestProtocol → CanBeLeader LeiosTestProtocol → SlotNo → Ticked (ChainDepState LeiosTestProtocol) → Maybe (IsLeader LeiosTestProtocol) Source # tickChainDepState ∷ ConsensusConfig LeiosTestProtocol → LedgerView LeiosTestProtocol → SlotNo → ChainDepState LeiosTestProtocol → Ticked (ChainDepState LeiosTestProtocol) Source # updateChainDepState ∷ ConsensusConfig LeiosTestProtocol → ValidateView LeiosTestProtocol → SlotNo → Ticked (ChainDepState LeiosTestProtocol) → Except (ValidationErr LeiosTestProtocol) (ChainDepState LeiosTestProtocol) Source # reupdateChainDepState ∷ ConsensusConfig LeiosTestProtocol → ValidateView LeiosTestProtocol → SlotNo → Ticked (ChainDepState LeiosTestProtocol) → ChainDepState LeiosTestProtocol Source # protocolSecurityParam ∷ ConsensusConfig LeiosTestProtocol → SecurityParam Source # | |||||||||||||||||||||||||||||
| Generic (ConsensusConfig LeiosTestProtocol) Source # | |||||||||||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Associated Types
| |||||||||||||||||||||||||||||
| NoThunks (ConsensusConfig LeiosTestProtocol) Source # | |||||||||||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock Methods noThunks ∷ Context → ConsensusConfig LeiosTestProtocol → IO (Maybe ThunkInfo) Source # wNoThunks ∷ Context → ConsensusConfig LeiosTestProtocol → IO (Maybe ThunkInfo) Source # showTypeOf ∷ Proxy (ConsensusConfig LeiosTestProtocol) → String Source # | |||||||||||||||||||||||||||||
| type CanBeLeader LeiosTestProtocol Source # | |||||||||||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||||||||||
| type ChainDepState LeiosTestProtocol Source # | |||||||||||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||||||||||
| data ConsensusConfig LeiosTestProtocol Source # | |||||||||||||||||||||||||||||
| type IsLeader LeiosTestProtocol Source # | |||||||||||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||||||||||
| type LedgerView LeiosTestProtocol Source # | |||||||||||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||||||||||
| type TiebreakerView LeiosTestProtocol Source # | |||||||||||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||||||||||
| type ValidateView LeiosTestProtocol Source # | |||||||||||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||||||||||
| type ValidationErr LeiosTestProtocol Source # | |||||||||||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock | |||||||||||||||||||||||||||||
| type Rep (ConsensusConfig LeiosTestProtocol) Source # | |||||||||||||||||||||||||||||
Defined in Test.Consensus.Leios.TestBlock type Rep (ConsensusConfig LeiosTestProtocol) = D1 ('MetaData "ConsensusConfig" "Test.Consensus.Leios.TestBlock" "ouroboros-consensus-5.0.0.0-inplace-consensus-diffusion-test" 'False) (C1 ('MetaCons "LeiosTestProtocolConfig" 'PrefixI 'True) (S1 ('MetaSel ('Just "ltpcSecurityParam") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SecurityParam))) | |||||||||||||||||||||||||||||
Node configuration
data family BlockConfig blk Source #
Static configuration required to work with this type of blocks
Instances
| Isomorphic BlockConfig Source # | |||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Embed.Unary Methods project ∷ NoHardForks blk ⇒ BlockConfig (HardForkBlock '[blk]) → BlockConfig blk Source # inject ∷ NoHardForks blk ⇒ BlockConfig blk → BlockConfig (HardForkBlock '[blk]) Source # | |||||
| Generic (BlockConfig BlockA) Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.A Associated Types
Methods from ∷ BlockConfig BlockA → Rep (BlockConfig BlockA) x # to ∷ Rep (BlockConfig BlockA) x → BlockConfig BlockA # | |||||
| Generic (BlockConfig BlockB) Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.B Associated Types
Methods from ∷ BlockConfig BlockB → Rep (BlockConfig BlockB) x # to ∷ Rep (BlockConfig BlockB) x → BlockConfig BlockB # | |||||
| Generic (BlockConfig LeiosTestBlock) Source # | |||||
Defined in Test.Consensus.Leios.TestBlock Associated Types
Methods from ∷ BlockConfig LeiosTestBlock → Rep (BlockConfig LeiosTestBlock) x # to ∷ Rep (BlockConfig LeiosTestBlock) x → BlockConfig LeiosTestBlock # | |||||
| Generic (BlockConfig TestBlock) # | |||||
Defined in Test.Ouroboros.Storage.TestBlock Associated Types
Methods from ∷ BlockConfig TestBlock → Rep (BlockConfig TestBlock) x # to ∷ Rep (BlockConfig TestBlock) x → BlockConfig TestBlock # | |||||
| Generic (BlockConfig (TestBlockWith ptype)) # | |||||
Defined in Test.Util.TestBlock Associated Types
Methods from ∷ BlockConfig (TestBlockWith ptype) → Rep (BlockConfig (TestBlockWith ptype)) x # to ∷ Rep (BlockConfig (TestBlockWith ptype)) x → BlockConfig (TestBlockWith ptype) # | |||||
| Show (BlockConfig LeiosTestBlock) Source # | |||||
Defined in Test.Consensus.Leios.TestBlock Methods showsPrec ∷ Int → BlockConfig LeiosTestBlock → ShowS # show ∷ BlockConfig LeiosTestBlock → String # showList ∷ [BlockConfig LeiosTestBlock] → ShowS # | |||||
| Show (BlockConfig (TestBlockWith ptype)) # | |||||
Defined in Test.Util.TestBlock Methods showsPrec ∷ Int → BlockConfig (TestBlockWith ptype) → ShowS # show ∷ BlockConfig (TestBlockWith ptype) → String # showList ∷ [BlockConfig (TestBlockWith ptype)] → ShowS # | |||||
| CanHardFork xs ⇒ NoThunks (BlockConfig (HardForkBlock xs)) Source # | |||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Basics Methods noThunks ∷ Context → BlockConfig (HardForkBlock xs) → IO (Maybe ThunkInfo) Source # wNoThunks ∷ Context → BlockConfig (HardForkBlock xs) → IO (Maybe ThunkInfo) Source # showTypeOf ∷ Proxy (BlockConfig (HardForkBlock xs)) → String Source # | |||||
| NoThunks (BlockConfig (DualBlock m a)) Source # | |||||
| NoThunks (BlockConfig BlockA) Source # | |||||
| NoThunks (BlockConfig BlockB) Source # | |||||
| NoThunks (BlockConfig LeiosTestBlock) Source # | |||||
Defined in Test.Consensus.Leios.TestBlock Methods noThunks ∷ Context → BlockConfig LeiosTestBlock → IO (Maybe ThunkInfo) Source # wNoThunks ∷ Context → BlockConfig LeiosTestBlock → IO (Maybe ThunkInfo) Source # showTypeOf ∷ Proxy (BlockConfig LeiosTestBlock) → String Source # | |||||
| NoThunks (BlockConfig TestBlock) # | |||||
Defined in Test.Ouroboros.Storage.TestBlock | |||||
| NoThunks (BlockConfig (TestBlockWith ptype)) # | |||||
Defined in Test.Util.TestBlock | |||||
| data BlockConfig BlockA Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.A | |||||
| data BlockConfig BlockB Source # | |||||
Defined in Test.Consensus.HardFork.Combinator.B | |||||
| data BlockConfig LeiosTestBlock Source # | |||||
Defined in Test.Consensus.Leios.TestBlock | |||||
| data BlockConfig TestBlock # | |||||
Defined in Test.Ouroboros.Storage.TestBlock | |||||
| type Rep (BlockConfig BlockA) Source # | |||||
| type Rep (BlockConfig BlockB) Source # | |||||
| type Rep (BlockConfig LeiosTestBlock) Source # | |||||
Defined in Test.Consensus.Leios.TestBlock | |||||
| type Rep (BlockConfig TestBlock) # | |||||
Defined in Test.Ouroboros.Storage.TestBlock type Rep (BlockConfig TestBlock) = D1 ('MetaData "BlockConfig" "Test.Ouroboros.Storage.TestBlock" "ouroboros-consensus-5.0.0.0-inplace-unstable-consensus-testlib" 'False) (C1 ('MetaCons "TestBlockConfig" 'PrefixI 'True) (S1 ('MetaSel ('Just "testBlockEBBsAllowed") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "testBlockNumCoreNodes") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 NumCoreNodes))) | |||||
| type Rep (BlockConfig (TestBlockWith ptype)) # | |||||
Defined in Test.Util.TestBlock type Rep (BlockConfig (TestBlockWith ptype)) = D1 ('MetaData "BlockConfig" "Test.Util.TestBlock" "ouroboros-consensus-5.0.0.0-inplace-unstable-consensus-testlib" 'False) (C1 ('MetaCons "TestBlockConfig" 'PrefixI 'True) (S1 ('MetaSel ('Just "testBlockNumCoreNodes") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 NumCoreNodes))) | |||||
| newtype BlockConfig (DisableDiffusionPipelining blk) Source # | |||||
Defined in Ouroboros.Consensus.Block.SupportsDiffusionPipelining newtype BlockConfig (DisableDiffusionPipelining blk) = DisableDiffusionPipeliningBlockConfig (BlockConfig blk) | |||||
| newtype BlockConfig (SelectViewDiffusionPipelining blk) Source # | |||||
Defined in Ouroboros.Consensus.Block.SupportsDiffusionPipelining newtype BlockConfig (SelectViewDiffusionPipelining blk) = SelectViewDiffusionPipeliningBlockConfig (BlockConfig blk) | |||||
| newtype BlockConfig (HardForkBlock xs) Source # | |||||
| data BlockConfig (TestBlockWith ptype) # | |||||
Defined in Test.Util.TestBlock | |||||
| data BlockConfig (DualBlock m a) Source # | |||||
Defined in Ouroboros.Consensus.Ledger.Dual | |||||