Commit b5849c42 authored by Mark Tyneway's avatar Mark Tyneway

predeploys: add constants

- `L2ERC721Bridge`
- `OptimismMintableERC721Factory`

The `OptimismMintableERC721Factory` will be deployed regularly
before bedrock and then will be included as a predeploy
as part of the bedrock genesis creation.

predeploys: update addresses
parent 0ffd427c
...@@ -16,6 +16,8 @@ const ( ...@@ -16,6 +16,8 @@ const (
L1Block = "0x4200000000000000000000000000000000000015" L1Block = "0x4200000000000000000000000000000000000015"
GovernanceToken = "0x4200000000000000000000000000000000000042" GovernanceToken = "0x4200000000000000000000000000000000000042"
LegacyMessagePasser = "0x4200000000000000000000000000000000000000" LegacyMessagePasser = "0x4200000000000000000000000000000000000000"
L2ERC721Bridge = "0x4200000000000000000000000000000000000014"
OptimismMintableERC721Factory = "0x4200000000000000000000000000000000000017"
) )
var ( var (
...@@ -32,6 +34,8 @@ var ( ...@@ -32,6 +34,8 @@ var (
L1BlockAddr = common.HexToAddress(L1Block) L1BlockAddr = common.HexToAddress(L1Block)
GovernanceTokenAddr = common.HexToAddress(GovernanceToken) GovernanceTokenAddr = common.HexToAddress(GovernanceToken)
LegacyMessagePasserAddr = common.HexToAddress(LegacyMessagePasser) LegacyMessagePasserAddr = common.HexToAddress(LegacyMessagePasser)
L2ERC721BridgeAddr = common.HexToAddress(L2ERC721Bridge)
OptimismMintableERC721FactoryAddr = common.HexToAddress(OptimismMintableERC721Factory)
Predeploys = make(map[string]*common.Address) Predeploys = make(map[string]*common.Address)
) )
...@@ -50,4 +54,6 @@ func init() { ...@@ -50,4 +54,6 @@ func init() {
Predeploys["L1Block"] = &L1BlockAddr Predeploys["L1Block"] = &L1BlockAddr
Predeploys["GovernanceToken"] = &GovernanceTokenAddr Predeploys["GovernanceToken"] = &GovernanceTokenAddr
Predeploys["LegacyMessagePasser"] = &LegacyMessagePasserAddr Predeploys["LegacyMessagePasser"] = &LegacyMessagePasserAddr
Predeploys["L2ERC721Bridge"] = &L2ERC721BridgeAddr
Predeploys["OptimismMintableERC721Factory"] = &OptimismMintableERC721FactoryAddr
} }
...@@ -22,6 +22,11 @@ library Predeploys { ...@@ -22,6 +22,11 @@ library Predeploys {
*/ */
address internal constant L2_STANDARD_BRIDGE = 0x4200000000000000000000000000000000000010; address internal constant L2_STANDARD_BRIDGE = 0x4200000000000000000000000000000000000010;
/**
* @notice Address of the L2ERC721Bridge predeploy.
*/
address internal constant L2_ERC721_BRIDGE = 0x4200000000000000000000000000000000000014;
/** /**
* @notice Address of the SequencerFeeWallet predeploy. * @notice Address of the SequencerFeeWallet predeploy.
*/ */
...@@ -33,6 +38,12 @@ library Predeploys { ...@@ -33,6 +38,12 @@ library Predeploys {
address internal constant OPTIMISM_MINTABLE_ERC20_FACTORY = address internal constant OPTIMISM_MINTABLE_ERC20_FACTORY =
0x4200000000000000000000000000000000000012; 0x4200000000000000000000000000000000000012;
/**
* @notice Address of the OptimismMintableERC721Factory predeploy.
*/
address internal constant OPTIMISM_MINTABLE_ERC721_FACTORY =
0x4200000000000000000000000000000000000017;
/** /**
* @notice Address of the L1Block predeploy. * @notice Address of the L1Block predeploy.
*/ */
......
...@@ -20,8 +20,6 @@ export const predeploys = { ...@@ -20,8 +20,6 @@ export const predeploys = {
WETH9: '0x4200000000000000000000000000000000000006', WETH9: '0x4200000000000000000000000000000000000006',
GovernanceToken: '0x4200000000000000000000000000000000000042', GovernanceToken: '0x4200000000000000000000000000000000000042',
LegacyMessagePasser: '0x4200000000000000000000000000000000000000', LegacyMessagePasser: '0x4200000000000000000000000000000000000000',
} L2ERC721Bridge: '0x4200000000000000000000000000000000000014',
OptimismMintableERC721Factory: '0x4200000000000000000000000000000000000017',
export const futurePredeploys = {
System1: '0x4200000000000000000000000000000000000014',
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment