UNPKG

@dydxfoundation/governance

Version:
20 lines (19 loc) 1.51 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const config_1 = require("hardhat/config"); const constants_1 = require("../../src/lib/constants"); const mainnet_json_1 = __importDefault(require("../../src/deployed-addresses/mainnet.json")); const hre_1 = require("../../src/hre"); const grants_program_proposal_1 = require("../../src/migrations/grants-program-proposal"); (0, hre_1.hardhatTask)('deploy:grants-program-proposal', 'Create proposal to launch DGP with multisig funding.') .addParam('proposalIpfsHashHex', 'IPFS hash for the uploaded DIP describing the proposal', constants_1.DIP_6_IPFS_HASH, config_1.types.string) .addParam('dydxTokenAddress', 'Address of the deployed DYDX token contract', mainnet_json_1.default.dydxToken, config_1.types.string) .addParam('governorAddress', 'Address of the deployed DydxGovernor contract', mainnet_json_1.default.governor, config_1.types.string) .addParam('shortTimelockAddress', 'Address of the deployed short timelock Executor contract', mainnet_json_1.default.shortTimelock, config_1.types.string) .addParam('communityTreasuryAddress', 'Address of the deployed community treasury contract', mainnet_json_1.default.communityTreasury, config_1.types.string) .setAction(async (args) => { await (0, grants_program_proposal_1.createGrantsProgramProposal)(args); });