PoolEscrowMock
Inherits: IGnoPoolEscrow
PoolEscrow contract is used to receive transfers from ETH2 system contract for the pool validators. The withdrawal credentials of the Pool must be set to https://github.com/ethereum/eth2.0-specs/blob/v1.1.0-alpha.2/specs/phase0/validator.md#eth1_address_withdrawal_prefix using the address of this contract as a destination.
State Variables
owner
address public override owner;
futureOwner
address public override futureOwner;
Functions
constructor
Constructor for initializing the PoolEscrow contract.
constructor(address _owner);
Parameters
Name | Type | Description |
---|---|---|
_owner | address | - address of the contract owner. |
onlyOwner
Throws if called by any account other than the owner.
modifier onlyOwner();
commitOwnershipTransfer
See IPoolEscrow-commitOwnershipTransfer.
function commitOwnershipTransfer(address newOwner) external override onlyOwner;
applyOwnershipTransfer
See IPoolEscrow-applyOwnershipTransfer.
function applyOwnershipTransfer() external override;
withdraw
See IPoolEscrow-withdraw.
function withdraw(address payable payee, uint256 amount) external override onlyOwner;
withdrawTokens
See IPoolEscrow-withdraw.
function withdrawTokens(address token, address payee, uint256 amount) external override onlyOwner;
receive
Function for receiving withdrawals from ETH2 system contract.
receive() external payable;