2024-05-21 06:16:07 +05:30
|
|
|
// SPDX-License-Identifier: UNLICENSED
|
|
|
|
|
pragma solidity >=0.8.19 <=0.9.0;
|
|
|
|
|
|
2024-05-23 18:33:41 +05:30
|
|
|
import { WakuRlnV2 } from "../src/WakuRlnV2.sol";
|
2024-05-29 00:52:10 +05:30
|
|
|
import { PoseidonT3 } from "poseidon-solidity/PoseidonT3.sol";
|
|
|
|
|
import { LazyIMT } from "@zk-kit/imt.sol/LazyIMT.sol";
|
2024-05-21 06:16:07 +05:30
|
|
|
import { BaseScript } from "./Base.s.sol";
|
2024-05-29 00:52:10 +05:30
|
|
|
import "forge-std/console.sol";
|
2024-05-29 12:35:27 +05:30
|
|
|
import { Upgrades, Options } from "openzeppelin-foundry-upgrades/Upgrades.sol";
|
2024-05-21 06:16:07 +05:30
|
|
|
import { DeploymentConfig } from "./DeploymentConfig.s.sol";
|
|
|
|
|
|
|
|
|
|
contract Deploy is BaseScript {
|
2024-05-28 17:56:10 +05:30
|
|
|
function run() public broadcast returns (WakuRlnV2 w) {
|
2024-05-29 00:52:10 +05:30
|
|
|
Options memory opts;
|
|
|
|
|
/*opts.unsafeAllow = "external-library-linking";*/
|
|
|
|
|
opts.unsafeSkipAllChecks = true;
|
|
|
|
|
address proxy = Upgrades.deployTransparentProxy(
|
2024-05-29 12:35:27 +05:30
|
|
|
"WakuRlnV2.sol:WakuRlnV2", msg.sender, abi.encodeCall(WakuRlnV2.initialize, (msg.sender, 20)), opts
|
2024-05-29 00:52:10 +05:30
|
|
|
);
|
|
|
|
|
w = WakuRlnV2(proxy);
|
2024-05-21 06:16:07 +05:30
|
|
|
}
|
|
|
|
|
}
|