Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
290 DAO
Holders
96
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 DAOLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
DENFTDAO
Compiler Version
v0.8.15+commit.e14f2714
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.15; import "[email protected]/contracts/ERC721A.sol"; import "[email protected]/contracts/extensions/ERC721AQueryable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; contract NftPublicSale is ERC721A("DENFTDAO", "DAO"), ERC721AQueryable, Ownable, ERC2981 { using Strings for uint256; uint256 public maxSupply = 5000; uint256 public nftsForOwner = 20; string public metadataIpfsLink1 = "ipfs://QmR9a4QZWbV5vRho5bKZCAhCJbuc5PSUse8WfcHUw9d5af/OG.json"; string public metadataIpfsLink2 = "ipfs://QmdZRqbGC9CKveiAqcyxb5xTbR1DB874SCjCczdoduMxR6/memberpass.json"; string public metadataIpfsLink3 = "ipfs://QmdZRqbGC9CKveiAqcyxb5xTbR1DB874SCjCczdoduMxR6/memberpass.json"; string public metadataIpfsLink4 = "ipfs://QmdZRqbGC9CKveiAqcyxb5xTbR1DB874SCjCczdoduMxR6/memberpass.json"; // id minted => meta data id mapping(uint256 => uint256) public metadataId; constructor() { _setDefaultRoyalty(msg.sender, 7_00); // 7.0 % } /////////////////////////////////// // OVERRIDE CODE STARTS // /////////////////////////////////// function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A, ERC2981, IERC165) returns (bool) { return super.supportsInterface(interfaceId); } function _startTokenId() internal pure override returns (uint256) { return 1; } function tokenURI(uint256 tokenId) public view virtual override(ERC721A, IERC721Metadata) returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); if (metadataId[tokenId] == 1) return metadataIpfsLink1; else if (metadataId[tokenId] == 2) return metadataIpfsLink2; else if (metadataId[tokenId] == 3) return metadataIpfsLink3; else if (metadataId[tokenId] == 4) return metadataIpfsLink4; return "not found"; } ////////////////// // ONLY OWNER // ////////////////// function withdraw() external onlyOwner { uint256 balance = address(this).balance; payable(0x672313cFFBbD435C16c741adc9D2e5A2AA013622).transfer((balance * 0.90 ether) / 1 ether); // 90% payable(0xAd33b98015eE6Cca65f55317f567Ed865BDd4959).transfer((balance * 0.10 ether) / 1 ether); // 10% } function withdrawERC20(IERC20 _erc20) external onlyOwner { uint256 balance = _erc20.balanceOf(address(this)); _erc20.transfer(msg.sender, balance); } function giftNft( address[] calldata _sendNftsTo, uint256 _howMany, uint256 option1to4 ) external onlyOwner { require(option1to4 >= 1 && option1to4 <= 4, "option should be 1 to 4"); uint256 _mintAmount = _sendNftsTo.length * _howMany; nftsForOwner -= _mintAmount; for (uint256 i = 0; i < _mintAmount; i++) metadataId[_currentIndex + i] = option1to4; for (uint256 i = 0; i < _sendNftsTo.length; i++) _safeMint(_sendNftsTo[i], _howMany); } function setDefaultRoyalty(address _receiver, uint96 _feeNumerator) public onlyOwner { _setDefaultRoyalty(_receiver, _feeNumerator); } function setMetadata1FolderIpfsLink(string memory _metadata1) public onlyOwner { metadataIpfsLink1 = _metadata1; } function setMetadata2FolderIpfsLink(string memory _metadata2) public onlyOwner { metadataIpfsLink2 = _metadata2; } function setMetadata3FolderIpfsLink(string memory _metadata3) public onlyOwner { metadataIpfsLink3 = _metadata3; } function setMetadata4FolderIpfsLink(string memory _metadata4) public onlyOwner { metadataIpfsLink4 = _metadata4; } function getToken() external payable {} receive() external payable {} } contract NftPublicSale1 is NftPublicSale { uint256 public sale1MaxMintAmount = 1; uint256 public sale1CostPerNft = 0.2 * 1e18; uint256 public sale1NftPerAddressLimit = 1; uint256 public sale1PublicMintActiveTime = 1663545600; // https://www.epochconverter.com/ uint256 public publicSale1Supply = 100; uint256 public publicSale1Minted; function sale1PurchaseTokens(uint256 _mintAmount) public payable { require(block.timestamp > sale1PublicMintActiveTime, "the contract is paused"); uint256 supply = totalSupply(); require(_mintAmount <= sale1MaxMintAmount, "Max mint amount per session exceeded"); require(supply + _mintAmount + nftsForOwner <= maxSupply, "Max NFT limit exceeded"); require(msg.value == sale1CostPerNft * _mintAmount, "You are sending either low funds or more funds than needed"); for (uint256 i = 0; i < _mintAmount; i++) metadataId[_currentIndex + i] = 1; publicSale1Minted += _mintAmount; require(publicSale1Minted <= publicSale1Supply, "Public sale limit reached"); _safeMint(msg.sender, _mintAmount); } function setSale1NftPerAddressLimit(uint256 _limit) public onlyOwner { sale1NftPerAddressLimit = _limit; } function setSale1CostPerNft(uint256 _newSale1CostPerNft) public onlyOwner { sale1CostPerNft = _newSale1CostPerNft; } function setSale1MaxMintAmount(uint256 _newSale1MaxMintAmount) public onlyOwner { sale1MaxMintAmount = _newSale1MaxMintAmount; } function setSale1ActiveTime(uint256 _sale1PublicMintActiveTime) public onlyOwner { sale1PublicMintActiveTime = _sale1PublicMintActiveTime; } } contract NftPublicSale2 is NftPublicSale1 { uint256 public sale2MaxMintAmount = 100; uint256 public sale2CostPerNft = 0.2 * 1e18; uint256 public sale2NftPerAddressLimit = 100; uint256 public sale2PublicMintActiveTime = 1658188800; // https://www.epochconverter.com/ uint256 public publicSale2Supply = 200; uint256 public publicSale2Minted; function sale2PurchaseTokens(uint256 _mintAmount) public payable { require(block.timestamp > sale2PublicMintActiveTime, "the contract is paused"); uint256 supply = totalSupply(); require(_mintAmount <= sale2MaxMintAmount, "Max mint amount per session exceeded"); require(supply + _mintAmount + nftsForOwner <= maxSupply, "Max NFT limit exceeded"); require(msg.value == sale2CostPerNft * _mintAmount, "You are sending either low funds or more funds than needed"); for (uint256 i = 0; i < _mintAmount; i++) metadataId[_currentIndex + i] = 2; publicSale2Minted += _mintAmount; require(publicSale2Minted <= publicSale2Supply, "Public sale limit reached"); _safeMint(msg.sender, _mintAmount); } function setSale2NftPerAddressLimit(uint256 _limit) public onlyOwner { sale2NftPerAddressLimit = _limit; } function setSale2CostPerNft(uint256 _newSale2CostPerNft) public onlyOwner { sale2CostPerNft = _newSale2CostPerNft; } function setSale2MaxMintAmount(uint256 _newSale2MaxMintAmount) public onlyOwner { sale2MaxMintAmount = _newSale2MaxMintAmount; } function setSale2ActiveTime(uint256 _sale2PublicMintActiveTime) public onlyOwner { sale2PublicMintActiveTime = _sale2PublicMintActiveTime; } } contract NftPublicSale3 is NftPublicSale2 { uint256 public sale3MaxMintAmount = 100; uint256 public sale3CostPerNft = 0.2 * 1e18; uint256 public sale3NftPerAddressLimit = 100; uint256 public sale3PublicMintActiveTime = 1663545600; // https://www.epochconverter.com/ uint256 public publicSale3Supply = 2350; uint256 public publicSale3Minted; function sale3PurchaseTokens(uint256 _mintAmount) public payable { require(block.timestamp > sale3PublicMintActiveTime, "the contract is paused"); uint256 supply = totalSupply(); require(_mintAmount <= sale3MaxMintAmount, "Max mint amount per session exceeded"); require(supply + _mintAmount + nftsForOwner <= maxSupply, "Max NFT limit exceeded"); require(msg.value == sale3CostPerNft * _mintAmount, "You are sending either low funds or more funds than needed"); for (uint256 i = 0; i < _mintAmount; i++) metadataId[_currentIndex + i] = 3; publicSale3Minted += _mintAmount; require(publicSale3Minted <= publicSale3Supply, "Public sale limit reached"); _safeMint(msg.sender, _mintAmount); } function setSale3NftPerAddressLimit(uint256 _limit) public onlyOwner { sale3NftPerAddressLimit = _limit; } function setSale3CostPerNft(uint256 _newSale3CostPerNft) public onlyOwner { sale3CostPerNft = _newSale3CostPerNft; } function setSale3MaxMintAmount(uint256 _newSale3MaxMintAmount) public onlyOwner { sale3MaxMintAmount = _newSale3MaxMintAmount; } function setSale3ActiveTime(uint256 _sale3PublicMintActiveTime) public onlyOwner { sale3PublicMintActiveTime = _sale3PublicMintActiveTime; } } contract NftPublicSale4 is NftPublicSale3 { uint256 public sale4MaxMintAmount = 100; uint256 public sale4CostPerNft = 0.2 * 1e18; uint256 public sale4NftPerAddressLimit = 100; uint256 public sale4PublicMintActiveTime = 1663545600; // https://www.epochconverter.com/ uint256 public publicSale4Supply = 2350; uint256 public publicSale4Minted; function sale4PurchaseTokens(uint256 _mintAmount) public payable { require(block.timestamp > sale4PublicMintActiveTime, "the contract is paused"); uint256 supply = totalSupply(); require(_mintAmount <= sale4MaxMintAmount, "Max mint amount per session exceeded"); require(supply + _mintAmount + nftsForOwner <= maxSupply, "Max NFT limit exceeded"); require(msg.value == sale4CostPerNft * _mintAmount, "You are sending either low funds or more funds than needed"); for (uint256 i = 0; i < _mintAmount; i++) metadataId[_currentIndex + i] = 4; publicSale4Minted += _mintAmount; require(publicSale4Minted <= publicSale4Supply, "Public sale limit reached"); _safeMint(msg.sender, _mintAmount); } function setSale4NftPerAddressLimit(uint256 _limit) public onlyOwner { sale4NftPerAddressLimit = _limit; } function setSale4CostPerNft(uint256 _newSale4CostPerNft) public onlyOwner { sale4CostPerNft = _newSale4CostPerNft; } function setSale4MaxMintAmount(uint256 _newSale4MaxMintAmount) public onlyOwner { sale4MaxMintAmount = _newSale4MaxMintAmount; } function setSale4ActiveTime(uint256 _sale4PublicMintActiveTime) public onlyOwner { sale4PublicMintActiveTime = _sale4PublicMintActiveTime; } } contract NftWhitelist1Sale is NftPublicSale4 { uint256 public whitelist1Supply = 100; uint256 public whitelist1Minted; uint256 public whitelist1ActiveTime = 1663545600; // https://www.epochconverter.com/; uint256 public whitelist1MaxMint = 1; uint256 public itemPriceWhitelist1 = 0.2 * 1e18; mapping(address => uint256) public whitelist1ClaimedBy; mapping(address => bool) public onWhitelist1; function setWhitelist1(address[] calldata addresses) external onlyOwner { for (uint256 i = 0; i < addresses.length; i++) onWhitelist1[addresses[i]] = true; } function removeFromWhitelist1(address[] calldata addresses) external onlyOwner { for (uint256 i = 0; i < addresses.length; i++) onWhitelist1[addresses[i]] = false; } function purchaseTokensWhitelist1(uint256 _howMany) external payable { require(whitelist1Minted + _howMany <= whitelist1Supply, "whitelist limit reached"); require(_totalMinted() + _howMany + nftsForOwner <= maxSupply, "Max NFT limit exceeded"); require(onWhitelist1[msg.sender], "You are not in whitelist"); require(block.timestamp > whitelist1ActiveTime, "Whitelist is not active"); require(msg.value == _howMany * itemPriceWhitelist1, "You are sending either low funds or more funds than needed"); whitelist1Minted += _howMany; whitelist1ClaimedBy[msg.sender] += _howMany; require(whitelist1ClaimedBy[msg.sender] <= whitelist1MaxMint, "Purchase exceeds max allowed"); for (uint256 i = 0; i < _howMany; i++) metadataId[_currentIndex + i] = 1; _safeMint(msg.sender, _howMany); } function setWhitelist1MaxMint(uint256 _whitelist1MaxMint) external onlyOwner { whitelist1MaxMint = _whitelist1MaxMint; } function setPriceWhitelist1(uint256 _itemPriceWhitelist1) external onlyOwner { itemPriceWhitelist1 = _itemPriceWhitelist1; } function setWhitelist1ActiveTime(uint256 _whitelist1ActiveTime) external onlyOwner { whitelist1ActiveTime = _whitelist1ActiveTime; } } contract NftAutoApproveMarketPlaces is NftWhitelist1Sale { mapping(address => bool) public projectProxy; function flipProxyState(address proxyAddress) public onlyOwner { projectProxy[proxyAddress] = !projectProxy[proxyAddress]; } function isApprovedForAll(address _owner, address _operator) public view override(ERC721A, IERC721) returns (bool) { return projectProxy[_operator] ? true : super.isApprovedForAll(_owner, _operator); } } contract DENFTDAO is NftAutoApproveMarketPlaces {}
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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); /** * @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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { 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 // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721AQueryable.sol'; import '../ERC721A.sol'; /** * @title ERC721A Queryable * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable { /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * - `addr` = `address(0)` * - `startTimestamp` = `0` * - `burned` = `false` * * If the `tokenId` is burned: * - `addr` = `<Address of owner before token was burned>` * - `startTimestamp` = `<Timestamp when token was burned>` * - `burned = `true` * * Otherwise: * - `addr` = `<Address of owner>` * - `startTimestamp` = `<Timestamp of start of ownership>` * - `burned = `false` */ function explicitOwnershipOf(uint256 tokenId) public view override returns (TokenOwnership memory) { TokenOwnership memory ownership; if (tokenId < _startTokenId() || tokenId >= _currentIndex) { return ownership; } ownership = _ownerships[tokenId]; if (ownership.burned) { return ownership; } return _ownershipOf(tokenId); } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view override returns (TokenOwnership[] memory) { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength); for (uint256 i; i != tokenIdsLength; ++i) { ownerships[i] = explicitOwnershipOf(tokenIds[i]); } return ownerships; } } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start` < `stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view override returns (uint256[] memory) { unchecked { if (start >= stop) revert InvalidQueryRange(); uint256 tokenIdsIdx; uint256 stopLimit = _currentIndex; // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, _currentIndex)`. if (stop > stopLimit) { stop = stopLimit; } uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (start < stop) { uint256 rangeLength = stop - start; if (rangeLength < tokenIdsMaxLength) { tokenIdsMaxLength = rangeLength; } } else { tokenIdsMaxLength = 0; } uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength); if (tokenIdsMaxLength == 0) { return tokenIds; } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`. // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) { ownership = _ownerships[i]; if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } // Downsize the array to fit. assembly { mstore(tokenIds, tokenIdsIdx) } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(totalSupply) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K pfp collections should be fine). */ function tokensOfOwner(address owner) external view override returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownerships[i]; if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.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'; /** * @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, IERC721A { using Address for address; using Strings for uint256; // 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 override 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) if (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) if(!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()) if(!_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; } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ 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 { 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 (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 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) 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; 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 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 // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import '../IERC721A.sol'; /** * @dev Interface of an ERC721AQueryable compliant contract. */ interface IERC721AQueryable is IERC721A { /** * Invalid query range (`start` >= `stop`). */ error InvalidQueryRange(); /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * - `addr` = `address(0)` * - `startTimestamp` = `0` * - `burned` = `false` * * If the `tokenId` is burned: * - `addr` = `<Address of owner before token was burned>` * - `startTimestamp` = `<Timestamp when token was burned>` * - `burned = `true` * * Otherwise: * - `addr` = `<Address of owner>` * - `startTimestamp` = `<Timestamp of start of ownership>` * - `burned = `false` */ function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory); /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory); /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start` < `stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory); /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(totalSupply) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K pfp collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory); }
// 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 (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @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); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// 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 (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (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 `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A is IERC721, IERC721Metadata { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * The caller cannot approve to the current owner. */ error ApprovalToCurrentOwner(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); // 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; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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`. * * 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; /** * @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 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 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 the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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); }
// 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" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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":"InvalidQueryRange","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"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"proxyAddress","type":"address"}],"name":"flipProxyState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_sendNftsTo","type":"address[]"},{"internalType":"uint256","name":"_howMany","type":"uint256"},{"internalType":"uint256","name":"option1to4","type":"uint256"}],"name":"giftNft","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"itemPriceWhitelist1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"metadataId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataIpfsLink1","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataIpfsLink2","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataIpfsLink3","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataIpfsLink4","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftsForOwner","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"onWhitelist1","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"projectProxy","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSale1Minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSale1Supply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSale2Minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSale2Supply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSale3Minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSale3Supply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSale4Minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSale4Supply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_howMany","type":"uint256"}],"name":"purchaseTokensWhitelist1","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"removeFromWhitelist1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sale1CostPerNft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sale1MaxMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sale1NftPerAddressLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sale1PublicMintActiveTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"sale1PurchaseTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"sale2CostPerNft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sale2MaxMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sale2NftPerAddressLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sale2PublicMintActiveTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"sale2PurchaseTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"sale3CostPerNft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sale3MaxMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sale3NftPerAddressLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sale3PublicMintActiveTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"sale3PurchaseTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"sale4CostPerNft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sale4MaxMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sale4NftPerAddressLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sale4PublicMintActiveTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"sale4PurchaseTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint96","name":"_feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_metadata1","type":"string"}],"name":"setMetadata1FolderIpfsLink","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_metadata2","type":"string"}],"name":"setMetadata2FolderIpfsLink","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_metadata3","type":"string"}],"name":"setMetadata3FolderIpfsLink","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_metadata4","type":"string"}],"name":"setMetadata4FolderIpfsLink","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_itemPriceWhitelist1","type":"uint256"}],"name":"setPriceWhitelist1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_sale1PublicMintActiveTime","type":"uint256"}],"name":"setSale1ActiveTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newSale1CostPerNft","type":"uint256"}],"name":"setSale1CostPerNft","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newSale1MaxMintAmount","type":"uint256"}],"name":"setSale1MaxMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setSale1NftPerAddressLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_sale2PublicMintActiveTime","type":"uint256"}],"name":"setSale2ActiveTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newSale2CostPerNft","type":"uint256"}],"name":"setSale2CostPerNft","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newSale2MaxMintAmount","type":"uint256"}],"name":"setSale2MaxMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setSale2NftPerAddressLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_sale3PublicMintActiveTime","type":"uint256"}],"name":"setSale3ActiveTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newSale3CostPerNft","type":"uint256"}],"name":"setSale3CostPerNft","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newSale3MaxMintAmount","type":"uint256"}],"name":"setSale3MaxMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setSale3NftPerAddressLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_sale4PublicMintActiveTime","type":"uint256"}],"name":"setSale4ActiveTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newSale4CostPerNft","type":"uint256"}],"name":"setSale4CostPerNft","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newSale4MaxMintAmount","type":"uint256"}],"name":"setSale4MaxMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setSale4NftPerAddressLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"setWhitelist1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_whitelist1ActiveTime","type":"uint256"}],"name":"setWhitelist1ActiveTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_whitelist1MaxMint","type":"uint256"}],"name":"setWhitelist1MaxMint","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":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelist1ActiveTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist1ClaimedBy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelist1MaxMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelist1Minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelist1Supply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_erc20","type":"address"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
611388600b556014600c5560e0604052603d60808181529062003f8660a039600d906200002d9082620003e6565b5060405180608001604052806045815260200162003fc360459139600e90620000579082620003e6565b5060405180608001604052806045815260200162003fc360459139600f90620000819082620003e6565b5060405180608001604052806045815260200162003fc360459139601090620000ab9082620003e6565b5060016012556702c68af0bb1400006013556001601455636327b100601555606460165560646018556702c68af0bb1400006019556064601a556362d5f400601b5560c8601c556064601e556702c68af0bb140000601f556064602055636327b10060215561092e60225560646024556702c68af0bb1400006025556064602655636327b10060275561092e6028556064602a55636327b100602c556001602d556702c68af0bb140000602e553480156200016557600080fd5b506040518060400160405280600881526020016744454e465444414f60c01b8152506040518060400160405280600381526020016244414f60e81b8152508160029081620001b49190620003e6565b506003620001c38282620003e6565b5050600160005550620001d633620001ea565b620001e4336102bc6200023c565b620004b2565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b0382161115620002b05760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b038216620003085760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401620002a7565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600955565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200036c57607f821691505b6020821081036200038d57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620003e157600081815260208120601f850160051c81016020861015620003bc5750805b601f850160051c820191505b81811015620003dd57828155600101620003c8565b5050505b505050565b81516001600160401b0381111562000402576200040262000341565b6200041a8162000413845462000357565b8462000393565b602080601f831160018114620004525760008415620004395750858301515b600019600386901b1c1916600185901b178555620003dd565b600085815260208120601f198616915b82811015620004835788860151825594840194600190910190840162000462565b5085821015620004a25787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b613ac480620004c26000396000f3fe6080604052600436106105425760003560e01c80637ea03448116102bd578063d41f896d11610180578063e62c5919116100e7578063efeb1eb2116100a0578063f4f3b2001161007a578063f4f3b20014610fc6578063f73c814b14610fe6578063fc29689714611006578063ff6431f91461102657600080fd5b8063efeb1eb214610f7a578063f2937a7114610f90578063f2fde38b14610fa657600080fd5b8063e62c591914610ec4578063e6bb95a014610ef1578063e87eeff214610f11578063e985e9c514610f27578063ea0eed8c14610f47578063ea51796714610f5a57600080fd5b8063d99655f611610139578063d99655f614610e39578063da6218cb14610e4f578063dc309b0514610e6f578063e345478314610e85578063e388bca814610e98578063e4ad556d14610eae57600080fd5b8063d41f896d14610d98578063d450e5fa14610dae578063d4fa81d614610dc3578063d5abeb0114610de3578063d7f5800a14610df9578063d830bc2d14610e1957600080fd5b806395d89b4111610224578063b88d4fde116101dd578063b88d4fde14610cd5578063c20d408f14610cf5578063c23dc68f14610d15578063c87b56dd14610d42578063ca41e20114610d62578063d248c04114610d7857600080fd5b806395d89b4114610c2a57806399a2557a14610c3f578063a22cb46514610c5f578063af99e67014610c7f578063b704d15314610c9f578063b753682714610cb557600080fd5b80638da5cb5b116102765780638da5cb5b14610b705780638e784c3a14610b8e57806391741cab14610ba457806393251c6414610bc457806393c42eec14610bda57806394d38b1f14610bfa57600080fd5b80637ea0344814610ace578063808c95e714610aee57806380a388e514610b015780638378c78f14610b1757806383a4b2f714610b2d5780638462151c14610b4357600080fd5b8063303664a2116104055780635971b4651161036c5780636782d2ca116103255780636782d2ca14610a235780636bcf049a14610a3657806370a0823114610a63578063715018a614610a835780637362272014610a985780637a54b8cf14610ab857600080fd5b80635971b465146109505780635a020650146109665780635bab26e2146109865780635bbb2177146109b65780636352211e146109e357806363da696414610a0357600080fd5b806343fb1ef4116103be57806343fb1ef4146108b857806348a45012146108d8578063490f7fa6146108ee5780634e98cb2114610904578063501cdccc1461091a57806353e1e06a1461093a57600080fd5b8063303664a21461081757806331ab61441461083757806334654b111461084d5780633ccfd60b1461086d578063410b02421461088257806342842e0e1461089857600080fd5b80631b80cc5d116104a957806323b872dd1161046257806323b872dd14610758578063273b7db61461077857806328eec83b146107985780632a55205a146107ae5780632bcbf03f146107ed5780632c6b22d31461080257600080fd5b80631b80cc5d146106e45780631ceb97de146106fa5780631ed7918e1461070f578063210802191461072257806321df0da7146105c757806321f01c001461073857600080fd5b806308c85d35116104fb57806308c85d3514610643578063095ea7b314610659578063112214ad14610679578063116a51ab1461069957806315c10bef146106b957806318160ddd146106cf57600080fd5b806301ffc9a71461054e57806303c5e07d1461058357806304634d8d146105a757806304f353d5146105c957806306fdde03146105e9578063081812fc1461060b57600080fd5b3661054957005b600080fd5b34801561055a57600080fd5b5061056e6105693660046130e2565b61103c565b60405190151581526020015b60405180910390f35b34801561058f57600080fd5b5061059960155481565b60405190815260200161057a565b3480156105b357600080fd5b506105c76105c2366004613114565b61104d565b005b3480156105d557600080fd5b506105c76105e4366004613159565b611063565b3480156105f557600080fd5b506105fe611070565b60405161057a91906131bf565b34801561061757600080fd5b5061062b610626366004613159565b611102565b6040516001600160a01b03909116815260200161057a565b34801561064f57600080fd5b5061059960145481565b34801561066557600080fd5b506105c76106743660046131d2565b611146565b34801561068557600080fd5b506105c7610694366004613159565b6111cc565b3480156106a557600080fd5b506105c76106b4366004613159565b6111d9565b3480156106c557600080fd5b5061059960125481565b3480156106db57600080fd5b506105996111e6565b3480156106f057600080fd5b5061059960245481565b34801561070657600080fd5b506105fe6111f4565b6105c761071d366004613159565b611282565b34801561072e57600080fd5b5061059960165481565b34801561074457600080fd5b506105c7610753366004613159565b6113c8565b34801561076457600080fd5b506105c76107733660046131fe565b6113d5565b34801561078457600080fd5b506105c7610793366004613159565b6113e0565b3480156107a457600080fd5b5061059960285481565b3480156107ba57600080fd5b506107ce6107c936600461323f565b6113ed565b604080516001600160a01b03909316835260208301919091520161057a565b3480156107f957600080fd5b506105fe61149b565b34801561080e57600080fd5b506105fe6114a8565b34801561082357600080fd5b506105c7610832366004613159565b6114b5565b34801561084357600080fd5b50610599602a5481565b34801561085957600080fd5b506105c7610868366004613159565b6114c2565b34801561087957600080fd5b506105c76114cf565b34801561088e57600080fd5b5061059960275481565b3480156108a457600080fd5b506105c76108b33660046131fe565b6115a3565b3480156108c457600080fd5b506105c76108d33660046132a5565b6115be565b3480156108e457600080fd5b50610599601d5481565b3480156108fa57600080fd5b5061059960295481565b34801561091057600080fd5b50610599601a5481565b34801561092657600080fd5b506105c7610935366004613383565b611638565b34801561094657600080fd5b5061059960135481565b34801561095c57600080fd5b50610599600c5481565b34801561097257600080fd5b506105c7610981366004613159565b61164c565b34801561099257600080fd5b5061056e6109a13660046133cb565b60316020526000908152604090205460ff1681565b3480156109c257600080fd5b506109d66109d13660046133e8565b611659565b60405161057a919061348d565b3480156109ef57600080fd5b5061062b6109fe366004613159565b61171f565b348015610a0f57600080fd5b506105c7610a1e3660046132a5565b611731565b6105c7610a31366004613159565b6117ab565b348015610a4257600080fd5b50610599610a51366004613159565b60116020526000908152604090205481565b348015610a6f57600080fd5b50610599610a7e3660046133cb565b6118dc565b348015610a8f57600080fd5b506105c761192a565b348015610aa457600080fd5b506105c7610ab3366004613159565b61193c565b348015610ac457600080fd5b5061059960205481565b348015610ada57600080fd5b506105c7610ae9366004613159565b611949565b6105c7610afc366004613159565b611956565b348015610b0d57600080fd5b5061059960215481565b348015610b2357600080fd5b5061059960265481565b348015610b3957600080fd5b5061059960225481565b348015610b4f57600080fd5b50610b63610b5e3660046133cb565b611bc2565b60405161057a91906134f7565b348015610b7c57600080fd5b506008546001600160a01b031661062b565b348015610b9a57600080fd5b5061059960175481565b348015610bb057600080fd5b506105c7610bbf366004613159565b611d07565b348015610bd057600080fd5b50610599601c5481565b348015610be657600080fd5b506105c7610bf5366004613159565b611d14565b348015610c0657600080fd5b5061056e610c153660046133cb565b60306020526000908152604090205460ff1681565b348015610c3657600080fd5b506105fe611d21565b348015610c4b57600080fd5b50610b63610c5a36600461352f565b611d30565b348015610c6b57600080fd5b506105c7610c7a366004613572565b611ef1565b348015610c8b57600080fd5b506105c7610c9a366004613159565b611f86565b348015610cab57600080fd5b5061059960195481565b348015610cc157600080fd5b506105c7610cd0366004613159565b611f93565b348015610ce157600080fd5b506105c7610cf03660046135a0565b611fa0565b348015610d0157600080fd5b506105c7610d10366004613383565b611fea565b348015610d2157600080fd5b50610d35610d30366004613159565b611ffe565b60405161057a919061361f565b348015610d4e57600080fd5b506105fe610d5d366004613159565b6120b8565b348015610d6e57600080fd5b50610599601e5481565b348015610d8457600080fd5b506105c7610d93366004613654565b61225d565b348015610da457600080fd5b50610599601f5481565b348015610dba57600080fd5b506105fe612380565b348015610dcf57600080fd5b506105c7610dde366004613383565b61238d565b348015610def57600080fd5b50610599600b5481565b348015610e0557600080fd5b506105c7610e14366004613159565b6123a1565b348015610e2557600080fd5b506105c7610e34366004613159565b6123ae565b348015610e4557600080fd5b5061059960235481565b348015610e5b57600080fd5b506105c7610e6a366004613159565b6123bb565b348015610e7b57600080fd5b5061059960185481565b6105c7610e93366004613159565b6123c8565b348015610ea457600080fd5b50610599602c5481565b348015610eba57600080fd5b50610599602d5481565b348015610ed057600080fd5b50610599610edf3660046133cb565b602f6020526000908152604090205481565b348015610efd57600080fd5b506105c7610f0c366004613159565b6124f9565b348015610f1d57600080fd5b50610599602b5481565b348015610f3357600080fd5b5061056e610f423660046136a4565b612506565b6105c7610f55366004613159565b61255d565b348015610f6657600080fd5b506105c7610f75366004613383565b61268e565b348015610f8657600080fd5b5061059960255481565b348015610f9c57600080fd5b50610599602e5481565b348015610fb257600080fd5b506105c7610fc13660046133cb565b6126a2565b348015610fd257600080fd5b506105c7610fe13660046133cb565b612718565b348015610ff257600080fd5b506105c76110013660046133cb565b6127ff565b34801561101257600080fd5b506105c7611021366004613159565b612830565b34801561103257600080fd5b50610599601b5481565b60006110478261283d565b92915050565b611055612862565b61105f82826128bc565b5050565b61106b612862565b602555565b60606002805461107f906136d2565b80601f01602080910402602001604051908101604052809291908181526020018280546110ab906136d2565b80156110f85780601f106110cd576101008083540402835291602001916110f8565b820191906000526020600020905b8154815290600101906020018083116110db57829003601f168201915b5050505050905090565b600061110d826129b9565b61112a576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006111518261171f565b9050806001600160a01b0316836001600160a01b0316036111855760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216146111bc5761119f8133612506565b6111bc576040516367d9dca160e11b815260040160405180910390fd5b6111c78383836129f2565b505050565b6111d4612862565b602d55565b6111e1612862565b601855565b600154600054036000190190565b600d8054611201906136d2565b80601f016020809104026020016040519081016040528092919081815260200182805461122d906136d2565b801561127a5780601f1061124f5761010080835404028352916020019161127a565b820191906000526020600020905b81548152906001019060200180831161125d57829003601f168201915b505050505081565b60275442116112ac5760405162461bcd60e51b81526004016112a39061370c565b60405180910390fd5b60006112b66111e6565b90506024548211156112da5760405162461bcd60e51b81526004016112a39061373c565b600b54600c546112ea8484613796565b6112f49190613796565b11156113125760405162461bcd60e51b81526004016112a3906137ae565b8160255461132091906137de565b341461133e5760405162461bcd60e51b81526004016112a3906137fd565b60005b82811015611380576004601160008360005461135d9190613796565b8152602081019190915260400160002055806113788161385a565b915050611341565b5081602960008282546113939190613796565b909155505060285460295411156113bc5760405162461bcd60e51b81526004016112a390613873565b61105f3383612a4e565b565b6113d0612862565b601a55565b6111c7838383612a68565b6113e8612862565b602e55565b6000828152600a602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916114625750604080518082019091526009546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090611481906001600160601b0316876137de565b61148b91906138aa565b91519350909150505b9250929050565b600f8054611201906136d2565b600e8054611201906136d2565b6114bd612862565b601355565b6114ca612862565b602055565b6114d7612862565b4773672313cffbbd435c16c741adc9d2e5a2aa0136226108fc670de0b6b3a764000061150b84670c7d713b49da00006137de565b61151591906138aa565b6040518115909202916000818181858888f1935050505015801561153d573d6000803e3d6000fd5b5073ad33b98015ee6cca65f55317f567ed865bdd49596108fc670de0b6b3a76400006115718467016345785d8a00006137de565b61157b91906138aa565b6040518115909202916000818181858888f1935050505015801561105f573d6000803e3d6000fd5b6111c783838360405180602001604052806000815250611fa0565b6115c6612862565b60005b818110156111c7576001603060008585858181106115e9576115e96138cc565b90506020020160208101906115fe91906133cb565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806116308161385a565b9150506115c9565b611640612862565b600f61105f8282613928565b611654612862565b602655565b80516060906000816001600160401b03811115611678576116786132e6565b6040519080825280602002602001820160405280156116c357816020015b60408051606081018252600080825260208083018290529282015282526000199092019101816116965790505b50905060005b828114611717576116f28582815181106116e5576116e56138cc565b6020026020010151611ffe565b828281518110611704576117046138cc565b60209081029190910101526001016116c9565b509392505050565b600061172a82612c55565b5192915050565b611739612862565b60005b818110156111c75760006030600085858581811061175c5761175c6138cc565b905060200201602081019061177191906133cb565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806117a38161385a565b91505061173c565b601b5442116117cc5760405162461bcd60e51b81526004016112a39061370c565b60006117d66111e6565b90506018548211156117fa5760405162461bcd60e51b81526004016112a39061373c565b600b54600c5461180a8484613796565b6118149190613796565b11156118325760405162461bcd60e51b81526004016112a3906137ae565b8160195461184091906137de565b341461185e5760405162461bcd60e51b81526004016112a3906137fd565b60005b828110156118a0576002601160008360005461187d9190613796565b8152602081019190915260400160002055806118988161385a565b915050611861565b5081601d60008282546118b39190613796565b9091555050601c54601d5411156113bc5760405162461bcd60e51b81526004016112a390613873565b60006001600160a01b038216611905576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b611932612862565b6113c66000612d77565b611944612862565b601555565b611951612862565b602755565b602a5481602b546119679190613796565b11156119b55760405162461bcd60e51b815260206004820152601760248201527f77686974656c697374206c696d6974207265616368656400000000000000000060448201526064016112a3565b600b54600c54826119c96000546000190190565b6119d39190613796565b6119dd9190613796565b11156119fb5760405162461bcd60e51b81526004016112a3906137ae565b3360009081526030602052604090205460ff16611a5a5760405162461bcd60e51b815260206004820152601860248201527f596f7520617265206e6f7420696e2077686974656c697374000000000000000060448201526064016112a3565b602c544211611aab5760405162461bcd60e51b815260206004820152601760248201527f57686974656c697374206973206e6f742061637469766500000000000000000060448201526064016112a3565b602e54611ab890826137de565b3414611ad65760405162461bcd60e51b81526004016112a3906137fd565b80602b6000828254611ae89190613796565b9091555050336000908152602f602052604081208054839290611b0c908490613796565b9091555050602d54336000908152602f60205260409020541115611b725760405162461bcd60e51b815260206004820152601c60248201527f50757263686173652065786365656473206d617820616c6c6f7765640000000060448201526064016112a3565b60005b81811015611bb45760016011600083600054611b919190613796565b815260208101919091526040016000205580611bac8161385a565b915050611b75565b50611bbf3382612a4e565b50565b60606000806000611bd2856118dc565b90506000816001600160401b03811115611bee57611bee6132e6565b604051908082528060200260200182016040528015611c17578160200160208202803683370190505b509050611c3d604080516060810182526000808252602082018190529181019190915290565b60015b838614611cfb57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615159181018290529250611cf35781516001600160a01b031615611cb457815194505b876001600160a01b0316856001600160a01b031603611cf35780838780600101985081518110611ce657611ce66138cc565b6020026020010181815250505b600101611c40565b50909695505050505050565b611d0f612862565b601455565b611d1c612862565b601955565b60606003805461107f906136d2565b6060818310611d5257604051631960ccad60e11b815260040160405180910390fd5b600080546001851015611d6457600194505b80841115611d70578093505b6000611d7b876118dc565b905084861015611d9a5785850381811015611d94578091505b50611d9e565b5060005b6000816001600160401b03811115611db857611db86132e6565b604051908082528060200260200182016040528015611de1578160200160208202803683370190505b50905081600003611df7579350611eea92505050565b6000611e0288611ffe565b905060008160400151611e13575080515b885b888114158015611e255750848714155b15611ede57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615159181018290529350611ed65782516001600160a01b031615611e9757825191505b8a6001600160a01b0316826001600160a01b031603611ed65780848880600101995081518110611ec957611ec96138cc565b6020026020010181815250505b600101611e15565b50505092835250909150505b9392505050565b336001600160a01b03831603611f1a5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611f8e612862565b601255565b611f9b612862565b602455565b611fab848484612a68565b6001600160a01b0383163b15611fe457611fc784848484612dc9565b611fe4576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b611ff2612862565b600e61105f8282613928565b6040805160608082018352600080835260208084018290528385018290528451928301855281835282018190529281019290925290600183108061204457506000548310155b1561204f5792915050565b50600082815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615801592820192909252906120af5792915050565b611eea83612c55565b60606120c3826129b9565b6121275760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016112a3565b6000828152601160205260409020546001036121cf57600d805461214a906136d2565b80601f0160208091040260200160405190810160405280929190818152602001828054612176906136d2565b80156121c35780601f10612198576101008083540402835291602001916121c3565b820191906000526020600020905b8154815290600101906020018083116121a657829003601f168201915b50505050509050919050565b6000828152601160205260409020546002036121f257600e805461214a906136d2565b60008281526011602052604090205460030361221557600f805461214a906136d2565b600082815260116020526040902054600403612238576010805461214a906136d2565b50506040805180820190915260098152681b9bdd08199bdd5b9960ba1b602082015290565b612265612862565b60018110158015612277575060048111155b6122c35760405162461bcd60e51b815260206004820152601760248201527f6f7074696f6e2073686f756c64206265203120746f203400000000000000000060448201526064016112a3565b60006122cf83856137de565b905080600c60008282546122e391906139e7565b90915550600090505b8181101561232a578260116000836000546123079190613796565b8152602081019190915260400160002055806123228161385a565b9150506122ec565b5060005b848110156123785761236686868381811061234b5761234b6138cc565b905060200201602081019061236091906133cb565b85612a4e565b806123708161385a565b91505061232e565b505050505050565b60108054611201906136d2565b612395612862565b600d61105f8282613928565b6123a9612862565b602c55565b6123b6612862565b601e55565b6123c3612862565b601b55565b60215442116123e95760405162461bcd60e51b81526004016112a39061370c565b60006123f36111e6565b9050601e548211156124175760405162461bcd60e51b81526004016112a39061373c565b600b54600c546124278484613796565b6124319190613796565b111561244f5760405162461bcd60e51b81526004016112a3906137ae565b81601f5461245d91906137de565b341461247b5760405162461bcd60e51b81526004016112a3906137fd565b60005b828110156124bd576003601160008360005461249a9190613796565b8152602081019190915260400160002055806124b58161385a565b91505061247e565b5081602360008282546124d09190613796565b909155505060225460235411156113bc5760405162461bcd60e51b81526004016112a390613873565b612501612862565b601f55565b6001600160a01b03811660009081526031602052604081205460ff16612554576001600160a01b0380841660009081526007602090815260408083209386168352929052205460ff16611eea565b60019392505050565b601554421161257e5760405162461bcd60e51b81526004016112a39061370c565b60006125886111e6565b90506012548211156125ac5760405162461bcd60e51b81526004016112a39061373c565b600b54600c546125bc8484613796565b6125c69190613796565b11156125e45760405162461bcd60e51b81526004016112a3906137ae565b816013546125f291906137de565b34146126105760405162461bcd60e51b81526004016112a3906137fd565b60005b82811015612652576001601160008360005461262f9190613796565b81526020810191909152604001600020558061264a8161385a565b915050612613565b5081601760008282546126659190613796565b909155505060165460175411156113bc5760405162461bcd60e51b81526004016112a390613873565b612696612862565b601061105f8282613928565b6126aa612862565b6001600160a01b03811661270f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016112a3565b611bbf81612d77565b612720612862565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015612767573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061278b91906139fe565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0383169063a9059cbb906044016020604051808303816000875af11580156127db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111c79190613a17565b612807612862565b6001600160a01b03166000908152603160205260409020805460ff19811660ff90911615179055565b612838612862565b602155565b60006001600160e01b0319821663152a902d60e11b1480611047575061104782612eb5565b6008546001600160a01b031633146113c65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016112a3565b6127106001600160601b038216111561292a5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084016112a3565b6001600160a01b0382166129805760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016112a3565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600955565b6000816001111580156129cd575060005482105b8015611047575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b61105f828260405180602001604052806000815250612f05565b6000612a7382612c55565b9050836001600160a01b031681600001516001600160a01b031614612aaa5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480612ac85750612ac88533612506565b80612ae3575033612ad884611102565b6001600160a01b0316145b905080612b0357604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416612b2a57604051633a954ecd60e21b815260040160405180910390fd5b612b36600084876129f2565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116612c0a576000548214612c0a57805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b60408051606081018252600080825260208201819052918101919091528180600111612d5e57600054811015612d5e57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290612d5c5780516001600160a01b031615612cf3579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215612d57579392505050565b612cf3565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612dfe903390899088908890600401613a34565b6020604051808303816000875af1925050508015612e39575060408051601f3d908101601f19168201909252612e3691810190613a71565b60015b612e97573d808015612e67576040519150601f19603f3d011682016040523d82523d6000602084013e612e6c565b606091505b508051600003612e8f576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60006001600160e01b031982166380ac58cd60e01b1480612ee657506001600160e01b03198216635b5e139f60e01b145b8061104757506301ffc9a760e01b6001600160e01b0319831614611047565b6000546001600160a01b038416612f2e57604051622e076360e81b815260040160405180910390fd5b82600003612f4f5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038416600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168b0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168b01811690920217909155858452600490925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b15613077575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46130406000878480600101955087612dc9565b61305d576040516368d2bf6b60e11b815260040160405180910390fd5b808210612ff557826000541461307257600080fd5b6130bc565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210613078575b506000908155611fe49085838684565b6001600160e01b031981168114611bbf57600080fd5b6000602082840312156130f457600080fd5b8135611eea816130cc565b6001600160a01b0381168114611bbf57600080fd5b6000806040838503121561312757600080fd5b8235613132816130ff565b915060208301356001600160601b038116811461314e57600080fd5b809150509250929050565b60006020828403121561316b57600080fd5b5035919050565b6000815180845260005b818110156131985760208185018101518683018201520161317c565b818111156131aa576000602083870101525b50601f01601f19169290920160200192915050565b602081526000611eea6020830184613172565b600080604083850312156131e557600080fd5b82356131f0816130ff565b946020939093013593505050565b60008060006060848603121561321357600080fd5b833561321e816130ff565b9250602084013561322e816130ff565b929592945050506040919091013590565b6000806040838503121561325257600080fd5b50508035926020909101359150565b60008083601f84011261327357600080fd5b5081356001600160401b0381111561328a57600080fd5b6020830191508360208260051b850101111561149457600080fd5b600080602083850312156132b857600080fd5b82356001600160401b038111156132ce57600080fd5b6132da85828601613261565b90969095509350505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715613324576133246132e6565b604052919050565b60006001600160401b03831115613345576133456132e6565b613358601f8401601f19166020016132fc565b905082815283838301111561336c57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561339557600080fd5b81356001600160401b038111156133ab57600080fd5b8201601f810184136133bc57600080fd5b612ead8482356020840161332c565b6000602082840312156133dd57600080fd5b8135611eea816130ff565b600060208083850312156133fb57600080fd5b82356001600160401b038082111561341257600080fd5b818501915085601f83011261342657600080fd5b813581811115613438576134386132e6565b8060051b91506134498483016132fc565b818152918301840191848101908884111561346357600080fd5b938501935b8385101561348157843582529385019390850190613468565b98975050505050505050565b6020808252825182820181905260009190848201906040850190845b81811015611cfb576134e483855180516001600160a01b031682526020808201516001600160401b0316908301526040908101511515910152565b92840192606092909201916001016134a9565b6020808252825182820181905260009190848201906040850190845b81811015611cfb57835183529284019291840191600101613513565b60008060006060848603121561354457600080fd5b833561354f816130ff565b95602085013595506040909401359392505050565b8015158114611bbf57600080fd5b6000806040838503121561358557600080fd5b8235613590816130ff565b9150602083013561314e81613564565b600080600080608085870312156135b657600080fd5b84356135c1816130ff565b935060208501356135d1816130ff565b92506040850135915060608501356001600160401b038111156135f357600080fd5b8501601f8101871361360457600080fd5b6136138782356020840161332c565b91505092959194509250565b81516001600160a01b031681526020808301516001600160401b03169082015260408083015115159082015260608101611047565b6000806000806060858703121561366a57600080fd5b84356001600160401b0381111561368057600080fd5b61368c87828801613261565b90989097506020870135966040013595509350505050565b600080604083850312156136b757600080fd5b82356136c2816130ff565b9150602083013561314e816130ff565b600181811c908216806136e657607f821691505b60208210810361370657634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252601690820152751d1a194818dbdb9d1c9858dd081a5cc81c185d5cd95960521b604082015260600190565b60208082526024908201527f4d6178206d696e7420616d6f756e74207065722073657373696f6e20657863656040820152631959195960e21b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600082198211156137a9576137a9613780565b500190565b60208082526016908201527513585e08139195081b1a5b5a5d08195e18d95959195960521b604082015260600190565b60008160001904831182151516156137f8576137f8613780565b500290565b6020808252603a908201527f596f75206172652073656e64696e6720656974686572206c6f772066756e647360408201527f206f72206d6f72652066756e6473207468616e206e6565646564000000000000606082015260800190565b60006001820161386c5761386c613780565b5060010190565b60208082526019908201527f5075626c69632073616c65206c696d6974207265616368656400000000000000604082015260600190565b6000826138c757634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b601f8211156111c757600081815260208120601f850160051c810160208610156139095750805b601f850160051c820191505b8181101561237857828155600101613915565b81516001600160401b03811115613941576139416132e6565b6139558161394f84546136d2565b846138e2565b602080601f83116001811461398a57600084156139725750858301515b600019600386901b1c1916600185901b178555612378565b600085815260208120601f198616915b828110156139b95788860151825594840194600190910190840161399a565b50858210156139d75787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000828210156139f9576139f9613780565b500390565b600060208284031215613a1057600080fd5b5051919050565b600060208284031215613a2957600080fd5b8151611eea81613564565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613a6790830184613172565b9695505050505050565b600060208284031215613a8357600080fd5b8151611eea816130cc56fea2646970667358221220d5ac93f745258ddc6b84da56bf9cd9619feb8ada65a1f9f6b0ac25e71d33535864736f6c634300080f0033697066733a2f2f516d52396134515a576256357652686f35624b5a434168434a6275633550535573653857666348557739643561662f4f472e6a736f6e697066733a2f2f516d645a527162474339434b766569417163797862357854625231444238373453436a43637a646f64754d7852362f6d656d626572706173732e6a736f6e
Deployed Bytecode
0x6080604052600436106105425760003560e01c80637ea03448116102bd578063d41f896d11610180578063e62c5919116100e7578063efeb1eb2116100a0578063f4f3b2001161007a578063f4f3b20014610fc6578063f73c814b14610fe6578063fc29689714611006578063ff6431f91461102657600080fd5b8063efeb1eb214610f7a578063f2937a7114610f90578063f2fde38b14610fa657600080fd5b8063e62c591914610ec4578063e6bb95a014610ef1578063e87eeff214610f11578063e985e9c514610f27578063ea0eed8c14610f47578063ea51796714610f5a57600080fd5b8063d99655f611610139578063d99655f614610e39578063da6218cb14610e4f578063dc309b0514610e6f578063e345478314610e85578063e388bca814610e98578063e4ad556d14610eae57600080fd5b8063d41f896d14610d98578063d450e5fa14610dae578063d4fa81d614610dc3578063d5abeb0114610de3578063d7f5800a14610df9578063d830bc2d14610e1957600080fd5b806395d89b4111610224578063b88d4fde116101dd578063b88d4fde14610cd5578063c20d408f14610cf5578063c23dc68f14610d15578063c87b56dd14610d42578063ca41e20114610d62578063d248c04114610d7857600080fd5b806395d89b4114610c2a57806399a2557a14610c3f578063a22cb46514610c5f578063af99e67014610c7f578063b704d15314610c9f578063b753682714610cb557600080fd5b80638da5cb5b116102765780638da5cb5b14610b705780638e784c3a14610b8e57806391741cab14610ba457806393251c6414610bc457806393c42eec14610bda57806394d38b1f14610bfa57600080fd5b80637ea0344814610ace578063808c95e714610aee57806380a388e514610b015780638378c78f14610b1757806383a4b2f714610b2d5780638462151c14610b4357600080fd5b8063303664a2116104055780635971b4651161036c5780636782d2ca116103255780636782d2ca14610a235780636bcf049a14610a3657806370a0823114610a63578063715018a614610a835780637362272014610a985780637a54b8cf14610ab857600080fd5b80635971b465146109505780635a020650146109665780635bab26e2146109865780635bbb2177146109b65780636352211e146109e357806363da696414610a0357600080fd5b806343fb1ef4116103be57806343fb1ef4146108b857806348a45012146108d8578063490f7fa6146108ee5780634e98cb2114610904578063501cdccc1461091a57806353e1e06a1461093a57600080fd5b8063303664a21461081757806331ab61441461083757806334654b111461084d5780633ccfd60b1461086d578063410b02421461088257806342842e0e1461089857600080fd5b80631b80cc5d116104a957806323b872dd1161046257806323b872dd14610758578063273b7db61461077857806328eec83b146107985780632a55205a146107ae5780632bcbf03f146107ed5780632c6b22d31461080257600080fd5b80631b80cc5d146106e45780631ceb97de146106fa5780631ed7918e1461070f578063210802191461072257806321df0da7146105c757806321f01c001461073857600080fd5b806308c85d35116104fb57806308c85d3514610643578063095ea7b314610659578063112214ad14610679578063116a51ab1461069957806315c10bef146106b957806318160ddd146106cf57600080fd5b806301ffc9a71461054e57806303c5e07d1461058357806304634d8d146105a757806304f353d5146105c957806306fdde03146105e9578063081812fc1461060b57600080fd5b3661054957005b600080fd5b34801561055a57600080fd5b5061056e6105693660046130e2565b61103c565b60405190151581526020015b60405180910390f35b34801561058f57600080fd5b5061059960155481565b60405190815260200161057a565b3480156105b357600080fd5b506105c76105c2366004613114565b61104d565b005b3480156105d557600080fd5b506105c76105e4366004613159565b611063565b3480156105f557600080fd5b506105fe611070565b60405161057a91906131bf565b34801561061757600080fd5b5061062b610626366004613159565b611102565b6040516001600160a01b03909116815260200161057a565b34801561064f57600080fd5b5061059960145481565b34801561066557600080fd5b506105c76106743660046131d2565b611146565b34801561068557600080fd5b506105c7610694366004613159565b6111cc565b3480156106a557600080fd5b506105c76106b4366004613159565b6111d9565b3480156106c557600080fd5b5061059960125481565b3480156106db57600080fd5b506105996111e6565b3480156106f057600080fd5b5061059960245481565b34801561070657600080fd5b506105fe6111f4565b6105c761071d366004613159565b611282565b34801561072e57600080fd5b5061059960165481565b34801561074457600080fd5b506105c7610753366004613159565b6113c8565b34801561076457600080fd5b506105c76107733660046131fe565b6113d5565b34801561078457600080fd5b506105c7610793366004613159565b6113e0565b3480156107a457600080fd5b5061059960285481565b3480156107ba57600080fd5b506107ce6107c936600461323f565b6113ed565b604080516001600160a01b03909316835260208301919091520161057a565b3480156107f957600080fd5b506105fe61149b565b34801561080e57600080fd5b506105fe6114a8565b34801561082357600080fd5b506105c7610832366004613159565b6114b5565b34801561084357600080fd5b50610599602a5481565b34801561085957600080fd5b506105c7610868366004613159565b6114c2565b34801561087957600080fd5b506105c76114cf565b34801561088e57600080fd5b5061059960275481565b3480156108a457600080fd5b506105c76108b33660046131fe565b6115a3565b3480156108c457600080fd5b506105c76108d33660046132a5565b6115be565b3480156108e457600080fd5b50610599601d5481565b3480156108fa57600080fd5b5061059960295481565b34801561091057600080fd5b50610599601a5481565b34801561092657600080fd5b506105c7610935366004613383565b611638565b34801561094657600080fd5b5061059960135481565b34801561095c57600080fd5b50610599600c5481565b34801561097257600080fd5b506105c7610981366004613159565b61164c565b34801561099257600080fd5b5061056e6109a13660046133cb565b60316020526000908152604090205460ff1681565b3480156109c257600080fd5b506109d66109d13660046133e8565b611659565b60405161057a919061348d565b3480156109ef57600080fd5b5061062b6109fe366004613159565b61171f565b348015610a0f57600080fd5b506105c7610a1e3660046132a5565b611731565b6105c7610a31366004613159565b6117ab565b348015610a4257600080fd5b50610599610a51366004613159565b60116020526000908152604090205481565b348015610a6f57600080fd5b50610599610a7e3660046133cb565b6118dc565b348015610a8f57600080fd5b506105c761192a565b348015610aa457600080fd5b506105c7610ab3366004613159565b61193c565b348015610ac457600080fd5b5061059960205481565b348015610ada57600080fd5b506105c7610ae9366004613159565b611949565b6105c7610afc366004613159565b611956565b348015610b0d57600080fd5b5061059960215481565b348015610b2357600080fd5b5061059960265481565b348015610b3957600080fd5b5061059960225481565b348015610b4f57600080fd5b50610b63610b5e3660046133cb565b611bc2565b60405161057a91906134f7565b348015610b7c57600080fd5b506008546001600160a01b031661062b565b348015610b9a57600080fd5b5061059960175481565b348015610bb057600080fd5b506105c7610bbf366004613159565b611d07565b348015610bd057600080fd5b50610599601c5481565b348015610be657600080fd5b506105c7610bf5366004613159565b611d14565b348015610c0657600080fd5b5061056e610c153660046133cb565b60306020526000908152604090205460ff1681565b348015610c3657600080fd5b506105fe611d21565b348015610c4b57600080fd5b50610b63610c5a36600461352f565b611d30565b348015610c6b57600080fd5b506105c7610c7a366004613572565b611ef1565b348015610c8b57600080fd5b506105c7610c9a366004613159565b611f86565b348015610cab57600080fd5b5061059960195481565b348015610cc157600080fd5b506105c7610cd0366004613159565b611f93565b348015610ce157600080fd5b506105c7610cf03660046135a0565b611fa0565b348015610d0157600080fd5b506105c7610d10366004613383565b611fea565b348015610d2157600080fd5b50610d35610d30366004613159565b611ffe565b60405161057a919061361f565b348015610d4e57600080fd5b506105fe610d5d366004613159565b6120b8565b348015610d6e57600080fd5b50610599601e5481565b348015610d8457600080fd5b506105c7610d93366004613654565b61225d565b348015610da457600080fd5b50610599601f5481565b348015610dba57600080fd5b506105fe612380565b348015610dcf57600080fd5b506105c7610dde366004613383565b61238d565b348015610def57600080fd5b50610599600b5481565b348015610e0557600080fd5b506105c7610e14366004613159565b6123a1565b348015610e2557600080fd5b506105c7610e34366004613159565b6123ae565b348015610e4557600080fd5b5061059960235481565b348015610e5b57600080fd5b506105c7610e6a366004613159565b6123bb565b348015610e7b57600080fd5b5061059960185481565b6105c7610e93366004613159565b6123c8565b348015610ea457600080fd5b50610599602c5481565b348015610eba57600080fd5b50610599602d5481565b348015610ed057600080fd5b50610599610edf3660046133cb565b602f6020526000908152604090205481565b348015610efd57600080fd5b506105c7610f0c366004613159565b6124f9565b348015610f1d57600080fd5b50610599602b5481565b348015610f3357600080fd5b5061056e610f423660046136a4565b612506565b6105c7610f55366004613159565b61255d565b348015610f6657600080fd5b506105c7610f75366004613383565b61268e565b348015610f8657600080fd5b5061059960255481565b348015610f9c57600080fd5b50610599602e5481565b348015610fb257600080fd5b506105c7610fc13660046133cb565b6126a2565b348015610fd257600080fd5b506105c7610fe13660046133cb565b612718565b348015610ff257600080fd5b506105c76110013660046133cb565b6127ff565b34801561101257600080fd5b506105c7611021366004613159565b612830565b34801561103257600080fd5b50610599601b5481565b60006110478261283d565b92915050565b611055612862565b61105f82826128bc565b5050565b61106b612862565b602555565b60606002805461107f906136d2565b80601f01602080910402602001604051908101604052809291908181526020018280546110ab906136d2565b80156110f85780601f106110cd576101008083540402835291602001916110f8565b820191906000526020600020905b8154815290600101906020018083116110db57829003601f168201915b5050505050905090565b600061110d826129b9565b61112a576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006111518261171f565b9050806001600160a01b0316836001600160a01b0316036111855760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216146111bc5761119f8133612506565b6111bc576040516367d9dca160e11b815260040160405180910390fd5b6111c78383836129f2565b505050565b6111d4612862565b602d55565b6111e1612862565b601855565b600154600054036000190190565b600d8054611201906136d2565b80601f016020809104026020016040519081016040528092919081815260200182805461122d906136d2565b801561127a5780601f1061124f5761010080835404028352916020019161127a565b820191906000526020600020905b81548152906001019060200180831161125d57829003601f168201915b505050505081565b60275442116112ac5760405162461bcd60e51b81526004016112a39061370c565b60405180910390fd5b60006112b66111e6565b90506024548211156112da5760405162461bcd60e51b81526004016112a39061373c565b600b54600c546112ea8484613796565b6112f49190613796565b11156113125760405162461bcd60e51b81526004016112a3906137ae565b8160255461132091906137de565b341461133e5760405162461bcd60e51b81526004016112a3906137fd565b60005b82811015611380576004601160008360005461135d9190613796565b8152602081019190915260400160002055806113788161385a565b915050611341565b5081602960008282546113939190613796565b909155505060285460295411156113bc5760405162461bcd60e51b81526004016112a390613873565b61105f3383612a4e565b565b6113d0612862565b601a55565b6111c7838383612a68565b6113e8612862565b602e55565b6000828152600a602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916114625750604080518082019091526009546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090611481906001600160601b0316876137de565b61148b91906138aa565b91519350909150505b9250929050565b600f8054611201906136d2565b600e8054611201906136d2565b6114bd612862565b601355565b6114ca612862565b602055565b6114d7612862565b4773672313cffbbd435c16c741adc9d2e5a2aa0136226108fc670de0b6b3a764000061150b84670c7d713b49da00006137de565b61151591906138aa565b6040518115909202916000818181858888f1935050505015801561153d573d6000803e3d6000fd5b5073ad33b98015ee6cca65f55317f567ed865bdd49596108fc670de0b6b3a76400006115718467016345785d8a00006137de565b61157b91906138aa565b6040518115909202916000818181858888f1935050505015801561105f573d6000803e3d6000fd5b6111c783838360405180602001604052806000815250611fa0565b6115c6612862565b60005b818110156111c7576001603060008585858181106115e9576115e96138cc565b90506020020160208101906115fe91906133cb565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806116308161385a565b9150506115c9565b611640612862565b600f61105f8282613928565b611654612862565b602655565b80516060906000816001600160401b03811115611678576116786132e6565b6040519080825280602002602001820160405280156116c357816020015b60408051606081018252600080825260208083018290529282015282526000199092019101816116965790505b50905060005b828114611717576116f28582815181106116e5576116e56138cc565b6020026020010151611ffe565b828281518110611704576117046138cc565b60209081029190910101526001016116c9565b509392505050565b600061172a82612c55565b5192915050565b611739612862565b60005b818110156111c75760006030600085858581811061175c5761175c6138cc565b905060200201602081019061177191906133cb565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806117a38161385a565b91505061173c565b601b5442116117cc5760405162461bcd60e51b81526004016112a39061370c565b60006117d66111e6565b90506018548211156117fa5760405162461bcd60e51b81526004016112a39061373c565b600b54600c5461180a8484613796565b6118149190613796565b11156118325760405162461bcd60e51b81526004016112a3906137ae565b8160195461184091906137de565b341461185e5760405162461bcd60e51b81526004016112a3906137fd565b60005b828110156118a0576002601160008360005461187d9190613796565b8152602081019190915260400160002055806118988161385a565b915050611861565b5081601d60008282546118b39190613796565b9091555050601c54601d5411156113bc5760405162461bcd60e51b81526004016112a390613873565b60006001600160a01b038216611905576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b611932612862565b6113c66000612d77565b611944612862565b601555565b611951612862565b602755565b602a5481602b546119679190613796565b11156119b55760405162461bcd60e51b815260206004820152601760248201527f77686974656c697374206c696d6974207265616368656400000000000000000060448201526064016112a3565b600b54600c54826119c96000546000190190565b6119d39190613796565b6119dd9190613796565b11156119fb5760405162461bcd60e51b81526004016112a3906137ae565b3360009081526030602052604090205460ff16611a5a5760405162461bcd60e51b815260206004820152601860248201527f596f7520617265206e6f7420696e2077686974656c697374000000000000000060448201526064016112a3565b602c544211611aab5760405162461bcd60e51b815260206004820152601760248201527f57686974656c697374206973206e6f742061637469766500000000000000000060448201526064016112a3565b602e54611ab890826137de565b3414611ad65760405162461bcd60e51b81526004016112a3906137fd565b80602b6000828254611ae89190613796565b9091555050336000908152602f602052604081208054839290611b0c908490613796565b9091555050602d54336000908152602f60205260409020541115611b725760405162461bcd60e51b815260206004820152601c60248201527f50757263686173652065786365656473206d617820616c6c6f7765640000000060448201526064016112a3565b60005b81811015611bb45760016011600083600054611b919190613796565b815260208101919091526040016000205580611bac8161385a565b915050611b75565b50611bbf3382612a4e565b50565b60606000806000611bd2856118dc565b90506000816001600160401b03811115611bee57611bee6132e6565b604051908082528060200260200182016040528015611c17578160200160208202803683370190505b509050611c3d604080516060810182526000808252602082018190529181019190915290565b60015b838614611cfb57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615159181018290529250611cf35781516001600160a01b031615611cb457815194505b876001600160a01b0316856001600160a01b031603611cf35780838780600101985081518110611ce657611ce66138cc565b6020026020010181815250505b600101611c40565b50909695505050505050565b611d0f612862565b601455565b611d1c612862565b601955565b60606003805461107f906136d2565b6060818310611d5257604051631960ccad60e11b815260040160405180910390fd5b600080546001851015611d6457600194505b80841115611d70578093505b6000611d7b876118dc565b905084861015611d9a5785850381811015611d94578091505b50611d9e565b5060005b6000816001600160401b03811115611db857611db86132e6565b604051908082528060200260200182016040528015611de1578160200160208202803683370190505b50905081600003611df7579350611eea92505050565b6000611e0288611ffe565b905060008160400151611e13575080515b885b888114158015611e255750848714155b15611ede57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615159181018290529350611ed65782516001600160a01b031615611e9757825191505b8a6001600160a01b0316826001600160a01b031603611ed65780848880600101995081518110611ec957611ec96138cc565b6020026020010181815250505b600101611e15565b50505092835250909150505b9392505050565b336001600160a01b03831603611f1a5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611f8e612862565b601255565b611f9b612862565b602455565b611fab848484612a68565b6001600160a01b0383163b15611fe457611fc784848484612dc9565b611fe4576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b611ff2612862565b600e61105f8282613928565b6040805160608082018352600080835260208084018290528385018290528451928301855281835282018190529281019290925290600183108061204457506000548310155b1561204f5792915050565b50600082815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615801592820192909252906120af5792915050565b611eea83612c55565b60606120c3826129b9565b6121275760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016112a3565b6000828152601160205260409020546001036121cf57600d805461214a906136d2565b80601f0160208091040260200160405190810160405280929190818152602001828054612176906136d2565b80156121c35780601f10612198576101008083540402835291602001916121c3565b820191906000526020600020905b8154815290600101906020018083116121a657829003601f168201915b50505050509050919050565b6000828152601160205260409020546002036121f257600e805461214a906136d2565b60008281526011602052604090205460030361221557600f805461214a906136d2565b600082815260116020526040902054600403612238576010805461214a906136d2565b50506040805180820190915260098152681b9bdd08199bdd5b9960ba1b602082015290565b612265612862565b60018110158015612277575060048111155b6122c35760405162461bcd60e51b815260206004820152601760248201527f6f7074696f6e2073686f756c64206265203120746f203400000000000000000060448201526064016112a3565b60006122cf83856137de565b905080600c60008282546122e391906139e7565b90915550600090505b8181101561232a578260116000836000546123079190613796565b8152602081019190915260400160002055806123228161385a565b9150506122ec565b5060005b848110156123785761236686868381811061234b5761234b6138cc565b905060200201602081019061236091906133cb565b85612a4e565b806123708161385a565b91505061232e565b505050505050565b60108054611201906136d2565b612395612862565b600d61105f8282613928565b6123a9612862565b602c55565b6123b6612862565b601e55565b6123c3612862565b601b55565b60215442116123e95760405162461bcd60e51b81526004016112a39061370c565b60006123f36111e6565b9050601e548211156124175760405162461bcd60e51b81526004016112a39061373c565b600b54600c546124278484613796565b6124319190613796565b111561244f5760405162461bcd60e51b81526004016112a3906137ae565b81601f5461245d91906137de565b341461247b5760405162461bcd60e51b81526004016112a3906137fd565b60005b828110156124bd576003601160008360005461249a9190613796565b8152602081019190915260400160002055806124b58161385a565b91505061247e565b5081602360008282546124d09190613796565b909155505060225460235411156113bc5760405162461bcd60e51b81526004016112a390613873565b612501612862565b601f55565b6001600160a01b03811660009081526031602052604081205460ff16612554576001600160a01b0380841660009081526007602090815260408083209386168352929052205460ff16611eea565b60019392505050565b601554421161257e5760405162461bcd60e51b81526004016112a39061370c565b60006125886111e6565b90506012548211156125ac5760405162461bcd60e51b81526004016112a39061373c565b600b54600c546125bc8484613796565b6125c69190613796565b11156125e45760405162461bcd60e51b81526004016112a3906137ae565b816013546125f291906137de565b34146126105760405162461bcd60e51b81526004016112a3906137fd565b60005b82811015612652576001601160008360005461262f9190613796565b81526020810191909152604001600020558061264a8161385a565b915050612613565b5081601760008282546126659190613796565b909155505060165460175411156113bc5760405162461bcd60e51b81526004016112a390613873565b612696612862565b601061105f8282613928565b6126aa612862565b6001600160a01b03811661270f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016112a3565b611bbf81612d77565b612720612862565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015612767573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061278b91906139fe565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0383169063a9059cbb906044016020604051808303816000875af11580156127db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111c79190613a17565b612807612862565b6001600160a01b03166000908152603160205260409020805460ff19811660ff90911615179055565b612838612862565b602155565b60006001600160e01b0319821663152a902d60e11b1480611047575061104782612eb5565b6008546001600160a01b031633146113c65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016112a3565b6127106001600160601b038216111561292a5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084016112a3565b6001600160a01b0382166129805760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016112a3565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600955565b6000816001111580156129cd575060005482105b8015611047575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b61105f828260405180602001604052806000815250612f05565b6000612a7382612c55565b9050836001600160a01b031681600001516001600160a01b031614612aaa5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480612ac85750612ac88533612506565b80612ae3575033612ad884611102565b6001600160a01b0316145b905080612b0357604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416612b2a57604051633a954ecd60e21b815260040160405180910390fd5b612b36600084876129f2565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116612c0a576000548214612c0a57805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b60408051606081018252600080825260208201819052918101919091528180600111612d5e57600054811015612d5e57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290612d5c5780516001600160a01b031615612cf3579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215612d57579392505050565b612cf3565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612dfe903390899088908890600401613a34565b6020604051808303816000875af1925050508015612e39575060408051601f3d908101601f19168201909252612e3691810190613a71565b60015b612e97573d808015612e67576040519150601f19603f3d011682016040523d82523d6000602084013e612e6c565b606091505b508051600003612e8f576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60006001600160e01b031982166380ac58cd60e01b1480612ee657506001600160e01b03198216635b5e139f60e01b145b8061104757506301ffc9a760e01b6001600160e01b0319831614611047565b6000546001600160a01b038416612f2e57604051622e076360e81b815260040160405180910390fd5b82600003612f4f5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038416600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168b0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168b01811690920217909155858452600490925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b15613077575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46130406000878480600101955087612dc9565b61305d576040516368d2bf6b60e11b815260040160405180910390fd5b808210612ff557826000541461307257600080fd5b6130bc565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210613078575b506000908155611fe49085838684565b6001600160e01b031981168114611bbf57600080fd5b6000602082840312156130f457600080fd5b8135611eea816130cc565b6001600160a01b0381168114611bbf57600080fd5b6000806040838503121561312757600080fd5b8235613132816130ff565b915060208301356001600160601b038116811461314e57600080fd5b809150509250929050565b60006020828403121561316b57600080fd5b5035919050565b6000815180845260005b818110156131985760208185018101518683018201520161317c565b818111156131aa576000602083870101525b50601f01601f19169290920160200192915050565b602081526000611eea6020830184613172565b600080604083850312156131e557600080fd5b82356131f0816130ff565b946020939093013593505050565b60008060006060848603121561321357600080fd5b833561321e816130ff565b9250602084013561322e816130ff565b929592945050506040919091013590565b6000806040838503121561325257600080fd5b50508035926020909101359150565b60008083601f84011261327357600080fd5b5081356001600160401b0381111561328a57600080fd5b6020830191508360208260051b850101111561149457600080fd5b600080602083850312156132b857600080fd5b82356001600160401b038111156132ce57600080fd5b6132da85828601613261565b90969095509350505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715613324576133246132e6565b604052919050565b60006001600160401b03831115613345576133456132e6565b613358601f8401601f19166020016132fc565b905082815283838301111561336c57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561339557600080fd5b81356001600160401b038111156133ab57600080fd5b8201601f810184136133bc57600080fd5b612ead8482356020840161332c565b6000602082840312156133dd57600080fd5b8135611eea816130ff565b600060208083850312156133fb57600080fd5b82356001600160401b038082111561341257600080fd5b818501915085601f83011261342657600080fd5b813581811115613438576134386132e6565b8060051b91506134498483016132fc565b818152918301840191848101908884111561346357600080fd5b938501935b8385101561348157843582529385019390850190613468565b98975050505050505050565b6020808252825182820181905260009190848201906040850190845b81811015611cfb576134e483855180516001600160a01b031682526020808201516001600160401b0316908301526040908101511515910152565b92840192606092909201916001016134a9565b6020808252825182820181905260009190848201906040850190845b81811015611cfb57835183529284019291840191600101613513565b60008060006060848603121561354457600080fd5b833561354f816130ff565b95602085013595506040909401359392505050565b8015158114611bbf57600080fd5b6000806040838503121561358557600080fd5b8235613590816130ff565b9150602083013561314e81613564565b600080600080608085870312156135b657600080fd5b84356135c1816130ff565b935060208501356135d1816130ff565b92506040850135915060608501356001600160401b038111156135f357600080fd5b8501601f8101871361360457600080fd5b6136138782356020840161332c565b91505092959194509250565b81516001600160a01b031681526020808301516001600160401b03169082015260408083015115159082015260608101611047565b6000806000806060858703121561366a57600080fd5b84356001600160401b0381111561368057600080fd5b61368c87828801613261565b90989097506020870135966040013595509350505050565b600080604083850312156136b757600080fd5b82356136c2816130ff565b9150602083013561314e816130ff565b600181811c908216806136e657607f821691505b60208210810361370657634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252601690820152751d1a194818dbdb9d1c9858dd081a5cc81c185d5cd95960521b604082015260600190565b60208082526024908201527f4d6178206d696e7420616d6f756e74207065722073657373696f6e20657863656040820152631959195960e21b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600082198211156137a9576137a9613780565b500190565b60208082526016908201527513585e08139195081b1a5b5a5d08195e18d95959195960521b604082015260600190565b60008160001904831182151516156137f8576137f8613780565b500290565b6020808252603a908201527f596f75206172652073656e64696e6720656974686572206c6f772066756e647360408201527f206f72206d6f72652066756e6473207468616e206e6565646564000000000000606082015260800190565b60006001820161386c5761386c613780565b5060010190565b60208082526019908201527f5075626c69632073616c65206c696d6974207265616368656400000000000000604082015260600190565b6000826138c757634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b601f8211156111c757600081815260208120601f850160051c810160208610156139095750805b601f850160051c820191505b8181101561237857828155600101613915565b81516001600160401b03811115613941576139416132e6565b6139558161394f84546136d2565b846138e2565b602080601f83116001811461398a57600084156139725750858301515b600019600386901b1c1916600185901b178555612378565b600085815260208120601f198616915b828110156139b95788860151825594840194600190910190840161399a565b50858210156139d75787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000828210156139f9576139f9613780565b500390565b600060208284031215613a1057600080fd5b5051919050565b600060208284031215613a2957600080fd5b8151611eea81613564565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613a6790830184613172565b9695505050505050565b600060208284031215613a8357600080fd5b8151611eea816130cc56fea2646970667358221220d5ac93f745258ddc6b84da56bf9cd9619feb8ada65a1f9f6b0ac25e71d33535864736f6c634300080f0033
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.