Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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 RemoteAddress LocalConnectionId blk -> IO a
- nkQueryLedger :: IsLedger (LedgerState blk) => (ExtLedgerState blk -> a) -> NodeKernel IO RemoteAddress LocalConnectionId blk -> IO a
- mapNodeKernelDataIO :: (NodeKernel IO RemoteAddress LocalConnectionId blk -> IO a) -> NodeKernelData blk -> IO (StrictMaybe a)
- setNodeKernel :: NodeKernelData blk -> NodeKernel IO RemoteAddress LocalConnectionId blk -> IO ()
- mkNodeKernelData :: IO (NodeKernelData blk)
- data NodeKernel (m :: Type -> Type) addrNTN addrNTC blk = NodeKernel {
- getChainDB :: ChainDB m blk
- getMempool :: Mempool m blk
- getTopLevelConfig :: TopLevelConfig blk
- getFetchClientRegistry :: FetchClientRegistry (ConnectionId addrNTN) (Header blk) blk m
- getFetchMode :: STM m FetchMode
- getNodeCandidates :: StrictTVar m (Map (ConnectionId addrNTN) (StrictTVar m (AnchoredFragment (Header blk))))
- getPeerSharingRegistry :: PeerSharingRegistry addrNTN m
- getTracers :: Tracers m (ConnectionId addrNTN) addrNTC blk
- setBlockForging :: [BlockForging m blk] -> m ()
- 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.
txIdToRawBytes :: TxId (GenTx blk) -> ByteString Source #
Instances
ConvertTxId ByronBlock Source # | |
Defined in Cardano.Node.Queries txIdToRawBytes :: TxId (GenTx ByronBlock) -> ByteString Source # | |
All ConvertTxId xs => ConvertTxId (HardForkBlock xs) Source # | |
Defined in Cardano.Node.Queries txIdToRawBytes :: TxId (GenTx (HardForkBlock xs)) -> ByteString Source # | |
ConvertTxId (ShelleyBlock protocol c) Source # | |
Defined in Cardano.Node.Queries txIdToRawBytes :: TxId (GenTx (ShelleyBlock protocol c)) -> ByteString Source # |
KES
newtype MaxKESEvolutions Source #
The maximum number of evolutions that a KES key can undergo before it is considered expired.
newtype OperationalCertStartKESPeriod Source #
The start KES period of the configured operational certificate.
class GetKESInfo blk where Source #
Nothing
getKESInfoFromStateInfo :: Proxy blk -> ForgeStateInfo blk -> Maybe KESInfo Source #
Instances
GetKESInfo ByronBlock Source # | |
Defined in Cardano.Node.Queries | |
All GetKESInfo xs => GetKESInfo (HardForkBlock xs) Source # | |
Defined in Cardano.Node.Queries getKESInfoFromStateInfo :: Proxy (HardForkBlock xs) -> ForgeStateInfo (HardForkBlock xs) -> Maybe KESInfo Source # | |
GetKESInfo (ShelleyBlock protocol era) Source # | |
Defined in Cardano.Node.Queries getKESInfoFromStateInfo :: Proxy (ShelleyBlock protocol era) -> ForgeStateInfo (ShelleyBlock protocol era) -> Maybe KESInfo Source # |
class HasKESInfo blk where Source #
Nothing
getKESInfo :: Proxy blk -> ForgeStateUpdateError blk -> Maybe KESInfo Source #
Instances
HasKESInfo ByronBlock Source # | |
Defined in Cardano.Node.Queries | |
All HasKESInfo xs => HasKESInfo (HardForkBlock xs) Source # | |
Defined in Cardano.Node.Queries getKESInfo :: Proxy (HardForkBlock xs) -> ForgeStateUpdateError (HardForkBlock xs) -> Maybe KESInfo Source # | |
HasKESInfo (ShelleyBlock protocol era) Source # | |
Defined in Cardano.Node.Queries getKESInfo :: Proxy (ShelleyBlock protocol era) -> ForgeStateUpdateError (ShelleyBlock protocol era) -> Maybe KESInfo Source # |
data KESMetricsData Source #
KES-related data to be traced as metrics.
NoKESMetricsData | The current protocol does not support KES. |
TPraosKESMetricsData | |
|
class HasKESMetricsData blk where Source #
Nothing
getKESMetricsData :: Proxy blk -> ForgeStateInfo blk -> KESMetricsData Source #
Instances
HasKESMetricsData ByronBlock Source # | |
Defined in Cardano.Node.Queries | |
All HasKESMetricsData xs => HasKESMetricsData (HardForkBlock xs) Source # | |
Defined in Cardano.Node.Queries getKESMetricsData :: Proxy (HardForkBlock xs) -> ForgeStateInfo (HardForkBlock xs) -> KESMetricsData Source # | |
HasKESMetricsData (ShelleyBlock protocol c) Source # | |
Defined in Cardano.Node.Queries getKESMetricsData :: Proxy (ShelleyBlock protocol c) -> ForgeStateInfo (ShelleyBlock protocol c) -> KESMetricsData Source # |
General ledger
class LedgerQueries blk where Source #
ledgerUtxoSize :: LedgerState blk -> Int Source #
ledgerDelegMapSize :: LedgerState blk -> Int Source #
Instances
LedgerQueries ByronBlock Source # | |
Defined in Cardano.Node.Queries | |
(LedgerQueries x, NoHardForks x) => LedgerQueries (HardForkBlock '[x]) Source # | |
Defined in Cardano.Node.Queries ledgerUtxoSize :: LedgerState (HardForkBlock '[x]) -> Int Source # ledgerDelegMapSize :: LedgerState (HardForkBlock '[x]) -> Int Source # | |
LedgerQueries (CardanoBlock c) Source # | |
Defined in Cardano.Node.Queries ledgerUtxoSize :: LedgerState (CardanoBlock c) -> Int Source # ledgerDelegMapSize :: LedgerState (CardanoBlock c) -> Int Source # | |
LedgerQueries (ShelleyBlock protocol era) Source # | |
Defined in Cardano.Node.Queries ledgerUtxoSize :: LedgerState (ShelleyBlock protocol era) -> Int Source # ledgerDelegMapSize :: LedgerState (ShelleyBlock protocol era) -> Int Source # |
Node kernel
newtype NodeKernelData blk Source #
nkQueryChain :: (AnchoredFragment (Header blk) -> a) -> NodeKernel IO RemoteAddress LocalConnectionId blk -> IO a Source #
nkQueryLedger :: IsLedger (LedgerState blk) => (ExtLedgerState blk -> a) -> NodeKernel IO RemoteAddress LocalConnectionId blk -> IO a Source #
mapNodeKernelDataIO :: (NodeKernel IO RemoteAddress LocalConnectionId blk -> IO a) -> NodeKernelData blk -> IO (StrictMaybe a) Source #
setNodeKernel :: NodeKernelData blk -> NodeKernel IO RemoteAddress LocalConnectionId blk -> IO () Source #
mkNodeKernelData :: IO (NodeKernelData blk) Source #
Re-exports
data NodeKernel (m :: Type -> Type) addrNTN addrNTC blk Source #
Interface against running relay node
NodeKernel | |
|
data StrictMaybe a Source #
Instances
fromSMaybe :: a -> StrictMaybe a -> a Source #
Same as fromMaybe