web3-0.9.1.0: Web3 API for Haskell.

CopyrightFOAM team <http://foam.space> 2018
LicenseBSD3
Maintainermail@akru.me
Stabilityexperimental
Portabilityunportable
Safe HaskellNone
LanguageHaskell2010

Network.Ethereum.Contract.Event.SingleFilter

Description

Contract event filters.

Synopsis

Documentation

event :: (DecodeEvent i ni e, JsonRpc m) => Filter e -> (e -> ReaderT Change m EventAction) -> m () Source #

Run one block at a time.

eventMany :: (DecodeEvent i ni e, JsonRpc m) => Filter e -> Integer -> (e -> ReaderT Change m EventAction) -> m () Source #

eventMany take s a filter, a window size, and a handler.

It runs the handler over the results of eventLogs results using reduceEventStream. If no TerminateEvent action is thrown and the toBlock is not yet reached, it then transitions to polling.

eventNoFilter :: (DecodeEvent i ni e, JsonRpc m) => Filter e -> (e -> ReaderT Change m EventAction) -> m () Source #