Skip to content

Commit

Permalink
feat(ctb): move message passer to new address (ethereum-optimism#3521)
Browse files Browse the repository at this point in the history
Moves the L2ToL1MessagePasser to a new address and introduces the
LegacyMessagePasser to live at the old address.

Co-authored-by: Mark Tyneway <[email protected]>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Sep 22, 2022
1 parent 8e71e7a commit e2faaa8
Show file tree
Hide file tree
Showing 30 changed files with 430 additions and 30 deletions.
5 changes: 5 additions & 0 deletions .changeset/brown-tomatoes-behave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/sdk': patch
---

Update for new BedrockMessagePasser contract
5 changes: 5 additions & 0 deletions .changeset/moody-cobras-visit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/contracts-bedrock': minor
---

Moves the L2ToL1MessagePasser to a new address and puts a LegacyMessagePasser at the old address.
6 changes: 5 additions & 1 deletion op-bindings/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ bindings: l1block-bindings \
optimism-portal-bindings \
l2-output-oracle-bindings \
gas-price-oracle-bindings \
legacy-message-passer-bindings \
address-manager-bindings \
l2-cross-domain-messenger-bindings \
l2-standard-bridge-bindings \
Expand Down Expand Up @@ -76,6 +77,9 @@ proxy-bindings: compile
proxy-admin-bindings: compile
./gen_bindings.sh contracts/universal/ProxyAdmin.sol:ProxyAdmin $(pkg)

legacy-message-passer-bindings: compile
./gen_bindings.sh contracts/legacy/LegacyMessagePasser.sol:LegacyMessagePasser $(pkg)

erc20-bindings: compile
./gen_bindings.sh node_modules/@openzeppelin/contracts/token/ERC20/ERC20.sol:ERC20 $(pkg)

Expand All @@ -92,7 +96,7 @@ more:
go run ./gen/main.go \
-artifacts ../packages/contracts-bedrock/artifacts \
-out ./bindings \
-contracts OptimismMintableERC20Factory,L2StandardBridge,L1BlockNumber,DeployerWhitelist,Proxy,OptimismPortal,L2ToL1MessagePasser,L2CrossDomainMessenger,GasPriceOracle,SequencerFeeVault,L1Block,LegacyERC20ETH,WETH9,GovernanceToken,L1CrossDomainMessenger \
-contracts OptimismMintableERC20Factory,L2StandardBridge,L1BlockNumber,LegacyMessagePasser,DeployerWhitelist,Proxy,OptimismPortal,L2ToL1MessagePasser,L2CrossDomainMessenger,GasPriceOracle,SequencerFeeVault,L1Block,LegacyERC20ETH,WETH9,GovernanceToken,L1CrossDomainMessenger \
-package bindings

mkdir:
Expand Down
2 changes: 1 addition & 1 deletion op-bindings/bindings/gaspriceoracle_more.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion op-bindings/bindings/governancetoken_more.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e2faaa8

Please sign in to comment.