Skip to main content

RunnerRewarder.sol

Methods​

changeMerkleRootHash(bytes32)​

Solidity

function changeMerkleRootHash(bytes32 hash) external nonpayable
Details

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​

NameTypeDescription
hashbytes32is the new merkle root hash.

claim(uint256,bytes32[])​

Solidity

function claim(uint256 amount, bytes32[] proof) external nonpayable
Details

Allows claiming tokens if hash made from address and amount is part of the merkle tree

Parameters​

NameTypeDescription
amountuint256of total tokens earned by claimee. Note that this includes previously claimed tokens.
proofbytes32[]merkle proof to prove address and amount are in tree

claimed(address)​

Solidity

function claimed(address) external view returns (uint256)
Details

Mapping of cumulative amount claimed by each address.

Parameters​

NameTypeDescription
_0addressundefined

Returns​

NameTypeDescription
_0uint256undefined

initialize(address)​

Solidity

function initialize(address _rewardTokenAddress) external nonpayable

Parameters​

NameTypeDescription
_rewardTokenAddressaddressundefined

merkleRoot()​

Solidity

function merkleRoot() external view returns (bytes32)
Details

ERC20-claimee inclusion root

Returns​

NameTypeDescription
_0bytes32undefined

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.

rewardOrchestrator()​

Solidity

function rewardOrchestrator() external view returns (address)

Returns​

NameTypeDescription
_0addressundefined

rewardToken()​

Solidity

function rewardToken() external view returns (contract IERC20Upgradeable)

Returns​

NameTypeDescription
_0contract IERC20Upgradeableundefined

setRewardOrchestrator(address)​

Solidity

function setRewardOrchestrator(address _rewardOrchestrator) external nonpayable
Details

Allows to set the rewardOrchestrator contract.Can only be called by owner of this contract.

Parameters​

NameTypeDescription
_rewardOrchestratoraddressaddress of the rewardOrchestrator contract.

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

Events​

AdminChanged​

Solidity

event AdminChanged(address previousAdmin, address newAdmin)

Parameters​

NameTypeDescription
previousAdminaddressundefined
newAdminaddressundefined

BeaconUpgraded​

Solidity

event BeaconUpgraded(address indexed beacon)

Parameters​

NameTypeDescription
beacon indexedaddressundefined

Claim​

Solidity

event Claim(address indexed to, uint256 amount)

Parameters​

NameTypeDescription
to indexedaddressundefined
amountuint256undefined

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