编译器
0.8.11+commit.d7f03943
文件 1 的 12:AccessControl.sol
pragma solidity ^0.8.0;
import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";
abstract contract AccessControl is Context, IAccessControl, ERC165 {
struct RoleData {
mapping(address => bool) members;
bytes32 adminRole;
}
mapping(bytes32 => RoleData) private _roles;
bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;
modifier onlyRole(bytes32 role) {
_checkRole(role, _msgSender());
_;
}
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
}
function hasRole(bytes32 role, address account) public view override returns (bool) {
return _roles[role].members[account];
}
function _checkRole(bytes32 role, address account) internal view {
if (!hasRole(role, account)) {
revert(
string(
abi.encodePacked(
"AccessControl: account ",
Strings.toHexString(uint160(account), 20),
" is missing role ",
Strings.toHexString(uint256(role), 32)
)
)
);
}
}
function getRoleAdmin(bytes32 role) public view override returns (bytes32) {
return _roles[role].adminRole;
}
function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
_grantRole(role, account);
}
function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
_revokeRole(role, account);
}
function renounceRole(bytes32 role, address account) public virtual override {
require(account == _msgSender(), "AccessControl: can only renounce roles for self");
_revokeRole(role, account);
}
function _setupRole(bytes32 role, address account) internal virtual {
_grantRole(role, account);
}
function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
bytes32 previousAdminRole = getRoleAdmin(role);
_roles[role].adminRole = adminRole;
emit RoleAdminChanged(role, previousAdminRole, adminRole);
}
function _grantRole(bytes32 role, address account) internal virtual {
if (!hasRole(role, account)) {
_roles[role].members[account] = true;
emit RoleGranted(role, account, _msgSender());
}
}
function _revokeRole(bytes32 role, address account) internal virtual {
if (hasRole(role, account)) {
_roles[role].members[account] = false;
emit RoleRevoked(role, account, _msgSender());
}
}
}
文件 2 的 12:Context.sol
pragma solidity ^0.8.0;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
文件 3 的 12:ECDSA.sol
pragma solidity ^0.8.0;
import "../Strings.sol";
library ECDSA {
enum RecoverError {
NoError,
InvalidSignature,
InvalidSignatureLength,
InvalidSignatureS,
InvalidSignatureV
}
function _throwError(RecoverError error) private pure {
if (error == RecoverError.NoError) {
return;
} else if (error == RecoverError.InvalidSignature) {
revert("ECDSA: invalid signature");
} else if (error == RecoverError.InvalidSignatureLength) {
revert("ECDSA: invalid signature length");
} else if (error == RecoverError.InvalidSignatureS) {
revert("ECDSA: invalid signature 's' value");
} else if (error == RecoverError.InvalidSignatureV) {
revert("ECDSA: invalid signature 'v' value");
}
}
function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
if (signature.length == 65) {
bytes32 r;
bytes32 s;
uint8 v;
assembly {
r := mload(add(signature, 0x20))
s := mload(add(signature, 0x40))
v := byte(0, mload(add(signature, 0x60)))
}
return tryRecover(hash, v, r, s);
} else if (signature.length == 64) {
bytes32 r;
bytes32 vs;
assembly {
r := mload(add(signature, 0x20))
vs := mload(add(signature, 0x40))
}
return tryRecover(hash, r, vs);
} else {
return (address(0), RecoverError.InvalidSignatureLength);
}
}
function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, signature);
_throwError(error);
return recovered;
}
function tryRecover(
bytes32 hash,
bytes32 r,
bytes32 vs
) internal pure returns (address, RecoverError) {
bytes32 s;
uint8 v;
assembly {
s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
v := add(shr(255, vs), 27)
}
return tryRecover(hash, v, r, s);
}
function recover(
bytes32 hash,
bytes32 r,
bytes32 vs
) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, r, vs);
_throwError(error);
return recovered;
}
function tryRecover(
bytes32 hash,
uint8 v,
bytes32 r,
bytes32 s
) internal pure returns (address, RecoverError) {
if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
return (address(0), RecoverError.InvalidSignatureS);
}
if (v != 27 && v != 28) {
return (address(0), RecoverError.InvalidSignatureV);
}
address signer = ecrecover(hash, v, r, s);
if (signer == address(0)) {
return (address(0), RecoverError.InvalidSignature);
}
return (signer, RecoverError.NoError);
}
function recover(
bytes32 hash,
uint8 v,
bytes32 r,
bytes32 s
) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, v, r, s);
_throwError(error);
return recovered;
}
function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
}
function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
}
function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
}
}
文件 4 的 12:ERC165.sol
pragma solidity ^0.8.0;
import "./IERC165.sol";
abstract contract ERC165 is IERC165 {
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}
文件 5 的 12:IAccessControl.sol
pragma solidity ^0.8.0;
interface IAccessControl {
event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);
event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);
event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);
function hasRole(bytes32 role, address account) external view returns (bool);
function getRoleAdmin(bytes32 role) external view returns (bytes32);
function grantRole(bytes32 role, address account) external;
function revokeRole(bytes32 role, address account) external;
function renounceRole(bytes32 role, address account) external;
}
文件 6 的 12:IERC165.sol
pragma solidity ^0.8.0;
interface IERC165 {
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
文件 7 的 12:IERC20.sol
pragma solidity ^0.8.0;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool);
function allowance(address owner, address spender) external view returns (uint256);
function approve(address spender, uint256 amount) external returns (bool);
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
}
文件 8 的 12:IERC721.sol
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165.sol";
interface IERC721 is IERC165 {
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
function balanceOf(address owner) external view returns (uint256 balance);
function ownerOf(uint256 tokenId) external view returns (address owner);
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
function approve(address to, uint256 tokenId) external;
function getApproved(uint256 tokenId) external view returns (address operator);
function setApprovalForAll(address operator, bool _approved) external;
function isApprovedForAll(address owner, address operator) external view returns (bool);
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
}
文件 9 的 12:MerkleProof.sol
pragma solidity ^0.8.0;
library MerkleProof {
function verify(
bytes32[] memory proof,
bytes32 root,
bytes32 leaf
) internal pure returns (bool) {
return processProof(proof, leaf) == root;
}
function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
bytes32 computedHash = leaf;
for (uint256 i = 0; i < proof.length; i++) {
bytes32 proofElement = proof[i];
if (computedHash <= proofElement) {
computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
} else {
computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
}
}
return computedHash;
}
}
文件 10 的 12:Ownable.sol
pragma solidity ^0.8.0;
import "../utils/Context.sol";
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor() {
_transferOwnership(_msgSender());
}
function owner() public view virtual returns (address) {
return _owner;
}
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
文件 11 的 12:Strings.sol
pragma solidity ^0.8.0;
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
function toString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
}
文件 12 的 12:WattsClaim.sol
pragma solidity 0.8.11;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import { MerkleProof } from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
abstract contract IWatts is IERC20 {
function mintClaimable(address _to, uint256 _amount) external {}
}
contract WattsClaim is AccessControl, Ownable {
using ECDSA for bytes32;
IERC721 public slotieNFT;
IWatts public watts;
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
bytes32 public constant BURNER_ROLE = keccak256("BURNER_ROLE");
uint256 public deployedTime = block.timestamp;
uint256 public issuanceRate = 10 * 10**18;
uint256 public issuancePeriod = 1 days;
uint256 public claimStart = 1644624000;
uint256 public slotieDeployTime = 1638877989;
uint256 public earnPeriod = 90 days - (deployedTime - slotieDeployTime);
uint256 public claimEndTime = deployedTime + earnPeriod;
mapping(address => uint256) addressToAccumulatedWATTs;
mapping(address => uint256) addressToLastClaimedTimeStamp;
bytes32 public preClaimMerkleProof = "";
bytes32 public EHRMerkleProof = "";
mapping(address => uint256) public addressToPreClaim;
mapping(address => uint256) public addressToEHRNonce;
event ClaimedReward(address indexed user, uint256 reward, uint256 timestamp);
event AccumulatedReward(address indexed user, uint256 reward, uint256 timestamp);
event setSlotieNFTEvent(address indexed slotieNFT);
event setIssuanceRateEvent(uint256 indexed issuanceRate);
event setIssuancePeriodEvent(uint256 indexed issuancePeriod);
event setClaimStartEvent(uint256 indexed claimStart);
event setEarnPeriodEvent(uint256 indexed earnPeriod);
event setClaimEndTimeEvent(uint256 indexed claimEndTime);
event setPreClaimMerkleProofEvent(bytes32 indexed preClaimMerkleProof);
event setEHRMerkleProofEvent(bytes32 indexed EHRMerkleProof);
event setDeployTimeEvent(uint256 indexed deployTime);
modifier slotieCanClaim() {
require(block.timestamp >= claimStart, "CLAIM LOCKED");
require(address(slotieNFT) != address(0), "SLOTIE NFT NOT SET");
require(address(watts) != address(0), "WATTS NOT SET");
_;
}
constructor(
address _slotieNFT,
address _watts
) Ownable() {
_setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
_setupRole(MINTER_ROLE, msg.sender);
_setupRole(BURNER_ROLE, msg.sender);
slotieNFT = IERC721(_slotieNFT);
watts = IWatts(_watts);
}
function _slotieClaim(address recipient, uint256 preClaimAmount, uint256 ehrAmount, uint256 nonce, bytes32[] memory preClaimProof, bytes32[] memory ehrProof) internal {
uint256 preClaimApplicable;
uint256 ehrApplicable;
if (preClaimProof.length > 0 && preClaimAmount != 0) {
require(addressToPreClaim[recipient] == 0, "SLOTIE PRE CLAIM ALREADY DONE");
bytes32 leaf = keccak256(abi.encodePacked(recipient, preClaimAmount));
require(MerkleProof.verify(preClaimProof, preClaimMerkleProof, leaf), "SLOTIE INVALID PRE CLAIM PROOF");
addressToPreClaim[recipient] = 1;
preClaimApplicable = 1;
}
if (ehrProof.length > 0 && ehrAmount != 0) {
require(nonce == addressToEHRNonce[recipient], "SLOTIE INCORRECT NONCE");
bytes32 leaf = keccak256(abi.encodePacked(recipient, ehrAmount, addressToEHRNonce[recipient]));
require(MerkleProof.verify(ehrProof, EHRMerkleProof, leaf), "SLOTIE INVALID EHR PROOF");
addressToEHRNonce[recipient] = addressToEHRNonce[recipient] + 1;
ehrApplicable = 1;
}
uint256 balance = slotieNFT.balanceOf(recipient);
uint256 accumulatedWatts = addressToAccumulatedWATTs[recipient];
uint256 lastClaimed = addressToLastClaimedTimeStamp[recipient];
uint256 currentTime = block.timestamp;
if (currentTime >= claimEndTime) {
currentTime = claimEndTime;
}
if (deployedTime > lastClaimed) {
lastClaimed = deployedTime;
} else if (lastClaimed == claimEndTime) {
lastClaimed = currentTime;
}
uint256 reward = (currentTime - lastClaimed) * issuanceRate * balance / issuancePeriod;
if (currentTime >= claimStart && accumulatedWatts != 0) {
reward = reward + accumulatedWatts;
delete addressToAccumulatedWATTs[recipient];
}
if (preClaimApplicable != 0) {
reward = reward + preClaimAmount;
}
if (ehrApplicable != 0) {
reward = reward + ehrAmount;
}
addressToLastClaimedTimeStamp[recipient] = currentTime;
if (reward > 0) {
if (currentTime < claimStart) {
addressToAccumulatedWATTs[recipient] = addressToAccumulatedWATTs[recipient] + reward;
emit AccumulatedReward(recipient, reward, currentTime);
} else {
watts.mintClaimable(recipient, reward);
emit ClaimedReward(recipient, reward, currentTime);
}
}
}
function slotieGetClaimableBalance(address recipient, uint256 preClaimAmount, uint256 ehrAmount, uint256 nonce, bytes32[] memory preClaimProof, bytes32[] memory ehrProof) external view returns (uint256) {
require(address(slotieNFT) != address(0), "SLOTIE NFT NOT SET");
uint256 preClaimApplicable;
uint256 ehrApplicable;
if (preClaimProof.length > 0 && preClaimAmount != 0) {
bytes32 leaf = keccak256(abi.encodePacked(recipient, preClaimAmount));
preClaimApplicable = MerkleProof.verify(preClaimProof, preClaimMerkleProof, leaf) && addressToPreClaim[recipient] == 0 ? 1 : 0;
}
if (ehrProof.length > 0 && ehrAmount != 0) {
bytes32 leaf = keccak256(abi.encodePacked(recipient, ehrAmount, nonce));
ehrApplicable = MerkleProof.verify(ehrProof, EHRMerkleProof, leaf) && nonce == addressToEHRNonce[recipient] ? 1 : 0;
}
uint256 balance = slotieNFT.balanceOf(recipient);
uint256 lastClaimed = addressToLastClaimedTimeStamp[recipient];
uint256 accumulatedWatts = addressToAccumulatedWATTs[recipient];
uint256 currentTime = block.timestamp;
if (currentTime >= claimEndTime) {
currentTime = claimEndTime;
}
if (deployedTime > lastClaimed) {
lastClaimed = deployedTime;
} else if (lastClaimed == claimEndTime) {
lastClaimed = currentTime;
}
uint256 reward = (currentTime - lastClaimed) * issuanceRate * balance / issuancePeriod;
if (accumulatedWatts != 0) {
reward = reward + accumulatedWatts;
}
if (preClaimApplicable != 0) {
reward = reward + preClaimAmount;
}
if (ehrApplicable != 0) {
reward = reward + ehrAmount;
}
return reward;
}
function slotieClaim(uint256 preClaimAmount, uint256 ehrAmount, uint256 nonce, bytes32[] memory preClaimProof, bytes32[] memory ehrProof) external slotieCanClaim {
_slotieClaim(msg.sender, preClaimAmount, ehrAmount, nonce, preClaimProof, ehrProof);
}
function updateReward(address from, address to) external {
require(msg.sender == address(slotieNFT), "ONLY CALLABLE FROM SLOTIE");
bytes32[] memory empty;
if (from != address(0)) {
_slotieClaim(from, 0, 0, 0, empty, empty);
}
if (to != address(0)) {
_slotieClaim(to, 0, 0, 0, empty, empty);
}
}
function setSlotieNFT(address newSlotieNFT) external onlyOwner {
slotieNFT = IERC721(newSlotieNFT);
emit setSlotieNFTEvent(newSlotieNFT);
}
function setDeployTime(uint256 newDeployTime) external onlyOwner {
deployedTime = newDeployTime;
emit setDeployTimeEvent(newDeployTime);
}
function setIssuanceRate(uint256 newIssuanceRate) external onlyOwner {
issuanceRate = newIssuanceRate;
emit setIssuanceRateEvent(newIssuanceRate);
}
function setIssuancePeriod(uint256 newIssuancePeriod) external onlyOwner {
issuancePeriod = newIssuancePeriod;
emit setIssuancePeriodEvent(newIssuancePeriod);
}
function setClaimStart(uint256 newClaimStart) external onlyOwner {
claimStart = newClaimStart;
emit setClaimStartEvent(newClaimStart);
}
function setEarnPeriod(uint256 newEarnPeriod) external onlyOwner {
earnPeriod = newEarnPeriod;
emit setEarnPeriodEvent(newEarnPeriod);
}
function setClaimEndTime(uint256 newClaimEndTime) external onlyOwner {
claimEndTime = newClaimEndTime;
emit setClaimEndTimeEvent(newClaimEndTime);
}
function setPreClaimMerkleProof(bytes32 newPreClaimMerkleProof) external onlyOwner {
preClaimMerkleProof = newPreClaimMerkleProof;
emit setPreClaimMerkleProofEvent(newPreClaimMerkleProof);
}
function setEHRMerkleProof(bytes32 newEHRMerkleProof) external onlyOwner {
EHRMerkleProof = newEHRMerkleProof;
emit setEHRMerkleProofEvent(newEHRMerkleProof);
}
function setSlotieDeployTimeAndClaimEndTime(uint256 newDeployTime, uint256 newSlotieClaimEndTime) external onlyOwner {
deployedTime = newDeployTime;
claimEndTime = newSlotieClaimEndTime;
emit setDeployTimeEvent(newDeployTime);
emit setClaimEndTimeEvent(newSlotieClaimEndTime);
}
}
{
"compilationTarget": {
"contracts/WattsClaim.sol": "WattsClaim"
},
"evmVersion": "london",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs",
"useLiteralContent": true
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": []
}
[{"inputs":[{"internalType":"address","name":"_slotieNFT","type":"address"},{"internalType":"address","name":"_watts","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"AccumulatedReward","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"ClaimedReward","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"claimEndTime","type":"uint256"}],"name":"setClaimEndTimeEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"claimStart","type":"uint256"}],"name":"setClaimStartEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"deployTime","type":"uint256"}],"name":"setDeployTimeEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"EHRMerkleProof","type":"bytes32"}],"name":"setEHRMerkleProofEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"earnPeriod","type":"uint256"}],"name":"setEarnPeriodEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"issuancePeriod","type":"uint256"}],"name":"setIssuancePeriodEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"issuanceRate","type":"uint256"}],"name":"setIssuanceRateEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"preClaimMerkleProof","type":"bytes32"}],"name":"setPreClaimMerkleProofEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"slotieNFT","type":"address"}],"name":"setSlotieNFTEvent","type":"event"},{"inputs":[],"name":"BURNER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EHRMerkleProof","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressToEHRNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressToPreClaim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deployedTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"earnPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"issuancePeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"issuanceRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preClaimMerkleProof","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newClaimEndTime","type":"uint256"}],"name":"setClaimEndTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newClaimStart","type":"uint256"}],"name":"setClaimStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newDeployTime","type":"uint256"}],"name":"setDeployTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newEHRMerkleProof","type":"bytes32"}],"name":"setEHRMerkleProof","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newEarnPeriod","type":"uint256"}],"name":"setEarnPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newIssuancePeriod","type":"uint256"}],"name":"setIssuancePeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newIssuanceRate","type":"uint256"}],"name":"setIssuanceRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newPreClaimMerkleProof","type":"bytes32"}],"name":"setPreClaimMerkleProof","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newDeployTime","type":"uint256"},{"internalType":"uint256","name":"newSlotieClaimEndTime","type":"uint256"}],"name":"setSlotieDeployTimeAndClaimEndTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newSlotieNFT","type":"address"}],"name":"setSlotieNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"preClaimAmount","type":"uint256"},{"internalType":"uint256","name":"ehrAmount","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes32[]","name":"preClaimProof","type":"bytes32[]"},{"internalType":"bytes32[]","name":"ehrProof","type":"bytes32[]"}],"name":"slotieClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"slotieDeployTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"preClaimAmount","type":"uint256"},{"internalType":"uint256","name":"ehrAmount","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes32[]","name":"preClaimProof","type":"bytes32[]"},{"internalType":"bytes32[]","name":"ehrProof","type":"bytes32[]"}],"name":"slotieGetClaimableBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"slotieNFT","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"}],"name":"updateReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"watts","outputs":[{"internalType":"contract IWatts","name":"","type":"address"}],"stateMutability":"view","type":"function"}]