ERC-721
Overview
Max Total Supply
725 PDE
Holders
346
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 PDELoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
PocketDimension
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity 0.8.4; import '@openzeppelin/contracts/interfaces/IERC20.sol'; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import '@openzeppelin/contracts/interfaces/IERC165.sol'; import '@openzeppelin/contracts/interfaces/IERC2981.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; contract PocketDimension is ERC721A, Ownable, Pausable, ReentrancyGuard, IERC2981 { using Strings for uint256; using Strings for uint8; using Counters for Counters.Counter; Counters.Counter private _tokenIds; mapping (uint256 => uint256) public _tokens; mapping (uint256 => uint256) public _landTypeCounter; bool public saleActive = false; string private baseURI; string private tokenSuffixURI; string private contractMetadata = 'contract.json'; uint256 public constant TICK_PERIOD = 45 minutes; // Time period to decrease price uint256 public constant PUBLIC_SALE_PERIOD = 225 minutes; // Dutch Auction Time Period uint256 public constant STARTING_PRICE = 2000000000000000000; // 2 ETH uint256 public constant BOTTOM_PRICE = 1000000000000000000; // 1 ETH uint256 public constant SALE_PRICE_STEP = 200000000000000000; // 0.2 ETH uint256 public constant MINT_BATCH_LIMIT = 5; // Max number of Tokens minted in a txn event TokenMinted(address indexed owner, uint256 indexed landType, uint256 indexed quantity); event SaleStatusChange(address indexed issuer, bool indexed status); event ContractWithdraw(address indexed initiator, address indexed hokWithdrawAddress, uint256 amount); event WithdrawAddressChanged(address indexed initiator, address indexed previousAddress, address indexed newAddress); event SaleAddressChanged(address indexed initiator, address indexed previousAddress, address indexed newAddress); event MinterAddressChanged(address indexed initiator, address indexed previousAddress, address indexed newAddress); uint16 internal royalty = 500; // base 10000, 5% uint16 public constant BASE = 10000; uint256 public saleStartsAt; uint256 public publicsaleStartsAt; uint256 public publicsaleEndsAt; uint256 public privatesaleStartsAt; uint256 public privatesaleEndsAt; uint256 public constant MAX_PRIVATE_SALE_SUPPLY = 10000; uint256 public constant MAX_TOKENS = 10000; // Max number of token sold in sale uint256 public constant MAX_INTERNAL_SUPPLY = 235; address private hokWithdrawAddress; address private hokMinterAddress; uint256 MAX_PRIVATE_LAND_SALE_PER_TYPE = 1000; // max private land sale uint256 MAX_PUBLIC_LAND_SALE_PER_TYPE = 1000; // max public land sale struct memberRecord { uint8 balance; bool exists; bool redeemed; uint8 minted; } mapping (address => memberRecord) public _memberslist; constructor(string memory _baseContractURI, string memory _tokenSuffixURI, uint256 _saleStartTime) ERC721A("Pocket Dimension Earth", "PDE") { baseURI = _baseContractURI; tokenSuffixURI = _tokenSuffixURI; saleStartsAt = _saleStartTime; // Unix Timestamp April 16, 2022 09:00:00 pm PST privatesaleStartsAt = saleStartsAt; // Start of Day 1, April 16, 2022 09:00:00 pm PST privatesaleEndsAt = saleStartsAt + 24 hours; // End of Day 1, April 17, 2022 08:59:59 am PST publicsaleStartsAt = saleStartsAt + 24 hours; // Start of Day 2, April 17, 2022 09:00:00 pm PST publicsaleEndsAt = saleStartsAt + 48 hours; // End of Day 2, April 18, 2022 08:59:59 am PST } /** * @dev mints `numTokens` tokens of HOK token and assigns it to * `msg.sender` by calling _safeMint function. * * Emits a {TokenMinted} event. * Emits two {TransferSingle} events via ERC721 Contract. * * Requirements: * - `saleActive` must be set to true. * - Current timestamp must greater than or equal `saleStartsAt`. * - Current timestamp must within period of private sale `privatesaleStartsAt` - `privatesaleEndsAt`. * - `msg.sender` is among whitelisted HOK memebrs or partners * - Ether amount sent greater or equal the base price multipled by `numTokens`. * - `numTokens` within limits of max number of tokens minted in single txn. * - `landType` type of land for mint * - Max number of tokens for the private sale not reached * @param landType - Type of land * @param numTokens - Number of tokens to be minted */ function mintPrivateSale(uint8 landType, uint256 numTokens) external payable { require(saleActive && block.timestamp >= saleStartsAt, "Sale not active"); uint256 time = (block.timestamp); require(time > privatesaleStartsAt && time < privatesaleEndsAt, "Private sale over"); require(_memberslist[msg.sender].exists, "Restricted access"); require(_memberslist[msg.sender].minted + numTokens < _memberslist[msg.sender].balance, "User mint over allowed number"); // fix PPS-02 require(landType > 0 && landType < 11, "Invalid Land type"); require(_landTypeCounter[landType] + numTokens < MAX_PRIVATE_LAND_SALE_PER_TYPE + 1, "Sold out"); require((_tokenIds.current() + numTokens) <= MAX_PRIVATE_SALE_SUPPLY, "Private sale sold out"); require(msg.value >= BOTTOM_PRICE * numTokens, "Insufficient Eth"); require(numTokens <= MINT_BATCH_LIMIT && numTokens > 0, "Wrong token number"); for(uint256 i = 0; i < numTokens; i++){ _tokens[_tokenIds.current()] = landType; _tokenIds.increment(); _memberslist[msg.sender].minted += 1; } _landTypeCounter[landType] += numTokens; _safeMint(msg.sender, numTokens); emit TokenMinted(msg.sender, landType, numTokens); } /** * @dev mints `numTokens` tokens of HOK token and assigns it to * `msg.sender` by calling _safeMint function. * * Emits a {TokenMinted} event. * Emits two {TransferSingle} events via ERC721 Contract. * * Requirements: * - `saleActive` must be set to true. * - Current timestamp must greater than or equal `saleStartsAt`. * - Current timestamp must within period of public sale `publicsaleStartsAt` - `publicsaleEndsAt`. * - Ether amount sent greater or equal the current price multipled by `numTokens`. * - `numTokens` within limits of max number of tokens minted in single txn. * - Max number of tokens for the sale not reahced * @param numTokens - Number of tokens to be minted */ function mintPublicSale(uint8 landType, uint256 numTokens) external payable { require(saleActive && block.timestamp >= saleStartsAt, "Sale not active"); uint256 time = (block.timestamp); require(time > publicsaleStartsAt && time < publicsaleEndsAt, "Public sale over"); require(landType > 0 && landType < 11, "Invalid Land type"); require(_landTypeCounter[landType] + numTokens < MAX_PUBLIC_LAND_SALE_PER_TYPE + 1, "Sold out"); uint256 currentPrice = _getCurrentPrice(); require(msg.value >= currentPrice * numTokens, "Insufficient Eth"); require(numTokens <= MINT_BATCH_LIMIT && numTokens > 0, "Wrong token number"); require((_tokenIds.current() + numTokens) <= MAX_TOKENS, "Public sale sold out"); for(uint256 i = 0; i < numTokens; i++){ _tokens[_tokenIds.current()] = landType; _tokenIds.increment(); } _landTypeCounter[landType] += numTokens; _safeMint(msg.sender, numTokens); emit TokenMinted(msg.sender, landType, numTokens); } function _getCurrentPrice() internal view returns (uint256 ){ uint256 time = (block.timestamp); uint256 price = BOTTOM_PRICE; if(time > (PUBLIC_SALE_PERIOD + publicsaleStartsAt)) { return price; } uint256 timeSlot = (time-publicsaleStartsAt) / TICK_PERIOD; price = STARTING_PRICE - (SALE_PRICE_STEP * timeSlot); price = BOTTOM_PRICE > price ? BOTTOM_PRICE : price; return price; } function getCurrentPrice() external view returns (uint256 ){ uint256 time = (block.timestamp); if(time < publicsaleStartsAt) { return BOTTOM_PRICE; } return _getCurrentPrice(); } /** * @dev mints `numTokens` tokens of HOK token and assigns it to * `msg.sender` by calling _safeMint function. * * Emits a {TokenMinted} event. * Emits two {TransferSingle} events via ERC721 Contract. * * Requirements: * - Current timestamp must before the start of private sale `privatesaleStartsAt`. * - `msg.sender` is hokMinterAddress * - `numTokens` within limits of max number of tokens minted in single txn. * - `landType` type of land for mint * - Max number of tokens for the private sale not reached * @param landType - Type of land * @param numTokens - Number of tokens to be minted */ function mintInternal(uint8 landType, uint256 numTokens) external { uint256 time = (block.timestamp); require(time < privatesaleStartsAt, "Can only mint before private sale"); require(msg.sender == hokMinterAddress, "Not allowed"); require(landType > 0 && landType < 11, "Invalid Land type"); require(_landTypeCounter[landType] + numTokens < MAX_PRIVATE_LAND_SALE_PER_TYPE + 1, "Sold out"); require((_tokenIds.current() + numTokens) <= MAX_INTERNAL_SUPPLY, "Maximum number reached"); for(uint256 i = 0; i < numTokens; i++){ _tokens[_tokenIds.current()] = landType; _tokenIds.increment(); } _landTypeCounter[landType] += numTokens; _safeMint(msg.sender, numTokens); emit TokenMinted(msg.sender, landType, numTokens); } /** * @dev mints `numTokens` tokens of HOK token and assigns it to * `msg.sender` by calling _safeMint function. * * Emits a {TokenMinted} event. * Emits two {TransferSingle} events via ERC721 Contract. * * Requirements: * - Current timestamp must greater than `publicsaleEndsAt`. * - `numTokens` within limits. * - Max number of tokens for the sale not reahced * @param numTokens - Number of tokens to be minted */ function mintAfterSale(uint8 landType, uint256 numTokens) external onlyOwner { require(block.timestamp > publicsaleEndsAt, "Cannot mint"); require(landType > 0 && landType < 11, "Invalid Land type"); require(_landTypeCounter[landType] + numTokens < MAX_PUBLIC_LAND_SALE_PER_TYPE + 1, "Sold out"); require(numTokens > 0, "Wrong token number"); require((_tokenIds.current() + numTokens) <= MAX_TOKENS, "Public sale sold out"); for(uint256 i = 0; i < numTokens; i++){ _tokens[_tokenIds.current()] = landType; _tokenIds.increment(); } _landTypeCounter[landType] += numTokens; _safeMint(msg.sender, numTokens); emit TokenMinted(msg.sender, landType, numTokens); } /** * @dev Adds list of wallet addresses and their HOK membership card balances to whitelisted members in '_memberslist'. * * @param users - List of wallet addresses * @param balances - Users HOK membership card balances */ // function whitelistMembers (address[] memory users, uint8[] memory balances) public onlyOwner { function whitelistMembers (address[] memory users, uint8[] memory balances) external onlyOwner { require(!saleActive, "Cannot whitelist"); uint256 time = (block.timestamp); require(time < saleStartsAt, "Cannot modify after private sale start"); for (uint i = 0; i < users.length; i++) { _memberslist[users[i]].exists = true; _memberslist[users[i]].balance = balances[i]; _memberslist[users[i]].minted = 0; } } /** * @dev removes list of wallet addresses of already whitelisted members from '_memberslist'. * * @param users - List of wallet addresses */ function removeWhitelistMembers (address[] memory users) external onlyOwner { for (uint i = 0; i < users.length; i++) { delete _memberslist[users[i]]; } } /** * @dev Queries `_memberslist` and returns if '_address' exists or not. * * @param _address - user address */ function isWhitelisted(address _address) external view returns(bool) { // return (_memberslist[_address].exists || _partnerslist[_address]); return _memberslist[_address].exists; } function getPrivateRemLandType(uint256 landType) public view returns (uint256) { require(landType > 0 && landType < 11, "Invalid Land type"); return MAX_PRIVATE_LAND_SALE_PER_TYPE - _landTypeCounter[landType]; } function getPublicRemLandType(uint256 landType) public view returns (uint256) { require(landType > 0 && landType < 11, "Invalid Land type"); return MAX_PUBLIC_LAND_SALE_PER_TYPE - _landTypeCounter[landType]; } function getRemPrivateSaleSupply() public view returns (uint256) { return (MAX_PRIVATE_SALE_SUPPLY - _tokenIds.current() ); // return (MAX_TOKENS - _tokenIds.current() ); } function getRemPublicSaleSupply() public view returns (uint256) { return (MAX_TOKENS - _tokenIds.current() ); } /** * @dev function that overrides safeTransferFrom to ensure no transfer till sale is over * see {IERC721-safeTransferFrom}. * Requirements: * - `saleActive` must be set to false. */ function safeTransferFrom( address from, address to, uint256 id, bytes memory _data) public virtual override { require(!saleActive,"No Transfer during sale"); super.safeTransferFrom(from,to,id, _data); } /** * @dev function that overrides safeTransferFrom to ensure no transfer till sale is over * see {IERC721-safeTransferFrom}. * Requirements: * - `saleActive` must be set to false. */ function safeTransferFrom( address from, address to, uint256 id) public virtual override { require(!saleActive,"No Transfer during sale"); super.safeTransferFrom(from,to,id); } /** * @dev function that overrides safeTransferFrom to ensure no transfer till sale is over * see {IERC721-transferFrom}. * Requirements: * - `saleActive` must be set to false. */ function transferFrom( address from, address to, uint256 id) public virtual override { require(!saleActive,"No Transfer during sale"); super.transferFrom(from,to,id); } function setBaseURI(string memory baseContractURI) external onlyOwner { baseURI = baseContractURI; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseContractURI = _baseURI(); // TODO: change URI based on the _tokens landType, for now keep this return bytes(baseContractURI).length > 0 ? string(abi.encodePacked(baseContractURI, '/', _tokens[tokenId].toString(), '/', tokenId.toString(), tokenSuffixURI)) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the 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 override returns (string memory) { return baseURI; } /** * @dev returns the base contract metadata json object * this metadata file is used by OpenSea see {https://docs.opensea.io/docs/contract-level-metadata} * */ function contractURI() external view returns (string memory) { string memory baseContractURI = _baseURI(); return string(abi.encodePacked(baseContractURI, contractMetadata)); } /** * @dev Changes the sale status 'saleActive' from active to not active and vice versa * * Only Contract Owner can execute * * Emits a {SaleStatusChange} event. */ function changeSaleStatus() external onlyOwner{ // require(msg.sender == saleContractAdddress, "Not Allowed"); saleActive = !saleActive; emit SaleStatusChange(msg.sender, saleActive); } function getSaleStatus() external view returns(bool) { return saleActive; } /** * @dev withdraws the specified '_amount' from contract balance and send it to the withdraw Addresses based on split ratio. * * Emits a {ContractWithdraw} event. * @param _amount - Amount to be withdrawn */ function withdraw(uint256 _amount) public nonReentrant { require(msg.sender == hokWithdrawAddress, "Not allowed"); uint256 balance = address(this).balance; require(_amount <= balance,"Insufficient funds"); bool success; (success, ) = payable(hokWithdrawAddress).call{value: _amount}(''); require(success, 'Withdraw Failed'); emit ContractWithdraw(msg.sender, hokWithdrawAddress, _amount); } /// @dev withdraw ERC20 tokens divided by splits function withdrawTokens(address _tokenContract) external onlyOwner nonReentrant { IERC20 tokenContract = IERC20(_tokenContract); // transfer the token from address of hok address uint256 _amount = tokenContract.balanceOf(address(this)); tokenContract.transfer(hokWithdrawAddress, _amount); } /** * @dev Change the address that can withdraw the ETH. * * Emits a {WithdrawAddressChanged} event. * @param _newAddress - Address to be withdrawed to */ function changeWithdrawAddress(address _newAddress) public onlyOwner { require(_newAddress != address(0),'Non Zero Address'); emit WithdrawAddressChanged(msg.sender, hokWithdrawAddress, _newAddress); hokWithdrawAddress = _newAddress; } /** * @dev Change the address that can call the mint internal function. * * Emits a {MinterAddressChanged} event. * @param _minterAdress - Address of minter */ function changeHoKMinterAddress(address _minterAdress) public onlyOwner { require(_minterAdress != address(0),'Non Zero Address'); emit MinterAddressChanged(msg.sender, hokMinterAddress, _minterAdress); hokMinterAddress = _minterAdress; } /// @notice Calculate the royalty payment /// @param _salePrice the sale price of the token function royaltyInfo(uint256, uint256 _salePrice) external view override returns (address receiver, uint256 royaltyAmount) { return (address(this), (_salePrice * royalty) / BASE); } /// @dev set the royalty /// @param _royalty the royalty in base 10000, 500 = 5% function setRoyalty(uint16 _royalty) external virtual onlyOwner { require(_royalty >= 0 && _royalty <= 1000, 'Royalty must be between 0% and 10%.'); royalty = _royalty; } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A,IERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol) pragma solidity ^0.8.0; import "../token/ERC20/IERC20.sol";
// 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 // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// 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 // OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard */ interface IERC2981 is IERC165 { /** * @dev Called with the sale price to determine how much royalty is owed and to whom. * @param tokenId - the NFT asset queried for royalty information * @param salePrice - the sale price of the NFT asset specified by `tokenId` * @return receiver - address of who should be sent the royalty payment * @return royaltyAmount - the royalty payment amount for `salePrice` */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// 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 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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); }
{ "optimizer": { "enabled": true, "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":"string","name":"_baseContractURI","type":"string"},{"internalType":"string","name":"_tokenSuffixURI","type":"string"},{"internalType":"uint256","name":"_saleStartTime","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":"initiator","type":"address"},{"indexed":true,"internalType":"address","name":"hokWithdrawAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ContractWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"initiator","type":"address"},{"indexed":true,"internalType":"address","name":"previousAddress","type":"address"},{"indexed":true,"internalType":"address","name":"newAddress","type":"address"}],"name":"MinterAddressChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"initiator","type":"address"},{"indexed":true,"internalType":"address","name":"previousAddress","type":"address"},{"indexed":true,"internalType":"address","name":"newAddress","type":"address"}],"name":"SaleAddressChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"issuer","type":"address"},{"indexed":true,"internalType":"bool","name":"status","type":"bool"}],"name":"SaleStatusChange","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"landType","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"TokenMinted","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"initiator","type":"address"},{"indexed":true,"internalType":"address","name":"previousAddress","type":"address"},{"indexed":true,"internalType":"address","name":"newAddress","type":"address"}],"name":"WithdrawAddressChanged","type":"event"},{"inputs":[],"name":"BASE","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BOTTOM_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_INTERNAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PRIVATE_SALE_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_BATCH_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_SALE_PERIOD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SALE_PRICE_STEP","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":[],"name":"TICK_PERIOD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_landTypeCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_memberslist","outputs":[{"internalType":"uint8","name":"balance","type":"uint8"},{"internalType":"bool","name":"exists","type":"bool"},{"internalType":"bool","name":"redeemed","type":"bool"},{"internalType":"uint8","name":"minted","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_tokens","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":"address","name":"_minterAdress","type":"address"}],"name":"changeHoKMinterAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"changeSaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newAddress","type":"address"}],"name":"changeWithdrawAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"getCurrentPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"landType","type":"uint256"}],"name":"getPrivateRemLandType","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"landType","type":"uint256"}],"name":"getPublicRemLandType","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRemPrivateSaleSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRemPublicSaleSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSaleStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"landType","type":"uint8"},{"internalType":"uint256","name":"numTokens","type":"uint256"}],"name":"mintAfterSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"landType","type":"uint8"},{"internalType":"uint256","name":"numTokens","type":"uint256"}],"name":"mintInternal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"landType","type":"uint8"},{"internalType":"uint256","name":"numTokens","type":"uint256"}],"name":"mintPrivateSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint8","name":"landType","type":"uint8"},{"internalType":"uint256","name":"numTokens","type":"uint256"}],"name":"mintPublicSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"privatesaleEndsAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"privatesaleStartsAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicsaleEndsAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicsaleStartsAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"users","type":"address[]"}],"name":"removeWhitelistMembers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","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":"id","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleStartsAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseContractURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_royalty","type":"uint16"}],"name":"setRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"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":"id","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"users","type":"address[]"},{"internalType":"uint8[]","name":"balances","type":"uint8[]"}],"name":"whitelistMembers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenContract","type":"address"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
600d805460ff1916815560c060405260808190526c31b7b73a3930b1ba173539b7b760991b60a0908152620000389160109190620001eb565b506011805461ffff19166101f41790556103e86019819055601a553480156200006057600080fd5b5060405162003be238038062003be2833981016040819052620000839162000344565b604080518082018252601681527f506f636b65742044696d656e73696f6e2045617274680000000000000000000060208083019182528351808501909452600384526250444560e81b908401528151919291620000e391600291620001eb565b508051620000f9906003906020840190620001eb565b505060008055506200010b3362000199565b6008805460ff60a01b19169055600160095582516200013290600e906020860190620001eb565b5081516200014890600f906020850190620001eb565b5060128190556015819055620001628162015180620003b4565b601655601254620001779062015180620003b4565b6013556012546200018c906202a300620003b4565b601455506200042c915050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001f990620003d9565b90600052602060002090601f0160209004810192826200021d576000855562000268565b82601f106200023857805160ff191683800117855562000268565b8280016001018555821562000268579182015b82811115620002685782518255916020019190600101906200024b565b50620002769291506200027a565b5090565b5b808211156200027657600081556001016200027b565b600082601f830112620002a2578081fd5b81516001600160401b0380821115620002bf57620002bf62000416565b604051601f8301601f19908116603f01168101908282118183101715620002ea57620002ea62000416565b8160405283815260209250868385880101111562000306578485fd5b8491505b838210156200032957858201830151818301840152908201906200030a565b838211156200033a57848385830101525b9695505050505050565b60008060006060848603121562000359578283fd5b83516001600160401b038082111562000370578485fd5b6200037e8783880162000291565b9450602086015191508082111562000394578384fd5b50620003a38682870162000291565b925050604084015190509250925092565b60008219821115620003d457634e487b7160e01b81526011600452602481fd5b500190565b600181811c90821680620003ee57607f821691505b602082108114156200041057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6137a6806200043c6000396000f3fe60806040526004361061038c5760003560e01c8063708f87b7116101dc578063b88d4fde11610102578063e985e9c5116100a0578063f2fde38b1161006f578063f2fde38b14610a9a578063f47c84c5146107a8578063f79dc6f714610aba578063fc8ff57914610ad657600080fd5b8063e985e9c5146109e6578063eb91d37e14610a2f578063ec342ad014610a44578063ed70554d14610a6d57600080fd5b8063ca1d953c116100dc578063ca1d953c14610927578063d12f70291461093c578063dd9ef9a914610958578063e8a3d485146109d157600080fd5b8063b88d4fde146108c7578063c5cd668a146108e7578063c87b56dd1461090757600080fd5b80638da5cb5b1161017a578063a139762211610149578063a139762214610869578063a22cb4651461087e578063a5b16f511461089e578063b7be8cfe146108b457600080fd5b80638da5cb5b146108165780638f19c76b1461083457806395d89b41146108545780639f34835e1461086957600080fd5b806375d4f952116101b657806375d4f952146107a857806383476385146107be5780638a590efa146107de5780638c3c4b34146107fe57600080fd5b8063708f87b71461075e57806370a0823114610773578063715018a61461079357600080fd5b806331f27e0c116102c157806355f804b31161025f5780636352211e1161022e5780636352211e146106f157806368428a1b14610711578063684b188a1461072b57806369690ec21461073e57600080fd5b806355f804b31461068657806358194bca146106a6578063583e88ab146106bc5780635c975abb146106d257600080fd5b806342842e0e1161029b57806342842e0e1461061a57806345763d0c1461063a57806349df728c146106505780634bc9684a1461067057600080fd5b806331f27e0c1461059c57806336e79a5a146105bc5780633af32abf146105dc57600080fd5b806318160ddd1161032e5780632a55205a116103085780632a55205a146105075780632d15960c146105465780632dc04e46146105665780632e1a7d4d1461057c57600080fd5b806318160ddd146104a157806323b872dd146104ba5780632587894c146104da57600080fd5b8063095ea7b31161036a578063095ea7b314610420578063138a6cf614610442578063143a3f921461046c5780631453671d1461048157600080fd5b806301ffc9a71461039157806306fdde03146103c6578063081812fc146103e8575b600080fd5b34801561039d57600080fd5b506103b16103ac366004613207565b610aec565b60405190151581526020015b60405180910390f35b3480156103d257600080fd5b506103db610b17565b6040516103bd91906134a2565b3480156103f457600080fd5b506104086104033660046132a6565b610ba9565b6040516001600160a01b0390911681526020016103bd565b34801561042c57600080fd5b5061044061043b3660046130ce565b610bed565b005b34801561044e57600080fd5b5061045e670de0b6b3a764000081565b6040519081526020016103bd565b34801561047857600080fd5b5061045e600581565b34801561048d57600080fd5b5061044061049c366004612f99565b610c7b565b3480156104ad57600080fd5b506001546000540361045e565b3480156104c657600080fd5b506104406104d5366004612fe5565b610d55565b3480156104e657600080fd5b5061045e6104f53660046132a6565b600c6020526000908152604090205481565b34801561051357600080fd5b506105276105223660046132d6565b610d83565b604080516001600160a01b0390931683526020830191909152016103bd565b34801561055257600080fd5b5061045e6105613660046132a6565b610db4565b34801561057257600080fd5b5061045e60155481565b34801561058857600080fd5b506104406105973660046132a6565b610dfd565b3480156105a857600080fd5b506104406105b73660046132f7565b610fc8565b3480156105c857600080fd5b506104406105d7366004613284565b6111fc565b3480156105e857600080fd5b506103b16105f7366004612f99565b6001600160a01b03166000908152601b6020526040902054610100900460ff1690565b34801561062657600080fd5b50610440610635366004612fe5565b6112a0565b34801561064657600080fd5b5061045e60125481565b34801561065c57600080fd5b5061044061066b366004612f99565b6112ce565b34801561067c57600080fd5b5061045e610a8c81565b34801561069257600080fd5b506104406106a136600461323f565b61145f565b3480156106b257600080fd5b5061045e60145481565b3480156106c857600080fd5b5061045e60135481565b3480156106de57600080fd5b50600854600160a01b900460ff166103b1565b3480156106fd57600080fd5b5061040861070c3660046132a6565b6114a0565b34801561071d57600080fd5b50600d546103b19060ff1681565b6104406107393660046132f7565b6114b2565b34801561074a57600080fd5b506104406107593660046132f7565b61176b565b34801561076a57600080fd5b5061045e60eb81565b34801561077f57600080fd5b5061045e61078e366004612f99565b611981565b34801561079f57600080fd5b506104406119cf565b3480156107b457600080fd5b5061045e61271081565b3480156107ca57600080fd5b506104406107d93660046130f7565b611a05565b3480156107ea57600080fd5b506104406107f9366004612f99565b611a9f565b34801561080a57600080fd5b50600d5460ff166103b1565b34801561082257600080fd5b506008546001600160a01b0316610408565b34801561084057600080fd5b5061044061084f366004613129565b611b70565b34801561086057600080fd5b506103db611dc7565b34801561087557600080fd5b5061045e611dd6565b34801561088a57600080fd5b50610440610899366004613098565b611df2565b3480156108aa57600080fd5b5061045e6134bc81565b6104406108c23660046132f7565b611e88565b3480156108d357600080fd5b506104406108e2366004613020565b6121e8565b3480156108f357600080fd5b5061045e6109023660046132a6565b612217565b34801561091357600080fd5b506103db6109223660046132a6565b612260565b34801561093357600080fd5b50610440612348565b34801561094857600080fd5b5061045e671bc16d674ec8000081565b34801561096457600080fd5b506109a4610973366004612f99565b601b6020526000908152604090205460ff808216916101008104821691620100008204811691630100000090041684565b6040805160ff958616815293151560208501529115159183019190915290911660608201526080016103bd565b3480156109dd57600080fd5b506103db6123b9565b3480156109f257600080fd5b506103b1610a01366004612fb3565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610a3b57600080fd5b5061045e6123f0565b348015610a5057600080fd5b50610a5a61271081565b60405161ffff90911681526020016103bd565b348015610a7957600080fd5b5061045e610a883660046132a6565b600b6020526000908152604090205481565b348015610aa657600080fd5b50610440610ab5366004612f99565b61241c565b348015610ac657600080fd5b5061045e6702c68af0bb14000081565b348015610ae257600080fd5b5061045e60165481565b60006001600160e01b0319821663152a902d60e11b1480610b115750610b11826124b7565b92915050565b606060028054610b26906136a0565b80601f0160208091040260200160405190810160405280929190818152602001828054610b52906136a0565b8015610b9f5780601f10610b7457610100808354040283529160200191610b9f565b820191906000526020600020905b815481529060010190602001808311610b8257829003601f168201915b5050505050905090565b6000610bb482612507565b610bd1576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610bf8826114a0565b9050806001600160a01b0316836001600160a01b03161415610c2d5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610c4d5750610c4b8133610a01565b155b15610c6b576040516367d9dca160e11b815260040160405180910390fd5b610c76838383612532565b505050565b6008546001600160a01b03163314610cae5760405162461bcd60e51b8152600401610ca59061350c565b60405180910390fd5b6001600160a01b038116610cf75760405162461bcd60e51b815260206004820152601060248201526f4e6f6e205a65726f204164647265737360801b6044820152606401610ca5565b6017546040516001600160a01b0380841692169033907fe4835a96c34288994ead192162f76ebe82ffdb50721a3e0e8a0695a2790f3b4890600090a4601780546001600160a01b0319166001600160a01b0392909216919091179055565b600d5460ff1615610d785760405162461bcd60e51b8152600401610ca590613563565b610c7683838361258e565b6011546000908190309061271090610d9f9061ffff168661363e565b610da9919061362a565b915091509250929050565b60008082118015610dc55750600b82105b610de15760405162461bcd60e51b8152600401610ca5906134b5565b6000828152600c6020526040902054601a54610b11919061365d565b60026009541415610e505760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ca5565b60026009556017546001600160a01b03163314610e9d5760405162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b6044820152606401610ca5565b4780821115610ee35760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b6044820152606401610ca5565b6017546040516000916001600160a01b03169084908381818185875af1925050503d8060008114610f30576040519150601f19603f3d011682016040523d82523d6000602084013e610f35565b606091505b50508091505080610f7a5760405162461bcd60e51b815260206004820152600f60248201526e15da5d1a191c985dc811985a5b1959608a1b6044820152606401610ca5565b6017546040518481526001600160a01b039091169033907f33717283d41d9137bab8be49fdc145ea8d670d8b79619253b50defe346d31bc89060200160405180910390a35050600160095550565b601554429081106110255760405162461bcd60e51b815260206004820152602160248201527f43616e206f6e6c79206d696e74206265666f726520707269766174652073616c6044820152606560f81b6064820152608401610ca5565b6018546001600160a01b0316331461106d5760405162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b6044820152606401610ca5565b60008360ff161180156110835750600b8360ff16105b61109f5760405162461bcd60e51b8152600401610ca5906134b5565b6019546110ad9060016135ed565b60ff84166000908152600c60205260409020546110cb9084906135ed565b106110e85760405162461bcd60e51b8152600401610ca590613541565b60eb826110f4600a5490565b6110fe91906135ed565b11156111455760405162461bcd60e51b815260206004820152601660248201527513585e1a5b5d5b481b9d5b58995c881c995858da195960521b6044820152606401610ca5565b60005b82811015611192578360ff16600b6000611161600a5490565b8152602081019190915260400160002055611180600a80546001019055565b8061118a816136db565b915050611148565b5060ff83166000908152600c6020526040812080548492906111b59084906135ed565b909155506111c590503383612599565b604051829060ff85169033907f96234cb3d6c373a1aaa06497a540bc166d4b0359243a088eaf95e21d7253d0be90600090a4505050565b6008546001600160a01b031633146112265760405162461bcd60e51b8152600401610ca59061350c565b6103e88161ffff1611156112885760405162461bcd60e51b815260206004820152602360248201527f526f79616c7479206d757374206265206265747765656e20302520616e64203160448201526218129760e91b6064820152608401610ca5565b6011805461ffff191661ffff92909216919091179055565b600d5460ff16156112c35760405162461bcd60e51b8152600401610ca590613563565b610c768383836125b3565b6008546001600160a01b031633146112f85760405162461bcd60e51b8152600401610ca59061350c565b6002600954141561134b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ca5565b60026009556040516370a0823160e01b815230600482015281906000906001600160a01b038316906370a082319060240160206040518083038186803b15801561139457600080fd5b505afa1580156113a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113cc91906132be565b60175460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810183905291925083169063a9059cbb90604401602060405180830381600087803b15801561141c57600080fd5b505af1158015611430573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061145491906131eb565b505060016009555050565b6008546001600160a01b031633146114895760405162461bcd60e51b8152600401610ca59061350c565b805161149c90600e906020840190612e06565b5050565b60006114ab826125ce565b5192915050565b600d5460ff1680156114c657506012544210155b6115045760405162461bcd60e51b815260206004820152600f60248201526e53616c65206e6f742061637469766560881b6044820152606401610ca5565b601354429081118015611518575060145481105b6115575760405162461bcd60e51b815260206004820152601060248201526f283ab13634b19039b0b6329037bb32b960811b6044820152606401610ca5565b60008360ff1611801561156d5750600b8360ff16105b6115895760405162461bcd60e51b8152600401610ca5906134b5565b601a546115979060016135ed565b60ff84166000908152600c60205260409020546115b59084906135ed565b106115d25760405162461bcd60e51b8152600401610ca590613541565b60006115dc6126e8565b90506115e8838261363e565b34101561162a5760405162461bcd60e51b815260206004820152601060248201526f092dce6eaccccd2c6d2cadce8408ae8d60831b6044820152606401610ca5565b6005831115801561163b5750600083115b6116575760405162461bcd60e51b8152600401610ca5906134e0565b61271083611664600a5490565b61166e91906135ed565b11156116b35760405162461bcd60e51b8152602060048201526014602482015273141d589b1a58c81cd85b19481cdbdb19081bdd5d60621b6044820152606401610ca5565b60005b83811015611700578460ff16600b60006116cf600a5490565b81526020810191909152604001600020556116ee600a80546001019055565b806116f8816136db565b9150506116b6565b5060ff84166000908152600c6020526040812080548592906117239084906135ed565b9091555061173390503384612599565b604051839060ff86169033907f96234cb3d6c373a1aaa06497a540bc166d4b0359243a088eaf95e21d7253d0be90600090a450505050565b6008546001600160a01b031633146117955760405162461bcd60e51b8152600401610ca59061350c565b60145442116117d45760405162461bcd60e51b815260206004820152600b60248201526a10d85b9b9bdd081b5a5b9d60aa1b6044820152606401610ca5565b60008260ff161180156117ea5750600b8260ff16105b6118065760405162461bcd60e51b8152600401610ca5906134b5565b601a546118149060016135ed565b60ff83166000908152600c60205260409020546118329083906135ed565b1061184f5760405162461bcd60e51b8152600401610ca590613541565b6000811161186f5760405162461bcd60e51b8152600401610ca5906134e0565b6127108161187c600a5490565b61188691906135ed565b11156118cb5760405162461bcd60e51b8152602060048201526014602482015273141d589b1a58c81cd85b19481cdbdb19081bdd5d60621b6044820152606401610ca5565b60005b81811015611918578260ff16600b60006118e7600a5490565b8152602081019190915260400160002055611906600a80546001019055565b80611910816136db565b9150506118ce565b5060ff82166000908152600c60205260408120805483929061193b9084906135ed565b9091555061194b90503382612599565b604051819060ff84169033907f96234cb3d6c373a1aaa06497a540bc166d4b0359243a088eaf95e21d7253d0be90600090a45050565b60006001600160a01b0382166119aa576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b031633146119f95760405162461bcd60e51b8152600401610ca59061350c565b611a03600061277f565b565b6008546001600160a01b03163314611a2f5760405162461bcd60e51b8152600401610ca59061350c565b60005b815181101561149c57601b6000838381518110611a5f57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805463ffffffff1916905580611a97816136db565b915050611a32565b6008546001600160a01b03163314611ac95760405162461bcd60e51b8152600401610ca59061350c565b6001600160a01b038116611b125760405162461bcd60e51b815260206004820152601060248201526f4e6f6e205a65726f204164647265737360801b6044820152606401610ca5565b6018546040516001600160a01b0380841692169033907fdcad5043fde73148543e496c9a2e32530dce3cfa593f6905993e51dfff71a4ff90600090a4601880546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b03163314611b9a5760405162461bcd60e51b8152600401610ca59061350c565b600d5460ff1615611be05760405162461bcd60e51b815260206004820152601060248201526f10d85b9b9bdd081dda1a5d195b1a5cdd60821b6044820152606401610ca5565b60125442908110611c425760405162461bcd60e51b815260206004820152602660248201527f43616e6e6f74206d6f6469667920616674657220707269766174652073616c65604482015265081cdd185c9d60d21b6064820152608401610ca5565b60005b8351811015611dc1576001601b6000868481518110611c7457634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060000160016101000a81548160ff021916908315150217905550828181518110611cd657634e487b7160e01b600052603260045260246000fd5b6020026020010151601b6000868481518110611d0257634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060000160006101000a81548160ff021916908360ff1602179055506000601b6000868481518110611d6b57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060000160036101000a81548160ff021916908360ff1602179055508080611db9906136db565b915050611c45565b50505050565b606060038054610b26906136a0565b6000611de1600a5490565b611ded9061271061365d565b905090565b6001600160a01b038216331415611e1c5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600d5460ff168015611e9c57506012544210155b611eda5760405162461bcd60e51b815260206004820152600f60248201526e53616c65206e6f742061637469766560881b6044820152606401610ca5565b601554429081118015611eee575060165481105b611f2e5760405162461bcd60e51b8152602060048201526011602482015270283934bb30ba329039b0b6329037bb32b960791b6044820152606401610ca5565b336000908152601b6020526040902054610100900460ff16611f865760405162461bcd60e51b8152602060048201526011602482015270526573747269637465642061636365737360781b6044820152606401610ca5565b336000908152601b602052604090205460ff80821691611faf91859163010000009004166135ed565b10611ffc5760405162461bcd60e51b815260206004820152601d60248201527f55736572206d696e74206f76657220616c6c6f776564206e756d6265720000006044820152606401610ca5565b60008360ff161180156120125750600b8360ff16105b61202e5760405162461bcd60e51b8152600401610ca5906134b5565b60195461203c9060016135ed565b60ff84166000908152600c602052604090205461205a9084906135ed565b106120775760405162461bcd60e51b8152600401610ca590613541565b61271082612084600a5490565b61208e91906135ed565b11156120d45760405162461bcd60e51b8152602060048201526015602482015274141c9a5d985d19481cd85b19481cdbdb19081bdd5d605a1b6044820152606401610ca5565b6120e682670de0b6b3a764000061363e565b3410156121285760405162461bcd60e51b815260206004820152601060248201526f092dce6eaccccd2c6d2cadce8408ae8d60831b6044820152606401610ca5565b600582111580156121395750600082115b6121555760405162461bcd60e51b8152600401610ca5906134e0565b60005b82811015611192578360ff16600b6000612171600a5490565b8152602081019190915260400160002055612190600a80546001019055565b336000908152601b602052604090208054600191906003906121bd9084906301000000900460ff16613605565b92506101000a81548160ff021916908360ff16021790555080806121e0906136db565b915050612158565b600d5460ff161561220b5760405162461bcd60e51b8152600401610ca590613563565b611dc1848484846127d1565b600080821180156122285750600b82105b6122445760405162461bcd60e51b8152600401610ca5906134b5565b6000828152600c6020526040902054601954610b11919061365d565b606061226b82612507565b6122cf5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610ca5565b60006122d961281c565b905060008151116122f95760405180602001604052806000815250612341565b6000838152600b602052604090205481906123139061282b565b61231c8561282b565b600f60405160200161233194939291906133fd565b6040516020818303038152906040525b9392505050565b6008546001600160a01b031633146123725760405162461bcd60e51b8152600401610ca59061350c565b600d805460ff19811660ff91821615908117909255604051911615159033907fe3f6649f5bc36b8b8c13782cfdb234a2f34ea0a28e750e23ea10b14d550f643590600090a3565b606060006123c561281c565b90508060106040516020016123db9291906133d6565b60405160208183030381529060405291505090565b601354600090429081101561240e57670de0b6b3a764000091505090565b6124166126e8565b91505090565b6008546001600160a01b031633146124465760405162461bcd60e51b8152600401610ca59061350c565b6001600160a01b0381166124ab5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ca5565b6124b48161277f565b50565b60006001600160e01b031982166380ac58cd60e01b14806124e857506001600160e01b03198216635b5e139f60e01b145b80610b1157506301ffc9a760e01b6001600160e01b0319831614610b11565b6000805482108015610b11575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610c76838383612944565b61149c828260405180602001604052806000815250612b32565b610c76838383604051806020016040528060008152506121e8565b6040805160608101825260008082526020820181905291810191909152816000548110156126cf57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906126cd5780516001600160a01b031615612664579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff16151592810192909252156126c8579392505050565b612664565b505b604051636f96cda160e11b815260040160405180910390fd5b6013546000904290670de0b6b3a764000090612706906134bc6135ed565b8211156127135792915050565b6000610a8c60135484612726919061365d565b612730919061362a565b9050612744816702c68af0bb14000061363e565b61275690671bc16d674ec8000061365d565b915081670de0b6b3a76400001161276d5781612777565b670de0b6b3a76400005b949350505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127dc848484612944565b6001600160a01b0383163b151580156127fe57506127fc84848484612b3f565b155b15611dc1576040516368d2bf6b60e11b815260040160405180910390fd5b6060600e8054610b26906136a0565b60608161284f5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156128795780612863816136db565b91506128729050600a8361362a565b9150612853565b6000816001600160401b038111156128a157634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156128cb576020820181803683370190505b5090505b8415612777576128e060018361365d565b91506128ed600a866136f6565b6128f89060306135ed565b60f81b81838151811061291b57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061293d600a8661362a565b94506128cf565b600061294f826125ce565b9050836001600160a01b031681600001516001600160a01b0316146129865760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806129a457506129a48533610a01565b806129bf5750336129b484610ba9565b6001600160a01b0316145b9050806129df57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416612a0657604051633a954ecd60e21b815260040160405180910390fd5b612a1260008487612532565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116612ae6576000548214612ae657805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b610c768383836001612c36565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612b74903390899088908890600401613465565b602060405180830381600087803b158015612b8e57600080fd5b505af1925050508015612bbe575060408051601f3d908101601f19168201909252612bbb91810190613223565b60015b612c19573d808015612bec576040519150601f19603f3d011682016040523d82523d6000602084013e612bf1565b606091505b508051612c11576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6000546001600160a01b038516612c5f57604051622e076360e81b815260040160405180910390fd5b83612c7d5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b429092169190910217905580808501838015612d2e57506001600160a01b0387163b15155b15612db7575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612d7f6000888480600101955088612b3f565b612d9c576040516368d2bf6b60e11b815260040160405180910390fd5b80821415612d34578260005414612db257600080fd5b612dfd565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821415612db8575b50600055612b2b565b828054612e12906136a0565b90600052602060002090601f016020900481019282612e345760008555612e7a565b82601f10612e4d57805160ff1916838001178555612e7a565b82800160010185558215612e7a579182015b82811115612e7a578251825591602001919060010190612e5f565b50612e86929150612e8a565b5090565b5b80821115612e865760008155600101612e8b565b60006001600160401b03831115612eb857612eb8613736565b612ecb601f8401601f191660200161359a565b9050828152838383011115612edf57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114612f0d57600080fd5b919050565b600082601f830112612f22578081fd5b81356020612f37612f32836135ca565b61359a565b80838252828201915082860187848660051b8901011115612f56578586fd5b855b85811015612f7b57612f6982612ef6565b84529284019290840190600101612f58565b5090979650505050505050565b803560ff81168114612f0d57600080fd5b600060208284031215612faa578081fd5b61234182612ef6565b60008060408385031215612fc5578081fd5b612fce83612ef6565b9150612fdc60208401612ef6565b90509250929050565b600080600060608486031215612ff9578081fd5b61300284612ef6565b925061301060208501612ef6565b9150604084013590509250925092565b60008060008060808587031215613035578081fd5b61303e85612ef6565b935061304c60208601612ef6565b92506040850135915060608501356001600160401b0381111561306d578182fd5b8501601f8101871361307d578182fd5b61308c87823560208401612e9f565b91505092959194509250565b600080604083850312156130aa578182fd5b6130b383612ef6565b915060208301356130c38161374c565b809150509250929050565b600080604083850312156130e0578182fd5b6130e983612ef6565b946020939093013593505050565b600060208284031215613108578081fd5b81356001600160401b0381111561311d578182fd5b61277784828501612f12565b6000806040838503121561313b578182fd5b82356001600160401b0380821115613151578384fd5b61315d86838701612f12565b9350602091508185013581811115613173578384fd5b85019050601f81018613613185578283fd5b8035613193612f32826135ca565b80828252848201915084840189868560051b87010111156131b2578687fd5b8694505b838510156131db576131c781612f88565b8352600194909401939185019185016131b6565b5080955050505050509250929050565b6000602082840312156131fc578081fd5b81516123418161374c565b600060208284031215613218578081fd5b81356123418161375a565b600060208284031215613234578081fd5b81516123418161375a565b600060208284031215613250578081fd5b81356001600160401b03811115613265578182fd5b8201601f81018413613275578182fd5b61277784823560208401612e9f565b600060208284031215613295578081fd5b813561ffff81168114612341578182fd5b6000602082840312156132b7578081fd5b5035919050565b6000602082840312156132cf578081fd5b5051919050565b600080604083850312156132e8578182fd5b50508035926020909101359150565b60008060408385031215613309578182fd5b6130e983612f88565b6000815180845261332a816020860160208601613674565b601f01601f19169290920160200192915050565b8054600090600181811c908083168061335857607f831692505b602080841082141561337857634e487b7160e01b86526022600452602486fd5b81801561338c576001811461339d576133ca565b60ff198616895284890196506133ca565b60008881526020902060005b868110156133c25781548b8201529085019083016133a9565b505084890196505b50505050505092915050565b600083516133e8818460208801613674565b6133f48184018561333e565b95945050505050565b6000855161340f818460208a01613674565b8083019050602f60f81b808252865161342f816001850160208b01613674565b6001920191820152845161344a816002840160208901613674565b6134596002828401018661333e565b98975050505050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061349890830184613312565b9695505050505050565b6020815260006123416020830184613312565b602080825260119082015270496e76616c6964204c616e64207479706560781b604082015260600190565b6020808252601290820152712bb937b733903a37b5b2b710373ab6b132b960711b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526008908201526714dbdb19081bdd5d60c21b604082015260600190565b60208082526017908201527f4e6f205472616e7366657220647572696e672073616c65000000000000000000604082015260600190565b604051601f8201601f191681016001600160401b03811182821017156135c2576135c2613736565b604052919050565b60006001600160401b038211156135e3576135e3613736565b5060051b60200190565b600082198211156136005761360061370a565b500190565b600060ff821660ff84168060ff038211156136225761362261370a565b019392505050565b60008261363957613639613720565b500490565b60008160001904831182151516156136585761365861370a565b500290565b60008282101561366f5761366f61370a565b500390565b60005b8381101561368f578181015183820152602001613677565b83811115611dc15750506000910152565b600181811c908216806136b457607f821691505b602082108114156136d557634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156136ef576136ef61370a565b5060010190565b60008261370557613705613720565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b80151581146124b457600080fd5b6001600160e01b0319811681146124b457600080fdfea26469706673582212207830af07298968281d768d44d39ac2682a28bbe754e4f1f19fd285e1503b0f5a64736f6c63430008040033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000625ae800000000000000000000000000000000000000000000000000000000000000004e68747470733a2f2f686f6b2e6d7970696e6174612e636c6f75642f697066732f516d586d436379764672764b376251686358583745666f5a41586276445361734b574347735534516b483457364200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000052e6a736f6e000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x60806040526004361061038c5760003560e01c8063708f87b7116101dc578063b88d4fde11610102578063e985e9c5116100a0578063f2fde38b1161006f578063f2fde38b14610a9a578063f47c84c5146107a8578063f79dc6f714610aba578063fc8ff57914610ad657600080fd5b8063e985e9c5146109e6578063eb91d37e14610a2f578063ec342ad014610a44578063ed70554d14610a6d57600080fd5b8063ca1d953c116100dc578063ca1d953c14610927578063d12f70291461093c578063dd9ef9a914610958578063e8a3d485146109d157600080fd5b8063b88d4fde146108c7578063c5cd668a146108e7578063c87b56dd1461090757600080fd5b80638da5cb5b1161017a578063a139762211610149578063a139762214610869578063a22cb4651461087e578063a5b16f511461089e578063b7be8cfe146108b457600080fd5b80638da5cb5b146108165780638f19c76b1461083457806395d89b41146108545780639f34835e1461086957600080fd5b806375d4f952116101b657806375d4f952146107a857806383476385146107be5780638a590efa146107de5780638c3c4b34146107fe57600080fd5b8063708f87b71461075e57806370a0823114610773578063715018a61461079357600080fd5b806331f27e0c116102c157806355f804b31161025f5780636352211e1161022e5780636352211e146106f157806368428a1b14610711578063684b188a1461072b57806369690ec21461073e57600080fd5b806355f804b31461068657806358194bca146106a6578063583e88ab146106bc5780635c975abb146106d257600080fd5b806342842e0e1161029b57806342842e0e1461061a57806345763d0c1461063a57806349df728c146106505780634bc9684a1461067057600080fd5b806331f27e0c1461059c57806336e79a5a146105bc5780633af32abf146105dc57600080fd5b806318160ddd1161032e5780632a55205a116103085780632a55205a146105075780632d15960c146105465780632dc04e46146105665780632e1a7d4d1461057c57600080fd5b806318160ddd146104a157806323b872dd146104ba5780632587894c146104da57600080fd5b8063095ea7b31161036a578063095ea7b314610420578063138a6cf614610442578063143a3f921461046c5780631453671d1461048157600080fd5b806301ffc9a71461039157806306fdde03146103c6578063081812fc146103e8575b600080fd5b34801561039d57600080fd5b506103b16103ac366004613207565b610aec565b60405190151581526020015b60405180910390f35b3480156103d257600080fd5b506103db610b17565b6040516103bd91906134a2565b3480156103f457600080fd5b506104086104033660046132a6565b610ba9565b6040516001600160a01b0390911681526020016103bd565b34801561042c57600080fd5b5061044061043b3660046130ce565b610bed565b005b34801561044e57600080fd5b5061045e670de0b6b3a764000081565b6040519081526020016103bd565b34801561047857600080fd5b5061045e600581565b34801561048d57600080fd5b5061044061049c366004612f99565b610c7b565b3480156104ad57600080fd5b506001546000540361045e565b3480156104c657600080fd5b506104406104d5366004612fe5565b610d55565b3480156104e657600080fd5b5061045e6104f53660046132a6565b600c6020526000908152604090205481565b34801561051357600080fd5b506105276105223660046132d6565b610d83565b604080516001600160a01b0390931683526020830191909152016103bd565b34801561055257600080fd5b5061045e6105613660046132a6565b610db4565b34801561057257600080fd5b5061045e60155481565b34801561058857600080fd5b506104406105973660046132a6565b610dfd565b3480156105a857600080fd5b506104406105b73660046132f7565b610fc8565b3480156105c857600080fd5b506104406105d7366004613284565b6111fc565b3480156105e857600080fd5b506103b16105f7366004612f99565b6001600160a01b03166000908152601b6020526040902054610100900460ff1690565b34801561062657600080fd5b50610440610635366004612fe5565b6112a0565b34801561064657600080fd5b5061045e60125481565b34801561065c57600080fd5b5061044061066b366004612f99565b6112ce565b34801561067c57600080fd5b5061045e610a8c81565b34801561069257600080fd5b506104406106a136600461323f565b61145f565b3480156106b257600080fd5b5061045e60145481565b3480156106c857600080fd5b5061045e60135481565b3480156106de57600080fd5b50600854600160a01b900460ff166103b1565b3480156106fd57600080fd5b5061040861070c3660046132a6565b6114a0565b34801561071d57600080fd5b50600d546103b19060ff1681565b6104406107393660046132f7565b6114b2565b34801561074a57600080fd5b506104406107593660046132f7565b61176b565b34801561076a57600080fd5b5061045e60eb81565b34801561077f57600080fd5b5061045e61078e366004612f99565b611981565b34801561079f57600080fd5b506104406119cf565b3480156107b457600080fd5b5061045e61271081565b3480156107ca57600080fd5b506104406107d93660046130f7565b611a05565b3480156107ea57600080fd5b506104406107f9366004612f99565b611a9f565b34801561080a57600080fd5b50600d5460ff166103b1565b34801561082257600080fd5b506008546001600160a01b0316610408565b34801561084057600080fd5b5061044061084f366004613129565b611b70565b34801561086057600080fd5b506103db611dc7565b34801561087557600080fd5b5061045e611dd6565b34801561088a57600080fd5b50610440610899366004613098565b611df2565b3480156108aa57600080fd5b5061045e6134bc81565b6104406108c23660046132f7565b611e88565b3480156108d357600080fd5b506104406108e2366004613020565b6121e8565b3480156108f357600080fd5b5061045e6109023660046132a6565b612217565b34801561091357600080fd5b506103db6109223660046132a6565b612260565b34801561093357600080fd5b50610440612348565b34801561094857600080fd5b5061045e671bc16d674ec8000081565b34801561096457600080fd5b506109a4610973366004612f99565b601b6020526000908152604090205460ff808216916101008104821691620100008204811691630100000090041684565b6040805160ff958616815293151560208501529115159183019190915290911660608201526080016103bd565b3480156109dd57600080fd5b506103db6123b9565b3480156109f257600080fd5b506103b1610a01366004612fb3565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610a3b57600080fd5b5061045e6123f0565b348015610a5057600080fd5b50610a5a61271081565b60405161ffff90911681526020016103bd565b348015610a7957600080fd5b5061045e610a883660046132a6565b600b6020526000908152604090205481565b348015610aa657600080fd5b50610440610ab5366004612f99565b61241c565b348015610ac657600080fd5b5061045e6702c68af0bb14000081565b348015610ae257600080fd5b5061045e60165481565b60006001600160e01b0319821663152a902d60e11b1480610b115750610b11826124b7565b92915050565b606060028054610b26906136a0565b80601f0160208091040260200160405190810160405280929190818152602001828054610b52906136a0565b8015610b9f5780601f10610b7457610100808354040283529160200191610b9f565b820191906000526020600020905b815481529060010190602001808311610b8257829003601f168201915b5050505050905090565b6000610bb482612507565b610bd1576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610bf8826114a0565b9050806001600160a01b0316836001600160a01b03161415610c2d5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610c4d5750610c4b8133610a01565b155b15610c6b576040516367d9dca160e11b815260040160405180910390fd5b610c76838383612532565b505050565b6008546001600160a01b03163314610cae5760405162461bcd60e51b8152600401610ca59061350c565b60405180910390fd5b6001600160a01b038116610cf75760405162461bcd60e51b815260206004820152601060248201526f4e6f6e205a65726f204164647265737360801b6044820152606401610ca5565b6017546040516001600160a01b0380841692169033907fe4835a96c34288994ead192162f76ebe82ffdb50721a3e0e8a0695a2790f3b4890600090a4601780546001600160a01b0319166001600160a01b0392909216919091179055565b600d5460ff1615610d785760405162461bcd60e51b8152600401610ca590613563565b610c7683838361258e565b6011546000908190309061271090610d9f9061ffff168661363e565b610da9919061362a565b915091509250929050565b60008082118015610dc55750600b82105b610de15760405162461bcd60e51b8152600401610ca5906134b5565b6000828152600c6020526040902054601a54610b11919061365d565b60026009541415610e505760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ca5565b60026009556017546001600160a01b03163314610e9d5760405162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b6044820152606401610ca5565b4780821115610ee35760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b6044820152606401610ca5565b6017546040516000916001600160a01b03169084908381818185875af1925050503d8060008114610f30576040519150601f19603f3d011682016040523d82523d6000602084013e610f35565b606091505b50508091505080610f7a5760405162461bcd60e51b815260206004820152600f60248201526e15da5d1a191c985dc811985a5b1959608a1b6044820152606401610ca5565b6017546040518481526001600160a01b039091169033907f33717283d41d9137bab8be49fdc145ea8d670d8b79619253b50defe346d31bc89060200160405180910390a35050600160095550565b601554429081106110255760405162461bcd60e51b815260206004820152602160248201527f43616e206f6e6c79206d696e74206265666f726520707269766174652073616c6044820152606560f81b6064820152608401610ca5565b6018546001600160a01b0316331461106d5760405162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b6044820152606401610ca5565b60008360ff161180156110835750600b8360ff16105b61109f5760405162461bcd60e51b8152600401610ca5906134b5565b6019546110ad9060016135ed565b60ff84166000908152600c60205260409020546110cb9084906135ed565b106110e85760405162461bcd60e51b8152600401610ca590613541565b60eb826110f4600a5490565b6110fe91906135ed565b11156111455760405162461bcd60e51b815260206004820152601660248201527513585e1a5b5d5b481b9d5b58995c881c995858da195960521b6044820152606401610ca5565b60005b82811015611192578360ff16600b6000611161600a5490565b8152602081019190915260400160002055611180600a80546001019055565b8061118a816136db565b915050611148565b5060ff83166000908152600c6020526040812080548492906111b59084906135ed565b909155506111c590503383612599565b604051829060ff85169033907f96234cb3d6c373a1aaa06497a540bc166d4b0359243a088eaf95e21d7253d0be90600090a4505050565b6008546001600160a01b031633146112265760405162461bcd60e51b8152600401610ca59061350c565b6103e88161ffff1611156112885760405162461bcd60e51b815260206004820152602360248201527f526f79616c7479206d757374206265206265747765656e20302520616e64203160448201526218129760e91b6064820152608401610ca5565b6011805461ffff191661ffff92909216919091179055565b600d5460ff16156112c35760405162461bcd60e51b8152600401610ca590613563565b610c768383836125b3565b6008546001600160a01b031633146112f85760405162461bcd60e51b8152600401610ca59061350c565b6002600954141561134b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ca5565b60026009556040516370a0823160e01b815230600482015281906000906001600160a01b038316906370a082319060240160206040518083038186803b15801561139457600080fd5b505afa1580156113a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113cc91906132be565b60175460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810183905291925083169063a9059cbb90604401602060405180830381600087803b15801561141c57600080fd5b505af1158015611430573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061145491906131eb565b505060016009555050565b6008546001600160a01b031633146114895760405162461bcd60e51b8152600401610ca59061350c565b805161149c90600e906020840190612e06565b5050565b60006114ab826125ce565b5192915050565b600d5460ff1680156114c657506012544210155b6115045760405162461bcd60e51b815260206004820152600f60248201526e53616c65206e6f742061637469766560881b6044820152606401610ca5565b601354429081118015611518575060145481105b6115575760405162461bcd60e51b815260206004820152601060248201526f283ab13634b19039b0b6329037bb32b960811b6044820152606401610ca5565b60008360ff1611801561156d5750600b8360ff16105b6115895760405162461bcd60e51b8152600401610ca5906134b5565b601a546115979060016135ed565b60ff84166000908152600c60205260409020546115b59084906135ed565b106115d25760405162461bcd60e51b8152600401610ca590613541565b60006115dc6126e8565b90506115e8838261363e565b34101561162a5760405162461bcd60e51b815260206004820152601060248201526f092dce6eaccccd2c6d2cadce8408ae8d60831b6044820152606401610ca5565b6005831115801561163b5750600083115b6116575760405162461bcd60e51b8152600401610ca5906134e0565b61271083611664600a5490565b61166e91906135ed565b11156116b35760405162461bcd60e51b8152602060048201526014602482015273141d589b1a58c81cd85b19481cdbdb19081bdd5d60621b6044820152606401610ca5565b60005b83811015611700578460ff16600b60006116cf600a5490565b81526020810191909152604001600020556116ee600a80546001019055565b806116f8816136db565b9150506116b6565b5060ff84166000908152600c6020526040812080548592906117239084906135ed565b9091555061173390503384612599565b604051839060ff86169033907f96234cb3d6c373a1aaa06497a540bc166d4b0359243a088eaf95e21d7253d0be90600090a450505050565b6008546001600160a01b031633146117955760405162461bcd60e51b8152600401610ca59061350c565b60145442116117d45760405162461bcd60e51b815260206004820152600b60248201526a10d85b9b9bdd081b5a5b9d60aa1b6044820152606401610ca5565b60008260ff161180156117ea5750600b8260ff16105b6118065760405162461bcd60e51b8152600401610ca5906134b5565b601a546118149060016135ed565b60ff83166000908152600c60205260409020546118329083906135ed565b1061184f5760405162461bcd60e51b8152600401610ca590613541565b6000811161186f5760405162461bcd60e51b8152600401610ca5906134e0565b6127108161187c600a5490565b61188691906135ed565b11156118cb5760405162461bcd60e51b8152602060048201526014602482015273141d589b1a58c81cd85b19481cdbdb19081bdd5d60621b6044820152606401610ca5565b60005b81811015611918578260ff16600b60006118e7600a5490565b8152602081019190915260400160002055611906600a80546001019055565b80611910816136db565b9150506118ce565b5060ff82166000908152600c60205260408120805483929061193b9084906135ed565b9091555061194b90503382612599565b604051819060ff84169033907f96234cb3d6c373a1aaa06497a540bc166d4b0359243a088eaf95e21d7253d0be90600090a45050565b60006001600160a01b0382166119aa576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b031633146119f95760405162461bcd60e51b8152600401610ca59061350c565b611a03600061277f565b565b6008546001600160a01b03163314611a2f5760405162461bcd60e51b8152600401610ca59061350c565b60005b815181101561149c57601b6000838381518110611a5f57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805463ffffffff1916905580611a97816136db565b915050611a32565b6008546001600160a01b03163314611ac95760405162461bcd60e51b8152600401610ca59061350c565b6001600160a01b038116611b125760405162461bcd60e51b815260206004820152601060248201526f4e6f6e205a65726f204164647265737360801b6044820152606401610ca5565b6018546040516001600160a01b0380841692169033907fdcad5043fde73148543e496c9a2e32530dce3cfa593f6905993e51dfff71a4ff90600090a4601880546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b03163314611b9a5760405162461bcd60e51b8152600401610ca59061350c565b600d5460ff1615611be05760405162461bcd60e51b815260206004820152601060248201526f10d85b9b9bdd081dda1a5d195b1a5cdd60821b6044820152606401610ca5565b60125442908110611c425760405162461bcd60e51b815260206004820152602660248201527f43616e6e6f74206d6f6469667920616674657220707269766174652073616c65604482015265081cdd185c9d60d21b6064820152608401610ca5565b60005b8351811015611dc1576001601b6000868481518110611c7457634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060000160016101000a81548160ff021916908315150217905550828181518110611cd657634e487b7160e01b600052603260045260246000fd5b6020026020010151601b6000868481518110611d0257634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060000160006101000a81548160ff021916908360ff1602179055506000601b6000868481518110611d6b57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060000160036101000a81548160ff021916908360ff1602179055508080611db9906136db565b915050611c45565b50505050565b606060038054610b26906136a0565b6000611de1600a5490565b611ded9061271061365d565b905090565b6001600160a01b038216331415611e1c5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600d5460ff168015611e9c57506012544210155b611eda5760405162461bcd60e51b815260206004820152600f60248201526e53616c65206e6f742061637469766560881b6044820152606401610ca5565b601554429081118015611eee575060165481105b611f2e5760405162461bcd60e51b8152602060048201526011602482015270283934bb30ba329039b0b6329037bb32b960791b6044820152606401610ca5565b336000908152601b6020526040902054610100900460ff16611f865760405162461bcd60e51b8152602060048201526011602482015270526573747269637465642061636365737360781b6044820152606401610ca5565b336000908152601b602052604090205460ff80821691611faf91859163010000009004166135ed565b10611ffc5760405162461bcd60e51b815260206004820152601d60248201527f55736572206d696e74206f76657220616c6c6f776564206e756d6265720000006044820152606401610ca5565b60008360ff161180156120125750600b8360ff16105b61202e5760405162461bcd60e51b8152600401610ca5906134b5565b60195461203c9060016135ed565b60ff84166000908152600c602052604090205461205a9084906135ed565b106120775760405162461bcd60e51b8152600401610ca590613541565b61271082612084600a5490565b61208e91906135ed565b11156120d45760405162461bcd60e51b8152602060048201526015602482015274141c9a5d985d19481cd85b19481cdbdb19081bdd5d605a1b6044820152606401610ca5565b6120e682670de0b6b3a764000061363e565b3410156121285760405162461bcd60e51b815260206004820152601060248201526f092dce6eaccccd2c6d2cadce8408ae8d60831b6044820152606401610ca5565b600582111580156121395750600082115b6121555760405162461bcd60e51b8152600401610ca5906134e0565b60005b82811015611192578360ff16600b6000612171600a5490565b8152602081019190915260400160002055612190600a80546001019055565b336000908152601b602052604090208054600191906003906121bd9084906301000000900460ff16613605565b92506101000a81548160ff021916908360ff16021790555080806121e0906136db565b915050612158565b600d5460ff161561220b5760405162461bcd60e51b8152600401610ca590613563565b611dc1848484846127d1565b600080821180156122285750600b82105b6122445760405162461bcd60e51b8152600401610ca5906134b5565b6000828152600c6020526040902054601954610b11919061365d565b606061226b82612507565b6122cf5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610ca5565b60006122d961281c565b905060008151116122f95760405180602001604052806000815250612341565b6000838152600b602052604090205481906123139061282b565b61231c8561282b565b600f60405160200161233194939291906133fd565b6040516020818303038152906040525b9392505050565b6008546001600160a01b031633146123725760405162461bcd60e51b8152600401610ca59061350c565b600d805460ff19811660ff91821615908117909255604051911615159033907fe3f6649f5bc36b8b8c13782cfdb234a2f34ea0a28e750e23ea10b14d550f643590600090a3565b606060006123c561281c565b90508060106040516020016123db9291906133d6565b60405160208183030381529060405291505090565b601354600090429081101561240e57670de0b6b3a764000091505090565b6124166126e8565b91505090565b6008546001600160a01b031633146124465760405162461bcd60e51b8152600401610ca59061350c565b6001600160a01b0381166124ab5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ca5565b6124b48161277f565b50565b60006001600160e01b031982166380ac58cd60e01b14806124e857506001600160e01b03198216635b5e139f60e01b145b80610b1157506301ffc9a760e01b6001600160e01b0319831614610b11565b6000805482108015610b11575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610c76838383612944565b61149c828260405180602001604052806000815250612b32565b610c76838383604051806020016040528060008152506121e8565b6040805160608101825260008082526020820181905291810191909152816000548110156126cf57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906126cd5780516001600160a01b031615612664579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff16151592810192909252156126c8579392505050565b612664565b505b604051636f96cda160e11b815260040160405180910390fd5b6013546000904290670de0b6b3a764000090612706906134bc6135ed565b8211156127135792915050565b6000610a8c60135484612726919061365d565b612730919061362a565b9050612744816702c68af0bb14000061363e565b61275690671bc16d674ec8000061365d565b915081670de0b6b3a76400001161276d5781612777565b670de0b6b3a76400005b949350505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127dc848484612944565b6001600160a01b0383163b151580156127fe57506127fc84848484612b3f565b155b15611dc1576040516368d2bf6b60e11b815260040160405180910390fd5b6060600e8054610b26906136a0565b60608161284f5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156128795780612863816136db565b91506128729050600a8361362a565b9150612853565b6000816001600160401b038111156128a157634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156128cb576020820181803683370190505b5090505b8415612777576128e060018361365d565b91506128ed600a866136f6565b6128f89060306135ed565b60f81b81838151811061291b57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061293d600a8661362a565b94506128cf565b600061294f826125ce565b9050836001600160a01b031681600001516001600160a01b0316146129865760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806129a457506129a48533610a01565b806129bf5750336129b484610ba9565b6001600160a01b0316145b9050806129df57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416612a0657604051633a954ecd60e21b815260040160405180910390fd5b612a1260008487612532565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116612ae6576000548214612ae657805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b610c768383836001612c36565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612b74903390899088908890600401613465565b602060405180830381600087803b158015612b8e57600080fd5b505af1925050508015612bbe575060408051601f3d908101601f19168201909252612bbb91810190613223565b60015b612c19573d808015612bec576040519150601f19603f3d011682016040523d82523d6000602084013e612bf1565b606091505b508051612c11576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6000546001600160a01b038516612c5f57604051622e076360e81b815260040160405180910390fd5b83612c7d5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b429092169190910217905580808501838015612d2e57506001600160a01b0387163b15155b15612db7575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612d7f6000888480600101955088612b3f565b612d9c576040516368d2bf6b60e11b815260040160405180910390fd5b80821415612d34578260005414612db257600080fd5b612dfd565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821415612db8575b50600055612b2b565b828054612e12906136a0565b90600052602060002090601f016020900481019282612e345760008555612e7a565b82601f10612e4d57805160ff1916838001178555612e7a565b82800160010185558215612e7a579182015b82811115612e7a578251825591602001919060010190612e5f565b50612e86929150612e8a565b5090565b5b80821115612e865760008155600101612e8b565b60006001600160401b03831115612eb857612eb8613736565b612ecb601f8401601f191660200161359a565b9050828152838383011115612edf57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114612f0d57600080fd5b919050565b600082601f830112612f22578081fd5b81356020612f37612f32836135ca565b61359a565b80838252828201915082860187848660051b8901011115612f56578586fd5b855b85811015612f7b57612f6982612ef6565b84529284019290840190600101612f58565b5090979650505050505050565b803560ff81168114612f0d57600080fd5b600060208284031215612faa578081fd5b61234182612ef6565b60008060408385031215612fc5578081fd5b612fce83612ef6565b9150612fdc60208401612ef6565b90509250929050565b600080600060608486031215612ff9578081fd5b61300284612ef6565b925061301060208501612ef6565b9150604084013590509250925092565b60008060008060808587031215613035578081fd5b61303e85612ef6565b935061304c60208601612ef6565b92506040850135915060608501356001600160401b0381111561306d578182fd5b8501601f8101871361307d578182fd5b61308c87823560208401612e9f565b91505092959194509250565b600080604083850312156130aa578182fd5b6130b383612ef6565b915060208301356130c38161374c565b809150509250929050565b600080604083850312156130e0578182fd5b6130e983612ef6565b946020939093013593505050565b600060208284031215613108578081fd5b81356001600160401b0381111561311d578182fd5b61277784828501612f12565b6000806040838503121561313b578182fd5b82356001600160401b0380821115613151578384fd5b61315d86838701612f12565b9350602091508185013581811115613173578384fd5b85019050601f81018613613185578283fd5b8035613193612f32826135ca565b80828252848201915084840189868560051b87010111156131b2578687fd5b8694505b838510156131db576131c781612f88565b8352600194909401939185019185016131b6565b5080955050505050509250929050565b6000602082840312156131fc578081fd5b81516123418161374c565b600060208284031215613218578081fd5b81356123418161375a565b600060208284031215613234578081fd5b81516123418161375a565b600060208284031215613250578081fd5b81356001600160401b03811115613265578182fd5b8201601f81018413613275578182fd5b61277784823560208401612e9f565b600060208284031215613295578081fd5b813561ffff81168114612341578182fd5b6000602082840312156132b7578081fd5b5035919050565b6000602082840312156132cf578081fd5b5051919050565b600080604083850312156132e8578182fd5b50508035926020909101359150565b60008060408385031215613309578182fd5b6130e983612f88565b6000815180845261332a816020860160208601613674565b601f01601f19169290920160200192915050565b8054600090600181811c908083168061335857607f831692505b602080841082141561337857634e487b7160e01b86526022600452602486fd5b81801561338c576001811461339d576133ca565b60ff198616895284890196506133ca565b60008881526020902060005b868110156133c25781548b8201529085019083016133a9565b505084890196505b50505050505092915050565b600083516133e8818460208801613674565b6133f48184018561333e565b95945050505050565b6000855161340f818460208a01613674565b8083019050602f60f81b808252865161342f816001850160208b01613674565b6001920191820152845161344a816002840160208901613674565b6134596002828401018661333e565b98975050505050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061349890830184613312565b9695505050505050565b6020815260006123416020830184613312565b602080825260119082015270496e76616c6964204c616e64207479706560781b604082015260600190565b6020808252601290820152712bb937b733903a37b5b2b710373ab6b132b960711b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526008908201526714dbdb19081bdd5d60c21b604082015260600190565b60208082526017908201527f4e6f205472616e7366657220647572696e672073616c65000000000000000000604082015260600190565b604051601f8201601f191681016001600160401b03811182821017156135c2576135c2613736565b604052919050565b60006001600160401b038211156135e3576135e3613736565b5060051b60200190565b600082198211156136005761360061370a565b500190565b600060ff821660ff84168060ff038211156136225761362261370a565b019392505050565b60008261363957613639613720565b500490565b60008160001904831182151516156136585761365861370a565b500290565b60008282101561366f5761366f61370a565b500390565b60005b8381101561368f578181015183820152602001613677565b83811115611dc15750506000910152565b600181811c908216806136b457607f821691505b602082108114156136d557634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156136ef576136ef61370a565b5060010190565b60008261370557613705613720565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b80151581146124b457600080fd5b6001600160e01b0319811681146124b457600080fdfea26469706673582212207830af07298968281d768d44d39ac2682a28bbe754e4f1f19fd285e1503b0f5a64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000625ae800000000000000000000000000000000000000000000000000000000000000004e68747470733a2f2f686f6b2e6d7970696e6174612e636c6f75642f697066732f516d586d436379764672764b376251686358583745666f5a41586276445361734b574347735534516b483457364200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000052e6a736f6e000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _baseContractURI (string): https://hok.mypinata.cloud/ipfs/QmXmCcyvFrvK7bQhcXX7EfoZAXbvDSasKWCGsU4QkH4W6B
Arg [1] : _tokenSuffixURI (string): .json
Arg [2] : _saleStartTime (uint256): 1650124800
-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 00000000000000000000000000000000000000000000000000000000625ae800
Arg [3] : 000000000000000000000000000000000000000000000000000000000000004e
Arg [4] : 68747470733a2f2f686f6b2e6d7970696e6174612e636c6f75642f697066732f
Arg [5] : 516d586d436379764672764b376251686358583745666f5a4158627644536173
Arg [6] : 4b574347735534516b4834573642000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [8] : 2e6a736f6e000000000000000000000000000000000000000000000000000000
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.