chaind-eth

Queue server for ethereum
Info | Log | Files | Refs | README | LICENSE

chain.py (591B)


      1 # external imports
      2 from chainlib.interface import ChainInterface
      3 from chainlib.eth.block import (
      4         block_by_number,
      5         block_latest,
      6         Block,
      7         )
      8 from chainlib.eth.tx import (
      9         receipt,
     10         Tx,
     11         )
     12 
     13 class EthChainInterface(ChainInterface):
     14 
     15     def __init__(self, dialect_filter=None):
     16         self._block_by_number = block_by_number
     17         self._block_from_src = Block.from_src
     18         self._tx_receipt = receipt
     19         self._src_normalize = Tx.src_normalize
     20         self._block_latest = block_latest
     21         self._dialect_filter = dialect_filter