Git Source
address public immutable PROTOCOL;
address public owner;
mapping(uint256 => DstPrice) public priceOf;
mapping(uint256 => DstConfig) public configOf;
mapping(address => bool) public approvedOf;
modifier onlyOwner();
modifier onlyApproved();
constructor(address dao, address ormp);
function version() public pure returns (string memory);
receive() external payable;
function withdraw(address to, uint256 amount) external onlyApproved;
function isApproved(address operator) public view returns (bool);
function changeOwner(address newOwner) external onlyOwner;
function setApproved(address operator, bool approve) public onlyOwner;
function setDstPrice(uint256 chainId, uint128 dstPriceRatio, uint128 dstGasPriceInWei) external onlyApproved;
function setDstConfig(uint256 chainId, uint64 baseGas, uint64 gasPerByte) external onlyApproved;
function fee(uint256 toChainId, address, uint256 gasLimit, bytes calldata encoded, bytes calldata)
public
view
returns (uint256);
function relay(Message calldata message) external onlyApproved;
event SetDstPrice(uint256 indexed chainId, uint128 dstPriceRatio, uint128 dstGasPriceInWei);
event SetDstConfig(uint256 indexed chainId, uint64 baseGas, uint64 gasPerByte);
event SetApproved(address operator, bool approve);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
struct DstPrice {
uint128 dstPriceRatio;
uint128 dstGasPriceInWei;
}
struct DstConfig {
uint64 baseGas;
uint64 gasPerByte;
}