Skip to content

refactor: consolidate IERC20 in src/interfaces, drop openzeppelin-contracts submodule#52

Merged
0xTimepunk merged 1 commit into
mainfrom
feat/vendor-amb-libs
May 8, 2026
Merged

refactor: consolidate IERC20 in src/interfaces, drop openzeppelin-contracts submodule#52
0xTimepunk merged 1 commit into
mainfrom
feat/vendor-amb-libs

Conversation

@0xTimepunk
Copy link
Copy Markdown
Collaborator

IERC20 was referenced three different ways across the repo: vendored at src/across/interfaces/IERC20.sol, imported from @openzeppelin/contracts in Debridge, and declared inline in test/Stargate.t.sol (with test/DebridgeDln.t.sol even reaching directly into lib/...). This PR moves the canonical interface to src/interfaces/IERC20.sol, points all five Solidity sites and the inline test declaration at it, and drops the lib/openzeppelin-contracts submodule (no other code in the repo referenced it). Net: one source of truth for the ERC-20 interface and one fewer submodule to clone.

…tracts submodule

IERC20 was previously referenced three different ways across the repo:
vendored at src/across/interfaces/IERC20.sol, imported from
@openzeppelin/contracts in Debridge, and declared inline in
test/Stargate.t.sol. All five Solidity sites and one test now share a
single source at src/interfaces/IERC20.sol. The lib/openzeppelin-contracts
submodule and its raw lib/... path import in test/DebridgeDln.t.sol go
with it.
@0xTimepunk 0xTimepunk merged commit d882cc4 into main May 8, 2026
2 checks passed
@0xTimepunk 0xTimepunk deleted the feat/vendor-amb-libs branch May 8, 2026 14:22
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