constructor(address gateway_) public
function contractCallValue(string, string, bytes) public pure returns (address tokenAddress, uint256 value)
function contractCallWithTokenValue(string, string, bytes, string, uint256) public pure returns (address tokenAddress, uint256 value)
function _execute(bytes32 commandId, string sourceChain, string sourceAddress, bytes payload) internal virtual
Internal virtual function to be overridden by child contracts to execute the command. It allows child contracts to define their custom command execution logic.
Name | Type | Description |
---|---|---|
commandId | bytes32 | The identifier of the command to execute. |
sourceChain | string | The name of the source chain from which the command originated. |
sourceAddress | string | The address on the source chain that sent the command. |
payload | bytes | The payload of the command to be executed. |
function _executeWithToken(bytes32 commandId, string sourceChain, string sourceAddress, bytes payload, string tokenSymbol, uint256 amount) internal virtual
Internal virtual function to be overridden by child contracts to execute the command with token transfer. It allows child contracts to define their custom command execution logic involving tokens.
Name | Type | Description |
---|---|---|
commandId | bytes32 | The unique identifier of the cross-chain message being executed. |
sourceChain | string | The name of the source chain from which the message originated. |
sourceAddress | string | The address on the source chain that sent the message. |
payload | bytes | The payload of the message payload. |
tokenSymbol | string | The symbol of the token to be transferred. |
amount | uint256 | The amount of tokens to be transferred. |