Module

Network.Ethereum.Web3.Contract

Package
purescript-web3
Repository
f-o-a-m/purescript-web3

#EventFilter Source

class EventFilter a  where

Members

#event Source

event :: forall ni i a e. DecodeEvent i ni a => Filter a -> (a -> ReaderT Change (Web3 e) EventAction) -> Web3 e Unit

run event' one block at a time.

#event' Source

event' :: forall ni i a e. DecodeEvent i ni a => Filter a -> Int -> (a -> ReaderT Change (Web3 e) EventAction) -> Web3 e Unit

Takes a Filter and a handler, as well as a windowSize. It runs the handler over the eventLogs using reduceEventStream. If no TerminateEvent is thrown, it then transitions to polling.

#CallMethod Source

class CallMethod (selector :: Symbol) a b  where

Members

Instances

#TxMethod Source

class TxMethod (selector :: Symbol) a  where

Class paramaterized by values which are ABIEncodable, allowing the templating of of a transaction with this value as the payload.

Members

Instances

#deployContract Source

deployContract :: forall t e rep a. Generic a rep => GenericABIEncode rep => TransactionOptions NoPay -> HexString -> Tagged t a -> Web3 e HexString

#mkDataField Source

mkDataField :: forall l fields args name a selector. IsSymbol selector => Generic a (Constructor name args) => RecordFieldsIso args fields l => GenericABIEncode (Constructor name args) => Proxy (Tagged (SProxy selector) a) -> Record fields -> HexString