plutus-pab-1.2.0.0
Safe HaskellNone
LanguageHaskell2010

Plutus.PAB.Events

Synopsis

Documentation

data PABEvent t Source #

A structure which ties together all possible event types into one parent.

Constructors

UpdateContractInstanceState !(ContractActivationArgs t) !ContractInstanceId !(ContractResponse Value Value PABResp PABReq)

Update the state of a contract instance

SubmitTx !CardanoTx

Send a transaction to the node

ActivateContract !(ContractActivationArgs t) !ContractInstanceId 
StopContract !ContractInstanceId 

Instances

Instances details
Eq t => Eq (PABEvent t) Source # 
Instance details

Defined in Plutus.PAB.Events

Methods

(==) :: PABEvent t -> PABEvent t -> Bool Source #

(/=) :: PABEvent t -> PABEvent t -> Bool Source #

Show t => Show (PABEvent t) Source # 
Instance details

Defined in Plutus.PAB.Events

Generic (PABEvent t) Source # 
Instance details

Defined in Plutus.PAB.Events

Associated Types

type Rep (PABEvent t) :: Type -> Type Source #

Methods

from :: PABEvent t -> Rep (PABEvent t) x Source #

to :: Rep (PABEvent t) x -> PABEvent t Source #

FromJSON t => FromJSON (PABEvent t) Source # 
Instance details

Defined in Plutus.PAB.Events

Methods

parseJSON :: Value -> Parser (PABEvent t)

parseJSONList :: Value -> Parser [PABEvent t]

Pretty t => Pretty (PABEvent t) Source # 
Instance details

Defined in Plutus.PAB.Events

Methods

pretty :: PABEvent t -> Doc ann

prettyList :: [PABEvent t] -> Doc ann

ToJSON t => ToJSON (PABEvent t) Source # 
Instance details

Defined in Plutus.PAB.Events

Methods

toJSON :: PABEvent t -> Value

toEncoding :: PABEvent t -> Encoding

toJSONList :: [PABEvent t] -> Value

toEncodingList :: [PABEvent t] -> Encoding

type Rep (PABEvent t) Source # 
Instance details

Defined in Plutus.PAB.Events

_UpdateContractInstanceState :: forall t. Prism' (PABEvent t) (ContractActivationArgs t, ContractInstanceId, ContractResponse Value Value PABResp PABReq) Source #

_SubmitTx :: forall t. Prism' (PABEvent t) CardanoTx Source #