Skip to main content

RewardOrchestrator.sol

Methods​

actionApprovalStatus(uint256)​

Solidity

function actionApprovalStatus(uint256 _hash) external view returns (bool)
Details

Returns true if an action with given actionId is approved by all existing members of the group. It’s up to the contract creators to decide if this method should look at majority votes (based on ownership) or if it should ask consent of all the users irrespective of their ownerships.

Parameters​

NameTypeDescription
_hashuint256undefined

Returns​

NameTypeDescription
_0boolundefined

actionThresholdPercent()​

Solidity

function actionThresholdPercent() external view returns (uint256)

Returns​

NameTypeDescription
_0uint256undefined

createHashChangeRequest(bytes32)​

Solidity

function createHashChangeRequest(bytes32 _hash) external nonpayable returns (uint256)
Details

Creates a proposal to change the reward merkle tree hash to a new hash.

Parameters​

NameTypeDescription
_hashbytes32The new proposed merkle root hash

Returns​

NameTypeDescription
_0uint256undefined

executeHashChangeRequest(uint256)​

Solidity

function executeHashChangeRequest(uint256 _hashId) external nonpayable returns (enum IRewardOrchestrator.State newState)
Details

Use this function to execute a hash change request/propsal.

Parameters​

NameTypeDescription
_hashIduint256is the ID of the hash change request.

Returns​

NameTypeDescription
newStateenum IRewardOrchestrator.Statethe state of the hash change request.

firstEmptyHashIndex()​

Solidity

function firstEmptyHashIndex() external view returns (uint256)

Returns​

NameTypeDescription
_0uint256undefined

hashChangeRequests(uint256)​

Solidity

function hashChangeRequests(uint256) external view returns (bytes32)

Parameters​

NameTypeDescription
_0uint256undefined

Returns​

NameTypeDescription
_0bytes32undefined

initialize(address,address)​

Solidity

function initialize(address _keeperRegistry, address _RunnerRewarder) external nonpayable

Parameters​

NameTypeDescription
_keeperRegistryaddressundefined
_RunnerRewarderaddressundefined

keeperRegistry()​

Solidity

function keeperRegistry() external view returns (contract KeeperRegistry)

Returns​

NameTypeDescription
_0contract KeeperRegistryundefined

lastExecutedHashId()​

Solidity

function lastExecutedHashId() external view returns (uint256)

Returns​

NameTypeDescription
_0uint256undefined

owner()​

Solidity

function owner() external view returns (address)
Details

Returns the address of the current owner.

Returns​

NameTypeDescription
_0addressundefined

renounceOwnership()​

Solidity

function renounceOwnership() external nonpayable
Details

Leaves the contract without owner. It will not be possible to call onlyOwner functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.

rewardTree()​

Solidity

function rewardTree() external view returns (contract IRunnerRewarder)

Returns​

NameTypeDescription
_0contract IRunnerRewarderundefined

transferOwnership(address)​

Solidity

function transferOwnership(address newOwner) external nonpayable
Details

Transfers ownership of the contract to a new account (newOwner). Can only be called by the current owner.

Parameters​

NameTypeDescription
newOwneraddressundefined

upgradeTo(address)​

Solidity

function upgradeTo(address newImplementation) external nonpayable
Details

Upgrade the implementation of the proxy to newImplementation. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.

Parameters​

NameTypeDescription
newImplementationaddressundefined

upgradeToAndCall(address,bytes)​

Solidity

function upgradeToAndCall(address newImplementation, bytes data) external payable
Details

Upgrade the implementation of the proxy to newImplementation, and subsequently execute the function call encoded in data. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.

Parameters​

NameTypeDescription
newImplementationaddressundefined
databytesundefined

voteBitmaps(uint256)​

Solidity

function voteBitmaps(uint256) external view returns (uint256)

Parameters​

NameTypeDescription
_0uint256undefined

Returns​

NameTypeDescription
_0uint256undefined

voteOnHashChangeRequest(uint256,bool)​

Solidity

function voteOnHashChangeRequest(uint256 _hashId, bool vote) external nonpayable
Details

vote (if you are a keeper) on a given action proposal

Parameters​

NameTypeDescription
_hashIduint256is the hash of the action to be voted on
voteboolis the vote to be cast. false: reject, true: approve. false only has an effect if the keeper previously voted true. It resets their vote to false.

Events​

AdminChanged​

Solidity

event AdminChanged(address previousAdmin, address newAdmin)

Parameters​

NameTypeDescription
previousAdminaddressundefined
newAdminaddressundefined

BeaconUpgraded​

Solidity

event BeaconUpgraded(address indexed beacon)

Parameters​

NameTypeDescription
beacon indexedaddressundefined

ExecutedHashChangeRequest​

Solidity

event ExecutedHashChangeRequest(uint256 indexed requestId, bytes32 hash)

Parameters​

NameTypeDescription
requestId indexeduint256undefined
hashbytes32undefined

OwnershipTransferred​

Solidity

event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

Parameters​

NameTypeDescription
previousOwner indexedaddressundefined
newOwner indexedaddressundefined

Upgraded​

Solidity

event Upgraded(address indexed implementation)

Parameters​

NameTypeDescription
implementation indexedaddressundefined