Token MoonMastersNFT
Overview ERC-721
Total Supply:
500 MOONMASTERS
Holders:
185 addresses
Transfers:
-
Contract:
[ Download CSV Export ]
[ Download CSV Export ]
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MoonDaoNFT
Compiler Version
v0.8.7+commit.e28d00a7
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/ClampedRandomizer.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/access/AccessControlEnumerable.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; // Overview of contract capability // Standard ERC721 // Supports for: // - Presale list // - Admin other than Owner // - Burnable contract MoonDaoNFT is ClampedRandomizer, Context, AccessControlEnumerable, ERC721Enumerable, ERC721URIStorage { using Counters for Counters.Counter; Counters.Counter public _tokenIdTrackerWL; string private _baseTokenURI; /// @notice Mint price uint private _price; /// @notice Max number of token mintable uint private _max; /// @notice Max number of token mintable via the whitelist free mint function uint private _maxwl; address _wallet; // Internal Parameters bool _openMint; bool _openWhitelistMint; uint _maxPerWallet = 3; mapping(address => uint) private whitelist; constructor(string memory name, string memory symbol, string memory baseTokenURI, uint mintPrice, uint max, uint maxwl, address wallet, address admin) ERC721(name, symbol) ClampedRandomizer(max - maxwl, maxwl) { _baseTokenURI = baseTokenURI; _price = mintPrice; _max = max; _maxwl = maxwl; _wallet = wallet; _openMint = false; _openWhitelistMint = false; _tokenIdTrackerWL.increment(); // Increment the whitelist tracker once to start at 1 _setupRole(DEFAULT_ADMIN_ROLE, wallet); _setupRole(DEFAULT_ADMIN_ROLE, admin); } function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } function setBaseURI(string memory baseURI) external { require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "Admin Required"); _baseTokenURI = baseURI; } function setTokenURI(uint256 tokenId, string memory _tokenURI) external { require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "Admin Required"); _setTokenURI(tokenId, _tokenURI); } /** @notice Method for updating minting fee @dev Only admin @param mintPrice uint the minting fee to set */ function setPrice(uint mintPrice) external { require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "Must have admin role to change price"); _price = mintPrice; } function setMax(uint max) external { require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "Must have admin role to change the max quantity"); _max = max; } function setMaxPerWallet(uint newMaxBuy) external { require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "Must have admin role to change the max quantity"); _maxPerWallet = newMaxBuy; } function setMint(bool openMint, bool openWhitelistMint) external { require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "Must have admin role to open/close mint"); _openMint = openMint; _openWhitelistMint = openWhitelistMint; } function getPrice() public view returns (uint) { return _price; } function getMax() public view returns (uint) { return _max; } function getOpenMintStatus() public view returns (bool) { return _openMint; } function getOpenFreeMintStatus() public view returns (bool) { return _openWhitelistMint; } function internalMint(address to) internal { uint tokenId = _genClampedNonce(); _mint(to, tokenId); } function mint(uint amount) public payable { uint supply = totalSupply(); require(amount <= 1, "Max of 1 NFT per mint"); require(ERC721.balanceOf(msg.sender) < _maxPerWallet, "Max per wallet reached"); require(_openMint == true, "Minting is closed"); require(msg.value == _price*amount, "Must send correct price"); require(supply + amount <= _max, "Not enough NFT left to be minted"); //_mint(msg.sender, _tokenIdTracker.current()); internalMint(msg.sender); payable(_wallet).transfer(msg.value); } function mintWhitelist(uint amount) public { uint supply = totalSupply(); require(_openWhitelistMint == true, "Minting is closed"); require(ERC721.balanceOf(msg.sender) < _maxPerWallet, "Max per wallet reached"); require(whitelist[msg.sender] > 0, "No freemint spot"); require(amount <= whitelist[msg.sender], "Not enough freemint spot"); require(supply < _max, "All NFTs have been minted"); //require(_tokenIdTrackerWL.current() < _maxwl, "max whitelist mint reached"); for(uint i = 0; i < amount; i++) { require(_tokenIdTrackerWL.current() <= _maxwl, "max whitelist mint reached"); _mint(msg.sender, _tokenIdTrackerWL.current()); _tokenIdTrackerWL.increment(); //internalMint(msg.sender); whitelist[msg.sender] = whitelist[msg.sender] - 1; } } function whitelistUser(address user, uint nbspot) public { require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "Need to be admin"); whitelist[user] = nbspot; } function whitelistStatus(address user) public view returns(uint) { return whitelist[user]; } function burn(uint256 tokenId) public{ require(_isApprovedOrOwner(msg.sender, tokenId), "Must own the token to burn it"); _burn(tokenId); } function _burn(uint256 tokenId) internal virtual override(ERC721, ERC721URIStorage) { return ERC721URIStorage._burn(tokenId); } function tokenURI(uint256 tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory) { return ERC721URIStorage.tokenURI(tokenId); } function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); } function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControlEnumerable, ERC721, ERC721Enumerable) returns (bool) { return super.supportsInterface(interfaceId); } }
//SPDX-License-Identifier: MIT pragma solidity ^0.8.7; contract ClampedRandomizer { uint256 private _scopeIndex = 0; //Clamping cache for random TokenID generation in the anti-sniping algo uint256 private immutable _scopeCap; //Size of initial randomized number pool & max generated value (zero indexed) uint256 private immutable _scopeOffset; //Size of initial randomized number pool & max generated value (zero indexed) mapping(uint256 => uint256) _swappedIDs; //TokenID cache for random TokenID generation in the anti-sniping algo constructor(uint256 scopeCap, uint256 scopeOffset) { _scopeCap = scopeCap; _scopeOffset = scopeOffset; } function _genClampedNonce() internal virtual returns (uint256) { uint256 scope = _scopeCap - _scopeIndex; uint256 swap; uint256 result; uint256 i = randomNumber() % scope; //Setup the value to swap in for the selected number if (_swappedIDs[scope - 1] == 0) { swap = scope - 1; } else { swap = _swappedIDs[scope - 1]; } //Select a random number, swap it out with an unselected one then shorten the selection range by 1 if (_swappedIDs[i] == 0) { result = i; _swappedIDs[i] = swap; } else { result = _swappedIDs[i]; _swappedIDs[i] = swap; } _scopeIndex++; return result + _scopeOffset + 1; } function randomNumber() internal view returns (uint256) { return uint256(keccak256(abi.encodePacked(block.difficulty, block.timestamp))); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/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"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ 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; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ 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())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ 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); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ 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); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ 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"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ 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)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ 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" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ 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); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ 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); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ 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; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ 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]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ 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); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Burnable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../utils/Context.sol"; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be irreversibly burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved"); _burn(tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721URIStorage.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; /** * @dev ERC721 token with storage based token URI management. */ abstract contract ERC721URIStorage is ERC721 { using Strings for uint256; // Optional mapping for token URIs mapping(uint256 => string) private _tokenURIs; /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token"); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = _baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(base, _tokenURI)); } return super.tokenURI(tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual override { super._burn(tokenId); if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/AccessControlEnumerable.sol) pragma solidity ^0.8.0; import "./IAccessControlEnumerable.sol"; import "./AccessControl.sol"; import "../utils/structs/EnumerableSet.sol"; /** * @dev Extension of {AccessControl} that allows enumerating the members of each role. */ abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl { using EnumerableSet for EnumerableSet.AddressSet; mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) public view override returns (address) { return _roleMembers[role].at(index); } /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) public view override returns (uint256) { return _roleMembers[role].length(); } /** * @dev Overload {_grantRole} to track enumerable memberships */ function _grantRole(bytes32 role, address account) internal virtual override { super._grantRole(role, account); _roleMembers[role].add(account); } /** * @dev Overload {_revokeRole} to track enumerable memberships */ function _revokeRole(bytes32 role, address account) internal virtual override { super._revokeRole(role, account); _roleMembers[role].remove(account); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ 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"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ 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"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ 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); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ 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); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ 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); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol 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); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ 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); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed 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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; /** * @dev External interface of AccessControlEnumerable declared to support ERC165 detection. */ interface IAccessControlEnumerable is IAccessControl { /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) external view returns (address); /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol) pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/access/AccessControlEnumerable.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; contract MoonMastersArtistRenditions is Context, AccessControlEnumerable, ERC721Enumerable, ERC721URIStorage{ using Counters for Counters.Counter; Counters.Counter public _tokenIdTracker; string private _baseTokenURI; /// @notice Mint price uint private _price; /// @notice Max number of token mintable uint private _max; address _wallet; bool _openMint; bool _openWhitelistMint; mapping(address => uint) private whitelist; constructor(string memory name, string memory symbol, string memory baseTokenURI, uint mintPrice, uint max, address wallet, address admin) ERC721(name, symbol) { _baseTokenURI = baseTokenURI; _price = mintPrice; _max = max; _wallet = wallet; _openMint = false; _openWhitelistMint = false; _tokenIdTracker.increment(); _setupRole(DEFAULT_ADMIN_ROLE, wallet); _setupRole(DEFAULT_ADMIN_ROLE, admin); } function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } function setBaseURI(string memory baseURI) external { require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "Must have admin role to change base URI"); _baseTokenURI = baseURI; } function setTokenURI(uint256 tokenId, string memory _tokenURI) external { require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "Must have admin role to change token URI"); _setTokenURI(tokenId, _tokenURI); } /** @notice Method for updating minting fee @dev Only admin @param mintPrice uint the minting fee to set */ function setPrice(uint mintPrice) external { require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "Must have admin role to change price"); _price = mintPrice; } function setMax(uint max) external { require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "Must have admin role to change the max quantity"); _max = max; } function setMint(bool openMint, bool openWhitelistMint) external { require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "Must have admin role to open/close mint"); _openMint = openMint; _openWhitelistMint = openWhitelistMint; } function getPrice() public view returns (uint) { return _price; } function getMax() public view returns (uint) { return _max; } function mint(uint amount) public payable { require(amount <= 10, "Max of 10 NFT per mint"); require(_openMint == true, "Minting is closed"); require(msg.value == _price*amount, "Must send correct price"); require(_tokenIdTracker.current() + amount <= _max + 1, "not enough 1_1 left to be minted"); for(uint i = 0; i < amount; i++) { _mint(msg.sender, _tokenIdTracker.current()); _tokenIdTracker.increment(); } payable(_wallet).transfer(msg.value); } function mintWhitelist(uint amount) public { require(_openWhitelistMint == true, "Minting is closed"); require(whitelist[msg.sender] > 0, "user must be whitelisted to mint"); require(amount <= whitelist[msg.sender], "user must have enough whitelist spots left to mint"); require(_tokenIdTracker.current() + amount <= _max + 1, "not enough 1_1 left to be minted"); for(uint i = 0; i < amount; i++) { _mint(msg.sender, _tokenIdTracker.current()); whitelist[msg.sender] = whitelist[msg.sender] - 1; _tokenIdTracker.increment(); } } function whitelistUser(address user, uint nbspot) public { require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "Must have admin role to whitelist address"); whitelist[user] = nbspot; } function whitelistStatus(address user) public view returns(uint) { return whitelist[user]; } function burn(uint256 tokenId) public{ require(_isApprovedOrOwner(msg.sender, tokenId), "Must own the token to burn it"); _burn(tokenId); } function _burn(uint256 tokenId) internal virtual override(ERC721, ERC721URIStorage) { return ERC721URIStorage._burn(tokenId); } function tokenURI(uint256 tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory) { return ERC721URIStorage.tokenURI(tokenId); } function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); } function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControlEnumerable, ERC721, ERC721Enumerable) returns (bool) { return super.supportsInterface(interfaceId); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "metadata": { "useLiteralContent": true } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"baseTokenURI","type":"string"},{"internalType":"uint256","name":"mintPrice","type":"uint256"},{"internalType":"uint256","name":"max","type":"uint256"},{"internalType":"uint256","name":"maxwl","type":"uint256"},{"internalType":"address","name":"wallet","type":"address"},{"internalType":"address","name":"admin","type":"address"}],"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":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"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":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_tokenIdTrackerWL","outputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"view","type":"function"},{"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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getOpenFreeMintStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getOpenMintStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"max","type":"uint256"}],"name":"setMax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxBuy","type":"uint256"}],"name":"setMaxPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"openMint","type":"bool"},{"internalType":"bool","name":"openWhitelistMint","type":"bool"}],"name":"setMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"setTokenURI","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":[{"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":"user","type":"address"}],"name":"whitelistStatus","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"nbspot","type":"uint256"}],"name":"whitelistUser","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c06040526000805560036015553480156200001a57600080fd5b50604051620036eb380380620036eb8339810160408190526200003d91620003ef565b87876200004b8587620004c3565b60805260a085905281516200006890600490602085019062000275565b5080516200007e90600590602084019062000275565b50508651620000969150601090602089019062000275565b50601185905560128490556013839055601480546001600160a01b0384166001600160b01b0319909116179055620000db600f62000103602090811b620014ed17901c565b620000e86000836200010c565b620000f56000826200010c565b50505050505050506200053c565b80546001019055565b6200011882826200011c565b5050565b6200013382826200015f60201b620014f61760201c565b60008281526003602090815260409091206200015a9183906200157c62000203821b17901c565b505050565b60008281526002602090815260408083206001600160a01b038516845290915290205460ff16620001185760008281526002602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620001bf3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006200021a836001600160a01b03841662000223565b90505b92915050565b60008181526001830160205260408120546200026c575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556200021d565b5060006200021d565b8280546200028390620004e9565b90600052602060002090601f016020900481019282620002a75760008555620002f2565b82601f10620002c257805160ff1916838001178555620002f2565b82800160010185558215620002f2579182015b82811115620002f2578251825591602001919060010190620002d5565b506200030092915062000304565b5090565b5b8082111562000300576000815560010162000305565b80516001600160a01b03811681146200033357600080fd5b919050565b600082601f8301126200034a57600080fd5b81516001600160401b038082111562000367576200036762000526565b604051601f8301601f19908116603f0116810190828211818310171562000392576200039262000526565b81604052838152602092508683858801011115620003af57600080fd5b600091505b83821015620003d35785820183015181830184015290820190620003b4565b83821115620003e55760008385830101525b9695505050505050565b600080600080600080600080610100898b0312156200040d57600080fd5b88516001600160401b03808211156200042557600080fd5b620004338c838d0162000338565b995060208b01519150808211156200044a57600080fd5b620004588c838d0162000338565b985060408b01519150808211156200046f57600080fd5b506200047e8b828c0162000338565b965050606089015194506080890151935060a08901519250620004a460c08a016200031b565b9150620004b460e08a016200031b565b90509295985092959890939650565b600082821015620004e457634e487b7160e01b600052601160045260246000fd5b500390565b600181811c90821680620004fe57607f821691505b602082108114156200052057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805160a0516131896200056260003960006121fe0152600061210501526131896000f3fe60806040526004361061023b5760003560e01c80636352211e1161012e578063afe6d4ab116100ab578063d547741f1161006f578063d547741f146106b2578063d59f08b3146106d2578063e054ffc3146106f2578063e268e4d314610712578063e985e9c51461073257600080fd5b8063afe6d4ab14610605578063b88d4fde1461061c578063c87b56dd1461063c578063ca15c8731461065c578063ccaf1c4b1461067c57600080fd5b806395d89b41116100f257806395d89b411461059357806398d5fdca146105a8578063a0712d68146105bd578063a217fddf146105d0578063a22cb465146105e557600080fd5b80636352211e146104f357806370a08231146105135780639010d07c1461053357806391b7f5ed1461055357806391d148541461057357600080fd5b80632f745c59116101bc57806342966c681161018057806342966c68146104545780634618163e146104745780634f2c2637146104945780634f6ccce7146104b357806355f804b3146104d357600080fd5b80632f745c59146103c05780633075f552146103e057806336568abe146103f55780633a9de64e1461041557806342842e0e1461043457600080fd5b806318160ddd1161020357806318160ddd146103115780631fe9eabc1461033057806323b872dd14610350578063248a9ca3146103705780632f2ff15d146103a057600080fd5b806301ffc9a71461024057806306fdde0314610275578063081812fc14610297578063095ea7b3146102cf578063162094c4146102f1575b600080fd5b34801561024c57600080fd5b5061026061025b366004612cf8565b61077b565b60405190151581526020015b60405180910390f35b34801561028157600080fd5b5061028a61078c565b60405161026c9190612ebb565b3480156102a357600080fd5b506102b76102b2366004612c9a565b61081e565b6040516001600160a01b03909116815260200161026c565b3480156102db57600080fd5b506102ef6102ea366004612c54565b6108ab565b005b3480156102fd57600080fd5b506102ef61030c366004612d67565b6109c1565b34801561031d57600080fd5b50600c545b60405190815260200161026c565b34801561033c57600080fd5b506102ef61034b366004612c9a565b610a17565b34801561035c57600080fd5b506102ef61036b366004612b72565b610a43565b34801561037c57600080fd5b5061032261038b366004612c9a565b60009081526002602052604090206001015490565b3480156103ac57600080fd5b506102ef6103bb366004612cb3565b610a74565b3480156103cc57600080fd5b506103226103db366004612c54565b610a9a565b3480156103ec57600080fd5b50601254610322565b34801561040157600080fd5b506102ef610410366004612cb3565b610b30565b34801561042157600080fd5b50601454600160a01b900460ff16610260565b34801561044057600080fd5b506102ef61044f366004612b72565b610baa565b34801561046057600080fd5b506102ef61046f366004612c9a565b610bc5565b34801561048057600080fd5b506102ef61048f366004612c9a565b610c27565b3480156104a057600080fd5b50601454600160a81b900460ff16610260565b3480156104bf57600080fd5b506103226104ce366004612c9a565b610e95565b3480156104df57600080fd5b506102ef6104ee366004612d32565b610f28565b3480156104ff57600080fd5b506102b761050e366004612c9a565b610f83565b34801561051f57600080fd5b5061032261052e366004612b24565b610ffa565b34801561053f57600080fd5b506102b761054e366004612cd6565b611081565b34801561055f57600080fd5b506102ef61056e366004612c9a565b6110a0565b34801561057f57600080fd5b5061026061058e366004612cb3565b611108565b34801561059f57600080fd5b5061028a611133565b3480156105b457600080fd5b50601154610322565b6102ef6105cb366004612c9a565b611142565b3480156105dc57600080fd5b50610322600081565b3480156105f157600080fd5b506102ef610600366004612c2a565b611335565b34801561061157600080fd5b50600f546103229081565b34801561062857600080fd5b506102ef610637366004612bae565b611340565b34801561064857600080fd5b5061028a610657366004612c9a565b611378565b34801561066857600080fd5b50610322610677366004612c9a565b611383565b34801561068857600080fd5b50610322610697366004612b24565b6001600160a01b031660009081526016602052604090205490565b3480156106be57600080fd5b506102ef6106cd366004612cb3565b61139a565b3480156106de57600080fd5b506102ef6106ed366004612c7e565b6113c0565b3480156106fe57600080fd5b506102ef61070d366004612c54565b61145b565b34801561071e57600080fd5b506102ef61072d366004612c9a565b6114c1565b34801561073e57600080fd5b5061026061074d366004612b3f565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b600061078682611591565b92915050565b60606004805461079b90613065565b80601f01602080910402602001604051908101604052809291908181526020018280546107c790613065565b80156108145780601f106107e957610100808354040283529160200191610814565b820191906000526020600020905b8154815290600101906020018083116107f757829003601f168201915b5050505050905090565b6000610829826115b6565b61088f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600860205260409020546001600160a01b031690565b60006108b682610f83565b9050806001600160a01b0316836001600160a01b031614156109245760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610886565b336001600160a01b03821614806109405750610940813361074d565b6109b25760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610886565b6109bc83836115d3565b505050565b6109cc600033611108565b610a095760405162461bcd60e51b815260206004820152600e60248201526d10591b5a5b8814995c5d5a5c995960921b6044820152606401610886565b610a138282611641565b5050565b610a22600033611108565b610a3e5760405162461bcd60e51b815260040161088690612f20565b601255565b610a4d33826116cc565b610a695760405162461bcd60e51b815260040161088690612f6f565b6109bc8383836117b6565b600082815260026020526040902060010154610a908133611961565b6109bc83836119c5565b6000610aa583610ffa565b8210610b075760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610886565b506001600160a01b03919091166000908152600a60209081526040808320938352929052205490565b6001600160a01b0381163314610ba05760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610886565b610a1382826119e7565b6109bc83838360405180602001604052806000815250611340565b610bcf33826116cc565b610c1b5760405162461bcd60e51b815260206004820152601d60248201527f4d757374206f776e2074686520746f6b656e20746f206275726e2069740000006044820152606401610886565b610c2481611a09565b50565b6000610c32600c5490565b601454909150600160a81b900460ff161515600114610c875760405162461bcd60e51b8152602060048201526011602482015270135a5b9d1a5b99c81a5cc818db1bdcd959607a1b6044820152606401610886565b601554610c9333610ffa565b10610cd95760405162461bcd60e51b815260206004820152601660248201527513585e081c195c881dd85b1b195d081c995858da195960521b6044820152606401610886565b33600090815260166020526040902054610d285760405162461bcd60e51b815260206004820152601060248201526f139bc8199c99595b5a5b9d081cdc1bdd60821b6044820152606401610886565b33600090815260166020526040902054821115610d875760405162461bcd60e51b815260206004820152601860248201527f4e6f7420656e6f75676820667265656d696e742073706f7400000000000000006044820152606401610886565b6012548110610dd85760405162461bcd60e51b815260206004820152601960248201527f416c6c204e4654732068617665206265656e206d696e746564000000000000006044820152606401610886565b60005b828110156109bc57601354600f541115610e375760405162461bcd60e51b815260206004820152601a60248201527f6d61782077686974656c697374206d696e7420726561636865640000000000006044820152606401610886565b610e4933610e44600f5490565b611a12565b610e57600f80546001019055565b33600090815260166020526040902054610e739060019061300b565b3360009081526016602052604090205580610e8d816130a0565b915050610ddb565b6000610ea0600c5490565b8210610f035760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610886565b600c8281548110610f1657610f16613111565b90600052602060002001549050919050565b610f33600033611108565b610f705760405162461bcd60e51b815260206004820152600e60248201526d10591b5a5b8814995c5d5a5c995960921b6044820152606401610886565b8051610a13906010906020840190612993565b6000818152600660205260408120546001600160a01b0316806107865760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610886565b60006001600160a01b0382166110655760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610886565b506001600160a01b031660009081526007602052604090205490565b60008281526003602052604081206110999083611b51565b9392505050565b6110ab600033611108565b6111035760405162461bcd60e51b8152602060048201526024808201527f4d75737420686176652061646d696e20726f6c6520746f206368616e676520706044820152637269636560e01b6064820152608401610886565b601155565b60009182526002602090815260408084206001600160a01b0393909316845291905290205460ff1690565b60606005805461079b90613065565b600061114d600c5490565b905060018211156111985760405162461bcd60e51b815260206004820152601560248201527413585e081bd9880c48139195081c195c881b5a5b9d605a1b6044820152606401610886565b6015546111a433610ffa565b106111ea5760405162461bcd60e51b815260206004820152601660248201527513585e081c195c881dd85b1b195d081c995858da195960521b6044820152606401610886565b601454600160a01b900460ff16151560011461123c5760405162461bcd60e51b8152602060048201526011602482015270135a5b9d1a5b99c81a5cc818db1bdcd959607a1b6044820152606401610886565b8160115461124a9190612fec565b34146112985760405162461bcd60e51b815260206004820152601760248201527f4d7573742073656e6420636f72726563742070726963650000000000000000006044820152606401610886565b6012546112a58383612fc0565b11156112f35760405162461bcd60e51b815260206004820181905260248201527f4e6f7420656e6f756768204e4654206c65667420746f206265206d696e7465646044820152606401610886565b6112fc33611b5d565b6014546040516001600160a01b03909116903480156108fc02916000818181858888f193505050501580156109bc573d6000803e3d6000fd5b610a13338383611b73565b61134a33836116cc565b6113665760405162461bcd60e51b815260040161088690612f6f565b61137284848484611c42565b50505050565b606061078682611c75565b600081815260036020526040812061078690611dd7565b6000828152600260205260409020600101546113b68133611961565b6109bc83836119e7565b6113cb600033611108565b6114275760405162461bcd60e51b815260206004820152602760248201527f4d75737420686176652061646d696e20726f6c6520746f206f70656e2f636c6f6044820152661cd9481b5a5b9d60ca1b6064820152608401610886565b6014805461ffff60a01b1916600160a01b9315159390930260ff60a81b191692909217600160a81b91151591909102179055565b611466600033611108565b6114a55760405162461bcd60e51b815260206004820152601060248201526f2732b2b2103a379031329030b236b4b760811b6044820152606401610886565b6001600160a01b03909116600090815260166020526040902055565b6114cc600033611108565b6114e85760405162461bcd60e51b815260040161088690612f20565b601555565b80546001019055565b6115008282611108565b610a135760008281526002602090815260408083206001600160a01b03851684529091529020805460ff191660011790556115383390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000611099836001600160a01b038416611de1565b60006001600160e01b0319821663780e9d6360e01b1480610786575061078682611e30565b6000908152600660205260409020546001600160a01b0316151590565b600081815260086020526040902080546001600160a01b0319166001600160a01b038416908117909155819061160882610f83565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b61164a826115b6565b6116ad5760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b6064820152608401610886565b6000828152600e6020908152604090912082516109bc92840190612993565b60006116d7826115b6565b6117385760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610886565b600061174383610f83565b9050806001600160a01b0316846001600160a01b0316148061177e5750836001600160a01b03166117738461081e565b6001600160a01b0316145b806117ae57506001600160a01b0380821660009081526009602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166117c982610f83565b6001600160a01b0316146118315760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610886565b6001600160a01b0382166118935760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610886565b61189e838383611e70565b6118a96000826115d3565b6001600160a01b03831660009081526007602052604081208054600192906118d290849061300b565b90915550506001600160a01b0382166000908152600760205260408120805460019290611900908490612fc0565b909155505060008181526006602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61196b8282611108565b610a1357611983816001600160a01b03166014611e7b565b61198e836020611e7b565b60405160200161199f929190612e09565b60408051601f198184030181529082905262461bcd60e51b825261088691600401612ebb565b6119cf82826114f6565b60008281526003602052604090206109bc908261157c565b6119f18282612017565b60008281526003602052604090206109bc908261207e565b610c2481612093565b6001600160a01b038216611a685760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610886565b611a71816115b6565b15611abe5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610886565b611aca60008383611e70565b6001600160a01b0382166000908152600760205260408120805460019290611af3908490612fc0565b909155505060008181526006602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600061109983836120d3565b6000611b676120fd565b9050610a138282611a12565b816001600160a01b0316836001600160a01b03161415611bd55760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610886565b6001600160a01b03838116600081815260096020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611c4d8484846117b6565b611c5984848484612237565b6113725760405162461bcd60e51b815260040161088690612ece565b6060611c80826115b6565b611ce65760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b6064820152608401610886565b6000828152600e602052604081208054611cff90613065565b80601f0160208091040260200160405190810160405280929190818152602001828054611d2b90613065565b8015611d785780601f10611d4d57610100808354040283529160200191611d78565b820191906000526020600020905b815481529060010190602001808311611d5b57829003601f168201915b505050505090506000611d89612344565b9050805160001415611d9c575092915050565b815115611dce578082604051602001611db6929190612dda565b60405160208183030381529060405292505050919050565b6117ae84612353565b6000610786825490565b6000818152600183016020526040812054611e2857508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610786565b506000610786565b60006001600160e01b031982166380ac58cd60e01b1480611e6157506001600160e01b03198216635b5e139f60e01b145b8061078657506107868261241d565b6109bc838383612442565b60606000611e8a836002612fec565b611e95906002612fc0565b67ffffffffffffffff811115611ead57611ead613127565b6040519080825280601f01601f191660200182016040528015611ed7576020820181803683370190505b509050600360fc1b81600081518110611ef257611ef2613111565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611f2157611f21613111565b60200101906001600160f81b031916908160001a9053506000611f45846002612fec565b611f50906001612fc0565b90505b6001811115611fc8576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611f8457611f84613111565b1a60f81b828281518110611f9a57611f9a613111565b60200101906001600160f81b031916908160001a90535060049490941c93611fc18161304e565b9050611f53565b5083156110995760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610886565b6120218282611108565b15610a135760008281526002602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000611099836001600160a01b0384166124fa565b61209c816125ed565b6000818152600e6020526040902080546120b590613065565b159050610c24576000818152600e60205260408120610c2491612a17565b60008260000182815481106120ea576120ea613111565b9060005260206000200154905092915050565b6000806000547f000000000000000000000000000000000000000000000000000000000000000061212e919061300b565b905060008060008361213e612694565b61214891906130bb565b905060016000612158828761300b565b815260200190815260200160002054600014156121815761217a60018561300b565b92506121a1565b6001600061218f828761300b565b81526020019081526020016000205492505b6000818152600160205260409020546121cd5760008181526001602052604090208390559050806121e4565b600081815260016020526040902080549084905591505b6000805490806121f3836130a0565b9091555061222390507f000000000000000000000000000000000000000000000000000000000000000083612fc0565b61222e906001612fc0565b94505050505090565b60006001600160a01b0384163b1561233957604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061227b903390899088908890600401612e7e565b602060405180830381600087803b15801561229557600080fd5b505af19250505080156122c5575060408051601f3d908101601f191682019092526122c291810190612d15565b60015b61231f573d8080156122f3576040519150601f19603f3d011682016040523d82523d6000602084013e6122f8565b606091505b5080516123175760405162461bcd60e51b815260040161088690612ece565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506117ae565b506001949350505050565b60606010805461079b90613065565b606061235e826115b6565b6123c25760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610886565b60006123cc612344565b905060008151116123ec5760405180602001604052806000815250611099565b806123f6846126d0565b604051602001612407929190612dda565b6040516020818303038152906040529392505050565b60006001600160e01b03198216635a05180f60e01b14806107865750610786826127ce565b6001600160a01b03831661249d5761249881600c80546000838152600d60205260408120829055600182018355919091527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70155565b6124c0565b816001600160a01b0316836001600160a01b0316146124c0576124c08382612803565b6001600160a01b0382166124d7576109bc816128a0565b826001600160a01b0316826001600160a01b0316146109bc576109bc828261294f565b600081815260018301602052604081205480156125e357600061251e60018361300b565b85549091506000906125329060019061300b565b905081811461259757600086600001828154811061255257612552613111565b906000526020600020015490508087600001848154811061257557612575613111565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806125a8576125a86130fb565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610786565b6000915050610786565b60006125f882610f83565b905061260681600084611e70565b6126116000836115d3565b6001600160a01b038116600090815260076020526040812080546001929061263a90849061300b565b909155505060008281526006602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600044426040516020016126b2929190918252602082015260400190565b6040516020818303038152906040528051906020012060001c905090565b6060816126f45750506040805180820190915260018152600360fc1b602082015290565b8160005b811561271e5780612708816130a0565b91506127179050600a83612fd8565b91506126f8565b60008167ffffffffffffffff81111561273957612739613127565b6040519080825280601f01601f191660200182016040528015612763576020820181803683370190505b5090505b84156117ae5761277860018361300b565b9150612785600a866130bb565b612790906030612fc0565b60f81b8183815181106127a5576127a5613111565b60200101906001600160f81b031916908160001a9053506127c7600a86612fd8565b9450612767565b60006001600160e01b03198216637965db0b60e01b148061078657506301ffc9a760e01b6001600160e01b0319831614610786565b6000600161281084610ffa565b61281a919061300b565b6000838152600b602052604090205490915080821461286d576001600160a01b0384166000908152600a602090815260408083208584528252808320548484528184208190558352600b90915290208190555b506000918252600b602090815260408084208490556001600160a01b039094168352600a81528383209183525290812055565b600c546000906128b29060019061300b565b6000838152600d6020526040812054600c80549394509092849081106128da576128da613111565b9060005260206000200154905080600c83815481106128fb576128fb613111565b6000918252602080832090910192909255828152600d9091526040808220849055858252812055600c805480612933576129336130fb565b6001900381819060005260206000200160009055905550505050565b600061295a83610ffa565b6001600160a01b039093166000908152600a602090815260408083208684528252808320859055938252600b9052919091209190915550565b82805461299f90613065565b90600052602060002090601f0160209004810192826129c15760008555612a07565b82601f106129da57805160ff1916838001178555612a07565b82800160010185558215612a07579182015b82811115612a075782518255916020019190600101906129ec565b50612a13929150612a4d565b5090565b508054612a2390613065565b6000825580601f10612a33575050565b601f016020900490600052602060002090810190610c2491905b5b80821115612a135760008155600101612a4e565b600067ffffffffffffffff80841115612a7d57612a7d613127565b604051601f8501601f19908116603f01168101908282118183101715612aa557612aa5613127565b81604052809350858152868686011115612abe57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114612aef57600080fd5b919050565b80358015158114612aef57600080fd5b600082601f830112612b1557600080fd5b61109983833560208501612a62565b600060208284031215612b3657600080fd5b61109982612ad8565b60008060408385031215612b5257600080fd5b612b5b83612ad8565b9150612b6960208401612ad8565b90509250929050565b600080600060608486031215612b8757600080fd5b612b9084612ad8565b9250612b9e60208501612ad8565b9150604084013590509250925092565b60008060008060808587031215612bc457600080fd5b612bcd85612ad8565b9350612bdb60208601612ad8565b925060408501359150606085013567ffffffffffffffff811115612bfe57600080fd5b8501601f81018713612c0f57600080fd5b612c1e87823560208401612a62565b91505092959194509250565b60008060408385031215612c3d57600080fd5b612c4683612ad8565b9150612b6960208401612af4565b60008060408385031215612c6757600080fd5b612c7083612ad8565b946020939093013593505050565b60008060408385031215612c9157600080fd5b612c4683612af4565b600060208284031215612cac57600080fd5b5035919050565b60008060408385031215612cc657600080fd5b82359150612b6960208401612ad8565b60008060408385031215612ce957600080fd5b50508035926020909101359150565b600060208284031215612d0a57600080fd5b81356110998161313d565b600060208284031215612d2757600080fd5b81516110998161313d565b600060208284031215612d4457600080fd5b813567ffffffffffffffff811115612d5b57600080fd5b6117ae84828501612b04565b60008060408385031215612d7a57600080fd5b82359150602083013567ffffffffffffffff811115612d9857600080fd5b612da485828601612b04565b9150509250929050565b60008151808452612dc6816020860160208601613022565b601f01601f19169290920160200192915050565b60008351612dec818460208801613022565b835190830190612e00818360208801613022565b01949350505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612e41816017850160208801613022565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351612e72816028840160208801613022565b01602801949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612eb190830184612dae565b9695505050505050565b6020815260006110996020830184612dae565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252602f908201527f4d75737420686176652061646d696e20726f6c6520746f206368616e6765207460408201526e6865206d6178207175616e7469747960881b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008219821115612fd357612fd36130cf565b500190565b600082612fe757612fe76130e5565b500490565b6000816000190483118215151615613006576130066130cf565b500290565b60008282101561301d5761301d6130cf565b500390565b60005b8381101561303d578181015183820152602001613025565b838111156113725750506000910152565b60008161305d5761305d6130cf565b506000190190565b600181811c9082168061307957607f821691505b6020821081141561309a57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156130b4576130b46130cf565b5060010190565b6000826130ca576130ca6130e5565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610c2457600080fdfea2646970667358221220ac256a9ed061c0d05e2c67a99edffc4c7e81d745e1ee486d276880dc8d99ccef64736f6c634300080700330000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000056bc75e2d6310000000000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000000500000000000000000000000006dd96c7378b697d709ab7fa438793a33128edeb9000000000000000000000000a34dc0850ef1600b10eec90854e0b61719d552c9000000000000000000000000000000000000000000000000000000000000000e4d6f6f6e4d6173746572734e4654000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b4d4f4f4e4d415354455253000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005768747470733a2f2f6d6f6f6e6d6173746572732e6d7970696e6174612e636c6f75642f697066732f516d507538475466347238556e705a6171314c5567617a4e7150744d76474a69575044717266447965643839596d2f000000000000000000
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000056bc75e2d6310000000000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000000500000000000000000000000006dd96c7378b697d709ab7fa438793a33128edeb9000000000000000000000000a34dc0850ef1600b10eec90854e0b61719d552c9000000000000000000000000000000000000000000000000000000000000000e4d6f6f6e4d6173746572734e4654000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b4d4f4f4e4d415354455253000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005768747470733a2f2f6d6f6f6e6d6173746572732e6d7970696e6174612e636c6f75642f697066732f516d507538475466347238556e705a6171314c5567617a4e7150744d76474a69575044717266447965643839596d2f000000000000000000
-----Decoded View---------------
Arg [0] : name (string): MoonMastersNFT
Arg [1] : symbol (string): MOONMASTERS
Arg [2] : baseTokenURI (string): https://moonmasters.mypinata.cloud/ipfs/QmPu8GTf4r8UnpZaq1LUgazNqPtMvGJiWPDqrfDyed89Ym/
Arg [3] : mintPrice (uint256): 100000000000000000000
Arg [4] : max (uint256): 500
Arg [5] : maxwl (uint256): 80
Arg [6] : wallet (address): 0x6dd96c7378b697d709ab7fa438793a33128edeb9
Arg [7] : admin (address): 0xa34dc0850ef1600b10eec90854e0b61719d552c9
-----Encoded View---------------
16 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [3] : 0000000000000000000000000000000000000000000000056bc75e2d63100000
Arg [4] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000050
Arg [6] : 0000000000000000000000006dd96c7378b697d709ab7fa438793a33128edeb9
Arg [7] : 000000000000000000000000a34dc0850ef1600b10eec90854e0b61719d552c9
Arg [8] : 000000000000000000000000000000000000000000000000000000000000000e
Arg [9] : 4d6f6f6e4d6173746572734e4654000000000000000000000000000000000000
Arg [10] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [11] : 4d4f4f4e4d415354455253000000000000000000000000000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000057
Arg [13] : 68747470733a2f2f6d6f6f6e6d6173746572732e6d7970696e6174612e636c6f
Arg [14] : 75642f697066732f516d507538475466347238556e705a6171314c5567617a4e
Arg [15] : 7150744d76474a69575044717266447965643839596d2f000000000000000000
Deployed ByteCode Sourcemap
716:5650:19:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6165:198;;;;;;;;;;-1:-1:-1;6165:198:19;;;;;:::i;:::-;;:::i;:::-;;;8204:14:22;;8197:22;8179:41;;8167:2;8152:18;6165:198:19;;;;;;;;2473:98:4;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;3984:217::-;;;;;;;;;;-1:-1:-1;3984:217:4;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;7502:32:22;;;7484:51;;7472:2;7457:18;3984:217:4;7338:203:22;3522:401:4;;;;;;;;;;-1:-1:-1;3522:401:4;;;;;:::i;:::-;;:::i;:::-;;2233:192:19;;;;;;;;;;-1:-1:-1;2233:192:19;;;;;:::i;:::-;;:::i;1615:111:8:-;;;;;;;;;;-1:-1:-1;1702:10:8;:17;1615:111;;;8377:25:22;;;8365:2;8350:18;1615:111:8;8231:177:22;2739:166:19;;;;;;;;;;-1:-1:-1;2739:166:19;;;;;:::i;:::-;;:::i;4711:330:4:-;;;;;;;;;;-1:-1:-1;4711:330:4;;;;;:::i;:::-;;:::i;3977:121:0:-;;;;;;;;;;-1:-1:-1;3977:121:0;;;;;:::i;:::-;4043:7;4069:12;;;:6;:12;;;;;:22;;;;3977:121;4348:145;;;;;;;;;;-1:-1:-1;4348:145:0;;;;;:::i;:::-;;:::i;1291:253:8:-;;;;;;;;;;-1:-1:-1;1291:253:8;;;;;:::i;:::-;;:::i;3441:69:19:-;;;;;;;;;;-1:-1:-1;3500:4:19;;3441:69;;5365:214:0;;;;;;;;;;-1:-1:-1;5365:214:0;;;;;:::i;:::-;;:::i;3516:85:19:-;;;;;;;;;;-1:-1:-1;3586:9:19;;-1:-1:-1;;;3586:9:19;;;;3516:85;;5107:179:4;;;;;;;;;;-1:-1:-1;5107:179:4;;;;;:::i;:::-;;:::i;5509:152:19:-;;;;;;;;;;-1:-1:-1;5509:152:19;;;;;:::i;:::-;;:::i;4386:834::-;;;;;;;;;;-1:-1:-1;4386:834:19;;;;;:::i;:::-;;:::i;3607:98::-;;;;;;;;;;-1:-1:-1;3681:18:19;;-1:-1:-1;;;3681:18:19;;;;3607:98;;1798:230:8;;;;;;;;;;-1:-1:-1;1798:230:8;;;;;:::i;:::-;;:::i;2064:163:19:-;;;;;;;;;;-1:-1:-1;2064:163:19;;;;;:::i;:::-;;:::i;2176:235:4:-;;;;;;;;;;-1:-1:-1;2176:235:4;;;;;:::i;:::-;;:::i;1914:205::-;;;;;;;;;;-1:-1:-1;1914:205:4;;;;;:::i;:::-;;:::i;1416:143:1:-;;;;;;;;;;-1:-1:-1;1416:143:1;;;;;:::i;:::-;;:::i;2562:171:19:-;;;;;;;;;;-1:-1:-1;2562:171:19;;;;;:::i;:::-;;:::i;2894:137:0:-;;;;;;;;;;-1:-1:-1;2894:137:0;;;;;:::i;:::-;;:::i;2635:102:4:-;;;;;;;;;;;;;:::i;3362:73:19:-;;;;;;;;;;-1:-1:-1;3423:6:19;;3362:73;;3835:545;;;;;;:::i;:::-;;:::i;2012:49:0:-;;;;;;;;;;-1:-1:-1;2012:49:0;2057:4;2012:49;;4268:153:4;;;;;;;;;;-1:-1:-1;4268:153:4;;;;;:::i;:::-;;:::i;872:41:19:-;;;;;;;;;;-1:-1:-1;872:41:19;;;;;;5352:320:4;;;;;;;;;;-1:-1:-1;5352:320:4;;;;;:::i;:::-;;:::i;5808:160:19:-;;;;;;;;;;-1:-1:-1;5808:160:19;;;;;:::i;:::-;;:::i;1727:132:1:-;;;;;;;;;;-1:-1:-1;1727:132:1;;;;;:::i;:::-;;:::i;5403:100:19:-;;;;;;;;;;-1:-1:-1;5403:100:19;;;;;:::i;:::-;-1:-1:-1;;;;;5482:15:19;5462:4;5482:15;;;:9;:15;;;;;;;5403:100;4727:147:0;;;;;;;;;;-1:-1:-1;4727:147:0;;;;;:::i;:::-;;:::i;3113:243:19:-;;;;;;;;;;-1:-1:-1;3113:243:19;;;;;:::i;:::-;;:::i;5226:171::-;;;;;;;;;;-1:-1:-1;5226:171:19;;;;;:::i;:::-;;:::i;2911:196::-;;;;;;;;;;-1:-1:-1;2911:196:19;;;;;:::i;:::-;;:::i;4487:162:4:-;;;;;;;;;;-1:-1:-1;4487:162:4;;;;;:::i;:::-;-1:-1:-1;;;;;4607:25:4;;;4584:4;4607:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;4487:162;6165:198:19;6301:4;6321:36;6345:11;6321:23;:36::i;:::-;6314:43;6165:198;-1:-1:-1;;6165:198:19:o;2473:98:4:-;2527:13;2559:5;2552:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2473:98;:::o;3984:217::-;4060:7;4087:16;4095:7;4087;:16::i;:::-;4079:73;;;;-1:-1:-1;;;4079:73:4;;16913:2:22;4079:73:4;;;16895:21:22;16952:2;16932:18;;;16925:30;16991:34;16971:18;;;16964:62;-1:-1:-1;;;17042:18:22;;;17035:42;17094:19;;4079:73:4;;;;;;;;;-1:-1:-1;4170:24:4;;;;:15;:24;;;;;;-1:-1:-1;;;;;4170:24:4;;3984:217::o;3522:401::-;3602:13;3618:23;3633:7;3618:14;:23::i;:::-;3602:39;;3665:5;-1:-1:-1;;;;;3659:11:4;:2;-1:-1:-1;;;;;3659:11:4;;;3651:57;;;;-1:-1:-1;;;3651:57:4;;18513:2:22;3651:57:4;;;18495:21:22;18552:2;18532:18;;;18525:30;18591:34;18571:18;;;18564:62;-1:-1:-1;;;18642:18:22;;;18635:31;18683:19;;3651:57:4;18311:397:22;3651:57:4;719:10:13;-1:-1:-1;;;;;3740:21:4;;;;:62;;-1:-1:-1;3765:37:4;3782:5;719:10:13;4487:162:4;:::i;3765:37::-;3719:165;;;;-1:-1:-1;;;3719:165:4;;13429:2:22;3719:165:4;;;13411:21:22;13468:2;13448:18;;;13441:30;13507:34;13487:18;;;13480:62;13578:26;13558:18;;;13551:54;13622:19;;3719:165:4;13227:420:22;3719:165:4;3895:21;3904:2;3908:7;3895:8;:21::i;:::-;3592:331;3522:401;;:::o;2233:192:19:-;2320:41;2057:4:0;719:10:13;2894:137:0;:::i;2320:41:19:-;2312:68;;;;-1:-1:-1;;;2312:68:19;;11145:2:22;2312:68:19;;;11127:21:22;11184:2;11164:18;;;11157:30;-1:-1:-1;;;11203:18:22;;;11196:44;11257:18;;2312:68:19;10943:338:22;2312:68:19;2387:32;2400:7;2409:9;2387:12;:32::i;:::-;2233:192;;:::o;2739:166::-;2789:41;2057:4:0;719:10:13;2894:137:0;:::i;2789:41:19:-;2781:101;;;;-1:-1:-1;;;2781:101:19;;;;;;;:::i;:::-;2889:4;:10;2739:166::o;4711:330:4:-;4900:41;719:10:13;4933:7:4;4900:18;:41::i;:::-;4892:103;;;;-1:-1:-1;;;4892:103:4;;;;;;;:::i;:::-;5006:28;5016:4;5022:2;5026:7;5006:9;:28::i;4348:145:0:-;4043:7;4069:12;;;:6;:12;;;;;:22;;;2490:30;2501:4;719:10:13;2490::0;:30::i;:::-;4461:25:::1;4472:4;4478:7;4461:10;:25::i;1291:253:8:-:0;1388:7;1423:23;1440:5;1423:16;:23::i;:::-;1415:5;:31;1407:87;;;;-1:-1:-1;;;1407:87:8;;9605:2:22;1407:87:8;;;9587:21:22;9644:2;9624:18;;;9617:30;9683:34;9663:18;;;9656:62;-1:-1:-1;;;9734:18:22;;;9727:41;9785:19;;1407:87:8;9403:407:22;1407:87:8;-1:-1:-1;;;;;;1511:19:8;;;;;;;;:12;:19;;;;;;;;:26;;;;;;;;;1291:253::o;5365:214:0:-;-1:-1:-1;;;;;5460:23:0;;719:10:13;5460:23:0;5452:83;;;;-1:-1:-1;;;5452:83:0;;21914:2:22;5452:83:0;;;21896:21:22;21953:2;21933:18;;;21926:30;21992:34;21972:18;;;21965:62;-1:-1:-1;;;22043:18:22;;;22036:45;22098:19;;5452:83:0;21712:411:22;5452:83:0;5546:26;5558:4;5564:7;5546:11;:26::i;5107:179:4:-;5240:39;5257:4;5263:2;5267:7;5240:39;;;;;;;;;;;;:16;:39::i;5509:152:19:-;5561:39;5580:10;5592:7;5561:18;:39::i;:::-;5553:81;;;;-1:-1:-1;;;5553:81:19;;21210:2:22;5553:81:19;;;21192:21:22;21249:2;21229:18;;;21222:30;21288:31;21268:18;;;21261:59;21337:18;;5553:81:19;21008:353:22;5553:81:19;5641:14;5647:7;5641:5;:14::i;:::-;5509:152;:::o;4386:834::-;4436:11;4450:13;1702:10:8;:17;;1615:111;4450:13:19;4478:18;;4436:27;;-1:-1:-1;;;;4478:18:19;;;;:26;;4500:4;4478:26;4470:56;;;;-1:-1:-1;;;4470:56:19;;21568:2:22;4470:56:19;;;21550:21:22;21607:2;21587:18;;;21580:30;-1:-1:-1;;;21626:18:22;;;21619:47;21683:18;;4470:56:19;21366:341:22;4470:56:19;4572:13;;4541:28;4558:10;4541:16;:28::i;:::-;:44;4533:79;;;;-1:-1:-1;;;4533:79:19;;20154:2:22;4533:79:19;;;20136:21:22;20193:2;20173:18;;;20166:30;-1:-1:-1;;;20212:18:22;;;20205:52;20274:18;;4533:79:19;19952:346:22;4533:79:19;4637:10;4651:1;4627:21;;;:9;:21;;;;;;4619:54;;;;-1:-1:-1;;;4619:54:19;;15435:2:22;4619:54:19;;;15417:21:22;15474:2;15454:18;;;15447:30;-1:-1:-1;;;15493:18:22;;;15486:46;15549:18;;4619:54:19;15233:340:22;4619:54:19;4708:10;4698:21;;;;:9;:21;;;;;;4688:31;;;4680:68;;;;-1:-1:-1;;;4680:68:19;;13076:2:22;4680:68:19;;;13058:21:22;13115:2;13095:18;;;13088:30;13154:26;13134:18;;;13127:54;13198:18;;4680:68:19;12874:348:22;4680:68:19;4772:4;;4763:6;:13;4755:51;;;;-1:-1:-1;;;4755:51:19;;16141:2:22;4755:51:19;;;16123:21:22;16180:2;16160:18;;;16153:30;16219:27;16199:18;;;16192:55;16264:18;;4755:51:19;15939:349:22;4755:51:19;4907:6;4903:312;4923:6;4919:1;:10;4903:312;;;4984:6;;4953:17;918:14:14;4953:37:19;;4945:76;;;;-1:-1:-1;;;4945:76:19;;20855:2:22;4945:76:19;;;20837:21:22;20894:2;20874:18;;;20867:30;20933:28;20913:18;;;20906:56;20979:18;;4945:76:19;20653:350:22;4945:76:19;5030:46;5036:10;5048:27;:17;918:14:14;;827:112;5048:27:19;5030:5;:46::i;:::-;5085:29;:17;1032:19:14;;1050:1;1032:19;;;945:123;5085:29:19;5192:10;5182:21;;;;:9;:21;;;;;;:25;;5206:1;;5182:25;:::i;:::-;5168:10;5158:21;;;;:9;:21;;;;;:49;4931:3;;;;:::i;:::-;;;;4903:312;;1798:230:8;1873:7;1908:30;1702:10;:17;;1615:111;1908:30;1900:5;:38;1892:95;;;;-1:-1:-1;;;1892:95:8;;19741:2:22;1892:95:8;;;19723:21:22;19780:2;19760:18;;;19753:30;19819:34;19799:18;;;19792:62;-1:-1:-1;;;19870:18:22;;;19863:42;19922:19;;1892:95:8;19539:408:22;1892:95:8;2004:10;2015:5;2004:17;;;;;;;;:::i;:::-;;;;;;;;;1997:24;;1798:230;;;:::o;2064:163:19:-;2131:41;2057:4:0;719:10:13;2894:137:0;:::i;2131:41:19:-;2123:68;;;;-1:-1:-1;;;2123:68:19;;11145:2:22;2123:68:19;;;11127:21:22;11184:2;11164:18;;;11157:30;-1:-1:-1;;;11203:18:22;;;11196:44;11257:18;;2123:68:19;10943:338:22;2123:68:19;2198:23;;;;:13;;:23;;;;;:::i;2176:235:4:-;2248:7;2283:16;;;:7;:16;;;;;;-1:-1:-1;;;;;2283:16:4;2317:19;2309:73;;;;-1:-1:-1;;;2309:73:4;;14265:2:22;2309:73:4;;;14247:21:22;14304:2;14284:18;;;14277:30;14343:34;14323:18;;;14316:62;-1:-1:-1;;;14394:18:22;;;14387:39;14443:19;;2309:73:4;14063:405:22;1914:205:4;1986:7;-1:-1:-1;;;;;2013:19:4;;2005:74;;;;-1:-1:-1;;;2005:74:4;;13854:2:22;2005:74:4;;;13836:21:22;13893:2;13873:18;;;13866:30;13932:34;13912:18;;;13905:62;-1:-1:-1;;;13983:18:22;;;13976:40;14033:19;;2005:74:4;13652:406:22;2005:74:4;-1:-1:-1;;;;;;2096:16:4;;;;;:9;:16;;;;;;;1914:205::o;1416:143:1:-;1498:7;1524:18;;;:12;:18;;;;;:28;;1546:5;1524:21;:28::i;:::-;1517:35;1416:143;-1:-1:-1;;;1416:143:1:o;2562:171:19:-;2620:41;2057:4:0;719:10:13;2894:137:0;:::i;2620:41:19:-;2612:90;;;;-1:-1:-1;;;2612:90:19;;9200:2:22;2612:90:19;;;9182:21:22;9239:2;9219:18;;;9212:30;9278:34;9258:18;;;9251:62;-1:-1:-1;;;9329:18:22;;;9322:34;9373:19;;2612:90:19;8998:400:22;2612:90:19;2709:6;:18;2562:171::o;2894:137:0:-;2972:4;2995:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;2995:29:0;;;;;;;;;;;;;;;2894:137::o;2635:102:4:-;2691:13;2723:7;2716:14;;;;;:::i;3835:545:19:-;3884:11;3898:13;1702:10:8;:17;;1615:111;3898:13:19;3884:27;;3936:1;3926:6;:11;;3918:45;;;;-1:-1:-1;;;3918:45:19;;20505:2:22;3918:45:19;;;20487:21:22;20544:2;20524:18;;;20517:30;-1:-1:-1;;;20563:18:22;;;20556:51;20624:18;;3918:45:19;20303:345:22;3918:45:19;4009:13;;3978:28;3995:10;3978:16;:28::i;:::-;:44;3970:79;;;;-1:-1:-1;;;3970:79:19;;20154:2:22;3970:79:19;;;20136:21:22;20193:2;20173:18;;;20166:30;-1:-1:-1;;;20212:18:22;;;20205:52;20274:18;;3970:79:19;19952:346:22;3970:79:19;4064:9;;-1:-1:-1;;;4064:9:19;;;;:17;;4077:4;4064:17;4056:47;;;;-1:-1:-1;;;4056:47:19;;21568:2:22;4056:47:19;;;21550:21:22;21607:2;21587:18;;;21580:30;-1:-1:-1;;;21626:18:22;;;21619:47;21683:18;;4056:47:19;21366:341:22;4056:47:19;4138:6;4131;;:13;;;;:::i;:::-;4118:9;:26;4110:62;;;;-1:-1:-1;;;4110:62:19;;10793:2:22;4110:62:19;;;10775:21:22;10832:2;10812:18;;;10805:30;10871:25;10851:18;;;10844:53;10914:18;;4110:62:19;10591:347:22;4110:62:19;4206:4;;4187:15;4196:6;4187;:15;:::i;:::-;:23;;4179:68;;;;-1:-1:-1;;;4179:68:19;;17326:2:22;4179:68:19;;;17308:21:22;;;17345:18;;;17338:30;17404:34;17384:18;;;17377:62;17456:18;;4179:68:19;17124:356:22;4179:68:19;4307:24;4320:10;4307:12;:24::i;:::-;4346:7;;4338:36;;-1:-1:-1;;;;;4346:7:19;;;;4364:9;4338:36;;;;;4346:7;4338:36;4346:7;4338:36;4364:9;4346:7;4338:36;;;;;;;;;;;;;;;;;;;4268:153:4;4362:52;719:10:13;4395:8:4;4405;4362:18;:52::i;5352:320::-;5521:41;719:10:13;5554:7:4;5521:18;:41::i;:::-;5513:103;;;;-1:-1:-1;;;5513:103:4;;;;;;;:::i;:::-;5626:39;5640:4;5646:2;5650:7;5659:5;5626:13;:39::i;:::-;5352:320;;;;:::o;5808:160:19:-;5899:13;5928:34;5954:7;5928:25;:34::i;1727:132:1:-;1799:7;1825:18;;;:12;:18;;;;;:27;;:25;:27::i;4727:147:0:-;4043:7;4069:12;;;:6;:12;;;;;:22;;;2490:30;2501:4;719:10:13;2490::0;:30::i;:::-;4841:26:::1;4853:4;4859:7;4841:11;:26::i;3113:243:19:-:0;3193:41;2057:4:0;719:10:13;2894:137:0;:::i;3193:41:19:-;3185:93;;;;-1:-1:-1;;;3185:93:19;;19333:2:22;3185:93:19;;;19315:21:22;19372:2;19352:18;;;19345:30;19411:34;19391:18;;;19384:62;-1:-1:-1;;;19462:18:22;;;19455:37;19509:19;;3185:93:19;19131:403:22;3185:93:19;3285:9;:20;;-1:-1:-1;;;;3312:38:19;-1:-1:-1;;;3285:20:19;;;;;;;-1:-1:-1;;;;3312:38:19;;;;;-1:-1:-1;;;3312:38:19;;;;;;;;;;3113:243::o;5226:171::-;5298:41;2057:4:0;719:10:13;2894:137:0;:::i;5298:41:19:-;5290:70;;;;-1:-1:-1;;;5290:70:19;;15090:2:22;5290:70:19;;;15072:21:22;15129:2;15109:18;;;15102:30;-1:-1:-1;;;15148:18:22;;;15141:46;15204:18;;5290:70:19;14888:340:22;5290:70:19;-1:-1:-1;;;;;5367:15:19;;;;;;;:9;:15;;;;;:24;5226:171::o;2911:196::-;2976:41;2057:4:0;719:10:13;2894:137:0;:::i;2976:41:19:-;2968:101;;;;-1:-1:-1;;;2968:101:19;;;;;;;:::i;:::-;3076:13;:25;2911:196::o;945:123:14:-;1032:19;;1050:1;1032:19;;;945:123::o;6822:233:0:-;6905:22;6913:4;6919:7;6905;:22::i;:::-;6900:149;;6943:12;;;;:6;:12;;;;;;;;-1:-1:-1;;;;;6943:29:0;;;;;;;;;:36;;-1:-1:-1;;6943:36:0;6975:4;6943:36;;;7025:12;719:10:13;;640:96;7025:12:0;-1:-1:-1;;;;;6998:40:0;7016:7;-1:-1:-1;;;;;6998:40:0;7010:4;6998:40;;;;;;;;;;6822:233;;:::o;7612:150:18:-;7682:4;7705:50;7710:3;-1:-1:-1;;;;;7730:23:18;;7705:4;:50::i;990:222:8:-;1092:4;-1:-1:-1;;;;;;1115:50:8;;-1:-1:-1;;;1115:50:8;;:90;;;1169:36;1193:11;1169:23;:36::i;7144:125:4:-;7209:4;7232:16;;;:7;:16;;;;;;-1:-1:-1;;;;;7232:16:4;:30;;;7144:125::o;10995:171::-;11069:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;11069:29:4;-1:-1:-1;;;;;11069:29:4;;;;;;;;:24;;11122:23;11069:24;11122:14;:23::i;:::-;-1:-1:-1;;;;;11113:46:4;;;;;;;;;;;10995:171;;:::o;1277:214:9:-;1376:16;1384:7;1376;:16::i;:::-;1368:75;;;;-1:-1:-1;;;1368:75:9;;14675:2:22;1368:75:9;;;14657:21:22;14714:2;14694:18;;;14687:30;14753:34;14733:18;;;14726:62;-1:-1:-1;;;14804:18:22;;;14797:44;14858:19;;1368:75:9;14473:410:22;1368:75:9;1453:19;;;;:10;:19;;;;;;;;:31;;;;;;;;:::i;7427:344:4:-;7520:4;7544:16;7552:7;7544;:16::i;:::-;7536:73;;;;-1:-1:-1;;;7536:73:4;;12247:2:22;7536:73:4;;;12229:21:22;12286:2;12266:18;;;12259:30;12325:34;12305:18;;;12298:62;-1:-1:-1;;;12376:18:22;;;12369:42;12428:19;;7536:73:4;12045:408:22;7536:73:4;7619:13;7635:23;7650:7;7635:14;:23::i;:::-;7619:39;;7687:5;-1:-1:-1;;;;;7676:16:4;:7;-1:-1:-1;;;;;7676:16:4;;:51;;;;7720:7;-1:-1:-1;;;;;7696:31:4;:20;7708:7;7696:11;:20::i;:::-;-1:-1:-1;;;;;7696:31:4;;7676:51;:87;;;-1:-1:-1;;;;;;4607:25:4;;;4584:4;4607:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;7731:32;7668:96;7427:344;-1:-1:-1;;;;7427:344:4:o;10324:560::-;10478:4;-1:-1:-1;;;;;10451:31:4;:23;10466:7;10451:14;:23::i;:::-;-1:-1:-1;;;;;10451:31:4;;10443:85;;;;-1:-1:-1;;;10443:85:4;;17687:2:22;10443:85:4;;;17669:21:22;17726:2;17706:18;;;17699:30;17765:34;17745:18;;;17738:62;-1:-1:-1;;;17816:18:22;;;17809:39;17865:19;;10443:85:4;17485:405:22;10443:85:4;-1:-1:-1;;;;;10546:16:4;;10538:65;;;;-1:-1:-1;;;10538:65:4;;11488:2:22;10538:65:4;;;11470:21:22;11527:2;11507:18;;;11500:30;11566:34;11546:18;;;11539:62;-1:-1:-1;;;11617:18:22;;;11610:34;11661:19;;10538:65:4;11286:400:22;10538:65:4;10614:39;10635:4;10641:2;10645:7;10614:20;:39::i;:::-;10715:29;10732:1;10736:7;10715:8;:29::i;:::-;-1:-1:-1;;;;;10755:15:4;;;;;;:9;:15;;;;;:20;;10774:1;;10755:15;:20;;10774:1;;10755:20;:::i;:::-;;;;-1:-1:-1;;;;;;;10785:13:4;;;;;;:9;:13;;;;;:18;;10802:1;;10785:13;:18;;10802:1;;10785:18;:::i;:::-;;;;-1:-1:-1;;10813:16:4;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;10813:21:4;-1:-1:-1;;;;;10813:21:4;;;;;;;;;10850:27;;10813:16;;10850:27;;;;;;;10324:560;;;:::o;3312:484:0:-;3392:22;3400:4;3406:7;3392;:22::i;:::-;3387:403;;3575:41;3603:7;-1:-1:-1;;;;;3575:41:0;3613:2;3575:19;:41::i;:::-;3687:38;3715:4;3722:2;3687:19;:38::i;:::-;3482:265;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;3482:265:0;;;;;;;;;;-1:-1:-1;;;3430:349:0;;;;;;;:::i;1947:166:1:-;2034:31;2051:4;2057:7;2034:16;:31::i;:::-;2075:18;;;;:12;:18;;;;;:31;;2098:7;2075:22;:31::i;2202:171::-;2290:32;2308:4;2314:7;2290:17;:32::i;:::-;2332:18;;;;:12;:18;;;;;:34;;2358:7;2332:25;:34::i;5667:135:19:-;5765:31;5788:7;5765:22;:31::i;9063:372:4:-;-1:-1:-1;;;;;9142:16:4;;9134:61;;;;-1:-1:-1;;;9134:61:4;;15780:2:22;9134:61:4;;;15762:21:22;;;15799:18;;;15792:30;15858:34;15838:18;;;15831:62;15910:18;;9134:61:4;15578:356:22;9134:61:4;9214:16;9222:7;9214;:16::i;:::-;9213:17;9205:58;;;;-1:-1:-1;;;9205:58:4;;10436:2:22;9205:58:4;;;10418:21:22;10475:2;10455:18;;;10448:30;10514;10494:18;;;10487:58;10562:18;;9205:58:4;10234:352:22;9205:58:4;9274:45;9303:1;9307:2;9311:7;9274:20;:45::i;:::-;-1:-1:-1;;;;;9330:13:4;;;;;;:9;:13;;;;;:18;;9347:1;;9330:13;:18;;9347:1;;9330:18;:::i;:::-;;;;-1:-1:-1;;9358:16:4;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;9358:21:4;-1:-1:-1;;;;;9358:21:4;;;;;;;;9395:33;;9358:16;;;9395:33;;9358:16;;9395:33;9063:372;;:::o;8870:156:18:-;8944:7;8994:22;8998:3;9010:5;8994:3;:22::i;3711:118:19:-;3763:12;3778:18;:16;:18::i;:::-;3763:33;;3805:18;3811:2;3815:7;3805:5;:18::i;11301:307:4:-;11451:8;-1:-1:-1;;;;;11442:17:4;:5;-1:-1:-1;;;;;11442:17:4;;;11434:55;;;;-1:-1:-1;;;11434:55:4;;11893:2:22;11434:55:4;;;11875:21:22;11932:2;11912:18;;;11905:30;11971:27;11951:18;;;11944:55;12016:18;;11434:55:4;11691:349:22;11434:55:4;-1:-1:-1;;;;;11499:25:4;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;11499:46:4;;;;;;;;;;11560:41;;8179::22;;;11560::4;;8152:18:22;11560:41:4;;;;;;;11301:307;;;:::o;6534:::-;6685:28;6695:4;6701:2;6705:7;6685:9;:28::i;:::-;6731:48;6754:4;6760:2;6764:7;6773:5;6731:22;:48::i;:::-;6723:111;;;;-1:-1:-1;;;6723:111:4;;;;;;;:::i;467:663:9:-;540:13;573:16;581:7;573;:16::i;:::-;565:78;;;;-1:-1:-1;;;565:78:9;;16495:2:22;565:78:9;;;16477:21:22;16534:2;16514:18;;;16507:30;16573:34;16553:18;;;16546:62;-1:-1:-1;;;16624:18:22;;;16617:47;16681:19;;565:78:9;16293:413:22;565:78:9;654:23;680:19;;;:10;:19;;;;;654:45;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;709:18;730:10;:8;:10::i;:::-;709:31;;819:4;813:18;835:1;813:23;809:70;;;-1:-1:-1;859:9:9;467:663;-1:-1:-1;;467:663:9:o;809:70::-;981:23;;:27;977:106;;1055:4;1061:9;1038:33;;;;;;;;;:::i;:::-;;;;;;;;;;;;;1024:48;;;;467:663;;;:::o;977:106::-;1100:23;1115:7;1100:14;:23::i;8413:115:18:-;8476:7;8502:19;8510:3;4028:18;;3946:107;1697:404;1760:4;3834:19;;;:12;;;:19;;;;;;1776:319;;-1:-1:-1;1818:23:18;;;;;;;;:11;:23;;;;;;;;;;;;;1998:18;;1976:19;;;:12;;;:19;;;;;;:40;;;;2030:11;;1776:319;-1:-1:-1;2079:5:18;2072:12;;1555:300:4;1657:4;-1:-1:-1;;;;;;1692:40:4;;-1:-1:-1;;;1692:40:4;;:104;;-1:-1:-1;;;;;;;1748:48:4;;-1:-1:-1;;;1748:48:4;1692:104;:156;;;;1812:36;1836:11;1812:23;:36::i;5976:183:19:-;6108:45;6135:4;6141:2;6145:7;6108:26;:45::i;1588:441:15:-;1663:13;1688:19;1720:10;1724:6;1720:1;:10;:::i;:::-;:14;;1733:1;1720:14;:::i;:::-;1710:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1710:25:15;;1688:47;;-1:-1:-1;;;1745:6:15;1752:1;1745:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;1745:15:15;;;;;;;;;-1:-1:-1;;;1770:6:15;1777:1;1770:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;1770:15:15;;;;;;;;-1:-1:-1;1800:9:15;1812:10;1816:6;1812:1;:10;:::i;:::-;:14;;1825:1;1812:14;:::i;:::-;1800:26;;1795:132;1832:1;1828;:5;1795:132;;;-1:-1:-1;;;1879:5:15;1887:3;1879:11;1866:25;;;;;;;:::i;:::-;;;;1854:6;1861:1;1854:9;;;;;;;;:::i;:::-;;;;:37;-1:-1:-1;;;;;1854:37:15;;;;;;;;-1:-1:-1;1915:1:15;1905:11;;;;;1835:3;;;:::i;:::-;;;1795:132;;;-1:-1:-1;1944:10:15;;1936:55;;;;-1:-1:-1;;;1936:55:15;;8839:2:22;1936:55:15;;;8821:21:22;;;8858:18;;;8851:30;8917:34;8897:18;;;8890:62;8969:18;;1936:55:15;8637:356:22;7180:234:0;7263:22;7271:4;7277:7;7263;:22::i;:::-;7259:149;;;7333:5;7301:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;7301:29:0;;;;;;;;;;:37;;-1:-1:-1;;7301:37:0;;;7357:40;719:10:13;;7301:12:0;;7357:40;;7333:5;7357:40;7180:234;;:::o;7930:156:18:-;8003:4;8026:53;8034:3;-1:-1:-1;;;;;8054:23:18;;8026:7;:53::i;1708:200:9:-;1776:20;1788:7;1776:11;:20::i;:::-;1817:19;;;;:10;:19;;;;;1811:33;;;;;:::i;:::-;:38;;-1:-1:-1;1807:95:9;;1872:19;;;;:10;:19;;;;;1865:26;;;:::i;4395:118:18:-;4462:7;4488:3;:11;;4500:5;4488:18;;;;;;;;:::i;:::-;;;;;;;;;4481:25;;4395:118;;;;:::o;700:805:21:-;754:7;774:13;802:11;;790:9;:23;;;;:::i;:::-;774:39;;824:12;847:14;874:9;903:5;886:14;:12;:14::i;:::-;:22;;;;:::i;:::-;874:34;-1:-1:-1;987:11:21;:22;999:9;987:11;999:5;:9;:::i;:::-;987:22;;;;;;;;;;;;1013:1;987:27;983:138;;;1038:9;1046:1;1038:5;:9;:::i;:::-;1031:16;;983:138;;;1087:11;:22;1099:9;1087:11;1099:5;:9;:::i;:::-;1087:22;;;;;;;;;;;;1080:29;;983:138;1245:14;;;;:11;:14;;;;;;1241:190;;1306:14;;;;:11;:14;;;;;:21;;;1290:1;-1:-1:-1;1290:1:21;1241:190;;;1369:14;;;;:11;:14;;;;;;;1398:21;;;;1369:14;-1:-1:-1;1241:190:21;1441:11;:13;;;:11;:13;;;:::i;:::-;;;;-1:-1:-1;1472:21:21;;-1:-1:-1;1481:12:21;1472:6;:21;:::i;:::-;:25;;1496:1;1472:25;:::i;:::-;1465:32;;;;;;700:805;:::o;12161:778:4:-;12311:4;-1:-1:-1;;;;;12331:13:4;;1087:20:12;1133:8;12327:606:4;;12366:72;;-1:-1:-1;;;12366:72:4;;-1:-1:-1;;;;;12366:36:4;;;;;:72;;719:10:13;;12417:4:4;;12423:7;;12432:5;;12366:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;12366:72:4;;;;;;;;-1:-1:-1;;12366:72:4;;;;;;;;;;;;:::i;:::-;;;12362:519;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;12605:13:4;;12601:266;;12647:60;;-1:-1:-1;;;12647:60:4;;;;;;;:::i;12601:266::-;12819:6;12813:13;12804:6;12800:2;12796:15;12789:38;12362:519;-1:-1:-1;;;;;;12488:51:4;-1:-1:-1;;;12488:51:4;;-1:-1:-1;12481:58:4;;12327:606;-1:-1:-1;12918:4:4;12161:778;;;;;;:::o;1948:110:19:-;2008:13;2039;2032:20;;;;;:::i;2803:329:4:-;2876:13;2909:16;2917:7;2909;:16::i;:::-;2901:76;;;;-1:-1:-1;;;2901:76:4;;18097:2:22;2901:76:4;;;18079:21:22;18136:2;18116:18;;;18109:30;18175:34;18155:18;;;18148:62;-1:-1:-1;;;18226:18:22;;;18219:45;18281:19;;2901:76:4;17895:411:22;2901:76:4;2988:21;3012:10;:8;:10::i;:::-;2988:34;;3063:1;3045:7;3039:21;:25;:86;;;;;;;;;;;;;;;;;3091:7;3100:18;:7;:16;:18::i;:::-;3074:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;3032:93;2803:329;-1:-1:-1;;;2803:329:4:o;619:212:1:-;704:4;-1:-1:-1;;;;;;727:57:1;;-1:-1:-1;;;727:57:1;;:97;;;788:36;812:11;788:23;:36::i;2624:572:8:-;-1:-1:-1;;;;;2823:18:8;;2819:183;;2857:40;2889:7;4005:10;:17;;3978:24;;;;:15;:24;;;;;:44;;;4032:24;;;;;;;;;;;;3902:161;2857:40;2819:183;;;2926:2;-1:-1:-1;;;;;2918:10:8;:4;-1:-1:-1;;;;;2918:10:8;;2914:88;;2944:47;2977:4;2983:7;2944:32;:47::i;:::-;-1:-1:-1;;;;;3015:16:8;;3011:179;;3047:45;3084:7;3047:36;:45::i;3011:179::-;3119:4;-1:-1:-1;;;;;3113:10:8;:2;-1:-1:-1;;;;;3113:10:8;;3109:81;;3139:40;3167:2;3171:7;3139:27;:40::i;2269:1388:18:-;2335:4;2472:19;;;:12;;;:19;;;;;;2506:15;;2502:1149;;2875:21;2899:14;2912:1;2899:10;:14;:::i;:::-;2947:18;;2875:38;;-1:-1:-1;2927:17:18;;2947:22;;2968:1;;2947:22;:::i;:::-;2927:42;;3001:13;2988:9;:26;2984:398;;3034:17;3054:3;:11;;3066:9;3054:22;;;;;;;;:::i;:::-;;;;;;;;;3034:42;;3205:9;3176:3;:11;;3188:13;3176:26;;;;;;;;:::i;:::-;;;;;;;;;;;;:38;;;;3288:23;;;:12;;;:23;;;;;:36;;;2984:398;3460:17;;:3;;:17;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;3552:3;:12;;:19;3565:5;3552:19;;;;;;;;;;;3545:26;;;3593:4;3586:11;;;;;;;2502:1149;3635:5;3628:12;;;;;9652:348:4;9711:13;9727:23;9742:7;9727:14;:23::i;:::-;9711:39;;9761:48;9782:5;9797:1;9801:7;9761:20;:48::i;:::-;9847:29;9864:1;9868:7;9847:8;:29::i;:::-;-1:-1:-1;;;;;9887:16:4;;;;;;:9;:16;;;;;:21;;9907:1;;9887:16;:21;;9907:1;;9887:21;:::i;:::-;;;;-1:-1:-1;;9925:16:4;;;;:7;:16;;;;;;9918:23;;-1:-1:-1;;;;;;9918:23:4;;;9957:36;9933:7;;9925:16;-1:-1:-1;;;;;9957:36:4;;;;;9925:16;;9957:36;9701:299;9652:348;:::o;1513:153:21:-;1560:7;1622:16;1640:15;1605:51;;;;;;;;7243:19:22;;;7287:2;7278:12;;7271:28;7324:2;7315:12;;7086:247;1605:51:21;;;;;;;;;;;;;1595:62;;;;;;1587:71;;1580:78;;1513:153;:::o;328:703:15:-;384:13;601:10;597:51;;-1:-1:-1;;627:10:15;;;;;;;;;;;;-1:-1:-1;;;627:10:15;;;;;328:703::o;597:51::-;672:5;657:12;711:75;718:9;;711:75;;743:8;;;;:::i;:::-;;-1:-1:-1;765:10:15;;-1:-1:-1;773:2:15;765:10;;:::i;:::-;;;711:75;;;795:19;827:6;817:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;817:17:15;;795:39;;844:150;851:10;;844:150;;877:11;887:1;877:11;;:::i;:::-;;-1:-1:-1;945:10:15;953:2;945:5;:10;:::i;:::-;932:24;;:2;:24;:::i;:::-;919:39;;902:6;909;902:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;902:56:15;;;;;;;;-1:-1:-1;972:11:15;981:2;972:11;;:::i;:::-;;;844:150;;2605:202:0;2690:4;-1:-1:-1;;;;;;2713:47:0;;-1:-1:-1;;;2713:47:0;;:87;;-1:-1:-1;;;;;;;;;;937:40:16;;;2764:36:0;829:155:16;4680:970:8;4942:22;4992:1;4967:22;4984:4;4967:16;:22::i;:::-;:26;;;;:::i;:::-;5003:18;5024:26;;;:17;:26;;;;;;4942:51;;-1:-1:-1;5154:28:8;;;5150:323;;-1:-1:-1;;;;;5220:18:8;;5198:19;5220:18;;;:12;:18;;;;;;;;:34;;;;;;;;;5269:30;;;;;;:44;;;5385:30;;:17;:30;;;;;:43;;;5150:323;-1:-1:-1;5566:26:8;;;;:17;:26;;;;;;;;5559:33;;;-1:-1:-1;;;;;5609:18:8;;;;;:12;:18;;;;;:34;;;;;;;5602:41;4680:970::o;5938:1061::-;6212:10;:17;6187:22;;6212:21;;6232:1;;6212:21;:::i;:::-;6243:18;6264:24;;;:15;:24;;;;;;6632:10;:26;;6187:46;;-1:-1:-1;6264:24:8;;6187:46;;6632:26;;;;;;:::i;:::-;;;;;;;;;6610:48;;6694:11;6669:10;6680;6669:22;;;;;;;;:::i;:::-;;;;;;;;;;;;:36;;;;6773:28;;;:15;:28;;;;;;;:41;;;6942:24;;;;;6935:31;6976:10;:16;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;6009:990;;;5938:1061;:::o;3490:217::-;3574:14;3591:20;3608:2;3591:16;:20::i;:::-;-1:-1:-1;;;;;3621:16:8;;;;;;;:12;:16;;;;;;;;:24;;;;;;;;:34;;;3665:26;;;:17;:26;;;;;;:35;;;;-1:-1:-1;3490:217:8:o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;:::i;:::-;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14:631:22;78:5;108:18;149:2;141:6;138:14;135:40;;;155:18;;:::i;:::-;230:2;224:9;198:2;284:15;;-1:-1:-1;;280:24:22;;;306:2;276:33;272:42;260:55;;;330:18;;;350:22;;;327:46;324:72;;;376:18;;:::i;:::-;416:10;412:2;405:22;445:6;436:15;;475:6;467;460:22;515:3;506:6;501:3;497:16;494:25;491:45;;;532:1;529;522:12;491:45;582:6;577:3;570:4;562:6;558:17;545:44;637:1;630:4;621:6;613;609:19;605:30;598:41;;;;14:631;;;;;:::o;650:173::-;718:20;;-1:-1:-1;;;;;767:31:22;;757:42;;747:70;;813:1;810;803:12;747:70;650:173;;;:::o;828:160::-;893:20;;949:13;;942:21;932:32;;922:60;;978:1;975;968:12;993:221;1036:5;1089:3;1082:4;1074:6;1070:17;1066:27;1056:55;;1107:1;1104;1097:12;1056:55;1129:79;1204:3;1195:6;1182:20;1175:4;1167:6;1163:17;1129:79;:::i;1219:186::-;1278:6;1331:2;1319:9;1310:7;1306:23;1302:32;1299:52;;;1347:1;1344;1337:12;1299:52;1370:29;1389:9;1370:29;:::i;1410:260::-;1478:6;1486;1539:2;1527:9;1518:7;1514:23;1510:32;1507:52;;;1555:1;1552;1545:12;1507:52;1578:29;1597:9;1578:29;:::i;:::-;1568:39;;1626:38;1660:2;1649:9;1645:18;1626:38;:::i;:::-;1616:48;;1410:260;;;;;:::o;1675:328::-;1752:6;1760;1768;1821:2;1809:9;1800:7;1796:23;1792:32;1789:52;;;1837:1;1834;1827:12;1789:52;1860:29;1879:9;1860:29;:::i;:::-;1850:39;;1908:38;1942:2;1931:9;1927:18;1908:38;:::i;:::-;1898:48;;1993:2;1982:9;1978:18;1965:32;1955:42;;1675:328;;;;;:::o;2008:666::-;2103:6;2111;2119;2127;2180:3;2168:9;2159:7;2155:23;2151:33;2148:53;;;2197:1;2194;2187:12;2148:53;2220:29;2239:9;2220:29;:::i;:::-;2210:39;;2268:38;2302:2;2291:9;2287:18;2268:38;:::i;:::-;2258:48;;2353:2;2342:9;2338:18;2325:32;2315:42;;2408:2;2397:9;2393:18;2380:32;2435:18;2427:6;2424:30;2421:50;;;2467:1;2464;2457:12;2421:50;2490:22;;2543:4;2535:13;;2531:27;-1:-1:-1;2521:55:22;;2572:1;2569;2562:12;2521:55;2595:73;2660:7;2655:2;2642:16;2637:2;2633;2629:11;2595:73;:::i;:::-;2585:83;;;2008:666;;;;;;;:::o;2679:254::-;2744:6;2752;2805:2;2793:9;2784:7;2780:23;2776:32;2773:52;;;2821:1;2818;2811:12;2773:52;2844:29;2863:9;2844:29;:::i;:::-;2834:39;;2892:35;2923:2;2912:9;2908:18;2892:35;:::i;2938:254::-;3006:6;3014;3067:2;3055:9;3046:7;3042:23;3038:32;3035:52;;;3083:1;3080;3073:12;3035:52;3106:29;3125:9;3106:29;:::i;:::-;3096:39;3182:2;3167:18;;;;3154:32;;-1:-1:-1;;;2938:254:22:o;3197:248::-;3259:6;3267;3320:2;3308:9;3299:7;3295:23;3291:32;3288:52;;;3336:1;3333;3326:12;3288:52;3359:26;3375:9;3359:26;:::i;3450:180::-;3509:6;3562:2;3550:9;3541:7;3537:23;3533:32;3530:52;;;3578:1;3575;3568:12;3530:52;-1:-1:-1;3601:23:22;;3450:180;-1:-1:-1;3450:180:22:o;3635:254::-;3703:6;3711;3764:2;3752:9;3743:7;3739:23;3735:32;3732:52;;;3780:1;3777;3770:12;3732:52;3816:9;3803:23;3793:33;;3845:38;3879:2;3868:9;3864:18;3845:38;:::i;3894:248::-;3962:6;3970;4023:2;4011:9;4002:7;3998:23;3994:32;3991:52;;;4039:1;4036;4029:12;3991:52;-1:-1:-1;;4062:23:22;;;4132:2;4117:18;;;4104:32;;-1:-1:-1;3894:248:22:o;4147:245::-;4205:6;4258:2;4246:9;4237:7;4233:23;4229:32;4226:52;;;4274:1;4271;4264:12;4226:52;4313:9;4300:23;4332:30;4356:5;4332:30;:::i;4397:249::-;4466:6;4519:2;4507:9;4498:7;4494:23;4490:32;4487:52;;;4535:1;4532;4525:12;4487:52;4567:9;4561:16;4586:30;4610:5;4586:30;:::i;4651:322::-;4720:6;4773:2;4761:9;4752:7;4748:23;4744:32;4741:52;;;4789:1;4786;4779:12;4741:52;4829:9;4816:23;4862:18;4854:6;4851:30;4848:50;;;4894:1;4891;4884:12;4848:50;4917;4959:7;4950:6;4939:9;4935:22;4917:50;:::i;5163:390::-;5241:6;5249;5302:2;5290:9;5281:7;5277:23;5273:32;5270:52;;;5318:1;5315;5308:12;5270:52;5354:9;5341:23;5331:33;;5415:2;5404:9;5400:18;5387:32;5442:18;5434:6;5431:30;5428:50;;;5474:1;5471;5464:12;5428:50;5497;5539:7;5530:6;5519:9;5515:22;5497:50;:::i;:::-;5487:60;;;5163:390;;;;;:::o;5558:257::-;5599:3;5637:5;5631:12;5664:6;5659:3;5652:19;5680:63;5736:6;5729:4;5724:3;5720:14;5713:4;5706:5;5702:16;5680:63;:::i;:::-;5797:2;5776:15;-1:-1:-1;;5772:29:22;5763:39;;;;5804:4;5759:50;;5558:257;-1:-1:-1;;5558:257:22:o;5820:470::-;5999:3;6037:6;6031:13;6053:53;6099:6;6094:3;6087:4;6079:6;6075:17;6053:53;:::i;:::-;6169:13;;6128:16;;;;6191:57;6169:13;6128:16;6225:4;6213:17;;6191:57;:::i;:::-;6264:20;;5820:470;-1:-1:-1;;;;5820:470:22:o;6295:786::-;6706:25;6701:3;6694:38;6676:3;6761:6;6755:13;6777:62;6832:6;6827:2;6822:3;6818:12;6811:4;6803:6;6799:17;6777:62;:::i;:::-;-1:-1:-1;;;6898:2:22;6858:16;;;6890:11;;;6883:40;6948:13;;6970:63;6948:13;7019:2;7011:11;;7004:4;6992:17;;6970:63;:::i;:::-;7053:17;7072:2;7049:26;;6295:786;-1:-1:-1;;;;6295:786:22:o;7546:488::-;-1:-1:-1;;;;;7815:15:22;;;7797:34;;7867:15;;7862:2;7847:18;;7840:43;7914:2;7899:18;;7892:34;;;7962:3;7957:2;7942:18;;7935:31;;;7740:4;;7983:45;;8008:19;;8000:6;7983:45;:::i;:::-;7975:53;7546:488;-1:-1:-1;;;;;;7546:488:22:o;8413:219::-;8562:2;8551:9;8544:21;8525:4;8582:44;8622:2;8611:9;8607:18;8599:6;8582:44;:::i;9815:414::-;10017:2;9999:21;;;10056:2;10036:18;;;10029:30;10095:34;10090:2;10075:18;;10068:62;-1:-1:-1;;;10161:2:22;10146:18;;10139:48;10219:3;10204:19;;9815:414::o;12458:411::-;12660:2;12642:21;;;12699:2;12679:18;;;12672:30;12738:34;12733:2;12718:18;;12711:62;-1:-1:-1;;;12804:2:22;12789:18;;12782:45;12859:3;12844:19;;12458:411::o;18713:413::-;18915:2;18897:21;;;18954:2;18934:18;;;18927:30;18993:34;18988:2;18973:18;;18966:62;-1:-1:-1;;;19059:2:22;19044:18;;19037:47;19116:3;19101:19;;18713:413::o;22310:128::-;22350:3;22381:1;22377:6;22374:1;22371:13;22368:39;;;22387:18;;:::i;:::-;-1:-1:-1;22423:9:22;;22310:128::o;22443:120::-;22483:1;22509;22499:35;;22514:18;;:::i;:::-;-1:-1:-1;22548:9:22;;22443:120::o;22568:168::-;22608:7;22674:1;22670;22666:6;22662:14;22659:1;22656:21;22651:1;22644:9;22637:17;22633:45;22630:71;;;22681:18;;:::i;:::-;-1:-1:-1;22721:9:22;;22568:168::o;22741:125::-;22781:4;22809:1;22806;22803:8;22800:34;;;22814:18;;:::i;:::-;-1:-1:-1;22851:9:22;;22741:125::o;22871:258::-;22943:1;22953:113;22967:6;22964:1;22961:13;22953:113;;;23043:11;;;23037:18;23024:11;;;23017:39;22989:2;22982:10;22953:113;;;23084:6;23081:1;23078:13;23075:48;;;-1:-1:-1;;23119:1:22;23101:16;;23094:27;22871:258::o;23134:136::-;23173:3;23201:5;23191:39;;23210:18;;:::i;:::-;-1:-1:-1;;;23246:18:22;;23134:136::o;23275:380::-;23354:1;23350:12;;;;23397;;;23418:61;;23472:4;23464:6;23460:17;23450:27;;23418:61;23525:2;23517:6;23514:14;23494:18;23491:38;23488:161;;;23571:10;23566:3;23562:20;23559:1;23552:31;23606:4;23603:1;23596:15;23634:4;23631:1;23624:15;23488:161;;23275:380;;;:::o;23660:135::-;23699:3;-1:-1:-1;;23720:17:22;;23717:43;;;23740:18;;:::i;:::-;-1:-1:-1;23787:1:22;23776:13;;23660:135::o;23800:112::-;23832:1;23858;23848:35;;23863:18;;:::i;:::-;-1:-1:-1;23897:9:22;;23800:112::o;23917:127::-;23978:10;23973:3;23969:20;23966:1;23959:31;24009:4;24006:1;23999:15;24033:4;24030:1;24023:15;24049:127;24110:10;24105:3;24101:20;24098:1;24091:31;24141:4;24138:1;24131:15;24165:4;24162:1;24155:15;24181:127;24242:10;24237:3;24233:20;24230:1;24223:31;24273:4;24270:1;24263:15;24297:4;24294:1;24287:15;24313:127;24374:10;24369:3;24365:20;24362:1;24355:31;24405:4;24402:1;24395:15;24429:4;24426:1;24419:15;24445:127;24506:10;24501:3;24497:20;24494:1;24487:31;24537:4;24534:1;24527:15;24561:4;24558:1;24551:15;24577:131;-1:-1:-1;;;;;;24651:32:22;;24641:43;;24631:71;;24698:1;24695;24688:12
Swarm Source
ipfs://ac256a9ed061c0d05e2c67a99edffc4c7e81d745e1ee486d276880dc8d99ccef