contract DestinationChainTokenSwapper swapper
constructor(address gatewayAddress, address swapperAddress) public
function _executeWithToken(bytes32, string sourceChain, string, bytes payload, string tokenSymbolA, uint256 amount) internal
function _execute(bytes32 commandId, string sourceChain, string sourceAddress, bytes payload) internal
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. |