hydra-cluster-0.20.0: Integration test suite using a local cluster of cardano and hydra nodes
Safe HaskellSafe-Inferred
LanguageGHC2021

Hydra.Cluster.Util

Description

Utilities used across hydra-cluster

Synopsis

Documentation

readConfigFile :: FilePath -> IO ByteString Source #

Lookup a config file similar reading a file from disk. If the env variable HYDRA_CONFIG_DIR is set, filenames will be resolved relative to its value otherwise they will be looked up in the package's data path.

keysFor :: Actor -> IO (VerificationKey PaymentKey, SigningKey PaymentKey) Source #

Get the "well-known" keys for given actor.

createAndSaveSigningKey :: FilePath -> IO (SigningKey PaymentKey) Source #

Create and save new signing key at the provided path. NOTE: Uses TextEnvelope format.

chainConfigFor Source #

Arguments

:: HasCallStack 
=> Actor 
-> FilePath 
-> SocketPath 
-> TxId

Transaction id at which Hydra scripts should have been published.

-> [Actor] 
-> ContestationPeriod 
-> IO ChainConfig 

modifyConfig :: (DirectChainConfig -> DirectChainConfig) -> ChainConfig -> ChainConfig Source #

setNetworkId :: NetworkId -> ChainConfig -> ChainConfig Source #