Skip to content

Commit

Permalink
Merge pull request #228 from aavegotchi/refactor-grant-experience
Browse files Browse the repository at this point in the history
Add dedploy script for upgrading DAOFacet
  • Loading branch information
cinnabarhorse authored Aug 5, 2024
2 parents 3d83f8c + 8a8d73f commit d63f7ef
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions scripts/upgrades/upgrade-removeExcessEvent.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import { ethers, run } from "hardhat";
import {
convertFacetAndSelectorsToString,
DeployUpgradeTaskArgs,
FacetsAndAddSelectors,
} from "../../tasks/deployUpgrade";
import { maticDiamondAddress } from "../helperFunctions";

export async function upgrade() {
const diamondUpgrader = "0x35fe3df776474a7b24b3b1ec6e745a830fdad351";

const facets: FacetsAndAddSelectors[] = [
{
facetName: "DAOFacet",
addSelectors: [],
removeSelectors: [],
},
];

const joined = convertFacetAndSelectorsToString(facets);

const args: DeployUpgradeTaskArgs = {
diamondUpgrader: diamondUpgrader,
diamondAddress: maticDiamondAddress,
facetsAndAddSelectors: joined,
useLedger: true,
useMultisig: true,
};

await run("deployUpgrade", args);
}

if (require.main === module) {
upgrade()
.then(() => process.exit(0))
// .then(() => console.log('upgrade completed') /* process.exit(0) */)
.catch((error) => {
console.error(error);
process.exit(1);
});
}

0 comments on commit d63f7ef

Please sign in to comment.