UNPKG

@dydxfoundation/governance

Version:
12 lines (11 loc) 701 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const config_1 = require("hardhat/config"); const hre_1 = require("../../src/hre"); const transfer_owner_role_1 = require("../../src/migrations/transfer-owner-role"); (0, hre_1.hardhatTask)('transfer-owner-role', 'Transfer OWNER_ROLE on a stark proxy to a new address, while revoking deployer ownership.') .addParam('starkProxyAddress', 'Stark proxy to change role permissions of', undefined, config_1.types.string) .addParam('newOwnerRoleAddress', 'Address to grant OWNER_ROLE to', undefined, config_1.types.string) .setAction(async (args) => { await (0, transfer_owner_role_1.transferOwnerRole)(args); });