Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data family BlockQuery blk :: Type -> Type
-
newtype
NonMyopicMemberRewards
c =
NonMyopicMemberRewards
{
- unNonMyopicMemberRewards :: Map ( Either Coin ( Credential ' Staking c)) ( Map ( KeyHash ' StakePool c) Coin )
- querySupportedVersion :: BlockQuery ( ShelleyBlock proto era) result -> ShelleyNodeToClientVersion -> Bool
- decodeShelleyQuery :: ShelleyBasedEra era => Decoder s ( SomeSecond BlockQuery ( ShelleyBlock proto era))
- decodeShelleyResult :: ShelleyCompatible proto era => BlockQuery ( ShelleyBlock proto era) result -> forall s. Decoder s result
- encodeShelleyQuery :: ShelleyBasedEra era => BlockQuery ( ShelleyBlock proto era) result -> Encoding
- encodeShelleyResult :: ShelleyCompatible proto era => BlockQuery ( ShelleyBlock proto era) result -> result -> Encoding
Documentation
data family BlockQuery blk :: Type -> Type Source #
Different queries supported by the ledger, indexed by the result type.
Instances
newtype NonMyopicMemberRewards c Source #
NonMyopicMemberRewards | |
|
Instances
Eq ( NonMyopicMemberRewards c) Source # | |
Defined in Ouroboros.Consensus.Shelley.Ledger.Query (==) :: NonMyopicMemberRewards c -> NonMyopicMemberRewards c -> Bool Source # (/=) :: NonMyopicMemberRewards c -> NonMyopicMemberRewards c -> Bool Source # |
|
Show ( NonMyopicMemberRewards c) Source # | |
Defined in Ouroboros.Consensus.Shelley.Ledger.Query |
|
Crypto c => Serialise ( NonMyopicMemberRewards c) Source # | |
Defined in Ouroboros.Consensus.Shelley.Ledger.Query encode :: NonMyopicMemberRewards c -> Encoding Source # decode :: Decoder s ( NonMyopicMemberRewards c) Source # encodeList :: [ NonMyopicMemberRewards c] -> Encoding Source # decodeList :: Decoder s [ NonMyopicMemberRewards c] Source # |
querySupportedVersion :: BlockQuery ( ShelleyBlock proto era) result -> ShelleyNodeToClientVersion -> Bool Source #
Is the given query supported by the given
ShelleyNodeToClientVersion
?
Serialisation
decodeShelleyQuery :: ShelleyBasedEra era => Decoder s ( SomeSecond BlockQuery ( ShelleyBlock proto era)) Source #
decodeShelleyResult :: ShelleyCompatible proto era => BlockQuery ( ShelleyBlock proto era) result -> forall s. Decoder s result Source #
encodeShelleyQuery :: ShelleyBasedEra era => BlockQuery ( ShelleyBlock proto era) result -> Encoding Source #
encodeShelleyResult :: ShelleyCompatible proto era => BlockQuery ( ShelleyBlock proto era) result -> result -> Encoding Source #