Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
4,523 MuxxoCat
Holders
370
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 MuxxoCatLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MuxxoCat
Compiler Version
v0.8.11+commit.d7f03943
Optimization Enabled:
Yes with 800 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import './extensions/ERC721AQueryable.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/utils/cryptography/MerkleProof.sol'; import '@openzeppelin/contracts/token/common/ERC2981.sol'; contract MuxxoCat is Ownable, ERC721AQueryable, ERC2981 { using Strings for uint256; uint16 public ROYALTY_BASIS_POINT = 690; uint16 public MAX_SUPPLY = 6969; uint16 public constant MAX_SPECIAL_SUPPLY = 2401; uint16 public constant MAX_NORMAL_SUPPLY = 4499; uint8 public constant TEAM_MINT_AMOUNT = 69; uint256 public constant SPECIAL_MINT_PRICE = .02 ether; uint8 public constant MAX_MINT_PRESALE_NORMAL = 1; uint8 public constant MAX_MINT_PRESALE_SPECIAL = 1; uint16 public constant MAX_MINT_PUBLIC_NORMAL = 20; uint16 public constant MAX_MINT_PUBLIC_SPECIAL = 20; string private baseTokenUri = "https://api.traitsniper.com/api/muxxo_cat/metadata/"; uint16 public TOTAL_PRESALE_NORMAL_MINTED; uint16 public TOTAL_PRESALE_SPECIAL_MINTED; uint16 public TOTAL_PUBLIC_NORMAL_MINTED; uint16 public TOTAL_PUBLIC_SPECIAL_MINTED; uint16 public TOTAL_MINTED; uint16 public TOTAL_SPECIAL_MINTED; uint16 public TOTAL_NORMAL_MINTED; //deploy smart contract, toggle WL, toggle WL when done, toggle isPublicSale //2 days later toggle reveal bool public isPublicSale; bool public isPresale; bytes32 private merkleRoot = 0x64da8b3749ca925d2fb154058b1d28087c71942b8e13ef3a51b52c8d31e3ed7a; mapping(address => uint16) public publicSaleMinted; mapping(address => uint16) public publicSpecialMinted; mapping(address => uint16) public presaleMinted; mapping(address => uint16) public presaleSpecialMinted; constructor(address payable royaltyReceiver) ERC721A('Muxxo Cat', 'MuxxoCat') { _setDefaultRoyalty(royaltyReceiver, ROYALTY_BASIS_POINT); _teamMint(); } modifier callerIsUser() { require(tx.origin == msg.sender, 'Muxxo Cat :: Cannot be called by a contract'); _; } function mintPublic(uint16 _quantity) external callerIsUser { require(isPublicSale, 'Muxxo Cat :: Public Sale Not Yet Active.'); require((totalSupply() + _quantity) <= MAX_SUPPLY, 'Muxxo Cat :: Cannot mint beyond max supply'); require((TOTAL_NORMAL_MINTED + _quantity) <= MAX_NORMAL_SUPPLY, 'Muxxo Cat :: Beyond Max Supply for Minting'); require( (publicSaleMinted[msg.sender] + _quantity) <= MAX_MINT_PUBLIC_NORMAL, 'Muxxo Cat :: Already minted max allowed amount!' ); TOTAL_MINTED += _quantity; TOTAL_NORMAL_MINTED += _quantity; TOTAL_PUBLIC_NORMAL_MINTED += _quantity; publicSaleMinted[msg.sender] += _quantity; _safeMint(msg.sender, _quantity); } function mintPublicSpecial(uint16 _quantity) external payable callerIsUser { require(isPublicSale, 'Muxxo Cat :: Public Sale Not Yet Active.'); require((totalSupply() + _quantity) <= MAX_SUPPLY, 'Muxxo Cat :: Cannot mint beyond max supply'); require( (TOTAL_SPECIAL_MINTED + _quantity) <= MAX_SPECIAL_SUPPLY, 'Muxxo Cat :: Beyond Max Supply for Minting Special' ); require( (publicSpecialMinted[msg.sender] + _quantity) <= MAX_MINT_PUBLIC_SPECIAL, 'Muxxo Cat :: Already minted max allowed amount!' ); require(msg.value >= (SPECIAL_MINT_PRICE * _quantity), 'Muxxo Cat :: Payment is below the price'); TOTAL_MINTED += _quantity; TOTAL_PUBLIC_SPECIAL_MINTED += _quantity; TOTAL_SPECIAL_MINTED += _quantity; publicSpecialMinted[msg.sender] += _quantity; _safeMint(msg.sender, _quantity); refundIfOver(SPECIAL_MINT_PRICE * _quantity); } function mintPrivate(bytes32[] memory _merkleProof, uint16 _quantity) external callerIsUser { require(isPresale, 'Muxxo Cat :: Presale Not Yet Active'); require((totalSupply() + _quantity) <= MAX_SUPPLY, 'Muxxo Cat :: Cannot mint beyond max supply'); require(_quantity >= 1, 'Muxxo Cat :: Invalid quantity'); require( (presaleMinted[msg.sender] + _quantity) <= MAX_MINT_PRESALE_NORMAL, 'Muxxo Cat :: Already minted max allowed amount!' ); require((TOTAL_NORMAL_MINTED + _quantity) <= MAX_NORMAL_SUPPLY, 'Muxxo Cat :: Beyond Max Supply for Minting'); bytes32 sender = keccak256(abi.encode(0, msg.sender)); require(MerkleProof.verify(_merkleProof, merkleRoot, sender), 'Muxxo Cat :: You are not in whitelist'); TOTAL_MINTED += _quantity; TOTAL_NORMAL_MINTED += _quantity; TOTAL_PRESALE_NORMAL_MINTED += _quantity; presaleMinted[msg.sender] += _quantity; _safeMint(msg.sender, _quantity); } function mintPrivateSpecial(bytes32[] memory _merkleProof, uint16 _quantity) external payable callerIsUser { require(isPresale, 'Muxxo Cat :: Presale Not Yet Active'); require((totalSupply() + _quantity) <= MAX_SUPPLY, 'Muxxo Cat :: Cannot mint beyond max supply'); require(_quantity >= 1, 'Muxxo Cat :: Invalid quantity'); require( (presaleSpecialMinted[msg.sender] + _quantity) <= MAX_MINT_PRESALE_SPECIAL, 'Muxxo Cat :: Already minted max allowed amount!' ); require( (TOTAL_SPECIAL_MINTED + _quantity) <= MAX_SPECIAL_SUPPLY, 'Muxxo Cat :: Beyond Max Supply for Minting Special' ); require(msg.value >= (SPECIAL_MINT_PRICE * _quantity), 'Muxxo Cat :: Payment is below the price'); bytes32 sender = keccak256(abi.encode(0, msg.sender)); require(MerkleProof.verify(_merkleProof, merkleRoot, sender), 'Muxxo Cat :: You are not in whitelist'); TOTAL_MINTED += _quantity; TOTAL_SPECIAL_MINTED += _quantity; TOTAL_PRESALE_SPECIAL_MINTED += _quantity; presaleSpecialMinted[msg.sender] += _quantity; _safeMint(msg.sender, _quantity); refundIfOver(SPECIAL_MINT_PRICE * _quantity); } function refundIfOver(uint256 price) private { require(msg.value >= price, 'Need to send more ETH.'); if (msg.value > price) { payable(msg.sender).transfer(msg.value - price); } } function _teamMint() internal onlyOwner { TOTAL_MINTED += TEAM_MINT_AMOUNT; TOTAL_NORMAL_MINTED += TEAM_MINT_AMOUNT; _safeMint(msg.sender, TEAM_MINT_AMOUNT); } function _baseURI() internal view virtual override returns (string memory) { return baseTokenUri; } //return uri for certain token function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), 'ERC721Metadata: URI query for nonexistent token'); return bytes(baseTokenUri).length > 0 ? string(abi.encodePacked(baseTokenUri, tokenId.toString(), '.json')) : ''; } function setRoyaltyInfo(address receiver, uint96 feeBasisPoints) external onlyOwner { _setDefaultRoyalty(receiver, feeBasisPoints); } function setTokenUri(string memory _baseTokenUri) external onlyOwner { baseTokenUri = _baseTokenUri; } function setMerkleRoot(bytes32 _merkleRoot) external onlyOwner { merkleRoot = _merkleRoot; } function toggleIsPresale() external onlyOwner { isPresale = !isPresale; } function toggleIsPublicSale() external onlyOwner { isPublicSale = !isPublicSale; } function updateSupply(uint16 supply) external onlyOwner { MAX_SUPPLY = supply; } function withdraw() external onlyOwner { payable(msg.sender).transfer(address(this).balance); } function supportsInterface(bytes4 interfaceId) public view override(ERC721A, ERC2981) returns (bool) { return super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity ^0.8.4; import '../ERC721A.sol'; error InvalidQueryRange(); /** * @title ERC721A Queryable * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721AQueryable is ERC721A { /** * @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 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 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 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 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 // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.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) external 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: * * - `tokenId` must be already minted. * - `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 // Creator: Chiru Labs pragma solidity ^0.8.4; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; error ApprovalCallerNotOwnerNorApproved(); error ApprovalQueryForNonexistentToken(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error OwnerQueryForNonexistentToken(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error URIQueryForNonexistentToken(); /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to _startTokenId() unchecked { return _currentIndex - _startTokenId(); } } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return _addressData[owner].aux; } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { _addressData[owner].aux = aux; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr && curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned; } /** * @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 // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "./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 payed 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 (interfaces/IERC165.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol";
{ "optimizer": { "enabled": true, "runs": 800 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address payable","name":"royaltyReceiver","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_MINT_PRESALE_NORMAL","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MINT_PRESALE_SPECIAL","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MINT_PUBLIC_NORMAL","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MINT_PUBLIC_SPECIAL","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_NORMAL_SUPPLY","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SPECIAL_SUPPLY","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROYALTY_BASIS_POINT","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SPECIAL_MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TEAM_MINT_AMOUNT","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_MINTED","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_NORMAL_MINTED","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_PRESALE_NORMAL_MINTED","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_PRESALE_SPECIAL_MINTED","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_PUBLIC_NORMAL_MINTED","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_PUBLIC_SPECIAL_MINTED","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_SPECIAL_MINTED","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct ERC721A.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 ERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPresale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"uint16","name":"_quantity","type":"uint16"}],"name":"mintPrivate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"uint16","name":"_quantity","type":"uint16"}],"name":"mintPrivateSpecial","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_quantity","type":"uint16"}],"name":"mintPublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_quantity","type":"uint16"}],"name":"mintPublicSpecial","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"presaleMinted","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"presaleSpecialMinted","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"publicSaleMinted","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"publicSpecialMinted","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","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":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeBasisPoints","type":"uint96"}],"name":"setRoyaltyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseTokenUri","type":"string"}],"name":"setTokenUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleIsPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleIsPublicSale","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"uint16","name":"supply","type":"uint16"}],"name":"updateSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
600b805463ffffffff1916631b3902b217905560e060405260336080818152906200450760a03980516200003c91600c9160209091019062000681565b507f64da8b3749ca925d2fb154058b1d28087c71942b8e13ef3a51b52c8d31e3ed7a600e553480156200006e57600080fd5b506040516200455a3803806200455a833981016040819052620000919162000727565b60405180604001604052806009815260200168135d5e1e1bc810d85d60ba1b81525060405180604001604052806008815260200167135d5e1e1bd0d85d60c21b815250620000ee620000e86200014660201b60201c565b6200014a565b81516200010390600390602085019062000681565b5080516200011990600490602084019062000681565b5060006001555050600b546200013590829061ffff166200019a565b6200013f6200029f565b5062000872565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6127106001600160601b03821611156200020e5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b038216620002665760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640162000205565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600955565b6000546001600160a01b03163314620002fb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640162000205565b600d8054604591906008906200032390849068010000000000000000900461ffff1662000759565b92506101000a81548161ffff021916908361ffff160217905550604560ff16600d600c8282829054906101000a900461ffff1662000362919062000759565b92506101000a81548161ffff021916908361ffff1602179055506200039233604560ff166200039460201b60201c565b565b620003b6828260405180602001604052806000815250620003ba60201b60201c565b5050565b6001546001600160a01b038416620003e457604051622e076360e81b815260040160405180910390fd5b82620004035760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038416600081815260066020908152604080832080546001600160801b031981166001600160401b038083168b018116918217680100000000000000006001600160401b031990941690921783900481168b0181169092021790915585845260058352922080546001600160e01b0319168417600160a01b429094169390930292909217909155829182860191620004ac919062000581811b6200285617901c565b156200052c575b60405182906001600160a01b038816906000906000805160206200453a833981519152908290a46001820191620004f09060009088908762000590565b6200050e576040516368d2bf6b60e11b815260040160405180910390fd5b80821415620004b35782600154146200052657600080fd5b62000562565b5b6040516001830192906001600160a01b038816906000906000805160206200453a833981519152908290a4808214156200052d575b506001556200057b60008583866001600160e01b038516565b50505050565b6001600160a01b03163b151590565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290620005c79033908990889088906004016200078e565b6020604051808303816000875af192505050801562000605575060408051601f3d908101601f19168201909252620006029181019062000809565b60015b62000664573d80801562000636576040519150601f19603f3d011682016040523d82523d6000602084013e6200063b565b606091505b5080516200065c576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b8280546200068f9062000835565b90600052602060002090601f016020900481019282620006b35760008555620006fe565b82601f10620006ce57805160ff1916838001178555620006fe565b82800160010185558215620006fe579182015b82811115620006fe578251825591602001919060010190620006e1565b506200070c92915062000710565b5090565b5b808211156200070c576000815560010162000711565b6000602082840312156200073a57600080fd5b81516001600160a01b03811681146200075257600080fd5b9392505050565b600061ffff8083168185168083038211156200078557634e487b7160e01b600052601160045260246000fd5b01949350505050565b600060018060a01b038087168352602081871681850152856040850152608060608501528451915081608085015260005b82811015620007dd5785810182015185820160a001528101620007bf565b82811115620007f057600060a084870101525b5050601f01601f19169190910160a00195945050505050565b6000602082840312156200081c57600080fd5b81516001600160e01b0319811681146200075257600080fd5b600181811c908216806200084a57607f821691505b602082108114156200086c57634e487b7160e01b600052602260045260246000fd5b50919050565b613c8580620008826000396000f3fe60806040526004361061036b5760003560e01c8063749d53ca116101c6578063b88d4fde116100f7578063daf24c0a11610095578063e985e9c51161006f578063e985e9c514610a1b578063ea1088b714610a64578063f10ebff814610a7a578063f2fde38b14610aa357600080fd5b8063daf24c0a146109b6578063e1c2959a146109db578063e1d90010146109fb57600080fd5b8063c54d668f116100d1578063c54d668f1461094c578063c87b56dd14610973578063ca87757f14610993578063d2d889f81461077657600080fd5b8063b88d4fde146108ce578063bc660cac146108ee578063c23dc68f1461091f57600080fd5b806395364a84116101645780639d56c2eb1161013e5780639d56c2eb14610847578063a22cb46514610878578063a5a865dc14610898578063b01e066a146108b957600080fd5b806395364a84146107f157806395d89b411461081257806399a2557a1461082757600080fd5b80638462151c116101a05780638462151c1461078b5780638516ab03146106db5780638da5cb5b146107b85780638e824bdf146107d657600080fd5b8063749d53ca146107405780637cb64759146107565780638383fc121461077657600080fd5b806332cb6b0c116102a05780636352211e1161023e57806367beebe81161021857806367beebe8146106db57806370a08231146106f0578063715018a61461071057806373ebe8221461072557600080fd5b80636352211e1461067557806363be13321461069557806363f6a97d146106c657600080fd5b806340fd839b1161027a57806340fd839b146105ee57806342842e0e146106155780635bbb21771461063557806360bc7a541461066257600080fd5b806332cb6b0c146105a5578063388fec90146105c65780633ccfd60b146105d957600080fd5b806316755b571161030d57806323b872dd116102e757806323b872dd146104fa578063244b7e931461051a5780632a55205a1461054b5780632b1df2e01461058a57600080fd5b806316755b571461049557806318160ddd146104b5578063188e6318146104d857600080fd5b806306fdde031161034957806306fdde03146103e7578063081812fc14610409578063095ea7b3146104415780630e3e32481461046157600080fd5b806301ffc9a71461037057806302fa7c47146103a55780630675b7c6146103c7575b600080fd5b34801561037c57600080fd5b5061039061038b3660046133ad565b610ac3565b60405190151581526020015b60405180910390f35b3480156103b157600080fd5b506103c56103c03660046133e6565b610ad4565b005b3480156103d357600080fd5b506103c56103e23660046134cd565b610b2f565b3480156103f357600080fd5b506103fc610b8a565b60405161039c919061356e565b34801561041557600080fd5b50610429610424366004613581565b610c1c565b6040516001600160a01b03909116815260200161039c565b34801561044d57600080fd5b506103c561045c36600461359a565b610c60565b34801561046d57600080fd5b50600d546104829062010000900461ffff1681565b60405161ffff909116815260200161039c565b3480156104a157600080fd5b506103c56104b03660046135d6565b610d0b565b3480156104c157600080fd5b50600254600154035b60405190815260200161039c565b3480156104e457600080fd5b50600d5461048290600160601b900461ffff1681565b34801561050657600080fd5b506103c56105153660046135f1565b611069565b34801561052657600080fd5b5061048261053536600461362d565b600f6020526000908152604090205461ffff1681565b34801561055757600080fd5b5061056b610566366004613648565b611074565b604080516001600160a01b03909316835260208301919091520161039c565b34801561059657600080fd5b506104ca66470de4df82000081565b3480156105b157600080fd5b50600b546104829062010000900461ffff1681565b6103c56105d436600461368e565b61112f565b3480156105e557600080fd5b506103c561161c565b3480156105fa57600080fd5b50610603604581565b60405160ff909116815260200161039c565b34801561062157600080fd5b506103c56106303660046135f1565b611690565b34801561064157600080fd5b50610655610650366004613736565b6116ab565b60405161039c91906137c7565b6103c56106703660046135d6565b611772565b34801561068157600080fd5b50610429610690366004613581565b611b73565b3480156106a157600080fd5b506104826106b036600461362d565b60106020526000908152604090205461ffff1681565b3480156106d257600080fd5b506103c5611b85565b3480156106e757600080fd5b50610482601481565b3480156106fc57600080fd5b506104ca61070b36600461362d565b611bfa565b34801561071c57600080fd5b506103c5611c49565b34801561073157600080fd5b50600d546104829061ffff1681565b34801561074c57600080fd5b5061048261119381565b34801561076257600080fd5b506103c5610771366004613581565b611c9d565b34801561078257600080fd5b50610603600181565b34801561079757600080fd5b506107ab6107a636600461362d565b611cea565b60405161039c9190613832565b3480156107c457600080fd5b506000546001600160a01b0316610429565b3480156107e257600080fd5b50600b546104829061ffff1681565b3480156107fd57600080fd5b50600d5461039090600160781b900460ff1681565b34801561081e57600080fd5b506103fc611e31565b34801561083357600080fd5b506107ab61084236600461386a565b611e40565b34801561085357600080fd5b5061048261086236600461362d565b60126020526000908152604090205461ffff1681565b34801561088457600080fd5b506103c561089336600461389d565b611ffc565b3480156108a457600080fd5b50600d5461039090600160701b900460ff1681565b3480156108c557600080fd5b506103c5612092565b3480156108da57600080fd5b506103c56108e93660046138ce565b612106565b3480156108fa57600080fd5b5061048261090936600461362d565b60116020526000908152604090205461ffff1681565b34801561092b57600080fd5b5061093f61093a366004613581565b612157565b60405161039c919061394a565b34801561095857600080fd5b50600d546104829068010000000000000000900461ffff1681565b34801561097f57600080fd5b506103fc61098e366004613581565b612206565b34801561099f57600080fd5b50600d5461048290640100000000900461ffff1681565b3480156109c257600080fd5b50600d54610482906601000000000000900461ffff1681565b3480156109e757600080fd5b506103c56109f63660046135d6565b6122df565b348015610a0757600080fd5b506103c5610a1636600461368e565b612347565b348015610a2757600080fd5b50610390610a36366004613980565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b348015610a7057600080fd5b5061048261096181565b348015610a8657600080fd5b50600d54610482906a0100000000000000000000900461ffff1681565b348015610aaf57600080fd5b506103c5610abe36600461362d565b612789565b6000610ace82612865565b92915050565b6000546001600160a01b03163314610b215760405162461bcd60e51b81526020600482018190526024820152600080516020613c3083398151915260448201526064015b60405180910390fd5b610b2b828261288a565b5050565b6000546001600160a01b03163314610b775760405162461bcd60e51b81526020600482018190526024820152600080516020613c308339815191526044820152606401610b18565b8051610b2b90600c9060208401906132fe565b606060038054610b99906139b3565b80601f0160208091040260200160405190810160405280929190818152602001828054610bc5906139b3565b8015610c125780601f10610be757610100808354040283529160200191610c12565b820191906000526020600020905b815481529060010190602001808311610bf557829003601f168201915b5050505050905090565b6000610c27826129a4565b610c44576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000610c6b82611b73565b9050806001600160a01b0316836001600160a01b03161415610ca05760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610cdd57506001600160a01b038116600090815260086020908152604080832033845290915290205460ff16155b15610cfb576040516367d9dca160e11b815260040160405180910390fd5b610d068383836129d0565b505050565b323314610d6e5760405162461bcd60e51b815260206004820152602b60248201527f4d7578786f20436174203a3a2043616e6e6f742062652063616c6c656420627960448201526a08184818dbdb9d1c9858dd60aa1b6064820152608401610b18565b600d54600160701b900460ff16610dd85760405162461bcd60e51b815260206004820152602860248201527f4d7578786f20436174203a3a205075626c69632053616c65204e6f74205965746044820152671020b1ba34bb329760c11b6064820152608401610b18565b600b5461ffff620100009091048116908216610df76002546001540390565b610e019190613a04565b1115610e625760405162461bcd60e51b815260206004820152602a60248201527f4d7578786f20436174203a3a2043616e6e6f74206d696e74206265796f6e64206044820152696d617820737570706c7960b01b6064820152608401610b18565b600d5461119390610e7f908390600160601b900461ffff16613a1c565b61ffff161115610ee45760405162461bcd60e51b815260206004820152602a60248201527f4d7578786f20436174203a3a204265796f6e64204d617820537570706c7920666044820152696f72204d696e74696e6760b01b6064820152608401610b18565b336000908152600f6020526040902054601490610f0690839061ffff16613a1c565b61ffff161115610f705760405162461bcd60e51b815260206004820152602f60248201527f4d7578786f20436174203a3a20416c7265616479206d696e746564206d61782060448201526e616c6c6f77656420616d6f756e742160881b6064820152608401610b18565b80600d60088282829054906101000a900461ffff16610f8f9190613a1c565b92506101000a81548161ffff021916908361ffff16021790555080600d600c8282829054906101000a900461ffff16610fc89190613a1c565b92506101000a81548161ffff021916908361ffff16021790555080600d60048282829054906101000a900461ffff166110019190613a1c565b82546101009290920a61ffff818102199093169183160217909155336000908152600f602052604081208054859450909261103e91859116613a1c565b92506101000a81548161ffff021916908361ffff160217905550611066338261ffff16612a39565b50565b610d06838383612a53565b6000828152600a602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff169282019290925282916110f35750604080518082019091526009546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b602081015160009061271090611117906bffffffffffffffffffffffff1687613a42565b6111219190613a77565b915196919550909350505050565b3233146111925760405162461bcd60e51b815260206004820152602b60248201527f4d7578786f20436174203a3a2043616e6e6f742062652063616c6c656420627960448201526a08184818dbdb9d1c9858dd60aa1b6064820152608401610b18565b600d54600160781b900460ff166111f75760405162461bcd60e51b815260206004820152602360248201527f4d7578786f20436174203a3a2050726573616c65204e6f74205965742041637460448201526269766560e81b6064820152608401610b18565b600b5461ffff6201000090910481169082166112166002546001540390565b6112209190613a04565b11156112815760405162461bcd60e51b815260206004820152602a60248201527f4d7578786f20436174203a3a2043616e6e6f74206d696e74206265796f6e64206044820152696d617820737570706c7960b01b6064820152608401610b18565b60018161ffff1610156112d65760405162461bcd60e51b815260206004820152601d60248201527f4d7578786f20436174203a3a20496e76616c6964207175616e746974790000006044820152606401610b18565b336000908152601260205260409020546001906112f890839061ffff16613a1c565b61ffff1611156113625760405162461bcd60e51b815260206004820152602f60248201527f4d7578786f20436174203a3a20416c7265616479206d696e746564206d61782060448201526e616c6c6f77656420616d6f756e742160881b6064820152608401610b18565b600d54610961906113869083906a0100000000000000000000900461ffff16613a1c565b61ffff1611156113fe5760405162461bcd60e51b815260206004820152603260248201527f4d7578786f20436174203a3a204265796f6e64204d617820537570706c79206660448201527f6f72204d696e74696e67205370656369616c00000000000000000000000000006064820152608401610b18565b61141361ffff821666470de4df820000613a42565b3410156114725760405162461bcd60e51b815260206004820152602760248201527f4d7578786f20436174203a3a205061796d656e742069732062656c6f772074686044820152666520707269636560c81b6064820152608401610b18565b6040805160006020820181905233928201929092526060016040516020818303038152906040528051906020012090506114af83600e5483612c60565b6115095760405162461bcd60e51b815260206004820152602560248201527f4d7578786f20436174203a3a20596f7520617265206e6f7420696e2077686974604482015264195b1a5cdd60da1b6064820152608401610b18565b81600d60088282829054906101000a900461ffff166115289190613a1c565b92506101000a81548161ffff021916908361ffff16021790555081600d600a8282829054906101000a900461ffff166115619190613a1c565b92506101000a81548161ffff021916908361ffff16021790555081600d60028282829054906101000a900461ffff1661159a9190613a1c565b82546101009290920a61ffff818102199093169183160217909155336000908152601260205260408120805486945090926115d791859116613a1c565b92506101000a81548161ffff021916908361ffff1602179055506115ff338361ffff16612a39565b610d0661161761ffff841666470de4df820000613a42565b612c76565b6000546001600160a01b031633146116645760405162461bcd60e51b81526020600482018190526024820152600080516020613c308339815191526044820152606401610b18565b60405133904780156108fc02916000818181858888f19350505050158015611066573d6000803e3d6000fd5b610d0683838360405180602001604052806000815250612106565b805160609060008167ffffffffffffffff8111156116cb576116cb61342e565b60405190808252806020026020018201604052801561171657816020015b60408051606081018252600080825260208083018290529282015282526000199092019101816116e95790505b50905060005b82811461176a5761174585828151811061173857611738613a8b565b6020026020010151612157565b82828151811061175757611757613a8b565b602090810291909101015260010161171c565b509392505050565b3233146117d55760405162461bcd60e51b815260206004820152602b60248201527f4d7578786f20436174203a3a2043616e6e6f742062652063616c6c656420627960448201526a08184818dbdb9d1c9858dd60aa1b6064820152608401610b18565b600d54600160701b900460ff1661183f5760405162461bcd60e51b815260206004820152602860248201527f4d7578786f20436174203a3a205075626c69632053616c65204e6f74205965746044820152671020b1ba34bb329760c11b6064820152608401610b18565b600b5461ffff62010000909104811690821661185e6002546001540390565b6118689190613a04565b11156118c95760405162461bcd60e51b815260206004820152602a60248201527f4d7578786f20436174203a3a2043616e6e6f74206d696e74206265796f6e64206044820152696d617820737570706c7960b01b6064820152608401610b18565b600d54610961906118ed9083906a0100000000000000000000900461ffff16613a1c565b61ffff1611156119655760405162461bcd60e51b815260206004820152603260248201527f4d7578786f20436174203a3a204265796f6e64204d617820537570706c79206660448201527f6f72204d696e74696e67205370656369616c00000000000000000000000000006064820152608401610b18565b3360009081526010602052604090205460149061198790839061ffff16613a1c565b61ffff1611156119f15760405162461bcd60e51b815260206004820152602f60248201527f4d7578786f20436174203a3a20416c7265616479206d696e746564206d61782060448201526e616c6c6f77656420616d6f756e742160881b6064820152608401610b18565b611a0661ffff821666470de4df820000613a42565b341015611a655760405162461bcd60e51b815260206004820152602760248201527f4d7578786f20436174203a3a205061796d656e742069732062656c6f772074686044820152666520707269636560c81b6064820152608401610b18565b80600d60088282829054906101000a900461ffff16611a849190613a1c565b92506101000a81548161ffff021916908361ffff16021790555080600d60068282829054906101000a900461ffff16611abd9190613a1c565b92506101000a81548161ffff021916908361ffff16021790555080600d600a8282829054906101000a900461ffff16611af69190613a1c565b82546101009290920a61ffff81810219909316918316021790915533600090815260106020526040812080548594509092611b3391859116613a1c565b92506101000a81548161ffff021916908361ffff160217905550611b5b338261ffff16612a39565b61106661161761ffff831666470de4df820000613a42565b6000611b7e82612d04565b5192915050565b6000546001600160a01b03163314611bcd5760405162461bcd60e51b81526020600482018190526024820152600080516020613c308339815191526044820152606401610b18565b600d80546fff000000000000000000000000000000198116600160781b9182900460ff1615909102179055565b60006001600160a01b038216611c23576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b6000546001600160a01b03163314611c915760405162461bcd60e51b81526020600482018190526024820152600080516020613c308339815191526044820152606401610b18565b611c9b6000612e20565b565b6000546001600160a01b03163314611ce55760405162461bcd60e51b81526020600482018190526024820152600080516020613c308339815191526044820152606401610b18565b600e55565b60606000806000611cfa85611bfa565b905060008167ffffffffffffffff811115611d1757611d1761342e565b604051908082528060200260200182016040528015611d40578160200160208202803683370190505b50604080516060810182526000808252602082018190529181018290529192505b838614611e2557600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16158015928201929092529250611dc857611e1d565b81516001600160a01b031615611ddd57815194505b876001600160a01b0316856001600160a01b03161415611e1d5780838780600101985081518110611e1057611e10613a8b565b6020026020010181815250505b600101611d61565b50909695505050505050565b606060048054610b99906139b3565b6060818310611e6257604051631960ccad60e11b815260040160405180910390fd5b60015460009080841115611e74578093505b6000611e7f87611bfa565b905084861015611e9e5785850381811015611e98578091505b50611ea2565b5060005b60008167ffffffffffffffff811115611ebd57611ebd61342e565b604051908082528060200260200182016040528015611ee6578160200160208202803683370190505b50905081611ef9579350611ff592505050565b6000611f0488612157565b905060008160400151611f15575080515b885b888114158015611f275750848714155b15611fe957600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16158015928201929092529350611f8c57611fe1565b82516001600160a01b031615611fa157825191505b8a6001600160a01b0316826001600160a01b03161415611fe15780848880600101995081518110611fd457611fd4613a8b565b6020026020010181815250505b600101611f17565b50505092835250909150505b9392505050565b6001600160a01b0382163314156120265760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000546001600160a01b031633146120da5760405162461bcd60e51b81526020600482018190526024820152600080516020613c308339815191526044820152606401610b18565b600d80546eff0000000000000000000000000000198116600160701b9182900460ff1615909102179055565b612111848484612a53565b6001600160a01b0383163b15158015612133575061213184848484612e7d565b155b15612151576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b604080516060808201835260008083526020808401829052838501829052845192830185528183528201819052928101839052909150600154831061219c5792915050565b50600082815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff1615801592820192909252906121fd5792915050565b611ff583612d04565b6060612211826129a4565b6122835760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610b18565b6000600c8054612292906139b3565b9050116122ae5760405180602001604052806000815250610ace565b600c6122b983612f66565b6040516020016122ca929190613abd565b60405160208183030381529060405292915050565b6000546001600160a01b031633146123275760405162461bcd60e51b81526020600482018190526024820152600080516020613c308339815191526044820152606401610b18565b600b805461ffff909216620100000263ffff000019909216919091179055565b3233146123aa5760405162461bcd60e51b815260206004820152602b60248201527f4d7578786f20436174203a3a2043616e6e6f742062652063616c6c656420627960448201526a08184818dbdb9d1c9858dd60aa1b6064820152608401610b18565b600d54600160781b900460ff1661240f5760405162461bcd60e51b815260206004820152602360248201527f4d7578786f20436174203a3a2050726573616c65204e6f74205965742041637460448201526269766560e81b6064820152608401610b18565b600b5461ffff62010000909104811690821661242e6002546001540390565b6124389190613a04565b11156124995760405162461bcd60e51b815260206004820152602a60248201527f4d7578786f20436174203a3a2043616e6e6f74206d696e74206265796f6e64206044820152696d617820737570706c7960b01b6064820152608401610b18565b60018161ffff1610156124ee5760405162461bcd60e51b815260206004820152601d60248201527f4d7578786f20436174203a3a20496e76616c6964207175616e746974790000006044820152606401610b18565b3360009081526011602052604090205460019061251090839061ffff16613a1c565b61ffff16111561257a5760405162461bcd60e51b815260206004820152602f60248201527f4d7578786f20436174203a3a20416c7265616479206d696e746564206d61782060448201526e616c6c6f77656420616d6f756e742160881b6064820152608401610b18565b600d5461119390612597908390600160601b900461ffff16613a1c565b61ffff1611156125fc5760405162461bcd60e51b815260206004820152602a60248201527f4d7578786f20436174203a3a204265796f6e64204d617820537570706c7920666044820152696f72204d696e74696e6760b01b6064820152608401610b18565b60408051600060208201819052339282019290925260600160405160208183030381529060405280519060200120905061263983600e5483612c60565b6126935760405162461bcd60e51b815260206004820152602560248201527f4d7578786f20436174203a3a20596f7520617265206e6f7420696e2077686974604482015264195b1a5cdd60da1b6064820152608401610b18565b81600d60088282829054906101000a900461ffff166126b29190613a1c565b92506101000a81548161ffff021916908361ffff16021790555081600d600c8282829054906101000a900461ffff166126eb9190613a1c565b92506101000a81548161ffff021916908361ffff16021790555081600d60008282829054906101000a900461ffff166127249190613a1c565b82546101009290920a61ffff8181021990931691831602179091553360009081526011602052604081208054869450909261276191859116613a1c565b92506101000a81548161ffff021916908361ffff160217905550610d06338361ffff16612a39565b6000546001600160a01b031633146127d15760405162461bcd60e51b81526020600482018190526024820152600080516020613c308339815191526044820152606401610b18565b6001600160a01b03811661284d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b18565b61106681612e20565b6001600160a01b03163b151590565b60006001600160e01b0319821663152a902d60e11b1480610ace5750610ace8261307c565b6127106bffffffffffffffffffffffff821611156129105760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608401610b18565b6001600160a01b0382166129665760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610b18565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff9091166020909201829052600160a01b90910217600955565b600060015482108015610ace575050600090815260056020526040902054600160e01b900460ff161590565b600082815260076020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610b2b8282604051806020016040528060008152506130cc565b6000612a5e82612d04565b9050836001600160a01b031681600001516001600160a01b031614612a955760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480612ad157506001600160a01b038516600090815260086020908152604080832033845290915290205460ff165b80612aec575033612ae184610c1c565b6001600160a01b0316145b905080612b0c57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416612b3357604051633a954ecd60e21b815260040160405180910390fd5b612b3f600084876129d0565b6001600160a01b038581166000908152600660209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116612c15576001548214612c15578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b600082612c6d8584613292565b14949350505050565b80341015612cc65760405162461bcd60e51b815260206004820152601660248201527f4e65656420746f2073656e64206d6f7265204554482e000000000000000000006044820152606401610b18565b8034111561106657336108fc612cdc8334613b90565b6040518115909202916000818181858888f19350505050158015610b2b573d6000803e3d6000fd5b604080516060810182526000808252602082018190529181019190915281600154811015612e0757600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16151591810182905290612e055780516001600160a01b031615612d9b579392505050565b5060001901600081815260056020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215612e00579392505050565b612d9b565b505b604051636f96cda160e11b815260040160405180910390fd5b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612eb2903390899088908890600401613ba7565b6020604051808303816000875af1925050508015612eed575060408051601f3d908101601f19168201909252612eea91810190613be3565b60015b612f48573d808015612f1b576040519150601f19603f3d011682016040523d82523d6000602084013e612f20565b606091505b508051612f40576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b606081612f8a5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612fb45780612f9e81613c00565b9150612fad9050600a83613a77565b9150612f8e565b60008167ffffffffffffffff811115612fcf57612fcf61342e565b6040519080825280601f01601f191660200182016040528015612ff9576020820181803683370190505b5090505b8415612f5e5761300e600183613b90565b915061301b600a86613c1b565b613026906030613a04565b60f81b81838151811061303b5761303b613a8b565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613075600a86613a77565b9450612ffd565b60006001600160e01b031982166380ac58cd60e01b14806130ad57506001600160e01b03198216635b5e139f60e01b145b80610ace57506301ffc9a760e01b6001600160e01b0319831614610ace565b6001546001600160a01b0384166130f557604051622e076360e81b815260040160405180910390fd5b826131135760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038416600081815260066020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168b0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168b01811690920217909155858452600590925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b1561323d575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46132056000878480600101955087612e7d565b613222576040516368d2bf6b60e11b815260040160405180910390fd5b808214156131ba57826001541461323857600080fd5b613283565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082141561323e575b50600155612151600085838684565b600081815b845181101561176a5760008582815181106132b4576132b4613a8b565b602002602001015190508083116132da57600083815260208290526040902092506132eb565b600081815260208490526040902092505b50806132f681613c00565b915050613297565b82805461330a906139b3565b90600052602060002090601f01602090048101928261332c5760008555613372565b82601f1061334557805160ff1916838001178555613372565b82800160010185558215613372579182015b82811115613372578251825591602001919060010190613357565b5061337e929150613382565b5090565b5b8082111561337e5760008155600101613383565b6001600160e01b03198116811461106657600080fd5b6000602082840312156133bf57600080fd5b8135611ff581613397565b80356001600160a01b03811681146133e157600080fd5b919050565b600080604083850312156133f957600080fd5b613402836133ca565b915060208301356bffffffffffffffffffffffff8116811461342357600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561346d5761346d61342e565b604052919050565b600067ffffffffffffffff83111561348f5761348f61342e565b6134a2601f8401601f1916602001613444565b90508281528383830111156134b657600080fd5b828260208301376000602084830101529392505050565b6000602082840312156134df57600080fd5b813567ffffffffffffffff8111156134f657600080fd5b8201601f8101841361350757600080fd5b612f5e84823560208401613475565b60005b83811015613531578181015183820152602001613519565b838111156121515750506000910152565b6000815180845261355a816020860160208601613516565b601f01601f19169290920160200192915050565b602081526000611ff56020830184613542565b60006020828403121561359357600080fd5b5035919050565b600080604083850312156135ad57600080fd5b6135b6836133ca565b946020939093013593505050565b803561ffff811681146133e157600080fd5b6000602082840312156135e857600080fd5b611ff5826135c4565b60008060006060848603121561360657600080fd5b61360f846133ca565b925061361d602085016133ca565b9150604084013590509250925092565b60006020828403121561363f57600080fd5b611ff5826133ca565b6000806040838503121561365b57600080fd5b50508035926020909101359150565b600067ffffffffffffffff8211156136845761368461342e565b5060051b60200190565b600080604083850312156136a157600080fd5b823567ffffffffffffffff8111156136b857600080fd5b8301601f810185136136c957600080fd5b803560206136de6136d98361366a565b613444565b82815260059290921b830181019181810190888411156136fd57600080fd5b938201935b8385101561371b57843582529382019390820190613702565b955061372a90508682016135c4565b93505050509250929050565b6000602080838503121561374957600080fd5b823567ffffffffffffffff81111561376057600080fd5b8301601f8101851361377157600080fd5b803561377f6136d98261366a565b81815260059190911b8201830190838101908783111561379e57600080fd5b928401925b828410156137bc578335825292840192908401906137a3565b979650505050505050565b6020808252825182820181905260009190848201906040850190845b81811015611e255761381f83855180516001600160a01b0316825260208082015167ffffffffffffffff16908301526040908101511515910152565b92840192606092909201916001016137e3565b6020808252825182820181905260009190848201906040850190845b81811015611e255783518352928401929184019160010161384e565b60008060006060848603121561387f57600080fd5b613888846133ca565b95602085013595506040909401359392505050565b600080604083850312156138b057600080fd5b6138b9836133ca565b91506020830135801515811461342357600080fd5b600080600080608085870312156138e457600080fd5b6138ed856133ca565b93506138fb602086016133ca565b925060408501359150606085013567ffffffffffffffff81111561391e57600080fd5b8501601f8101871361392f57600080fd5b61393e87823560208401613475565b91505092959194509250565b81516001600160a01b0316815260208083015167ffffffffffffffff169082015260408083015115159082015260608101610ace565b6000806040838503121561399357600080fd5b61399c836133ca565b91506139aa602084016133ca565b90509250929050565b600181811c908216806139c757607f821691505b602082108114156139e857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115613a1757613a176139ee565b500190565b600061ffff808316818516808303821115613a3957613a396139ee565b01949350505050565b6000816000190483118215151615613a5c57613a5c6139ee565b500290565b634e487b7160e01b600052601260045260246000fd5b600082613a8657613a86613a61565b500490565b634e487b7160e01b600052603260045260246000fd5b60008151613ab3818560208601613516565b9290920192915050565b600080845481600182811c915080831680613ad957607f831692505b6020808410821415613af957634e487b7160e01b86526022600452602486fd5b818015613b0d5760018114613b1e57613b4b565b60ff19861689528489019650613b4b565b60008b81526020902060005b86811015613b435781548b820152908501908301613b2a565b505084890196505b505050505050613b87613b5e8286613aa1565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000815260050190565b95945050505050565b600082821015613ba257613ba26139ee565b500390565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613bd96080830184613542565b9695505050505050565b600060208284031215613bf557600080fd5b8151611ff581613397565b6000600019821415613c1457613c146139ee565b5060010190565b600082613c2a57613c2a613a61565b50069056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220c7a51dc87de8ec55bc5c70084abb734e72f2466307af23407a7ff473c19a923b64736f6c634300080b003368747470733a2f2f6170692e7472616974736e697065722e636f6d2f6170692f6d7578786f5f6361742f6d657461646174612fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef000000000000000000000000c7f0ef4c2744cc6bcf4158cbd61f84f24e2adf67
Deployed Bytecode
0x60806040526004361061036b5760003560e01c8063749d53ca116101c6578063b88d4fde116100f7578063daf24c0a11610095578063e985e9c51161006f578063e985e9c514610a1b578063ea1088b714610a64578063f10ebff814610a7a578063f2fde38b14610aa357600080fd5b8063daf24c0a146109b6578063e1c2959a146109db578063e1d90010146109fb57600080fd5b8063c54d668f116100d1578063c54d668f1461094c578063c87b56dd14610973578063ca87757f14610993578063d2d889f81461077657600080fd5b8063b88d4fde146108ce578063bc660cac146108ee578063c23dc68f1461091f57600080fd5b806395364a84116101645780639d56c2eb1161013e5780639d56c2eb14610847578063a22cb46514610878578063a5a865dc14610898578063b01e066a146108b957600080fd5b806395364a84146107f157806395d89b411461081257806399a2557a1461082757600080fd5b80638462151c116101a05780638462151c1461078b5780638516ab03146106db5780638da5cb5b146107b85780638e824bdf146107d657600080fd5b8063749d53ca146107405780637cb64759146107565780638383fc121461077657600080fd5b806332cb6b0c116102a05780636352211e1161023e57806367beebe81161021857806367beebe8146106db57806370a08231146106f0578063715018a61461071057806373ebe8221461072557600080fd5b80636352211e1461067557806363be13321461069557806363f6a97d146106c657600080fd5b806340fd839b1161027a57806340fd839b146105ee57806342842e0e146106155780635bbb21771461063557806360bc7a541461066257600080fd5b806332cb6b0c146105a5578063388fec90146105c65780633ccfd60b146105d957600080fd5b806316755b571161030d57806323b872dd116102e757806323b872dd146104fa578063244b7e931461051a5780632a55205a1461054b5780632b1df2e01461058a57600080fd5b806316755b571461049557806318160ddd146104b5578063188e6318146104d857600080fd5b806306fdde031161034957806306fdde03146103e7578063081812fc14610409578063095ea7b3146104415780630e3e32481461046157600080fd5b806301ffc9a71461037057806302fa7c47146103a55780630675b7c6146103c7575b600080fd5b34801561037c57600080fd5b5061039061038b3660046133ad565b610ac3565b60405190151581526020015b60405180910390f35b3480156103b157600080fd5b506103c56103c03660046133e6565b610ad4565b005b3480156103d357600080fd5b506103c56103e23660046134cd565b610b2f565b3480156103f357600080fd5b506103fc610b8a565b60405161039c919061356e565b34801561041557600080fd5b50610429610424366004613581565b610c1c565b6040516001600160a01b03909116815260200161039c565b34801561044d57600080fd5b506103c561045c36600461359a565b610c60565b34801561046d57600080fd5b50600d546104829062010000900461ffff1681565b60405161ffff909116815260200161039c565b3480156104a157600080fd5b506103c56104b03660046135d6565b610d0b565b3480156104c157600080fd5b50600254600154035b60405190815260200161039c565b3480156104e457600080fd5b50600d5461048290600160601b900461ffff1681565b34801561050657600080fd5b506103c56105153660046135f1565b611069565b34801561052657600080fd5b5061048261053536600461362d565b600f6020526000908152604090205461ffff1681565b34801561055757600080fd5b5061056b610566366004613648565b611074565b604080516001600160a01b03909316835260208301919091520161039c565b34801561059657600080fd5b506104ca66470de4df82000081565b3480156105b157600080fd5b50600b546104829062010000900461ffff1681565b6103c56105d436600461368e565b61112f565b3480156105e557600080fd5b506103c561161c565b3480156105fa57600080fd5b50610603604581565b60405160ff909116815260200161039c565b34801561062157600080fd5b506103c56106303660046135f1565b611690565b34801561064157600080fd5b50610655610650366004613736565b6116ab565b60405161039c91906137c7565b6103c56106703660046135d6565b611772565b34801561068157600080fd5b50610429610690366004613581565b611b73565b3480156106a157600080fd5b506104826106b036600461362d565b60106020526000908152604090205461ffff1681565b3480156106d257600080fd5b506103c5611b85565b3480156106e757600080fd5b50610482601481565b3480156106fc57600080fd5b506104ca61070b36600461362d565b611bfa565b34801561071c57600080fd5b506103c5611c49565b34801561073157600080fd5b50600d546104829061ffff1681565b34801561074c57600080fd5b5061048261119381565b34801561076257600080fd5b506103c5610771366004613581565b611c9d565b34801561078257600080fd5b50610603600181565b34801561079757600080fd5b506107ab6107a636600461362d565b611cea565b60405161039c9190613832565b3480156107c457600080fd5b506000546001600160a01b0316610429565b3480156107e257600080fd5b50600b546104829061ffff1681565b3480156107fd57600080fd5b50600d5461039090600160781b900460ff1681565b34801561081e57600080fd5b506103fc611e31565b34801561083357600080fd5b506107ab61084236600461386a565b611e40565b34801561085357600080fd5b5061048261086236600461362d565b60126020526000908152604090205461ffff1681565b34801561088457600080fd5b506103c561089336600461389d565b611ffc565b3480156108a457600080fd5b50600d5461039090600160701b900460ff1681565b3480156108c557600080fd5b506103c5612092565b3480156108da57600080fd5b506103c56108e93660046138ce565b612106565b3480156108fa57600080fd5b5061048261090936600461362d565b60116020526000908152604090205461ffff1681565b34801561092b57600080fd5b5061093f61093a366004613581565b612157565b60405161039c919061394a565b34801561095857600080fd5b50600d546104829068010000000000000000900461ffff1681565b34801561097f57600080fd5b506103fc61098e366004613581565b612206565b34801561099f57600080fd5b50600d5461048290640100000000900461ffff1681565b3480156109c257600080fd5b50600d54610482906601000000000000900461ffff1681565b3480156109e757600080fd5b506103c56109f63660046135d6565b6122df565b348015610a0757600080fd5b506103c5610a1636600461368e565b612347565b348015610a2757600080fd5b50610390610a36366004613980565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b348015610a7057600080fd5b5061048261096181565b348015610a8657600080fd5b50600d54610482906a0100000000000000000000900461ffff1681565b348015610aaf57600080fd5b506103c5610abe36600461362d565b612789565b6000610ace82612865565b92915050565b6000546001600160a01b03163314610b215760405162461bcd60e51b81526020600482018190526024820152600080516020613c3083398151915260448201526064015b60405180910390fd5b610b2b828261288a565b5050565b6000546001600160a01b03163314610b775760405162461bcd60e51b81526020600482018190526024820152600080516020613c308339815191526044820152606401610b18565b8051610b2b90600c9060208401906132fe565b606060038054610b99906139b3565b80601f0160208091040260200160405190810160405280929190818152602001828054610bc5906139b3565b8015610c125780601f10610be757610100808354040283529160200191610c12565b820191906000526020600020905b815481529060010190602001808311610bf557829003601f168201915b5050505050905090565b6000610c27826129a4565b610c44576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000610c6b82611b73565b9050806001600160a01b0316836001600160a01b03161415610ca05760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610cdd57506001600160a01b038116600090815260086020908152604080832033845290915290205460ff16155b15610cfb576040516367d9dca160e11b815260040160405180910390fd5b610d068383836129d0565b505050565b323314610d6e5760405162461bcd60e51b815260206004820152602b60248201527f4d7578786f20436174203a3a2043616e6e6f742062652063616c6c656420627960448201526a08184818dbdb9d1c9858dd60aa1b6064820152608401610b18565b600d54600160701b900460ff16610dd85760405162461bcd60e51b815260206004820152602860248201527f4d7578786f20436174203a3a205075626c69632053616c65204e6f74205965746044820152671020b1ba34bb329760c11b6064820152608401610b18565b600b5461ffff620100009091048116908216610df76002546001540390565b610e019190613a04565b1115610e625760405162461bcd60e51b815260206004820152602a60248201527f4d7578786f20436174203a3a2043616e6e6f74206d696e74206265796f6e64206044820152696d617820737570706c7960b01b6064820152608401610b18565b600d5461119390610e7f908390600160601b900461ffff16613a1c565b61ffff161115610ee45760405162461bcd60e51b815260206004820152602a60248201527f4d7578786f20436174203a3a204265796f6e64204d617820537570706c7920666044820152696f72204d696e74696e6760b01b6064820152608401610b18565b336000908152600f6020526040902054601490610f0690839061ffff16613a1c565b61ffff161115610f705760405162461bcd60e51b815260206004820152602f60248201527f4d7578786f20436174203a3a20416c7265616479206d696e746564206d61782060448201526e616c6c6f77656420616d6f756e742160881b6064820152608401610b18565b80600d60088282829054906101000a900461ffff16610f8f9190613a1c565b92506101000a81548161ffff021916908361ffff16021790555080600d600c8282829054906101000a900461ffff16610fc89190613a1c565b92506101000a81548161ffff021916908361ffff16021790555080600d60048282829054906101000a900461ffff166110019190613a1c565b82546101009290920a61ffff818102199093169183160217909155336000908152600f602052604081208054859450909261103e91859116613a1c565b92506101000a81548161ffff021916908361ffff160217905550611066338261ffff16612a39565b50565b610d06838383612a53565b6000828152600a602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff169282019290925282916110f35750604080518082019091526009546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b602081015160009061271090611117906bffffffffffffffffffffffff1687613a42565b6111219190613a77565b915196919550909350505050565b3233146111925760405162461bcd60e51b815260206004820152602b60248201527f4d7578786f20436174203a3a2043616e6e6f742062652063616c6c656420627960448201526a08184818dbdb9d1c9858dd60aa1b6064820152608401610b18565b600d54600160781b900460ff166111f75760405162461bcd60e51b815260206004820152602360248201527f4d7578786f20436174203a3a2050726573616c65204e6f74205965742041637460448201526269766560e81b6064820152608401610b18565b600b5461ffff6201000090910481169082166112166002546001540390565b6112209190613a04565b11156112815760405162461bcd60e51b815260206004820152602a60248201527f4d7578786f20436174203a3a2043616e6e6f74206d696e74206265796f6e64206044820152696d617820737570706c7960b01b6064820152608401610b18565b60018161ffff1610156112d65760405162461bcd60e51b815260206004820152601d60248201527f4d7578786f20436174203a3a20496e76616c6964207175616e746974790000006044820152606401610b18565b336000908152601260205260409020546001906112f890839061ffff16613a1c565b61ffff1611156113625760405162461bcd60e51b815260206004820152602f60248201527f4d7578786f20436174203a3a20416c7265616479206d696e746564206d61782060448201526e616c6c6f77656420616d6f756e742160881b6064820152608401610b18565b600d54610961906113869083906a0100000000000000000000900461ffff16613a1c565b61ffff1611156113fe5760405162461bcd60e51b815260206004820152603260248201527f4d7578786f20436174203a3a204265796f6e64204d617820537570706c79206660448201527f6f72204d696e74696e67205370656369616c00000000000000000000000000006064820152608401610b18565b61141361ffff821666470de4df820000613a42565b3410156114725760405162461bcd60e51b815260206004820152602760248201527f4d7578786f20436174203a3a205061796d656e742069732062656c6f772074686044820152666520707269636560c81b6064820152608401610b18565b6040805160006020820181905233928201929092526060016040516020818303038152906040528051906020012090506114af83600e5483612c60565b6115095760405162461bcd60e51b815260206004820152602560248201527f4d7578786f20436174203a3a20596f7520617265206e6f7420696e2077686974604482015264195b1a5cdd60da1b6064820152608401610b18565b81600d60088282829054906101000a900461ffff166115289190613a1c565b92506101000a81548161ffff021916908361ffff16021790555081600d600a8282829054906101000a900461ffff166115619190613a1c565b92506101000a81548161ffff021916908361ffff16021790555081600d60028282829054906101000a900461ffff1661159a9190613a1c565b82546101009290920a61ffff818102199093169183160217909155336000908152601260205260408120805486945090926115d791859116613a1c565b92506101000a81548161ffff021916908361ffff1602179055506115ff338361ffff16612a39565b610d0661161761ffff841666470de4df820000613a42565b612c76565b6000546001600160a01b031633146116645760405162461bcd60e51b81526020600482018190526024820152600080516020613c308339815191526044820152606401610b18565b60405133904780156108fc02916000818181858888f19350505050158015611066573d6000803e3d6000fd5b610d0683838360405180602001604052806000815250612106565b805160609060008167ffffffffffffffff8111156116cb576116cb61342e565b60405190808252806020026020018201604052801561171657816020015b60408051606081018252600080825260208083018290529282015282526000199092019101816116e95790505b50905060005b82811461176a5761174585828151811061173857611738613a8b565b6020026020010151612157565b82828151811061175757611757613a8b565b602090810291909101015260010161171c565b509392505050565b3233146117d55760405162461bcd60e51b815260206004820152602b60248201527f4d7578786f20436174203a3a2043616e6e6f742062652063616c6c656420627960448201526a08184818dbdb9d1c9858dd60aa1b6064820152608401610b18565b600d54600160701b900460ff1661183f5760405162461bcd60e51b815260206004820152602860248201527f4d7578786f20436174203a3a205075626c69632053616c65204e6f74205965746044820152671020b1ba34bb329760c11b6064820152608401610b18565b600b5461ffff62010000909104811690821661185e6002546001540390565b6118689190613a04565b11156118c95760405162461bcd60e51b815260206004820152602a60248201527f4d7578786f20436174203a3a2043616e6e6f74206d696e74206265796f6e64206044820152696d617820737570706c7960b01b6064820152608401610b18565b600d54610961906118ed9083906a0100000000000000000000900461ffff16613a1c565b61ffff1611156119655760405162461bcd60e51b815260206004820152603260248201527f4d7578786f20436174203a3a204265796f6e64204d617820537570706c79206660448201527f6f72204d696e74696e67205370656369616c00000000000000000000000000006064820152608401610b18565b3360009081526010602052604090205460149061198790839061ffff16613a1c565b61ffff1611156119f15760405162461bcd60e51b815260206004820152602f60248201527f4d7578786f20436174203a3a20416c7265616479206d696e746564206d61782060448201526e616c6c6f77656420616d6f756e742160881b6064820152608401610b18565b611a0661ffff821666470de4df820000613a42565b341015611a655760405162461bcd60e51b815260206004820152602760248201527f4d7578786f20436174203a3a205061796d656e742069732062656c6f772074686044820152666520707269636560c81b6064820152608401610b18565b80600d60088282829054906101000a900461ffff16611a849190613a1c565b92506101000a81548161ffff021916908361ffff16021790555080600d60068282829054906101000a900461ffff16611abd9190613a1c565b92506101000a81548161ffff021916908361ffff16021790555080600d600a8282829054906101000a900461ffff16611af69190613a1c565b82546101009290920a61ffff81810219909316918316021790915533600090815260106020526040812080548594509092611b3391859116613a1c565b92506101000a81548161ffff021916908361ffff160217905550611b5b338261ffff16612a39565b61106661161761ffff831666470de4df820000613a42565b6000611b7e82612d04565b5192915050565b6000546001600160a01b03163314611bcd5760405162461bcd60e51b81526020600482018190526024820152600080516020613c308339815191526044820152606401610b18565b600d80546fff000000000000000000000000000000198116600160781b9182900460ff1615909102179055565b60006001600160a01b038216611c23576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b6000546001600160a01b03163314611c915760405162461bcd60e51b81526020600482018190526024820152600080516020613c308339815191526044820152606401610b18565b611c9b6000612e20565b565b6000546001600160a01b03163314611ce55760405162461bcd60e51b81526020600482018190526024820152600080516020613c308339815191526044820152606401610b18565b600e55565b60606000806000611cfa85611bfa565b905060008167ffffffffffffffff811115611d1757611d1761342e565b604051908082528060200260200182016040528015611d40578160200160208202803683370190505b50604080516060810182526000808252602082018190529181018290529192505b838614611e2557600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16158015928201929092529250611dc857611e1d565b81516001600160a01b031615611ddd57815194505b876001600160a01b0316856001600160a01b03161415611e1d5780838780600101985081518110611e1057611e10613a8b565b6020026020010181815250505b600101611d61565b50909695505050505050565b606060048054610b99906139b3565b6060818310611e6257604051631960ccad60e11b815260040160405180910390fd5b60015460009080841115611e74578093505b6000611e7f87611bfa565b905084861015611e9e5785850381811015611e98578091505b50611ea2565b5060005b60008167ffffffffffffffff811115611ebd57611ebd61342e565b604051908082528060200260200182016040528015611ee6578160200160208202803683370190505b50905081611ef9579350611ff592505050565b6000611f0488612157565b905060008160400151611f15575080515b885b888114158015611f275750848714155b15611fe957600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16158015928201929092529350611f8c57611fe1565b82516001600160a01b031615611fa157825191505b8a6001600160a01b0316826001600160a01b03161415611fe15780848880600101995081518110611fd457611fd4613a8b565b6020026020010181815250505b600101611f17565b50505092835250909150505b9392505050565b6001600160a01b0382163314156120265760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000546001600160a01b031633146120da5760405162461bcd60e51b81526020600482018190526024820152600080516020613c308339815191526044820152606401610b18565b600d80546eff0000000000000000000000000000198116600160701b9182900460ff1615909102179055565b612111848484612a53565b6001600160a01b0383163b15158015612133575061213184848484612e7d565b155b15612151576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b604080516060808201835260008083526020808401829052838501829052845192830185528183528201819052928101839052909150600154831061219c5792915050565b50600082815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff1615801592820192909252906121fd5792915050565b611ff583612d04565b6060612211826129a4565b6122835760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610b18565b6000600c8054612292906139b3565b9050116122ae5760405180602001604052806000815250610ace565b600c6122b983612f66565b6040516020016122ca929190613abd565b60405160208183030381529060405292915050565b6000546001600160a01b031633146123275760405162461bcd60e51b81526020600482018190526024820152600080516020613c308339815191526044820152606401610b18565b600b805461ffff909216620100000263ffff000019909216919091179055565b3233146123aa5760405162461bcd60e51b815260206004820152602b60248201527f4d7578786f20436174203a3a2043616e6e6f742062652063616c6c656420627960448201526a08184818dbdb9d1c9858dd60aa1b6064820152608401610b18565b600d54600160781b900460ff1661240f5760405162461bcd60e51b815260206004820152602360248201527f4d7578786f20436174203a3a2050726573616c65204e6f74205965742041637460448201526269766560e81b6064820152608401610b18565b600b5461ffff62010000909104811690821661242e6002546001540390565b6124389190613a04565b11156124995760405162461bcd60e51b815260206004820152602a60248201527f4d7578786f20436174203a3a2043616e6e6f74206d696e74206265796f6e64206044820152696d617820737570706c7960b01b6064820152608401610b18565b60018161ffff1610156124ee5760405162461bcd60e51b815260206004820152601d60248201527f4d7578786f20436174203a3a20496e76616c6964207175616e746974790000006044820152606401610b18565b3360009081526011602052604090205460019061251090839061ffff16613a1c565b61ffff16111561257a5760405162461bcd60e51b815260206004820152602f60248201527f4d7578786f20436174203a3a20416c7265616479206d696e746564206d61782060448201526e616c6c6f77656420616d6f756e742160881b6064820152608401610b18565b600d5461119390612597908390600160601b900461ffff16613a1c565b61ffff1611156125fc5760405162461bcd60e51b815260206004820152602a60248201527f4d7578786f20436174203a3a204265796f6e64204d617820537570706c7920666044820152696f72204d696e74696e6760b01b6064820152608401610b18565b60408051600060208201819052339282019290925260600160405160208183030381529060405280519060200120905061263983600e5483612c60565b6126935760405162461bcd60e51b815260206004820152602560248201527f4d7578786f20436174203a3a20596f7520617265206e6f7420696e2077686974604482015264195b1a5cdd60da1b6064820152608401610b18565b81600d60088282829054906101000a900461ffff166126b29190613a1c565b92506101000a81548161ffff021916908361ffff16021790555081600d600c8282829054906101000a900461ffff166126eb9190613a1c565b92506101000a81548161ffff021916908361ffff16021790555081600d60008282829054906101000a900461ffff166127249190613a1c565b82546101009290920a61ffff8181021990931691831602179091553360009081526011602052604081208054869450909261276191859116613a1c565b92506101000a81548161ffff021916908361ffff160217905550610d06338361ffff16612a39565b6000546001600160a01b031633146127d15760405162461bcd60e51b81526020600482018190526024820152600080516020613c308339815191526044820152606401610b18565b6001600160a01b03811661284d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b18565b61106681612e20565b6001600160a01b03163b151590565b60006001600160e01b0319821663152a902d60e11b1480610ace5750610ace8261307c565b6127106bffffffffffffffffffffffff821611156129105760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608401610b18565b6001600160a01b0382166129665760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610b18565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff9091166020909201829052600160a01b90910217600955565b600060015482108015610ace575050600090815260056020526040902054600160e01b900460ff161590565b600082815260076020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610b2b8282604051806020016040528060008152506130cc565b6000612a5e82612d04565b9050836001600160a01b031681600001516001600160a01b031614612a955760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480612ad157506001600160a01b038516600090815260086020908152604080832033845290915290205460ff165b80612aec575033612ae184610c1c565b6001600160a01b0316145b905080612b0c57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416612b3357604051633a954ecd60e21b815260040160405180910390fd5b612b3f600084876129d0565b6001600160a01b038581166000908152600660209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116612c15576001548214612c15578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b600082612c6d8584613292565b14949350505050565b80341015612cc65760405162461bcd60e51b815260206004820152601660248201527f4e65656420746f2073656e64206d6f7265204554482e000000000000000000006044820152606401610b18565b8034111561106657336108fc612cdc8334613b90565b6040518115909202916000818181858888f19350505050158015610b2b573d6000803e3d6000fd5b604080516060810182526000808252602082018190529181019190915281600154811015612e0757600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16151591810182905290612e055780516001600160a01b031615612d9b579392505050565b5060001901600081815260056020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215612e00579392505050565b612d9b565b505b604051636f96cda160e11b815260040160405180910390fd5b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612eb2903390899088908890600401613ba7565b6020604051808303816000875af1925050508015612eed575060408051601f3d908101601f19168201909252612eea91810190613be3565b60015b612f48573d808015612f1b576040519150601f19603f3d011682016040523d82523d6000602084013e612f20565b606091505b508051612f40576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b606081612f8a5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612fb45780612f9e81613c00565b9150612fad9050600a83613a77565b9150612f8e565b60008167ffffffffffffffff811115612fcf57612fcf61342e565b6040519080825280601f01601f191660200182016040528015612ff9576020820181803683370190505b5090505b8415612f5e5761300e600183613b90565b915061301b600a86613c1b565b613026906030613a04565b60f81b81838151811061303b5761303b613a8b565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613075600a86613a77565b9450612ffd565b60006001600160e01b031982166380ac58cd60e01b14806130ad57506001600160e01b03198216635b5e139f60e01b145b80610ace57506301ffc9a760e01b6001600160e01b0319831614610ace565b6001546001600160a01b0384166130f557604051622e076360e81b815260040160405180910390fd5b826131135760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038416600081815260066020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168b0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168b01811690920217909155858452600590925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b1561323d575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46132056000878480600101955087612e7d565b613222576040516368d2bf6b60e11b815260040160405180910390fd5b808214156131ba57826001541461323857600080fd5b613283565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082141561323e575b50600155612151600085838684565b600081815b845181101561176a5760008582815181106132b4576132b4613a8b565b602002602001015190508083116132da57600083815260208290526040902092506132eb565b600081815260208490526040902092505b50806132f681613c00565b915050613297565b82805461330a906139b3565b90600052602060002090601f01602090048101928261332c5760008555613372565b82601f1061334557805160ff1916838001178555613372565b82800160010185558215613372579182015b82811115613372578251825591602001919060010190613357565b5061337e929150613382565b5090565b5b8082111561337e5760008155600101613383565b6001600160e01b03198116811461106657600080fd5b6000602082840312156133bf57600080fd5b8135611ff581613397565b80356001600160a01b03811681146133e157600080fd5b919050565b600080604083850312156133f957600080fd5b613402836133ca565b915060208301356bffffffffffffffffffffffff8116811461342357600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561346d5761346d61342e565b604052919050565b600067ffffffffffffffff83111561348f5761348f61342e565b6134a2601f8401601f1916602001613444565b90508281528383830111156134b657600080fd5b828260208301376000602084830101529392505050565b6000602082840312156134df57600080fd5b813567ffffffffffffffff8111156134f657600080fd5b8201601f8101841361350757600080fd5b612f5e84823560208401613475565b60005b83811015613531578181015183820152602001613519565b838111156121515750506000910152565b6000815180845261355a816020860160208601613516565b601f01601f19169290920160200192915050565b602081526000611ff56020830184613542565b60006020828403121561359357600080fd5b5035919050565b600080604083850312156135ad57600080fd5b6135b6836133ca565b946020939093013593505050565b803561ffff811681146133e157600080fd5b6000602082840312156135e857600080fd5b611ff5826135c4565b60008060006060848603121561360657600080fd5b61360f846133ca565b925061361d602085016133ca565b9150604084013590509250925092565b60006020828403121561363f57600080fd5b611ff5826133ca565b6000806040838503121561365b57600080fd5b50508035926020909101359150565b600067ffffffffffffffff8211156136845761368461342e565b5060051b60200190565b600080604083850312156136a157600080fd5b823567ffffffffffffffff8111156136b857600080fd5b8301601f810185136136c957600080fd5b803560206136de6136d98361366a565b613444565b82815260059290921b830181019181810190888411156136fd57600080fd5b938201935b8385101561371b57843582529382019390820190613702565b955061372a90508682016135c4565b93505050509250929050565b6000602080838503121561374957600080fd5b823567ffffffffffffffff81111561376057600080fd5b8301601f8101851361377157600080fd5b803561377f6136d98261366a565b81815260059190911b8201830190838101908783111561379e57600080fd5b928401925b828410156137bc578335825292840192908401906137a3565b979650505050505050565b6020808252825182820181905260009190848201906040850190845b81811015611e255761381f83855180516001600160a01b0316825260208082015167ffffffffffffffff16908301526040908101511515910152565b92840192606092909201916001016137e3565b6020808252825182820181905260009190848201906040850190845b81811015611e255783518352928401929184019160010161384e565b60008060006060848603121561387f57600080fd5b613888846133ca565b95602085013595506040909401359392505050565b600080604083850312156138b057600080fd5b6138b9836133ca565b91506020830135801515811461342357600080fd5b600080600080608085870312156138e457600080fd5b6138ed856133ca565b93506138fb602086016133ca565b925060408501359150606085013567ffffffffffffffff81111561391e57600080fd5b8501601f8101871361392f57600080fd5b61393e87823560208401613475565b91505092959194509250565b81516001600160a01b0316815260208083015167ffffffffffffffff169082015260408083015115159082015260608101610ace565b6000806040838503121561399357600080fd5b61399c836133ca565b91506139aa602084016133ca565b90509250929050565b600181811c908216806139c757607f821691505b602082108114156139e857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115613a1757613a176139ee565b500190565b600061ffff808316818516808303821115613a3957613a396139ee565b01949350505050565b6000816000190483118215151615613a5c57613a5c6139ee565b500290565b634e487b7160e01b600052601260045260246000fd5b600082613a8657613a86613a61565b500490565b634e487b7160e01b600052603260045260246000fd5b60008151613ab3818560208601613516565b9290920192915050565b600080845481600182811c915080831680613ad957607f831692505b6020808410821415613af957634e487b7160e01b86526022600452602486fd5b818015613b0d5760018114613b1e57613b4b565b60ff19861689528489019650613b4b565b60008b81526020902060005b86811015613b435781548b820152908501908301613b2a565b505084890196505b505050505050613b87613b5e8286613aa1565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000815260050190565b95945050505050565b600082821015613ba257613ba26139ee565b500390565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613bd96080830184613542565b9695505050505050565b600060208284031215613bf557600080fd5b8151611ff581613397565b6000600019821415613c1457613c146139ee565b5060010190565b600082613c2a57613c2a613a61565b50069056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220c7a51dc87de8ec55bc5c70084abb734e72f2466307af23407a7ff473c19a923b64736f6c634300080b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c7f0ef4c2744cc6bcf4158cbd61f84f24e2adf67
-----Decoded View---------------
Arg [0] : royaltyReceiver (address): 0xC7f0EF4C2744cC6bcF4158CBD61F84f24e2adf67
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000c7f0ef4c2744cc6bcf4158cbd61f84f24e2adf67
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.