contracts-imtbl/deploy/8_1_deploy_staking_estoken.ts
2024-09-12 13:27:11 +08:00

28 lines
876 B
TypeScript

import {HardhatRuntimeEnvironment} from "hardhat/types";
import {DeployFunction} from "hardhat-deploy/types";
import {deplayOne} from "../scripts/utils";
import {ZeroAddress} from "ethers";
const deployNFTClaim: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const config = require(`../config/config_${hre.network.name}`);
const tokenName = "Escrowed CEC";
const tokenSymbol = "esCEC";
const esCEC = await deplayOne({
hre,
name: "esCEC",
type: "erc20",
contractName: "EsToken",
args: [tokenName, tokenSymbol],
verify: true,
});
const esCECContract = await hre.ethers.getContractAt("EsToken", esCEC.address);
let tx = await esCECContract.setInPrivateTransferMode(true);
await tx.wait();
console.log("==esCECContract setInPrivateTransferMode");
};
deployNFTClaim.tags = ["EsCEC"];
export default deployNFTClaim;