hs-abci-sdk-0.1.0.0
Safe HaskellNone
LanguageHaskell2010

Tendermint.SDK.BaseApp.Events

Synopsis

Class

class ToEvent e where Source #

A class representing a type that can be emitted as an event in the | event logs for the deliverTx response.

Minimal complete definition

Nothing

Methods

toEvent :: e -> Event Source #

default toEvent :: (Generic e, GToEvent (Rep e)) => e -> Event Source #

Instances

Instances details
ToEvent TransferEvent Source # 
Instance details

Defined in Tendermint.SDK.Modules.Bank.Types

newtype ContextEvent t Source #

Special event wrapper to add contextual event_type info

Constructors

ContextEvent t 

Instances

Instances details
(ToJSON a, ToEvent a) => ToJSON (ContextEvent a) Source # 
Instance details

Defined in Tendermint.SDK.BaseApp.Events

Methods

toJSON :: ContextEvent a -> Value

toEncoding :: ContextEvent a -> Encoding

toJSONList :: [ContextEvent a] -> Value

toEncodingList :: [ContextEvent a] -> Encoding

Select a => Select (ContextEvent a) Source # 
Instance details

Defined in Tendermint.SDK.BaseApp.Events

Effect

emit :: ToEvent e => Member (Output Event) r => e -> Sem r () Source #

logEvent :: forall e r. (ToJSON e, ToEvent e, Select e) => Member Logger r => e -> Sem r () Source #

Re-Exports

data Event #

Constructors

Event 

Fields

Instances

Instances details
Eq Event 
Instance details

Defined in Network.ABCI.Types.Messages.FieldTypes

Methods

(==) :: Event -> Event -> Bool #

(/=) :: Event -> Event -> Bool #

Show Event 
Instance details

Defined in Network.ABCI.Types.Messages.FieldTypes

Methods

showsPrec :: Int -> Event -> ShowS #

show :: Event -> String #

showList :: [Event] -> ShowS #

Generic Event 
Instance details

Defined in Network.ABCI.Types.Messages.FieldTypes

Associated Types

type Rep Event :: Type -> Type #

Methods

from :: Event -> Rep Event x #

to :: Rep Event x -> Event #

FromJSON Event 
Instance details

Defined in Network.ABCI.Types.Messages.FieldTypes

Methods

parseJSON :: Value -> Parser Event

parseJSONList :: Value -> Parser [Event]

ToJSON Event 
Instance details

Defined in Network.ABCI.Types.Messages.FieldTypes

Methods

toJSON :: Event -> Value

toEncoding :: Event -> Encoding

toJSONList :: [Event] -> Value

toEncodingList :: [Event] -> Encoding

Wrapped Event 
Instance details

Defined in Network.ABCI.Types.Messages.FieldTypes

Associated Types

type Unwrapped Event

Methods

_Wrapped' :: Iso' Event (Unwrapped Event)

type Rep Event 
Instance details

Defined in Network.ABCI.Types.Messages.FieldTypes

type Rep Event = D1 ('MetaData "Event" "Network.ABCI.Types.Messages.FieldTypes" "hs-abci-types-0.1.0.0-JbnZdER2jhDLQQCYdLDZz" 'False) (C1 ('MetaCons "Event" 'PrefixI 'True) (S1 ('MetaSel ('Just "eventType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "eventAttributes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [KVPair])))
type Unwrapped Event 
Instance details

Defined in Network.ABCI.Types.Messages.FieldTypes

type Unwrapped Event = Event