Skip to content

Commit

Permalink
feature: prepare opbnb mainnet contracts upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
redhdx committed Dec 6, 2024
1 parent 409b8cd commit 2be6fe2
Show file tree
Hide file tree
Showing 5 changed files with 723 additions and 11 deletions.
22 changes: 11 additions & 11 deletions op-chain-ops/opbnb-upgrades/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ var BscTestnetImplContracts = map[string]common.Address{
}

var BscMainnetProxyContracts = map[string]common.Address{
"SuperChainConfigProxy": common.HexToAddress("0x0000000000000000000000000000000000000000"),
"SuperChainConfigProxy": common.HexToAddress("0x30B6B00029343a71aC9d0F7924fd09c6325Beca4"),
"L1CrossDomainMessengerProxy": common.HexToAddress("0xd95D508f13f7029CCF0fb61984d5dfD11b879c4f"),
"L1ERC721BridgeProxy": common.HexToAddress("0xC7c796D3B712ad223Bc29Bf85E6cdD3045D998C4"),
"L1StandardBridgeProxy": common.HexToAddress("0xF05F0e4362859c3331Cb9395CBC201E3Fa6757Ea"),
Expand All @@ -66,16 +66,16 @@ var BscMainnetProxyContracts = map[string]common.Address{
}

var BscMainnetImplContracts = map[string]common.Address{
"SuperChainConfig": common.HexToAddress(""),
"L1CrossDomainMessenger": common.HexToAddress(""),
"L1ERC721Bridge": common.HexToAddress(""),
"L1StandardBridge": common.HexToAddress(""),
"L2OutputOracle": common.HexToAddress(""),
"OptimismMintableERC20Factory": common.HexToAddress(""),
"OptimismPortal": common.HexToAddress(""),
"SystemConfig": common.HexToAddress(""),
"ProxyAdmin": common.HexToAddress(""),
"StorageSetter": common.HexToAddress(""),
"SuperChainConfig": common.HexToAddress("0x0aE2a6214c81c2772A15dDA4DE4eACa5cD118F8E"),
"L1CrossDomainMessenger": common.HexToAddress("0x8e535aC96EADd9a582dC080eCc084C0FCfeFF4d8"),
"L1ERC721Bridge": common.HexToAddress("0x82d80f79667DC09B6d6E636a5fecc7CE4c9dc2E9"),
"L1StandardBridge": common.HexToAddress("0xfa6A7f5Ab577d9B2b4EBb1a48A86311d7d4F5D3f"),
"L2OutputOracle": common.HexToAddress("0x40D65472D53634079A251b496204F0036Dc00800"),
"OptimismMintableERC20Factory": common.HexToAddress("0xBB0fa18143400886879e23c942c06D6f0ECb1229"),
"OptimismPortal": common.HexToAddress("0xf3D26F45D375E5eBBBd2B5Ca7dC2638916c37726"),
"SystemConfig": common.HexToAddress("0x3f1cD0209E1673838AC187D118551E192047aa8F"),
"ProxyAdmin": common.HexToAddress("0x27a591Ec09AAfEEb39d7533AEf7C64E0305D1576"),
"StorageSetter": common.HexToAddress("0x8bF708F44a3e0e1e766B010c71DCF297215a8aeB"),
}

var BscQAnetProxyContracts = map[string]common.Address{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"L1CrossDomainMessenger": "0x8e535aC96EADd9a582dC080eCc084C0FCfeFF4d8",
"L1ERC721Bridge": "0x82d80f79667DC09B6d6E636a5fecc7CE4c9dc2E9",
"L1StandardBridge": "0xfa6A7f5Ab577d9B2b4EBb1a48A86311d7d4F5D3f",
"L2OutputOracle": "0x40D65472D53634079A251b496204F0036Dc00800",
"OptimismMintableERC20Factory": "0xBB0fa18143400886879e23c942c06D6f0ECb1229",
"OptimismPortal": "0xf3D26F45D375E5eBBBd2B5Ca7dC2638916c37726",
"StorageSetter": "0x8bF708F44a3e0e1e766B010c71DCF297215a8aeB",
"SuperchainConfig": "0x0aE2a6214c81c2772A15dDA4DE4eACa5cD118F8E",
"SuperchainConfigProxy": "0x30B6B00029343a71aC9d0F7924fd09c6325Beca4",
"SystemConfig": "0x3f1cD0209E1673838AC187D118551E192047aa8F"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
[
{
"L1CrossDomainMessengerInfo": "",
"Name": "L1CrossDomainMessenger",
"Address": "0xd95D508f13f7029CCF0fb61984d5dfD11b879c4f",
"Version": "1.4.0",
"OtherMessenger": "0x4200000000000000000000000000000000000007",
"Portal": "0x1876EA7702C0ad0C6A2ae6036DE7733edfBca519",
"SuperChainConfig": "",
"SystemConfig": ""
},
{
"L1ERC721BridgeInfo": "",
"Name": "L1ERC721Bridge",
"Address": "0xC7c796D3B712ad223Bc29Bf85E6cdD3045D998C4",
"Version": "1.1.1",
"OtherMessenger": "0xd95D508f13f7029CCF0fb61984d5dfD11b879c4f",
"OtherBridge": "0x4200000000000000000000000000000000000014",
"SuperChainConfig": ""
},
{
"L1StandardBridgeInfo": "",
"Name": "L1StandardBridge",
"Address": "0xF05F0e4362859c3331Cb9395CBC201E3Fa6757Ea",
"Version": "1.1.0",
"OtherMessenger": "0xd95D508f13f7029CCF0fb61984d5dfD11b879c4f",
"OtherBridge": "0x4200000000000000000000000000000000000010",
"SuperChainConfig": "",
"SystemConfig": ""
},
{
"L2OutputOracleInfo": "",
"Name": "L2OutputOracle",
"Address": "0x153CAB79f4767E2ff862C94aa49573294B13D169",
"Version": "1.3.0",
"SubmissionInterval": "3600",
"L2BlockTime": "1",
"Challenger": "0xAAA1092d8eFed84F25632C39f02361244739eCaA",
"Proposer": "0xc235c904AD9EfcABfF4628E3279994A4c0A9d591",
"FinalizationPeriodSeconds": "604800",
"StartingBlockNumber": "0",
"StartingTimestamp": "1691753723"
},
{
"OptimismMintableERC20FactoryInfo": "",
"Name": "OptimismMintableERC20Factory",
"Address": "",
"Version": "1.1.0",
"Bridge": "0xF05F0e4362859c3331Cb9395CBC201E3Fa6757Ea"
},
{
"OptimismPortalInfo": "",
"Name": "OptimismPortal",
"Address": "0x1876EA7702C0ad0C6A2ae6036DE7733edfBca519",
"Version": "1.6.0",
"L2Oracle": "0x153CAB79f4767E2ff862C94aa49573294B13D169",
"L2Sender": "0x000000000000000000000000000000000000dEaD",
"SystemConfig": "0x7AC836148C14c74086D57F7828F2D065672Db3B8",
"Guardian": "0xAAA1092d8eFed84F25632C39f02361244739eCaA",
"SuperChainConfig": "",
"Balance": "80434807909427209222417"
},
{
"SystemConfigInfo": "",
"Name": "SystemConfig",
"Address": "0x7AC836148C14c74086D57F7828F2D065672Db3B8",
"Version": "1.3.0",
"Owner": "0x47D406f5faa74f8600870f8c0053D20AEB1F0D36",
"UnsafeBlockSigner": "0x92c545a17D14DdE2b46f871f7ED334062a4250bB",
"Overhead": "0",
"Scalar": "452312848583266388373324160190187140051835877600158453279134000734489610656",
"BatcherHash": "000000000000000000000000ef8783382ef80ec23b66c43575a6103deca909c3",
"GasLimit": "100000000",
"ResourceConfig": {
"MaxResourceLimit": 80000000,
"ElasticityMultiplier": 2,
"BaseFeeMaxChangeDenominator": 8,
"MinimumBaseFee": 1000000000,
"SystemTxMaxGas": 1000000,
"MaximumBaseFee": "340282366920938463463374607431768211455"
},
"StartBlock": "",
"BaseFeeScalar": "",
"BlobBaseFeeScalar": "",
"BatcherInbox": "",
"L1CrossDomainMessengerAddress": "",
"L1ERC721BridgeAddress": "",
"L1StandardBridgeAddress": "",
"DisputeGameFactoryAddress": "",
"OptimismPortalAddress": "",
"OptimismMintableERC20FactoryAddress": "",
"GasPayingTokenAddress": ""
}
]

Loading

0 comments on commit 2be6fe2

Please sign in to comment.