2023-03-29 11:58:09 +05:30
|
|
|
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;
|
|
|
|
|
|
|
|
|
|
await deploy("RLN", {
|
|
|
|
|
from: deployer,
|
|
|
|
|
log: true,
|
2023-07-03 18:15:38 +05:30
|
|
|
args: [[], poseidonHasherAddress],
|
2023-03-29 11:58:09 +05:30
|
|
|
});
|
|
|
|
|
};
|
2023-07-03 18:15:38 +05:30
|
|
|
|
2023-03-29 11:58:09 +05:30
|
|
|
export default func;
|
|
|
|
|
func.tags = ["RLN"];
|
2023-07-03 18:15:38 +05:30
|
|
|
func.dependencies = ["PoseidonHasher"];
|