-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add migration artifact and deployment script
- Loading branch information
Showing
11 changed files
with
2,630 additions
and
8 deletions.
There are no files selected for viewing
489 changes: 489 additions & 0 deletions
489
broadcast/20252101-deploy-wbtc-and-legacy-migrator.s.sol/2020/run-1737528337.json
Large diffs are not rendered by default.
Oops, something went wrong.
746 changes: 746 additions & 0 deletions
746
deployments/ronin-mainnet/LegacyTokenMigratorLogic.json
Large diffs are not rendered by default.
Oops, something went wrong.
139 changes: 139 additions & 0 deletions
139
deployments/ronin-mainnet/LegacyTokenMigratorProxy.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.
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
25 changes: 25 additions & 0 deletions
25
...t/20252101-deploy-wbtc-and-legacy-migrator/20252101-deploy-wbtc-and-legacy-migrator.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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.19; | ||
|
||
import { WBTC, WBTCDeploy } from "script/contracts/WBTCDeploy.s.sol"; | ||
import { LegacyTokenMigrator, LegacyTokenMigratorDeploy } from "script/contracts/LegacyTokenMigratorDeploy.s.sol"; | ||
import { Migration } from "script/Migration.s.sol"; | ||
import { Contract } from "script/utils/Contract.sol"; | ||
|
||
contract Migration__20252101_DeployWBTCAndLegacyMigrator is Migration { | ||
function run() public virtual { | ||
address prvWBTC = loadContract(Contract.WBTC.key()); | ||
|
||
WBTC newBTC = new WBTCDeploy().run(); | ||
LegacyTokenMigrator migrator = new LegacyTokenMigratorDeploy().run(); | ||
|
||
address admin = 0x9D05D1F5b0424F8fDE534BC196FFB6Dd211D902a; // Multisig Address | ||
address[] memory legacyTokens = new address[](1); | ||
legacyTokens[0] = prvWBTC; | ||
address[] memory newTokens = new address[](1); | ||
newTokens[0] = address(newBTC); | ||
|
||
vm.broadcast(sender()); | ||
migrator.initialize(admin, legacyTokens, newTokens); | ||
} | ||
} |
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,17 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.19; | ||
|
||
import { LegacyTokenMigrator } from "src/ronin/migration/LegacyTokenMigrator.sol"; | ||
import { Contract } from "../utils/Contract.sol"; | ||
import { Migration } from "../Migration.s.sol"; | ||
|
||
contract LegacyTokenMigratorDeploy is Migration { | ||
function run() public virtual returns (LegacyTokenMigrator instance) { | ||
instance = LegacyTokenMigrator(_deployProxy(Contract.LegacyTokenMigrator.key())); | ||
} | ||
|
||
function _getProxyAdmin() internal virtual override returns (address payable) { | ||
// ronin-mainnet: SC Multisig | ||
return payable(0x9D05D1F5b0424F8fDE534BC196FFB6Dd211D902a); | ||
} | ||
} |
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