axelar-gmp-sdk-solidity

Solidity API

AxelarValuedExpressExecutableTest

Executed

event Executed(bytes32 commandId, string sourceChain, string sourceAddress, bytes payload)

ExecutedWithToken

event ExecutedWithToken(bytes32 commandId, string sourceChain, string sourceAddress, bytes payload, string symbol, uint256 amount)

callValue

uint256 callValue

callWithTokenValue

uint256 callWithTokenValue

expressToken

address expressToken

constructor

constructor(address gateway_) public

setExpressToken

function setExpressToken(address expressToken_) external

setCallValue

function setCallValue(uint256 callValue_) external

contractCallValue

function contractCallValue(string, string, bytes) public view returns (address tokenAddress, uint256 value)

contractCallWithTokenValue

function contractCallWithTokenValue(string, string, bytes, string, uint256) public view returns (address tokenAddress, uint256 value)

_execute

function _execute(bytes32 commandId, string sourceChain, string sourceAddress, bytes payload) internal

Internal virtual function to be overridden by child contracts to execute the command. It allows child contracts to define their custom command execution logic.

Parameters

Name Type Description
commandId bytes32 The identifier of the command to execute.
sourceChain string The name of the source chain from which 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.

_executeWithToken

function _executeWithToken(bytes32 commandId, string sourceChain, string sourceAddress, bytes payload, string symbol, uint256 amount) internal