rln-interep-contract/deploy/005_deploy_rln.ts

29 lines
798 B
TypeScript
Raw Normal View History

2022-11-25 11:38:38 +05:30
import { HardhatRuntimeEnvironment } from "hardhat/types";
import { DeployFunction } from "hardhat-deploy/types";
const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
2022-11-25 11:38:38 +05:30
const { deployments, getUnnamedAccounts } = hre;
const { deploy } = deployments;
2022-11-25 11:38:38 +05:30
const [deployer] = await getUnnamedAccounts();
const poseidonHasherAddress = (await deployments.get("PoseidonHasher"))
.address;
const validGroupStorageAddress = (await deployments.get("ValidGroupStorage"))
.address;
await deploy("RLN", {
from: deployer,
log: true,
args: [
1000000000000000,
20,
poseidonHasherAddress,
validGroupStorageAddress,
],
});
};
export default func;
2022-11-25 11:38:38 +05:30
func.tags = ["RLN"];
func.dependencies = ["PoseidonHasher", "ValidGroupStorage"];