-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(mono): add proposer estimate l1 gas used
- Loading branch information
1 parent
c45e3e2
commit a7f72db
Showing
4 changed files
with
53 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.18; | ||
|
||
import "forge-std/Script.sol"; | ||
import "../contracts/common/AddressManager.sol"; | ||
import "../contracts/L1/MxcL1.sol"; | ||
import "@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol"; | ||
import "../contracts/bridge/EtherVault.sol"; | ||
import "../contracts/bridge/TokenVault.sol"; | ||
import "../contracts/L1/MxcToken.sol"; | ||
import "../contracts/bridge/Bridge.sol"; | ||
import "../contracts/thirdparty/WETH9.sol"; | ||
|
||
contract UpgradeMXCL1 is Script { | ||
|
||
uint256 public privateKey = vm.envUint("PRIVATE_KEY"); | ||
|
||
address payable public MXCL1 = payable(0x54D8864e8855A7B66eE42B8F2Eaa0F2E06bd641a); | ||
|
||
|
||
function run() external { | ||
vm.startBroadcast(privateKey); | ||
TransparentUpgradeableProxy(MXCL1).upgradeTo(address(new ProxiedMxcL1())); | ||
|
||
vm.stopBroadcast(); | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters