hydra-node-0.22.0: The Hydra node
Safe HaskellSafe-Inferred
LanguageGHC2021

Hydra.Chain.Direct

Description

Chain component implementation which uses directly the Node-to-Client protocols to submit "hand-rolled" transactions.

Synopsis

Documentation

newtype NetworkMagic #

Constructors

NetworkMagic Word32 

Instances

Instances details
Generic NetworkMagic 
Instance details

Defined in Ouroboros.Network.Magic

Associated Types

type Rep NetworkMagic :: Type -> Type Source #

Show NetworkMagic 
Instance details

Defined in Ouroboros.Network.Magic

Eq NetworkMagic 
Instance details

Defined in Ouroboros.Network.Magic

NoThunks NetworkMagic 
Instance details

Defined in Ouroboros.Network.Magic

Methods

noThunks :: Context -> NetworkMagic -> IO (Maybe ThunkInfo)

wNoThunks :: Context -> NetworkMagic -> IO (Maybe ThunkInfo)

showTypeOf :: Proxy NetworkMagic -> String

type Rep NetworkMagic 
Instance details

Defined in Ouroboros.Network.Magic

type Rep NetworkMagic = D1 ('MetaData "NetworkMagic" "Ouroboros.Network.Magic" "ouroboros-network-api-0.14.0.0-FzoRUEZPHbuD5ACTMdXOlT" 'True) (C1 ('MetaCons "NetworkMagic" 'PrefixI 'True) (S1 ('MetaSel ('Just "unNetworkMagic") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word32)))

newtype DirectBackend Source #

Constructors

DirectBackend 

Instances

Instances details
ChainBackend DirectBackend Source # 
Instance details

Defined in Hydra.Chain.Direct

Methods

queryGenesisParameters :: (MonadIO m, MonadThrow m) => DirectBackend -> m (GenesisParameters ShelleyEra) Source #

queryScriptRegistry :: (MonadIO m, MonadThrow m) => DirectBackend -> [TxId] -> m ScriptRegistry Source #

queryNetworkId :: (MonadIO m, MonadThrow m) => DirectBackend -> m NetworkId Source #

queryTip :: (MonadIO m, MonadThrow m) => DirectBackend -> m ChainPoint Source #

queryUTxO :: (MonadIO m, MonadThrow m) => DirectBackend -> [Address ShelleyAddr] -> m UTxO Source #

queryEraHistory :: (MonadIO m, MonadThrow m) => DirectBackend -> QueryPoint -> m EraHistory Source #

querySystemStart :: (MonadIO m, MonadThrow m) => DirectBackend -> QueryPoint -> m SystemStart Source #

queryProtocolParameters :: (MonadIO m, MonadThrow m) => DirectBackend -> QueryPoint -> m (PParams LedgerEra) Source #

queryStakePools :: (MonadIO m, MonadThrow m) => DirectBackend -> QueryPoint -> m (Set PoolId) Source #

queryUTxOFor :: (MonadIO m, MonadThrow m) => DirectBackend -> QueryPoint -> VerificationKey PaymentKey -> m UTxO Source #

submitTransaction :: (MonadIO m, MonadThrow m) => DirectBackend -> Tx -> m () Source #

awaitTransaction :: (MonadIO m, MonadThrow m) => DirectBackend -> Tx -> m UTxO Source #

type BlockType = BlockInMode Source #

The block type used in the node-to-client protocols.

newtype IntersectionNotFoundException Source #

Thrown when the user-provided custom point of intersection is unknown to the local node. This may happen if users shut down their node quickly after starting them and hold on a not-so-stable point of the chain. When they turn the node back on, that point may no longer exist on the network if a fork with deeper roots has been adopted in the meantime.

Constructors

IntersectionNotFound 

Fields

chainSyncClient :: forall m. (MonadSTM m, MonadThrow m) => ChainSyncHandler m -> TinyWallet m -> ChainPoint -> ChainSyncClient BlockType ChainPoint ChainTip m () Source #

txSubmissionClient :: forall m. (MonadSTM m, MonadDelay m) => Tracer m CardanoChainLog -> TQueue m (Tx, TMVar m (Maybe (PostTxError Tx))) -> LocalTxSubmissionClient TxInMode TxValidationErrorInCardanoMode m () Source #