Skip to content

feat: add ERC7540 and ERC7575 interfaces#644

Merged
zerosnacks merged 4 commits into
foundry-rs:masterfrom
ERC4626-Alliance:add-erc4626-extensions
Feb 10, 2025
Merged

feat: add ERC7540 and ERC7575 interfaces#644
zerosnacks merged 4 commits into
foundry-rs:masterfrom
ERC4626-Alliance:add-erc4626-extensions

Conversation

@hieronx

@hieronx hieronx commented Jan 11, 2025

Copy link
Copy Markdown
Contributor

This adds the interfaces for the 2 finalized extensions to ERC4626, ERC7540 and ERC7575. See https://ethereum.org/en/developers/docs/standards/tokens/erc-4626/#introduction for details on these extensions.

Adding these would be helpful for repositories that rely on the interfaces in forge-std.

ERC7540 interfaces are split by async deposit, async redeem, and fully async vaults, per the ERC specification. This also ensures the ERC-165 ID matches for each vault type.

The ERC7575 interface specifies all ERC4626 methods, rather than extending IERC4626.sol, because:

  1. ERC20 methods need to be excluded for ERC7575.
  2. This ensures IERC7575.interfaceId is the expected ID as specified in https://eips.ethereum.org/EIPS/eip-7575#erc-165-support, since .interfaceID does not account for inherited interfaces.

@hieronx hieronx changed the title Add ERC7540 and ERC7575 feat: add ERC7540 and ERC7575 interfaces Jan 11, 2025
@zerosnacks

Copy link
Copy Markdown
Contributor

Hi @hieronx

Thanks for your PR, would you mind pulling from master and merging it?

This will resolve the CI issue

@hieronx

hieronx commented Jan 24, 2025

Copy link
Copy Markdown
Contributor Author

Done @zerosnacks !

@hieronx

hieronx commented Jan 24, 2025

Copy link
Copy Markdown
Contributor Author

@zerosnacks CI is fixed now as well

@zerosnacks zerosnacks requested a review from mds1 January 27, 2025 14:14
@zerosnacks

zerosnacks commented Feb 10, 2025

Copy link
Copy Markdown
Contributor

I don't see any blockers, merging this.

Thanks @hieronx for your contribution 👍

@zerosnacks zerosnacks merged commit bf909b2 into foundry-rs:master Feb 10, 2025
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.

3 participants