@dydxfoundation/governance
Version:
dYdX governance smart contracts
16 lines (15 loc) • 1.28 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const config_1 = require("hardhat/config");
const hre_1 = require("../../src/hre");
const safety_module_fix_proposal_1 = require("../../src/migrations/safety-module-fix-proposal");
(0, hre_1.hardhatTask)('deploy:safety-module-fix-proposal', 'Create proposal to fix the Safety Module.')
.addParam('proposalIpfsHashHex', 'IPFS hash for the uploaded DIP describing the proposal', undefined, config_1.types.string)
.addParam('governorAddress', 'Address of the deployed DydxGovernor contract', undefined, config_1.types.string)
.addParam('longTimelockAddress', 'Address of the deployed long timelock Executor contract', undefined, config_1.types.string)
.addParam('safetyModuleAddress', 'Address of the deployed Safety Module upgradeable contract', undefined, config_1.types.string)
.addParam('safetyModuleProxyAdminAddress', 'Address of the deployed ProxyAdmin for the Safety Module', undefined, config_1.types.string)
.addParam('safetyModuleNewImplAddress', 'Address of the new deployed SafetyModuleV2 implementation contract', undefined, config_1.types.string)
.setAction(async (args) => {
await (0, safety_module_fix_proposal_1.createSafetyModuleFixProposal)(args);
});