mirror of
https://github.com/vacp2p/rln-contract.git
synced 2026-01-07 22:04:06 -05:00
* feat: init rln-v2 changes * chore: remove poseidont3, dont calculate rate commitments * fix: deploy script * feat: add g16 verifier * chore: deploy to sepolia and polygon-zkevm-testnet * chore: snapshot * fix(rln): reuse getDepositAmount func
21 lines
691 B
Solidity
21 lines
691 B
Solidity
// SPDX-License-Identifier: UNLICENSED
|
|
pragma solidity >=0.8.19;
|
|
|
|
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, 20, address(verifier));
|
|
vm.stopBroadcast();
|
|
}
|
|
}
|