2022-04-10 15:58:24 +02:00
|
|
|
# external imports
|
|
|
|
from chainlib.interface import ChainInterface
|
|
|
|
from chainlib.eth.block import (
|
|
|
|
block_by_number,
|
2022-04-28 14:49:50 +02:00
|
|
|
block_latest,
|
2022-04-10 15:58:24 +02:00
|
|
|
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
|
2022-04-28 14:49:50 +02:00
|
|
|
self._block_latest = block_latest
|