Solidity API
AxelarExpressExecutableWithToken
constructor
constructor(address gateway_) internal
execute
function execute(bytes32 commandId, string sourceChain, string sourceAddress, bytes payload) external
executeWithToken
function executeWithToken(bytes32 commandId, string sourceChain, string sourceAddress, bytes payload, string tokenSymbol, uint256 amount) external
expressExecute
function expressExecute(bytes32 commandId, string sourceChain, string sourceAddress, bytes payload) external payable virtual
Express executes a contract call.
Parameters
Name |
Type |
Description |
commandId |
bytes32 |
The commandId for the contractCall. |
sourceChain |
string |
The source chain. |
sourceAddress |
string |
The source address. |
payload |
bytes |
The payload data. |
expressExecuteWithToken
function expressExecuteWithToken(bytes32 commandId, string sourceChain, string sourceAddress, bytes payload, string symbol, uint256 amount) external payable virtual
Express executes a contract call with token.
Parameters
Name |
Type |
Description |
commandId |
bytes32 |
The commandId for the contractCallWithToken. |
sourceChain |
string |
The source chain. |
sourceAddress |
string |
The source address. |
payload |
bytes |
The payload data. |
symbol |
string |
The token symbol. |
amount |
uint256 |
The amount of token. |
getExpressExecutor
function getExpressExecutor(bytes32 commandId, string sourceChain, string sourceAddress, bytes32 payloadHash) external view returns (address expressExecutor)
Returns the express executor for a given command.
Parameters
Name |
Type |
Description |
commandId |
bytes32 |
The commandId for the contractCall. |
sourceChain |
string |
The source chain. |
sourceAddress |
string |
The source address. |
payloadHash |
bytes32 |
The hash of the payload. |
Return Values
Name |
Type |
Description |
expressExecutor |
address |
The address of the express executor. |
getExpressExecutorWithToken
function getExpressExecutorWithToken(bytes32 commandId, string sourceChain, string sourceAddress, bytes32 payloadHash, string symbol, uint256 amount) external view returns (address expressExecutor)
Returns the express executor with token for a given command.
Parameters
Name |
Type |
Description |
commandId |
bytes32 |
The commandId for the contractCallWithToken. |
sourceChain |
string |
The source chain. |
sourceAddress |
string |
The source address. |
payloadHash |
bytes32 |
The hash of the payload. |
symbol |
string |
The token symbol. |
amount |
uint256 |
The amount of tokens. |
Return Values
Name |
Type |
Description |
expressExecutor |
address |
The address of the express executor. |