IEtherPortal
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
| Name | Type | Description |
|---|---|---|
appContract | address | The application contract address |
execLayerData | bytes | Additional data to be interpreted by the execution layer |
Errors
EtherTransferFailed
Failed to transfer Ether to application
error EtherTransferFailed();