New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@venusprotocol/governance-contracts

Package Overview
Dependencies
Maintainers
3
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@venusprotocol/governance-contracts - npm Package Compare versions

Comparing version 1.0.1-dev.5 to 1.0.1-dev.6

dist/deploy/helpers/constants.d.ts

12

dist/deploy/001-access-control.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc