axelar-gmp-sdk-solidity

Solidity API

IAxelarExpressExecutableWithToken

Interface for the Axelar Express Executable contract with token.

ExpressExecutedWithToken

event ExpressExecutedWithToken(bytes32 commandId, string sourceChain, string sourceAddress, bytes32 payloadHash, string symbol, uint256 amount, address expressExecutor)

Emitted when an express execution with a token is successfully performed.

Parameters

Name Type Description
commandId bytes32 The unique identifier for the command.
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.
expressExecutor address The address of the express executor.

ExpressExecutionWithTokenFulfilled

event ExpressExecutionWithTokenFulfilled(bytes32 commandId, string sourceChain, string sourceAddress, bytes32 payloadHash, string symbol, uint256 amount, address expressExecutor)

Emitted when an express execution with a token is fulfilled.

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.
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.

expressExecuteWithToken

function expressExecuteWithToken(bytes32 commandId, string sourceChain, string sourceAddress, bytes payload, string symbol, uint256 amount) external payable

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.