mirror of
https://github.com/vacp2p/rln-contract.git
synced 2025-02-12 22:47:22 +00:00
23 lines
688 B
Solidity
23 lines
688 B
Solidity
// SPDX-License-Identifier: UNLICENSED
|
|
pragma solidity ^0.8.15;
|
|
|
|
import { Verifier } from "../src/RlnVerifier.sol";
|
|
import { Rln } from "../src/Rln.sol";
|
|
import { BaseScript } from "./Base.s.sol";
|
|
import { DeploymentConfig } from "./DeploymentConfig.s.sol";
|
|
|
|
contract Deploy is BaseScript {
|
|
function run() public returns (Rln rln, DeploymentConfig deploymentConfig) {
|
|
deploymentConfig = new DeploymentConfig(broadcaster);
|
|
|
|
|
|
|
|
vm.startBroadcast(broadcaster);
|
|
// step 1: deploy the verifier
|
|
Verifier verifier = new Verifier();
|
|
// step 2: deploy the rln contract
|
|
rln = new Rln(0, 20, address(verifier));
|
|
vm.stopBroadcast();
|
|
}
|
|
}
|