atlas-cardano-0.6.2: Application backend for Plutus smart contracts on Cardano
Copyright(c) 2023 GYELD GMBH
LicenseApache 2.0
Maintainer[email protected]
Stabilitydevelop
Safe HaskellSafe-Inferred
LanguageGHC2021

GeniusYield.Test.Privnet.Setup

Contents

Description

 
Synopsis

Documentation

data Setup #

This setup represents a three argument function where first two arguments are for logging & third is for the continuation, in need of Ctx.

Once these arguments are given to this function, it will give Ctx to the continuation, where the logging part (the ctxLog) of Ctx would be obtained from the first two arguments of this function.

The first argument is the log severity filter. Only logs of this severity or higher will be passed on to the second argument, which is a logging action.

withPrivnetCardanoTestnetOptions → (SetupIO ()) → IO () #

Spawn a resource managed privnet and do things with it (closing it in the end).

Privnet can be configured using Cardano.Testnet.CardanoTestnetOptions. Pass cardanoDefaultTestnetOptionsConway for default configuration.

Note that passed CardanoTestnetOptions must imply Conway era.

Returns continuation on Setup, which is essentially a function that performs an action given a logging -- function and the action itself (which receives the Privnet Ctx).

withSetup ∷ (StringIO ()) → Setup → (CtxIO ()) → IO () #

Calls the Setup function with a logging function that receives info severity logs, and the action you wish to use with the privnet.

withSetup'GYLogSeverity → (StringIO ()) → Setup → (CtxIO ()) → IO () #

Calls the Setup function with target logging severity, a logging function and the action you wish to use with the privnet.

withSetupOldSetup → (StringIO ()) → (CtxIO ()) → IO () #

Deprecated: Use withSetup.

mkPrivnetTestForTestNameSetup → (TestInfoGYTxGameMonadIO ()) → TestTree #

Given a test name, runs the test under privnet.

mkPrivnetTestFor'TestNameGYLogSeveritySetup → (TestInfoGYTxGameMonadIO ()) → TestTree #

Given a test name, runs the test under privnet with target logging severity.

Cardano.Testnet re-exports

data CardanoTestnetOptions #

Constructors

CardanoTestnetOptions 

Fields

data TestnetNodeOptions #

Specify a BFT node (Pre-Babbage era only) or an SPO (Shelley era onwards only)

Constructors

SpoTestnetNodeOptions (Maybe NodeConfigurationYaml) [String]

These arguments will be appended to the default set of CLI options when starting the node.