Expand description
Generated by the following Solidity interface…
interface IRewardClaim {
error AlreadyClaimed();
error InvalidAuthRoot();
error InvalidRewardAmount();
event RewardsClaimed(address indexed user, uint256 amount);
function claimRewards(uint256 lifetimeRewards, bytes memory authData) external;
function claimedRewards(address claimer) external view returns (uint256);
}
…which was generated by the following JSON ABI:
[
{
"type": "function",
"name": "claimRewards",
"inputs": [
{
"name": "lifetimeRewards",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "authData",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "claimedRewards",
"inputs": [
{
"name": "claimer",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "event",
"name": "RewardsClaimed",
"inputs": [
{
"name": "user",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "error",
"name": "AlreadyClaimed",
"inputs": []
},
{
"type": "error",
"name": "InvalidAuthRoot",
"inputs": []
},
{
"type": "error",
"name": "InvalidRewardAmount",
"inputs": []
}
]
Structs§
- Already
Claimed - Custom error with signature
AlreadyClaimed()
and selector0x646cf558
. - IReward
Claim Instance - A
IRewardClaim
instance. - Invalid
Auth Root - Custom error with signature
InvalidAuthRoot()
and selector0x328b8878
. - Invalid
Reward Amount - Custom error with signature
InvalidRewardAmount()
and selector0x38539865
. - Rewards
Claimed - Event with signature
RewardsClaimed(address,uint256)
and selector0xfc30cddea38e2bf4d6ea7d3f9ed3b6ad7f176419f4963bd81318067a4aee73fe
. - claim
Rewards Call - Function with signature
claimRewards(uint256,bytes)
and selector0x549dd8c3
. - claim
Rewards Return - Container type for the return parameters of the
claimRewards(uint256,bytes)
function. - claimed
Rewards Call - Function with signature
claimedRewards(address)
and selector0xbd834345
. - claimed
Rewards Return - Container type for the return parameters of the
claimedRewards(address)
function.
Enums§
- IReward
Claim Calls - Container for all the
IRewardClaim
function calls. - IReward
Claim Errors - Container for all the
IRewardClaim
custom errors. - IReward
Claim Events - Container for all the
IRewardClaim
events.
Statics§
- BYTECODE
- The creation / init bytecode of the contract.
- DEPLOYED_
BYTECODE - The runtime bytecode of the contract, as deployed on the network.
Functions§
- deploy
- Deploys this contract using the given
provider
and constructor arguments, if any. - deploy_
builder - Creates a
RawCallBuilder
for deploying this contract using the givenprovider
and constructor arguments, if any. - new
- Creates a new wrapper around an on-chain
IRewardClaim
contract instance.