plutus-pab-0.1.0.0
Safe HaskellNone
LanguageHaskell2010

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

Associated Types

type Rep PABServerLogMsg :: Type -> Type Source #

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

Methods

toObject :: TracingVerbosity -> PABServerLogMsg -> Object

textTransformer :: PABServerLogMsg -> Object -> Text

type Rep PABServerLogMsg Source # 
Instance details

Defined in Cardano.Node.Types

type Rep PABServerLogMsg = D1 ('MetaData "PABServerLogMsg" "Cardano.Node.Types" "plutus-pab-0.1.0.0-1vc1rt5g5zvBlHvXKfwLQ7" '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 #

Constructors

NewSlot 
NewTransaction Tx 

Instances

Instances details
Show BlockEvent Source # 
Instance details

Defined in Cardano.Node.Types

Generic BlockEvent Source # 
Instance details

Defined in Cardano.Node.Types

Associated Types

type Rep BlockEvent :: Type -> Type Source #

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

type Rep BlockEvent = D1 ('MetaData "BlockEvent" "Cardano.Node.Types" "plutus-pab-0.1.0.0-1vc1rt5g5zvBlHvXKfwLQ7" 'False) (C1 ('MetaCons "NewSlot" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NewTransaction" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Tx)))

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

data AppState Source #

Application State

Constructors

AppState 

Fields

Instances

Instances details
Show AppState Source # 
Instance details

Defined in Cardano.Node.Types

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

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

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

Associated Types

type Rep PABServerConfig :: Type -> Type Source #

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

Instances

Instances details
Eq NodeMode Source # 
Instance details

Defined in Cardano.Node.Types

Show NodeMode Source # 
Instance details

Defined in Cardano.Node.Types

Generic NodeMode Source # 
Instance details

Defined in Cardano.Node.Types

Associated Types

type Rep NodeMode :: Type -> Type Source #

ToJSON NodeMode Source # 
Instance details

Defined in Cardano.Node.Types

FromJSON NodeMode Source # 
Instance details

Defined in Cardano.Node.Types

type Rep NodeMode Source # 
Instance details

Defined in Cardano.Node.Types

type Rep NodeMode = D1 ('MetaData "NodeMode" "Cardano.Node.Types" "plutus-pab-0.1.0.0-1vc1rt5g5zvBlHvXKfwLQ7" 'False) (C1 ('MetaCons "MockNode" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AlonzoNode" 'PrefixI 'False) (U1 :: Type -> Type))

newtype wrappers

newtype NodeUrl Source #

Constructors

NodeUrl BaseUrl 

Instances

Instances details
Eq NodeUrl Source # 
Instance details

Defined in Cardano.Node.Types

Show NodeUrl Source # 
Instance details

Defined in Cardano.Node.Types