6.2 Ethereum IBC Protocol
Deposit
// deposit ETHfunction deposit(address toAddr, address extraToAddr) payable public// deposit ERC20 TOKENfunction depositToken(address token, address toAddr, uint amount, address extraToAddr) publicevent Deposit(address tokenAddr, address addr, address toAddr, uint amount, uint depositId, address extraToAddr);// EthpeggingContractevent DepositValidated(address mainAddr, address tokenAddr, address addr, address toAddr, uint amount, uint depositId, address extraToAddr)// BalanceContractevent BalanceChange(address indexed user, bytes32 indexed tokenId, uint balance);Withdrawal
function withdrawBySignature(bytes32[] memory bytes32s, uint[] memory uints, address fromAddr, bytes memory destination, bytes memory comment, uint8 v) publicfunction withdraw(bytes32 tokenId, bytes memory destination, uint amount, bytes memory comment) publicLast updated