Interface for the Axelar Gateway that supports general message passing.
error NotLatestSigners()
error InvalidSender(address sender)
event OperatorshipTransferred(address newOperator)
function approveMessages(struct Message[] messages, struct Proof proof) external
Approves an array of messages, signed by the Axelar signers.
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. |
function rotateSigners(struct WeightedSigners newSigners, struct Proof proof) external
Update the signer data for the auth module, signed by the Axelar signers.
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. |
function validateProof(bytes32 dataHash, struct Proof proof) external view returns (bool isLatestSigners)
This function takes dataHash and proof and reverts if proof is invalid
Name | Type | Description |
---|---|---|
dataHash | bytes32 | The hash of the data being signed |
proof | struct Proof | The proof from Axelar signers |
Name | Type | Description |
---|---|---|
isLatestSigners | bool | True if provided signers are the current ones |
function operator() external view returns (address)
Returns the address of the gateway operator.
Name | Type | Description |
---|---|---|
[0] | address | The address of the operator. |
function transferOperatorship(address newOperator) external
Transfer the operatorship to a new address.
Name | Type | Description |
---|---|---|
newOperator | address | The address of the new operator. |