kopia lustrzana https://github.com/bugout-dev/moonworm
isort fix
rodzic
6e8ebd3d8e
commit
86612cf0f1
|
|
@ -5,6 +5,7 @@ from pathlib import Path
|
|||
from shutil import copyfile
|
||||
|
||||
from web3.main import Web3
|
||||
from web3.middleware import geth_poa_middleware
|
||||
|
||||
from moonworm.watch import watch_contract
|
||||
|
||||
|
|
@ -14,8 +15,6 @@ from .generator import (
|
|||
generate_contract_interface_content,
|
||||
)
|
||||
|
||||
from web3.middleware import geth_poa_middleware
|
||||
|
||||
|
||||
def write_file(content: str, path: str):
|
||||
with open(path, "w") as ofp:
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
from abc import ABC, abstractmethod
|
||||
from dataclasses import asdict, dataclass
|
||||
import os
|
||||
import pickle
|
||||
from abc import ABC, abstractmethod
|
||||
from dataclasses import asdict, dataclass
|
||||
from typing import Any, Dict, List
|
||||
|
||||
from eth_typing.evm import ChecksumAddress
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
from moonstreamdb.models import EthereumLabel, EthereumBlock
|
||||
from web3 import Web3
|
||||
from moonstreamdb.models import EthereumBlock, EthereumLabel
|
||||
from sqlalchemy.orm import Query, Session
|
||||
from web3 import Web3
|
||||
|
||||
from .event_scanner_state import EventScannerState
|
||||
|
||||
BLOCK_TIMESTAMP_CACHE = {}
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@ import os
|
|||
import pickle
|
||||
import shutil
|
||||
import tempfile
|
||||
from typing import Any, Dict, List
|
||||
import unittest
|
||||
from typing import Any, Dict, List
|
||||
|
||||
import web3
|
||||
from web3.main import Web3
|
||||
|
|
|
|||
|
|
@ -3,16 +3,16 @@ import tempfile
|
|||
import unittest
|
||||
|
||||
from hexbytes.main import HexBytes
|
||||
from web3 import Web3
|
||||
|
||||
from moonworm.contracts import ERC1155
|
||||
|
||||
from ...web3_util import connect
|
||||
from ...crawler.function_call_crawler import (
|
||||
FunctionCallCrawler,
|
||||
Web3StateProvider,
|
||||
PickleFileState,
|
||||
Web3StateProvider,
|
||||
)
|
||||
from web3 import Web3
|
||||
from ...web3_util import connect
|
||||
|
||||
|
||||
def get_web3_provider():
|
||||
|
|
|
|||
|
|
@ -1,20 +1,20 @@
|
|||
import pprint as pp
|
||||
import time
|
||||
from typing import Any, Dict, List
|
||||
|
||||
import web3
|
||||
from eth_typing.evm import ChecksumAddress
|
||||
from tqdm import tqdm
|
||||
from web3 import Web3
|
||||
import pprint as pp
|
||||
|
||||
import web3
|
||||
|
||||
from .contracts import CU, ERC721
|
||||
from .crawler.log_scanner import _fetch_events_chunk
|
||||
from .crawler.function_call_crawler import (
|
||||
ContractFunctionCall,
|
||||
Web3StateProvider,
|
||||
FunctionCallCrawler,
|
||||
FunctionCallCrawlerState,
|
||||
Web3StateProvider,
|
||||
)
|
||||
from .crawler.log_scanner import _fetch_events_chunk
|
||||
|
||||
|
||||
class MockState(FunctionCallCrawlerState):
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue