-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
REP-02, REP-03: Proposal on mainnet (#296)
- Loading branch information
Showing
26 changed files
with
5,798 additions
and
308 deletions.
There are no files selected for viewing
2,910 changes: 2,910 additions & 0 deletions
2,910
deployments/ethereum/MainchainGatewayV3Logic.json
Large diffs are not rendered by default.
Oops, something went wrong.
636 changes: 636 additions & 0 deletions
636
deployments/ethereum/solcInputs/f9f5036294d35a88da21dae55fc8b26c.json
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
154 changes: 154 additions & 0 deletions
154
deployments/ronin-mainnet/solcInputs/dc057a85cb82f6c5109f62edfa65ae8d.json
Large diffs are not rendered by default.
Oops, something went wrong.
636 changes: 636 additions & 0 deletions
636
deployments/ronin-mainnet/solcInputs/f9f5036294d35a88da21dae55fc8b26c.json
Large diffs are not rendered by default.
Oops, something went wrong.
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
32 changes: 31 additions & 1 deletion
32
script/20231003-rep-002-rep-003/20231003_REP002AndREP003_ETH.s.sol
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 |
---|---|---|
@@ -1,2 +1,32 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.19; | ||
pragma solidity ^0.8.19; | ||
|
||
import { RoninGovernanceAdmin } from "@ronin/contracts/ronin/RoninGovernanceAdmin.sol"; | ||
import { MainchainBridgeManager } from "@ronin/contracts/mainchain/MainchainBridgeManager.sol"; | ||
import { MainchainGatewayV3 } from "@ronin/contracts/mainchain/MainchainGatewayV3.sol"; | ||
import { TransparentUpgradeableProxyV2 } from "@ronin/contracts/extensions/TransparentUpgradeableProxyV2.sol"; | ||
|
||
import { MappedTokenConsumer } from "@ronin/contracts/interfaces/consumers/MappedTokenConsumer.sol"; | ||
import { console2, BaseDeploy, ContractKey, Network } from "../BaseDeploy.s.sol"; | ||
|
||
contract Simulation__20231003_UpgradeREP002AndREP003_ETH is BaseDeploy, MappedTokenConsumer { | ||
RoninGovernanceAdmin internal _mainchainGovernanceAdmin; | ||
MainchainGatewayV3 internal _mainchainGatewayV3; | ||
MainchainBridgeManager internal _mainchainBridgeManager; | ||
|
||
function run() public virtual trySetUp { | ||
_mainchainGatewayV3 = MainchainGatewayV3(_config.getAddressFromCurrentNetwork(ContractKey.MainchainGatewayV3)); | ||
_mainchainBridgeManager = MainchainBridgeManager( | ||
_config.getAddressFromCurrentNetwork(ContractKey.MainchainBridgeManager) | ||
); | ||
_mainchainGovernanceAdmin = RoninGovernanceAdmin(_config.getAddressFromCurrentNetwork(ContractKey.GovernanceAdmin)); | ||
|
||
_upgradeProxy( | ||
ContractKey.MainchainGatewayV3, | ||
abi.encodeCall(MainchainGatewayV3.initializeV2, (address(_mainchainBridgeManager))) | ||
); | ||
vm.startPrank(address(_mainchainGovernanceAdmin)); | ||
TransparentUpgradeableProxyV2(payable(address(_mainchainGatewayV3))).changeAdmin(address(_mainchainBridgeManager)); | ||
vm.stopPrank(); | ||
} | ||
} |
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
158 changes: 158 additions & 0 deletions
158
...-rep-003/20231003_REP002AndREP003_RON_NonConditional_GatewayUpgrade_ActualProposals.s.sol
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.