| Copyright | Alexander Krupenkin 2016 |
|---|---|
| License | BSD3 |
| Maintainer | mail@akru.me |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.Ethereum.Web3.Types
Description
Common used types and instances.
- type Web3 = ReaderT Config (ExceptT Error IO)
- data Config = Config {}
- data Error
- runWeb3 :: MonadIO m => Web3 a -> m (Either Error a)
- runWeb3' :: MonadIO m => Config -> Web3 a -> m (Either Error a)
- data RpcError = RpcError {}
- data Filter = Filter {}
- newtype FilterId = FilterId Int
- data Change = Change {}
- data Call = Call {}
- data CallMode
- type TxHash = Text
Documentation
type Web3 = ReaderT Config (ExceptT Error IO) Source #
Any communication with Ethereum node wrapped with Web3 monad
Ethereum node params
Some peace of error response
Constructors
| JsonRpcFail RpcError | JSON-RPC communication error |
| ParserFail String | Error in parser state |
| UserFail String | Common head for user errors |
runWeb3' :: MonadIO m => Config -> Web3 a -> m (Either Error a) Source #
Run Web3 monad with given configuration
JSON-RPC error message
Low-level event filter data structure
Constructors
| Filter | |
Fields
| |
Event filder ident
Changes pulled by low-level call eth_getFilterChanges
Constructors
| Change | |
Fields
| |
The contract call params
Constructors
| Call | |
The contract call mode describe used state: latest or pending