Skip to content

Commit

Permalink
feat: added main file
Browse files Browse the repository at this point in the history
  • Loading branch information
gsoares85 committed Jan 28, 2025
1 parent 000babe commit eee1aa3
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
3 changes: 3 additions & 0 deletions multisig-owners.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
{
"rskTestnet": {
"address": "",
"owners": []
},
"rskMainnet": {
"address": "",
"owners": []
},
"hardhat": {
"address": "",
"owners": []
}
}
28 changes: 28 additions & 0 deletions scripts/deployment/change-owner-to-multisig.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import hre from "hardhat";
import { changeMultisigOwner } from "../deployment-utils/change-multisig-owner";
import multisigOwnersJson from "../../multisig-owners.json";

interface MultisigOwners {
rskTestnet: { address: string; owners: string[] };
rskMainnet: { address: string; owners: string[] };
hardhat: { address: string; owners: string[] };
}

const multisigOwners: MultisigOwners = multisigOwnersJson;

async function main() {
const network = hre.network.name as keyof MultisigOwners;
const { address } = multisigOwners[network];
if (!address || address === "") {
throw new Error("Multisig address not found");
}
await changeMultisigOwner(address);
console.info(
`Ownership of LiquidityBridgeContract proxy changed to multisig in ${network}`
);
}

main().catch((error: unknown) => {
console.error(error);
process.exitCode = 1;
});

0 comments on commit eee1aa3

Please sign in to comment.