mirror of
https://github.com/PaulRBerg/hardhat-template.git
synced 2026-01-09 14:07:58 -05:00
add back hardhat-deploy (#192)
* add hardhat-deploy back * linter fixes
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import { DeployFunction } from "hardhat-deploy/types";
|
||||
import { HardhatRuntimeEnvironment } from "hardhat/types";
|
||||
|
||||
const DAY_IN_SECONDS = 60 * 60 * 24;
|
||||
const NOW_IN_SECONDS = Math.round(Date.now() / 1000);
|
||||
const UNLOCK_IN_X_DAYS = NOW_IN_SECONDS + DAY_IN_SECONDS * 1; // 1 DAY
|
||||
|
||||
const func = async function (hre: HardhatRuntimeEnvironment) {
|
||||
const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
|
||||
const { deployer } = await hre.getNamedAccounts();
|
||||
const { deploy } = hre.deployments;
|
||||
const lockedAmount = hre.ethers.parseEther("0.01").toString();
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import "@nomicfoundation/hardhat-toolbox";
|
||||
import "hardhat-deploy";
|
||||
import type { HardhatUserConfig } from "hardhat/config";
|
||||
import { vars } from "hardhat/config";
|
||||
import type { NetworkUserConfig } from "hardhat/types";
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
"ethers": "^6.9.0",
|
||||
"fs-extra": "^11.2.0",
|
||||
"hardhat": "^2.19.2",
|
||||
"hardhat-deploy": "^0.12.1",
|
||||
"hardhat-gas-reporter": "^1.0.9",
|
||||
"lodash": "^4.17.21",
|
||||
"mocha": "^10.2.0",
|
||||
|
||||
Reference in New Issue
Block a user