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

Convex.Devnet.CardanoNode

Description

Startup cardano nodes programmatically

Synopsis

Documentation

newtype NodeId Source #

Constructors

NodeId Int 

Instances

Instances details
FromJSON NodeId Source # 
Instance details

Defined in Convex.Devnet.CardanoNode

ToJSON NodeId Source # 
Instance details

Defined in Convex.Devnet.CardanoNode

Num NodeId Source # 
Instance details

Defined in Convex.Devnet.CardanoNode

Show NodeId Source # 
Instance details

Defined in Convex.Devnet.CardanoNode

Eq NodeId Source # 
Instance details

Defined in Convex.Devnet.CardanoNode

Methods

(==)NodeIdNodeIdBool Source #

(/=)NodeIdNodeIdBool Source #

data NodeLog Source #

Instances

Instances details
FromJSON NodeLog Source # 
Instance details

Defined in Convex.Devnet.CardanoNode

ToJSON NodeLog Source # 
Instance details

Defined in Convex.Devnet.CardanoNode

Generic NodeLog Source # 
Instance details

Defined in Convex.Devnet.CardanoNode

Associated Types

type Rep NodeLogTypeType Source #

Methods

fromNodeLogRep NodeLog x Source #

toRep NodeLog x → NodeLog Source #

Show NodeLog Source # 
Instance details

Defined in Convex.Devnet.CardanoNode

Eq NodeLog Source # 
Instance details

Defined in Convex.Devnet.CardanoNode

Methods

(==)NodeLogNodeLogBool Source #

(/=)NodeLogNodeLogBool Source #

type Rep NodeLog Source # 
Instance details

Defined in Convex.Devnet.CardanoNode

type Rep NodeLog = D1 ('MetaData "NodeLog" "Convex.Devnet.CardanoNode" "convex-devnet-0.2.0.0-inplace" 'False) (((C1 ('MetaCons "MsgNodeCmdSpec" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :+: C1 ('MetaCons "MsgCLI" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Text]))) :+: (C1 ('MetaCons "MsgCLIStatus" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :+: C1 ('MetaCons "MsgCLIRetry" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))) :+: ((C1 ('MetaCons "MsgCLIRetryResult" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)) :+: C1 ('MetaCons "MsgNodeStarting" 'PrefixI 'True) (S1 ('MetaSel ('Just "stateDirectory") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath))) :+: (C1 ('MetaCons "MsgSocketIsReady" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath)) :+: (C1 ('MetaCons "MsgSynchronizing" 'PrefixI 'True) (S1 ('MetaSel ('Just "percentDone") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Centi)) :+: C1 ('MetaCons "MsgNodeIsReady" 'PrefixI 'False) (U1TypeType)))))

data RunningNode Source #

Constructors

RunningNode 

Fields

data DevnetConfig Source #

Configuration parameters for a single node devnet

Constructors

DevnetConfig 

Fields

waitForFullySynchronizedTracer IO NodeLogRunningNodeIO () Source #

Wait until the node is fully caught up with the network. This can take a while!

waitForBlockRunningNodeIO BlockNo Source #

Wait until at least one block has been produced (ie. the tip is not genesis)

waitForSocketRunningNodeIO () Source #

Wait for the node socket file to become available.

withCardanoNodeDevnet Source #

Arguments

Tracer IO NodeLog 
FilePath

State directory in which credentials, db & logs are persisted.

→ (RunningNodeIO a) 
IO a 

Start a single cardano-node devnet using the config from config/ and credentials from configcredentials. Only the Faucet actor will receive "initialFunds". Use seedFromFaucet to distribute funds other wallets.

withCardanoNodeDevnetConfig Source #

Arguments

Tracer IO NodeLog 
FilePath

State directory in which credentials, db & logs are persisted.

GenesisConfigChanges

Changes to apply to the default genesis configurations

→ (RunningNodeIO a) 
IO a 

Start a single cardano-node devnet using the config from config/ and credentials from configcredentials. Only the Faucet actor will receive "initialFunds". Use seedFromFaucet to distribute funds other wallets.