5.3 IBC-Ethereum
Contract Interface
1
event AddToken(address tokenAddr, bytes32 tokenSummary, bytes32 tokenId);
2
event RemoveToken(address tokenAddr, bytes32 tokenSummary, bytes32 tokenId);
3
4
event DepositRelay(address mainAddr, address tokenAddr, address addr, address toAddr, uint amount, uint depositId, address extraToAddr);
5
event DepositValidated(address mainAddr, address tokenAddr, address addr, address toAddr, uint amount, uint depositId, address extraToAddr);
6
7
event WithdrawRelay(uint withdrawId, address balanceContractAddr, bytes32 tokenSummary, address addr, bytes destination, uint amount, bytes comment);
8
event WithdrawValidated(uint withdrawId, address balanceContractAddr, bytes32 tokenSummary, address addr, bytes destination, uint amount, bytes comment);
9
10
mapping (bytes32=>bool) public deposits;
11
mapping (bytes32=>address) public tokenAddr;
12
mapping (address=>bytes32) public tokenSummaries;
13
mapping (bytes32=>bool) public isListing;
14
15
struct Withdrawal{
16
address user;
17
bytes32 tokenSummary;
18
bytes destination;
19
uint amount;
20
bytes comment;
21
}
22
23
mapping (uint=>Withdrawal) public withdrawals;
24
25
function relayDepositToken(address mainAddr, address fromAddr, address toAddr, address token, uint amount, uint depositId, address extraToAddr) public
26
function validateDepositToken(address mainAddr, address fromAddr, address toAddr, address token, uint amount, uint depositId, address extraToAddr, address validator, uint8 v, bytes32 r, bytes32 s) public
27
function checkValidateDepositToken(address mainAddr, address fromAddr,address toAddr, address token, uint amount, uint depositId, address extraToAddr) public
28
function withdraw(uint withdrawId, address user, bytes32 tokenSummary, bytes memory destination, uint amount, bytes memory comment) public
29
function withdraw(uint withdrawId, address user, address extraUser, bytes32 tokenSummary, bytes memory destination, uint amount, bytes memory comment) public
30
function relayWithdraw(uint withdrawId) public
31
function validateWithdraw(uint withdrawId, address validator, uint8 v, bytes32 r, bytes32 s) public
32
function checkValidateWithdraw(uint withdrawId) public
Copied!
Copy link