UNPKG

@excubiae/contracts

Version:
18 lines 787 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const modules_1 = require("@nomicfoundation/hardhat-ignition/modules"); exports.default = (0, modules_1.buildModule)("SemaphoreModule", (m) => { const semaphoreAddress = m.getParameter("semaphoreAddress", "string"); const groupId = m.getParameter("groupId", "number"); const checkerFactory = m.contract("SemaphoreCheckerFactory", []); const checker = m.call(checkerFactory, "deploy", [semaphoreAddress, groupId]); const policyFactory = m.contract("SemaphorePolicyFactory", []); const policy = m.call(policyFactory, "deploy", [checker.contract]); return { checkerFactory, checker, policyFactory, policy }; }); //# sourceMappingURL=Semaphore.js.map