Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
5,718 Cosmopets
Holders
1,400
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
4 CosmopetsLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
CosmodinosPets
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "./ERC721A.sol"; contract CosmodinosPets is Ownable, ERC721A, ReentrancyGuard { using SafeMath for uint256; uint256 public immutable collectionSize = 11000; bytes32 public merkleRoot; bool public mintIsOpen = false; string private _baseTokenURI; constructor( string memory tokenUri_, string memory name_, string memory symbol_ ) ERC721A(name_, symbol_) { _baseTokenURI = tokenUri_; } function getMyPets( uint256 count, uint256 allowance, bytes32[] calldata proof ) external payable callerIsUser { require(mintIsOpen == true, "mint list must be opened"); uint256 maxQuantity = allowance.sub(_numberMinted(msg.sender)); require(count <= maxQuantity, "quantity error"); require(_verify(_leaf(msg.sender, allowance), proof), "Invalid merkle proof"); internalMint(count, msg.sender); } modifier callerIsUser() { require(tx.origin == msg.sender, "The caller is another contract"); _; } function setMerkleRoot(bytes32 _merkleRoot) public onlyOwner { merkleRoot = _merkleRoot; } function setMintIsOpen(bool _mintIsOpen) public onlyOwner { mintIsOpen = _mintIsOpen; } function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } function _verify(bytes32 leaf, bytes32[] memory proof) internal view returns (bool) { return MerkleProof.verify(proof, merkleRoot, leaf); } function _leaf(address account, uint256 amount) internal pure returns (bytes32) { return keccak256(abi.encodePacked(account, amount)); } function setBaseURI(string calldata baseURI) external onlyOwner { _baseTokenURI = baseURI; } function airDrop(uint256 count, address wallet) external onlyOwner { internalMint(count, wallet); } function internalMint(uint256 count, address wallet) internal { require(totalSupply() + count <= collectionSize, "reached max supply"); _safeMint(wallet, count); } function numberMintedOn(address owner) public view returns (uint256) { return _numberMinted(owner); } function getOwnershipData(uint256 tokenId) external view returns (TokenOwnership memory) { return ownershipOf(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/token/ERC721/extensions/IERC721Enumerable.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 MintedQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error OwnerIndexOutOfBounds(); error OwnerQueryForNonexistentToken(); error TokenIndexOutOfBounds(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error UnableDetermineTokenOwner(); error URIQueryForNonexistentToken(); /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Does not support burning tokens to address(0). * * Assumes that an owner cannot have more than the 2**128 - 1 (max value of uint128) of supply */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; struct TokenOwnership { address addr; uint64 startTimestamp; } struct AddressData { uint128 balance; uint128 numberMinted; } uint256 internal _currentIndex; // 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_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { return _currentIndex; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { if (index >= totalSupply()) revert TokenIndexOutOfBounds(); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { if (index >= balanceOf(owner)) revert OwnerIndexOutOfBounds(); uint256 numMintedSoFar = totalSupply(); uint256 tokenIdsIdx; address currOwnershipAddr; // Counter overflow is impossible as the loop breaks when uint256 i is equal to another uint256 numMintedSoFar. unchecked { for (uint256 i; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } } // Execution should never reach this point. assert(false); } /** * @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 || interfaceId == type(IERC721Enumerable).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); } function _numberMinted(address owner) internal view returns (uint256) { if (owner == address(0)) revert MintedQueryForZeroAddress(); return uint256(_addressData[owner].numberMinted); } /** * 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) { if (!_exists(tokenId)) revert OwnerQueryForNonexistentToken(); unchecked { for (uint256 curr = tokenId; ; curr--) { TokenOwnership memory ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } /** * @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 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 override { _transfer(from, to, tokenId); if (!_checkOnERC721Received(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 tokenId < _currentIndex; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ""); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity, _data, true); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint( address to, uint256 quantity, bytes memory _data, bool safe ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 3.4e38 (2**128) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.56e77 (2**256) - 1 unchecked { _addressData[to].balance += uint128(quantity); _addressData[to].numberMinted += uint128(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; for (uint256 i; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); if (safe && !_checkOnERC721Received(address(0), to, updatedIndex, _data)) { revert TransferToNonERC721ReceiverImplementer(); } updatedIndex++; } _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); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || getApproved(tokenId) == _msgSender() || isApprovedForAll(prevOwnership.addr, _msgSender())); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // 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; _ownerships[tokenId].addr = to; _ownerships[tokenId].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; if (_ownerships[nextTokenId].addr == address(0)) { if (_exists(nextTokenId)) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @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 address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) revert TransferToNonERC721ReceiverImplementer(); else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * * 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`. */ 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. * * 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` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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/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 = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } return computedHash; } }
// 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/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/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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/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 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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); } }
{ "remappings": [], "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"tokenUri_","type":"string"},{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"MintedQueryForZeroAddress","type":"error"},{"inputs":[],"name":"OwnerIndexOutOfBounds","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TokenIndexOutOfBounds","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"},{"internalType":"address","name":"wallet","type":"address"}],"name":"airDrop","outputs":[],"stateMutability":"nonpayable","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":[],"name":"collectionSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"getMyPets","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getOwnershipData","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"}],"internalType":"struct ERC721A.TokenOwnership","name":"","type":"tuple"}],"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":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintIsOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMintedOn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_mintIsOpen","type":"bool"}],"name":"setMintIsOpen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a0604052612af86080908152506000600a60006101000a81548160ff0219169083151502179055503480156200003557600080fd5b5060405162003f9c38038062003f9c83398181016040528101906200005b9190620002c9565b81816200007d62000071620000db60201b60201c565b620000e360201b60201c565b816002908051906020019062000095929190620001a7565b508060039080519060200190620000ae929190620001a7565b505050600160088190555082600b9080519060200190620000d1929190620001a7565b50505050620004da565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620001b590620003ff565b90600052602060002090601f016020900481019282620001d9576000855562000225565b82601f10620001f457805160ff191683800117855562000225565b8280016001018555821562000225579182015b828111156200022457825182559160200191906001019062000207565b5b50905062000234919062000238565b5090565b5b808211156200025357600081600090555060010162000239565b5090565b60006200026e620002688462000393565b6200036a565b9050828152602081018484840111156200028757600080fd5b62000294848285620003c9565b509392505050565b600082601f830112620002ae57600080fd5b8151620002c084826020860162000257565b91505092915050565b600080600060608486031215620002df57600080fd5b600084015167ffffffffffffffff811115620002fa57600080fd5b62000308868287016200029c565b935050602084015167ffffffffffffffff8111156200032657600080fd5b62000334868287016200029c565b925050604084015167ffffffffffffffff8111156200035257600080fd5b62000360868287016200029c565b9150509250925092565b60006200037662000389565b905062000384828262000435565b919050565b6000604051905090565b600067ffffffffffffffff821115620003b157620003b06200049a565b5b620003bc82620004c9565b9050602081019050919050565b60005b83811015620003e9578082015181840152602081019050620003cc565b83811115620003f9576000848401525b50505050565b600060028204905060018216806200041857607f821691505b602082108114156200042f576200042e6200046b565b5b50919050565b6200044082620004c9565b810181811067ffffffffffffffff821117156200046257620004616200049a565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b608051613a9f620004fd60003960008181610d5a0152611f250152613a9f6000f3fe6080604052600436106101c25760003560e01c806358450b1c116100f757806395d89b4111610095578063b88d4fde11610064578063b88d4fde14610657578063c87b56dd14610680578063e985e9c5146106bd578063f2fde38b146106fa576101c2565b806395d89b41146105af578063a22cb465146105da578063aa1152ab14610603578063aed380151461062e576101c2565b8063715018a6116100d1578063715018a6146105075780637cb647591461051e5780638da5cb5b146105475780639231ab2a14610572576101c2565b806358450b1c146104715780636352211e1461048d57806370a08231146104ca576101c2565b8063297e1a111161016457806342842e0e1161013e57806342842e0e146103b757806345c0f533146103e05780634f6ccce71461040b57806355f804b314610448576101c2565b8063297e1a11146103265780632eb4a7ab1461034f5780632f745c591461037a576101c2565b8063095ea7b3116101a0578063095ea7b31461026c57806318160ddd14610295578063212eb9f3146102c057806323b872dd146102fd576101c2565b806301ffc9a7146101c757806306fdde0314610204578063081812fc1461022f575b600080fd5b3480156101d357600080fd5b506101ee60048036038101906101e99190612e7b565b610723565b6040516101fb919061332c565b60405180910390f35b34801561021057600080fd5b5061021961086d565b6040516102269190613362565b60405180910390f35b34801561023b57600080fd5b5061025660048036038101906102519190612f12565b6108ff565b60405161026391906132c5565b60405180910390f35b34801561027857600080fd5b50610293600480360381019061028e9190612ded565b61097b565b005b3480156102a157600080fd5b506102aa610a86565b6040516102b7919061347f565b60405180910390f35b3480156102cc57600080fd5b506102e760048036038101906102e29190612c82565b610a90565b6040516102f4919061347f565b60405180910390f35b34801561030957600080fd5b50610324600480360381019061031f9190612ce7565b610aa2565b005b34801561033257600080fd5b5061034d60048036038101906103489190612e29565b610ab2565b005b34801561035b57600080fd5b50610364610b4b565b6040516103719190613347565b60405180910390f35b34801561038657600080fd5b506103a1600480360381019061039c9190612ded565b610b51565b6040516103ae919061347f565b60405180910390f35b3480156103c357600080fd5b506103de60048036038101906103d99190612ce7565b610d38565b005b3480156103ec57600080fd5b506103f5610d58565b604051610402919061347f565b60405180910390f35b34801561041757600080fd5b50610432600480360381019061042d9190612f12565b610d7c565b60405161043f919061347f565b60405180910390f35b34801561045457600080fd5b5061046f600480360381019061046a9190612ecd565b610dc6565b005b61048b60048036038101906104869190612f77565b610e58565b005b34801561049957600080fd5b506104b460048036038101906104af9190612f12565b611022565b6040516104c191906132c5565b60405180910390f35b3480156104d657600080fd5b506104f160048036038101906104ec9190612c82565b611038565b6040516104fe919061347f565b60405180910390f35b34801561051357600080fd5b5061051c611118565b005b34801561052a57600080fd5b5061054560048036038101906105409190612e52565b6111a0565b005b34801561055357600080fd5b5061055c611226565b60405161056991906132c5565b60405180910390f35b34801561057e57600080fd5b5061059960048036038101906105949190612f12565b61124f565b6040516105a69190613464565b60405180910390f35b3480156105bb57600080fd5b506105c4611267565b6040516105d19190613362565b60405180910390f35b3480156105e657600080fd5b5061060160048036038101906105fc9190612db1565b6112f9565b005b34801561060f57600080fd5b50610618611471565b604051610625919061332c565b60405180910390f35b34801561063a57600080fd5b5061065560048036038101906106509190612f3b565b611484565b005b34801561066357600080fd5b5061067e60048036038101906106799190612d36565b61150e565b005b34801561068c57600080fd5b506106a760048036038101906106a29190612f12565b611561565b6040516106b49190613362565b60405180910390f35b3480156106c957600080fd5b506106e460048036038101906106df9190612cab565b611600565b6040516106f1919061332c565b60405180910390f35b34801561070657600080fd5b50610721600480360381019061071c9190612c82565b611694565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806107ee57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061085657507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061086657506108658261178c565b5b9050919050565b60606002805461087c906136c2565b80601f01602080910402602001604051908101604052809291908181526020018280546108a8906136c2565b80156108f55780601f106108ca576101008083540402835291602001916108f5565b820191906000526020600020905b8154815290600101906020018083116108d857829003601f168201915b5050505050905090565b600061090a826117f6565b610940576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061098682611022565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156109ee576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a0d611804565b73ffffffffffffffffffffffffffffffffffffffff1614158015610a3f5750610a3d81610a38611804565b611600565b155b15610a76576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a8183838361180c565b505050565b6000600154905090565b6000610a9b826118be565b9050919050565b610aad83838361199e565b505050565b610aba611804565b73ffffffffffffffffffffffffffffffffffffffff16610ad8611226565b73ffffffffffffffffffffffffffffffffffffffff1614610b2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2590613424565b60405180910390fd5b80600a60006101000a81548160ff02191690831515021790555050565b60095481565b6000610b5c83611038565b8210610b94576040517f0ddac30e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610b9e610a86565b905060008060005b83811015610cf8576000600460008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614610c9857806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610cea5786841415610ce1578195505050505050610d32565b83806001019450505b508080600101915050610ba6565b506000610d2e577f4e487b7100000000000000000000000000000000000000000000000000000000600052600160045260246000fd5b5050505b92915050565b610d538383836040518060200160405280600081525061150e565b505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000610d86610a86565b8210610dbe576040517fa723001c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b819050919050565b610dce611804565b73ffffffffffffffffffffffffffffffffffffffff16610dec611226565b73ffffffffffffffffffffffffffffffffffffffff1614610e42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3990613424565b60405180910390fd5b8181600b9190610e53929190612a2b565b505050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614610ec6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ebd906133c4565b60405180910390fd5b60011515600a60009054906101000a900460ff16151514610f1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f13906133e4565b60405180910390fd5b6000610f39610f2a336118be565b85611ec390919063ffffffff16565b905080851115610f7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f75906133a4565b60405180910390fd5b610fd2610f8b3386611ed9565b848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050611f0c565b611011576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100890613444565b60405180910390fd5b61101b8533611f23565b5050505050565b600061102d82611fa6565b600001519050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156110a0576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b611120611804565b73ffffffffffffffffffffffffffffffffffffffff1661113e611226565b73ffffffffffffffffffffffffffffffffffffffff1614611194576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118b90613424565b60405180910390fd5b61119e60006120f3565b565b6111a8611804565b73ffffffffffffffffffffffffffffffffffffffff166111c6611226565b73ffffffffffffffffffffffffffffffffffffffff161461121c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161121390613424565b60405180910390fd5b8060098190555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611257612ab1565b61126082611fa6565b9050919050565b606060038054611276906136c2565b80601f01602080910402602001604051908101604052809291908181526020018280546112a2906136c2565b80156112ef5780601f106112c4576101008083540402835291602001916112ef565b820191906000526020600020905b8154815290600101906020018083116112d257829003601f168201915b5050505050905090565b611301611804565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611366576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611373611804565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611420611804565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611465919061332c565b60405180910390a35050565b600a60009054906101000a900460ff1681565b61148c611804565b73ffffffffffffffffffffffffffffffffffffffff166114aa611226565b73ffffffffffffffffffffffffffffffffffffffff1614611500576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f790613424565b60405180910390fd5b61150a8282611f23565b5050565b61151984848461199e565b611525848484846121b7565b61155b576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b606061156c826117f6565b6115a2576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006115ac612345565b90506000815114156115cd57604051806020016040528060008152506115f8565b806115d7846123d7565b6040516020016115e89291906132a1565b6040516020818303038152906040525b915050919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61169c611804565b73ffffffffffffffffffffffffffffffffffffffff166116ba611226565b73ffffffffffffffffffffffffffffffffffffffff1614611710576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170790613424565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611780576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177790613384565b60405180910390fd5b611789816120f3565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600060015482109050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611926576040517f35ebb31900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b60006119a982611fa6565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff166119d0611804565b73ffffffffffffffffffffffffffffffffffffffff161480611a2c57506119f5611804565b73ffffffffffffffffffffffffffffffffffffffff16611a14846108ff565b73ffffffffffffffffffffffffffffffffffffffff16145b80611a485750611a478260000151611a42611804565b611600565b5b905080611a81576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614611aea576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611b51576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611b5e8585856001612584565b611b6e600084846000015161180c565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160392506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550836004600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600085815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600184019050600073ffffffffffffffffffffffffffffffffffffffff166004600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611e5357611db2816117f6565b15611e525782600001516004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082602001516004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611ebc858585600161258a565b5050505050565b60008183611ed191906135ba565b905092915050565b60008282604051602001611eee929190613249565b60405160208183030381529060405280519060200120905092915050565b6000611f1b8260095485612590565b905092915050565b7f000000000000000000000000000000000000000000000000000000000000000082611f4d610a86565b611f579190613533565b1115611f98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f8f90613404565b60405180910390fd5b611fa281836125a7565b5050565b611fae612ab1565b611fb7826117f6565b611fed576040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008290505b6000600460008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146120df5780925050506120ee565b50808060019003915050611ff3565b919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60006121d88473ffffffffffffffffffffffffffffffffffffffff166125c5565b15612338578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612201611804565b8786866040518563ffffffff1660e01b815260040161222394939291906132e0565b602060405180830381600087803b15801561223d57600080fd5b505af192505050801561226e57506040513d601f19601f8201168201806040525081019061226b9190612ea4565b60015b6122e8573d806000811461229e576040519150601f19603f3d011682016040523d82523d6000602084013e6122a3565b606091505b506000815114156122e0576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061233d565b600190505b949350505050565b6060600b8054612354906136c2565b80601f0160208091040260200160405190810160405280929190818152602001828054612380906136c2565b80156123cd5780601f106123a2576101008083540402835291602001916123cd565b820191906000526020600020905b8154815290600101906020018083116123b057829003601f168201915b5050505050905090565b6060600082141561241f576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061257f565b600082905060005b6000821461245157808061243a90613725565b915050600a8261244a9190613589565b9150612427565b60008167ffffffffffffffff811115612493577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156124c55781602001600182028036833780820191505090505b5090505b60008514612578576001826124de91906135ba565b9150600a856124ed91906137a6565b60306124f99190613533565b60f81b818381518110612535577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856125719190613589565b94506124c9565b8093505050505b919050565b50505050565b50505050565b60008261259d85846125d8565b1490509392505050565b6125c18282604051806020016040528060008152506126b1565b5050565b600080823b905060008111915050919050565b60008082905060005b84518110156126a6576000858281518110612625577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050808311612666578281604051602001612649929190613275565b604051602081830303815290604052805190602001209250612692565b8083604051602001612679929190613275565b6040516020818303038152906040528051906020012092505b50808061269e90613725565b9150506125e1565b508091505092915050565b6126be83838360016126c3565b505050565b60006001549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415612731576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600084141561276c576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6127796000868387612584565b83600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555083600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160108282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550846004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060005b85811015612a0e57818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48380156129c257506129c060008884886121b7565b155b156129f9576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81806001019250508080600101915050612947565b508060018190555050612a24600086838761258a565b5050505050565b828054612a37906136c2565b90600052602060002090601f016020900481019282612a595760008555612aa0565b82601f10612a7257803560ff1916838001178555612aa0565b82800160010185558215612aa0579182015b82811115612a9f578235825591602001919060010190612a84565b5b509050612aad9190612aeb565b5090565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b5b80821115612b04576000816000905550600101612aec565b5090565b6000612b1b612b16846134bf565b61349a565b905082815260208101848484011115612b3357600080fd5b612b3e848285613680565b509392505050565b600081359050612b55816139f6565b92915050565b60008083601f840112612b6d57600080fd5b8235905067ffffffffffffffff811115612b8657600080fd5b602083019150836020820283011115612b9e57600080fd5b9250929050565b600081359050612bb481613a0d565b92915050565b600081359050612bc981613a24565b92915050565b600081359050612bde81613a3b565b92915050565b600081519050612bf381613a3b565b92915050565b600082601f830112612c0a57600080fd5b8135612c1a848260208601612b08565b91505092915050565b60008083601f840112612c3557600080fd5b8235905067ffffffffffffffff811115612c4e57600080fd5b602083019150836001820283011115612c6657600080fd5b9250929050565b600081359050612c7c81613a52565b92915050565b600060208284031215612c9457600080fd5b6000612ca284828501612b46565b91505092915050565b60008060408385031215612cbe57600080fd5b6000612ccc85828601612b46565b9250506020612cdd85828601612b46565b9150509250929050565b600080600060608486031215612cfc57600080fd5b6000612d0a86828701612b46565b9350506020612d1b86828701612b46565b9250506040612d2c86828701612c6d565b9150509250925092565b60008060008060808587031215612d4c57600080fd5b6000612d5a87828801612b46565b9450506020612d6b87828801612b46565b9350506040612d7c87828801612c6d565b925050606085013567ffffffffffffffff811115612d9957600080fd5b612da587828801612bf9565b91505092959194509250565b60008060408385031215612dc457600080fd5b6000612dd285828601612b46565b9250506020612de385828601612ba5565b9150509250929050565b60008060408385031215612e0057600080fd5b6000612e0e85828601612b46565b9250506020612e1f85828601612c6d565b9150509250929050565b600060208284031215612e3b57600080fd5b6000612e4984828501612ba5565b91505092915050565b600060208284031215612e6457600080fd5b6000612e7284828501612bba565b91505092915050565b600060208284031215612e8d57600080fd5b6000612e9b84828501612bcf565b91505092915050565b600060208284031215612eb657600080fd5b6000612ec484828501612be4565b91505092915050565b60008060208385031215612ee057600080fd5b600083013567ffffffffffffffff811115612efa57600080fd5b612f0685828601612c23565b92509250509250929050565b600060208284031215612f2457600080fd5b6000612f3284828501612c6d565b91505092915050565b60008060408385031215612f4e57600080fd5b6000612f5c85828601612c6d565b9250506020612f6d85828601612b46565b9150509250929050565b60008060008060608587031215612f8d57600080fd5b6000612f9b87828801612c6d565b9450506020612fac87828801612c6d565b935050604085013567ffffffffffffffff811115612fc957600080fd5b612fd587828801612b5b565b925092505092959194509250565b612fec816135ee565b82525050565b612ffb816135ee565b82525050565b61301261300d826135ee565b61376e565b82525050565b61302181613600565b82525050565b6130308161360c565b82525050565b6130476130428261360c565b613780565b82525050565b6000613058826134f0565b6130628185613506565b935061307281856020860161368f565b61307b81613893565b840191505092915050565b6000613091826134fb565b61309b8185613517565b93506130ab81856020860161368f565b6130b481613893565b840191505092915050565b60006130ca826134fb565b6130d48185613528565b93506130e481856020860161368f565b80840191505092915050565b60006130fd602683613517565b9150613108826138b1565b604082019050919050565b6000613120600e83613517565b915061312b82613900565b602082019050919050565b6000613143601e83613517565b915061314e82613929565b602082019050919050565b6000613166601883613517565b915061317182613952565b602082019050919050565b6000613189601283613517565b91506131948261397b565b602082019050919050565b60006131ac602083613517565b91506131b7826139a4565b602082019050919050565b60006131cf601483613517565b91506131da826139cd565b602082019050919050565b6040820160008201516131fb6000850182612fe3565b50602082015161320e602085018261323a565b50505050565b61321d81613662565b82525050565b61323461322f82613662565b61379c565b82525050565b6132438161366c565b82525050565b60006132558285613001565b6014820191506132658284613223565b6020820191508190509392505050565b60006132818285613036565b6020820191506132918284613036565b6020820191508190509392505050565b60006132ad82856130bf565b91506132b982846130bf565b91508190509392505050565b60006020820190506132da6000830184612ff2565b92915050565b60006080820190506132f56000830187612ff2565b6133026020830186612ff2565b61330f6040830185613214565b8181036060830152613321818461304d565b905095945050505050565b60006020820190506133416000830184613018565b92915050565b600060208201905061335c6000830184613027565b92915050565b6000602082019050818103600083015261337c8184613086565b905092915050565b6000602082019050818103600083015261339d816130f0565b9050919050565b600060208201905081810360008301526133bd81613113565b9050919050565b600060208201905081810360008301526133dd81613136565b9050919050565b600060208201905081810360008301526133fd81613159565b9050919050565b6000602082019050818103600083015261341d8161317c565b9050919050565b6000602082019050818103600083015261343d8161319f565b9050919050565b6000602082019050818103600083015261345d816131c2565b9050919050565b600060408201905061347960008301846131e5565b92915050565b60006020820190506134946000830184613214565b92915050565b60006134a46134b5565b90506134b082826136f4565b919050565b6000604051905090565b600067ffffffffffffffff8211156134da576134d9613864565b5b6134e382613893565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061353e82613662565b915061354983613662565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561357e5761357d6137d7565b5b828201905092915050565b600061359482613662565b915061359f83613662565b9250826135af576135ae613806565b5b828204905092915050565b60006135c582613662565b91506135d083613662565b9250828210156135e3576135e26137d7565b5b828203905092915050565b60006135f982613642565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600067ffffffffffffffff82169050919050565b82818337600083830152505050565b60005b838110156136ad578082015181840152602081019050613692565b838111156136bc576000848401525b50505050565b600060028204905060018216806136da57607f821691505b602082108114156136ee576136ed613835565b5b50919050565b6136fd82613893565b810181811067ffffffffffffffff8211171561371c5761371b613864565b5b80604052505050565b600061373082613662565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613763576137626137d7565b5b600182019050919050565b60006137798261378a565b9050919050565b6000819050919050565b6000613795826138a4565b9050919050565b6000819050919050565b60006137b182613662565b91506137bc83613662565b9250826137cc576137cb613806565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f7175616e74697479206572726f72000000000000000000000000000000000000600082015250565b7f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000600082015250565b7f6d696e74206c697374206d757374206265206f70656e65640000000000000000600082015250565b7f72656163686564206d617820737570706c790000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f496e76616c6964206d65726b6c652070726f6f66000000000000000000000000600082015250565b6139ff816135ee565b8114613a0a57600080fd5b50565b613a1681613600565b8114613a2157600080fd5b50565b613a2d8161360c565b8114613a3857600080fd5b50565b613a4481613616565b8114613a4f57600080fd5b50565b613a5b81613662565b8114613a6657600080fd5b5056fea264697066735822122088f8e911b5efde19d1dc21a9aa66c9c2ee870acdcfd79172a6546e669621e16064736f6c63430008040033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000002a68747470733a2f2f7777772e636f736d6f64696e6f732e636f6d2f6170692f636f736d6f64696e6f732f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009436f736d6f7065747300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009436f736d6f706574730000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106101c25760003560e01c806358450b1c116100f757806395d89b4111610095578063b88d4fde11610064578063b88d4fde14610657578063c87b56dd14610680578063e985e9c5146106bd578063f2fde38b146106fa576101c2565b806395d89b41146105af578063a22cb465146105da578063aa1152ab14610603578063aed380151461062e576101c2565b8063715018a6116100d1578063715018a6146105075780637cb647591461051e5780638da5cb5b146105475780639231ab2a14610572576101c2565b806358450b1c146104715780636352211e1461048d57806370a08231146104ca576101c2565b8063297e1a111161016457806342842e0e1161013e57806342842e0e146103b757806345c0f533146103e05780634f6ccce71461040b57806355f804b314610448576101c2565b8063297e1a11146103265780632eb4a7ab1461034f5780632f745c591461037a576101c2565b8063095ea7b3116101a0578063095ea7b31461026c57806318160ddd14610295578063212eb9f3146102c057806323b872dd146102fd576101c2565b806301ffc9a7146101c757806306fdde0314610204578063081812fc1461022f575b600080fd5b3480156101d357600080fd5b506101ee60048036038101906101e99190612e7b565b610723565b6040516101fb919061332c565b60405180910390f35b34801561021057600080fd5b5061021961086d565b6040516102269190613362565b60405180910390f35b34801561023b57600080fd5b5061025660048036038101906102519190612f12565b6108ff565b60405161026391906132c5565b60405180910390f35b34801561027857600080fd5b50610293600480360381019061028e9190612ded565b61097b565b005b3480156102a157600080fd5b506102aa610a86565b6040516102b7919061347f565b60405180910390f35b3480156102cc57600080fd5b506102e760048036038101906102e29190612c82565b610a90565b6040516102f4919061347f565b60405180910390f35b34801561030957600080fd5b50610324600480360381019061031f9190612ce7565b610aa2565b005b34801561033257600080fd5b5061034d60048036038101906103489190612e29565b610ab2565b005b34801561035b57600080fd5b50610364610b4b565b6040516103719190613347565b60405180910390f35b34801561038657600080fd5b506103a1600480360381019061039c9190612ded565b610b51565b6040516103ae919061347f565b60405180910390f35b3480156103c357600080fd5b506103de60048036038101906103d99190612ce7565b610d38565b005b3480156103ec57600080fd5b506103f5610d58565b604051610402919061347f565b60405180910390f35b34801561041757600080fd5b50610432600480360381019061042d9190612f12565b610d7c565b60405161043f919061347f565b60405180910390f35b34801561045457600080fd5b5061046f600480360381019061046a9190612ecd565b610dc6565b005b61048b60048036038101906104869190612f77565b610e58565b005b34801561049957600080fd5b506104b460048036038101906104af9190612f12565b611022565b6040516104c191906132c5565b60405180910390f35b3480156104d657600080fd5b506104f160048036038101906104ec9190612c82565b611038565b6040516104fe919061347f565b60405180910390f35b34801561051357600080fd5b5061051c611118565b005b34801561052a57600080fd5b5061054560048036038101906105409190612e52565b6111a0565b005b34801561055357600080fd5b5061055c611226565b60405161056991906132c5565b60405180910390f35b34801561057e57600080fd5b5061059960048036038101906105949190612f12565b61124f565b6040516105a69190613464565b60405180910390f35b3480156105bb57600080fd5b506105c4611267565b6040516105d19190613362565b60405180910390f35b3480156105e657600080fd5b5061060160048036038101906105fc9190612db1565b6112f9565b005b34801561060f57600080fd5b50610618611471565b604051610625919061332c565b60405180910390f35b34801561063a57600080fd5b5061065560048036038101906106509190612f3b565b611484565b005b34801561066357600080fd5b5061067e60048036038101906106799190612d36565b61150e565b005b34801561068c57600080fd5b506106a760048036038101906106a29190612f12565b611561565b6040516106b49190613362565b60405180910390f35b3480156106c957600080fd5b506106e460048036038101906106df9190612cab565b611600565b6040516106f1919061332c565b60405180910390f35b34801561070657600080fd5b50610721600480360381019061071c9190612c82565b611694565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806107ee57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061085657507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061086657506108658261178c565b5b9050919050565b60606002805461087c906136c2565b80601f01602080910402602001604051908101604052809291908181526020018280546108a8906136c2565b80156108f55780601f106108ca576101008083540402835291602001916108f5565b820191906000526020600020905b8154815290600101906020018083116108d857829003601f168201915b5050505050905090565b600061090a826117f6565b610940576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061098682611022565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156109ee576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a0d611804565b73ffffffffffffffffffffffffffffffffffffffff1614158015610a3f5750610a3d81610a38611804565b611600565b155b15610a76576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a8183838361180c565b505050565b6000600154905090565b6000610a9b826118be565b9050919050565b610aad83838361199e565b505050565b610aba611804565b73ffffffffffffffffffffffffffffffffffffffff16610ad8611226565b73ffffffffffffffffffffffffffffffffffffffff1614610b2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2590613424565b60405180910390fd5b80600a60006101000a81548160ff02191690831515021790555050565b60095481565b6000610b5c83611038565b8210610b94576040517f0ddac30e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610b9e610a86565b905060008060005b83811015610cf8576000600460008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614610c9857806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610cea5786841415610ce1578195505050505050610d32565b83806001019450505b508080600101915050610ba6565b506000610d2e577f4e487b7100000000000000000000000000000000000000000000000000000000600052600160045260246000fd5b5050505b92915050565b610d538383836040518060200160405280600081525061150e565b505050565b7f0000000000000000000000000000000000000000000000000000000000002af881565b6000610d86610a86565b8210610dbe576040517fa723001c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b819050919050565b610dce611804565b73ffffffffffffffffffffffffffffffffffffffff16610dec611226565b73ffffffffffffffffffffffffffffffffffffffff1614610e42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3990613424565b60405180910390fd5b8181600b9190610e53929190612a2b565b505050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614610ec6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ebd906133c4565b60405180910390fd5b60011515600a60009054906101000a900460ff16151514610f1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f13906133e4565b60405180910390fd5b6000610f39610f2a336118be565b85611ec390919063ffffffff16565b905080851115610f7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f75906133a4565b60405180910390fd5b610fd2610f8b3386611ed9565b848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050611f0c565b611011576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100890613444565b60405180910390fd5b61101b8533611f23565b5050505050565b600061102d82611fa6565b600001519050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156110a0576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b611120611804565b73ffffffffffffffffffffffffffffffffffffffff1661113e611226565b73ffffffffffffffffffffffffffffffffffffffff1614611194576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118b90613424565b60405180910390fd5b61119e60006120f3565b565b6111a8611804565b73ffffffffffffffffffffffffffffffffffffffff166111c6611226565b73ffffffffffffffffffffffffffffffffffffffff161461121c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161121390613424565b60405180910390fd5b8060098190555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611257612ab1565b61126082611fa6565b9050919050565b606060038054611276906136c2565b80601f01602080910402602001604051908101604052809291908181526020018280546112a2906136c2565b80156112ef5780601f106112c4576101008083540402835291602001916112ef565b820191906000526020600020905b8154815290600101906020018083116112d257829003601f168201915b5050505050905090565b611301611804565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611366576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611373611804565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611420611804565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611465919061332c565b60405180910390a35050565b600a60009054906101000a900460ff1681565b61148c611804565b73ffffffffffffffffffffffffffffffffffffffff166114aa611226565b73ffffffffffffffffffffffffffffffffffffffff1614611500576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f790613424565b60405180910390fd5b61150a8282611f23565b5050565b61151984848461199e565b611525848484846121b7565b61155b576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b606061156c826117f6565b6115a2576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006115ac612345565b90506000815114156115cd57604051806020016040528060008152506115f8565b806115d7846123d7565b6040516020016115e89291906132a1565b6040516020818303038152906040525b915050919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61169c611804565b73ffffffffffffffffffffffffffffffffffffffff166116ba611226565b73ffffffffffffffffffffffffffffffffffffffff1614611710576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170790613424565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611780576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177790613384565b60405180910390fd5b611789816120f3565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600060015482109050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611926576040517f35ebb31900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b60006119a982611fa6565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff166119d0611804565b73ffffffffffffffffffffffffffffffffffffffff161480611a2c57506119f5611804565b73ffffffffffffffffffffffffffffffffffffffff16611a14846108ff565b73ffffffffffffffffffffffffffffffffffffffff16145b80611a485750611a478260000151611a42611804565b611600565b5b905080611a81576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614611aea576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611b51576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611b5e8585856001612584565b611b6e600084846000015161180c565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160392506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550836004600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600085815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600184019050600073ffffffffffffffffffffffffffffffffffffffff166004600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611e5357611db2816117f6565b15611e525782600001516004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082602001516004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611ebc858585600161258a565b5050505050565b60008183611ed191906135ba565b905092915050565b60008282604051602001611eee929190613249565b60405160208183030381529060405280519060200120905092915050565b6000611f1b8260095485612590565b905092915050565b7f0000000000000000000000000000000000000000000000000000000000002af882611f4d610a86565b611f579190613533565b1115611f98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f8f90613404565b60405180910390fd5b611fa281836125a7565b5050565b611fae612ab1565b611fb7826117f6565b611fed576040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008290505b6000600460008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146120df5780925050506120ee565b50808060019003915050611ff3565b919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60006121d88473ffffffffffffffffffffffffffffffffffffffff166125c5565b15612338578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612201611804565b8786866040518563ffffffff1660e01b815260040161222394939291906132e0565b602060405180830381600087803b15801561223d57600080fd5b505af192505050801561226e57506040513d601f19601f8201168201806040525081019061226b9190612ea4565b60015b6122e8573d806000811461229e576040519150601f19603f3d011682016040523d82523d6000602084013e6122a3565b606091505b506000815114156122e0576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061233d565b600190505b949350505050565b6060600b8054612354906136c2565b80601f0160208091040260200160405190810160405280929190818152602001828054612380906136c2565b80156123cd5780601f106123a2576101008083540402835291602001916123cd565b820191906000526020600020905b8154815290600101906020018083116123b057829003601f168201915b5050505050905090565b6060600082141561241f576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061257f565b600082905060005b6000821461245157808061243a90613725565b915050600a8261244a9190613589565b9150612427565b60008167ffffffffffffffff811115612493577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156124c55781602001600182028036833780820191505090505b5090505b60008514612578576001826124de91906135ba565b9150600a856124ed91906137a6565b60306124f99190613533565b60f81b818381518110612535577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856125719190613589565b94506124c9565b8093505050505b919050565b50505050565b50505050565b60008261259d85846125d8565b1490509392505050565b6125c18282604051806020016040528060008152506126b1565b5050565b600080823b905060008111915050919050565b60008082905060005b84518110156126a6576000858281518110612625577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050808311612666578281604051602001612649929190613275565b604051602081830303815290604052805190602001209250612692565b8083604051602001612679929190613275565b6040516020818303038152906040528051906020012092505b50808061269e90613725565b9150506125e1565b508091505092915050565b6126be83838360016126c3565b505050565b60006001549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415612731576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600084141561276c576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6127796000868387612584565b83600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555083600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160108282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550846004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060005b85811015612a0e57818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48380156129c257506129c060008884886121b7565b155b156129f9576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81806001019250508080600101915050612947565b508060018190555050612a24600086838761258a565b5050505050565b828054612a37906136c2565b90600052602060002090601f016020900481019282612a595760008555612aa0565b82601f10612a7257803560ff1916838001178555612aa0565b82800160010185558215612aa0579182015b82811115612a9f578235825591602001919060010190612a84565b5b509050612aad9190612aeb565b5090565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b5b80821115612b04576000816000905550600101612aec565b5090565b6000612b1b612b16846134bf565b61349a565b905082815260208101848484011115612b3357600080fd5b612b3e848285613680565b509392505050565b600081359050612b55816139f6565b92915050565b60008083601f840112612b6d57600080fd5b8235905067ffffffffffffffff811115612b8657600080fd5b602083019150836020820283011115612b9e57600080fd5b9250929050565b600081359050612bb481613a0d565b92915050565b600081359050612bc981613a24565b92915050565b600081359050612bde81613a3b565b92915050565b600081519050612bf381613a3b565b92915050565b600082601f830112612c0a57600080fd5b8135612c1a848260208601612b08565b91505092915050565b60008083601f840112612c3557600080fd5b8235905067ffffffffffffffff811115612c4e57600080fd5b602083019150836001820283011115612c6657600080fd5b9250929050565b600081359050612c7c81613a52565b92915050565b600060208284031215612c9457600080fd5b6000612ca284828501612b46565b91505092915050565b60008060408385031215612cbe57600080fd5b6000612ccc85828601612b46565b9250506020612cdd85828601612b46565b9150509250929050565b600080600060608486031215612cfc57600080fd5b6000612d0a86828701612b46565b9350506020612d1b86828701612b46565b9250506040612d2c86828701612c6d565b9150509250925092565b60008060008060808587031215612d4c57600080fd5b6000612d5a87828801612b46565b9450506020612d6b87828801612b46565b9350506040612d7c87828801612c6d565b925050606085013567ffffffffffffffff811115612d9957600080fd5b612da587828801612bf9565b91505092959194509250565b60008060408385031215612dc457600080fd5b6000612dd285828601612b46565b9250506020612de385828601612ba5565b9150509250929050565b60008060408385031215612e0057600080fd5b6000612e0e85828601612b46565b9250506020612e1f85828601612c6d565b9150509250929050565b600060208284031215612e3b57600080fd5b6000612e4984828501612ba5565b91505092915050565b600060208284031215612e6457600080fd5b6000612e7284828501612bba565b91505092915050565b600060208284031215612e8d57600080fd5b6000612e9b84828501612bcf565b91505092915050565b600060208284031215612eb657600080fd5b6000612ec484828501612be4565b91505092915050565b60008060208385031215612ee057600080fd5b600083013567ffffffffffffffff811115612efa57600080fd5b612f0685828601612c23565b92509250509250929050565b600060208284031215612f2457600080fd5b6000612f3284828501612c6d565b91505092915050565b60008060408385031215612f4e57600080fd5b6000612f5c85828601612c6d565b9250506020612f6d85828601612b46565b9150509250929050565b60008060008060608587031215612f8d57600080fd5b6000612f9b87828801612c6d565b9450506020612fac87828801612c6d565b935050604085013567ffffffffffffffff811115612fc957600080fd5b612fd587828801612b5b565b925092505092959194509250565b612fec816135ee565b82525050565b612ffb816135ee565b82525050565b61301261300d826135ee565b61376e565b82525050565b61302181613600565b82525050565b6130308161360c565b82525050565b6130476130428261360c565b613780565b82525050565b6000613058826134f0565b6130628185613506565b935061307281856020860161368f565b61307b81613893565b840191505092915050565b6000613091826134fb565b61309b8185613517565b93506130ab81856020860161368f565b6130b481613893565b840191505092915050565b60006130ca826134fb565b6130d48185613528565b93506130e481856020860161368f565b80840191505092915050565b60006130fd602683613517565b9150613108826138b1565b604082019050919050565b6000613120600e83613517565b915061312b82613900565b602082019050919050565b6000613143601e83613517565b915061314e82613929565b602082019050919050565b6000613166601883613517565b915061317182613952565b602082019050919050565b6000613189601283613517565b91506131948261397b565b602082019050919050565b60006131ac602083613517565b91506131b7826139a4565b602082019050919050565b60006131cf601483613517565b91506131da826139cd565b602082019050919050565b6040820160008201516131fb6000850182612fe3565b50602082015161320e602085018261323a565b50505050565b61321d81613662565b82525050565b61323461322f82613662565b61379c565b82525050565b6132438161366c565b82525050565b60006132558285613001565b6014820191506132658284613223565b6020820191508190509392505050565b60006132818285613036565b6020820191506132918284613036565b6020820191508190509392505050565b60006132ad82856130bf565b91506132b982846130bf565b91508190509392505050565b60006020820190506132da6000830184612ff2565b92915050565b60006080820190506132f56000830187612ff2565b6133026020830186612ff2565b61330f6040830185613214565b8181036060830152613321818461304d565b905095945050505050565b60006020820190506133416000830184613018565b92915050565b600060208201905061335c6000830184613027565b92915050565b6000602082019050818103600083015261337c8184613086565b905092915050565b6000602082019050818103600083015261339d816130f0565b9050919050565b600060208201905081810360008301526133bd81613113565b9050919050565b600060208201905081810360008301526133dd81613136565b9050919050565b600060208201905081810360008301526133fd81613159565b9050919050565b6000602082019050818103600083015261341d8161317c565b9050919050565b6000602082019050818103600083015261343d8161319f565b9050919050565b6000602082019050818103600083015261345d816131c2565b9050919050565b600060408201905061347960008301846131e5565b92915050565b60006020820190506134946000830184613214565b92915050565b60006134a46134b5565b90506134b082826136f4565b919050565b6000604051905090565b600067ffffffffffffffff8211156134da576134d9613864565b5b6134e382613893565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061353e82613662565b915061354983613662565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561357e5761357d6137d7565b5b828201905092915050565b600061359482613662565b915061359f83613662565b9250826135af576135ae613806565b5b828204905092915050565b60006135c582613662565b91506135d083613662565b9250828210156135e3576135e26137d7565b5b828203905092915050565b60006135f982613642565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600067ffffffffffffffff82169050919050565b82818337600083830152505050565b60005b838110156136ad578082015181840152602081019050613692565b838111156136bc576000848401525b50505050565b600060028204905060018216806136da57607f821691505b602082108114156136ee576136ed613835565b5b50919050565b6136fd82613893565b810181811067ffffffffffffffff8211171561371c5761371b613864565b5b80604052505050565b600061373082613662565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613763576137626137d7565b5b600182019050919050565b60006137798261378a565b9050919050565b6000819050919050565b6000613795826138a4565b9050919050565b6000819050919050565b60006137b182613662565b91506137bc83613662565b9250826137cc576137cb613806565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f7175616e74697479206572726f72000000000000000000000000000000000000600082015250565b7f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000600082015250565b7f6d696e74206c697374206d757374206265206f70656e65640000000000000000600082015250565b7f72656163686564206d617820737570706c790000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f496e76616c6964206d65726b6c652070726f6f66000000000000000000000000600082015250565b6139ff816135ee565b8114613a0a57600080fd5b50565b613a1681613600565b8114613a2157600080fd5b50565b613a2d8161360c565b8114613a3857600080fd5b50565b613a4481613616565b8114613a4f57600080fd5b50565b613a5b81613662565b8114613a6657600080fd5b5056fea264697066735822122088f8e911b5efde19d1dc21a9aa66c9c2ee870acdcfd79172a6546e669621e16064736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000002a68747470733a2f2f7777772e636f736d6f64696e6f732e636f6d2f6170692f636f736d6f64696e6f732f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009436f736d6f7065747300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009436f736d6f706574730000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : tokenUri_ (string): https://www.cosmodinos.com/api/cosmodinos/
Arg [1] : name_ (string): Cosmopets
Arg [2] : symbol_ (string): Cosmopets
-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [3] : 000000000000000000000000000000000000000000000000000000000000002a
Arg [4] : 68747470733a2f2f7777772e636f736d6f64696e6f732e636f6d2f6170692f63
Arg [5] : 6f736d6f64696e6f732f00000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [7] : 436f736d6f706574730000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [9] : 436f736d6f706574730000000000000000000000000000000000000000000000
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.