plutus-pab-1.2.0.0
Safe Haskell None
Language Haskell2010

Cardano.Node.Types

Description

This module exports data types for logging, events and configuration

Synopsis

Logging types

data PABServerLogMsg Source #

Top-level logging data type for structural logging inside the PAB server.

Instances

Instances details
Show PABServerLogMsg Source #
Instance details

Defined in Cardano.Node.Types

Generic PABServerLogMsg Source #
Instance details

Defined in Cardano.Node.Types

ToJSON PABServerLogMsg Source #
Instance details

Defined in Cardano.Node.Types

FromJSON PABServerLogMsg Source #
Instance details

Defined in Cardano.Node.Types

Pretty PABServerLogMsg Source #
Instance details

Defined in Cardano.Node.Types

ToObject PABServerLogMsg Source #
Instance details

Defined in Cardano.Node.Types

type Rep PABServerLogMsg Source #
Instance details

Defined in Cardano.Node.Types

type Rep PABServerLogMsg = D1 (' MetaData "PABServerLogMsg" "Cardano.Node.Types" "plutus-pab-1.2.0.0-CtfsFiD4ohhEkbPm9mkCAB" ' False ) ((( C1 (' MetaCons "StartingSlotCoordination" ' PrefixI ' False ) ( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedStrict ) ( Rec0 UTCTime ) :*: S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedStrict ) ( Rec0 Millisecond )) :+: C1 (' MetaCons "NoRandomTxGeneration" ' PrefixI ' False ) ( U1 :: Type -> Type )) :+: ( C1 (' MetaCons "StartingRandomTx" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: ( C1 (' MetaCons "KeepingOldBlocks" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: C1 (' MetaCons "RemovingOldBlocks" ' PrefixI ' False ) ( U1 :: Type -> Type )))) :+: (( C1 (' MetaCons "StartingPABServer" ' PrefixI ' False ) ( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedStrict ) ( Rec0 Int )) :+: C1 (' MetaCons "ProcessingChainEvent" ' PrefixI ' False ) ( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedStrict ) ( Rec0 ChainEvent ))) :+: ( C1 (' MetaCons "BlockOperation" ' PrefixI ' False ) ( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedStrict ) ( Rec0 BlockEvent )) :+: ( C1 (' MetaCons "CreatingRandomTransaction" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: C1 (' MetaCons "TxSendCalledWithoutMock" ' PrefixI ' False ) ( U1 :: Type -> Type )))))

Event types

data BlockEvent Source #

Instances

Instances details
Show BlockEvent Source #
Instance details

Defined in Cardano.Node.Types

Generic BlockEvent Source #
Instance details

Defined in Cardano.Node.Types

ToJSON BlockEvent Source #
Instance details

Defined in Cardano.Node.Types

FromJSON BlockEvent Source #
Instance details

Defined in Cardano.Node.Types

Pretty BlockEvent Source #
Instance details

Defined in Cardano.Node.Types

type Rep BlockEvent Source #
Instance details

Defined in Cardano.Node.Types

Effects

type ChainSyncHandle = Either ( ChainSyncHandle Block) ( ChainSyncHandle ChainSyncEvent ) Source #

The types of handles varies based on the type of clients (mocked or real nodes) and we need a generic way of handling either type of response.

State types

initialAppState :: MonadIO m => [Wallet] -> m AppState Source #

AppState with an initial transaction that pays some Ada to the wallets.

initialChainState :: MonadIO m => InitialDistribution -> m MockNodeServerChainState Source #

ChainState with initial values

Lens functions

Config types

data PABServerConfig Source #

Node server configuration

Constructors

PABServerConfig

Fields

Instances

Instances details
Eq PABServerConfig Source #
Instance details

Defined in Cardano.Node.Types

Show PABServerConfig Source #
Instance details

Defined in Cardano.Node.Types

Generic PABServerConfig Source #
Instance details

Defined in Cardano.Node.Types

ToJSON PABServerConfig Source #
Instance details

Defined in Cardano.Node.Types

FromJSON PABServerConfig Source #
Instance details

Defined in Cardano.Node.Types

Default PABServerConfig Source #
Instance details

Defined in Cardano.Node.Types

Pretty PABServerConfig Source #
Instance details

Defined in Cardano.Node.Types

type Rep PABServerConfig Source #
Instance details

Defined in Cardano.Node.Types

data NodeMode Source #

Which node we're connecting to

Constructors

MockNode

Connect to the PAB mock node.

AlonzoNode

Connect to an Alonzo node

NoChainSyncEvents

Do not connect to any node for chain sync events. Connect to Alonzo node for slot notifications.

newtype wrappers