ERC-721
Overview
Max Total Supply
77 WITNFT
Holders
60
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 WITNFTLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
WhatIsThisNFT
Compiler Version
v0.8.15+commit.e14f2714
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.9; import "@openzeppelin/contracts/access/Ownable.sol"; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; contract WhatIsThisNFT is ERC721A, Ownable, ReentrancyGuard { using Strings for uint256; // -=Configuration=- mapping(address => uint) public freeMinted; string internal baseUri; string public preRevealMetadataURI = 'ipfs://QmUvZoJrJDocCCXg9jTFJvRbLKAgj6VUEsBbCejHuVvyLL/'; bool public metadataReveal = false; uint256 public mintPrice = 0.0666 ether; uint256 public maxSupply = 666; uint256 public freeMintAmount = 1; uint256 public maxPerTXN = 6; bool public freeMint = false; bool public publicMint = false; bytes32 root; constructor() ERC721A("WhatIsThisNFT", "WITNFT") {} // -=Mint Functions=- function mintFree(bytes32[] memory proof) external nonReentrant { require(freeMint, "You cant mint yet."); require(MerkleProof.verify(proof, root, keccak256(abi.encodePacked(msg.sender))), "You are not whitelisted!"); require(freeMinted[msg.sender] < 1, "You've already minted your Free WhatIsThis NFT."); require(totalSupply() + freeMintAmount <= maxSupply, "Max supply for Free mints has been reached."); freeMinted[msg.sender] += freeMintAmount; _safeMint(msg.sender, freeMintAmount); } function mintPublic(uint256 _amount) external payable nonReentrant { require(publicMint, "Sale hasnt commenced yet."); require(_amount <= maxPerTXN && _amount > 0, "Max 6 per TXN."); require(_amount + totalSupply() <= maxSupply, "There's not enough supply left."); require(msg.value >= mintPrice * _amount, "One WhatIsThis NFT costs 0.0666 Ether."); _safeMint(msg.sender, _amount); } // -=Configuration functions=- function setRoot(bytes32 _root) external onlyOwner { root = _root; } function setMaxSupply(uint256 _newSupply) external onlyOwner { maxSupply = _newSupply; } function setMaxPerTXN(uint256 _maxTXN) external onlyOwner { maxPerTXN = _maxTXN; } function togglePublic() external onlyOwner { publicMint = !publicMint; } function toggleFreeMint() external onlyOwner { freeMint = !freeMint; } function setPrice(uint256 newPrice) external onlyOwner { mintPrice = newPrice; } // -=Metadata functions=- function setMetadata(string calldata newUri) external onlyOwner { baseUri = newUri; } function _baseURI() internal override view returns (string memory) { return baseUri; } function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { require(_exists(_tokenId), 'ERC721Metadata: URI query for nonexistent token'); if (metadataReveal == false) { return preRevealMetadataURI; } string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, _tokenId.toString(), '.json')) : ''; } function setHiddenMetadataUri(string memory hiddenMetadataUri) public onlyOwner { preRevealMetadataURI = hiddenMetadataUri; } function revealMetadata() public onlyOwner { metadataReveal = !metadataReveal; } function _startTokenId() internal view virtual override returns (uint256) { return 1; } // -=Funds withdrawal=- function transferFunds() public onlyOwner { (bool success, ) = payable(msg.sender).call{value: address(this).balance}(""); require(success); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree 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. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ 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 Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle 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++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// 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 // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev ERC721 token receiver interface. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, * including the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at `_startTokenId()` * (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Mask of an entry in packed address data. uint256 private constant BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with `_mintERC2309`. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to `_mintERC2309` // is required to cause an overflow, which is unrealistic. uint256 private constant MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The tokenId of the next token to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See `_packedOwnershipOf` implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see `_totalMinted`. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to `_startTokenId()` unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view returns (uint256) { return _burnCounter; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes of the XOR of // all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165 // e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)` return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_MINTED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_BURNED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX); _packedAddressData[owner] = packed; } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & BITMASK_BURNED == 0) { // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. // // We can directly compare the packed value. // If the address is zero, packed is zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP); ownership.burned = packed & BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> BITPOS_EXTRA_DATA); } /** * Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * 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) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, BITMASK_ADDRESS) // `owner | (block.timestamp << BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @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, _toString(tokenId))) : ''; } /** * @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, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << BITPOS_NEXT_INITIALIZED`. result := shl(BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), 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-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned. } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @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 for each mint. */ function _mint(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 tokenId = startTokenId; uint256 end = startTokenId + quantity; do { emit Transfer(address(0), to, tokenId++); } while (tokenId < end); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { mapping(uint256 => address) storage tokenApprovalsPtr = _tokenApprovals; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`. assembly { // Compute the slot. mstore(0x00, tokenId) mstore(0x20, tokenApprovalsPtr.slot) approvedAddressSlot := keccak256(0x00, 0x40) // Load the slot's value from storage. approvedAddress := sload(approvedAddressSlot) } } /** * @dev Returns whether the `approvedAddress` is equals to `from` or `msgSender`. */ function _isOwnerOrApproved( address approvedAddress, address from, address msgSender ) private pure returns (bool result) { assembly { // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean. from := and(from, BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, BITMASK_ADDRESS) // `msgSender == from || msgSender == approvedAddress`. result := or(eq(msgSender, from), eq(msgSender, approvedAddress)) } } /** * @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 transferFrom( address from, address to, uint256 tokenId ) public virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // 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 { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // 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 { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (BITMASK_BURNED | BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << BITPOS_EXTRA_DATA; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. * This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. * This includes minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function _toString(uint256 value) internal pure returns (string memory ptr) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128. ptr := add(mload(0x40), 128) // Update the free memory pointer to allocate. mstore(0x40, ptr) // Cache the end of the memory to calculate the length later. let end := ptr // We write the string from the rightmost digit to the leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // Costs a bit more than early returning for the zero case, // but cheaper in terms of deployment and overall runtime costs. for { // Initialize and perform the first pass without check. let temp := value // Move the pointer 1 byte leftwards to point to an empty character slot. ptr := sub(ptr, 1) // Write the character to the pointer. 48 is the ASCII index of '0'. mstore8(ptr, add(48, mod(temp, 10))) temp := div(temp, 10) } temp { // Keep dividing `temp` until zero. temp := div(temp, 10) } { // Body of the for loop. ptr := sub(ptr, 1) mstore8(ptr, add(48, mod(temp, 10))) } let length := sub(end, ptr) // Move the pointer 32 bytes leftwards to make room for the length. ptr := sub(ptr, 32) // Store the length. mstore(ptr, length) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set through `_extraData`. uint24 extraData; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); // ============================== // 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); // ============================== // IERC721 // ============================== /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must 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 Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================== // IERC721Metadata // ============================== /** * @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); // ============================== // IERC2309 // ============================== /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` (inclusive) is transferred from `from` to `to`, * as defined in the ERC2309 standard. See `_mintERC2309` for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// 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; } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","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":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"freeMinted","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":"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":"maxPerTXN","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataReveal","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mintFree","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mintPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preRevealMetadataURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealMetadata","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":"hiddenMetadataUri","type":"string"}],"name":"setHiddenMetadataUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxTXN","type":"uint256"}],"name":"setMaxPerTXN","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newUri","type":"string"}],"name":"setMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleFreeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":[],"name":"transferFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052604051806060016040528060368152602001620041cc60369139600c90816200002e9190620004d0565b506000600d60006101000a81548160ff02191690831515021790555066ec9c58de0a8000600e5561029a600f55600160105560066011556000601260006101000a81548160ff0219169083151502179055506000601260016101000a81548160ff021916908315150217905550348015620000a857600080fd5b506040518060400160405280600d81526020017f576861744973546869734e4654000000000000000000000000000000000000008152506040518060400160405280600681526020017f5749544e465400000000000000000000000000000000000000000000000000008152508160029081620001269190620004d0565b508060039081620001389190620004d0565b50620001496200017f60201b60201c565b600081905550505062000171620001656200018860201b60201c565b6200019060201b60201c565b6001600981905550620005b7565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620002d857607f821691505b602082108103620002ee57620002ed62000290565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620003587fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000319565b62000364868362000319565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620003b1620003ab620003a5846200037c565b62000386565b6200037c565b9050919050565b6000819050919050565b620003cd8362000390565b620003e5620003dc82620003b8565b84845462000326565b825550505050565b600090565b620003fc620003ed565b62000409818484620003c2565b505050565b5b81811015620004315762000425600082620003f2565b6001810190506200040f565b5050565b601f82111562000480576200044a81620002f4565b620004558462000309565b8101602085101562000465578190505b6200047d620004748562000309565b8301826200040e565b50505b505050565b600082821c905092915050565b6000620004a56000198460080262000485565b1980831691505092915050565b6000620004c0838362000492565b9150826002028217905092915050565b620004db8262000256565b67ffffffffffffffff811115620004f757620004f662000261565b5b620005038254620002bf565b6200051082828562000435565b600060209050601f83116001811462000548576000841562000533578287015190505b6200053f8582620004b2565b865550620005af565b601f1984166200055886620002f4565b60005b8281101562000582578489015182556001820191506020850194506020810190506200055b565b86831015620005a257848901516200059e601f89168262000492565b8355505b6001600288020188555050505b505050505050565b613c0580620005c76000396000f3fe6080604052600436106102255760003560e01c806370a0823111610123578063a0931011116100ab578063d5abeb011161006f578063d5abeb01146107a7578063dab5f340146107d2578063e985e9c5146107fb578063efd0cbf914610838578063f2fde38b1461085457610225565b8063a0931011146106c6578063a22cb465146106ef578063a49a1e7d14610718578063b88d4fde14610741578063c87b56dd1461076a57610225565b80638da5cb5b116100f25780638da5cb5b146106195780639182a9df1461064457806391b7f5ed1461065b57806395d89b4114610684578063981d8771146106af57610225565b806370a0823114610585578063715018a6146105c257806372c0fa54146105d957806376c7d8ca146105f057610225565b8063389fcf06116101b15780635b70ea9f116101755780635b70ea9f1461049e5780636352211e146104c95780636817c76c14610506578063688ab30b146105315780636f8b44b01461055c57610225565b8063389fcf06146103cd5780633a467e3d1461040a5780633c68eb811461043557806342842e0e1461044c5780634fdd43cb1461047557610225565b806318160ddd116101f857806318160ddd146102f85780631e4a6b101461032357806323b872dd1461034e57806326092b83146103775780632e677fa8146103a257610225565b806301ffc9a71461022a57806306fdde0314610267578063081812fc14610292578063095ea7b3146102cf575b600080fd5b34801561023657600080fd5b50610251600480360381019061024c919061258d565b61087d565b60405161025e91906125d5565b60405180910390f35b34801561027357600080fd5b5061027c61090f565b6040516102899190612689565b60405180910390f35b34801561029e57600080fd5b506102b960048036038101906102b491906126e1565b6109a1565b6040516102c6919061274f565b60405180910390f35b3480156102db57600080fd5b506102f660048036038101906102f19190612796565b610a1d565b005b34801561030457600080fd5b5061030d610b5e565b60405161031a91906127e5565b60405180910390f35b34801561032f57600080fd5b50610338610b75565b60405161034591906127e5565b60405180910390f35b34801561035a57600080fd5b5061037560048036038101906103709190612800565b610b7b565b005b34801561038357600080fd5b5061038c610e9d565b60405161039991906125d5565b60405180910390f35b3480156103ae57600080fd5b506103b7610eb0565b6040516103c491906125d5565b60405180910390f35b3480156103d957600080fd5b506103f460048036038101906103ef9190612853565b610ec3565b60405161040191906127e5565b60405180910390f35b34801561041657600080fd5b5061041f610edb565b60405161042c91906127e5565b60405180910390f35b34801561044157600080fd5b5061044a610ee1565b005b34801561045857600080fd5b50610473600480360381019061046e9190612800565b610f62565b005b34801561048157600080fd5b5061049c600480360381019061049791906129b5565b610f82565b005b3480156104aa57600080fd5b506104b3610f9d565b6040516104c091906125d5565b60405180910390f35b3480156104d557600080fd5b506104f060048036038101906104eb91906126e1565b610fb0565b6040516104fd919061274f565b60405180910390f35b34801561051257600080fd5b5061051b610fc2565b60405161052891906127e5565b60405180910390f35b34801561053d57600080fd5b50610546610fc8565b6040516105539190612689565b60405180910390f35b34801561056857600080fd5b50610583600480360381019061057e91906126e1565b611056565b005b34801561059157600080fd5b506105ac60048036038101906105a79190612853565b611068565b6040516105b991906127e5565b60405180910390f35b3480156105ce57600080fd5b506105d7611120565b005b3480156105e557600080fd5b506105ee611134565b005b3480156105fc57600080fd5b5061061760048036038101906106129190612afc565b611168565b005b34801561062557600080fd5b5061062e6113c0565b60405161063b919061274f565b60405180910390f35b34801561065057600080fd5b506106596113ea565b005b34801561066757600080fd5b50610682600480360381019061067d91906126e1565b61141e565b005b34801561069057600080fd5b50610699611430565b6040516106a69190612689565b60405180910390f35b3480156106bb57600080fd5b506106c46114c2565b005b3480156106d257600080fd5b506106ed60048036038101906106e891906126e1565b6114f6565b005b3480156106fb57600080fd5b5061071660048036038101906107119190612b71565b611508565b005b34801561072457600080fd5b5061073f600480360381019061073a9190612c0c565b61167f565b005b34801561074d57600080fd5b5061076860048036038101906107639190612cfa565b61169d565b005b34801561077657600080fd5b50610791600480360381019061078c91906126e1565b611710565b60405161079e9190612689565b60405180910390f35b3480156107b357600080fd5b506107bc611865565b6040516107c991906127e5565b60405180910390f35b3480156107de57600080fd5b506107f960048036038101906107f49190612d7d565b61186b565b005b34801561080757600080fd5b50610822600480360381019061081d9190612daa565b61187d565b60405161082f91906125d5565b60405180910390f35b610852600480360381019061084d91906126e1565b611911565b005b34801561086057600080fd5b5061087b60048036038101906108769190612853565b611aba565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108d857506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109085750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606002805461091e90612e19565b80601f016020809104026020016040519081016040528092919081815260200182805461094a90612e19565b80156109975780601f1061096c57610100808354040283529160200191610997565b820191906000526020600020905b81548152906001019060200180831161097a57829003601f168201915b5050505050905090565b60006109ac82611b3d565b6109e2576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a2882610fb0565b90508073ffffffffffffffffffffffffffffffffffffffff16610a49611b9c565b73ffffffffffffffffffffffffffffffffffffffff1614610aac57610a7581610a70611b9c565b61187d565b610aab576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610b68611ba4565b6001546000540303905090565b60115481565b6000610b8682611bad565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610bed576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610bf984611c79565b91509150610c0f8187610c0a611b9c565b611c9b565b610c5b57610c2486610c1f611b9c565b61187d565b610c5a576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610cc1576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610cce8686866001611cdf565b8015610cd957600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610da785610d83888887611ce5565b7c020000000000000000000000000000000000000000000000000000000017611d0d565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610e2d5760006001850190506000600460008381526020019081526020016000205403610e2b576000548114610e2a578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610e958686866001611d38565b505050505050565b601260019054906101000a900460ff1681565b600d60009054906101000a900460ff1681565b600a6020528060005260406000206000915090505481565b60105481565b610ee9611d3e565b60003373ffffffffffffffffffffffffffffffffffffffff1647604051610f0f90612e7b565b60006040518083038185875af1925050503d8060008114610f4c576040519150601f19603f3d011682016040523d82523d6000602084013e610f51565b606091505b5050905080610f5f57600080fd5b50565b610f7d8383836040518060200160405280600081525061169d565b505050565b610f8a611d3e565b80600c9081610f99919061303c565b5050565b601260009054906101000a900460ff1681565b6000610fbb82611bad565b9050919050565b600e5481565b600c8054610fd590612e19565b80601f016020809104026020016040519081016040528092919081815260200182805461100190612e19565b801561104e5780601f106110235761010080835404028352916020019161104e565b820191906000526020600020905b81548152906001019060200180831161103157829003601f168201915b505050505081565b61105e611d3e565b80600f8190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036110cf576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611128611d3e565b6111326000611dbc565b565b61113c611d3e565b601260009054906101000a900460ff1615601260006101000a81548160ff021916908315150217905550565b6002600954036111ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a49061315a565b60405180910390fd5b6002600981905550601260009054906101000a900460ff16611204576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111fb906131c6565b60405180910390fd5b611237816013543360405160200161121c919061322e565b60405160208183030381529060405280519060200120611e82565b611276576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126d90613295565b60405180910390fd5b6001600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054106112f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ef90613327565b60405180910390fd5b600f54601054611306610b5e565b6113109190613376565b1115611351576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113489061343e565b60405180910390fd5b601054600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546113a29190613376565b925050819055506113b533601054611e99565b600160098190555050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6113f2611d3e565b600d60009054906101000a900460ff1615600d60006101000a81548160ff021916908315150217905550565b611426611d3e565b80600e8190555050565b60606003805461143f90612e19565b80601f016020809104026020016040519081016040528092919081815260200182805461146b90612e19565b80156114b85780601f1061148d576101008083540402835291602001916114b8565b820191906000526020600020905b81548152906001019060200180831161149b57829003601f168201915b5050505050905090565b6114ca611d3e565b601260019054906101000a900460ff1615601260016101000a81548160ff021916908315150217905550565b6114fe611d3e565b8060118190555050565b611510611b9c565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611574576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611581611b9c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661162e611b9c565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161167391906125d5565b60405180910390a35050565b611687611d3e565b8181600b9182611698929190613469565b505050565b6116a8848484610b7b565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461170a576116d384848484611eb7565b611709576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b606061171b82611b3d565b61175a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611751906135ab565b60405180910390fd5b60001515600d60009054906101000a900460ff1615150361180757600c805461178290612e19565b80601f01602080910402602001604051908101604052809291908181526020018280546117ae90612e19565b80156117fb5780601f106117d0576101008083540402835291602001916117fb565b820191906000526020600020905b8154815290600101906020018083116117de57829003601f168201915b50505050509050611860565b6000611811612007565b90506000815111611831576040518060200160405280600081525061185c565b8061183b84612099565b60405160200161184c929190613653565b6040516020818303038152906040525b9150505b919050565b600f5481565b611873611d3e565b8060138190555050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600260095403611956576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161194d9061315a565b60405180910390fd5b6002600981905550601260019054906101000a900460ff166119ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119a4906136ce565b60405180910390fd5b60115481111580156119bf5750600081115b6119fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119f59061373a565b60405180910390fd5b600f54611a09610b5e565b82611a149190613376565b1115611a55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4c906137a6565b60405180910390fd5b80600e54611a6391906137c6565b341015611aa5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9c90613892565b60405180910390fd5b611aaf3382611e99565b600160098190555050565b611ac2611d3e565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611b31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b2890613924565b60405180910390fd5b611b3a81611dbc565b50565b600081611b48611ba4565b11158015611b57575060005482105b8015611b95575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b60008082905080611bbc611ba4565b11611c4257600054811015611c415760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603611c3f575b60008103611c35576004600083600190039350838152602001908152602001600020549050611c0b565b8092505050611c74565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000806000600690508360005280602052604060002092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8611cfc8686846121f9565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b611d46612202565b73ffffffffffffffffffffffffffffffffffffffff16611d646113c0565b73ffffffffffffffffffffffffffffffffffffffff1614611dba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611db190613990565b60405180910390fd5b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600082611e8f858461220a565b1490509392505050565b611eb3828260405180602001604052806000815250612260565b5050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611edd611b9c565b8786866040518563ffffffff1660e01b8152600401611eff9493929190613a05565b6020604051808303816000875af1925050508015611f3b57506040513d601f19601f82011682018060405250810190611f389190613a66565b60015b611fb4573d8060008114611f6b576040519150601f19603f3d011682016040523d82523d6000602084013e611f70565b606091505b506000815103611fac576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600b805461201690612e19565b80601f016020809104026020016040519081016040528092919081815260200182805461204290612e19565b801561208f5780601f106120645761010080835404028352916020019161208f565b820191906000526020600020905b81548152906001019060200180831161207257829003601f168201915b5050505050905090565b6060600082036120e0576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506121f4565b600082905060005b600082146121125780806120fb90613a93565b915050600a8261210b9190613b0a565b91506120e8565b60008167ffffffffffffffff81111561212e5761212d61288a565b5b6040519080825280601f01601f1916602001820160405280156121605781602001600182028036833780820191505090505b5090505b600085146121ed576001826121799190613b3b565b9150600a856121889190613b6f565b60306121949190613376565b60f81b8183815181106121aa576121a9613ba0565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856121e69190613b0a565b9450612164565b8093505050505b919050565b60009392505050565b600033905090565b60008082905060005b8451811015612255576122408286838151811061223357612232613ba0565b5b60200260200101516122fd565b9150808061224d90613a93565b915050612213565b508091505092915050565b61226a8383612328565b60008373ffffffffffffffffffffffffffffffffffffffff163b146122f857600080549050600083820390505b6122aa6000868380600101945086611eb7565b6122e0576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106122975781600054146122f557600080fd5b50505b505050565b60008183106123155761231082846124fa565b612320565b61231f83836124fa565b5b905092915050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612394576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082036123ce576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6123db6000848385611cdf565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612452836124436000866000611ce5565b61244c85612511565b17611d0d565b60046000838152602001908152602001600020819055506000819050600083830190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808210612476578060008190555050506124f56000848385611d38565b505050565b600082600052816020526040600020905092915050565b60006001821460e11b9050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61256a81612535565b811461257557600080fd5b50565b60008135905061258781612561565b92915050565b6000602082840312156125a3576125a261252b565b5b60006125b184828501612578565b91505092915050565b60008115159050919050565b6125cf816125ba565b82525050565b60006020820190506125ea60008301846125c6565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561262a57808201518184015260208101905061260f565b83811115612639576000848401525b50505050565b6000601f19601f8301169050919050565b600061265b826125f0565b61266581856125fb565b935061267581856020860161260c565b61267e8161263f565b840191505092915050565b600060208201905081810360008301526126a38184612650565b905092915050565b6000819050919050565b6126be816126ab565b81146126c957600080fd5b50565b6000813590506126db816126b5565b92915050565b6000602082840312156126f7576126f661252b565b5b6000612705848285016126cc565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006127398261270e565b9050919050565b6127498161272e565b82525050565b60006020820190506127646000830184612740565b92915050565b6127738161272e565b811461277e57600080fd5b50565b6000813590506127908161276a565b92915050565b600080604083850312156127ad576127ac61252b565b5b60006127bb85828601612781565b92505060206127cc858286016126cc565b9150509250929050565b6127df816126ab565b82525050565b60006020820190506127fa60008301846127d6565b92915050565b6000806000606084860312156128195761281861252b565b5b600061282786828701612781565b935050602061283886828701612781565b9250506040612849868287016126cc565b9150509250925092565b6000602082840312156128695761286861252b565b5b600061287784828501612781565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6128c28261263f565b810181811067ffffffffffffffff821117156128e1576128e061288a565b5b80604052505050565b60006128f4612521565b905061290082826128b9565b919050565b600067ffffffffffffffff8211156129205761291f61288a565b5b6129298261263f565b9050602081019050919050565b82818337600083830152505050565b600061295861295384612905565b6128ea565b90508281526020810184848401111561297457612973612885565b5b61297f848285612936565b509392505050565b600082601f83011261299c5761299b612880565b5b81356129ac848260208601612945565b91505092915050565b6000602082840312156129cb576129ca61252b565b5b600082013567ffffffffffffffff8111156129e9576129e8612530565b5b6129f584828501612987565b91505092915050565b600067ffffffffffffffff821115612a1957612a1861288a565b5b602082029050602081019050919050565b600080fd5b6000819050919050565b612a4281612a2f565b8114612a4d57600080fd5b50565b600081359050612a5f81612a39565b92915050565b6000612a78612a73846129fe565b6128ea565b90508083825260208201905060208402830185811115612a9b57612a9a612a2a565b5b835b81811015612ac45780612ab08882612a50565b845260208401935050602081019050612a9d565b5050509392505050565b600082601f830112612ae357612ae2612880565b5b8135612af3848260208601612a65565b91505092915050565b600060208284031215612b1257612b1161252b565b5b600082013567ffffffffffffffff811115612b3057612b2f612530565b5b612b3c84828501612ace565b91505092915050565b612b4e816125ba565b8114612b5957600080fd5b50565b600081359050612b6b81612b45565b92915050565b60008060408385031215612b8857612b8761252b565b5b6000612b9685828601612781565b9250506020612ba785828601612b5c565b9150509250929050565b600080fd5b60008083601f840112612bcc57612bcb612880565b5b8235905067ffffffffffffffff811115612be957612be8612bb1565b5b602083019150836001820283011115612c0557612c04612a2a565b5b9250929050565b60008060208385031215612c2357612c2261252b565b5b600083013567ffffffffffffffff811115612c4157612c40612530565b5b612c4d85828601612bb6565b92509250509250929050565b600067ffffffffffffffff821115612c7457612c7361288a565b5b612c7d8261263f565b9050602081019050919050565b6000612c9d612c9884612c59565b6128ea565b905082815260208101848484011115612cb957612cb8612885565b5b612cc4848285612936565b509392505050565b600082601f830112612ce157612ce0612880565b5b8135612cf1848260208601612c8a565b91505092915050565b60008060008060808587031215612d1457612d1361252b565b5b6000612d2287828801612781565b9450506020612d3387828801612781565b9350506040612d44878288016126cc565b925050606085013567ffffffffffffffff811115612d6557612d64612530565b5b612d7187828801612ccc565b91505092959194509250565b600060208284031215612d9357612d9261252b565b5b6000612da184828501612a50565b91505092915050565b60008060408385031215612dc157612dc061252b565b5b6000612dcf85828601612781565b9250506020612de085828601612781565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612e3157607f821691505b602082108103612e4457612e43612dea565b5b50919050565b600081905092915050565b50565b6000612e65600083612e4a565b9150612e7082612e55565b600082019050919050565b6000612e8682612e58565b9150819050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302612ef27fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82612eb5565b612efc8683612eb5565b95508019841693508086168417925050509392505050565b6000819050919050565b6000612f39612f34612f2f846126ab565b612f14565b6126ab565b9050919050565b6000819050919050565b612f5383612f1e565b612f67612f5f82612f40565b848454612ec2565b825550505050565b600090565b612f7c612f6f565b612f87818484612f4a565b505050565b5b81811015612fab57612fa0600082612f74565b600181019050612f8d565b5050565b601f821115612ff057612fc181612e90565b612fca84612ea5565b81016020851015612fd9578190505b612fed612fe585612ea5565b830182612f8c565b50505b505050565b600082821c905092915050565b600061301360001984600802612ff5565b1980831691505092915050565b600061302c8383613002565b9150826002028217905092915050565b613045826125f0565b67ffffffffffffffff81111561305e5761305d61288a565b5b6130688254612e19565b613073828285612faf565b600060209050601f8311600181146130a65760008415613094578287015190505b61309e8582613020565b865550613106565b601f1984166130b486612e90565b60005b828110156130dc578489015182556001820191506020850194506020810190506130b7565b868310156130f957848901516130f5601f891682613002565b8355505b6001600288020188555050505b505050505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000613144601f836125fb565b915061314f8261310e565b602082019050919050565b6000602082019050818103600083015261317381613137565b9050919050565b7f596f752063616e74206d696e74207965742e0000000000000000000000000000600082015250565b60006131b06012836125fb565b91506131bb8261317a565b602082019050919050565b600060208201905081810360008301526131df816131a3565b9050919050565b60008160601b9050919050565b60006131fe826131e6565b9050919050565b6000613210826131f3565b9050919050565b6132286132238261272e565b613205565b82525050565b600061323a8284613217565b60148201915081905092915050565b7f596f7520617265206e6f742077686974656c6973746564210000000000000000600082015250565b600061327f6018836125fb565b915061328a82613249565b602082019050919050565b600060208201905081810360008301526132ae81613272565b9050919050565b7f596f7527766520616c7265616479206d696e74656420796f757220467265652060008201527f57686174497354686973204e46542e0000000000000000000000000000000000602082015250565b6000613311602f836125fb565b915061331c826132b5565b604082019050919050565b6000602082019050818103600083015261334081613304565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613381826126ab565b915061338c836126ab565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156133c1576133c0613347565b5b828201905092915050565b7f4d617820737570706c7920666f722046726565206d696e74732068617320626560008201527f656e20726561636865642e000000000000000000000000000000000000000000602082015250565b6000613428602b836125fb565b9150613433826133cc565b604082019050919050565b600060208201905081810360008301526134578161341b565b9050919050565b600082905092915050565b613473838361345e565b67ffffffffffffffff81111561348c5761348b61288a565b5b6134968254612e19565b6134a1828285612faf565b6000601f8311600181146134d057600084156134be578287013590505b6134c88582613020565b865550613530565b601f1984166134de86612e90565b60005b82811015613506578489013582556001820191506020850194506020810190506134e1565b86831015613523578489013561351f601f891682613002565b8355505b6001600288020188555050505b50505050505050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000613595602f836125fb565b91506135a082613539565b604082019050919050565b600060208201905081810360008301526135c481613588565b9050919050565b600081905092915050565b60006135e1826125f0565b6135eb81856135cb565b93506135fb81856020860161260c565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b600061363d6005836135cb565b915061364882613607565b600582019050919050565b600061365f82856135d6565b915061366b82846135d6565b915061367682613630565b91508190509392505050565b7f53616c65206861736e7420636f6d6d656e636564207965742e00000000000000600082015250565b60006136b86019836125fb565b91506136c382613682565b602082019050919050565b600060208201905081810360008301526136e7816136ab565b9050919050565b7f4d61782036207065722054584e2e000000000000000000000000000000000000600082015250565b6000613724600e836125fb565b915061372f826136ee565b602082019050919050565b6000602082019050818103600083015261375381613717565b9050919050565b7f54686572652773206e6f7420656e6f75676820737570706c79206c6566742e00600082015250565b6000613790601f836125fb565b915061379b8261375a565b602082019050919050565b600060208201905081810360008301526137bf81613783565b9050919050565b60006137d1826126ab565b91506137dc836126ab565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561381557613814613347565b5b828202905092915050565b7f4f6e652057686174497354686973204e465420636f73747320302e303636362060008201527f45746865722e0000000000000000000000000000000000000000000000000000602082015250565b600061387c6026836125fb565b915061388782613820565b604082019050919050565b600060208201905081810360008301526138ab8161386f565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061390e6026836125fb565b9150613919826138b2565b604082019050919050565b6000602082019050818103600083015261393d81613901565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061397a6020836125fb565b915061398582613944565b602082019050919050565b600060208201905081810360008301526139a98161396d565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006139d7826139b0565b6139e181856139bb565b93506139f181856020860161260c565b6139fa8161263f565b840191505092915050565b6000608082019050613a1a6000830187612740565b613a276020830186612740565b613a3460408301856127d6565b8181036060830152613a4681846139cc565b905095945050505050565b600081519050613a6081612561565b92915050565b600060208284031215613a7c57613a7b61252b565b5b6000613a8a84828501613a51565b91505092915050565b6000613a9e826126ab565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613ad057613acf613347565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613b15826126ab565b9150613b20836126ab565b925082613b3057613b2f613adb565b5b828204905092915050565b6000613b46826126ab565b9150613b51836126ab565b925082821015613b6457613b63613347565b5b828203905092915050565b6000613b7a826126ab565b9150613b85836126ab565b925082613b9557613b94613adb565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea2646970667358221220ce14759c65cf2a8ab6ecfd8dbee4d5fe880fd987c78b7c0407a0c7ccd6854f2664736f6c634300080f0033697066733a2f2f516d55765a6f4a724a446f6343435867396a54464a7652624c4b41676a3656554573426243656a48755676794c4c2f
Deployed Bytecode
0x6080604052600436106102255760003560e01c806370a0823111610123578063a0931011116100ab578063d5abeb011161006f578063d5abeb01146107a7578063dab5f340146107d2578063e985e9c5146107fb578063efd0cbf914610838578063f2fde38b1461085457610225565b8063a0931011146106c6578063a22cb465146106ef578063a49a1e7d14610718578063b88d4fde14610741578063c87b56dd1461076a57610225565b80638da5cb5b116100f25780638da5cb5b146106195780639182a9df1461064457806391b7f5ed1461065b57806395d89b4114610684578063981d8771146106af57610225565b806370a0823114610585578063715018a6146105c257806372c0fa54146105d957806376c7d8ca146105f057610225565b8063389fcf06116101b15780635b70ea9f116101755780635b70ea9f1461049e5780636352211e146104c95780636817c76c14610506578063688ab30b146105315780636f8b44b01461055c57610225565b8063389fcf06146103cd5780633a467e3d1461040a5780633c68eb811461043557806342842e0e1461044c5780634fdd43cb1461047557610225565b806318160ddd116101f857806318160ddd146102f85780631e4a6b101461032357806323b872dd1461034e57806326092b83146103775780632e677fa8146103a257610225565b806301ffc9a71461022a57806306fdde0314610267578063081812fc14610292578063095ea7b3146102cf575b600080fd5b34801561023657600080fd5b50610251600480360381019061024c919061258d565b61087d565b60405161025e91906125d5565b60405180910390f35b34801561027357600080fd5b5061027c61090f565b6040516102899190612689565b60405180910390f35b34801561029e57600080fd5b506102b960048036038101906102b491906126e1565b6109a1565b6040516102c6919061274f565b60405180910390f35b3480156102db57600080fd5b506102f660048036038101906102f19190612796565b610a1d565b005b34801561030457600080fd5b5061030d610b5e565b60405161031a91906127e5565b60405180910390f35b34801561032f57600080fd5b50610338610b75565b60405161034591906127e5565b60405180910390f35b34801561035a57600080fd5b5061037560048036038101906103709190612800565b610b7b565b005b34801561038357600080fd5b5061038c610e9d565b60405161039991906125d5565b60405180910390f35b3480156103ae57600080fd5b506103b7610eb0565b6040516103c491906125d5565b60405180910390f35b3480156103d957600080fd5b506103f460048036038101906103ef9190612853565b610ec3565b60405161040191906127e5565b60405180910390f35b34801561041657600080fd5b5061041f610edb565b60405161042c91906127e5565b60405180910390f35b34801561044157600080fd5b5061044a610ee1565b005b34801561045857600080fd5b50610473600480360381019061046e9190612800565b610f62565b005b34801561048157600080fd5b5061049c600480360381019061049791906129b5565b610f82565b005b3480156104aa57600080fd5b506104b3610f9d565b6040516104c091906125d5565b60405180910390f35b3480156104d557600080fd5b506104f060048036038101906104eb91906126e1565b610fb0565b6040516104fd919061274f565b60405180910390f35b34801561051257600080fd5b5061051b610fc2565b60405161052891906127e5565b60405180910390f35b34801561053d57600080fd5b50610546610fc8565b6040516105539190612689565b60405180910390f35b34801561056857600080fd5b50610583600480360381019061057e91906126e1565b611056565b005b34801561059157600080fd5b506105ac60048036038101906105a79190612853565b611068565b6040516105b991906127e5565b60405180910390f35b3480156105ce57600080fd5b506105d7611120565b005b3480156105e557600080fd5b506105ee611134565b005b3480156105fc57600080fd5b5061061760048036038101906106129190612afc565b611168565b005b34801561062557600080fd5b5061062e6113c0565b60405161063b919061274f565b60405180910390f35b34801561065057600080fd5b506106596113ea565b005b34801561066757600080fd5b50610682600480360381019061067d91906126e1565b61141e565b005b34801561069057600080fd5b50610699611430565b6040516106a69190612689565b60405180910390f35b3480156106bb57600080fd5b506106c46114c2565b005b3480156106d257600080fd5b506106ed60048036038101906106e891906126e1565b6114f6565b005b3480156106fb57600080fd5b5061071660048036038101906107119190612b71565b611508565b005b34801561072457600080fd5b5061073f600480360381019061073a9190612c0c565b61167f565b005b34801561074d57600080fd5b5061076860048036038101906107639190612cfa565b61169d565b005b34801561077657600080fd5b50610791600480360381019061078c91906126e1565b611710565b60405161079e9190612689565b60405180910390f35b3480156107b357600080fd5b506107bc611865565b6040516107c991906127e5565b60405180910390f35b3480156107de57600080fd5b506107f960048036038101906107f49190612d7d565b61186b565b005b34801561080757600080fd5b50610822600480360381019061081d9190612daa565b61187d565b60405161082f91906125d5565b60405180910390f35b610852600480360381019061084d91906126e1565b611911565b005b34801561086057600080fd5b5061087b60048036038101906108769190612853565b611aba565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108d857506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109085750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606002805461091e90612e19565b80601f016020809104026020016040519081016040528092919081815260200182805461094a90612e19565b80156109975780601f1061096c57610100808354040283529160200191610997565b820191906000526020600020905b81548152906001019060200180831161097a57829003601f168201915b5050505050905090565b60006109ac82611b3d565b6109e2576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a2882610fb0565b90508073ffffffffffffffffffffffffffffffffffffffff16610a49611b9c565b73ffffffffffffffffffffffffffffffffffffffff1614610aac57610a7581610a70611b9c565b61187d565b610aab576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610b68611ba4565b6001546000540303905090565b60115481565b6000610b8682611bad565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610bed576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610bf984611c79565b91509150610c0f8187610c0a611b9c565b611c9b565b610c5b57610c2486610c1f611b9c565b61187d565b610c5a576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610cc1576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610cce8686866001611cdf565b8015610cd957600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610da785610d83888887611ce5565b7c020000000000000000000000000000000000000000000000000000000017611d0d565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610e2d5760006001850190506000600460008381526020019081526020016000205403610e2b576000548114610e2a578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610e958686866001611d38565b505050505050565b601260019054906101000a900460ff1681565b600d60009054906101000a900460ff1681565b600a6020528060005260406000206000915090505481565b60105481565b610ee9611d3e565b60003373ffffffffffffffffffffffffffffffffffffffff1647604051610f0f90612e7b565b60006040518083038185875af1925050503d8060008114610f4c576040519150601f19603f3d011682016040523d82523d6000602084013e610f51565b606091505b5050905080610f5f57600080fd5b50565b610f7d8383836040518060200160405280600081525061169d565b505050565b610f8a611d3e565b80600c9081610f99919061303c565b5050565b601260009054906101000a900460ff1681565b6000610fbb82611bad565b9050919050565b600e5481565b600c8054610fd590612e19565b80601f016020809104026020016040519081016040528092919081815260200182805461100190612e19565b801561104e5780601f106110235761010080835404028352916020019161104e565b820191906000526020600020905b81548152906001019060200180831161103157829003601f168201915b505050505081565b61105e611d3e565b80600f8190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036110cf576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611128611d3e565b6111326000611dbc565b565b61113c611d3e565b601260009054906101000a900460ff1615601260006101000a81548160ff021916908315150217905550565b6002600954036111ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a49061315a565b60405180910390fd5b6002600981905550601260009054906101000a900460ff16611204576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111fb906131c6565b60405180910390fd5b611237816013543360405160200161121c919061322e565b60405160208183030381529060405280519060200120611e82565b611276576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126d90613295565b60405180910390fd5b6001600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054106112f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ef90613327565b60405180910390fd5b600f54601054611306610b5e565b6113109190613376565b1115611351576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113489061343e565b60405180910390fd5b601054600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546113a29190613376565b925050819055506113b533601054611e99565b600160098190555050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6113f2611d3e565b600d60009054906101000a900460ff1615600d60006101000a81548160ff021916908315150217905550565b611426611d3e565b80600e8190555050565b60606003805461143f90612e19565b80601f016020809104026020016040519081016040528092919081815260200182805461146b90612e19565b80156114b85780601f1061148d576101008083540402835291602001916114b8565b820191906000526020600020905b81548152906001019060200180831161149b57829003601f168201915b5050505050905090565b6114ca611d3e565b601260019054906101000a900460ff1615601260016101000a81548160ff021916908315150217905550565b6114fe611d3e565b8060118190555050565b611510611b9c565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611574576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611581611b9c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661162e611b9c565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161167391906125d5565b60405180910390a35050565b611687611d3e565b8181600b9182611698929190613469565b505050565b6116a8848484610b7b565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461170a576116d384848484611eb7565b611709576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b606061171b82611b3d565b61175a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611751906135ab565b60405180910390fd5b60001515600d60009054906101000a900460ff1615150361180757600c805461178290612e19565b80601f01602080910402602001604051908101604052809291908181526020018280546117ae90612e19565b80156117fb5780601f106117d0576101008083540402835291602001916117fb565b820191906000526020600020905b8154815290600101906020018083116117de57829003601f168201915b50505050509050611860565b6000611811612007565b90506000815111611831576040518060200160405280600081525061185c565b8061183b84612099565b60405160200161184c929190613653565b6040516020818303038152906040525b9150505b919050565b600f5481565b611873611d3e565b8060138190555050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600260095403611956576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161194d9061315a565b60405180910390fd5b6002600981905550601260019054906101000a900460ff166119ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119a4906136ce565b60405180910390fd5b60115481111580156119bf5750600081115b6119fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119f59061373a565b60405180910390fd5b600f54611a09610b5e565b82611a149190613376565b1115611a55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4c906137a6565b60405180910390fd5b80600e54611a6391906137c6565b341015611aa5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9c90613892565b60405180910390fd5b611aaf3382611e99565b600160098190555050565b611ac2611d3e565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611b31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b2890613924565b60405180910390fd5b611b3a81611dbc565b50565b600081611b48611ba4565b11158015611b57575060005482105b8015611b95575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b60008082905080611bbc611ba4565b11611c4257600054811015611c415760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603611c3f575b60008103611c35576004600083600190039350838152602001908152602001600020549050611c0b565b8092505050611c74565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000806000600690508360005280602052604060002092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8611cfc8686846121f9565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b611d46612202565b73ffffffffffffffffffffffffffffffffffffffff16611d646113c0565b73ffffffffffffffffffffffffffffffffffffffff1614611dba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611db190613990565b60405180910390fd5b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600082611e8f858461220a565b1490509392505050565b611eb3828260405180602001604052806000815250612260565b5050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611edd611b9c565b8786866040518563ffffffff1660e01b8152600401611eff9493929190613a05565b6020604051808303816000875af1925050508015611f3b57506040513d601f19601f82011682018060405250810190611f389190613a66565b60015b611fb4573d8060008114611f6b576040519150601f19603f3d011682016040523d82523d6000602084013e611f70565b606091505b506000815103611fac576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600b805461201690612e19565b80601f016020809104026020016040519081016040528092919081815260200182805461204290612e19565b801561208f5780601f106120645761010080835404028352916020019161208f565b820191906000526020600020905b81548152906001019060200180831161207257829003601f168201915b5050505050905090565b6060600082036120e0576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506121f4565b600082905060005b600082146121125780806120fb90613a93565b915050600a8261210b9190613b0a565b91506120e8565b60008167ffffffffffffffff81111561212e5761212d61288a565b5b6040519080825280601f01601f1916602001820160405280156121605781602001600182028036833780820191505090505b5090505b600085146121ed576001826121799190613b3b565b9150600a856121889190613b6f565b60306121949190613376565b60f81b8183815181106121aa576121a9613ba0565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856121e69190613b0a565b9450612164565b8093505050505b919050565b60009392505050565b600033905090565b60008082905060005b8451811015612255576122408286838151811061223357612232613ba0565b5b60200260200101516122fd565b9150808061224d90613a93565b915050612213565b508091505092915050565b61226a8383612328565b60008373ffffffffffffffffffffffffffffffffffffffff163b146122f857600080549050600083820390505b6122aa6000868380600101945086611eb7565b6122e0576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106122975781600054146122f557600080fd5b50505b505050565b60008183106123155761231082846124fa565b612320565b61231f83836124fa565b5b905092915050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612394576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082036123ce576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6123db6000848385611cdf565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612452836124436000866000611ce5565b61244c85612511565b17611d0d565b60046000838152602001908152602001600020819055506000819050600083830190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808210612476578060008190555050506124f56000848385611d38565b505050565b600082600052816020526040600020905092915050565b60006001821460e11b9050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61256a81612535565b811461257557600080fd5b50565b60008135905061258781612561565b92915050565b6000602082840312156125a3576125a261252b565b5b60006125b184828501612578565b91505092915050565b60008115159050919050565b6125cf816125ba565b82525050565b60006020820190506125ea60008301846125c6565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561262a57808201518184015260208101905061260f565b83811115612639576000848401525b50505050565b6000601f19601f8301169050919050565b600061265b826125f0565b61266581856125fb565b935061267581856020860161260c565b61267e8161263f565b840191505092915050565b600060208201905081810360008301526126a38184612650565b905092915050565b6000819050919050565b6126be816126ab565b81146126c957600080fd5b50565b6000813590506126db816126b5565b92915050565b6000602082840312156126f7576126f661252b565b5b6000612705848285016126cc565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006127398261270e565b9050919050565b6127498161272e565b82525050565b60006020820190506127646000830184612740565b92915050565b6127738161272e565b811461277e57600080fd5b50565b6000813590506127908161276a565b92915050565b600080604083850312156127ad576127ac61252b565b5b60006127bb85828601612781565b92505060206127cc858286016126cc565b9150509250929050565b6127df816126ab565b82525050565b60006020820190506127fa60008301846127d6565b92915050565b6000806000606084860312156128195761281861252b565b5b600061282786828701612781565b935050602061283886828701612781565b9250506040612849868287016126cc565b9150509250925092565b6000602082840312156128695761286861252b565b5b600061287784828501612781565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6128c28261263f565b810181811067ffffffffffffffff821117156128e1576128e061288a565b5b80604052505050565b60006128f4612521565b905061290082826128b9565b919050565b600067ffffffffffffffff8211156129205761291f61288a565b5b6129298261263f565b9050602081019050919050565b82818337600083830152505050565b600061295861295384612905565b6128ea565b90508281526020810184848401111561297457612973612885565b5b61297f848285612936565b509392505050565b600082601f83011261299c5761299b612880565b5b81356129ac848260208601612945565b91505092915050565b6000602082840312156129cb576129ca61252b565b5b600082013567ffffffffffffffff8111156129e9576129e8612530565b5b6129f584828501612987565b91505092915050565b600067ffffffffffffffff821115612a1957612a1861288a565b5b602082029050602081019050919050565b600080fd5b6000819050919050565b612a4281612a2f565b8114612a4d57600080fd5b50565b600081359050612a5f81612a39565b92915050565b6000612a78612a73846129fe565b6128ea565b90508083825260208201905060208402830185811115612a9b57612a9a612a2a565b5b835b81811015612ac45780612ab08882612a50565b845260208401935050602081019050612a9d565b5050509392505050565b600082601f830112612ae357612ae2612880565b5b8135612af3848260208601612a65565b91505092915050565b600060208284031215612b1257612b1161252b565b5b600082013567ffffffffffffffff811115612b3057612b2f612530565b5b612b3c84828501612ace565b91505092915050565b612b4e816125ba565b8114612b5957600080fd5b50565b600081359050612b6b81612b45565b92915050565b60008060408385031215612b8857612b8761252b565b5b6000612b9685828601612781565b9250506020612ba785828601612b5c565b9150509250929050565b600080fd5b60008083601f840112612bcc57612bcb612880565b5b8235905067ffffffffffffffff811115612be957612be8612bb1565b5b602083019150836001820283011115612c0557612c04612a2a565b5b9250929050565b60008060208385031215612c2357612c2261252b565b5b600083013567ffffffffffffffff811115612c4157612c40612530565b5b612c4d85828601612bb6565b92509250509250929050565b600067ffffffffffffffff821115612c7457612c7361288a565b5b612c7d8261263f565b9050602081019050919050565b6000612c9d612c9884612c59565b6128ea565b905082815260208101848484011115612cb957612cb8612885565b5b612cc4848285612936565b509392505050565b600082601f830112612ce157612ce0612880565b5b8135612cf1848260208601612c8a565b91505092915050565b60008060008060808587031215612d1457612d1361252b565b5b6000612d2287828801612781565b9450506020612d3387828801612781565b9350506040612d44878288016126cc565b925050606085013567ffffffffffffffff811115612d6557612d64612530565b5b612d7187828801612ccc565b91505092959194509250565b600060208284031215612d9357612d9261252b565b5b6000612da184828501612a50565b91505092915050565b60008060408385031215612dc157612dc061252b565b5b6000612dcf85828601612781565b9250506020612de085828601612781565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612e3157607f821691505b602082108103612e4457612e43612dea565b5b50919050565b600081905092915050565b50565b6000612e65600083612e4a565b9150612e7082612e55565b600082019050919050565b6000612e8682612e58565b9150819050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302612ef27fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82612eb5565b612efc8683612eb5565b95508019841693508086168417925050509392505050565b6000819050919050565b6000612f39612f34612f2f846126ab565b612f14565b6126ab565b9050919050565b6000819050919050565b612f5383612f1e565b612f67612f5f82612f40565b848454612ec2565b825550505050565b600090565b612f7c612f6f565b612f87818484612f4a565b505050565b5b81811015612fab57612fa0600082612f74565b600181019050612f8d565b5050565b601f821115612ff057612fc181612e90565b612fca84612ea5565b81016020851015612fd9578190505b612fed612fe585612ea5565b830182612f8c565b50505b505050565b600082821c905092915050565b600061301360001984600802612ff5565b1980831691505092915050565b600061302c8383613002565b9150826002028217905092915050565b613045826125f0565b67ffffffffffffffff81111561305e5761305d61288a565b5b6130688254612e19565b613073828285612faf565b600060209050601f8311600181146130a65760008415613094578287015190505b61309e8582613020565b865550613106565b601f1984166130b486612e90565b60005b828110156130dc578489015182556001820191506020850194506020810190506130b7565b868310156130f957848901516130f5601f891682613002565b8355505b6001600288020188555050505b505050505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000613144601f836125fb565b915061314f8261310e565b602082019050919050565b6000602082019050818103600083015261317381613137565b9050919050565b7f596f752063616e74206d696e74207965742e0000000000000000000000000000600082015250565b60006131b06012836125fb565b91506131bb8261317a565b602082019050919050565b600060208201905081810360008301526131df816131a3565b9050919050565b60008160601b9050919050565b60006131fe826131e6565b9050919050565b6000613210826131f3565b9050919050565b6132286132238261272e565b613205565b82525050565b600061323a8284613217565b60148201915081905092915050565b7f596f7520617265206e6f742077686974656c6973746564210000000000000000600082015250565b600061327f6018836125fb565b915061328a82613249565b602082019050919050565b600060208201905081810360008301526132ae81613272565b9050919050565b7f596f7527766520616c7265616479206d696e74656420796f757220467265652060008201527f57686174497354686973204e46542e0000000000000000000000000000000000602082015250565b6000613311602f836125fb565b915061331c826132b5565b604082019050919050565b6000602082019050818103600083015261334081613304565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613381826126ab565b915061338c836126ab565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156133c1576133c0613347565b5b828201905092915050565b7f4d617820737570706c7920666f722046726565206d696e74732068617320626560008201527f656e20726561636865642e000000000000000000000000000000000000000000602082015250565b6000613428602b836125fb565b9150613433826133cc565b604082019050919050565b600060208201905081810360008301526134578161341b565b9050919050565b600082905092915050565b613473838361345e565b67ffffffffffffffff81111561348c5761348b61288a565b5b6134968254612e19565b6134a1828285612faf565b6000601f8311600181146134d057600084156134be578287013590505b6134c88582613020565b865550613530565b601f1984166134de86612e90565b60005b82811015613506578489013582556001820191506020850194506020810190506134e1565b86831015613523578489013561351f601f891682613002565b8355505b6001600288020188555050505b50505050505050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000613595602f836125fb565b91506135a082613539565b604082019050919050565b600060208201905081810360008301526135c481613588565b9050919050565b600081905092915050565b60006135e1826125f0565b6135eb81856135cb565b93506135fb81856020860161260c565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b600061363d6005836135cb565b915061364882613607565b600582019050919050565b600061365f82856135d6565b915061366b82846135d6565b915061367682613630565b91508190509392505050565b7f53616c65206861736e7420636f6d6d656e636564207965742e00000000000000600082015250565b60006136b86019836125fb565b91506136c382613682565b602082019050919050565b600060208201905081810360008301526136e7816136ab565b9050919050565b7f4d61782036207065722054584e2e000000000000000000000000000000000000600082015250565b6000613724600e836125fb565b915061372f826136ee565b602082019050919050565b6000602082019050818103600083015261375381613717565b9050919050565b7f54686572652773206e6f7420656e6f75676820737570706c79206c6566742e00600082015250565b6000613790601f836125fb565b915061379b8261375a565b602082019050919050565b600060208201905081810360008301526137bf81613783565b9050919050565b60006137d1826126ab565b91506137dc836126ab565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561381557613814613347565b5b828202905092915050565b7f4f6e652057686174497354686973204e465420636f73747320302e303636362060008201527f45746865722e0000000000000000000000000000000000000000000000000000602082015250565b600061387c6026836125fb565b915061388782613820565b604082019050919050565b600060208201905081810360008301526138ab8161386f565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061390e6026836125fb565b9150613919826138b2565b604082019050919050565b6000602082019050818103600083015261393d81613901565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061397a6020836125fb565b915061398582613944565b602082019050919050565b600060208201905081810360008301526139a98161396d565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006139d7826139b0565b6139e181856139bb565b93506139f181856020860161260c565b6139fa8161263f565b840191505092915050565b6000608082019050613a1a6000830187612740565b613a276020830186612740565b613a3460408301856127d6565b8181036060830152613a4681846139cc565b905095945050505050565b600081519050613a6081612561565b92915050565b600060208284031215613a7c57613a7b61252b565b5b6000613a8a84828501613a51565b91505092915050565b6000613a9e826126ab565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613ad057613acf613347565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613b15826126ab565b9150613b20836126ab565b925082613b3057613b2f613adb565b5b828204905092915050565b6000613b46826126ab565b9150613b51836126ab565b925082821015613b6457613b63613347565b5b828203905092915050565b6000613b7a826126ab565b9150613b85836126ab565b925082613b9557613b94613adb565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea2646970667358221220ce14759c65cf2a8ab6ecfd8dbee4d5fe880fd987c78b7c0407a0c7ccd6854f2664736f6c634300080f0033
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.