mirror of
git://holbrook.no/eth-monitor.git
synced 2024-11-16 10:16:48 +01:00
19 lines
460 B
Python
19 lines
460 B
Python
# external imports
|
|
from chainlib.interface import ChainInterface
|
|
from chainlib.eth.block import (
|
|
block_by_number,
|
|
Block,
|
|
)
|
|
from chainlib.eth.tx import (
|
|
receipt,
|
|
Tx,
|
|
)
|
|
|
|
class EthChainInterface(ChainInterface):
|
|
|
|
def __init__(self):
|
|
self._block_by_number = block_by_number
|
|
self._block_from_src = Block.from_src
|
|
self._tx_receipt = receipt
|
|
self._src_normalize = Tx.src_normalize
|