kopia lustrzana https://github.com/bugout-dev/moonworm
Remove import from moonsteramdb_event_state.
Remove unrequired imports.pull/104/head
rodzic
6ca373ce36
commit
76a9e49b72
|
@ -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]`")
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
from enum import Enum
|
||||
|
||||
|
||||
class Network(Enum):
|
||||
ethereum = "ethereum"
|
||||
polygon = "polygon"
|
||||
mumbai = "mumbai"
|
||||
xdai = "xdai"
|
||||
wyrm = "wyrm"
|
Ładowanie…
Reference in New Issue