axelar-gmp-sdk-solidity

Solidity API

AxelarValuedExpressExecutable

constructor

constructor(address gateway_) internal

contractCallValue

function contractCallValue(string sourceChain, string sourceAddress, bytes payload) public view virtual returns (address tokenAddress, uint256 value)

Returns the value (token address and amount) associated with a contract call

Parameters

Name Type Description
sourceChain string The source chain.
sourceAddress string The source address.
payload bytes The payload data.

Return Values

Name Type Description
tokenAddress address The address of the token used.
value uint256 The value associated with the contract call.

execute

function execute(bytes32 commandId, string sourceChain, string sourceAddress, bytes payload) 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.

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.

_transferToExecutor

function _transferToExecutor(address expressExecutor, address tokenAddress, uint256 value) internal

_transferFromExecutor

function _transferFromExecutor(address expressExecutor, address tokenAddress, uint256 value) internal