2023-03-29 06:28:09 +00:00
|
|
|
import { HardhatRuntimeEnvironment } from "hardhat/types";
|
|
|
|
import { DeployFunction } from "hardhat-deploy/types";
|
|
|
|
|
|
|
|
const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
|
|
|
|
const { deployments, getUnnamedAccounts } = hre;
|
|
|
|
const { deploy } = deployments;
|
|
|
|
|
|
|
|
const [deployer] = await getUnnamedAccounts();
|
|
|
|
|
|
|
|
const poseidonHasherAddress = (await deployments.get("PoseidonHasher"))
|
|
|
|
.address;
|
2023-05-26 08:01:05 +00:00
|
|
|
const rlnVerifierAddress = (await deployments.get("Verifier")).address;
|
2023-03-29 06:28:09 +00:00
|
|
|
|
|
|
|
await deploy("RLN", {
|
|
|
|
from: deployer,
|
|
|
|
log: true,
|
2023-05-26 08:01:05 +00:00
|
|
|
args: [1000000000000000, 20, poseidonHasherAddress, rlnVerifierAddress],
|
2023-03-29 06:28:09 +00:00
|
|
|
});
|
|
|
|
};
|
|
|
|
export default func;
|
|
|
|
func.tags = ["RLN"];
|
2023-05-26 08:01:05 +00:00
|
|
|
func.dependencies = ["PoseidonHasher", "RlnVerifier"];
|