convex-devnet-0.2.0.0: Devnet for integration tests
Safe HaskellSafe-Inferred
LanguageHaskell2010

Convex.Devnet.NodeQueries

Description

Helper functions for querying a local cardano-node using the socket interface

Synopsis

Documentation

querySystemStart Source #

Arguments

NetworkId

network Id to use for node query

FilePath

Node socket

IO SystemStart 

Get the SystemStart from the node

queryEraHistory Source #

Arguments

NetworkId

network Id to use for node query

FilePath

Node socket

IO (EraHistory CardanoMode) 

Get the EraHistory from the node

queryTip Source #

Arguments

NetworkId

network Id to use for node query

FilePath

Node socket

IO (SlotNo, SlotLength, Hash BlockHeader) 

Get the tip (slot no. and block hash) from the node

queryTipSlotNo Source #

Arguments

NetworkId

network Id to use for node query

FilePath

Node socket

IO (SlotNo, SlotLength) 

Get the slot no of the current tip from the node

queryUTxONetworkIdFilePath → [Address ShelleyAddr] → IO (UTxO BabbageEra) Source #

Query UTxO for all given addresses at given point.

Throws at least QueryException if query fails.

queryUTxOWholeNetworkIdFilePathIO (UTxO BabbageEra) Source #

Query the entire UTxO set

Throws at least QueryException if query fails.

waitForTxInNetworkIdFilePathTxInIO () Source #

Wait until the output appears on the chain

waitForTxInSpendNetworkIdFilePathTxInIO () Source #

Wait until the TxIn is not part of the utxo set anymore

loadConnectInfo Source #

Arguments

∷ (MonadError InitialLedgerStateError m, MonadIO m) 
FilePath

Node config file (JSON)

FilePath

Node socket

→ m (LocalNodeConnectInfo CardanoMode, Env) 

Load the node config file and create LocalNodeConnectInfo and Env values that can be used to talk to the node.