axelar-gmp-sdk-solidity

Solidity API

IAxelarExecutableWithToken

Interface for a contract that can execute commands from Axelar Gateway involving token transfers. It extends IAxelarExecutable to include token-related functionality.

executeWithToken

function executeWithToken(bytes32 commandId, string sourceChain, string sourceAddress, bytes payload, string tokenSymbol, uint256 amount) external

Executes the specified command sent from another chain and includes a token transfer.

This function should be implemented to handle incoming commands that include token transfers. It will be called by an implementation of IAxelarGatewayWithToken.

Parameters

Name Type Description
commandId bytes32 The identifier of the command to execute.
sourceChain string The name of the source chain from where 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.
tokenSymbol string The symbol of the token to be transferred with this command.
amount uint256 The amount of tokens to be transferred with this command.