@vechain/vebetterdao-contracts
Version:
Open-source repository that houses the smart contracts powering the decentralized VeBetterDAO on the VeChain Thor blockchain.
25 lines (24 loc) • 1.03 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.deployNodeManagementMock = void 0;
const hardhat_1 = require("hardhat");
const helpers_1 = require("../../helpers");
const deployNodeManagementMock = async ({ stargateNFTProxyAddress, logOutput = false, }) => {
const deployer = (await hardhat_1.ethers.getSigners())[0];
logOutput && console.log("Deploying NodeManagement (V1→V2→V3)...");
const nodeManagement = (await (0, helpers_1.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;
};
exports.deployNodeManagementMock = deployNodeManagementMock;