@vechain/vebetterdao-contracts
Version:
Open-source repository that houses the smart contracts powering the decentralized VeBetterDAO on the VeChain Thor blockchain.
21 lines (20 loc) • 832 B
JavaScript
import { ethers } from "hardhat";
import { deployAndUpgrade } from "../../helpers";
export const deployNodeManagementMock = async ({ stargateNFTProxyAddress, logOutput = false, }) => {
const deployer = (await ethers.getSigners())[0];
logOutput && console.log("Deploying NodeManagement (V1→V2→V3)...");
const nodeManagement = (await deployAndUpgrade(["NodeManagementV1", "NodeManagementV2", "NodeManagementV3"], [
[
deployer.address, // vechain nodes mock, we do not care
deployer.address,
deployer.address,
],
[],
[stargateNFTProxyAddress],
], {
versions: [undefined, 2, 3],
logOutput: true,
}));
logOutput && console.log("NodeManagement deployed at: ", await nodeManagement.getAddress());
return nodeManagement;
};