axelar-gmp-sdk-solidity

Solidity API

IAxelarServiceGovernance

This interface extends IInterchainGovernance for operator proposal actions

InvalidOperator

error InvalidOperator()

NotApproved

error NotApproved()

NotAuthorized

error NotAuthorized()

OperatorProposalApproved

event OperatorProposalApproved(bytes32 proposalHash, address targetContract, bytes callData, uint256 nativeValue)

OperatorProposalCancelled

event OperatorProposalCancelled(bytes32 proposalHash, address targetContract, bytes callData, uint256 nativeValue)

OperatorProposalExecuted

event OperatorProposalExecuted(bytes32 proposalHash, address targetContract, bytes callData, uint256 nativeValue)

OperatorshipTransferred

event OperatorshipTransferred(address oldOperator, address newOperator)

operatorApprovals

function operatorApprovals(bytes32 proposalHash) external view returns (bool)

Returns whether an operator proposal has been approved

Parameters

Name Type Description
proposalHash bytes32 The hash of the proposal

Return Values

Name Type Description
[0] bool bool True if the proposal has been approved, False otherwise

isOperatorProposalApproved

function isOperatorProposalApproved(address target, bytes callData, uint256 nativeValue) external view returns (bool)

Returns whether an operator proposal has been approved

Parameters

Name Type Description
target address The address of the contract targeted by the proposal
callData bytes The call data to be sent to the target contract
nativeValue uint256 The amount of native tokens to be sent to the target contract

Return Values

Name Type Description
[0] bool bool True if the proposal has been approved, False otherwise

executeOperatorProposal

function executeOperatorProposal(address targetContract, bytes callData, uint256 value) external payable

Executes an operator proposal

Parameters

Name Type Description
targetContract address The target address the proposal will call
callData bytes The data that encodes the function and arguments to call on the target contract
value uint256  

transferOperatorship

function transferOperatorship(address newOperator) external

Transfers the operator address to a new address

Only the current operator or the governance can call this function

Parameters

Name Type Description
newOperator address The new operator address