forked from OKEAMAH/vested-token
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDeploy.js
29 lines (25 loc) · 873 Bytes
/
Deploy.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
const hre = require("hardhat");
async function main() {
const [deployer] = await hre.ethers.getSigners();
console.log("Deploying contracts with the account:", deployer.address);
const VestedToken = await hre.ethers.getContractFactory("VestedToken");
const vestedToken = await VestedToken.deploy(
"0x24E1A6814d05a583Aad62B1E1dE5D1A5E71E7CB0", // Token Address
"DAVID OKEAMAH", // Owner Name
[ // Vesting schedule
{
beneficiary: "0x97293ceab815896883e8200aef5a4581a70504b2",
start_time: Math.floor(Date.now() / 1000), // Start time
cliff_duration: 31536000, // 1 year
vesting_duration: 63072000 // 2 years
}
]
);
console.log("VestedToken contract deployed to:", vestedToken.address);
}
main()
.then(() => process.exit(0))
.catch((error) => {
console.error(error);
process.exit(1);
});