UNPKG

@excubiae/contracts

Version:
25 lines 1.26 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); /* eslint-disable no-console */ const config_1 = require("hardhat/config"); const Semaphore_1 = __importDefault(require("../../ignition/modules/extensions/Semaphore")); (0, config_1.task)("deploy:semaphore", "Deploys the Semaphore Extension Module") .addParam("semaphoreAddress", "Address of the Semaphore contract") .addParam("groupId", "Group ID for the Semaphore checker", undefined, config_1.types.int) .setAction(async (taskArgs, hre) => { const { checkerFactory, checker, policyFactory, policy } = await hre.ignition.deploy(Semaphore_1.default, { parameters: { semaphoreAddress: taskArgs.semaphoreAddress, groupId: taskArgs.groupId } }); console.log("Deployment addresses:"); console.log(`CheckerFactory: ${await checkerFactory.getAddress()}`); console.log(`Checker: ${await checker.getAddress()}`); console.log(`PolicyFactory: ${await policyFactory.getAddress()}`); console.log(`Policy: ${await policy.getAddress()}`); }); //# sourceMappingURL=semaphore.js.map