Skip to main content

L2rewards.sol

Methods

changeMerkleRootHash(bytes32)

Solidity

function changeMerkleRootHash(bytes32 hash) external nonpayable

Parameters

NameTypeDescription
hashbytes32undefined

claim(uint256,bytes32[])

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

Solidity

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

Parameters

NameTypeDescription
amountuint256of total tokens owed to claimee
proofbytes32[]merkle proof to prove address and amount are in tree

claimed(address)

Mapping of addresses who have claimed tokens

Solidity

function claimed(address) external view returns (uint256)

Parameters

NameTypeDescription
_0addressundefined

Returns

NameTypeDescription
_0uint256undefined

initialize(address)

Solidity

function initialize(address _rewardTokenAddress) external nonpayable

Parameters

NameTypeDescription
_rewardTokenAddressaddressundefined

l2orchestrator()

Solidity

function l2orchestrator() external view returns (address)

Returns

NameTypeDescription
_0addressundefined

merkleRoot()

ERC20-claimee inclusion root

Solidity

function merkleRoot() external view returns (bytes32)

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.

rewardToken()

Solidity

function rewardToken() external view returns (contract IERC20Upgradeable)

Returns

NameTypeDescription
_0contract IERC20Upgradeableundefined

setL2orchestrator(address)

Solidity

function setL2orchestrator(address _l2orchestrator) external nonpayable

Parameters

NameTypeDescription
_l2orchestratoraddressundefined

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

Emitted after a successful token claim

Solidity

event Claim(address indexed to, uint256 amount)

Parameters

NameTypeDescription
to indexedaddressrecipient of claim
amountuint256of tokens claimed

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