Safe Haskell | None |
---|---|
Language | Haskell2010 |
Cardano.Node.Queries
Synopsis
- class ConvertTxId blk where
- txIdToRawBytes ∷ TxId (GenTx blk) → ByteString
- newtype MaxKESEvolutions = MaxKESEvolutions Word64
- newtype OperationalCertStartKESPeriod = OperationalCertStartKESPeriod Period
- class GetKESInfo blk where
- getKESInfoFromStateInfo ∷ Proxy blk → ForgeStateInfo blk → Maybe KESInfo
- class HasKESInfo blk where
- getKESInfo ∷ Proxy blk → ForgeStateUpdateError blk → Maybe KESInfo
- data KESMetricsData
- class HasKESMetricsData blk where
- getKESMetricsData ∷ Proxy blk → ForgeStateInfo blk → KESMetricsData
- class LedgerQueries blk where
- ledgerUtxoSize ∷ LedgerState blk → Int
- ledgerDelegMapSize ∷ LedgerState blk → Int
- newtype NodeKernelData blk = NodeKernelData {}
- nkQueryChain ∷ (AnchoredFragment (Header blk) → a) → NodeKernel IO RemoteConnectionId LocalConnectionId blk → IO a
- nkQueryLedger ∷ IsLedger (LedgerState blk) ⇒ (ExtLedgerState blk → a) → NodeKernel IO RemoteConnectionId LocalConnectionId blk → IO a
- mapNodeKernelDataIO ∷ (NodeKernel IO RemoteConnectionId LocalConnectionId blk → IO a) → NodeKernelData blk → IO (StrictMaybe a)
- setNodeKernel ∷ NodeKernelData blk → NodeKernel IO RemoteConnectionId LocalConnectionId blk → IO ()
- mkNodeKernelData ∷ IO (NodeKernelData blk)
- data NodeKernel (m ∷ Type → Type) remotePeer localPeer blk = NodeKernel {
- getChainDB ∷ ChainDB m blk
- getMempool ∷ Mempool m blk TicketNo
- getTopLevelConfig ∷ TopLevelConfig blk
- getFetchClientRegistry ∷ FetchClientRegistry remotePeer (Header blk) blk m
- getFetchMode ∷ STM m FetchMode
- getNodeCandidates ∷ StrictTVar m (Map remotePeer (StrictTVar m (AnchoredFragment (Header blk))))
- getTracers ∷ Tracers m remotePeer localPeer blk
- type LocalConnectionId = ConnectionId LocalAddress
- type RemoteConnectionId = ConnectionId RemoteAddress
- data StrictMaybe a
- fromSMaybe ∷ a → StrictMaybe a → a
Documentation
class ConvertTxId blk where Source #
Convert a transaction ID to raw bytes.
Methods
txIdToRawBytes ∷ TxId (GenTx blk) → ByteString Source #
Instances
ConvertTxId ByronBlock Source # | |
Defined in Cardano.Node.Queries Methods txIdToRawBytes ∷ TxId (GenTx ByronBlock) → ByteString Source # | |
ConvertTxId (ShelleyBlock c) Source # | |
Defined in Cardano.Node.Queries Methods txIdToRawBytes ∷ TxId (GenTx (ShelleyBlock c)) → ByteString Source # | |
All ConvertTxId xs ⇒ ConvertTxId (HardForkBlock xs) Source # | |
Defined in Cardano.Node.Queries Methods txIdToRawBytes ∷ TxId (GenTx (HardForkBlock xs)) → ByteString Source # |
KES
newtype MaxKESEvolutions Source #
The maximum number of evolutions that a KES key can undergo before it is considered expired.
Constructors
MaxKESEvolutions Word64 |
newtype OperationalCertStartKESPeriod Source #
The start KES period of the configured operational certificate.
Constructors
OperationalCertStartKESPeriod Period |
class GetKESInfo blk where Source #
Minimal complete definition
Nothing
Methods
getKESInfoFromStateInfo ∷ Proxy blk → ForgeStateInfo blk → Maybe KESInfo Source #
Instances
GetKESInfo ByronBlock Source # | |
Defined in Cardano.Node.Queries Methods getKESInfoFromStateInfo ∷ Proxy ByronBlock → ForgeStateInfo ByronBlock → Maybe KESInfo Source # | |
GetKESInfo (ShelleyBlock era) Source # | |
Defined in Cardano.Node.Queries Methods getKESInfoFromStateInfo ∷ Proxy (ShelleyBlock era) → ForgeStateInfo (ShelleyBlock era) → Maybe KESInfo Source # | |
All GetKESInfo xs ⇒ GetKESInfo (HardForkBlock xs) Source # | |
Defined in Cardano.Node.Queries Methods getKESInfoFromStateInfo ∷ Proxy (HardForkBlock xs) → ForgeStateInfo (HardForkBlock xs) → Maybe KESInfo Source # |
class HasKESInfo blk where Source #
Minimal complete definition
Nothing
Methods
getKESInfo ∷ Proxy blk → ForgeStateUpdateError blk → Maybe KESInfo Source #
Instances
HasKESInfo ByronBlock Source # | |
Defined in Cardano.Node.Queries Methods getKESInfo ∷ Proxy ByronBlock → ForgeStateUpdateError ByronBlock → Maybe KESInfo Source # | |
HasKESInfo (ShelleyBlock era) Source # | |
Defined in Cardano.Node.Queries Methods getKESInfo ∷ Proxy (ShelleyBlock era) → ForgeStateUpdateError (ShelleyBlock era) → Maybe KESInfo Source # | |
All HasKESInfo xs ⇒ HasKESInfo (HardForkBlock xs) Source # | |
Defined in Cardano.Node.Queries Methods getKESInfo ∷ Proxy (HardForkBlock xs) → ForgeStateUpdateError (HardForkBlock xs) → Maybe KESInfo Source # |
data KESMetricsData Source #
KES-related data to be traced as metrics.
Constructors
NoKESMetricsData | The current protocol does not support KES. |
TPraosKESMetricsData | |
Fields
|
class HasKESMetricsData blk where Source #
Minimal complete definition
Nothing
Methods
getKESMetricsData ∷ Proxy blk → ForgeStateInfo blk → KESMetricsData Source #
Instances
HasKESMetricsData ByronBlock Source # | |
Defined in Cardano.Node.Queries Methods getKESMetricsData ∷ Proxy ByronBlock → ForgeStateInfo ByronBlock → KESMetricsData Source # | |
HasKESMetricsData (ShelleyBlock c) Source # | |
Defined in Cardano.Node.Queries Methods getKESMetricsData ∷ Proxy (ShelleyBlock c) → ForgeStateInfo (ShelleyBlock c) → KESMetricsData Source # | |
All HasKESMetricsData xs ⇒ HasKESMetricsData (HardForkBlock xs) Source # | |
Defined in Cardano.Node.Queries Methods getKESMetricsData ∷ Proxy (HardForkBlock xs) → ForgeStateInfo (HardForkBlock xs) → KESMetricsData Source # |
General ledger
class LedgerQueries blk where Source #
Methods
ledgerUtxoSize ∷ LedgerState blk → Int Source #
ledgerDelegMapSize ∷ LedgerState blk → Int Source #
Instances
LedgerQueries ByronBlock Source # | |
Defined in Cardano.Node.Queries Methods ledgerUtxoSize ∷ LedgerState ByronBlock → Int Source # ledgerDelegMapSize ∷ LedgerState ByronBlock → Int Source # | |
LedgerQueries (CardanoBlock c) Source # | |
Defined in Cardano.Node.Queries Methods ledgerUtxoSize ∷ LedgerState (CardanoBlock c) → Int Source # ledgerDelegMapSize ∷ LedgerState (CardanoBlock c) → Int Source # | |
LedgerQueries (ShelleyBlock era) Source # | |
Defined in Cardano.Node.Queries Methods ledgerUtxoSize ∷ LedgerState (ShelleyBlock era) → Int Source # ledgerDelegMapSize ∷ LedgerState (ShelleyBlock era) → Int Source # | |
(LedgerQueries x, NoHardForks x) ⇒ LedgerQueries (HardForkBlock '[x]) Source # | |
Defined in Cardano.Node.Queries Methods ledgerUtxoSize ∷ LedgerState (HardForkBlock '[x]) → Int Source # ledgerDelegMapSize ∷ LedgerState (HardForkBlock '[x]) → Int Source # |
Node kernel
newtype NodeKernelData blk Source #
Constructors
NodeKernelData | |
Fields |
nkQueryChain ∷ (AnchoredFragment (Header blk) → a) → NodeKernel IO RemoteConnectionId LocalConnectionId blk → IO a Source #
nkQueryLedger ∷ IsLedger (LedgerState blk) ⇒ (ExtLedgerState blk → a) → NodeKernel IO RemoteConnectionId LocalConnectionId blk → IO a Source #
mapNodeKernelDataIO ∷ (NodeKernel IO RemoteConnectionId LocalConnectionId blk → IO a) → NodeKernelData blk → IO (StrictMaybe a) Source #
setNodeKernel ∷ NodeKernelData blk → NodeKernel IO RemoteConnectionId LocalConnectionId blk → IO () Source #
mkNodeKernelData ∷ IO (NodeKernelData blk) Source #
Re-exports
data NodeKernel (m ∷ Type → Type) remotePeer localPeer blk #
Constructors
NodeKernel | |
Fields
|
type LocalConnectionId = ConnectionId LocalAddress #
type RemoteConnectionId = ConnectionId RemoteAddress #
data StrictMaybe a #
Instances
fromSMaybe ∷ a → StrictMaybe a → a #