Docs
Reference
Bridge
EtherVault

EtherVault

Vault that holds Ether.

Authorized

event Authorized(address addr, bool authorized)

onlyAuthorized

modifier onlyAuthorized()

receive

receive() external payable

init

function init(address addressManager) external

sendEther

function sendEther(uint256 amount) public

Send Ether from EtherVault to the sender, checking they are authorized.

Parameters

NameTypeDescription
amountuint256Amount of ether to send.

authorize

function authorize(address addr, bool authorized) public

Set the authorized status of an address, only the owner can call this.

Parameters

NameTypeDescription
addraddressAddress to set the authorized status of.
authorizedboolAuthorized status to set.

isAuthorized

function isAuthorized(address addr) public view returns (bool)

Get the authorized status of an address.

Parameters

NameTypeDescription
addraddressAddress to get the authorized status of.