Expand description
Generated by the following Solidity interface…
interface IRewardClaim {
error AlreadyClaimed();
error DailyLimitExceeded();
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);
function totalClaimed() 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": "function",
"name": "totalClaimed",
"inputs": [],
"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": "DailyLimitExceeded",
"inputs": []
},
{
"type": "error",
"name": "InvalidAuthRoot",
"inputs": []
},
{
"type": "error",
"name": "InvalidRewardAmount",
"inputs": []
}
]Structs§
- Already
Claimed - Custom error with signature
AlreadyClaimed()and selector0x646cf558. - Daily
Limit Exceeded - Custom error with signature
DailyLimitExceeded()and selector0x194bd314. - IReward
Claim Instance - A
IRewardClaiminstance. - 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. - total
Claimed Call - Function with signature
totalClaimed()and selector0xd54ad2a1. - total
Claimed Return - Container type for the return parameters of the
totalClaimed()function.
Enums§
- IReward
Claim Calls - Container for all the
IRewardClaimfunction calls. - IReward
Claim Errors - Container for all the
IRewardClaimcustom errors. - IReward
Claim Events - Container for all the
IRewardClaimevents.
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
providerand constructor arguments, if any. - deploy_
builder - Creates a
RawCallBuilderfor deploying this contract using the givenproviderand constructor arguments, if any. - new
- Creates a new wrapper around an on-chain
IRewardClaimcontract instance.