@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_compensation_proposal_1 = require("../../src/migrations/safety-module-compensation-proposal");
(0, hre_1.hardhatTask)('deploy:safety-module-compensation-proposal', 'Create proposal to compensate Safety Module stakers.')
.addParam('proposalIpfsHashHex', 'IPFS hash for the uploaded DIP describing the proposal', undefined, config_1.types.string)
.addParam('dydxTokenAddress', 'Address of the deployed DYDX token contract', undefined, config_1.types.string)
.addParam('governorAddress', 'Address of the deployed DydxGovernor contract', undefined, config_1.types.string)
.addParam('shortTimelockAddress', 'Address of the deployed short timelock Executor contract', undefined, config_1.types.string)
.addParam('rewardsTreasuryAddress', 'Address of the deployed rewards treasury contract', undefined, config_1.types.string)
.addParam('safetyModuleRecoveryAddress', 'Address of the deployed SM2Recovery contract', undefined, config_1.types.string)
.setAction(async (args) => {
await (0, safety_module_compensation_proposal_1.createSafetyModuleCompensationProposal)(args);
});