bytes32 EXECUTE_FAILURE
bytes32 EXPRESS_EXECUTE_FAILURE
event MessageReceived(bytes32 commandId, string sourceChain, bytes sourceAddress, address receiver, string message, bytes32 tokenId, uint256 amount)
constructor(address interchainTokenService_) public
string lastMessage
function executeWithInterchainToken(bytes32 commandId, string sourceChain, bytes sourceAddress, bytes data, bytes32 tokenId, address token, uint256 amount) external returns (bytes32)
function expressExecuteWithInterchainToken(bytes32 commandId, string sourceChain, bytes sourceAddress, bytes data, bytes32 tokenId, address token, uint256 amount) external returns (bytes32)
Executes express logic in the context of an interchain token transfer.
Only callable by the interchain token service.
Name | Type | Description |
---|---|---|
commandId | bytes32 | The unique message id. |
sourceChain | string | The source chain of the token transfer. |
sourceAddress | bytes | The source address of the token transfer. |
data | bytes | The data associated with the token transfer. |
tokenId | bytes32 | The token ID. |
token | address | The token address. |
amount | uint256 | The amount of tokens to be transferred. |
Name | Type | Description |
---|---|---|
[0] | bytes32 | bytes32 Hash indicating success of the express execution. |
function _executeWithInterchainToken(bytes32 commandId, string sourceChain, bytes sourceAddress, bytes data, bytes32 tokenId, address token, uint256 amount) internal
Internal function containing the logic to be executed with interchain token transfer.
Logic must be implemented by derived contracts.
Name | Type | Description |
---|---|---|
commandId | bytes32 | The unique message id. |
sourceChain | string | The source chain of the token transfer. |
sourceAddress | bytes | The source address of the token transfer. |
data | bytes | The data associated with the token transfer. |
tokenId | bytes32 | The token ID. |
token | address | The token address. |
amount | uint256 | The amount of tokens being transferred. |