mirror of
https://github.com/luxfhe/example-dapps.git
synced 2026-10-30 18:13:32 +00:00
24 lines
759 B
TypeScript
24 lines
759 B
TypeScript
import { DeployFunction } from "hardhat-deploy/types";
|
|
import { HardhatRuntimeEnvironment } from "hardhat/types";
|
|
|
|
const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
|
|
const { deployer } = await hre.getNamedAccounts();
|
|
const { deploy } = hre.deployments;
|
|
|
|
const deployedERC7984 = await deploy("ERC7984Example", {
|
|
from: deployer,
|
|
log: true,
|
|
args: [
|
|
1000000, // Initial amount (uint64)
|
|
"Confidential Token", // Token name
|
|
"CTKN", // Token symbol
|
|
"https://example.com/token", // Token URI
|
|
],
|
|
});
|
|
|
|
console.log(`ERC7984Example contract: `, deployedERC7984.address);
|
|
};
|
|
export default func;
|
|
func.id = "deploy_erc7984"; // id required to prevent reexecution
|
|
func.tags = ["ERC7984Example"];
|