RunnerRewarder.sol
Methods
changeMerkleRootHash(bytes32)
function changeMerkleRootHash(bytes32 hash) external nonpayable
Allow to change the merkle root hash stored on this contractrewardOrchestrator is the contract which is only address capable of changing merkle hash in this contract
Parameters
| Name | Type | Description |
|---|---|---|
| hash | bytes32 | is the new merkle root hash. |
claim(uint256,bytes32[])
function claim(uint256 amount, bytes32[] proof) external nonpayable
Allows claiming tokens if hash made from address and amount is part of the merkle tree
Parameters
| Name | Type | Description |
|---|---|---|
| amount | uint256 | of total tokens earned by claimee. Note that this includes previously claimed tokens. |
| proof | bytes32[] | merkle proof to prove address and amount are in tree |
claimed(address)
function claimed(address) external view returns (uint256)
Mapping of cumulative amount claimed by each address.
Parameters
| Name | Type | Description |
|---|---|---|
| _0 | address | undefined |
Returns
| Name | Type | Description |
|---|---|---|
| _0 | uint256 | undefined |
initialize(address)
function initialize(address _rewardTokenAddress) external nonpayable
Parameters
| Name | Type | Description |
|---|---|---|
| _rewardTokenAddress | address | undefined |
merkleRoot()
function merkleRoot() external view returns (bytes32)
ERC20-claimee inclusion root
Returns
| Name | Type | Description |
|---|---|---|
| _0 | bytes32 | 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.
rewardOrchestrator()
function rewardOrchestrator() external view returns (address)
Returns
| Name | Type | Description |
|---|---|---|
| _0 | address | undefined |
rewardToken()
function rewardToken() external view returns (contract IERC20Upgradeable)
Returns
| Name | Type | Description |
|---|---|---|
| _0 | contract IERC20Upgradeable | undefined |
setRewardOrchestrator(address)
function setRewardOrchestrator(address _rewardOrchestrator) external nonpayable
Allows to set the rewardOrchestrator contract.Can only be called by owner of this contract.
Parameters
| Name | Type | Description |
|---|---|---|
| _rewardOrchestrator | address | address of the rewardOrchestrator contract. |
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 |
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 |
Claim
event Claim(address indexed to, uint256 amount)
Parameters
| Name | Type | Description |
|---|---|---|
to indexed | address | undefined |
| amount | uint256 | 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 |