30 lines
947 B
TypeScript
30 lines
947 B
TypeScript
import { HardhatRuntimeEnvironment } from "hardhat/types";
|
|
import { DeployFunction } from "hardhat-deploy/types";
|
|
import { deplayOne, updateArray } from "../scripts/utils"
|
|
import { expandDecimals } from "../test/shared/utilities";
|
|
|
|
|
|
const deployTokenMall: DeployFunction =
|
|
async function (hre: HardhatRuntimeEnvironment) {
|
|
const provider = hre.ethers.provider;
|
|
const from = await (await provider.getSigner()).getAddress();
|
|
const config = require(`../config/config_${hre.network.name}`);
|
|
const {cec} = config.staking;
|
|
|
|
const startTime = Date.now() / 1000 | 0;
|
|
const endTime = startTime + 2 * 24 * 60 * 60;
|
|
const simpleStake = await deplayOne({
|
|
hre,
|
|
name: "simpleStake",
|
|
type: "logic",
|
|
contractName: "SimpleStake",
|
|
args: [cec, startTime, endTime, expandDecimals(20000000, 18)],
|
|
verify: true,
|
|
});
|
|
|
|
};
|
|
|
|
deployTokenMall.tags = ["SimpleStake"];
|
|
|
|
export default deployTokenMall;
|