-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathDeployTransceiver.s.sol
35 lines (29 loc) · 1.07 KB
/
DeployTransceiver.s.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// SPDX-License-Identifier: Apache 2
pragma solidity >=0.8.8 <0.9.0;
import {Script, console2} from "forge-std/Script.sol";
import {WormholeTransceiver} from "../src/Transceiver/WormholeTransceiver/WormholeTransceiver.sol";
import {ERC1967Proxy} from "openzeppelin-contracts/contracts/proxy/ERC1967/ERC1967Proxy.sol";
contract DeployWormholeTransceiver is Script {
function run(
address nttManager,
address wormholeCoreBridge,
address wormholeRelayerAddr,
address specialRelayerAddr,
uint8 consistencyLevel,
uint256 gasLimit
) public {
vm.startBroadcast();
WormholeTransceiver implementation = new WormholeTransceiver(
nttManager,
wormholeCoreBridge,
wormholeRelayerAddr,
specialRelayerAddr,
consistencyLevel,
gasLimit
);
WormholeTransceiver transceiver =
WormholeTransceiver(address(implementation));
console2.log("WormholeTransceiver address:", address(transceiver));
vm.stopBroadcast();
}
}