axelar-gmp-sdk-solidity

Solidity API

IAxelarAmplifierGateway

Interface for the Axelar Gateway that supports general message passing.

NotLatestSigners

error NotLatestSigners()

InvalidSender

error InvalidSender(address sender)

OperatorshipTransferred

event OperatorshipTransferred(address newOperator)

approveMessages

function approveMessages(struct Message[] messages, struct Proof proof) external

Approves an array of messages, signed by the Axelar signers.

Parameters

Name Type Description
messages struct Message[] The array of messages to verify.
proof struct Proof The proof signed by the Axelar signers for this command.

rotateSigners

function rotateSigners(struct WeightedSigners newSigners, struct Proof proof) external

Update the signer data for the auth module, signed by the Axelar signers.

Parameters

Name Type Description
newSigners struct WeightedSigners The data for the new signers.
proof struct Proof The proof signed by the Axelar signers for this command.

validateProof

function validateProof(bytes32 dataHash, struct Proof proof) external view returns (bool isLatestSigners)

This function takes dataHash and proof and reverts if proof is invalid

Parameters

Name Type Description
dataHash bytes32 The hash of the data being signed
proof struct Proof The proof from Axelar signers

Return Values

Name Type Description
isLatestSigners bool True if provided signers are the current ones

operator

function operator() external view returns (address)

Returns the address of the gateway operator.

Return Values

Name Type Description
[0] address The address of the operator.

transferOperatorship

function transferOperatorship(address newOperator) external

Transfer the operatorship to a new address.

Parameters

Name Type Description
newOperator address The address of the new operator.