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

feat: add cross domain message context function #12477

Conversation

0xDiscotech
Copy link
Contributor

@0xDiscotech 0xDiscotech commented Oct 15, 2024

Description

Now crossDomainMessageContext() the cross domain sender and source are returned both at once, to avoid having to do 2 different calls in order to get those values.

Tests

  • Add L2ToL2CrossDomainMessenger tests for the crossDomainMessageContext() function
  • Update the SuperchainTokenBridge mocked calls on the tests, since it now calls the crossDomainMessageContext() function

Metadata

CLOSES: #12485

Addresses #12321 (comment)

Additional Context
The SuperchainWETH sendERC20() and relayERC20 functions weren't modified to call crossDomainContext() because they will be removed on a subsequent PR

agusduha and others added 30 commits September 25, 2024 15:20
* feat: add superchain erc20 bridge

* fix: interfaces and versions
* refactor: use oz upgradeable erc20 as dependency

* chore: update interfaces

* fix: tests based on changes

* refactor: remove op as dependency

* feat: add check for supererc20 bridge on modifier

* chore: update tests and interfaces

* chore: update stack vars name on test

* chore: remove empty gitmodules file

* chore: update superchain weth errors
* test: add superchain erc20 bridge tests

* test: add optimism superchain erc20 beacon tests

* test: remove unnecessary test

* test: tests fixes

* test: tests fixes
* chore: update missing bridge on natspec

* fix: natspecs

---------

Co-authored-by: agusduha <[email protected]>
* refactor: rename mint and burn functions on superchain erc20

* chore: rename optimism superchain erc20 to superchain erc20

* feat: create optimism superchain erc20 contract

* chore: update natspec and errors

* fix: superchain erc20 tests

* refactor: make superchain erc20 abstract

* refactor: move storage and erc20 metadata functions to implementation

* chore: update interfaces

* chore: update superchain erc20 events

* fix: tests

* fix: natspecs

* fix: add semmver lock and snapshots

* fix: remove unused imports

* fix: natspecs

---------

Co-authored-by: 0xDiscotech <[email protected]>
* fix: semver natspec check failure

* fix: ignore mock contracts in semver natspec script

* fix: error message
* feat: add crosschain erc20 interface

* fix: refactor interfaces
Co-authored-by: 0xng <[email protected]>
Co-authored-by: 0xParticle <[email protected]>
Co-authored-by: gotzenx <[email protected]>
* fix: stop inheriting superchain interfaces

* fix: move events and erros into the implementation

* fix: make superchainERC20 inherits from crosschainERC20
* fix: refactor common errors

* fix: remove unused version
…ory-merge-conflicts

fix: superchain erc20 factory merge conflicts
@maurelian maurelian added this pull request to the merge queue Oct 17, 2024
Merged via the queue into ethereum-optimism:develop with commit 71ca0f1 Oct 17, 2024
47 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.

L2toL2CDM new context function
3 participants