refactor: remove unused Synthetix and Perpetual APIs#275
Merged
Conversation
The Synthetix and Perpetual balance handlers are no longer reached by any consumer (no chaingate fetch route resolves to them; 0 provider instantiations in 180 days of logs). Remove the handler modules, their tests, and the web3_utils helper they relied on, along with the now-unused web3/bs4/lxml/marko dependencies and the orphaned COIN_SNX / CoingeckoId.SYNTHETIX. COIN_PERP, CoingeckoId.PERPETUAL, and the DeBank PERP coingecko mapping are kept: DeBank still uses them to enrich the live PERP token, independent of the removed staking handler. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01285Ax1A2iCticAcHxpjtQY
- add cytoolz to install_requires: it is imported by v2/api/solana.py (`from cytoolz import reduceby`) but was previously undeclared, so a clean install could fail to import the Solana API. - remove solders from install_requires: not referenced anywhere in src or tests. - remove the now-unused `import inspect` from blockapi/__init__.py (leftover after an earlier cleanup). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01285Ax1A2iCticAcHxpjtQY
eth_utils is imported directly in three modules (utils/address.py, v2/api/ethplorer.py, v2/api/covalenth/base.py) but was only present transitively via solders. Removing solders in 8ceb7a4 left eth_utils undeclared, so a clean install fails with `ModuleNotFoundError: No module named 'eth_utils'` (seen in CI). Add eth-utils>=2.0.0 to install_requires; to_checksum_address has been available since the 1.x line, so this floor is conservative. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QEuGugCu3PzGGojrCHonFN
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.