Remove import from moonsteramdb_event_state.

Remove unrequired imports.
pull/104/head
Andrey 2023-03-07 14:42:12 +02:00
rodzic 6ca373ce36
commit 76a9e49b72
3 zmienionych plików z 4 dodań i 26 usunięć

Wyświetl plik

@ -3,24 +3,11 @@ from typing import Dict
try:
from moonstreamdb.db import yield_db_session_ctx
from moonstreamdb.models import (
Base,
EthereumBlock,
EthereumLabel,
EthereumTransaction,
MumbaiBlock,
MumbaiLabel,
MumbaiTransaction,
PolygonBlock,
PolygonLabel,
PolygonTransaction,
WyrmBlock,
WyrmLabel,
WyrmTransaction,
XDaiBlock,
XDaiLabel,
XDaiTransaction,
)
from moonstreamdb.moonworm import MODELS, Network, tx_raw_types
) # state/moonstream_event_state dependency maybe removed in the future
from moonstreamdb.networks import MODELS, Network, tx_raw_types
except ImportError:
print("this feature requires moonstreamdb which is not installed")
print("to enable, run: `pip install moonworm[moonstream]`")

Wyświetl plik

@ -1,4 +1,4 @@
from moonstreamdb.models import EthereumBlock, EthereumLabel
from ..networks import EthereumBlock, EthereumLabel
from sqlalchemy.orm import Query, Session
from web3 import Web3

Wyświetl plik

@ -1,9 +0,0 @@
from enum import Enum
class Network(Enum):
ethereum = "ethereum"
polygon = "polygon"
mumbai = "mumbai"
xdai = "xdai"
wyrm = "wyrm"