diff --git a/scripts/upgrades/upgrade-removeExcessEvent.ts b/scripts/upgrades/upgrade-removeExcessEvent.ts new file mode 100644 index 000000000..8909afa0a --- /dev/null +++ b/scripts/upgrades/upgrade-removeExcessEvent.ts @@ -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); + }); +}