Copyright | Alexander Krupenkin 2016 |
---|---|
License | BSD3 |
Maintainer | mail@akru.me |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
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
- data Transaction = Transaction {}
- data Block = Block {
- blockNumber :: Text
- blockHash :: Text
- blockParentHash :: Text
- blockNonce :: Maybe Text
- blockSha3Uncles :: Text
- blockLogsBloom :: Text
- blockTransactionsRoot :: Text
- blockStateRoot :: Text
- blockReceiptRoot :: Maybe Text
- blockMiner :: Address
- blockDifficulty :: Text
- blockTotalDifficulty :: Text
- blockExtraData :: Text
- blockSize :: Text
- blockGasLimit :: Text
- blockGasUsed :: Text
- blockTimestamp :: Text
- blockTransactions :: [Transaction]
- blockUncles :: [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
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
Filter | |
|
Event filder ident
Changes pulled by low-level call eth_getFilterChanges
Change | |
|
The contract call params
The contract call mode describe used state: latest or pending
data Transaction Source #
Transaction information
Transaction | |
|
Block information
Block | |
|