ERC-721
NFT
Overview
Max Total Supply
11,916 AVATARS
Holders
2,313
Market
Volume (24H)
0.113 ETH
Min Price (24H)
$128.70 @ 0.044000 ETH
Max Price (24H)
$201.83 @ 0.069000 ETH
Other Info
Token Contract
Balance
0 AVATARSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
NFTW_Genesis_Avatars
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "erc721a/contracts/ERC721A.sol"; import "./INFTW_Whitelist.sol"; contract NFTW_Genesis_Avatars is ERC721A, Ownable, ReentrancyGuard { using Strings for uint256; /** * @dev @iamarkdev was here * */ INFTW_Whitelist private whitelist; uint256 private whitelistPassTypeId = 1; uint256 public MAX_AVATARS; uint256 public MAX_AVATARS_PER_PURCHASE; uint256 public constant RESERVED_AVATARS = 100; uint256 public constant STARTING_PRICE = 1 ether; uint256 public constant ENDING_PRICE = 0.4 ether; uint256 public publicSaleDuration; uint256 public publicSaleStartTime; string public tokenBaseURI; string public unrevealedURI; bool public presaleActive = false; bool public mintActive = false; bool public reservesMinted = false; /** * @dev Contract Methods */ constructor( address _nftwWhitelist, uint256 _maxAvatars, uint256 _maxAvatarsPerPurchase ) ERC721A("NFT Worlds Genesis Avatars", "AVATARS") { whitelist = INFTW_Whitelist(_nftwWhitelist); MAX_AVATARS = _maxAvatars; MAX_AVATARS_PER_PURCHASE = _maxAvatarsPerPurchase; } /************ * Metadata * ************/ function setTokenBaseURI(string memory _baseURI) external onlyOwner { tokenBaseURI = _baseURI; } function setUnrevealedURI(string memory _unrevealedUri) external onlyOwner { unrevealedURI = _unrevealedUri; } function tokenURI(uint256 _tokenId) override public view returns (string memory) { bool revealed = bytes(tokenBaseURI).length > 0; if (!revealed) { return unrevealedURI; } require(_exists(_tokenId), "ERC721Metadata: URI query for nonexistent token"); return string(abi.encodePacked(tokenBaseURI, _tokenId.toString())); } /**************** * Presale Mint * ****************/ function presaleMint(uint256 _quantity) external payable nonReentrant { require(presaleActive, "Presale is not active"); require(msg.value >= ENDING_PRICE * _quantity, "The ether value sent is not correct"); whitelist.burnTypeForOwnerAddress(whitelistPassTypeId, _quantity, msg.sender); _safeMintAvatars(_quantity); } /*************** * Public Mint * ***************/ function publicMint(uint256 _quantity) external payable nonReentrant { require(mintActive, "Public sale is not active."); require(tx.origin == msg.sender, "The caller is another contract"); uint256 mintCost = getMintPrice() * _quantity; require(msg.value >= mintCost, "The ether value sent is not correct"); _safeMintAvatars(_quantity); if (msg.value > mintCost) { Address.sendValue(payable(msg.sender), msg.value - mintCost); } } function getMintPrice() public view returns (uint256) { require(mintActive, "Public sale is not active"); uint256 elapsed = _getElapsedSaleTime(); if (elapsed >= publicSaleDuration) { return ENDING_PRICE; } else { uint256 currentPrice = STARTING_PRICE - ((STARTING_PRICE - ENDING_PRICE) * elapsed) / publicSaleDuration; return currentPrice > ENDING_PRICE ? currentPrice : ENDING_PRICE; } } /**************** * Mint Helpers * ****************/ function _getElapsedSaleTime() internal view returns (uint256) { return publicSaleStartTime > 0 ? block.timestamp - publicSaleStartTime : 0; } function _safeMintAvatars(uint256 _quantity) internal { require(_quantity > 0, "You must mint at least 1 Genesis Avatar"); require(_quantity <= MAX_AVATARS_PER_PURCHASE, "Quantity is more than allowed per transaction."); require(_totalMinted() + _quantity <= MAX_AVATARS, "This purchase would exceed max supply of Genesis Avatars"); _safeMint(msg.sender, _quantity); } /* * Note: Reserved avatars will be minted immediately after the presale ends * but before the public sale begins. */ function mintReservedAvatars(address _toAddress) external onlyOwner { require(!reservesMinted, "Reserves have already been minted."); require(_totalMinted() + RESERVED_AVATARS <= MAX_AVATARS, "This mint would exceed max supply of Genesis Avatars"); _safeMint(_toAddress, RESERVED_AVATARS); reservesMinted = true; } function setWhitelistContract(address _whitelist) external onlyOwner { whitelist = INFTW_Whitelist(_whitelist); } function setWhitelistPassTypeId(uint256 _whitelistPassTypeId) external onlyOwner { whitelistPassTypeId = _whitelistPassTypeId; } function setPresaleActive(bool _active) external onlyOwner { presaleActive = _active; } function setPublicSaleActive(bool _active, uint256 _publicSaleDuration) external onlyOwner { presaleActive = false; mintActive = _active; if (_publicSaleDuration > 0) { publicSaleDuration = _publicSaleDuration; publicSaleStartTime = block.timestamp; } } /************** * Withdrawal * **************/ function withdraw() external onlyOwner { payable(msg.sender).transfer(address(this).balance); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// 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 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity ^0.8.4; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; error ApprovalCallerNotOwnerNorApproved(); error ApprovalQueryForNonexistentToken(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error OwnerQueryForNonexistentToken(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error URIQueryForNonexistentToken(); /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // 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; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to _startTokenId() unchecked { return _currentIndex - _startTokenId(); } } /** * @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 override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return _addressData[owner].aux; } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { _addressData[owner].aux = aux; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr && curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _ownershipOf(tokenId).addr; } /** * @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) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); 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 override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_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 { _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 { _transfer(from, to, tokenId); if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @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`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity, _data, true); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint( address to, uint256 quantity, bytes memory _data, bool safe ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (safe && to.isContract()) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex != end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex != end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) private { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; currSlot.startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev This is equivalent to _burn(tokenId, false) */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); address from = prevOwnership.addr; if (approvalCheck) { bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { AddressData storage addressData = _addressData[from]; addressData.balance -= 1; addressData.numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = from; currSlot.startTimestamp = uint64(block.timestamp); currSlot.burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * 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, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.2; import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; interface INFTW_Whitelist is IERC1155 { function burnTypeBulk(uint256 _typeId, address[] calldata owners) external; function burnTypeForOwnerAddress(uint256 _typeId, uint256 _quantity, address _typeOwnerAddress) external returns (bool); function mintTypeToAddress(uint256 _typeId, uint256 _quantity, address _toAddress) external returns (bool); function bulkSafeTransfer(uint256 _typeId, uint256 _quantityPerRecipient, address[] calldata recipients) external; }
// 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 (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 (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 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/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/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_nftwWhitelist","type":"address"},{"internalType":"uint256","name":"_maxAvatars","type":"uint256"},{"internalType":"uint256","name":"_maxAvatarsPerPurchase","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"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":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","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":"ENDING_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_AVATARS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_AVATARS_PER_PURCHASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RESERVED_AVATARS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STARTING_PRICE","outputs":[{"internalType":"uint256","name":"","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":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_toAddress","type":"address"}],"name":"mintReservedAvatars","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicSaleDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reservesMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_active","type":"bool"}],"name":"setPresaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_active","type":"bool"},{"internalType":"uint256","name":"_publicSaleDuration","type":"uint256"}],"name":"setPublicSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setTokenBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_unrevealedUri","type":"string"}],"name":"setUnrevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_whitelist","type":"address"}],"name":"setWhitelistContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_whitelistPassTypeId","type":"uint256"}],"name":"setWhitelistPassTypeId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unrevealedURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526001600b556000601260006101000a81548160ff0219169083151502179055506000601260016101000a81548160ff0219169083151502179055506000601260026101000a81548160ff0219169083151502179055503480156200006757600080fd5b5060405162004b2138038062004b2183398181016040528101906200008d919062000374565b6040518060400160405280601a81526020017f4e465420576f726c64732047656e6573697320417661746172730000000000008152506040518060400160405280600781526020017f415641544152530000000000000000000000000000000000000000000000000081525081600290805190602001906200011192919062000296565b5080600390805190602001906200012a92919062000296565b506200013b620001c360201b60201c565b60008190555050506200016362000157620001c860201b60201c565b620001d060201b60201c565b600160098190555082600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600c8190555080600d81905550505050620004a1565b600090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620002a49062000408565b90600052602060002090601f016020900481019282620002c8576000855562000314565b82601f10620002e357805160ff191683800117855562000314565b8280016001018555821562000314579182015b8281111562000313578251825591602001919060010190620002f6565b5b50905062000323919062000327565b5090565b5b808211156200034257600081600090555060010162000328565b5090565b60008151905062000357816200046d565b92915050565b6000815190506200036e8162000487565b92915050565b6000806000606084860312156200038a57600080fd5b60006200039a8682870162000346565b9350506020620003ad868287016200035d565b9250506040620003c0868287016200035d565b9150509250925092565b6000620003d782620003de565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060028204905060018216806200042157607f821691505b602082108114156200043857620004376200043e565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6200047881620003ca565b81146200048457600080fd5b50565b6200049281620003fe565b81146200049e57600080fd5b50565b61467080620004b16000396000f3fe60806040526004361061023b5760003560e01c806385983ed81161012e578063b88d4fde116100ab578063e88bca661161006f578063e88bca661461081f578063e985e9c51461084a578063f2fde38b14610887578063fd48354e146108b0578063fe2c7fee146108db5761023b565b8063b88d4fde14610747578063c87b56dd14610770578063c9b298f1146107ad578063cc41d795146107c9578063d12f7029146107f45761023b565b8063a22cb465116100f2578063a22cb46514610674578063a6bea44a1461069d578063a7f93ebd146106c8578063a82f518e146106f3578063a9808cb61461071e5761023b565b806385983ed8146105a15780638da5cb5b146105cc5780638ef79e91146105f757806395d89b4114610620578063991dcc691461064b5761023b565b80633ccfd60b116101bc5780636352211e116101805780636352211e146104ba5780636bb7b1d9146104f75780637035bf181461052257806370a082311461054d578063715018a61461058a5761023b565b80633ccfd60b146103fb5780633f8121a21461041257806342842e0e1461043b5780634e99b8001461046457806353135ca01461048f5761023b565b806318160ddd1161020357806318160ddd1461033757806323b872dd1461036257806325fd90f31461038b5780632db11544146103b6578063376c8c64146103d25761023b565b806301ffc9a71461024057806306fdde031461027d578063081812fc146102a8578063095ea7b3146102e557806312f261401461030e575b600080fd5b34801561024c57600080fd5b5061026760048036038101906102629190613609565b610904565b6040516102749190613b07565b60405180910390f35b34801561028957600080fd5b506102926109e6565b60405161029f9190613b22565b60405180910390f35b3480156102b457600080fd5b506102cf60048036038101906102ca919061369c565b610a78565b6040516102dc9190613aa0565b60405180910390f35b3480156102f157600080fd5b5061030c6004803603810190610307919061353f565b610af4565b005b34801561031a57600080fd5b50610335600480360381019061033091906133d4565b610bff565b005b34801561034357600080fd5b5061034c610cbf565b6040516103599190613d44565b60405180910390f35b34801561036e57600080fd5b5061038960048036038101906103849190613439565b610cd6565b005b34801561039757600080fd5b506103a0610ce6565b6040516103ad9190613b07565b60405180910390f35b6103d060048036038101906103cb919061369c565b610cf9565b005b3480156103de57600080fd5b506103f960048036038101906103f491906133d4565b610e91565b005b34801561040757600080fd5b50610410610fde565b005b34801561041e57600080fd5b506104396004803603810190610434919061357b565b6110a3565b005b34801561044757600080fd5b50610462600480360381019061045d9190613439565b61113c565b005b34801561047057600080fd5b5061047961115c565b6040516104869190613b22565b60405180910390f35b34801561049b57600080fd5b506104a46111ea565b6040516104b19190613b07565b60405180910390f35b3480156104c657600080fd5b506104e160048036038101906104dc919061369c565b6111fd565b6040516104ee9190613aa0565b60405180910390f35b34801561050357600080fd5b5061050c611213565b6040516105199190613d44565b60405180910390f35b34801561052e57600080fd5b50610537611219565b6040516105449190613b22565b60405180910390f35b34801561055957600080fd5b50610574600480360381019061056f91906133d4565b6112a7565b6040516105819190613d44565b60405180910390f35b34801561059657600080fd5b5061059f611377565b005b3480156105ad57600080fd5b506105b66113ff565b6040516105c39190613d44565b60405180910390f35b3480156105d857600080fd5b506105e161140b565b6040516105ee9190613aa0565b60405180910390f35b34801561060357600080fd5b5061061e6004803603810190610619919061365b565b611435565b005b34801561062c57600080fd5b506106356114cb565b6040516106429190613b22565b60405180910390f35b34801561065757600080fd5b50610672600480360381019061066d919061369c565b61155d565b005b34801561068057600080fd5b5061069b60048036038101906106969190613503565b6115e3565b005b3480156106a957600080fd5b506106b261175b565b6040516106bf9190613d44565b60405180910390f35b3480156106d457600080fd5b506106dd611761565b6040516106ea9190613d44565b60405180910390f35b3480156106ff57600080fd5b5061070861184a565b6040516107159190613d44565b60405180910390f35b34801561072a57600080fd5b50610745600480360381019061074091906135cd565b61184f565b005b34801561075357600080fd5b5061076e60048036038101906107699190613488565b61191c565b005b34801561077c57600080fd5b506107976004803603810190610792919061369c565b611998565b6040516107a49190613b22565b60405180910390f35b6107c760048036038101906107c2919061369c565b611ac3565b005b3480156107d557600080fd5b506107de611c7e565b6040516107eb9190613b07565b60405180910390f35b34801561080057600080fd5b50610809611c91565b6040516108169190613d44565b60405180910390f35b34801561082b57600080fd5b50610834611c9d565b6040516108419190613d44565b60405180910390f35b34801561085657600080fd5b50610871600480360381019061086c91906133fd565b611ca3565b60405161087e9190613b07565b60405180910390f35b34801561089357600080fd5b506108ae60048036038101906108a991906133d4565b611d37565b005b3480156108bc57600080fd5b506108c5611e2f565b6040516108d29190613d44565b60405180910390f35b3480156108e757600080fd5b5061090260048036038101906108fd919061365b565b611e35565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109cf57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109df57506109de82611ecb565b5b9050919050565b6060600280546109f59061404b565b80601f0160208091040260200160405190810160405280929190818152602001828054610a219061404b565b8015610a6e5780601f10610a4357610100808354040283529160200191610a6e565b820191906000526020600020905b815481529060010190602001808311610a5157829003601f168201915b5050505050905090565b6000610a8382611f35565b610ab9576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610aff826111fd565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b67576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b86611f83565b73ffffffffffffffffffffffffffffffffffffffff1614158015610bb85750610bb681610bb1611f83565b611ca3565b155b15610bef576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610bfa838383611f8b565b505050565b610c07611f83565b73ffffffffffffffffffffffffffffffffffffffff16610c2561140b565b73ffffffffffffffffffffffffffffffffffffffff1614610c7b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7290613c24565b60405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000610cc961203d565b6001546000540303905090565b610ce1838383612042565b505050565b601260019054906101000a900460ff1681565b60026009541415610d3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3690613ce4565b60405180910390fd5b6002600981905550601260019054906101000a900460ff16610d96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8d90613b84565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614610e04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dfb90613be4565b60405180910390fd5b600081610e0f611761565b610e199190613f07565b905080341015610e5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5590613d04565b60405180910390fd5b610e67826124f8565b80341115610e8557610e84338234610e7f9190613f61565b6125e4565b5b50600160098190555050565b610e99611f83565b73ffffffffffffffffffffffffffffffffffffffff16610eb761140b565b73ffffffffffffffffffffffffffffffffffffffff1614610f0d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0490613c24565b60405180910390fd5b601260029054906101000a900460ff1615610f5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5490613b64565b60405180910390fd5b600c546064610f6a6126d8565b610f749190613e80565b1115610fb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fac90613d24565b60405180910390fd5b610fc08160646126eb565b6001601260026101000a81548160ff02191690831515021790555050565b610fe6611f83565b73ffffffffffffffffffffffffffffffffffffffff1661100461140b565b73ffffffffffffffffffffffffffffffffffffffff161461105a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105190613c24565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050501580156110a0573d6000803e3d6000fd5b50565b6110ab611f83565b73ffffffffffffffffffffffffffffffffffffffff166110c961140b565b73ffffffffffffffffffffffffffffffffffffffff161461111f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111690613c24565b60405180910390fd5b80601260006101000a81548160ff02191690831515021790555050565b6111578383836040518060200160405280600081525061191c565b505050565b601080546111699061404b565b80601f01602080910402602001604051908101604052809291908181526020018280546111959061404b565b80156111e25780601f106111b7576101008083540402835291602001916111e2565b820191906000526020600020905b8154815290600101906020018083116111c557829003601f168201915b505050505081565b601260009054906101000a900460ff1681565b600061120882612709565b600001519050919050565b600f5481565b601180546112269061404b565b80601f01602080910402602001604051908101604052809291908181526020018280546112529061404b565b801561129f5780601f106112745761010080835404028352916020019161129f565b820191906000526020600020905b81548152906001019060200180831161128257829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561130f576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b61137f611f83565b73ffffffffffffffffffffffffffffffffffffffff1661139d61140b565b73ffffffffffffffffffffffffffffffffffffffff16146113f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113ea90613c24565b60405180910390fd5b6113fd6000612998565b565b67058d15e17628000081565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61143d611f83565b73ffffffffffffffffffffffffffffffffffffffff1661145b61140b565b73ffffffffffffffffffffffffffffffffffffffff16146114b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114a890613c24565b60405180910390fd5b80601090805190602001906114c79291906131a0565b5050565b6060600380546114da9061404b565b80601f01602080910402602001604051908101604052809291908181526020018280546115069061404b565b80156115535780601f1061152857610100808354040283529160200191611553565b820191906000526020600020905b81548152906001019060200180831161153657829003601f168201915b5050505050905090565b611565611f83565b73ffffffffffffffffffffffffffffffffffffffff1661158361140b565b73ffffffffffffffffffffffffffffffffffffffff16146115d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d090613c24565b60405180910390fd5b80600b8190555050565b6115eb611f83565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611650576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806007600061165d611f83565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661170a611f83565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161174f9190613b07565b60405180910390a35050565b600c5481565b6000601260019054906101000a900460ff166117b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a990613c04565b60405180910390fd5b60006117bc612a5e565b9050600e5481106117d85767058d15e176280000915050611847565b6000600e548267058d15e176280000670de0b6b3a76400006117fa9190613f61565b6118049190613f07565b61180e9190613ed6565b670de0b6b3a76400006118219190613f61565b905067058d15e17628000081116118405767058d15e176280000611842565b805b925050505b90565b606481565b611857611f83565b73ffffffffffffffffffffffffffffffffffffffff1661187561140b565b73ffffffffffffffffffffffffffffffffffffffff16146118cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c290613c24565b60405180910390fd5b6000601260006101000a81548160ff02191690831515021790555081601260016101000a81548160ff02191690831515021790555060008111156119185780600e8190555042600f819055505b5050565b611927848484612042565b6119468373ffffffffffffffffffffffffffffffffffffffff16612a84565b801561195b575061195984848484612aa7565b155b15611992576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b6060600080601080546119aa9061404b565b905011905080611a4757601180546119c19061404b565b80601f01602080910402602001604051908101604052809291908181526020018280546119ed9061404b565b8015611a3a5780601f10611a0f57610100808354040283529160200191611a3a565b820191906000526020600020905b815481529060010190602001808311611a1d57829003601f168201915b5050505050915050611abe565b611a5083611f35565b611a8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8690613c64565b60405180910390fd5b6010611a9a84612c07565b604051602001611aab929190613a67565b6040516020818303038152906040529150505b919050565b60026009541415611b09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b0090613ce4565b60405180910390fd5b6002600981905550601260009054906101000a900460ff16611b60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5790613cc4565b60405180910390fd5b8067058d15e176280000611b749190613f07565b341015611bb6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bad90613d04565b60405180910390fd5b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166314f329af600b5483336040518463ffffffff1660e01b8152600401611c1793929190613d5f565b602060405180830381600087803b158015611c3157600080fd5b505af1158015611c45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c6991906135a4565b50611c73816124f8565b600160098190555050565b601260029054906101000a900460ff1681565b670de0b6b3a764000081565b600d5481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611d3f611f83565b73ffffffffffffffffffffffffffffffffffffffff16611d5d61140b565b73ffffffffffffffffffffffffffffffffffffffff1614611db3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611daa90613c24565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611e23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1a90613b44565b60405180910390fd5b611e2c81612998565b50565b600e5481565b611e3d611f83565b73ffffffffffffffffffffffffffffffffffffffff16611e5b61140b565b73ffffffffffffffffffffffffffffffffffffffff1614611eb1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ea890613c24565b60405180910390fd5b8060119080519060200190611ec79291906131a0565b5050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600081611f4061203d565b11158015611f4f575060005482105b8015611f7c575060046000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600090565b600061204d82612709565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146120b8576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff166120d9611f83565b73ffffffffffffffffffffffffffffffffffffffff161480612108575061210785612102611f83565b611ca3565b5b8061214d5750612116611f83565b73ffffffffffffffffffffffffffffffffffffffff1661213584610a78565b73ffffffffffffffffffffffffffffffffffffffff16145b905080612186576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156121ed576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6121fa8585856001612db4565b61220660008487611f8b565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600460008581526020019081526020016000209050848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060006001850190506000600460008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561248657600054821461248557878160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46124f18585856001612dba565b5050505050565b6000811161253b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161253290613ca4565b60405180910390fd5b600d54811115612580576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161257790613c84565b60405180910390fd5b600c548161258c6126d8565b6125969190613e80565b11156125d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125ce90613c44565b60405180910390fd5b6125e133826126eb565b50565b80471015612627576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161261e90613bc4565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161264d90613a8b565b60006040518083038185875af1925050503d806000811461268a576040519150601f19603f3d011682016040523d82523d6000602084013e61268f565b606091505b50509050806126d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126ca90613ba4565b60405180910390fd5b505050565b60006126e261203d565b60005403905090565b612705828260405180602001604052806000815250612dc0565b5050565b612711613226565b60008290508061271f61203d565b1115801561272e575060005481105b15612961576000600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050806040015161295f57600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612843578092505050612993565b5b60011561295e57818060019003925050600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612959578092505050612993565b612844565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080600f5411612a70576000612a7f565b600f5442612a7e9190613f61565b5b905090565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612acd611f83565b8786866040518563ffffffff1660e01b8152600401612aef9493929190613abb565b602060405180830381600087803b158015612b0957600080fd5b505af1925050508015612b3a57506040513d601f19601f82011682018060405250810190612b379190613632565b60015b612bb4573d8060008114612b6a576040519150601f19603f3d011682016040523d82523d6000602084013e612b6f565b606091505b50600081511415612bac576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60606000821415612c4f576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612daf565b600082905060005b60008214612c81578080612c6a906140ae565b915050600a82612c7a9190613ed6565b9150612c57565b60008167ffffffffffffffff811115612cc3577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612cf55781602001600182028036833780820191505090505b5090505b60008514612da857600182612d0e9190613f61565b9150600a85612d1d91906140f7565b6030612d299190613e80565b60f81b818381518110612d65577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612da19190613ed6565b9450612cf9565b8093505050505b919050565b50505050565b50505050565b612dcd8383836001612dd2565b505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415612e3f576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000841415612e7a576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612e876000868387612db4565b83600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060008190506000858201905083801561305157506130508773ffffffffffffffffffffffffffffffffffffffff16612a84565b5b15613117575b818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46130c66000888480600101955088612aa7565b6130fc576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8082141561305757826000541461311257600080fd5b613183565b5b818060010192508773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480821415613118575b8160008190555050506131996000868387612dba565b5050505050565b8280546131ac9061404b565b90600052602060002090601f0160209004810192826131ce5760008555613215565b82601f106131e757805160ff1916838001178555613215565b82800160010185558215613215579182015b828111156132145782518255916020019190600101906131f9565b5b5090506132229190613269565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b8082111561328257600081600090555060010161326a565b5090565b600061329961329484613dbb565b613d96565b9050828152602081018484840111156132b157600080fd5b6132bc848285614009565b509392505050565b60006132d76132d284613dec565b613d96565b9050828152602081018484840111156132ef57600080fd5b6132fa848285614009565b509392505050565b600081359050613311816145de565b92915050565b600081359050613326816145f5565b92915050565b60008151905061333b816145f5565b92915050565b6000813590506133508161460c565b92915050565b6000815190506133658161460c565b92915050565b600082601f83011261337c57600080fd5b813561338c848260208601613286565b91505092915050565b600082601f8301126133a657600080fd5b81356133b68482602086016132c4565b91505092915050565b6000813590506133ce81614623565b92915050565b6000602082840312156133e657600080fd5b60006133f484828501613302565b91505092915050565b6000806040838503121561341057600080fd5b600061341e85828601613302565b925050602061342f85828601613302565b9150509250929050565b60008060006060848603121561344e57600080fd5b600061345c86828701613302565b935050602061346d86828701613302565b925050604061347e868287016133bf565b9150509250925092565b6000806000806080858703121561349e57600080fd5b60006134ac87828801613302565b94505060206134bd87828801613302565b93505060406134ce878288016133bf565b925050606085013567ffffffffffffffff8111156134eb57600080fd5b6134f78782880161336b565b91505092959194509250565b6000806040838503121561351657600080fd5b600061352485828601613302565b925050602061353585828601613317565b9150509250929050565b6000806040838503121561355257600080fd5b600061356085828601613302565b9250506020613571858286016133bf565b9150509250929050565b60006020828403121561358d57600080fd5b600061359b84828501613317565b91505092915050565b6000602082840312156135b657600080fd5b60006135c48482850161332c565b91505092915050565b600080604083850312156135e057600080fd5b60006135ee85828601613317565b92505060206135ff858286016133bf565b9150509250929050565b60006020828403121561361b57600080fd5b600061362984828501613341565b91505092915050565b60006020828403121561364457600080fd5b600061365284828501613356565b91505092915050565b60006020828403121561366d57600080fd5b600082013567ffffffffffffffff81111561368757600080fd5b61369384828501613395565b91505092915050565b6000602082840312156136ae57600080fd5b60006136bc848285016133bf565b91505092915050565b6136ce81613f95565b82525050565b6136dd81613fa7565b82525050565b60006136ee82613e32565b6136f88185613e48565b9350613708818560208601614018565b613711816141e4565b840191505092915050565b600061372782613e3d565b6137318185613e64565b9350613741818560208601614018565b61374a816141e4565b840191505092915050565b600061376082613e3d565b61376a8185613e75565b935061377a818560208601614018565b80840191505092915050565b600081546137938161404b565b61379d8186613e75565b945060018216600081146137b857600181146137c9576137fc565b60ff198316865281860193506137fc565b6137d285613e1d565b60005b838110156137f4578154818901526001820191506020810190506137d5565b838801955050505b50505092915050565b6000613812602683613e64565b915061381d826141f5565b604082019050919050565b6000613835602283613e64565b915061384082614244565b604082019050919050565b6000613858601a83613e64565b915061386382614293565b602082019050919050565b600061387b603a83613e64565b9150613886826142bc565b604082019050919050565b600061389e601d83613e64565b91506138a98261430b565b602082019050919050565b60006138c1601e83613e64565b91506138cc82614334565b602082019050919050565b60006138e4601983613e64565b91506138ef8261435d565b602082019050919050565b6000613907602083613e64565b915061391282614386565b602082019050919050565b600061392a603883613e64565b9150613935826143af565b604082019050919050565b600061394d602f83613e64565b9150613958826143fe565b604082019050919050565b6000613970602e83613e64565b915061397b8261444d565b604082019050919050565b6000613993600083613e59565b915061399e8261449c565b600082019050919050565b60006139b6602783613e64565b91506139c18261449f565b604082019050919050565b60006139d9601583613e64565b91506139e4826144ee565b602082019050919050565b60006139fc601f83613e64565b9150613a0782614517565b602082019050919050565b6000613a1f602383613e64565b9150613a2a82614540565b604082019050919050565b6000613a42603483613e64565b9150613a4d8261458f565b604082019050919050565b613a6181613fff565b82525050565b6000613a738285613786565b9150613a7f8284613755565b91508190509392505050565b6000613a9682613986565b9150819050919050565b6000602082019050613ab560008301846136c5565b92915050565b6000608082019050613ad060008301876136c5565b613add60208301866136c5565b613aea6040830185613a58565b8181036060830152613afc81846136e3565b905095945050505050565b6000602082019050613b1c60008301846136d4565b92915050565b60006020820190508181036000830152613b3c818461371c565b905092915050565b60006020820190508181036000830152613b5d81613805565b9050919050565b60006020820190508181036000830152613b7d81613828565b9050919050565b60006020820190508181036000830152613b9d8161384b565b9050919050565b60006020820190508181036000830152613bbd8161386e565b9050919050565b60006020820190508181036000830152613bdd81613891565b9050919050565b60006020820190508181036000830152613bfd816138b4565b9050919050565b60006020820190508181036000830152613c1d816138d7565b9050919050565b60006020820190508181036000830152613c3d816138fa565b9050919050565b60006020820190508181036000830152613c5d8161391d565b9050919050565b60006020820190508181036000830152613c7d81613940565b9050919050565b60006020820190508181036000830152613c9d81613963565b9050919050565b60006020820190508181036000830152613cbd816139a9565b9050919050565b60006020820190508181036000830152613cdd816139cc565b9050919050565b60006020820190508181036000830152613cfd816139ef565b9050919050565b60006020820190508181036000830152613d1d81613a12565b9050919050565b60006020820190508181036000830152613d3d81613a35565b9050919050565b6000602082019050613d596000830184613a58565b92915050565b6000606082019050613d746000830186613a58565b613d816020830185613a58565b613d8e60408301846136c5565b949350505050565b6000613da0613db1565b9050613dac828261407d565b919050565b6000604051905090565b600067ffffffffffffffff821115613dd657613dd56141b5565b5b613ddf826141e4565b9050602081019050919050565b600067ffffffffffffffff821115613e0757613e066141b5565b5b613e10826141e4565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000613e8b82613fff565b9150613e9683613fff565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613ecb57613eca614128565b5b828201905092915050565b6000613ee182613fff565b9150613eec83613fff565b925082613efc57613efb614157565b5b828204905092915050565b6000613f1282613fff565b9150613f1d83613fff565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613f5657613f55614128565b5b828202905092915050565b6000613f6c82613fff565b9150613f7783613fff565b925082821015613f8a57613f89614128565b5b828203905092915050565b6000613fa082613fdf565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b8381101561403657808201518184015260208101905061401b565b83811115614045576000848401525b50505050565b6000600282049050600182168061406357607f821691505b6020821081141561407757614076614186565b5b50919050565b614086826141e4565b810181811067ffffffffffffffff821117156140a5576140a46141b5565b5b80604052505050565b60006140b982613fff565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156140ec576140eb614128565b5b600182019050919050565b600061410282613fff565b915061410d83613fff565b92508261411d5761411c614157565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f5265736572766573206861766520616c7265616479206265656e206d696e746560008201527f642e000000000000000000000000000000000000000000000000000000000000602082015250565b7f5075626c69632073616c65206973206e6f74206163746976652e000000000000600082015250565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b7f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000600082015250565b7f5075626c69632073616c65206973206e6f742061637469766500000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f5468697320707572636861736520776f756c6420657863656564206d6178207360008201527f7570706c79206f662047656e6573697320417661746172730000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f5175616e74697479206973206d6f7265207468616e20616c6c6f77656420706560008201527f72207472616e73616374696f6e2e000000000000000000000000000000000000602082015250565b50565b7f596f75206d757374206d696e74206174206c6561737420312047656e6573697360008201527f2041766174617200000000000000000000000000000000000000000000000000602082015250565b7f50726573616c65206973206e6f74206163746976650000000000000000000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f5468652065746865722076616c75652073656e74206973206e6f7420636f727260008201527f6563740000000000000000000000000000000000000000000000000000000000602082015250565b7f54686973206d696e7420776f756c6420657863656564206d617820737570706c60008201527f79206f662047656e657369732041766174617273000000000000000000000000602082015250565b6145e781613f95565b81146145f257600080fd5b50565b6145fe81613fa7565b811461460957600080fd5b50565b61461581613fb3565b811461462057600080fd5b50565b61462c81613fff565b811461463757600080fd5b5056fea26469706673582212205c963be89ee36c357ed50141c4ecbc9d39e80e84d885999679dc0e1ebc3294fc64736f6c6343000804003300000000000000000000000052a0ae79facf56421977b19bf1052fdf8b1c5c160000000000000000000000000000000000000000000000000000000000003a980000000000000000000000000000000000000000000000000000000000000014
Deployed Bytecode
0x60806040526004361061023b5760003560e01c806385983ed81161012e578063b88d4fde116100ab578063e88bca661161006f578063e88bca661461081f578063e985e9c51461084a578063f2fde38b14610887578063fd48354e146108b0578063fe2c7fee146108db5761023b565b8063b88d4fde14610747578063c87b56dd14610770578063c9b298f1146107ad578063cc41d795146107c9578063d12f7029146107f45761023b565b8063a22cb465116100f2578063a22cb46514610674578063a6bea44a1461069d578063a7f93ebd146106c8578063a82f518e146106f3578063a9808cb61461071e5761023b565b806385983ed8146105a15780638da5cb5b146105cc5780638ef79e91146105f757806395d89b4114610620578063991dcc691461064b5761023b565b80633ccfd60b116101bc5780636352211e116101805780636352211e146104ba5780636bb7b1d9146104f75780637035bf181461052257806370a082311461054d578063715018a61461058a5761023b565b80633ccfd60b146103fb5780633f8121a21461041257806342842e0e1461043b5780634e99b8001461046457806353135ca01461048f5761023b565b806318160ddd1161020357806318160ddd1461033757806323b872dd1461036257806325fd90f31461038b5780632db11544146103b6578063376c8c64146103d25761023b565b806301ffc9a71461024057806306fdde031461027d578063081812fc146102a8578063095ea7b3146102e557806312f261401461030e575b600080fd5b34801561024c57600080fd5b5061026760048036038101906102629190613609565b610904565b6040516102749190613b07565b60405180910390f35b34801561028957600080fd5b506102926109e6565b60405161029f9190613b22565b60405180910390f35b3480156102b457600080fd5b506102cf60048036038101906102ca919061369c565b610a78565b6040516102dc9190613aa0565b60405180910390f35b3480156102f157600080fd5b5061030c6004803603810190610307919061353f565b610af4565b005b34801561031a57600080fd5b50610335600480360381019061033091906133d4565b610bff565b005b34801561034357600080fd5b5061034c610cbf565b6040516103599190613d44565b60405180910390f35b34801561036e57600080fd5b5061038960048036038101906103849190613439565b610cd6565b005b34801561039757600080fd5b506103a0610ce6565b6040516103ad9190613b07565b60405180910390f35b6103d060048036038101906103cb919061369c565b610cf9565b005b3480156103de57600080fd5b506103f960048036038101906103f491906133d4565b610e91565b005b34801561040757600080fd5b50610410610fde565b005b34801561041e57600080fd5b506104396004803603810190610434919061357b565b6110a3565b005b34801561044757600080fd5b50610462600480360381019061045d9190613439565b61113c565b005b34801561047057600080fd5b5061047961115c565b6040516104869190613b22565b60405180910390f35b34801561049b57600080fd5b506104a46111ea565b6040516104b19190613b07565b60405180910390f35b3480156104c657600080fd5b506104e160048036038101906104dc919061369c565b6111fd565b6040516104ee9190613aa0565b60405180910390f35b34801561050357600080fd5b5061050c611213565b6040516105199190613d44565b60405180910390f35b34801561052e57600080fd5b50610537611219565b6040516105449190613b22565b60405180910390f35b34801561055957600080fd5b50610574600480360381019061056f91906133d4565b6112a7565b6040516105819190613d44565b60405180910390f35b34801561059657600080fd5b5061059f611377565b005b3480156105ad57600080fd5b506105b66113ff565b6040516105c39190613d44565b60405180910390f35b3480156105d857600080fd5b506105e161140b565b6040516105ee9190613aa0565b60405180910390f35b34801561060357600080fd5b5061061e6004803603810190610619919061365b565b611435565b005b34801561062c57600080fd5b506106356114cb565b6040516106429190613b22565b60405180910390f35b34801561065757600080fd5b50610672600480360381019061066d919061369c565b61155d565b005b34801561068057600080fd5b5061069b60048036038101906106969190613503565b6115e3565b005b3480156106a957600080fd5b506106b261175b565b6040516106bf9190613d44565b60405180910390f35b3480156106d457600080fd5b506106dd611761565b6040516106ea9190613d44565b60405180910390f35b3480156106ff57600080fd5b5061070861184a565b6040516107159190613d44565b60405180910390f35b34801561072a57600080fd5b50610745600480360381019061074091906135cd565b61184f565b005b34801561075357600080fd5b5061076e60048036038101906107699190613488565b61191c565b005b34801561077c57600080fd5b506107976004803603810190610792919061369c565b611998565b6040516107a49190613b22565b60405180910390f35b6107c760048036038101906107c2919061369c565b611ac3565b005b3480156107d557600080fd5b506107de611c7e565b6040516107eb9190613b07565b60405180910390f35b34801561080057600080fd5b50610809611c91565b6040516108169190613d44565b60405180910390f35b34801561082b57600080fd5b50610834611c9d565b6040516108419190613d44565b60405180910390f35b34801561085657600080fd5b50610871600480360381019061086c91906133fd565b611ca3565b60405161087e9190613b07565b60405180910390f35b34801561089357600080fd5b506108ae60048036038101906108a991906133d4565b611d37565b005b3480156108bc57600080fd5b506108c5611e2f565b6040516108d29190613d44565b60405180910390f35b3480156108e757600080fd5b5061090260048036038101906108fd919061365b565b611e35565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109cf57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109df57506109de82611ecb565b5b9050919050565b6060600280546109f59061404b565b80601f0160208091040260200160405190810160405280929190818152602001828054610a219061404b565b8015610a6e5780601f10610a4357610100808354040283529160200191610a6e565b820191906000526020600020905b815481529060010190602001808311610a5157829003601f168201915b5050505050905090565b6000610a8382611f35565b610ab9576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610aff826111fd565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b67576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b86611f83565b73ffffffffffffffffffffffffffffffffffffffff1614158015610bb85750610bb681610bb1611f83565b611ca3565b155b15610bef576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610bfa838383611f8b565b505050565b610c07611f83565b73ffffffffffffffffffffffffffffffffffffffff16610c2561140b565b73ffffffffffffffffffffffffffffffffffffffff1614610c7b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7290613c24565b60405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000610cc961203d565b6001546000540303905090565b610ce1838383612042565b505050565b601260019054906101000a900460ff1681565b60026009541415610d3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3690613ce4565b60405180910390fd5b6002600981905550601260019054906101000a900460ff16610d96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8d90613b84565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614610e04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dfb90613be4565b60405180910390fd5b600081610e0f611761565b610e199190613f07565b905080341015610e5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5590613d04565b60405180910390fd5b610e67826124f8565b80341115610e8557610e84338234610e7f9190613f61565b6125e4565b5b50600160098190555050565b610e99611f83565b73ffffffffffffffffffffffffffffffffffffffff16610eb761140b565b73ffffffffffffffffffffffffffffffffffffffff1614610f0d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0490613c24565b60405180910390fd5b601260029054906101000a900460ff1615610f5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5490613b64565b60405180910390fd5b600c546064610f6a6126d8565b610f749190613e80565b1115610fb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fac90613d24565b60405180910390fd5b610fc08160646126eb565b6001601260026101000a81548160ff02191690831515021790555050565b610fe6611f83565b73ffffffffffffffffffffffffffffffffffffffff1661100461140b565b73ffffffffffffffffffffffffffffffffffffffff161461105a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105190613c24565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050501580156110a0573d6000803e3d6000fd5b50565b6110ab611f83565b73ffffffffffffffffffffffffffffffffffffffff166110c961140b565b73ffffffffffffffffffffffffffffffffffffffff161461111f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111690613c24565b60405180910390fd5b80601260006101000a81548160ff02191690831515021790555050565b6111578383836040518060200160405280600081525061191c565b505050565b601080546111699061404b565b80601f01602080910402602001604051908101604052809291908181526020018280546111959061404b565b80156111e25780601f106111b7576101008083540402835291602001916111e2565b820191906000526020600020905b8154815290600101906020018083116111c557829003601f168201915b505050505081565b601260009054906101000a900460ff1681565b600061120882612709565b600001519050919050565b600f5481565b601180546112269061404b565b80601f01602080910402602001604051908101604052809291908181526020018280546112529061404b565b801561129f5780601f106112745761010080835404028352916020019161129f565b820191906000526020600020905b81548152906001019060200180831161128257829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561130f576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b61137f611f83565b73ffffffffffffffffffffffffffffffffffffffff1661139d61140b565b73ffffffffffffffffffffffffffffffffffffffff16146113f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113ea90613c24565b60405180910390fd5b6113fd6000612998565b565b67058d15e17628000081565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61143d611f83565b73ffffffffffffffffffffffffffffffffffffffff1661145b61140b565b73ffffffffffffffffffffffffffffffffffffffff16146114b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114a890613c24565b60405180910390fd5b80601090805190602001906114c79291906131a0565b5050565b6060600380546114da9061404b565b80601f01602080910402602001604051908101604052809291908181526020018280546115069061404b565b80156115535780601f1061152857610100808354040283529160200191611553565b820191906000526020600020905b81548152906001019060200180831161153657829003601f168201915b5050505050905090565b611565611f83565b73ffffffffffffffffffffffffffffffffffffffff1661158361140b565b73ffffffffffffffffffffffffffffffffffffffff16146115d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d090613c24565b60405180910390fd5b80600b8190555050565b6115eb611f83565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611650576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806007600061165d611f83565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661170a611f83565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161174f9190613b07565b60405180910390a35050565b600c5481565b6000601260019054906101000a900460ff166117b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a990613c04565b60405180910390fd5b60006117bc612a5e565b9050600e5481106117d85767058d15e176280000915050611847565b6000600e548267058d15e176280000670de0b6b3a76400006117fa9190613f61565b6118049190613f07565b61180e9190613ed6565b670de0b6b3a76400006118219190613f61565b905067058d15e17628000081116118405767058d15e176280000611842565b805b925050505b90565b606481565b611857611f83565b73ffffffffffffffffffffffffffffffffffffffff1661187561140b565b73ffffffffffffffffffffffffffffffffffffffff16146118cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c290613c24565b60405180910390fd5b6000601260006101000a81548160ff02191690831515021790555081601260016101000a81548160ff02191690831515021790555060008111156119185780600e8190555042600f819055505b5050565b611927848484612042565b6119468373ffffffffffffffffffffffffffffffffffffffff16612a84565b801561195b575061195984848484612aa7565b155b15611992576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b6060600080601080546119aa9061404b565b905011905080611a4757601180546119c19061404b565b80601f01602080910402602001604051908101604052809291908181526020018280546119ed9061404b565b8015611a3a5780601f10611a0f57610100808354040283529160200191611a3a565b820191906000526020600020905b815481529060010190602001808311611a1d57829003601f168201915b5050505050915050611abe565b611a5083611f35565b611a8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8690613c64565b60405180910390fd5b6010611a9a84612c07565b604051602001611aab929190613a67565b6040516020818303038152906040529150505b919050565b60026009541415611b09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b0090613ce4565b60405180910390fd5b6002600981905550601260009054906101000a900460ff16611b60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5790613cc4565b60405180910390fd5b8067058d15e176280000611b749190613f07565b341015611bb6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bad90613d04565b60405180910390fd5b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166314f329af600b5483336040518463ffffffff1660e01b8152600401611c1793929190613d5f565b602060405180830381600087803b158015611c3157600080fd5b505af1158015611c45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c6991906135a4565b50611c73816124f8565b600160098190555050565b601260029054906101000a900460ff1681565b670de0b6b3a764000081565b600d5481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611d3f611f83565b73ffffffffffffffffffffffffffffffffffffffff16611d5d61140b565b73ffffffffffffffffffffffffffffffffffffffff1614611db3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611daa90613c24565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611e23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1a90613b44565b60405180910390fd5b611e2c81612998565b50565b600e5481565b611e3d611f83565b73ffffffffffffffffffffffffffffffffffffffff16611e5b61140b565b73ffffffffffffffffffffffffffffffffffffffff1614611eb1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ea890613c24565b60405180910390fd5b8060119080519060200190611ec79291906131a0565b5050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600081611f4061203d565b11158015611f4f575060005482105b8015611f7c575060046000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600090565b600061204d82612709565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146120b8576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff166120d9611f83565b73ffffffffffffffffffffffffffffffffffffffff161480612108575061210785612102611f83565b611ca3565b5b8061214d5750612116611f83565b73ffffffffffffffffffffffffffffffffffffffff1661213584610a78565b73ffffffffffffffffffffffffffffffffffffffff16145b905080612186576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156121ed576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6121fa8585856001612db4565b61220660008487611f8b565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600460008581526020019081526020016000209050848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060006001850190506000600460008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561248657600054821461248557878160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46124f18585856001612dba565b5050505050565b6000811161253b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161253290613ca4565b60405180910390fd5b600d54811115612580576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161257790613c84565b60405180910390fd5b600c548161258c6126d8565b6125969190613e80565b11156125d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125ce90613c44565b60405180910390fd5b6125e133826126eb565b50565b80471015612627576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161261e90613bc4565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161264d90613a8b565b60006040518083038185875af1925050503d806000811461268a576040519150601f19603f3d011682016040523d82523d6000602084013e61268f565b606091505b50509050806126d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126ca90613ba4565b60405180910390fd5b505050565b60006126e261203d565b60005403905090565b612705828260405180602001604052806000815250612dc0565b5050565b612711613226565b60008290508061271f61203d565b1115801561272e575060005481105b15612961576000600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050806040015161295f57600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612843578092505050612993565b5b60011561295e57818060019003925050600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612959578092505050612993565b612844565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080600f5411612a70576000612a7f565b600f5442612a7e9190613f61565b5b905090565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612acd611f83565b8786866040518563ffffffff1660e01b8152600401612aef9493929190613abb565b602060405180830381600087803b158015612b0957600080fd5b505af1925050508015612b3a57506040513d601f19601f82011682018060405250810190612b379190613632565b60015b612bb4573d8060008114612b6a576040519150601f19603f3d011682016040523d82523d6000602084013e612b6f565b606091505b50600081511415612bac576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60606000821415612c4f576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612daf565b600082905060005b60008214612c81578080612c6a906140ae565b915050600a82612c7a9190613ed6565b9150612c57565b60008167ffffffffffffffff811115612cc3577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612cf55781602001600182028036833780820191505090505b5090505b60008514612da857600182612d0e9190613f61565b9150600a85612d1d91906140f7565b6030612d299190613e80565b60f81b818381518110612d65577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612da19190613ed6565b9450612cf9565b8093505050505b919050565b50505050565b50505050565b612dcd8383836001612dd2565b505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415612e3f576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000841415612e7a576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612e876000868387612db4565b83600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060008190506000858201905083801561305157506130508773ffffffffffffffffffffffffffffffffffffffff16612a84565b5b15613117575b818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46130c66000888480600101955088612aa7565b6130fc576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8082141561305757826000541461311257600080fd5b613183565b5b818060010192508773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480821415613118575b8160008190555050506131996000868387612dba565b5050505050565b8280546131ac9061404b565b90600052602060002090601f0160209004810192826131ce5760008555613215565b82601f106131e757805160ff1916838001178555613215565b82800160010185558215613215579182015b828111156132145782518255916020019190600101906131f9565b5b5090506132229190613269565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b8082111561328257600081600090555060010161326a565b5090565b600061329961329484613dbb565b613d96565b9050828152602081018484840111156132b157600080fd5b6132bc848285614009565b509392505050565b60006132d76132d284613dec565b613d96565b9050828152602081018484840111156132ef57600080fd5b6132fa848285614009565b509392505050565b600081359050613311816145de565b92915050565b600081359050613326816145f5565b92915050565b60008151905061333b816145f5565b92915050565b6000813590506133508161460c565b92915050565b6000815190506133658161460c565b92915050565b600082601f83011261337c57600080fd5b813561338c848260208601613286565b91505092915050565b600082601f8301126133a657600080fd5b81356133b68482602086016132c4565b91505092915050565b6000813590506133ce81614623565b92915050565b6000602082840312156133e657600080fd5b60006133f484828501613302565b91505092915050565b6000806040838503121561341057600080fd5b600061341e85828601613302565b925050602061342f85828601613302565b9150509250929050565b60008060006060848603121561344e57600080fd5b600061345c86828701613302565b935050602061346d86828701613302565b925050604061347e868287016133bf565b9150509250925092565b6000806000806080858703121561349e57600080fd5b60006134ac87828801613302565b94505060206134bd87828801613302565b93505060406134ce878288016133bf565b925050606085013567ffffffffffffffff8111156134eb57600080fd5b6134f78782880161336b565b91505092959194509250565b6000806040838503121561351657600080fd5b600061352485828601613302565b925050602061353585828601613317565b9150509250929050565b6000806040838503121561355257600080fd5b600061356085828601613302565b9250506020613571858286016133bf565b9150509250929050565b60006020828403121561358d57600080fd5b600061359b84828501613317565b91505092915050565b6000602082840312156135b657600080fd5b60006135c48482850161332c565b91505092915050565b600080604083850312156135e057600080fd5b60006135ee85828601613317565b92505060206135ff858286016133bf565b9150509250929050565b60006020828403121561361b57600080fd5b600061362984828501613341565b91505092915050565b60006020828403121561364457600080fd5b600061365284828501613356565b91505092915050565b60006020828403121561366d57600080fd5b600082013567ffffffffffffffff81111561368757600080fd5b61369384828501613395565b91505092915050565b6000602082840312156136ae57600080fd5b60006136bc848285016133bf565b91505092915050565b6136ce81613f95565b82525050565b6136dd81613fa7565b82525050565b60006136ee82613e32565b6136f88185613e48565b9350613708818560208601614018565b613711816141e4565b840191505092915050565b600061372782613e3d565b6137318185613e64565b9350613741818560208601614018565b61374a816141e4565b840191505092915050565b600061376082613e3d565b61376a8185613e75565b935061377a818560208601614018565b80840191505092915050565b600081546137938161404b565b61379d8186613e75565b945060018216600081146137b857600181146137c9576137fc565b60ff198316865281860193506137fc565b6137d285613e1d565b60005b838110156137f4578154818901526001820191506020810190506137d5565b838801955050505b50505092915050565b6000613812602683613e64565b915061381d826141f5565b604082019050919050565b6000613835602283613e64565b915061384082614244565b604082019050919050565b6000613858601a83613e64565b915061386382614293565b602082019050919050565b600061387b603a83613e64565b9150613886826142bc565b604082019050919050565b600061389e601d83613e64565b91506138a98261430b565b602082019050919050565b60006138c1601e83613e64565b91506138cc82614334565b602082019050919050565b60006138e4601983613e64565b91506138ef8261435d565b602082019050919050565b6000613907602083613e64565b915061391282614386565b602082019050919050565b600061392a603883613e64565b9150613935826143af565b604082019050919050565b600061394d602f83613e64565b9150613958826143fe565b604082019050919050565b6000613970602e83613e64565b915061397b8261444d565b604082019050919050565b6000613993600083613e59565b915061399e8261449c565b600082019050919050565b60006139b6602783613e64565b91506139c18261449f565b604082019050919050565b60006139d9601583613e64565b91506139e4826144ee565b602082019050919050565b60006139fc601f83613e64565b9150613a0782614517565b602082019050919050565b6000613a1f602383613e64565b9150613a2a82614540565b604082019050919050565b6000613a42603483613e64565b9150613a4d8261458f565b604082019050919050565b613a6181613fff565b82525050565b6000613a738285613786565b9150613a7f8284613755565b91508190509392505050565b6000613a9682613986565b9150819050919050565b6000602082019050613ab560008301846136c5565b92915050565b6000608082019050613ad060008301876136c5565b613add60208301866136c5565b613aea6040830185613a58565b8181036060830152613afc81846136e3565b905095945050505050565b6000602082019050613b1c60008301846136d4565b92915050565b60006020820190508181036000830152613b3c818461371c565b905092915050565b60006020820190508181036000830152613b5d81613805565b9050919050565b60006020820190508181036000830152613b7d81613828565b9050919050565b60006020820190508181036000830152613b9d8161384b565b9050919050565b60006020820190508181036000830152613bbd8161386e565b9050919050565b60006020820190508181036000830152613bdd81613891565b9050919050565b60006020820190508181036000830152613bfd816138b4565b9050919050565b60006020820190508181036000830152613c1d816138d7565b9050919050565b60006020820190508181036000830152613c3d816138fa565b9050919050565b60006020820190508181036000830152613c5d8161391d565b9050919050565b60006020820190508181036000830152613c7d81613940565b9050919050565b60006020820190508181036000830152613c9d81613963565b9050919050565b60006020820190508181036000830152613cbd816139a9565b9050919050565b60006020820190508181036000830152613cdd816139cc565b9050919050565b60006020820190508181036000830152613cfd816139ef565b9050919050565b60006020820190508181036000830152613d1d81613a12565b9050919050565b60006020820190508181036000830152613d3d81613a35565b9050919050565b6000602082019050613d596000830184613a58565b92915050565b6000606082019050613d746000830186613a58565b613d816020830185613a58565b613d8e60408301846136c5565b949350505050565b6000613da0613db1565b9050613dac828261407d565b919050565b6000604051905090565b600067ffffffffffffffff821115613dd657613dd56141b5565b5b613ddf826141e4565b9050602081019050919050565b600067ffffffffffffffff821115613e0757613e066141b5565b5b613e10826141e4565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000613e8b82613fff565b9150613e9683613fff565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613ecb57613eca614128565b5b828201905092915050565b6000613ee182613fff565b9150613eec83613fff565b925082613efc57613efb614157565b5b828204905092915050565b6000613f1282613fff565b9150613f1d83613fff565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613f5657613f55614128565b5b828202905092915050565b6000613f6c82613fff565b9150613f7783613fff565b925082821015613f8a57613f89614128565b5b828203905092915050565b6000613fa082613fdf565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b8381101561403657808201518184015260208101905061401b565b83811115614045576000848401525b50505050565b6000600282049050600182168061406357607f821691505b6020821081141561407757614076614186565b5b50919050565b614086826141e4565b810181811067ffffffffffffffff821117156140a5576140a46141b5565b5b80604052505050565b60006140b982613fff565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156140ec576140eb614128565b5b600182019050919050565b600061410282613fff565b915061410d83613fff565b92508261411d5761411c614157565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f5265736572766573206861766520616c7265616479206265656e206d696e746560008201527f642e000000000000000000000000000000000000000000000000000000000000602082015250565b7f5075626c69632073616c65206973206e6f74206163746976652e000000000000600082015250565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b7f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000600082015250565b7f5075626c69632073616c65206973206e6f742061637469766500000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f5468697320707572636861736520776f756c6420657863656564206d6178207360008201527f7570706c79206f662047656e6573697320417661746172730000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f5175616e74697479206973206d6f7265207468616e20616c6c6f77656420706560008201527f72207472616e73616374696f6e2e000000000000000000000000000000000000602082015250565b50565b7f596f75206d757374206d696e74206174206c6561737420312047656e6573697360008201527f2041766174617200000000000000000000000000000000000000000000000000602082015250565b7f50726573616c65206973206e6f74206163746976650000000000000000000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f5468652065746865722076616c75652073656e74206973206e6f7420636f727260008201527f6563740000000000000000000000000000000000000000000000000000000000602082015250565b7f54686973206d696e7420776f756c6420657863656564206d617820737570706c60008201527f79206f662047656e657369732041766174617273000000000000000000000000602082015250565b6145e781613f95565b81146145f257600080fd5b50565b6145fe81613fa7565b811461460957600080fd5b50565b61461581613fb3565b811461462057600080fd5b50565b61462c81613fff565b811461463757600080fd5b5056fea26469706673582212205c963be89ee36c357ed50141c4ecbc9d39e80e84d885999679dc0e1ebc3294fc64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000052a0ae79facf56421977b19bf1052fdf8b1c5c160000000000000000000000000000000000000000000000000000000000003a980000000000000000000000000000000000000000000000000000000000000014
-----Decoded View---------------
Arg [0] : _nftwWhitelist (address): 0x52a0ae79FAcf56421977b19bF1052fDf8B1c5C16
Arg [1] : _maxAvatars (uint256): 15000
Arg [2] : _maxAvatarsPerPurchase (uint256): 20
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000052a0ae79facf56421977b19bf1052fdf8b1c5c16
Arg [1] : 0000000000000000000000000000000000000000000000000000000000003a98
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000014
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.