Skip to content

Commit

Permalink
chore: implement breaking evmspec release
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler committed Dec 4, 2024
1 parent 09488cf commit f92221f
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 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
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ python = ">=3.8,<3.13"
aiofiles = "*"
cchecksum = ">=0.0.3,<1"
eth-retry = ">=0.1.15,<0.2"
evmspec = ">=0.0.1,<0.1"
evmspec = ">=0.1.0,<0.2"
ez-a-sync = ">=0.24.13,<1"
multicall = ">=0.6.2,<1"
typed-envs = ">=0.0.5,<0.1"
Expand Down

0 comments on commit f92221f

Please sign in to comment.