Expand description
Generated by the following Solidity interface…
library IDiamond {
type FacetCutAction is uint8;
struct FacetCut {
address facetAddress;
FacetCutAction action;
bytes4[] functionSelectors;
}
}
library IDiamondLoupe {
struct Facet {
address facetAddress;
bytes4[] functionSelectors;
}
}
library LibRateLimitNFTStorage {
struct RateLimit {
uint256 requestsPerKilosecond;
uint256 expiresAt;
}
}
interface RateLimitNFT {
error CallerNotOwner();
error CannotAddFunctionToDiamondThatAlreadyExists(bytes4 _selector);
error CannotAddSelectorsToZeroAddress(bytes4[] _selectors);
error CannotRemoveFunctionThatDoesNotExist(bytes4 _selector);
error CannotRemoveImmutableFunction(bytes4 _selector);
error CannotReplaceFunctionThatDoesNotExists(bytes4 _selector);
error CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet(bytes4 _selector);
error CannotReplaceFunctionsFromFacetWithZeroAddress(bytes4[] _selectors);
error CannotReplaceImmutableFunction(bytes4 _selector);
error IncorrectFacetCutAction(uint8 _action);
error InitializationFunctionReverted(address _initializationContractAddress, bytes _calldata);
error NoBytecodeAtAddress(address _contractAddress, string _message);
error NoSelectorsProvidedForFacetForCut(address _facetAddress);
error NotContractOwner(address _user, address _contractOwner);
error RemoveFacetAddressMustBeZeroAddress(address _facetAddress);
event AdditionalRequestsPerKilosecondCostSet(uint256 newAdditionalRequestsPerKilosecondCost);
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
event DiamondCut(IDiamond.FacetCut[] _diamondCut, address _init, bytes _calldata);
event FreeMintSignerSet(address indexed newFreeMintSigner);
event FreeRequestsPerRateLimitWindowSet(uint256 newFreeRequestsPerRateLimitWindow);
event Initialized(uint8 version);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
event RLIHolderRateLimitWindowSecondsSet(uint256 newRLIHolderRateLimitWindowSeconds);
event RateLimitWindowSecondsSet(uint256 newRateLimitWindowSeconds);
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
event Withdrew(uint256 amount);
function RLIHolderRateLimitWindowSeconds() external view returns (uint256);
function additionalRequestsPerKilosecondCost() external view returns (uint256);
function approve(address to, uint256 tokenId) external;
function balanceOf(address owner) external view returns (uint256);
function burn(uint256 tokenId) external;
function calculateCost(uint256 requestsPerKilosecond, uint256 expiresAt) external view returns (uint256);
function calculateRequestsPerKilosecond(uint256 payingAmount, uint256 expiresAt) external view returns (uint256);
function capacity(uint256 tokenId) external view returns (LibRateLimitNFTStorage.RateLimit memory);
function checkBelowMaxRequestsPerKilosecond(uint256 requestedRequestsPerKilosecond) external view returns (bool);
function currentSoldRequestsPerKilosecond() external view returns (uint256);
function defaultRateLimitWindowSeconds() external view returns (uint256);
function diamondCut(IDiamond.FacetCut[] memory _diamondCut, address _init, bytes memory _calldata) external;
function facetAddress(bytes4 _functionSelector) external view returns (address facetAddress_);
function facetAddresses() external view returns (address[] memory facetAddresses_);
function facetFunctionSelectors(address _facet) external view returns (bytes4[] memory _facetFunctionSelectors);
function facets() external view returns (IDiamondLoupe.Facet[] memory facets_);
function freeMint(uint256 expiresAt, uint256 requestsPerKilosecond, bytes32 msgHash, uint8 v, bytes32 r, bytes32 sVal) external returns (uint256);
function freeMintSigTest(uint256 expiresAt, uint256 requestsPerKilosecond, bytes32 msgHash, uint8 v, bytes32 r, bytes32 sVal) external view;
function freeMintSigner() external view returns (address);
function freeRequestsPerRateLimitWindow() external view returns (uint256);
function getApproved(uint256 tokenId) external view returns (address);
function initialize() external;
function isApprovedForAll(address owner, address operator) external view returns (bool);
function isExpired(uint256 tokenId) external view returns (bool);
function maxExpirationSeconds() external view returns (uint256);
function maxRequestsPerKilosecond() external view returns (uint256);
function mint(uint256 expiresAt) external payable returns (uint256);
function name() external view returns (string memory);
function owner() external view returns (address owner_);
function ownerOf(uint256 tokenId) external view returns (address);
function prefixed(bytes32 hash) external pure returns (bytes32);
function pruneExpired(address owner) external;
function redeemedFreeMints(bytes32 msgHash) external view returns (bool);
function safeTransferFrom(address from, address to, uint256 tokenId) external;
function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) external;
function setAdditionalRequestsPerKilosecondCost(uint256 newAdditionalRequestsPerKilosecondCost) external;
function setApprovalForAll(address operator, bool approved) external;
function setFreeMintSigner(address newFreeMintSigner) external;
function setFreeRequestsPerRateLimitWindow(uint256 newFreeRequestsPerRateLimitWindow) external;
function setMaxExpirationSeconds(uint256 newMaxExpirationSeconds) external;
function setMaxRequestsPerKilosecond(uint256 newMaxRequestsPerKilosecond) external;
function setRLIHolderRateLimitWindowSeconds(uint256 newRLIHolderRateLimitWindowSeconds) external;
function setRateLimitWindowSeconds(uint256 newRateLimitWindowSeconds) external;
function supportsInterface(bytes4 interfaceId) external view returns (bool);
function symbol() external view returns (string memory);
function tokenByIndex(uint256 index) external view returns (uint256);
function tokenIdCounter() external view returns (uint256);
function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);
function tokenSVG(uint256 tokenId) external view returns (string memory);
function tokenURI(uint256 tokenId) external view returns (string memory);
function totalSoldRequestsPerKilosecondByExpirationTime(uint256 expiresAt) external view returns (uint256);
function totalSupply() external view returns (uint256);
function transferFrom(address from, address to, uint256 tokenId) external;
function transferOwnership(address _newOwner) external;
function withdraw() external;
}
…which was generated by the following JSON ABI:
[
{
"type": "function",
"name": "RLIHolderRateLimitWindowSeconds",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "additionalRequestsPerKilosecondCost",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "approve",
"inputs": [
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "tokenId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "balanceOf",
"inputs": [
{
"name": "owner",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "burn",
"inputs": [
{
"name": "tokenId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "calculateCost",
"inputs": [
{
"name": "requestsPerKilosecond",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "expiresAt",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "calculateRequestsPerKilosecond",
"inputs": [
{
"name": "payingAmount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "expiresAt",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "capacity",
"inputs": [
{
"name": "tokenId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "tuple",
"internalType": "struct LibRateLimitNFTStorage.RateLimit",
"components": [
{
"name": "requestsPerKilosecond",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "expiresAt",
"type": "uint256",
"internalType": "uint256"
}
]
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "checkBelowMaxRequestsPerKilosecond",
"inputs": [
{
"name": "requestedRequestsPerKilosecond",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "currentSoldRequestsPerKilosecond",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "defaultRateLimitWindowSeconds",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "diamondCut",
"inputs": [
{
"name": "_diamondCut",
"type": "tuple[]",
"internalType": "struct IDiamond.FacetCut[]",
"components": [
{
"name": "facetAddress",
"type": "address",
"internalType": "address"
},
{
"name": "action",
"type": "uint8",
"internalType": "enum IDiamond.FacetCutAction"
},
{
"name": "functionSelectors",
"type": "bytes4[]",
"internalType": "bytes4[]"
}
]
},
{
"name": "_init",
"type": "address",
"internalType": "address"
},
{
"name": "_calldata",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "facetAddress",
"inputs": [
{
"name": "_functionSelector",
"type": "bytes4",
"internalType": "bytes4"
}
],
"outputs": [
{
"name": "facetAddress_",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "facetAddresses",
"inputs": [],
"outputs": [
{
"name": "facetAddresses_",
"type": "address[]",
"internalType": "address[]"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "facetFunctionSelectors",
"inputs": [
{
"name": "_facet",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "_facetFunctionSelectors",
"type": "bytes4[]",
"internalType": "bytes4[]"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "facets",
"inputs": [],
"outputs": [
{
"name": "facets_",
"type": "tuple[]",
"internalType": "struct IDiamondLoupe.Facet[]",
"components": [
{
"name": "facetAddress",
"type": "address",
"internalType": "address"
},
{
"name": "functionSelectors",
"type": "bytes4[]",
"internalType": "bytes4[]"
}
]
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "freeMint",
"inputs": [
{
"name": "expiresAt",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "requestsPerKilosecond",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "msgHash",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "v",
"type": "uint8",
"internalType": "uint8"
},
{
"name": "r",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "sVal",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "freeMintSigTest",
"inputs": [
{
"name": "expiresAt",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "requestsPerKilosecond",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "msgHash",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "v",
"type": "uint8",
"internalType": "uint8"
},
{
"name": "r",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "sVal",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [],
"stateMutability": "view"
},
{
"type": "function",
"name": "freeMintSigner",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "freeRequestsPerRateLimitWindow",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getApproved",
"inputs": [
{
"name": "tokenId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "initialize",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "isApprovedForAll",
"inputs": [
{
"name": "owner",
"type": "address",
"internalType": "address"
},
{
"name": "operator",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "isExpired",
"inputs": [
{
"name": "tokenId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "maxExpirationSeconds",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "maxRequestsPerKilosecond",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "mint",
"inputs": [
{
"name": "expiresAt",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "payable"
},
{
"type": "function",
"name": "name",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "owner",
"inputs": [],
"outputs": [
{
"name": "owner_",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "ownerOf",
"inputs": [
{
"name": "tokenId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "prefixed",
"inputs": [
{
"name": "hash",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "pure"
},
{
"type": "function",
"name": "pruneExpired",
"inputs": [
{
"name": "owner",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "redeemedFreeMints",
"inputs": [
{
"name": "msgHash",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "safeTransferFrom",
"inputs": [
{
"name": "from",
"type": "address",
"internalType": "address"
},
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "tokenId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "safeTransferFrom",
"inputs": [
{
"name": "from",
"type": "address",
"internalType": "address"
},
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "tokenId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "data",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "setAdditionalRequestsPerKilosecondCost",
"inputs": [
{
"name": "newAdditionalRequestsPerKilosecondCost",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "setApprovalForAll",
"inputs": [
{
"name": "operator",
"type": "address",
"internalType": "address"
},
{
"name": "approved",
"type": "bool",
"internalType": "bool"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "setFreeMintSigner",
"inputs": [
{
"name": "newFreeMintSigner",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "setFreeRequestsPerRateLimitWindow",
"inputs": [
{
"name": "newFreeRequestsPerRateLimitWindow",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "setMaxExpirationSeconds",
"inputs": [
{
"name": "newMaxExpirationSeconds",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "setMaxRequestsPerKilosecond",
"inputs": [
{
"name": "newMaxRequestsPerKilosecond",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "setRLIHolderRateLimitWindowSeconds",
"inputs": [
{
"name": "newRLIHolderRateLimitWindowSeconds",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "setRateLimitWindowSeconds",
"inputs": [
{
"name": "newRateLimitWindowSeconds",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "supportsInterface",
"inputs": [
{
"name": "interfaceId",
"type": "bytes4",
"internalType": "bytes4"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "symbol",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "tokenByIndex",
"inputs": [
{
"name": "index",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "tokenIdCounter",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "tokenOfOwnerByIndex",
"inputs": [
{
"name": "owner",
"type": "address",
"internalType": "address"
},
{
"name": "index",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "tokenSVG",
"inputs": [
{
"name": "tokenId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "tokenURI",
"inputs": [
{
"name": "tokenId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "totalSoldRequestsPerKilosecondByExpirationTime",
"inputs": [
{
"name": "expiresAt",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "totalSupply",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "transferFrom",
"inputs": [
{
"name": "from",
"type": "address",
"internalType": "address"
},
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "tokenId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "transferOwnership",
"inputs": [
{
"name": "_newOwner",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "withdraw",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "event",
"name": "AdditionalRequestsPerKilosecondCostSet",
"inputs": [
{
"name": "newAdditionalRequestsPerKilosecondCost",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "Approval",
"inputs": [
{
"name": "owner",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "approved",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "tokenId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "ApprovalForAll",
"inputs": [
{
"name": "owner",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "operator",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "approved",
"type": "bool",
"indexed": false,
"internalType": "bool"
}
],
"anonymous": false
},
{
"type": "event",
"name": "DiamondCut",
"inputs": [
{
"name": "_diamondCut",
"type": "tuple[]",
"indexed": false,
"internalType": "struct IDiamond.FacetCut[]",
"components": [
{
"name": "facetAddress",
"type": "address",
"internalType": "address"
},
{
"name": "action",
"type": "uint8",
"internalType": "enum IDiamond.FacetCutAction"
},
{
"name": "functionSelectors",
"type": "bytes4[]",
"internalType": "bytes4[]"
}
]
},
{
"name": "_init",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "_calldata",
"type": "bytes",
"indexed": false,
"internalType": "bytes"
}
],
"anonymous": false
},
{
"type": "event",
"name": "FreeMintSignerSet",
"inputs": [
{
"name": "newFreeMintSigner",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "FreeRequestsPerRateLimitWindowSet",
"inputs": [
{
"name": "newFreeRequestsPerRateLimitWindow",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "Initialized",
"inputs": [
{
"name": "version",
"type": "uint8",
"indexed": false,
"internalType": "uint8"
}
],
"anonymous": false
},
{
"type": "event",
"name": "OwnershipTransferred",
"inputs": [
{
"name": "previousOwner",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "newOwner",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "RLIHolderRateLimitWindowSecondsSet",
"inputs": [
{
"name": "newRLIHolderRateLimitWindowSeconds",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "RateLimitWindowSecondsSet",
"inputs": [
{
"name": "newRateLimitWindowSeconds",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "Transfer",
"inputs": [
{
"name": "from",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "to",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "tokenId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "Withdrew",
"inputs": [
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "error",
"name": "CallerNotOwner",
"inputs": []
},
{
"type": "error",
"name": "CannotAddFunctionToDiamondThatAlreadyExists",
"inputs": [
{
"name": "_selector",
"type": "bytes4",
"internalType": "bytes4"
}
]
},
{
"type": "error",
"name": "CannotAddSelectorsToZeroAddress",
"inputs": [
{
"name": "_selectors",
"type": "bytes4[]",
"internalType": "bytes4[]"
}
]
},
{
"type": "error",
"name": "CannotRemoveFunctionThatDoesNotExist",
"inputs": [
{
"name": "_selector",
"type": "bytes4",
"internalType": "bytes4"
}
]
},
{
"type": "error",
"name": "CannotRemoveImmutableFunction",
"inputs": [
{
"name": "_selector",
"type": "bytes4",
"internalType": "bytes4"
}
]
},
{
"type": "error",
"name": "CannotReplaceFunctionThatDoesNotExists",
"inputs": [
{
"name": "_selector",
"type": "bytes4",
"internalType": "bytes4"
}
]
},
{
"type": "error",
"name": "CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet",
"inputs": [
{
"name": "_selector",
"type": "bytes4",
"internalType": "bytes4"
}
]
},
{
"type": "error",
"name": "CannotReplaceFunctionsFromFacetWithZeroAddress",
"inputs": [
{
"name": "_selectors",
"type": "bytes4[]",
"internalType": "bytes4[]"
}
]
},
{
"type": "error",
"name": "CannotReplaceImmutableFunction",
"inputs": [
{
"name": "_selector",
"type": "bytes4",
"internalType": "bytes4"
}
]
},
{
"type": "error",
"name": "IncorrectFacetCutAction",
"inputs": [
{
"name": "_action",
"type": "uint8",
"internalType": "uint8"
}
]
},
{
"type": "error",
"name": "InitializationFunctionReverted",
"inputs": [
{
"name": "_initializationContractAddress",
"type": "address",
"internalType": "address"
},
{
"name": "_calldata",
"type": "bytes",
"internalType": "bytes"
}
]
},
{
"type": "error",
"name": "NoBytecodeAtAddress",
"inputs": [
{
"name": "_contractAddress",
"type": "address",
"internalType": "address"
},
{
"name": "_message",
"type": "string",
"internalType": "string"
}
]
},
{
"type": "error",
"name": "NoSelectorsProvidedForFacetForCut",
"inputs": [
{
"name": "_facetAddress",
"type": "address",
"internalType": "address"
}
]
},
{
"type": "error",
"name": "NotContractOwner",
"inputs": [
{
"name": "_user",
"type": "address",
"internalType": "address"
},
{
"name": "_contractOwner",
"type": "address",
"internalType": "address"
}
]
},
{
"type": "error",
"name": "RemoveFacetAddressMustBeZeroAddress",
"inputs": [
{
"name": "_facetAddress",
"type": "address",
"internalType": "address"
}
]
}
]
Structs§
- Additional
Requests PerKilosecond Cost Set - Event with signature
AdditionalRequestsPerKilosecondCostSet(uint256)
and selector0x33e576b8e54523be9c9684e33c7144d859acb615dddc3874462fc0cc73f1ebe3
. - Approval
- Event with signature
Approval(address,address,uint256)
and selector0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925
. - Approval
ForAll - Event with signature
ApprovalForAll(address,address,bool)
and selector0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31
. - Caller
NotOwner - Custom error with signature
CallerNotOwner()
and selector0x5cd83192
. - Cannot
AddFunction ToDiamond That Already Exists - Custom error with signature
CannotAddFunctionToDiamondThatAlreadyExists(bytes4)
and selector0xebbf5d07
. - Cannot
AddSelectors ToZero Address - Custom error with signature
CannotAddSelectorsToZeroAddress(bytes4[])
and selector0x0ae3681c
. - Cannot
Remove Function That Does NotExist - Custom error with signature
CannotRemoveFunctionThatDoesNotExist(bytes4)
and selector0x7a08a22d
. - Cannot
Remove Immutable Function - Custom error with signature
CannotRemoveImmutableFunction(bytes4)
and selector0x6fafeb08
. - Cannot
Replace Function That Does NotExists - Custom error with signature
CannotReplaceFunctionThatDoesNotExists(bytes4)
and selector0x7479f939
. - Cannot
Replace Function With TheSame Function From TheSame Facet - Custom error with signature
CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet(bytes4)
and selector0x358d9d1a
. - Cannot
Replace Functions From Facet With Zero Address - Custom error with signature
CannotReplaceFunctionsFromFacetWithZeroAddress(bytes4[])
and selector0xcd98a96f
. - Cannot
Replace Immutable Function - Custom error with signature
CannotReplaceImmutableFunction(bytes4)
and selector0x520300da
. - Diamond
Cut - Event with signature
DiamondCut((address,uint8,bytes4[])[],address,bytes)
and selector0x8faa70878671ccd212d20771b795c50af8fd3ff6cf27f4bde57e5d4de0aeb673
. - Free
Mint Signer Set - Event with signature
FreeMintSignerSet(address)
and selector0x65d3e06a561c77a07da59b8b2ca10214ae08fe21cc2953a90db0ac8b5b7c4371
. - Free
Requests PerRate Limit Window Set - Event with signature
FreeRequestsPerRateLimitWindowSet(uint256)
and selector0xce84f3dad126a2cb9d67cdca12c64dc079f7a9a1a0728c5c4e16e4b5b2e4bc4d
. - Incorrect
Facet CutAction - Custom error with signature
IncorrectFacetCutAction(uint8)
and selector0x7fe9a41e
. - Initialization
Function Reverted - Custom error with signature
InitializationFunctionReverted(address,bytes)
and selector0x192105d7
. - Initialized
- Event with signature
Initialized(uint8)
and selector0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498
. - NoBytecode
AtAddress - Custom error with signature
NoBytecodeAtAddress(address,string)
and selector0x919834b9
. - NoSelectors
Provided ForFacet ForCut - Custom error with signature
NoSelectorsProvidedForFacetForCut(address)
and selector0xe767f91f
. - NotContract
Owner - Custom error with signature
NotContractOwner(address,address)
and selector0xff4127cb
. - Ownership
Transferred - Event with signature
OwnershipTransferred(address,address)
and selector0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0
. - RLIHolder
Rate Limit Window Seconds Call - Function with signature
RLIHolderRateLimitWindowSeconds()
and selector0x4a5f3acd
. - RLIHolder
Rate Limit Window Seconds Return - Container type for the return parameters of the
RLIHolderRateLimitWindowSeconds()
function. - RLIHolder
Rate Limit Window Seconds Set - Event with signature
RLIHolderRateLimitWindowSecondsSet(uint256)
and selector0xad40b1be79d0692234d4fb1d25a47b916b4754dda8187fc0aa1271b7d7adb040
. - Rate
LimitNFT Instance - A
RateLimitNFT
instance. - Rate
Limit Window Seconds Set - Event with signature
RateLimitWindowSecondsSet(uint256)
and selector0x8113757de54f756eb308220e3f035727188560fd3230aaf1fbc24e5610fea1f8
. - Remove
Facet Address Must BeZero Address - Custom error with signature
RemoveFacetAddressMustBeZeroAddress(address)
and selector0xd091bc81
. - Transfer
- Event with signature
Transfer(address,address,uint256)
and selector0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef
. - Withdrew
- Event with signature
Withdrew(uint256)
and selector0xb6b476da71cea8275cac6b1720c04966afaff5e637472cedb6cbd32c43a23251
. - additional
Requests PerKilosecond Cost Call - Function with signature
additionalRequestsPerKilosecondCost()
and selector0x4659470d
. - additional
Requests PerKilosecond Cost Return - Container type for the return parameters of the
additionalRequestsPerKilosecondCost()
function. - approve
Call - Function with signature
approve(address,uint256)
and selector0x095ea7b3
. - approve
Return - Container type for the return parameters of the
approve(address,uint256)
function. - balance
OfCall - Function with signature
balanceOf(address)
and selector0x70a08231
. - balance
OfReturn - Container type for the return parameters of the
balanceOf(address)
function. - burn
Call - Function with signature
burn(uint256)
and selector0x42966c68
. - burn
Return - Container type for the return parameters of the
burn(uint256)
function. - calculate
Cost Call - Function with signature
calculateCost(uint256,uint256)
and selector0xce394696
. - calculate
Cost Return - Container type for the return parameters of the
calculateCost(uint256,uint256)
function. - calculate
Requests PerKilosecond Call - Function with signature
calculateRequestsPerKilosecond(uint256,uint256)
and selector0xba45b2ba
. - calculate
Requests PerKilosecond Return - Container type for the return parameters of the
calculateRequestsPerKilosecond(uint256,uint256)
function. - capacity
Call - Function with signature
capacity(uint256)
and selector0xab1bbeca
. - capacity
Return - Container type for the return parameters of the
capacity(uint256)
function. - check
Below MaxRequests PerKilosecond Call - Function with signature
checkBelowMaxRequestsPerKilosecond(uint256)
and selector0x72384aea
. - check
Below MaxRequests PerKilosecond Return - Container type for the return parameters of the
checkBelowMaxRequestsPerKilosecond(uint256)
function. - current
Sold Requests PerKilosecond Call - Function with signature
currentSoldRequestsPerKilosecond()
and selector0xea736df1
. - current
Sold Requests PerKilosecond Return - Container type for the return parameters of the
currentSoldRequestsPerKilosecond()
function. - default
Rate Limit Window Seconds Call - Function with signature
defaultRateLimitWindowSeconds()
and selector0xfb24b22e
. - default
Rate Limit Window Seconds Return - Container type for the return parameters of the
defaultRateLimitWindowSeconds()
function. - diamond
CutCall - Function with signature
diamondCut((address,uint8,bytes4[])[],address,bytes)
and selector0x1f931c1c
. - diamond
CutReturn - Container type for the return parameters of the
diamondCut((address,uint8,bytes4[])[],address,bytes)
function. - facet
Address Call - Function with signature
facetAddress(bytes4)
and selector0xcdffacc6
. - facet
Address Return - Container type for the return parameters of the
facetAddress(bytes4)
function. - facet
Addresses Call - Function with signature
facetAddresses()
and selector0x52ef6b2c
. - facet
Addresses Return - Container type for the return parameters of the
facetAddresses()
function. - facet
Function Selectors Call - Function with signature
facetFunctionSelectors(address)
and selector0xadfca15e
. - facet
Function Selectors Return - Container type for the return parameters of the
facetFunctionSelectors(address)
function. - facets
Call - Function with signature
facets()
and selector0x7a0ed627
. - facets
Return - Container type for the return parameters of the
facets()
function. - free
Mint Call - Function with signature
freeMint(uint256,uint256,bytes32,uint8,bytes32,bytes32)
and selector0x995eebab
. - free
Mint Return - Container type for the return parameters of the
freeMint(uint256,uint256,bytes32,uint8,bytes32,bytes32)
function. - free
Mint SigTest Call - Function with signature
freeMintSigTest(uint256,uint256,bytes32,uint8,bytes32,bytes32)
and selector0x3488ab13
. - free
Mint SigTest Return - Container type for the return parameters of the
freeMintSigTest(uint256,uint256,bytes32,uint8,bytes32,bytes32)
function. - free
Mint Signer Call - Function with signature
freeMintSigner()
and selector0xb94a2102
. - free
Mint Signer Return - Container type for the return parameters of the
freeMintSigner()
function. - free
Requests PerRate Limit Window Call - Function with signature
freeRequestsPerRateLimitWindow()
and selector0x26894764
. - free
Requests PerRate Limit Window Return - Container type for the return parameters of the
freeRequestsPerRateLimitWindow()
function. - getApproved
Call - Function with signature
getApproved(uint256)
and selector0x081812fc
. - getApproved
Return - Container type for the return parameters of the
getApproved(uint256)
function. - initialize
Call - Function with signature
initialize()
and selector0x8129fc1c
. - initialize
Return - Container type for the return parameters of the
initialize()
function. - isApproved
ForAll Call - Function with signature
isApprovedForAll(address,address)
and selector0xe985e9c5
. - isApproved
ForAll Return - Container type for the return parameters of the
isApprovedForAll(address,address)
function. - isExpired
Call - Function with signature
isExpired(uint256)
and selector0xd9548e53
. - isExpired
Return - Container type for the return parameters of the
isExpired(uint256)
function. - maxExpiration
Seconds Call - Function with signature
maxExpirationSeconds()
and selector0xba49dcdd
. - maxExpiration
Seconds Return - Container type for the return parameters of the
maxExpirationSeconds()
function. - maxRequests
PerKilosecond Call - Function with signature
maxRequestsPerKilosecond()
and selector0x056bcfeb
. - maxRequests
PerKilosecond Return - Container type for the return parameters of the
maxRequestsPerKilosecond()
function. - mint
Call - Function with signature
mint(uint256)
and selector0xa0712d68
. - mint
Return - Container type for the return parameters of the
mint(uint256)
function. - name
Call - Function with signature
name()
and selector0x06fdde03
. - name
Return - Container type for the return parameters of the
name()
function. - owner
Call - Function with signature
owner()
and selector0x8da5cb5b
. - owner
OfCall - Function with signature
ownerOf(uint256)
and selector0x6352211e
. - owner
OfReturn - Container type for the return parameters of the
ownerOf(uint256)
function. - owner
Return - Container type for the return parameters of the
owner()
function. - prefixed
Call - Function with signature
prefixed(bytes32)
and selector0x1f275713
. - prefixed
Return - Container type for the return parameters of the
prefixed(bytes32)
function. - prune
Expired Call - Function with signature
pruneExpired(address)
and selector0xc3485de6
. - prune
Expired Return - Container type for the return parameters of the
pruneExpired(address)
function. - redeemed
Free Mints Call - Function with signature
redeemedFreeMints(bytes32)
and selector0x3b1a72cc
. - redeemed
Free Mints Return - Container type for the return parameters of the
redeemedFreeMints(bytes32)
function. - safe
Transfer From_ 0Call - Function with signature
safeTransferFrom(address,address,uint256)
and selector0x42842e0e
. - safe
Transfer From_ 0Return - Container type for the return parameters of the
safeTransferFrom(address,address,uint256)
function. - safe
Transfer From_ 1Call - Function with signature
safeTransferFrom(address,address,uint256,bytes)
and selector0xb88d4fde
. - safe
Transfer From_ 1Return - Container type for the return parameters of the
safeTransferFrom(address,address,uint256,bytes)
function. - setAdditional
Requests PerKilosecond Cost Call - Function with signature
setAdditionalRequestsPerKilosecondCost(uint256)
and selector0xe62a2195
. - setAdditional
Requests PerKilosecond Cost Return - Container type for the return parameters of the
setAdditionalRequestsPerKilosecondCost(uint256)
function. - setApproval
ForAll Call - Function with signature
setApprovalForAll(address,bool)
and selector0xa22cb465
. - setApproval
ForAll Return - Container type for the return parameters of the
setApprovalForAll(address,bool)
function. - setFree
Mint Signer Call - Function with signature
setFreeMintSigner(address)
and selector0x3b189852
. - setFree
Mint Signer Return - Container type for the return parameters of the
setFreeMintSigner(address)
function. - setFree
Requests PerRate Limit Window Call - Function with signature
setFreeRequestsPerRateLimitWindow(uint256)
and selector0x28b9b37c
. - setFree
Requests PerRate Limit Window Return - Container type for the return parameters of the
setFreeRequestsPerRateLimitWindow(uint256)
function. - setMax
Expiration Seconds Call - Function with signature
setMaxExpirationSeconds(uint256)
and selector0x82d81905
. - setMax
Expiration Seconds Return - Container type for the return parameters of the
setMaxExpirationSeconds(uint256)
function. - setMax
Requests PerKilosecond Call - Function with signature
setMaxRequestsPerKilosecond(uint256)
and selector0x756d1fb9
. - setMax
Requests PerKilosecond Return - Container type for the return parameters of the
setMaxRequestsPerKilosecond(uint256)
function. - setRLI
Holder Rate Limit Window Seconds Call - Function with signature
setRLIHolderRateLimitWindowSeconds(uint256)
and selector0x39f1a4f1
. - setRLI
Holder Rate Limit Window Seconds Return - Container type for the return parameters of the
setRLIHolderRateLimitWindowSeconds(uint256)
function. - setRate
Limit Window Seconds Call - Function with signature
setRateLimitWindowSeconds(uint256)
and selector0x11fc4562
. - setRate
Limit Window Seconds Return - Container type for the return parameters of the
setRateLimitWindowSeconds(uint256)
function. - supports
Interface Call - Function with signature
supportsInterface(bytes4)
and selector0x01ffc9a7
. - supports
Interface Return - Container type for the return parameters of the
supportsInterface(bytes4)
function. - symbol
Call - Function with signature
symbol()
and selector0x95d89b41
. - symbol
Return - Container type for the return parameters of the
symbol()
function. - token
ByIndex Call - Function with signature
tokenByIndex(uint256)
and selector0x4f6ccce7
. - token
ByIndex Return - Container type for the return parameters of the
tokenByIndex(uint256)
function. - token
IdCounter Call - Function with signature
tokenIdCounter()
and selector0x98bdf6f5
. - token
IdCounter Return - Container type for the return parameters of the
tokenIdCounter()
function. - token
OfOwner ByIndex Call - Function with signature
tokenOfOwnerByIndex(address,uint256)
and selector0x2f745c59
. - token
OfOwner ByIndex Return - Container type for the return parameters of the
tokenOfOwnerByIndex(address,uint256)
function. - tokenSVG
Call - Function with signature
tokenSVG(uint256)
and selector0x9bac5f7a
. - tokenSVG
Return - Container type for the return parameters of the
tokenSVG(uint256)
function. - tokenURI
Call - Function with signature
tokenURI(uint256)
and selector0xc87b56dd
. - tokenURI
Return - Container type for the return parameters of the
tokenURI(uint256)
function. - total
Sold Requests PerKilosecond ByExpiration Time Call - Function with signature
totalSoldRequestsPerKilosecondByExpirationTime(uint256)
and selector0x8b49038d
. - total
Sold Requests PerKilosecond ByExpiration Time Return - Container type for the return parameters of the
totalSoldRequestsPerKilosecondByExpirationTime(uint256)
function. - total
Supply Call - Function with signature
totalSupply()
and selector0x18160ddd
. - total
Supply Return - Container type for the return parameters of the
totalSupply()
function. - transfer
From Call - Function with signature
transferFrom(address,address,uint256)
and selector0x23b872dd
. - transfer
From Return - Container type for the return parameters of the
transferFrom(address,address,uint256)
function. - transfer
Ownership Call - Function with signature
transferOwnership(address)
and selector0xf2fde38b
. - transfer
Ownership Return - Container type for the return parameters of the
transferOwnership(address)
function. - withdraw
Call - Function with signature
withdraw()
and selector0x3ccfd60b
. - withdraw
Return - Container type for the return parameters of the
withdraw()
function.
Enums§
- Rate
LimitNFT Calls - Container for all the
RateLimitNFT
function calls. - Rate
LimitNFT Errors - Container for all the
RateLimitNFT
custom errors. - Rate
LimitNFT Events - Container for all the
RateLimitNFT
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
RateLimitNFT
contract instance.