Runs on mainnet, accepts messages from schain, stores deposits of ETH.
deposit(string schainName) external
msg.sender to send ETH from mainnet to schain.
Schain name must not be
Receiver contract should be added as twin contract on schain.
Schain that receives tokens should not be killed.
postMessage(bytes32 schainHash, address sender, bytes data) → address external
Allows MessageProxyForMainnet contract to execute transferring ERC20 token from schain to mainnet.
Schain from which the tokens came should not be killed.
Sender contract should be defined and schain name cannot be
Amount of tokens on DepositBoxERC20 should be equal or more than transferred amount.
gasPayer(bytes32 schainHash, address sender, bytes data) → address external
Transfers a user’s ETH.
DepositBoxETh must have sufficient ETH.
User must be approved for ETH transfer.
getFunds(string schainName, address payable receiver, uint256 amount) external
Allows Schain owner to return each user their ETH.
Amount of ETH on schain should be equal or more than transferred amount.
Receiver address must not be null.
initialize(contract IContractManager contractManagerOfSkaleManagerValue, contract Linker linkerValue, contract MessageProxyForMainnet messageProxyValue) public
Creates a new DepositBoxEth contract.