-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new migration scripts and deployment artifacts for Aave workflows…
… and Viewer contract upgrades across multiple chains.
- Loading branch information
Showing
8 changed files
with
1,338 additions
and
2 deletions.
There are no files selected for viewing
408 changes: 408 additions & 0 deletions
408
broadcast/145-upgrade_access_protocol.s.sol/8453/run-1731531756.json
Large diffs are not rendered by default.
Oops, something went wrong.
408 changes: 408 additions & 0 deletions
408
broadcast/145-upgrade_access_protocol.s.sol/8453/run-latest.json
Large diffs are not rendered by default.
Oops, something went wrong.
117 changes: 117 additions & 0 deletions
117
broadcast/146-upgrade-access-viewer.s.sol/42161/run-1731531235.json
Large diffs are not rendered by default.
Oops, something went wrong.
117 changes: 117 additions & 0 deletions
117
broadcast/146-upgrade-access-viewer.s.sol/42161/run-latest.json
Large diffs are not rendered by default.
Oops, something went wrong.
125 changes: 125 additions & 0 deletions
125
broadcast/146-upgrade-access-viewer.s.sol/8453/run-1731531918.json
Large diffs are not rendered by default.
Oops, something went wrong.
125 changes: 125 additions & 0 deletions
125
broadcast/146-upgrade-access-viewer.s.sol/8453/run-latest.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.18; | ||
|
||
import {SafeBeaconProxy} from "@kinto-core/proxy/SafeBeaconProxy.sol"; | ||
import {Viewer} from "@kinto-core/viewers/Viewer.sol"; | ||
|
||
import {UUPSProxy} from "@kinto-core-test/helpers/UUPSProxy.sol"; | ||
import {MigrationHelper} from "@kinto-core-script/utils/MigrationHelper.sol"; | ||
|
||
import {Script} from "forge-std/Script.sol"; | ||
import {console2} from "forge-std/console2.sol"; | ||
|
||
contract DeployViewerScript is Script, MigrationHelper { | ||
function run() public override { | ||
super.run(); | ||
|
||
Viewer viewer = Viewer(_getChainDeployment("Viewer")); | ||
if (address(viewer) == address(0)) { | ||
console2.log("Viewer is not deployed"); | ||
return; | ||
} | ||
|
||
vm.broadcast(deployerPrivateKey); | ||
address newImpl = address(new Viewer(getAavePoolProvider(), _getChainDeployment("AccessRegistry"))); | ||
|
||
vm.broadcast(deployerPrivateKey); | ||
viewer.upgradeTo(newImpl); | ||
|
||
require(viewer.getBalances(new address[](0), address(this)).length == 0, "getBalances not working"); | ||
} | ||
} | ||
|
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