Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

interop: change SuperchainERC20 function naming to be Superchain neutral #413

Merged
merged 5 commits into from
Oct 3, 2024

Conversation

0xParticle
Copy link
Contributor

@0xParticle 0xParticle commented Oct 3, 2024

Description
Modified the __superchainMint and __superchainBurn functions to be cross-chain neutral and extensible to other L2s.
These PR changes the names to __crosschainMint and __crosschainBurn. The same for the CrosschainMinted and CrosschainBurnt events. Moreover, this interface gets renamed to ICrosschainERC20 and SuperchainERC20 will extend from it to make the functions only callable by the SuperchainERC20Bridge.

@tynes tynes merged commit e1760df into main Oct 3, 2024
1 check passed
@tynes tynes deleted the feat/change-superchainerc20-function-naming branch October 3, 2024 17:55

```solidity
event SuperchainMinted(address indexed _to, uint256 _amount)
event CrosschainMinted(address indexed _to, uint256 _amount)

Choose a reason for hiding this comment

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

This doesn't really matter but just want to note that the main optimism repository doesn't prefix event parameters with underscores.

e.g. in this implementation

https:/defi-wonderland/optimism/blob/a5aca61f43f0141e2f986f478c7cab5b48216b56/packages/contracts-bedrock/src/L2/interfaces/ICrosschainERC20.sol

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