Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

IEtherPortal

Git Source

Inherits: IPortal

Title: Ether Portal interface

Functions

depositEther

Transfer Ether to an application contract and add an input to the application's input box to signal such operation.

Any Ether sent through this function will be forwarded to the application contract. If the transfer fails, an EtherTransferFailed error will be raised. If the application is foreclosed, and the deposit input is not processed, the user can issue a refund. If the user deposits Ether through a smart contract, a refund will only succeed if the smart contract accepts it through a message call. If the smart contract wallet does not accept Ether transfers, funds may not be recoverable.

function depositEther(address appContract, bytes calldata execLayerData)
    external
    payable;

Parameters

NameTypeDescription
appContractaddressThe application contract address
execLayerDatabytesAdditional data to be interpreted by the execution layer

Errors

EtherTransferFailed

Failed to transfer Ether to application

error EtherTransferFailed();