Module
Network.Ethereum.Web3.Contract
- Package
- purescript-web3
- Repository
- f-o-a-m/purescript-web3
#event Source
event :: forall ni i a e. DecodeEvent i ni a => Filter -> (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 -> 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
call :: forall e. IsSymbol selector => TransactionOptions NoPay -> ChainCursor -> Tagged (SProxy selector) a -> Web3 e (Either CallError b)
Constant call given contract 'Address' in mode and given input data
Instances
(Generic a arep, GenericABIEncode arep, Generic b brep, GenericABIDecode brep) => CallMethod s a b
#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
sendTx :: forall u e. EtherUnit (Value u) => IsSymbol selector => TransactionOptions u -> Tagged (SProxy selector) a -> Web3 e HexString
Send a transaction for given contract 'Address', value and input data
Instances
(Generic a rep, GenericABIEncode rep) => TxMethod s a
- Modules
- Network.
Ethereum. Web3 - Network.
Ethereum. Web3. Api - Network.
Ethereum. Web3. Contract - Network.
Ethereum. Web3. Contract. Internal - Network.
Ethereum. Web3. JsonRPC - Network.
Ethereum. Web3. Solidity - Network.
Ethereum. Web3. Solidity. AbiEncoding - Network.
Ethereum. Web3. Solidity. Bytes - Network.
Ethereum. Web3. Solidity. EncodingType - Network.
Ethereum. Web3. Solidity. Event - Network.
Ethereum. Web3. Solidity. Generic - Network.
Ethereum. Web3. Solidity. Int - Network.
Ethereum. Web3. Solidity. Size - Network.
Ethereum. Web3. Solidity. Tuple - Network.
Ethereum. Web3. Solidity. UInt - Network.
Ethereum. Web3. Solidity. Vector - Network.
Ethereum. Web3. Types - Network.
Ethereum. Web3. Types. BigNumber - Network.
Ethereum. Web3. Types. EtherUnit - Network.
Ethereum. Web3. Types. Provider - Network.
Ethereum. Web3. Types. Sha3 - Network.
Ethereum. Web3. Types. Types - Network.
Ethereum. Web3. Types. Utils
Event filter structure used by low-level subscription methods