Skip to content

Commit

Permalink
chore: refactor evmspec
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler committed Dec 4, 2024
1 parent 09488cf commit d0098eb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion dank_mids/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import eth_retry
from cchecksum import to_checksum_address
from eth_typing import BlockNumber, ChecksumAddress
from evmspec._ids import ChainId
from evmspec.data import ChainId
from msgspec import Struct
from multicall.constants import MULTICALL2_ADDRESSES, MULTICALL_ADDRESSES
from multicall.multicall import NotSoBrightBatcher
Expand Down
15 changes: 8 additions & 7 deletions dank_mids/eth.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@
from async_property import async_cached_property
from eth_typing import BlockNumber
from evmspec import AnyTransaction, FilterTrace, Transaction, TransactionRLP, TransactionReceipt
from evmspec.block import TinyBlock
from evmspec.data import TransactionHash, UnixTimestamp, _DecodeHook, _decode_hook
from evmspec.log import Log
from evmspec.receipt import Status
from evmspec.data import TransactionHash, UnixTimestamp, _decode_hook
from evmspec.data._main import DecodeHook
from evmspec.structs.block import TinyBlock
from evmspec.structs.log import Log
from evmspec.structs.receipt import Status
from msgspec import Raw, Struct, ValidationError, json
from web3._utils.blocks import select_method_for_block_identifier
from web3._utils.rpc_abi import RPC
Expand Down Expand Up @@ -137,7 +138,7 @@ async def get_transaction_receipt(
self,
*args,
decode_to: Type[T] = TransactionReceipt,
decode_hook: _DecodeHook[T] = _decode_hook,
decode_hook: DecodeHook[T] = _decode_hook,
**kwargs,
) -> T:
"""
Expand Down Expand Up @@ -173,7 +174,7 @@ async def trace_filter(
self,
filter_params: TraceFilterParams,
decode_to: Type[T] = List[FilterTrace],
decode_hook: _DecodeHook[T] = _decode_hook,
decode_hook: DecodeHook[T] = _decode_hook,
) -> T:
"""
Returns all traces matching a filter. If the decoding to the specified
Expand Down Expand Up @@ -249,7 +250,7 @@ async def get_logs(
self,
*args,
decode_to: Type[T] = Tuple[Log, ...], # type: ignore [assignment]
decode_hook: _DecodeHook[T] = _decode_hook,
decode_hook: DecodeHook[T] = _decode_hook,
**kwargs,
) -> T:
"""
Expand Down
7 changes: 3 additions & 4 deletions dank_mids/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@
import evmspec
from dictstruct import DictStruct
from eth_typing import ChecksumAddress, HexStr
from evmspec._ids import ChainId
from evmspec.block import BaseBlock, Block, MinedBlock, ShanghaiCapellaBlock
from evmspec.data import Address, BlockNumber, Wei, uint, _decode_hook
from evmspec.log import Log
from evmspec.data import Address, BlockNumber, ChainId, Wei, uint, _decode_hook
from evmspec.structs.block import BaseBlock, Block, MinedBlock, ShanghaiCapellaBlock
from evmspec.structs.log import Log
from hexbytes import HexBytes
from msgspec import UNSET, Raw, ValidationError, json
from web3.datastructures import AttributeDict
Expand Down

0 comments on commit d0098eb

Please sign in to comment.