forked from wormhole-foundation/native-token-transfers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWormholeEndpointStandalone.sol
31 lines (25 loc) · 1.04 KB
/
WormholeEndpointStandalone.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
// SPDX-License-Identifier: Apache 2
pragma solidity >=0.8.8 <0.9.0;
import "openzeppelin-contracts/contracts/access/Ownable.sol";
import "./WormholeEndpoint.sol";
import "./EndpointStandalone.sol";
// TODO: we shouldn't use Ownable from openzeppelin as it uses a non-deterministic storage slot
contract WormholeEndpointStandalone is WormholeEndpoint, EndpointStandalone, Ownable {
constructor(
address manager,
address wormholeCoreBridge,
address wormholeRelayerAddr
) EndpointStandalone(manager) WormholeEndpoint(wormholeCoreBridge, wormholeRelayerAddr) {}
function setWormholeSibling(
uint16 siblingChainId,
bytes32 siblingContract
) external onlyOwner {
_setWormholeSibling(siblingChainId, siblingContract);
}
function setIsWormholeRelayingEnabled(uint16 chainId, bool isEnabled) external onlyOwner {
_setIsWormholeRelayingEnabled(chainId, isEnabled);
}
function setIsWormholeEvmChain(uint16 chainId) external onlyOwner {
_setIsWormholeEvmChain(chainId);
}
}