axelar-gmp-sdk-solidity

Solidity API

IAxelarExpressExecutable

Interface for the Axelar Express Executable contract.

AlreadyExecuted

error AlreadyExecuted()

InsufficientValue

error InsufficientValue()

ExpressExecuted

event ExpressExecuted(bytes32 commandId, string sourceChain, string sourceAddress, bytes32 payloadHash, address expressExecutor)

Emitted when an express execution 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.
expressExecutor address The address of the express executor.

ExpressExecutionFulfilled

event ExpressExecutionFulfilled(bytes32 commandId, string sourceChain, string sourceAddress, bytes32 payloadHash, address expressExecutor)

Emitted when an express execution is fulfilled.

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.
expressExecutor address The address of the express executor.

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.

expressExecute

function expressExecute(bytes32 commandId, string sourceChain, string sourceAddress, bytes payload) external payable

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.