Module IRewardClaim

Source
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§

AlreadyClaimed
Custom error with signature AlreadyClaimed() and selector 0x646cf558.
IRewardClaimInstance
A IRewardClaim instance.
InvalidAuthRoot
Custom error with signature InvalidAuthRoot() and selector 0x328b8878.
InvalidRewardAmount
Custom error with signature InvalidRewardAmount() and selector 0x38539865.
RewardsClaimed
Event with signature RewardsClaimed(address,uint256) and selector 0xfc30cddea38e2bf4d6ea7d3f9ed3b6ad7f176419f4963bd81318067a4aee73fe.
claimRewardsCall
Function with signature claimRewards(uint256,bytes) and selector 0x549dd8c3.
claimRewardsReturn
Container type for the return parameters of the claimRewards(uint256,bytes) function.
claimedRewardsCall
Function with signature claimedRewards(address) and selector 0xbd834345.
claimedRewardsReturn
Container type for the return parameters of the claimedRewards(address) function.

Enums§

IRewardClaimCalls
Container for all the IRewardClaim function calls.
IRewardClaimErrors
Container for all the IRewardClaim custom errors.
IRewardClaimEvents
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 given provider and constructor arguments, if any.
new
Creates a new wrapper around an on-chain IRewardClaim contract instance.