Copyright | Alexander Krupenkin 2016 |
---|---|
License | BSD3 |
Maintainer | mail@akru.me |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Ethereum generic JSON-RPC types.
- type Hash = BytesN 32
- newtype Quantity = Quantity {}
- data SyncActive = SyncActive {}
- data SyncingState
- data Change = Change {
- changeLogIndex :: !Quantity
- changeTransactionIndex :: !Quantity
- changeTransactionHash :: !Hash
- changeBlockHash :: !Hash
- changeBlockNumber :: !Quantity
- changeAddress :: !Address
- changeData :: !Bytes
- changeTopics :: ![BytesN 32]
- data Call = Call {}
- data DefaultBlock
- data Filter e = Filter {
- filterAddress :: !(Maybe [Address])
- filterFromBlock :: !DefaultBlock
- filterToBlock :: !DefaultBlock
- filterTopics :: !(Maybe [Maybe (BytesN 32)])
- data TxReceipt = TxReceipt {
- receiptTransactionHash :: !Hash
- receiptTransactionIndex :: !Quantity
- receiptBlockHash :: !Hash
- receiptBlockNumber :: !Quantity
- receiptCumulativeGasUsed :: !Quantity
- receiptGasUsed :: !Quantity
- receiptContractAddress :: !(Maybe Address)
- receiptLogs :: ![Change]
- receiptLogsBloom :: !Bytes
- receiptStatus :: !(Maybe Quantity)
- data Transaction = Transaction {}
- data Block = Block {
- blockNumber :: !Quantity
- blockHash :: !Hash
- blockParentHash :: !Hash
- blockNonce :: !(Maybe Bytes)
- blockSha3Uncles :: !(BytesN 32)
- blockLogsBloom :: !Bytes
- blockTransactionsRoot :: !(BytesN 32)
- blockStateRoot :: !(BytesN 32)
- blockReceiptRoot :: !(Maybe (BytesN 32))
- blockMiner :: !Address
- blockDifficulty :: !Quantity
- blockTotalDifficulty :: !Quantity
- blockExtraData :: !Bytes
- blockSize :: !Quantity
- blockGasLimit :: !Quantity
- blockGasUsed :: !Quantity
- blockTimestamp :: !Quantity
- blockTransactions :: ![Transaction]
- blockUncles :: ![Hash]
Documentation
Should be viewed as type to representing QUANTITY in Web3 JSON RPC docs
When encoding QUANTITIES (integers, numbers): encode as hex, prefix with "0x", the most compact representation (slight exception: zero should be represented as "0x0"). Examples:
0x41 (65 in decimal) 0x400 (1024 in decimal) WRONG: 0x (should always have at least one digit - zero is "0x0") WRONG: 0x0400 (no leading zeroes allowed) WRONG: ff (must be prefixed 0x)
data SyncActive Source #
An object with sync status data.
SyncActive | |
|
data SyncingState Source #
Sync state pulled by low-level call eth_syncing
.
Changes pulled by low-level call eth_getFilterChanges
, eth_getLogs
,
and eth_getFilterLogs
Change | |
|
The contract call params.
Call | |
|
data DefaultBlock Source #
The state of blockchain for contract call.
Low-level event filter data structure.
Filter | |
|
The Receipt of a Transaction
TxReceipt | |
|
data Transaction Source #
Transaction information.
Transaction | |
|
Block information.
Block | |
|