文件 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: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);
}
}
文件 12 的 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;
}
}
}
文件 13 的 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);
}
}
文件 14 的 14:Swayils.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 Swayils is ERC721, ERC721Enumerable, Ownable {
using SafeMath for uint256;
using SafeMath for uint64;
uint256 public constant maxSupply = 444;
uint256 public constant reservedCount = 11;
uint256 private _price = 0.15 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("SWAYILS", "SWY") {
_saleStarted = false;
_presaleStarted = false;
whitelistBalance[0x8Dfa76A3E8f290e6224b93BeBA163B90449B0e38] = 4;
whitelistBalance[0xcdF660aeEB6DBdDba0C096d1FAfCb41D60f9A88B] = 1;
whitelistBalance[0xCD546c340b8c0bA679eBbECA1ABB8C2E4528b6E5] = 1;
whitelistBalance[0xcE7DEb8fc70838F019a33797e1D2A5De8B7Ae2cC] = 2;
whitelistBalance[0xdcfd6D6e63F15A391D96D1b76575Ae39Ad6965D9] = 5;
whitelistBalance[0x403156966d0593770846e72dCBec871F93ef1224] = 6;
whitelistBalance[0xF4164FC650e2C59D1580Fc1c2C9E792087865D56] = 1;
whitelistBalance[0x646e72181602114e7eE02F963D13539cf056ce1e] = 1;
whitelistBalance[0xBbcd652CF371b59CE9A063183AA44D377f4467E8] = 2;
whitelistBalance[0x167AE6231bd8E564F969482bc34A00D91B7Fe37c] = 1;
whitelistBalance[0x115406837DE7D8194421126De6Fa7dc90bDe1663] = 2;
whitelistBalance[0x2176426a886cbA262308Ba916cC3532B3b1ce06a] = 2;
whitelistBalance[0x110772F7472B56A1aB844051260B9416FE30245b] = 2;
whitelistBalance[0x33494fB9B491B1328c90BE2c926B6A5080AbAfDA] = 4;
whitelistBalance[0xc4fF126aEC164409B9c2269D34A79E53C39C8A56] = 5;
whitelistBalance[0x320562F05bAEEed8Aa76a0110008Bf0C8C156A8F] = 8;
whitelistBalance[0x104F0BE994C32231934e64EeF299bC8866288a5f] = 1;
whitelistBalance[0x45698cdCC733cBA4f8B1150C2f580587adF1Df92] = 1;
whitelistBalance[0xbaCD6723bDc567E134603AA35E5c479411477d52] = 1;
whitelistBalance[0x3E7898c5851635D5212B07F0124a15a2d3C547EB] = 3;
whitelistBalance[0x4D9B5696a8afeD6b65F92B1B86ccf90c7561aE56] = 3;
whitelistBalance[0x48F4f0b05bc8424063a2D1e2c28b323272F9b7ac] = 2;
whitelistBalance[0x42f34449209059717e6C48eD0110783A7df82abF] = 7;
whitelistBalance[0x321f3BFA19354BD9F56CFDA97bcCf3a7C21D1621] = 1;
whitelistBalance[0xba0f8493cf26ebc23A15DaF89759fe518df7809a] = 1;
whitelistBalance[0xaee2Ae13EBf81d38df5a9Ed7013E80EA3f72e39b] = 2;
whitelistBalance[0xF898F063d22a994bA6943D50A96C2dbC0Bd9218c] = 1;
whitelistBalance[0xc72f40a397453051349F73cf2E2a04Fac06E37a3] = 2;
whitelistBalance[0x2168B2295E912A27c0015BaD9F09F090EBcE1a99] = 1;
whitelistBalance[0x3Eb92F230B33bD8d98cc060A76a7e7d77819a21A] = 3;
whitelistBalance[0xc9bD70B49e1390b94C74F744B54BA6a8801E829f] = 1;
whitelistBalance[0xea40b0f6BA2aD77fF2FedAe98Ca67EaefCBCBE4A] = 3;
whitelistBalance[0xd3e9AF5B0C1FC2edD6A7907076cd9C79e67DE6aC] = 1;
whitelistBalance[0x6D8Df15FD3dC3505a4010CaC6937De159d68081C] = 1;
whitelistBalance[0x471eD8ab8cce42fc183d25393a1A004c89DE7c03] = 1;
whitelistBalance[0xC585d35FB8C9D136d6443A30FD88CCbb5F4CB86D] = 4;
whitelistBalance[0x86776Ae9783C634C6AEe6cdA878C8f35a5571333] = 1;
whitelistBalance[0x2e44F49552C0C8e93f60318520760f619c03615F] = 1;
whitelistBalance[0x6eF2376fA6e12Dabb3a3ED0Fb44E4ff29847Af68] = 2;
whitelistBalance[0x588E73b6D555D5AEB5AdCD6A114efD5262644070] = 1;
whitelistBalance[0x6634f9d0c6B7fB5764312bD0c91556F51e67E544] = 1;
whitelistBalance[0x29f316885886bE6357FC1411478D4C291021A0AA] = 1;
whitelistBalance[0x8e258E1Aa12b8f165B69f760575b90d877AfE9b6] = 2;
whitelistBalance[0x0C4012A8715E759615c0a92F6463a2D516899c72] = 1;
whitelistBalance[0xBcc462c488F8DA534aF98F0f2E529CDed02D9CB5] = 1;
whitelistBalance[0x440d55a1867958dA7C8FD88A5e163a85Fd739eFA] = 1;
whitelistBalance[0x7B59793aD075e4ce1e35181054759C080B8D965D] = 2;
whitelistBalance[0xcA147eb37135B667B14792bc4C3Cc57389F574AA] = 1;
whitelistBalance[0x18655651F4DFA30dA7E47852265db731C3059E1b] = 2;
whitelistBalance[0x7D602b32acD5942A619f49e104b20C0553c93405] = 2;
whitelistBalance[0x3c64DA143Bf741A3fa833Dd46900d28EFE8893B3] = 5;
whitelistBalance[0xF3238D1fDb7Cc782B032D66A37F3C32133c1752f] = 1;
whitelistBalance[0xF4835D15EC30bD62CEb8dD2c5307265bdEfada16] = 2;
whitelistBalance[0xeCFe813ae72b3Eec01D0F1EFB867Fc98E24FCbD6] = 1;
whitelistBalance[0xBb739eE04F0cC2Db984cd47EAd003F4c183CF19a] = 1;
whitelistBalance[0x004768E08805AB5ece646a65C8Ba492C3AD71E4a] = 1;
whitelistBalance[0x13eA6F1AA53a6635e68920192A61BF54F9d28759] = 2;
whitelistBalance[0xb1E079854268985431935ce53AA54C8e1722fA0D] = 1;
whitelistBalance[0x8eE6D1daE8eCeA729bD40a6F3BEde58bF048eD9e] = 1;
whitelistBalance[0xd70676Cfa67Abc65A8C39f049d62EEA30E3080CF] = 1;
whitelistBalance[0xD14cc3F1a7Dd5e3900A20e76949A26d4a7FcF80A] = 1;
whitelistBalance[0x322e128453EFd91a4c131761d9d535fF6E0CCd90] = 1;
whitelistBalance[0xE3873F3D9E13880f9c508f47cbBF9e065a67265B] = 1;
whitelistBalance[0x20B4E6cAbA712F520D9A3A309D8c0b0DA801a212] = 4;
whitelistBalance[0x5fFd0B2EB25e29DBf94Ee7cB8F7b90d2b2fbbc53] = 1;
whitelistBalance[0x8C24DaA82Ff32A9125413744C96c22d4531e7d92] = 1;
whitelistBalance[0x177580556eD986Cee01012C6115823208Ef584B8] = 1;
whitelistBalance[0x7eC8676CA6BDDB54455b806B9ef39c6D8ee51766] = 1;
whitelistBalance[0x5968d383DeB7636FB68C91915c516499Fa2ddcD0] = 1;
whitelistBalance[0x382F9aa5A5ea84735Eb63C612A2b867adBF5A4B1] = 1;
whitelistBalance[0x0f49048a39b086d74A189aa8239BaE3916103455] = 1;
whitelistBalance[0x08Cdbd22a584F0fa78474FD1724c664D62C65FD9] = 1;
whitelistBalance[0xe4A974E499e8767A13894635C45F7389b1FFc5Dd] = 1;
whitelistBalance[0x2C6602c1200F08eb57CC06eaDa1C215cfd7D0b7C] = 1;
whitelistBalance[0xB7D9945166e3DA89ee4c0947230753d656D116a5] = 2;
whitelistBalance[0x09C7533cC31fCB722471D95D646665213D61c8a0] = 1;
whitelistBalance[0x4e1c52008b0cd3bE1819745695E85Ffe3B9494B0] = 2;
whitelistBalance[0xF2A4c3c0454669Bec132Ad3a9AcA57dF54f812f1] = 1;
whitelistBalance[0xd6cc8BF1a2bDF94BE558A40B2A665a46c94211B6] = 1;
whitelistBalance[0x4a7AFc64E298876FcB8F6AA7D44Ef3C91fCBC291] = 1;
whitelistBalance[0x36E058332aE39efaD2315776B9c844E30d07388B] = 1;
whitelistBalance[0x738A1f6d79e592f726efaA3B8beF81797F408119] = 1;
whitelistBalance[0x84274ff96A1928FEb3c1cC2260f962B377a3d53F] = 2;
whitelistBalance[0x007C9c7e7ed7cD83F1A38cFd747f28E6894ab9f6] = 1;
whitelistBalance[0x34A4Dd196Ab83166c8C9935D5A6f60f2a02a905a] = 1;
whitelistBalance[0xD41c564db35DA12D9d25944b88Cc22468B0D45DC] = 1;
whitelistBalance[0x9429695E1AACe83232a140B38D7f265463f66F47] = 1;
whitelistBalance[0xBe769b04627613C8F3b30aBE20E6458c1DCB239B] = 1;
whitelistBalance[0x4D77536a1B90C30F1fBcaeF8817160f663Da1DE0] = 3;
whitelistBalance[0xB3f6Ea7b8A2ccE43D78d5637D2f0cA2c806439D0] = 1;
whitelistBalance[0xa4362e88E1444DF62fC85d15F7eC333f0664442C] = 1;
whitelistBalance[0xac769FE802607bde986a3016EF23b5e484f36d2b] = 2;
whitelistBalance[0x1d4B9b250B1Bd41DAA35d94BF9204Ec1b0494eE3] = 2;
whitelistBalance[0xcB1dAC0C1a5F87dc410a56F0F82E7E3A56bE1499] = 1;
whitelistBalance[0x100e4F6D92965C2f2dEc3A08ACeb63A8de69c99D] = 1;
whitelistBalance[0x1986F4BCc6b78d40e499E928a910DD7bde857734] = 1;
whitelistBalance[0x3De609D6ae53B1607445Bb3f366EF81C737ED80B] = 1;
whitelistBalance[0x1a60DfB071B039c6e33dcb3220891C83DA72c1be] = 1;
whitelistBalance[0x9B24349Ad2e4d0a2dcE6376b75A823D9b0C9774C] = 2;
whitelistBalance[0x6ab615CF8deCFc488186E54066Fc10589C9293A3] = 1;
whitelistBalance[0x3ddfB199288F7a439dfFEdc03AE9Bc02FaFC63F6] = 1;
whitelistBalance[0xd781a9158edFd5AEA767F5cfC3Db97482C722157] = 1;
whitelistBalance[0xEAfAA1405A1BaC58D2C3dCefe6A07467Bcd7fEbE] = 1;
whitelistBalance[0x1d06ef1CF5059370ecd6bE3A4ACa223fE5973E02] = 1;
whitelistBalance[0x94F0FaA3c83C9Bc78b675dDeA82fcB982fa89690] = 1;
whitelistBalance[0x2A76F7Df64889A1f20F5b6Aa87eBfFA9A38AB925] = 1;
whitelistBalance[0x92B57222582EfB77295454340529c411021c7Bc5] = 1;
whitelistBalance[0x3a4f4a3B4D965058701f0fb2611Acbc89a11996E] = 1;
whitelistBalance[0x85C6F217D0375E5dC7b249B5bC12577B051bf417] = 1;
whitelistBalance[0x5FE7Ff8Dc6082b6b0812c5A4b23A3B7B40D26747] = 1;
whitelistBalance[0x4EB4a5718A685c788B650c944834ba574Db508C4] = 1;
whitelistBalance[0x5080A71235d51F1E1F2F7C720810766Dc5FB15C1] = 1;
whitelistBalance[0xcD61ecC765040389b81dAc23b67B091160E9BF39] = 2;
whitelistBalance[0x38623FA88e3d8D85945C2512Abf3f001a9edB492] = 1;
whitelistBalance[0xFF0aD4e2C7F60D2303812Cbc73c20F890b339925] = 1;
whitelistBalance[0x4D010eeB7ec813AE5520D4cC7Bdb975ba2bFd2a1] = 1;
whitelistBalance[0x2668B4B69c57624B0dc7453250f841B726a456CF] = 1;
whitelistBalance[0x93EFEC89Db80176895b2C7a4E00aF808BBc69239] = 1;
whitelistBalance[0xEbD56361441B416a788086e47F48599593fcFE4F] = 1;
whitelistBalance[0xb7bB1C09b6fB19e94ac700867ff35FbEd354C1BD] = 3;
whitelistBalance[0x9DDf691De5e1F4f7764262Be936B61f46d9f9d70] = 1;
whitelistBalance[0xd3745F1ba3c0280F0Fb3456676dE2Fa714d1fcb7] = 1;
whitelistBalance[0xA47D76b2dEbc07f8EC2cf8116b8d4e420F2ec30F] = 1;
whitelistBalance[0xcB748f312b8e0557587862225697AAe325052f7D] = 1;
whitelistBalance[0x2d408F3160B15F09Df792eFCb395B828d3E55a95] = 1;
whitelistBalance[0x00668bd79Ede077B99BbE1C4db59418bC333d4Cf] = 1;
whitelistBalance[0xd0c31E46C73B386432A3DdF768587df604dD52BE] = 1;
whitelistBalance[0xd5e0978654caDe8fC01983899df720Cca7a1cBB0] = 1;
whitelistBalance[0x8F861bEca131AF06ff39618e062f8720d0C1002F] = 1;
whitelistBalance[0x15E875bD7De4C3d1F57a9837c411a30ff5f12B38] = 1;
whitelistBalance[0xA14964479Ebf9cD336011ad80652b08CD83dFE3A] = 2;
whitelistBalance[0x33569c101562e1fAF5b24581057E5cEE4c8288D7] = 1;
whitelistBalance[0xbDE914699063F6EA14951AF723D2F13c822bF4ad] = 1;
whitelistBalance[0xbF0850570757fbD3578be46E632Aa96a874bA1bD] = 1;
whitelistBalance[0xC653501899b8740379A3BA78EfD242ca93f76D7A] = 3;
whitelistBalance[0x1F0Da8D6c0F517c2a67a3F34D1BBebfbD07B6236] = 1;
whitelistBalance[0x923F2C6567E2b59031901373E64d3433B59c8153] = 1;
whitelistBalance[0x461e76A4fE9f27605d4097A646837c32F1ccc31c] = 1;
whitelistBalance[0x248AfBEc09C971372278C1052253E4c308d5430C] = 1;
whitelistBalance[0xCCa11A8EdB05D64a654092e9551F9122D70EA80e] = 1;
whitelistBalance[0xC683915268E712F9960Ce59736a32119165Cc962] = 1;
whitelistBalance[0x532a2707D598d7Ae6B02eF0e0BA897DaF44b1603] = 1;
whitelistBalance[0x1273B62A0E80ed80fFD46C119555eca9787fa37F] = 3;
whitelistBalance[0xF042B0Ebfb500408134eAEFE5BD84dC983724317] = 1;
whitelistBalance[0x27D998A81b5510Ed61D94aFDAA747e9719b45d0B] = 2;
whitelistBalance[0x0e53dbb8d5d58D957480FE522258353408D1d2a6] = 1;
whitelistBalance[0xD9Bf0EF73403C9DC9490af5c6A2F6f7516286F32] = 1;
whitelistBalance[0xa9c5b41605f51f3Ba6aeb62258b0DF9B9384d8A1] = 1;
whitelistBalance[0xC60F2319eEC9B91ac6428055eeD38A946014571D] = 2;
whitelistBalance[0x599eC7E5449E41a0204A0ed17daa1059Ee2C5F28] = 1;
whitelistBalance[0x0701d19c4D9364b69Ca001061aE3eD169a40691B] = 1;
whitelistBalance[0x5482b90E0F59Fb4a926f7FFe9DB9EADE142CF86D] = 1;
whitelistBalance[0x815C187c70Ef6F52c0C9EDc6bb28a619E14057d3] = 1;
whitelistBalance[0xdD88E38cD55CD5F7e3AA4ce6C28fb73bFddbF0E7] = 1;
whitelistBalance[0xB7c6d7406e2F370290111A585D1a7A76B86C8776] = 1;
whitelistBalance[0x8ac6a89a3484B372aCf4F0De03646C8b2A962911] = 1;
whitelistBalance[0xdF01F73C69b1adBdb74798E531EC08DC1C136d49] = 1;
whitelistBalance[0xa0C370E3659aDe540DbB0b88Bb20589944853787] = 1;
whitelistBalance[0xc39253C74D2454e8ceBF5d8C6a219505bbe8744a] = 1;
whitelistBalance[0x4C33294c13C5e783dd1d28c9844950B33d4DE9a0] = 1;
whitelistBalance[0xC64343253bE7eB09229566c1925FeC415fe299f3] = 1;
whitelistBalance[0xBB46314634470eD16eeDBE16F301DFE074091375] = 1;
whitelistBalance[0xF0C81C3d9102DDaD3568312d11738C902aB355C2] = 1;
whitelistBalance[0x77D74a7611DB43241E25c65888e6a26fa69019a1] = 1;
whitelistBalance[0x881475210E75b814D5b711090a064942b6f30605] = 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 - reservedCount + 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;
}
}
{
"compilationTarget": {
"contracts/Swayils.sol": "Swayils"
},
"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"}]