Skip to content

refactor: remove unused Synthetix and Perpetual APIs#275

Merged
galvanizze merged 3 commits into
masterfrom
remove-synthetix-perpetual
Jun 22, 2026
Merged

refactor: remove unused Synthetix and Perpetual APIs#275
galvanizze merged 3 commits into
masterfrom
remove-synthetix-perpetual

Conversation

@galvanizze

Copy link
Copy Markdown
Member

No description provided.

galvanizze and others added 3 commits June 20, 2026 13:19
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
@galvanizze galvanizze requested a review from Vinsho June 22, 2026 11:27

@Vinsho Vinsho left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

♻️

@galvanizze galvanizze merged commit 347b276 into master Jun 22, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants