forked from NFTX-project/nftx-protocol-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy-staking-zap.js
33 lines (28 loc) · 935 Bytes
/
deploy-staking-zap.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
30
31
32
33
const { BigNumber } = require("@ethersproject/bignumber");
const { ethers, upgrades } = require("hardhat");
const notZeroAddr = "0x000000000000000000000000000000000000dead";
async function main() {
const [deployer] = await ethers.getSigners();
console.log("Deploying account:", await deployer.getAddress());
console.log(
"Deploying account balance:",
(await deployer.getBalance()).toString(),
"\n"
);
const StakingZap = await ethers.getContractFactory(
"NFTXStakingZap"
);
const zap = await StakingZap.deploy("0x8c9ECD518C7805e82cd6DC148e1c8902cb5d3655", "0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506");
await zap.deployed();
console.log("Staking Zap:", zap.address);
}
main()
.then(() => {
console.log("\nDeployment completed successfully ✓");
process.exit(0);
})
.catch((error) => {
console.log("\nDeployment failed ✗");
console.error(error);
process.exit(1);
});