Skip to main content

Authority

The Authority contract implements a single-owner consensus mechanism where only the contract owner can submit and accept claims.

Functions

submitClaim()

function submitClaim(
address appContract,
uint256 lastProcessedBlockNumber,
bytes32 outputsMerkleRoot
) external onlyOwner

Submit a claim to the consensus. Only the contract owner can call this function.

Parameters

NameTypeDescription
appContractaddressThe application contract address
lastProcessedBlockNumberuint256The number of the last processed block
outputsMerkleRootbytes32The outputs Merkle root

owner()

function owner() public view override(IOwnable, Ownable) returns (address)

Returns the address of the current owner.

Return Values

NameTypeDescription
[0]addressThe current owner address

renounceOwnership()

function renounceOwnership() public override(IOwnable, Ownable)

Leaves the contract without owner. It will not be possible to call onlyOwner functions.

transferOwnership()

function transferOwnership(address newOwner) public override(IOwnable, Ownable)

Transfers ownership of the contract to a new account.

Parameters

NameTypeDescription
newOwneraddressThe new owner address

supportsInterface()

function supportsInterface(bytes4 interfaceId) public view override(IERC165, AbstractConsensus) returns (bool)

Check if the contract supports a specific interface.

Parameters

NameTypeDescription
interfaceIdbytes4The interface identifier

Return Values

NameTypeDescription
[0]boolTrue if the interface is supported

On this page

Useful resources to learn more

We use cookies to ensure that we give you the best experience on our website. By using the website, you agree to the use of cookies.