mirror of
https://github.com/selfxyz/self.git
synced 2026-04-05 03:00:53 -04:00
* add eu id support * add ofac and disclosure euid support * add contract support for euid cards * update contracts * add comment out to remember the interface what we need to implement * prettier * get combine verifyVcAndDisclose function and get bytes data * unified library and clean constant V2 * fix verifyVcAndDisclose interface * add prettier and run prettier except .sol files * prettier * circuit compilation for local environment * add register id circuit in the contracts dir * clean up ignition deploy scritps * refactor deploy scripts * prettier * update serialized dsc tree * fix ofac check * fix passport attestation id --------- Co-authored-by: turnoffthiscomputer <colin.remi07@gmail.com>
19 lines
733 B
TypeScript
19 lines
733 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,
|
|
};
|
|
});
|