@venusprotocol/governance-contracts
Advanced tools
Comparing version 1.0.1-dev.5 to 1.0.1-dev.6
@@ -26,7 +26,9 @@ "use strict"; | ||
const acm = yield hardhat_1.ethers.getContractAt("AccessControlManager", acmDeployment.address); | ||
const networkName = hre.network.name; | ||
const adminAccount = deploymentUtils_1.acmAdminAccount[networkName]; | ||
console.log(`Granting DEFAULT_ADMIN_ROLE to ${adminAccount} for ${networkName} network`); | ||
yield acm.grantRole(acm.DEFAULT_ADMIN_ROLE(), deploymentUtils_1.acmAdminAccount[hre.network.name]); | ||
console.log(`Renouncing DEFAULT_ADMIN_ROLE from deployer (${deployer}) for ${networkName} network`); | ||
if (hre.network.live) { | ||
const networkName = hre.network.name; | ||
const adminAccount = deploymentUtils_1.acmAdminAccount[networkName]; | ||
console.log(`Granting DEFAULT_ADMIN_ROLE to ${adminAccount} for ${networkName} network`); | ||
yield acm.grantRole(acm.DEFAULT_ADMIN_ROLE(), deploymentUtils_1.acmAdminAccount[networkName]); | ||
} | ||
console.log(`Renouncing DEFAULT_ADMIN_ROLE from deployer (${deployer}) for ${hre.network.name} network`); | ||
yield acm.renounceRole(acm.DEFAULT_ADMIN_ROLE(), deployer); | ||
@@ -33,0 +35,0 @@ }); |
@@ -1,6 +0,3 @@ | ||
interface AdminAccounts { | ||
[key: string]: string; | ||
} | ||
export declare const acmAdminAccount: AdminAccounts; | ||
export {}; | ||
import { SUPPORTED_NETWORKS } from "./constants"; | ||
export declare const acmAdminAccount: Record<SUPPORTED_NETWORKS, string>; | ||
//# sourceMappingURL=deploymentUtils.d.ts.map |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.acmAdminAccount = void 0; | ||
const mainnet_json_1 = __importDefault(require("@venusprotocol/venus-protocol/networks/mainnet.json")); | ||
const testnet_json_1 = __importDefault(require("@venusprotocol/venus-protocol/networks/testnet.json")); | ||
exports.acmAdminAccount = { | ||
bsctestnet: "0xce10739590001705F7FF231611ba4A48B2820327", | ||
bscmainnet: "0x939bD8d64c0A9583A7Dcea9933f7b21697ab6396", | ||
bsctestnet: testnet_json_1.default.Contracts.Timelock, | ||
bscmainnet: mainnet_json_1.default.Contracts.Timelock, | ||
sepolia: "0x94fa6078b6b8a26f0b6edffbe6501b22a10470fb", | ||
@@ -8,0 +13,0 @@ ethereum: "", |
{ | ||
"name": "@venusprotocol/governance-contracts", | ||
"description": "", | ||
"version": "1.0.1-dev.5", | ||
"version": "1.0.1-dev.6", | ||
"author": "", | ||
@@ -6,0 +6,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
5658746
128
11359