文件 1 的 14:Address.sol
pragma solidity ^0.8.0;
library Address {
function isContract(address account) internal view returns (bool) {
uint256 size;
assembly {
size := extcodesize(account)
}
return size > 0;
}
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
if (returndata.length > 0) {
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
文件 2 的 14: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 的 14: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;
}
}
文件 4 的 14:ERC721.sol
pragma solidity ^0.8.0;
import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
string private _name;
string private _symbol;
mapping(uint256 => address) private _owners;
mapping(address => uint256) private _balances;
mapping(uint256 => address) private _tokenApprovals;
mapping(address => mapping(address => bool)) private _operatorApprovals;
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return
interfaceId == type(IERC721).interfaceId ||
interfaceId == type(IERC721Metadata).interfaceId ||
super.supportsInterface(interfaceId);
}
function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: balance query for the zero address");
return _balances[owner];
}
function ownerOf(uint256 tokenId) public view virtual override returns (address) {
address owner = _owners[tokenId];
require(owner != address(0), "ERC721: owner query for nonexistent token");
return owner;
}
function name() public view virtual override returns (string memory) {
return _name;
}
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
string memory baseURI = _baseURI();
return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
}
function _baseURI() internal view virtual returns (string memory) {
return "";
}
function approve(address to, uint256 tokenId) public virtual override {
address owner = ERC721.ownerOf(tokenId);
require(to != owner, "ERC721: approval to current owner");
require(
_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
"ERC721: approve caller is not owner nor approved for all"
);
_approve(to, tokenId);
}
function getApproved(uint256 tokenId) public view virtual override returns (address) {
require(_exists(tokenId), "ERC721: approved query for nonexistent token");
return _tokenApprovals[tokenId];
}
function setApprovalForAll(address operator, bool approved) public virtual override {
require(operator != _msgSender(), "ERC721: approve to caller");
_operatorApprovals[_msgSender()][operator] = approved;
emit ApprovalForAll(_msgSender(), operator, approved);
}
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_transfer(from, to, tokenId);
}
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public virtual override {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_safeTransfer(from, to, tokenId, _data);
}
function _safeTransfer(
address from,
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_transfer(from, to, tokenId);
require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
}
function _exists(uint256 tokenId) internal view virtual returns (bool) {
return _owners[tokenId] != address(0);
}
function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
require(_exists(tokenId), "ERC721: operator query for nonexistent token");
address owner = ERC721.ownerOf(tokenId);
return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
}
function _safeMint(address to, uint256 tokenId) internal virtual {
_safeMint(to, tokenId, "");
}
function _safeMint(
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_mint(to, tokenId);
require(
_checkOnERC721Received(address(0), to, tokenId, _data),
"ERC721: transfer to non ERC721Receiver implementer"
);
}
function _mint(address to, uint256 tokenId) internal virtual {
require(to != address(0), "ERC721: mint to the zero address");
require(!_exists(tokenId), "ERC721: token already minted");
_beforeTokenTransfer(address(0), to, tokenId);
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(address(0), to, tokenId);
}
function _burn(uint256 tokenId) internal virtual {
address owner = ERC721.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId);
_approve(address(0), tokenId);
_balances[owner] -= 1;
delete _owners[tokenId];
emit Transfer(owner, address(0), tokenId);
}
function _transfer(
address from,
address to,
uint256 tokenId
) internal virtual {
require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
require(to != address(0), "ERC721: transfer to the zero address");
_beforeTokenTransfer(from, to, tokenId);
_approve(address(0), tokenId);
_balances[from] -= 1;
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(from, to, tokenId);
}
function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
}
function _checkOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory _data
) private returns (bool) {
if (to.isContract()) {
try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
return retval == IERC721Receiver.onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert("ERC721: transfer to non ERC721Receiver implementer");
} else {
assembly {
revert(add(32, reason), mload(reason))
}
}
}
} else {
return true;
}
}
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
}
文件 5 的 14:ERC721Enumerable.sol
pragma solidity ^0.8.0;
import "../ERC721.sol";
import "./IERC721Enumerable.sol";
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
mapping(uint256 => uint256) private _ownedTokensIndex;
uint256[] private _allTokens;
mapping(uint256 => uint256) private _allTokensIndex;
function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {
return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
}
function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
return _ownedTokens[owner][index];
}
function totalSupply() public view virtual override returns (uint256) {
return _allTokens.length;
}
function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
return _allTokens[index];
}
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual override {
super._beforeTokenTransfer(from, to, tokenId);
if (from == address(0)) {
_addTokenToAllTokensEnumeration(tokenId);
} else if (from != to) {
_removeTokenFromOwnerEnumeration(from, tokenId);
}
if (to == address(0)) {
_removeTokenFromAllTokensEnumeration(tokenId);
} else if (to != from) {
_addTokenToOwnerEnumeration(to, tokenId);
}
}
function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
uint256 length = ERC721.balanceOf(to);
_ownedTokens[to][length] = tokenId;
_ownedTokensIndex[tokenId] = length;
}
function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
_allTokensIndex[tokenId] = _allTokens.length;
_allTokens.push(tokenId);
}
function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
uint256 tokenIndex = _ownedTokensIndex[tokenId];
if (tokenIndex != lastTokenIndex) {
uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];
_ownedTokens[from][tokenIndex] = lastTokenId;
_ownedTokensIndex[lastTokenId] = tokenIndex;
}
delete _ownedTokensIndex[tokenId];
delete _ownedTokens[from][lastTokenIndex];
}
function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
uint256 lastTokenIndex = _allTokens.length - 1;
uint256 tokenIndex = _allTokensIndex[tokenId];
uint256 lastTokenId = _allTokens[lastTokenIndex];
_allTokens[tokenIndex] = lastTokenId;
_allTokensIndex[lastTokenId] = tokenIndex;
delete _allTokensIndex[tokenId];
_allTokens.pop();
}
}
文件 6 的 14:IERC165.sol
pragma solidity ^0.8.0;
interface IERC165 {
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
文件 7 的 14: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;
}
文件 8 的 14:IERC721Enumerable.sol
pragma solidity ^0.8.0;
import "../IERC721.sol";
interface IERC721Enumerable is IERC721 {
function totalSupply() external view returns (uint256);
function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);
function tokenByIndex(uint256 index) external view returns (uint256);
}
文件 9 的 14:IERC721Metadata.sol
pragma solidity ^0.8.0;
import "../IERC721.sol";
interface IERC721Metadata is IERC721 {
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function tokenURI(uint256 tokenId) external view returns (string memory);
}
文件 10 的 14:IERC721Receiver.sol
pragma solidity ^0.8.0;
interface IERC721Receiver {
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}
文件 11 的 14:Limah.sol
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract Limah is ERC721, ERC721Enumerable, Ownable {
using SafeMath for uint256;
using SafeMath for uint64;
uint256 public constant maxSupply = 555;
uint256 public constant reservedCount = 13;
uint256 private _price = 0.1 ether;
uint256 private _reservedClaimed = 0;
uint256 public currentMintId = 1;
bool private _saleStarted;
bool private _presaleStarted;
string public baseURI;
mapping(address => uint256) public whitelistBalance;
mapping(address => uint256) public whitelistMinted;
mapping(uint256 => uint64) public metadata;
event Minted(address account, uint256 amount, uint256 cost);
event PresaleMinted(address account, uint256 amount, uint256 cost);
constructor() ERC721("LIMAH", "LIMH") {
_saleStarted = false;
_presaleStarted = false;
whitelistBalance[0xBcc462c488F8DA534aF98F0f2E529CDed02D9CB5] = 4;
whitelistBalance[0x8e258E1Aa12b8f165B69f760575b90d877AfE9b6] = 3;
whitelistBalance[0xE39CB1c2f6dC891A1685ee411B4D36827e4F860E] = 1;
whitelistBalance[0x881475210E75b814D5b711090a064942b6f30605] = 1;
whitelistBalance[0x74E094Be60Be8DB1e39a0b2aB395b888b478B6De] = 3;
whitelistBalance[0x149884b699FE3E1b042f85fA3B54843EB689b2d4] = 3;
whitelistBalance[0x62756BEdC2c98f80cE83E45BC9f8062345b65d8e] = 4;
whitelistBalance[0x80965566ceDc9b9C8aeDa24bbc12e44eb476dEf6] = 2;
whitelistBalance[0xE4Abc24b5A6732a8945A85B768B4a3120CB2E37C] = 1;
whitelistBalance[0x3c64DA143Bf741A3fa833Dd46900d28EFE8893B3] = 5;
whitelistBalance[0x1024A91b5Ba768601e2bf4f28D2458885652cFa4] = 4;
whitelistBalance[0x4003EC66153c090ed649CE822E30CaBa11727527] = 2;
whitelistBalance[0xBc68c859fc8Ea2de63C60F236688dEE448C8B70e] = 1;
whitelistBalance[0x1Ce7A7F4a2af7c690A7CBEce89e919753E409aDD] = 2;
whitelistBalance[0xfb9699DE6f7eFc7F7D64A40852a68602ac7ef403] = 1;
whitelistBalance[0x6D21b1D31A6Aa760F396729D85460e2F887B8764] = 1;
whitelistBalance[0xa65f5eBFfd31ed58cC3CD5c96B2989B9F58d637C] = 1;
whitelistBalance[0x098753abA8de1e88Fb32E045Ed8eba66735E6391] = 1;
whitelistBalance[0x8Dfa76A3E8f290e6224b93BeBA163B90449B0e38] = 7;
whitelistBalance[0xb1877ec8638a32F68e5DcCeA1202570CbB096357] = 6;
whitelistBalance[0xcC4CCA9F8A1739Ac629acf8761ce4F3720764a96] = 1;
whitelistBalance[0x0e53dbb8d5d58D957480FE522258353408D1d2a6] = 2;
whitelistBalance[0x126438c3A64DA4eF5a8dde07366270367310f855] = 1;
whitelistBalance[0x9a7eE28B4d734378f34c617C488cD8C5805C3B84] = 1;
whitelistBalance[0x7B59793aD075e4ce1e35181054759C080B8D965D] = 4;
whitelistBalance[0x52C8fe1c30a22AF561B1bF1e1D6a476b37d61c68] = 1;
whitelistBalance[0xcE7DEb8fc70838F019a33797e1D2A5De8B7Ae2cC] = 2;
whitelistBalance[0xF0C81C3d9102DDaD3568312d11738C902aB355C2] = 1;
whitelistBalance[0xC60F2319eEC9B91ac6428055eeD38A946014571D] = 3;
whitelistBalance[0xBB46314634470eD16eeDBE16F301DFE074091375] = 1;
whitelistBalance[0xb6332Be30366Ef76174eFD011c471893c86FC36b] = 1;
whitelistBalance[0x4C33294c13C5e783dd1d28c9844950B33d4DE9a0] = 1;
whitelistBalance[0xc39253C74D2454e8ceBF5d8C6a219505bbe8744a] = 2;
whitelistBalance[0xdF01F73C69b1adBdb74798E531EC08DC1C136d49] = 1;
whitelistBalance[0xB7c6d7406e2F370290111A585D1a7A76B86C8776] = 1;
whitelistBalance[0xA14964479Ebf9cD336011ad80652b08CD83dFE3A] = 2;
whitelistBalance[0x27D998A81b5510Ed61D94aFDAA747e9719b45d0B] = 2;
whitelistBalance[0xC653501899b8740379A3BA78EfD242ca93f76D7A] = 3;
whitelistBalance[0xdD88E38cD55CD5F7e3AA4ce6C28fb73bFddbF0E7] = 1;
whitelistBalance[0x815C187c70Ef6F52c0C9EDc6bb28a619E14057d3] = 2;
whitelistBalance[0xCC75F6166E230CBBE484d534bBB0cC546366DC7D] = 1;
whitelistBalance[0x943bCc065c6a09d8aA26C71F72Af4cdC137D1f84] = 1;
whitelistBalance[0x0701d19c4D9364b69Ca001061aE3eD169a40691B] = 1;
whitelistBalance[0x599eC7E5449E41a0204A0ed17daa1059Ee2C5F28] = 1;
whitelistBalance[0xa9c5b41605f51f3Ba6aeb62258b0DF9B9384d8A1] = 1;
whitelistBalance[0xC585d35FB8C9D136d6443A30FD88CCbb5F4CB86D] = 4;
whitelistBalance[0xD9Bf0EF73403C9DC9490af5c6A2F6f7516286F32] = 1;
whitelistBalance[0x02CBDB002D578b2b83b73b9f6019FADF39fFf6b6] = 1;
whitelistBalance[0x09bC19CD33faF805E55b708C2dB3De87979B3950] = 1;
whitelistBalance[0x532a2707D598d7Ae6B02eF0e0BA897DaF44b1603] = 1;
whitelistBalance[0xC683915268E712F9960Ce59736a32119165Cc962] = 2;
whitelistBalance[0xfDC4364C13E2c892De20Ab2Acb9a80534DE493Fc] = 1;
whitelistBalance[0x248AfBEc09C971372278C1052253E4c308d5430C] = 1;
whitelistBalance[0xb7bB1C09b6fB19e94ac700867ff35FbEd354C1BD] = 3;
whitelistBalance[0x461e76A4fE9f27605d4097A646837c32F1ccc31c] = 1;
whitelistBalance[0xFa46fB8d0a991ac62bD83E1Db1Fe8aba51ef6dd2] = 1;
whitelistBalance[0x1F0Da8D6c0F517c2a67a3F34D1BBebfbD07B6236] = 1;
whitelistBalance[0x83c20F72736E86EA3C64994b38B5102c78120324] = 2;
whitelistBalance[0xbDE914699063F6EA14951AF723D2F13c822bF4ad] = 1;
whitelistBalance[0x33569c101562e1fAF5b24581057E5cEE4c8288D7] = 1;
whitelistBalance[0x15E875bD7De4C3d1F57a9837c411a30ff5f12B38] = 2;
whitelistBalance[0x5078110476Cd2Aa096160F2D988aE80aEaFB5Ae4] = 2;
whitelistBalance[0x2176426a886cbA262308Ba916cC3532B3b1ce06a] = 3;
whitelistBalance[0xea40b0f6BA2aD77fF2FedAe98Ca67EaefCBCBE4A] = 5;
whitelistBalance[0x42f34449209059717e6C48eD0110783A7df82abF] = 8;
whitelistBalance[0x28411D470fc1B40E52AcccF47e43D39e815FfBf0] = 2;
whitelistBalance[0xf7520F1D4D96Da54cF0F938f3f4D33e4bd276453] = 1;
whitelistBalance[0x01dB485f57Dc000E761b85641F78C9D212A2eEaB] = 2;
whitelistBalance[0x00668bd79Ede077B99BbE1C4db59418bC333d4Cf] = 2;
whitelistBalance[0x3ef13C577311Fd6736B23525bC5E3E95060716Fe] = 2;
whitelistBalance[0x05fc3A360944Ba03aBB2bBCcE275F89c96cB1385] = 3;
whitelistBalance[0xD19d92c23Be2c965825f31462F3d8D1f84C17BFc] = 2;
whitelistBalance[0x5482b90E0F59Fb4a926f7FFe9DB9EADE142CF86D] = 1;
whitelistBalance[0x7Da3236aF88181a8AB8bd3929f17EfAD5417DF3A] = 1;
whitelistBalance[0x92B57222582EfB77295454340529c411021c7Bc5] = 2;
whitelistBalance[0x66b19A1241FD54fE74dD8E40B7df8C419492e423] = 1;
whitelistBalance[0x94F0FaA3c83C9Bc78b675dDeA82fcB982fa89690] = 2;
whitelistBalance[0x95e62E8FF84ed8456fDc9739eE4A9597Bb6E4c1f] = 1;
whitelistBalance[0xBE837e4a956cC8118A013563a9E291D8D4D4b8B4] = 1;
whitelistBalance[0xE84b1B9593865cb14846908910bb4B9a85746770] = 1;
whitelistBalance[0x6eF2376fA6e12Dabb3a3ED0Fb44E4ff29847Af68] = 3;
whitelistBalance[0x460b26B95b251B477e2bc52aB731C70F42299adC] = 1;
whitelistBalance[0x3ebFdE946baD00D005A7Abb94bcab866fE11E84F] = 1;
whitelistBalance[0xb7fa496E5166b39a114f5DeF4ae38015b977FeC8] = 1;
whitelistBalance[0x3943b578D00D61b622Fd99AB6F16921e54F7612b] = 1;
whitelistBalance[0x3E4D97C22571C5Ff22f0DAaBDa2d3835E67738EB] = 1;
whitelistBalance[0xd561ba5bdBFEA7A39bF073b7520a7273bc767131] = 1;
whitelistBalance[0xAB00e849A18b2ae3381c8895Cf4b15494CA27561] = 1;
whitelistBalance[0xc2bd956DcaC8268ca78F55d6b33BbA92EEac443D] = 1;
whitelistBalance[0x89097a0A657e42627E05f33DF494dE7f10123651] = 1;
whitelistBalance[0x6ab615CF8deCFc488186E54066Fc10589C9293A3] = 2;
whitelistBalance[0x2DBd479974967b8a0717d8B84c2172D8b26Cdf44] = 8;
whitelistBalance[0xaee2Ae13EBf81d38df5a9Ed7013E80EA3f72e39b] = 4;
whitelistBalance[0x0B4338671b26d40e1177A8A0f64D75f253f15e05] = 1;
whitelistBalance[0x6007dC12910639e692b50E3dAc02747eF6048dB2] = 1;
whitelistBalance[0x2cb9AE536fc474159b95dF01c5a708CAcD9F84B2] = 1;
whitelistBalance[0xbA3df119299a11EA9cFeBC2801a8Bf0102A2bE3d] = 1;
whitelistBalance[0x34Ba3E288c3674e73ab9D3B1B75EE064628d72c6] = 1;
whitelistBalance[0x3AEf5d2384298DB7C7F711224221F229E43cBbA7] = 1;
whitelistBalance[0x7430EA2c3b2F2468Bba97C2B1CCa33f42Af2e57c] = 1;
whitelistBalance[0x115406837DE7D8194421126De6Fa7dc90bDe1663] = 3;
whitelistBalance[0x693e1AEa486c80D34124C6dC3eddDd325A41ABE9] = 1;
whitelistBalance[0x8eE6D1daE8eCeA729bD40a6F3BEde58bF048eD9e] = 2;
whitelistBalance[0xd0c31E46C73B386432A3DdF768587df604dD52BE] = 1;
whitelistBalance[0x2d408F3160B15F09Df792eFCb395B828d3E55a95] = 1;
whitelistBalance[0xcB748f312b8e0557587862225697AAe325052f7D] = 1;
whitelistBalance[0x18655651F4DFA30dA7E47852265db731C3059E1b] = 2;
whitelistBalance[0x1168a0Ac3f249a011a3A52C662591d6383a91d97] = 1;
whitelistBalance[0x45698cdCC733cBA4f8B1150C2f580587adF1Df92] = 3;
whitelistBalance[0xd3745F1ba3c0280F0Fb3456676dE2Fa714d1fcb7] = 1;
whitelistBalance[0x9DDf691De5e1F4f7764262Be936B61f46d9f9d70] = 1;
whitelistBalance[0x100e4F6D92965C2f2dEc3A08ACeb63A8de69c99D] = 2;
whitelistBalance[0x3E7898c5851635D5212B07F0124a15a2d3C547EB] = 3;
whitelistBalance[0x4e1c52008b0cd3bE1819745695E85Ffe3B9494B0] = 1;
whitelistBalance[0x33494fB9B491B1328c90BE2c926B6A5080AbAfDA] = 4;
whitelistBalance[0xB7D9945166e3DA89ee4c0947230753d656D116a5] = 2;
whitelistBalance[0x403156966d0593770846e72dCBec871F93ef1224] = 6;
whitelistBalance[0x1d4B9b250B1Bd41DAA35d94BF9204Ec1b0494eE3] = 2;
whitelistBalance[0xEbD56361441B416a788086e47F48599593fcFE4F] = 1;
whitelistBalance[0x93EFEC89Db80176895b2C7a4E00aF808BBc69239] = 1;
whitelistBalance[0x2668B4B69c57624B0dc7453250f841B726a456CF] = 1;
whitelistBalance[0x4D010eeB7ec813AE5520D4cC7Bdb975ba2bFd2a1] = 1;
whitelistBalance[0xFF0aD4e2C7F60D2303812Cbc73c20F890b339925] = 1;
whitelistBalance[0x38623FA88e3d8D85945C2512Abf3f001a9edB492] = 1;
whitelistBalance[0xcD61ecC765040389b81dAc23b67B091160E9BF39] = 1;
whitelistBalance[0x20B4E6cAbA712F520D9A3A309D8c0b0DA801a212] = 2;
whitelistBalance[0x84274ff96A1928FEb3c1cC2260f962B377a3d53F] = 1;
whitelistBalance[0x5080A71235d51F1E1F2F7C720810766Dc5FB15C1] = 1;
whitelistBalance[0x4EB4a5718A685c788B650c944834ba574Db508C4] = 1;
whitelistBalance[0x5FE7Ff8Dc6082b6b0812c5A4b23A3B7B40D26747] = 1;
whitelistBalance[0x85C6F217D0375E5dC7b249B5bC12577B051bf417] = 1;
whitelistBalance[0x3a4f4a3B4D965058701f0fb2611Acbc89a11996E] = 1;
whitelistBalance[0x2A76F7Df64889A1f20F5b6Aa87eBfFA9A38AB925] = 1;
whitelistBalance[0x9B24349Ad2e4d0a2dcE6376b75A823D9b0C9774C] = 2;
whitelistBalance[0x4D77536a1B90C30F1fBcaeF8817160f663Da1DE0] = 3;
whitelistBalance[0x1d06ef1CF5059370ecd6bE3A4ACa223fE5973E02] = 1;
whitelistBalance[0xEAfAA1405A1BaC58D2C3dCefe6A07467Bcd7fEbE] = 1;
whitelistBalance[0xc4fF126aEC164409B9c2269D34A79E53C39C8A56] = 5;
whitelistBalance[0xd781a9158edFd5AEA767F5cfC3Db97482C722157] = 1;
whitelistBalance[0x3ddfB199288F7a439dfFEdc03AE9Bc02FaFC63F6] = 1;
whitelistBalance[0x6c66F4cA90c023bc04461ef19e67B06bfC3d0a53] = 1;
whitelistBalance[0x1a60DfB071B039c6e33dcb3220891C83DA72c1be] = 1;
whitelistBalance[0xc72f40a397453051349F73cf2E2a04Fac06E37a3] = 1;
whitelistBalance[0x5689676A2c9C796375e01784F9B42723536Da2B2] = 1;
whitelistBalance[0x1986F4BCc6b78d40e499E928a910DD7bde857734] = 1;
whitelistBalance[0xcB1dAC0C1a5F87dc410a56F0F82E7E3A56bE1499] = 1;
whitelistBalance[0x97e2B1efF9eF076635eB2983702e6b74d1D509B9] = 1;
whitelistBalance[0xa4362e88E1444DF62fC85d15F7eC333f0664442C] = 1;
whitelistBalance[0xB3f6Ea7b8A2ccE43D78d5637D2f0cA2c806439D0] = 1;
whitelistBalance[0x3Eb92F230B33bD8d98cc060A76a7e7d77819a21A] = 3;
whitelistBalance[0xBe769b04627613C8F3b30aBE20E6458c1DCB239B] = 1;
whitelistBalance[0xd6cc8BF1a2bDF94BE558A40B2A665a46c94211B6] = 2;
whitelistBalance[0x110772F7472B56A1aB844051260B9416FE30245b] = 2;
whitelistBalance[0xD41c564db35DA12D9d25944b88Cc22468B0D45DC] = 1;
whitelistBalance[0x34A4Dd196Ab83166c8C9935D5A6f60f2a02a905a] = 1;
whitelistBalance[0x7D602b32acD5942A619f49e104b20C0553c93405] = 2;
whitelistBalance[0x007C9c7e7ed7cD83F1A38cFd747f28E6894ab9f6] = 1;
whitelistBalance[0xbA72224300dD0CCFeF418FEe7865017ABEB876a7] = 2;
whitelistBalance[0x738A1f6d79e592f726efaA3B8beF81797F408119] = 1;
whitelistBalance[0x36E058332aE39efaD2315776B9c844E30d07388B] = 1;
whitelistBalance[0x4a7AFc64E298876FcB8F6AA7D44Ef3C91fCBC291] = 1;
whitelistBalance[0x4D9B5696a8afeD6b65F92B1B86ccf90c7561aE56] = 2;
whitelistBalance[0x0060263198Fe57F4e9eb4B9EE02E1c40cCf6d13E] = 1;
whitelistBalance[0x11e6AA7D1D74Cb4A3056e8943372b94D1127D26c] = 1;
whitelistBalance[0x2C6602c1200F08eb57CC06eaDa1C215cfd7D0b7C] = 1;
whitelistBalance[0xe4A974E499e8767A13894635C45F7389b1FFc5Dd] = 1;
whitelistBalance[0xdcfd6D6e63F15A391D96D1b76575Ae39Ad6965D9] = 4;
whitelistBalance[0x08Cdbd22a584F0fa78474FD1724c664D62C65FD9] = 1;
whitelistBalance[0xcc4b0a5b8De07B69cE5936FBbFeE6BDfb0A30F77] = 1;
whitelistBalance[0x5968d383DeB7636FB68C91915c516499Fa2ddcD0] = 1;
whitelistBalance[0x7eC8676CA6BDDB54455b806B9ef39c6D8ee51766] = 1;
whitelistBalance[0x177580556eD986Cee01012C6115823208Ef584B8] = 1;
whitelistBalance[0xB1af684799C96F5C740786bE59DC834ff8Ef5add] = 1;
whitelistBalance[0x5fFd0B2EB25e29DBf94Ee7cB8F7b90d2b2fbbc53] = 1;
whitelistBalance[0xE3873F3D9E13880f9c508f47cbBF9e065a67265B] = 1;
whitelistBalance[0x322e128453EFd91a4c131761d9d535fF6E0CCd90] = 1;
whitelistBalance[0xB21027569dDaE670aA521Ed90d6ECb5dE515e8d4] = 1;
whitelistBalance[0xd70676Cfa67Abc65A8C39f049d62EEA30E3080CF] = 1;
whitelistBalance[0x8889c07205749DB6d38673f9248d720b0c07955f] = 1;
whitelistBalance[0x004768E08805AB5ece646a65C8Ba492C3AD71E4a] = 1;
whitelistBalance[0xBb739eE04F0cC2Db984cd47EAd003F4c183CF19a] = 1;
whitelistBalance[0xa80e8CB880b7fA0ad1EAa609eDD8f1CDDd21aF42] = 1;
whitelistBalance[0xcA147eb37135B667B14792bc4C3Cc57389F574AA] = 1;
whitelistBalance[0x440d55a1867958dA7C8FD88A5e163a85Fd739eFA] = 1;
whitelistBalance[0xd544CEBA36DEF08e68c56976576AcC974DE54F7b] = 1;
whitelistBalance[0x29f316885886bE6357FC1411478D4C291021A0AA] = 1;
whitelistBalance[0x6634f9d0c6B7fB5764312bD0c91556F51e67E544] = 1;
whitelistBalance[0x7a501E2a432d44013DD9575e73Ed551A88fc0184] = 1;
whitelistBalance[0xBbcd652CF371b59CE9A063183AA44D377f4467E8] = 2;
whitelistBalance[0x2e44F49552C0C8e93f60318520760f619c03615F] = 1;
whitelistBalance[0x86776Ae9783C634C6AEe6cdA878C8f35a5571333] = 1;
whitelistBalance[0xAcDBC51Dd3bbDC46C447E0A2EDaC8A713dEB1907] = 1;
whitelistBalance[0x6D8Df15FD3dC3505a4010CaC6937De159d68081C] = 1;
whitelistBalance[0xd3e9AF5B0C1FC2edD6A7907076cd9C79e67DE6aC] = 1;
whitelistBalance[0x0923A3931599b5B08f91E62b1894053ca75455A9] = 1;
whitelistBalance[0x2168B2295E912A27c0015BaD9F09F090EBcE1a99] = 1;
whitelistBalance[0xF898F063d22a994bA6943D50A96C2dbC0Bd9218c] = 1;
whitelistBalance[0x321f3BFA19354BD9F56CFDA97bcCf3a7C21D1621] = 1;
whitelistBalance[0xbaCD6723bDc567E134603AA35E5c479411477d52] = 1;
whitelistBalance[0x104F0BE994C32231934e64EeF299bC8866288a5f] = 1;
whitelistBalance[0x167AE6231bd8E564F969482bc34A00D91B7Fe37c] = 1;
whitelistBalance[0x646e72181602114e7eE02F963D13539cf056ce1e] = 1;
whitelistBalance[0xF4164FC650e2C59D1580Fc1c2C9E792087865D56] = 1;
whitelistBalance[0xCD546c340b8c0bA679eBbECA1ABB8C2E4528b6E5] = 1;
whitelistBalance[0xcdF660aeEB6DBdDba0C096d1FAfCb41D60f9A88B] = 1;
}
modifier whenSaleStarted() {
require(_saleStarted);
_;
}
modifier whenPresaleStarted() {
require(_presaleStarted);
_;
}
function presaleMint(uint256 amount) external payable whenPresaleStarted {
uint256 preSaleAllowance = whitelistBalance[msg.sender] - whitelistMinted[msg.sender];
require(amount * _price <= msg.value, "Inconsistent amount sent!");
require(preSaleAllowance >= amount, "Address does not own enough nfts from first collection");
for (uint256 i = 0; i < amount; i++) {
_safeMint(msg.sender, currentMintId);
currentMintId++;
whitelistMinted[msg.sender] = whitelistMinted[msg.sender] + 1;
}
emit PresaleMinted(msg.sender, amount, msg.value);
}
function mint(uint256 amount) external payable whenSaleStarted {
require(amount < 3, "You cannot mint more than 2 Tokens at once!");
require(
currentMintId + amount <= maxSupply + 1,
"Not enough Tokens left."
);
require(amount * _price <= msg.value, "Inconsistent amount sent!");
for (uint256 i = 0; i < amount; i++) {
_safeMint(msg.sender, currentMintId);
currentMintId++;
}
emit Minted(msg.sender, amount, msg.value);
}
function togglePresaleStarted() external onlyOwner {
_presaleStarted = !_presaleStarted;
}
function presaleStarted() public view returns (bool) {
return _presaleStarted;
}
function toggleSaleStarted() external onlyOwner {
_saleStarted = !_saleStarted;
}
function saleStarted() public view returns (bool) {
return _saleStarted;
}
function setBaseURI(string memory _URI) external onlyOwner {
baseURI = _URI;
}
function _baseURI() internal view override(ERC721) returns (string memory) {
return baseURI;
}
function setPrice(uint256 _newPrice) external onlyOwner {
_price = _newPrice;
}
function getPrice() public view returns (uint256) {
return _price;
}
function getReservedLeft() public view returns (uint256) {
return reservedCount - _reservedClaimed;
}
function walletOfOwner(address _owner) public view returns (uint256[] memory) {
uint256 tokenCount = balanceOf(_owner);
uint256[] memory tokensId = new uint256[](tokenCount);
for (uint256 i; i < tokenCount; i++) {
tokensId[i] = tokenOfOwnerByIndex(_owner, i);
}
return tokensId;
}
function claimReserved(uint256 _number, address _receiver) external onlyOwner {
require(
_number + _reservedClaimed <= reservedCount,
"That would exceed the max reserved."
);
for (uint256 i = 0; i < _number; i++) {
_safeMint(_receiver, currentMintId);
currentMintId++;
_reservedClaimed++;
}
_reservedClaimed = _reservedClaimed + _number;
}
function withdraw() public onlyOwner {
payable(msg.sender).transfer(address(this).balance);
}
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal override(ERC721, ERC721Enumerable) {
super._beforeTokenTransfer(from, to, tokenId);
}
function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable) returns (bool) {
return super.supportsInterface(interfaceId);
}
function updateWhitelistAllowance(address newAddress, uint256 amount) public onlyOwner {
whitelistBalance[newAddress] = amount;
}
function getWhitelistAllowance(address userAddress) public view returns (uint256) {
return whitelistBalance[userAddress];
}
function getPresaleAllowance(address userAddress) public view returns (uint256) {
return whitelistBalance[userAddress] - whitelistMinted[userAddress];
}
function getTokensRemaining () public view returns (uint256) {
return maxSupply - currentMintId + 1;
}
}
文件 12 的 14: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() {
_setOwner(_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 {
_setOwner(address(0));
}
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_setOwner(newOwner);
}
function _setOwner(address newOwner) private {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
文件 13 的 14:SafeMath.sol
pragma solidity ^0.8.0;
library SafeMath {
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}
文件 14 的 14: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);
}
}
{
"compilationTarget": {
"contracts/Limah.sol": "Limah"
},
"evmVersion": "london",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": false,
"runs": 200
},
"remappings": []
}
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"cost","type":"uint256"}],"name":"Minted","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":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"cost","type":"uint256"}],"name":"PresaleMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_number","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"claimReserved","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentMintId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"}],"name":"getPresaleAllowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReservedLeft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTokensRemaining","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"}],"name":"getWhitelistAllowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"metadata","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"presaleStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reservedCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_URI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePresaleStarted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleSaleStarted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"updateWhitelistAllowance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]