axelar-gmp-sdk-solidity

Solidity API

IBaseWeightedMultisig

InvalidSigners

error InvalidSigners()

InvalidThreshold

error InvalidThreshold()

MalformedSignatures

error MalformedSignatures()

LowSignaturesWeight

error LowSignaturesWeight()

InvalidWeights

error InvalidWeights()

DuplicateSigners

error DuplicateSigners(bytes32 signersHash)

RedundantSignaturesProvided

error RedundantSignaturesProvided(uint256 required, uint256 provided)

InsufficientRotationDelay

error InsufficientRotationDelay(uint256 minimumRotationDelay, uint256 lastRotationTimestamp, uint256 timeElapsed)

SignersRotated

event SignersRotated(uint256 epoch, bytes32 signersHash, bytes signers)

previousSignersRetention

function previousSignersRetention() external view returns (uint256)

This function returns the old signers retention period

Return Values

Name Type Description
[0] uint256 uint256 The old signers retention period

epoch

function epoch() external view returns (uint256)

This function returns the current signers epoch

Return Values

Name Type Description
[0] uint256 uint256 The current signers epoch

signersHashByEpoch

function signersHashByEpoch(uint256 signerEpoch) external view returns (bytes32)

Returns the hash for a given signers epoch

Parameters

Name Type Description
signerEpoch uint256 The epoch to get the hash for

Return Values

Name Type Description
[0] bytes32 The hash for the given epoch

epochBySignersHash

function epochBySignersHash(bytes32 signersHash) external view returns (uint256)

Returns the epoch for a given hash

Parameters

Name Type Description
signersHash bytes32 The hash to get the epoch for

Return Values

Name Type Description
[0] uint256 The epoch for the given hash

lastRotationTimestamp

function lastRotationTimestamp() external view returns (uint256)

This function returns the timestamp for the last signer rotation

Return Values

Name Type Description
[0] uint256 uint256 The last rotation timestamp

timeSinceRotation

function timeSinceRotation() external view returns (uint256)

This function returns the time elapsed (in secs) since the last rotation

Return Values

Name Type Description
[0] uint256 uint256 The time since the last rotation

messageHashToSign

function messageHashToSign(bytes32 signersHash, bytes32 dataHash) external view returns (bytes32)

Compute the message hash that is signed by the weighted signers

Parameters

Name Type Description
signersHash bytes32 The hash of the weighted signers that sign off on the data
dataHash bytes32 The hash of the data

Return Values

Name Type Description
[0] bytes32 The message hash to be signed