Skip to content

Commit

Permalink
chore: drop WithdrawalRequests extension
Browse files Browse the repository at this point in the history
  • Loading branch information
madlabman committed Dec 18, 2024
1 parent 0e3a85f commit 8e089b3
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 96 deletions.
2 changes: 0 additions & 2 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
LidoValidatorsProvider,
FallbackProviderModule,
LazyCSM,
WithdrawalRequests
)
from src.web3py.middleware import metrics_collector
from src.web3py.types import Web3
Expand Down Expand Up @@ -102,7 +101,6 @@ def main(module_name: OracleModule):
'cc': lambda: cc, # type: ignore[dict-item]
'kac': lambda: kac, # type: ignore[dict-item]
'ipfs': lambda: ipfs, # type: ignore[dict-item]
'withdrawal_requests': WithdrawalRequests,
})

logger.info({'msg': 'Add metrics middleware for ETH1 requests.'})
Expand Down
1 change: 0 additions & 1 deletion src/web3py/extensions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
from src.web3py.extensions.lido_validators import LidoValidatorsProvider
from src.web3py.extensions.fallback import FallbackProviderModule
from src.web3py.extensions.csm import CSM, LazyCSM
from src.web3py.extensions.withdrawal_requests import WithdrawalRequests
30 changes: 0 additions & 30 deletions src/web3py/extensions/withdrawal_requests.py

This file was deleted.

2 changes: 0 additions & 2 deletions src/web3py/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
LidoContracts,
LidoValidatorsProvider,
TransactionUtils,
WithdrawalRequests,
)


Expand All @@ -20,4 +19,3 @@ class Web3(_Web3):
kac: KeysAPIClientModule
csm: CSM
ipfs: IPFSProvider
withdrawal_requests: WithdrawalRequests
7 changes: 1 addition & 6 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from src.types import BlockNumber, EpochNumber, ReferenceBlockStamp, SlotNumber
from src.variables import CONSENSUS_CLIENT_URI, EXECUTION_CLIENT_URI, KEYS_API_URI
from src.web3py.contract_tweak import tweak_w3_contracts
from src.web3py.extensions import LidoContracts, LidoValidatorsProvider, TransactionUtils, WithdrawalRequests
from src.web3py.extensions import LidoContracts, LidoValidatorsProvider, TransactionUtils
from src.web3py.types import Web3
from tests.providers_utils import (
ResponseFromFile,
Expand Down Expand Up @@ -182,11 +182,6 @@ def get_blockstamp_by_state(w3, state_id) -> ReferenceBlockStamp:
)


@pytest.fixture()
def withdrawal_requests(web3):
web3.attach_modules({"withdrawal_requests": WithdrawalRequests})


@dataclass
class Account:
address: ChecksumAddress
Expand Down
55 changes: 0 additions & 55 deletions tests/web3_extentions/test_withdrawal_requests.py

This file was deleted.

0 comments on commit 8e089b3

Please sign in to comment.