mirror of
https://github.com/selfxyz/self.git
synced 2026-02-21 03:00:36 -05:00
19 lines
753 B
TypeScript
19 lines
753 B
TypeScript
import { buildModule } from "@nomicfoundation/hardhat-ignition/modules";
|
|
import hre from "hardhat";
|
|
import fs from "fs";
|
|
import path from "path";
|
|
|
|
export default buildModule("DeployVerifyAll", (m) => {
|
|
const networkName = hre.network.config.chainId;
|
|
|
|
const deployedAddressesPath = path.join(__dirname, `../deployments/chain-${networkName}/deployed_addresses.json`);
|
|
const deployedAddresses = JSON.parse(fs.readFileSync(deployedAddressesPath, "utf8"));
|
|
const hubAddress = deployedAddresses["DeployHub#IdentityVerificationHub"];
|
|
const registryAddress = deployedAddresses["DeployRegistryModule#IdentityRegistry"];
|
|
|
|
const verifyAll = m.contract("VerifyAll", [hubAddress, registryAddress]);
|
|
return {
|
|
verifyAll,
|
|
};
|
|
});
|