RewardOrchestrator.sol
Methods
actionApprovalStatus(uint256)
function actionApprovalStatus(uint256 _hash) external view returns (bool)
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
| Name | Type | Description |
|---|---|---|
| _hash | uint256 | undefined |
Returns
| Name | Type | Description |
|---|---|---|
| _0 | bool | undefined |
actionThresholdPercent()
function actionThresholdPercent() external view returns (uint256)
Returns
| Name | Type | Description |
|---|---|---|
| _0 | uint256 | undefined |
createHashChangeRequest(bytes32)
function createHashChangeRequest(bytes32 _hash) external nonpayable returns (uint256)
Creates a proposal to change the reward merkle tree hash to a new hash.
Parameters
| Name | Type | Description |
|---|---|---|
| _hash | bytes32 | The new proposed merkle root hash |
Returns
| Name | Type | Description |
|---|---|---|
| _0 | uint256 | undefined |
executeHashChangeRequest(uint256)
function executeHashChangeRequest(uint256 _hashId) external nonpayable returns (enum IRewardOrchestrator.State newState)
Use this function to execute a hash change request/propsal.
Parameters
| Name | Type | Description |
|---|---|---|
| _hashId | uint256 | is the ID of the hash change request. |
Returns
| Name | Type | Description |
|---|---|---|
| newState | enum IRewardOrchestrator.State | the state of the hash change request. |
firstEmptyHashIndex()
function firstEmptyHashIndex() external view returns (uint256)
Returns
| Name | Type | Description |
|---|---|---|
| _0 | uint256 | undefined |
hashChangeRequests(uint256)
function hashChangeRequests(uint256) external view returns (bytes32)
Parameters
| Name | Type | Description |
|---|---|---|
| _0 | uint256 | undefined |
Returns
| Name | Type | Description |
|---|---|---|
| _0 | bytes32 | undefined |
initialize(address,address)
function initialize(address _keeperRegistry, address _RunnerRewarder) external nonpayable
Parameters
| Name | Type | Description |
|---|---|---|
| _keeperRegistry | address | undefined |
| _RunnerRewarder | address | undefined |
keeperRegistry()
function keeperRegistry() external view returns (contract KeeperRegistry)
Returns
| Name | Type | Description |
|---|---|---|
| _0 | contract KeeperRegistry | undefined |
lastExecutedHashId()
function lastExecutedHashId() external view returns (uint256)
Returns
| Name | Type | Description |
|---|---|---|
| _0 | uint256 | undefined |
owner()
function owner() external view returns (address)
Returns the address of the current owner.
Returns
| Name | Type | Description |
|---|---|---|
| _0 | address | undefined |
renounceOwnership()
function renounceOwnership() external nonpayable
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()
function rewardTree() external view returns (contract IRunnerRewarder)
Returns
| Name | Type | Description |
|---|---|---|
| _0 | contract IRunnerRewarder | undefined |
transferOwnership(address)
function transferOwnership(address newOwner) external nonpayable
Transfers ownership of the contract to a new account (newOwner). Can only be called by the current owner.
Parameters
| Name | Type | Description |
|---|---|---|
| newOwner | address | undefined |
upgradeTo(address)
function upgradeTo(address newImplementation) external nonpayable
Upgrade the implementation of the proxy to newImplementation. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.
Parameters
| Name | Type | Description |
|---|---|---|
| newImplementation | address | undefined |
upgradeToAndCall(address,bytes)
function upgradeToAndCall(address newImplementation, bytes data) external payable
Upgrade the implementation of the proxy to newImplementation, and subsequently execute the function call encoded in data. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.
Parameters
| Name | Type | Description |
|---|---|---|
| newImplementation | address | undefined |
| data | bytes | undefined |
voteBitmaps(uint256)
function voteBitmaps(uint256) external view returns (uint256)
Parameters
| Name | Type | Description |
|---|---|---|
| _0 | uint256 | undefined |
Returns
| Name | Type | Description |
|---|---|---|
| _0 | uint256 | undefined |
voteOnHashChangeRequest(uint256,bool)
function voteOnHashChangeRequest(uint256 _hashId, bool vote) external nonpayable
vote (if you are a keeper) on a given action proposal
Parameters
| Name | Type | Description |
|---|---|---|
| _hashId | uint256 | is the hash of the action to be voted on |
| vote | bool | is 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
event AdminChanged(address previousAdmin, address newAdmin)
Parameters
| Name | Type | Description |
|---|---|---|
| previousAdmin | address | undefined |
| newAdmin | address | undefined |
BeaconUpgraded
event BeaconUpgraded(address indexed beacon)
Parameters
| Name | Type | Description |
|---|---|---|
beacon indexed | address | undefined |
ExecutedHashChangeRequest
event ExecutedHashChangeRequest(uint256 indexed requestId, bytes32 hash)
Parameters
| Name | Type | Description |
|---|---|---|
requestId indexed | uint256 | undefined |
| hash | bytes32 | undefined |
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
Parameters
| Name | Type | Description |
|---|---|---|
previousOwner indexed | address | undefined |
newOwner indexed | address | undefined |
Upgraded
event Upgraded(address indexed implementation)
Parameters
| Name | Type | Description |
|---|---|---|
implementation indexed | address | undefined |