L2rewards.sol
Methods
changeMerkleRootHash(bytes32)
function changeMerkleRootHash(bytes32 hash) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
hash | bytes32 | undefined |
claim(uint256,bytes32[])
Allows claiming tokens if hash made from address and amount is part of the merkle tree
function claim(uint256 amount, bytes32[] proof) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
amount | uint256 | of total tokens owed to claimee |
proof | bytes32[] | merkle proof to prove address and amount are in tree |
claimed(address)
Mapping of addresses who have claimed tokens
function claimed(address) external view returns (uint256)
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 |
l2orchestrator()
function l2orchestrator() external view returns (address)
Returns
Name | Type | Description |
---|---|---|
_0 | address | undefined |
merkleRoot()
ERC20-claimee inclusion root
function merkleRoot() external view returns (bytes32)
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.
rewardToken()
function rewardToken() external view returns (contract IERC20Upgradeable)
Returns
Name | Type | Description |
---|---|---|
_0 | contract IERC20Upgradeable | undefined |
setL2orchestrator(address)
function setL2orchestrator(address _l2orchestrator) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
_l2orchestrator | address | 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 |
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
Emitted after a successful token claim
event Claim(address indexed to, uint256 amount)
Parameters
Name | Type | Description |
---|---|---|
to indexed | address | recipient of claim |
amount | uint256 | of tokens claimed |
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 |