Moduleouroboros-consensus-4.2.1.0
Ouroboros.Consensus.HardFork.Combinator.Ledger.Query
- 5 types
- 1 class
- 6 values
- Packageouroboros-consensus-4.2.1.0
- Exports16
- LicenceApache-2.0
class
class (All (Compose NoThunks WrapTxOut) xs, All (Compose Show WrapTxOut) xs, All (Compose Eq WrapTxOut) xs, All (HasLedgerTables (Ticked LedgerState)) xs, All (HasLedgerTables LedgerState) xs) => BlockSupportsHFLedgerQuery (xs :: [Type]) whereMethods
answerBlockQueryHFLookup :: (All SingleEraBlock xs, Monad m) => Index xs x -> ExtLedgerCfg x -> BlockQuery x 'QFLookupTables result -> ReadOnlyForker' m (HardForkBlock xs) -> m resultanswerBlockQueryHFTraverse :: (All SingleEraBlock xs, Monad m) => Index xs x -> ExtLedgerCfg x -> BlockQuery x 'QFTraverseTables result -> ReadOnlyForker' m (HardForkBlock xs) -> m resultqueryLedgerGetTraversingFilter :: Index xs x -> BlockQuery x 'QFTraverseTables result -> TxOut (HardForkBlock xs) -> Bool
Constructors
Instances4ShowQuery, SameDepIndex, Show, Serialise
ShowQuery QueryAnytimeDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Ledger.QuerySameDepIndex QueryAnytimeDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Ledger.QueryShow (QueryAnytime result)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Ledger.QuerySerialise (Some QueryAnytime)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Ledger.Query
Constructors
GetInterpreter :: QueryHardFork xs (Interpreter xs)GetCurrentEra :: QueryHardFork xs (EraIndex xs)
Instances3SameDepIndex, ShowQuery, Show
SameDepIndex (QueryHardFork xs)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Ledger.QueryAll SingleEraBlock xs => ShowQuery (QueryHardFork xs)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Ledger.QueryShow (QueryHardFork xs result)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Ledger.Query
Constructors
QZ :: BlockQuery x footprint result -> QueryIfCurrent (x ': xs1) footprint resultQS :: QueryIfCurrent xs1 footprint result -> QueryIfCurrent (x ': xs1) footprint result
Instances3SameDepIndex2, ShowQuery, Show
All SingleEraBlock xs => SameDepIndex2 (QueryIfCurrent xs)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Ledger.QueryAll SingleEraBlock xs => ShowQuery (QueryIfCurrent xs footprint)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Ledger.QueryAll SingleEraBlock xs => Show (QueryIfCurrent xs footprint result)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Ledger.Query
Constructors
Instances2Eq, Show
(All HasNetworkProtocolVersion xs, All (Compose Eq EraNodeToClientVersion) xs) => Eq (HardForkNodeToClientVersion xs)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.NetworkVersion(All HasNetworkProtocolVersion xs, All (Compose Show EraNodeToClientVersion) xs) => Show (HardForkNodeToClientVersion xs)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.NetworkVersion
Instances14SameDepIndex2, SerialiseBlockQueryResult, SerialiseNodeToClient, ShowQuery, ShowProxy, Show, …
SameDepIndex2 (BlockQuery (DualBlock m a))Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Ledger.DualAll SingleEraBlock xs => SameDepIndex2 (BlockQuery (HardForkBlock xs))Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Ledger.Query · orphanSerialiseHFC xs => SerialiseBlockQueryResult (HardForkBlock xs) BlockQueryDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Serialisation.SerialiseNodeToClient · orphan(forall (footprint :: QueryFootprint) result. Show (BlockQuery blk footprint result)) => Show (SomeBlockQuery (BlockQuery blk))Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Ledger.QuerySerialiseHFC xs => SerialiseNodeToClient (HardForkBlock xs) (SomeBlockQuery (BlockQuery (HardForkBlock xs)))Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Serialisation.SerialiseNodeToClient · orphanShowQuery (BlockQuery (DualBlock m a) footprint)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Ledger.DualAll SingleEraBlock xs => ShowQuery (BlockQuery (HardForkBlock xs) footprint)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Ledger.Query · orphanTypeable xs => ShowProxy (BlockQuery (HardForkBlock xs))Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Ledger.Query · orphan(Typeable m, Typeable a) => ShowProxy (BlockQuery (DualBlock m a))Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Ledger.DualShow (BlockQuery (DualBlock m a) footprint result)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Ledger.DualAll SingleEraBlock xs => Show (BlockQuery (HardForkBlock xs) footprint result)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Ledger.Query · orphanInject (SomeBlockQuery :.: BlockQuery)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Embed.Narydata BlockQuery (HardForkBlock xs)QueryIfCurrent :: QueryIfCurrent xs footprint result1 -> R:BlockQueryHardForkBlockfootprintresult xs footprint (Either (MismatchEraInfo xs) result1)QueryAnytime :: IsNonEmpty xs1 => QueryAnytime result -> EraIndex (x ': xs1) -> R:BlockQueryHardForkBlockfootprintresult (x ': xs1) 'QFNoTables resultQueryHardFork :: IsNonEmpty xs1 => QueryHardFork (x ': xs1) result -> R:BlockQueryHardForkBlockfootprintresult (x ': xs1) 'QFNoTables result
data BlockQuery (DualBlock m a)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Ledger.Dual
Orphan instances
5 instancesAll SingleEraBlock xs => SameDepIndex2 (BlockQuery (HardForkBlock xs))(All SingleEraBlock xs, BlockSupportsHFLedgerQuery xs, All BlockSupportsLedgerQuery xs, CanHardFork xs) => BlockSupportsLedgerQuery (HardForkBlock xs)All SingleEraBlock xs => ShowQuery (BlockQuery (HardForkBlock xs) footprint)Typeable xs => ShowProxy (BlockQuery (HardForkBlock xs))All SingleEraBlock xs => Show (BlockQuery (HardForkBlock xs) footprint result)