UNPKG

@vechain/vebetterdao-contracts

Version:

Open-source repository that houses the smart contracts powering the decentralized VeBetterDAO on the VeChain Thor blockchain.

18 lines (17 loc) 651 B
import { getConfig } from "@repo/config"; import { upgradeProxy } from "../../../helpers"; async function main() { const config = getConfig(process.env.NEXT_PUBLIC_APP_ENV); console.log("Upgrading VOT3 to V2..."); const vot3 = (await upgradeProxy("VOT3V1", "VOT3", config.vot3ContractAddress, [config.navigatorRegistryContractAddress], { version: 2, })); const version = await vot3.version(); console.log(`New VOT3 version: ${version}`); if (version !== "2") { throw new Error(`VOT3 version is not the expected one: ${version}`); } console.log("Execution completed"); process.exit(0); } main();