Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

MureAxlTransceiver

Git Source

Inherits: AxelarExecutableWithToken, Context

State Variables

gasService

IAxelarGasService public immutable gasService

Functions

constructor

constructor(address gateway_, address gasService_) AxelarExecutableWithToken(gateway_);

Parameters

NameTypeDescription
gateway_addressaddress of axl gateway on deployed chain
gasService_addressaddress of axl gas service on deployed chain

transmitMessageWithToken

function transmitMessageWithToken(
    string calldata destinationChain,
    string calldata destinationAddress,
    bytes calldata payload,
    string calldata symbol,
    uint256 amount
) external payable;

_execute

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

_executeWithToken

logic to be executed on dest chain

this is triggered automatically by relayer

function _executeWithToken(
    bytes32 commandId,
    string calldata sourceChain,
    string calldata sourceAddress,
    bytes calldata payload,
    string calldata tokenSymbol,
    uint256 amount
) internal override;

Parameters

NameTypeDescription
commandIdbytes32
sourceChainstring
sourceAddressstring
payloadbytesencoded gmp message sent from src chain
tokenSymbolstringsymbol of token sent from src chain
amountuint256amount of tokens sent from src chain

Events

Executed

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

ExecutedWithToken

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

Errors

CallFailed

error CallFailed();

InsufficientGas

error InsufficientGas();