Skip to content

refactor: move calldata decoder from timelock/ to utils/calldata/#201

Merged
spalen0 merged 1 commit intomainfrom
refactor/move-calldata-decoder-to-utils
Apr 4, 2026
Merged

refactor: move calldata decoder from timelock/ to utils/calldata/#201
spalen0 merged 1 commit intomainfrom
refactor/move-calldata-decoder-to-utils

Conversation

@spalen0
Copy link
Copy Markdown
Collaborator

@spalen0 spalen0 commented Apr 4, 2026

Summary

  • Move timelock/calldata_decoder.py and timelock/known_selectors.py to utils/calldata/ to fix inverted dependency (utils/ was importing from a protocol directory)
  • Move compound/test_tally.py to tests/ for consistency with test directory convention
  • Update all imports and mock patch paths in tests

Test plan

  • uv run ruff check . passes
  • uv run ruff format --check . passes
  • uv run pytest tests/ — 98 passed (1 pre-existing telegram topic test failure)
  • Grep confirms no remaining from timelock.calldata_decoder or from timelock.known_selectors imports

🤖 Generated with Claude Code

Fix inverted dependency where utils/ imported from timelock/. The calldata
decoder and known_selectors are shared utilities used by utils/proxy.py and
utils/llm/ai_explainer.py, so they belong in utils/. Also moves
compound/test_tally.py to tests/ for consistency.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@spalen0 spalen0 merged commit ef5574d into main Apr 4, 2026
2 checks passed
@spalen0 spalen0 deleted the refactor/move-calldata-decoder-to-utils branch April 4, 2026 20:31
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.

1 participant