ERC-721
Overview
Max Total Supply
650 MetaZeusMintpass
Holders
240
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 MetaZeusMintpassLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
MetaZeusMintpass
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity >=0.8.9 <0.9.0; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/utils/cryptography/MerkleProof.sol'; import '@openzeppelin/contracts/security/ReentrancyGuard.sol'; import "@openzeppelin/contracts/utils/Strings.sol"; import 'erc721a/contracts/extensions/ERC721AQueryable.sol'; import 'operator-filter-registry/src/DefaultOperatorFilterer.sol'; contract MetaZeusMintpass is ERC721AQueryable, Ownable, ReentrancyGuard, DefaultOperatorFilterer { using Strings for uint256; error InvalidPrice(); error ContractPaused(); error MaxSupplyReached(); error AllowSaleInactive(); error PublicSaleInactive(); error MaxPerWallet(); error InvalidAmount(); error NotAllowedToMint(); bytes32 private immutable merkleRootAllowList; address private constant treasury=0x4F590f2E40B27d06d8d5a7b8BEaf0eaaed66b248; uint256 private constant mintPrice=77000000000000000; uint256 private constant maxSupTotal=5555; uint256 private constant teamAllocation=333; string private constant uriPrefix = 'https://metazeus.s3.eu-central-1.amazonaws.com/metazeus_nft_pass/metadata/'; string private constant uriSuffix = '.json'; //struct for state vars is 2nd best next to bitmap struct States { bool paused; bool allowlistMintEnabled; bool publicSaleEnabled; } //initialize structs States public state; constructor( States memory _state, bytes32 _merkleRootAllowList ) ERC721A("MetaZeusMintpass", "MetaZeusMintpass") { setPaused(_state.paused); setPublicSaleActive(_state.publicSaleEnabled); setWhitelistMintEnabled(_state.allowlistMintEnabled); batchMint(msg.sender, teamAllocation); merkleRootAllowList = _merkleRootAllowList; } // checks for allow and public phases modifier mintComplianceAllow(uint256 _mintAmount, bytes32[] calldata _merkleProof) { if(state.paused) revert ContractPaused(); if(_totalMinted()+_mintAmount > maxSupTotal) revert MaxSupplyReached(); if(!state.allowlistMintEnabled) revert AllowSaleInactive(); if ((_getAux(_msgSender())+_mintAmount)>2) revert NotAllowedToMint(); if(_mintAmount <= 0 || _mintAmount > 2) revert InvalidAmount(); if(msg.value<mintPrice * _mintAmount) revert InvalidPrice(); bytes32 leaf = keccak256(abi.encodePacked(_msgSender())); if(!MerkleProof.verifyCalldata(_merkleProof, merkleRootAllowList, leaf)) revert NotAllowedToMint(); _; } modifier mintCompliancePublic(uint256 _mintAmount) { if(state.paused) revert ContractPaused(); if(_totalMinted()+_mintAmount > maxSupTotal) revert MaxSupplyReached(); if(!state.publicSaleEnabled) revert PublicSaleInactive(); if(_mintAmount <= 0 || _mintAmount > 10) revert InvalidAmount(); if(msg.value<mintPrice * _mintAmount) revert InvalidPrice(); _; } /** ----MINT FUNCTIONS---- */ //ALLOWLIST function allowlistMint(uint256 _mintAmount, bytes32[] calldata _merkleProof) public payable mintComplianceAllow(_mintAmount,_merkleProof) { _setAux(_msgSender(),(_getAux(_msgSender())+uint64(_mintAmount))); _mint(_msgSender(), _mintAmount); } // PUBLIC MINT function pubMint(uint256 _mintAmount) public payable mintCompliancePublic(_mintAmount) { _mint(_msgSender(), _mintAmount); } // Batch Mint function batchMint(address to, uint256 quantity) public payable onlyOwner { _mintERC2309(to,quantity); } // ------ HELPERS AND OTHER FUNCTIONS ------ function _startTokenId() internal view virtual override returns (uint256) { return 1; } function tokenURI(uint256 _tokenId) public view virtual override(ERC721A, IERC721A) returns (string memory) { require(_exists(_tokenId), 'ERC721Metadata: URI query for nonexistent token'); string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, _tokenId.toString(), uriSuffix)) : ''; } function _baseURI() internal view virtual override(ERC721A) returns (string memory) { return uriPrefix; } // -----SETTERS----- function setPaused(bool _state) public onlyOwner { state.paused = _state; } function setWhitelistMintEnabled(bool _state) public onlyOwner { state.allowlistMintEnabled = _state; } function setPublicSaleActive(bool _state) public onlyOwner { state.publicSaleEnabled = _state; } // -----TRANSFERS FUNCTIONS----- function transferFrom(address from, address to, uint256 tokenId) public payable override(ERC721A, IERC721A) onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId) public payable override(ERC721A, IERC721A) onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public payable override(ERC721A, IERC721A) onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } function withdraw() public onlyOwner nonReentrant { (bool os, ) = payable(treasury).call{value: address(this).balance}(''); require(os); } }
// 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 // OpenZeppelin Contracts (last updated v4.8.0) (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() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * 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. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ 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 simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _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} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _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 sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _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}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _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 (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _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) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @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] = _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 // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // 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 `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID 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 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @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 virtual 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 virtual 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 virtual 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 virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual 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 virtual { 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; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ 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: [ERC165](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. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ 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 ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * 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 initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev 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); } /** * @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 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)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @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) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @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) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @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. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(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 `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @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 memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @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 Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns 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)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @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 virtual { uint256 startTokenId = _currentIndex; 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 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _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 virtual { 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 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 virtual { _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 Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @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) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(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++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { 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 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 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; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @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 virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721AQueryable.sol'; import '../ERC721A.sol'; /** * @title ERC721AQueryable. * * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable { /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) public view virtual override returns (TokenOwnership memory) { TokenOwnership memory ownership; if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) { return ownership; } ownership = _ownershipAt(tokenId); if (ownership.burned) { return ownership; } return _ownershipOf(tokenId); } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] calldata tokenIds) external view virtual override returns (TokenOwnership[] memory) { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength); for (uint256 i; i != tokenIdsLength; ++i) { ownerships[i] = explicitOwnershipOf(tokenIds[i]); } return ownerships; } } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view virtual override returns (uint256[] memory) { unchecked { if (start >= stop) revert InvalidQueryRange(); uint256 tokenIdsIdx; uint256 stopLimit = _nextTokenId(); // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, stopLimit)`. if (stop > stopLimit) { stop = stopLimit; } uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (start < stop) { uint256 rangeLength = stop - start; if (rangeLength < tokenIdsMaxLength) { tokenIdsMaxLength = rangeLength; } } else { tokenIdsMaxLength = 0; } uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength); if (tokenIdsMaxLength == 0) { return tokenIds; } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`. // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } // Downsize the array to fit. assembly { mstore(tokenIds, tokenIdsIdx) } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view virtual override returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import '../IERC721A.sol'; /** * @dev Interface of ERC721AQueryable. */ interface IERC721AQueryable is IERC721A { /** * Invalid query range (`start` >= `stop`). */ error InvalidQueryRange(); /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory); /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory); /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory); /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * 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(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores 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 via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @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() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 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`, * 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, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` 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 payable; /** * @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 payable; /** * @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](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {OperatorFilterer} from "./OperatorFilterer.sol"; /** * @title DefaultOperatorFilterer * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription. */ abstract contract DefaultOperatorFilterer is OperatorFilterer { address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6); constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface IOperatorFilterRegistry { function isOperatorAllowed(address registrant, address operator) external view returns (bool); function register(address registrant) external; function registerAndSubscribe(address registrant, address subscription) external; function registerAndCopyEntries(address registrant, address registrantToCopy) external; function unregister(address addr) external; function updateOperator(address registrant, address operator, bool filtered) external; function updateOperators(address registrant, address[] calldata operators, bool filtered) external; function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; function subscribe(address registrant, address registrantToSubscribe) external; function unsubscribe(address registrant, bool copyExistingEntries) external; function subscriptionOf(address addr) external returns (address registrant); function subscribers(address registrant) external returns (address[] memory); function subscriberAt(address registrant, uint256 index) external returns (address); function copyEntriesOf(address registrant, address registrantToCopy) external; function isOperatorFiltered(address registrant, address operator) external returns (bool); function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); function filteredOperators(address addr) external returns (address[] memory); function filteredCodeHashes(address addr) external returns (bytes32[] memory); function filteredOperatorAt(address registrant, uint256 index) external returns (address); function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); function isRegistered(address addr) external returns (bool); function codeHashOf(address addr) external returns (bytes32); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol"; /** * @title OperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. */ abstract contract OperatorFilterer { error OperatorNotAllowed(address operator); IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E); constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } modifier onlyAllowedOperator(address from) virtual { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from != msg.sender) { _checkFilterOperator(msg.sender); } _; } modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } function _checkFilterOperator(address operator) internal view virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "metadata": { "useLiteralContent": true } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"components":[{"internalType":"bool","name":"paused","type":"bool"},{"internalType":"bool","name":"allowlistMintEnabled","type":"bool"},{"internalType":"bool","name":"publicSaleEnabled","type":"bool"}],"internalType":"struct MetaZeusMintpass.States","name":"_state","type":"tuple"},{"internalType":"bytes32","name":"_merkleRootAllowList","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AllowSaleInactive","type":"error"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"ContractPaused","type":"error"},{"inputs":[],"name":"InvalidAmount","type":"error"},{"inputs":[],"name":"InvalidPrice","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MaxPerWallet","type":"error"},{"inputs":[],"name":"MaxSupplyReached","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NotAllowedToMint","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"PublicSaleInactive","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":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"allowlistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"batchMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"pubMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPublicSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setWhitelistMintEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"state","outputs":[{"internalType":"bool","name":"paused","type":"bool"},{"internalType":"bool","name":"allowlistMintEnabled","type":"bool"},{"internalType":"bool","name":"publicSaleEnabled","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040523480156200001157600080fd5b50604051620029e6380380620029e68339810160408190526200003491620004ba565b733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280601081526020016f4d6574615a6575734d696e747061737360801b8152506040518060400160405280601081526020016f4d6574615a6575734d696e747061737360801b8152508160029081620000ae9190620005d8565b506003620000bd8282620005d8565b5050600160005550620000d03362000261565b60016009556daaeb6d7670e522a718067333cd4e3b156200021a5780156200016857604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200014957600080fd5b505af11580156200015e573d6000803e3d6000fd5b505050506200021a565b6001600160a01b03821615620001b95760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af2903906044016200012e565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200020057600080fd5b505af115801562000215573d6000803e3d6000fd5b505050505b505081516200022990620002b3565b60408201516200023990620002d0565b60208201516200024990620002f6565b620002573361014d6200031a565b60805250620006a4565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620002bd62000334565b600a805460ff1916911515919091179055565b620002da62000334565b600a8054911515620100000262ff000019909216919091179055565b6200030062000334565b600a80549115156101000261ff0019909216919091179055565b6200032462000334565b62000330828262000395565b5050565b6008546001600160a01b03163314620003935760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b565b6000546001600160a01b038316620003bf57604051622e076360e81b815260040160405180910390fd5b81600003620003e15760405163b562e8dd60e01b815260040160405180910390fd5b6113888211156200040557604051633db1f9af60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600482528083206001871460e11b4260a01b17851790558051600019868801018152905185927fdeaa91b6123d068f5821d0fb0678463d1a8a6079fe8af5de3ce5e896dcf9133d928290030190a40160005550565b505050565b634e487b7160e01b600052604160045260246000fd5b80518015158114620004b557600080fd5b919050565b6000808284036080811215620004cf57600080fd5b6060811215620004de57600080fd5b50604051606081016001600160401b03811182821017156200050457620005046200048e565b6040526200051284620004a4565b81526200052260208501620004a4565b60208201526200053560408501620004a4565b60408201526060939093015192949293505050565b600181811c908216806200055f57607f821691505b6020821081036200058057634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200048957600081815260208120601f850160051c81016020861015620005af5750805b601f850160051c820191505b81811015620005d057828155600101620005bb565b505050505050565b81516001600160401b03811115620005f457620005f46200048e565b6200060c816200060584546200054a565b8462000586565b602080601f8311600181146200064457600084156200062b5750858301515b600019600386901b1c1916600185901b178555620005d0565b600085815260208120601f198616915b82811015620006755788860151825594840194600190910190840162000654565b5085821015620006945787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b608051612326620006c06000396000610b4f01526123266000f3fe6080604052600436106101cd5760003560e01c80637bc9200e116100f7578063b88d4fde11610095578063c87b56dd11610064578063c87b56dd14610521578063e2e06fa314610541578063e985e9c514610561578063f2fde38b146105aa57600080fd5b8063b88d4fde14610482578063c19d93fb14610495578063c1d9df8d146104e1578063c23dc68f146104f457600080fd5b806395d89b41116100d157806395d89b411461040d57806399a2557a14610422578063a22cb46514610442578063b767a0981461046257600080fd5b80637bc9200e146103af5780638462151c146103c25780638da5cb5b146103ef57600080fd5b80633ccfd60b1161016f5780635bbb21771161013e5780635bbb21771461032d5780636352211e1461035a57806370a082311461037a578063715018a61461039a57600080fd5b80633ccfd60b146102d057806341f43434146102e557806342842e0e1461030757806343508b051461031a57600080fd5b8063095ea7b3116101ab578063095ea7b31461026157806316c38b3c1461027657806318160ddd1461029657806323b872dd146102bd57600080fd5b806301ffc9a7146101d257806306fdde0314610207578063081812fc14610229575b600080fd5b3480156101de57600080fd5b506101f26101ed366004611c92565b6105ca565b60405190151581526020015b60405180910390f35b34801561021357600080fd5b5061021c61061c565b6040516101fe9190611cff565b34801561023557600080fd5b50610249610244366004611d12565b6106ae565b6040516001600160a01b0390911681526020016101fe565b61027461026f366004611d47565b6106f2565b005b34801561028257600080fd5b50610274610291366004611d7f565b610792565b3480156102a257600080fd5b5060015460005403600019015b6040519081526020016101fe565b6102746102cb366004611d9c565b6107ad565b3480156102dc57600080fd5b506102746107d8565b3480156102f157600080fd5b506102496daaeb6d7670e522a718067333cd4e81565b610274610315366004611d9c565b61085e565b610274610328366004611d47565b610883565b34801561033957600080fd5b5061034d610348366004611e23565b610899565b6040516101fe9190611ea0565b34801561036657600080fd5b50610249610375366004611d12565b610964565b34801561038657600080fd5b506102af610395366004611ee2565b61096f565b3480156103a657600080fd5b506102746109bd565b6102746103bd366004611efd565b6109cf565b3480156103ce57600080fd5b506103e26103dd366004611ee2565b610bee565b6040516101fe9190611f48565b3480156103fb57600080fd5b506008546001600160a01b0316610249565b34801561041957600080fd5b5061021c610cf6565b34801561042e57600080fd5b506103e261043d366004611f80565b610d05565b34801561044e57600080fd5b5061027461045d366004611fb3565b610e8c565b34801561046e57600080fd5b5061027461047d366004611d7f565b610ef8565b610274610490366004612000565b610f1a565b3480156104a157600080fd5b50600a546104c29060ff808216916101008104821691620100009091041683565b60408051931515845291151560208401521515908201526060016101fe565b6102746104ef366004611d12565b610f47565b34801561050057600080fd5b5061051461050f366004611d12565b611036565b6040516101fe91906120db565b34801561052d57600080fd5b5061021c61053c366004611d12565b6110be565b34801561054d57600080fd5b5061027461055c366004611d7f565b6111ac565b34801561056d57600080fd5b506101f261057c3660046120e9565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156105b657600080fd5b506102746105c5366004611ee2565b6111d0565b60006301ffc9a760e01b6001600160e01b0319831614806105fb57506380ac58cd60e01b6001600160e01b03198316145b806106165750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461062b9061211c565b80601f01602080910402602001604051908101604052809291908181526020018280546106579061211c565b80156106a45780601f10610679576101008083540402835291602001916106a4565b820191906000526020600020905b81548152906001019060200180831161068757829003601f168201915b5050505050905090565b60006106b982611249565b6106d6576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006106fd82610964565b9050336001600160a01b0382161461073657610719813361057c565b610736576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b61079a61127e565b600a805460ff1916911515919091179055565b826001600160a01b03811633146107c7576107c7336112d8565b6107d2848484611391565b50505050565b6107e061127e565b6107e8611529565b604051600090734f590f2e40b27d06d8d5a7b8beaf0eaaed66b2489047908381818185875af1925050503d806000811461083e576040519150601f19603f3d011682016040523d82523d6000602084013e610843565b606091505b505090508061085157600080fd5b5061085c6001600955565b565b826001600160a01b038116331461087857610878336112d8565b6107d2848484611582565b61088b61127e565b61089582826115a2565b5050565b6060816000816001600160401b038111156108b6576108b6611fea565b60405190808252806020026020018201604052801561090857816020015b6040805160808101825260008082526020808301829052928201819052606082015282526000199092019101816108d45790505b50905060005b82811461095b5761093686868381811061092a5761092a612156565b90506020020135611036565b82828151811061094857610948612156565b602090810291909101015260010161090e565b50949350505050565b6000610616826116bb565b60006001600160a01b038216610998576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6109c561127e565b61085c600061172a565b600a5483908390839060ff16156109f95760405163ab35696f60e01b815260040160405180910390fd5b6115b383610a0a6000546000190190565b610a149190612182565b1115610a335760405163d05cb60960e01b815260040160405180910390fd5b600a54610100900460ff16610a5b5760405163cfe212a760e01b815260040160405180910390fd5b600283610a81335b6001600160a01b031660009081526005602052604090205460c01c90565b6001600160401b0316610a949190612182565b1115610ab35760405163bc88519760e01b815260040160405180910390fd5b821580610ac05750600283115b15610ade5760405163162908e360e11b815260040160405180910390fd5b610af0836701118f178fb48000612195565b341015610b0f5760405162bfc92160e01b815260040160405180910390fd5b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050610b7483837f00000000000000000000000000000000000000000000000000000000000000008461177c565b610b915760405163bc88519760e01b815260040160405180910390fd5b610bdb3388610b9f33610a63565b610ba991906121ac565b6001600160a01b03909116600090815260056020526040902080546001600160c01b031660c09290921b919091179055565b610be53388611796565b50505050505050565b60606000806000610bfe8561096f565b90506000816001600160401b03811115610c1a57610c1a611fea565b604051908082528060200260200182016040528015610c43578160200160208202803683370190505b509050610c7060408051608081018252600080825260208201819052918101829052606081019190915290565b60015b838614610cea57610c838161189f565b91508160400151610ce25781516001600160a01b031615610ca357815194505b876001600160a01b0316856001600160a01b031603610ce25780838780600101985081518110610cd557610cd5612156565b6020026020010181815250505b600101610c73565b50909695505050505050565b60606003805461062b9061211c565b6060818310610d2757604051631960ccad60e11b815260040160405180910390fd5b600080610d3360005490565b90506001851015610d4357600194505b80841115610d4f578093505b6000610d5a8761096f565b905084861015610d795785850381811015610d73578091505b50610d7d565b5060005b6000816001600160401b03811115610d9757610d97611fea565b604051908082528060200260200182016040528015610dc0578160200160208202803683370190505b50905081600003610dd6579350610e8592505050565b6000610de188611036565b905060008160400151610df2575080515b885b888114158015610e045750848714155b15610e7957610e128161189f565b92508260400151610e715782516001600160a01b031615610e3257825191505b8a6001600160a01b0316826001600160a01b031603610e715780848880600101995081518110610e6457610e64612156565b6020026020010181815250505b600101610df4565b50505092835250909150505b9392505050565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610f0061127e565b600a80549115156101000261ff0019909216919091179055565b836001600160a01b0381163314610f3457610f34336112d8565b610f40858585856118db565b5050505050565b600a54819060ff1615610f6d5760405163ab35696f60e01b815260040160405180910390fd5b6115b381610f7e6000546000190190565b610f889190612182565b1115610fa75760405163d05cb60960e01b815260040160405180910390fd5b600a5462010000900460ff16610fd057604051633167946760e21b815260040160405180910390fd5b801580610fdd5750600a81115b15610ffb5760405163162908e360e11b815260040160405180910390fd5b61100d816701118f178fb48000612195565b34101561102c5760405162bfc92160e01b815260040160405180910390fd5b6108953383611796565b604080516080810182526000808252602082018190529181018290526060810191909152604080516080810182526000808252602082018190529181018290526060810191909152600183108061108f57506000548310155b1561109a5792915050565b6110a38361189f565b90508060400151156110b55792915050565b610e858361191f565b60606110c982611249565b6111325760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084015b60405180910390fd5b600061113c611954565b9050600081511161115c5760405180602001604052806000815250610e85565b8061116684611974565b60405180604001604052806005815260200164173539b7b760d91b815250604051602001611196939291906121d3565b6040516020818303038152906040529392505050565b6111b461127e565b600a8054911515620100000262ff000019909216919091179055565b6111d861127e565b6001600160a01b03811661123d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401611129565b6112468161172a565b50565b60008160011115801561125d575060005482105b8015610616575050600090815260046020526040902054600160e01b161590565b6008546001600160a01b0316331461085c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401611129565b6daaeb6d7670e522a718067333cd4e3b1561124657604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611345573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113699190612216565b61124657604051633b79c77360e21b81526001600160a01b0382166004820152602401611129565b600061139c826116bb565b9050836001600160a01b0316816001600160a01b0316146113cf5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b0388169091141761141c576113ff863361057c565b61141c57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661144357604051633a954ecd60e21b815260040160405180910390fd5b801561144e57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b841690036114e0576001840160008181526004602052604081205490036114de5760005481146114de5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b60026009540361157b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401611129565b6002600955565b61159d83838360405180602001604052806000815250610f1a565b505050565b6000546001600160a01b0383166115cb57604051622e076360e81b815260040160405180910390fd5b816000036115ec5760405163b562e8dd60e01b815260040160405180910390fd5b61138882111561160f57604051633db1f9af60e01b815260040160405180910390fd5b6001600160a01b0383166000908152600560205260408120805468010000000000000001850201905561165c9084905b6001851460e11b174260a01b176001600160a01b03919091161790565b60008281526004602090815260408083209390935591518484016000190181526001600160a01b0386169284917fdeaa91b6123d068f5821d0fb0678463d1a8a6079fe8af5de3ce5e896dcf9133d910160405180910390a40160005550565b60008180600111611711576000548110156117115760008181526004602052604081205490600160e01b8216900361170f575b80600003610e855750600019016000818152600460205260409020546116ee565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008261178a868685611a06565b1490505b949350505050565b60008054908290036117bb5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600090815260056020526040812080546801000000000000000185020190556117ef90849061163f565b6000828152600460205260408120919091556001600160a01b0384169083830190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461187557808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460010161183d565b508160000361189657604051622e076360e81b815260040160405180910390fd5b60005550505050565b60408051608081018252600080825260208201819052918101829052606081019190915260008281526004602052604090205461061690611a49565b6118e68484846107ad565b6001600160a01b0383163b156107d25761190284848484611a90565b6107d2576040516368d2bf6b60e11b815260040160405180910390fd5b60408051608081018252600080825260208201819052918101829052606081019190915261061661194f836116bb565b611a49565b60606040518060800160405280604a81526020016122a7604a9139905090565b6060600061198183611b78565b60010190506000816001600160401b038111156119a0576119a0611fea565b6040519080825280601f01601f1916602001820160405280156119ca576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846119d457509392505050565b600081815b8481101561095b57611a3582878784818110611a2957611a29612156565b90506020020135611c50565b915080611a4181612233565b915050611a0b565b604080516080810182526001600160a01b038316815260a083901c6001600160401b03166020820152600160e01b831615159181019190915260e89190911c606082015290565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611ac590339089908890889060040161224c565b6020604051808303816000875af1925050508015611b00575060408051601f3d908101601f19168201909252611afd91810190612289565b60015b611b5e573d808015611b2e576040519150601f19603f3d011682016040523d82523d6000602084013e611b33565b606091505b508051600003611b56576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061178e565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310611bb75772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611be3576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611c0157662386f26fc10000830492506010015b6305f5e1008310611c19576305f5e100830492506008015b6127108310611c2d57612710830492506004015b60648310611c3f576064830492506002015b600a83106106165760010192915050565b6000818310611c6c576000828152602084905260409020610e85565b5060009182526020526040902090565b6001600160e01b03198116811461124657600080fd5b600060208284031215611ca457600080fd5b8135610e8581611c7c565b60005b83811015611cca578181015183820152602001611cb2565b50506000910152565b60008151808452611ceb816020860160208601611caf565b601f01601f19169290920160200192915050565b602081526000610e856020830184611cd3565b600060208284031215611d2457600080fd5b5035919050565b80356001600160a01b0381168114611d4257600080fd5b919050565b60008060408385031215611d5a57600080fd5b611d6383611d2b565b946020939093013593505050565b801515811461124657600080fd5b600060208284031215611d9157600080fd5b8135610e8581611d71565b600080600060608486031215611db157600080fd5b611dba84611d2b565b9250611dc860208501611d2b565b9150604084013590509250925092565b60008083601f840112611dea57600080fd5b5081356001600160401b03811115611e0157600080fd5b6020830191508360208260051b8501011115611e1c57600080fd5b9250929050565b60008060208385031215611e3657600080fd5b82356001600160401b03811115611e4c57600080fd5b611e5885828601611dd8565b90969095509350505050565b80516001600160a01b031682526020808201516001600160401b03169083015260408082015115159083015260609081015162ffffff16910152565b6020808252825182820181905260009190848201906040850190845b81811015610cea57611ecf838551611e64565b9284019260809290920191600101611ebc565b600060208284031215611ef457600080fd5b610e8582611d2b565b600080600060408486031215611f1257600080fd5b8335925060208401356001600160401b03811115611f2f57600080fd5b611f3b86828701611dd8565b9497909650939450505050565b6020808252825182820181905260009190848201906040850190845b81811015610cea57835183529284019291840191600101611f64565b600080600060608486031215611f9557600080fd5b611f9e84611d2b565b95602085013595506040909401359392505050565b60008060408385031215611fc657600080fd5b611fcf83611d2b565b91506020830135611fdf81611d71565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561201657600080fd5b61201f85611d2b565b935061202d60208601611d2b565b92506040850135915060608501356001600160401b038082111561205057600080fd5b818701915087601f83011261206457600080fd5b81358181111561207657612076611fea565b604051601f8201601f19908116603f0116810190838211818310171561209e5761209e611fea565b816040528281528a60208487010111156120b757600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b608081016106168284611e64565b600080604083850312156120fc57600080fd5b61210583611d2b565b915061211360208401611d2b565b90509250929050565b600181811c9082168061213057607f821691505b60208210810361215057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b808201808211156106165761061661216c565b80820281158282048414176106165761061661216c565b6001600160401b038181168382160190808211156121cc576121cc61216c565b5092915050565b600084516121e5818460208901611caf565b8451908301906121f9818360208901611caf565b845191019061220c818360208801611caf565b0195945050505050565b60006020828403121561222857600080fd5b8151610e8581611d71565b6000600182016122455761224561216c565b5060010190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061227f90830184611cd3565b9695505050505050565b60006020828403121561229b57600080fd5b8151610e8581611c7c56fe68747470733a2f2f6d6574617a6575732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f6d6574617a6575735f6e66745f706173732f6d657461646174612fa2646970667358221220f02173dea51ae345e7b3ac8e020da458d2127f89756d77f8137e26bf9d6a897a64736f6c63430008110033000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ce52fe846ffed4f0f16507f048f4db1f7a0ed60d90d852cf14bb07be828eaab8
Deployed Bytecode
0x6080604052600436106101cd5760003560e01c80637bc9200e116100f7578063b88d4fde11610095578063c87b56dd11610064578063c87b56dd14610521578063e2e06fa314610541578063e985e9c514610561578063f2fde38b146105aa57600080fd5b8063b88d4fde14610482578063c19d93fb14610495578063c1d9df8d146104e1578063c23dc68f146104f457600080fd5b806395d89b41116100d157806395d89b411461040d57806399a2557a14610422578063a22cb46514610442578063b767a0981461046257600080fd5b80637bc9200e146103af5780638462151c146103c25780638da5cb5b146103ef57600080fd5b80633ccfd60b1161016f5780635bbb21771161013e5780635bbb21771461032d5780636352211e1461035a57806370a082311461037a578063715018a61461039a57600080fd5b80633ccfd60b146102d057806341f43434146102e557806342842e0e1461030757806343508b051461031a57600080fd5b8063095ea7b3116101ab578063095ea7b31461026157806316c38b3c1461027657806318160ddd1461029657806323b872dd146102bd57600080fd5b806301ffc9a7146101d257806306fdde0314610207578063081812fc14610229575b600080fd5b3480156101de57600080fd5b506101f26101ed366004611c92565b6105ca565b60405190151581526020015b60405180910390f35b34801561021357600080fd5b5061021c61061c565b6040516101fe9190611cff565b34801561023557600080fd5b50610249610244366004611d12565b6106ae565b6040516001600160a01b0390911681526020016101fe565b61027461026f366004611d47565b6106f2565b005b34801561028257600080fd5b50610274610291366004611d7f565b610792565b3480156102a257600080fd5b5060015460005403600019015b6040519081526020016101fe565b6102746102cb366004611d9c565b6107ad565b3480156102dc57600080fd5b506102746107d8565b3480156102f157600080fd5b506102496daaeb6d7670e522a718067333cd4e81565b610274610315366004611d9c565b61085e565b610274610328366004611d47565b610883565b34801561033957600080fd5b5061034d610348366004611e23565b610899565b6040516101fe9190611ea0565b34801561036657600080fd5b50610249610375366004611d12565b610964565b34801561038657600080fd5b506102af610395366004611ee2565b61096f565b3480156103a657600080fd5b506102746109bd565b6102746103bd366004611efd565b6109cf565b3480156103ce57600080fd5b506103e26103dd366004611ee2565b610bee565b6040516101fe9190611f48565b3480156103fb57600080fd5b506008546001600160a01b0316610249565b34801561041957600080fd5b5061021c610cf6565b34801561042e57600080fd5b506103e261043d366004611f80565b610d05565b34801561044e57600080fd5b5061027461045d366004611fb3565b610e8c565b34801561046e57600080fd5b5061027461047d366004611d7f565b610ef8565b610274610490366004612000565b610f1a565b3480156104a157600080fd5b50600a546104c29060ff808216916101008104821691620100009091041683565b60408051931515845291151560208401521515908201526060016101fe565b6102746104ef366004611d12565b610f47565b34801561050057600080fd5b5061051461050f366004611d12565b611036565b6040516101fe91906120db565b34801561052d57600080fd5b5061021c61053c366004611d12565b6110be565b34801561054d57600080fd5b5061027461055c366004611d7f565b6111ac565b34801561056d57600080fd5b506101f261057c3660046120e9565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156105b657600080fd5b506102746105c5366004611ee2565b6111d0565b60006301ffc9a760e01b6001600160e01b0319831614806105fb57506380ac58cd60e01b6001600160e01b03198316145b806106165750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461062b9061211c565b80601f01602080910402602001604051908101604052809291908181526020018280546106579061211c565b80156106a45780601f10610679576101008083540402835291602001916106a4565b820191906000526020600020905b81548152906001019060200180831161068757829003601f168201915b5050505050905090565b60006106b982611249565b6106d6576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006106fd82610964565b9050336001600160a01b0382161461073657610719813361057c565b610736576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b61079a61127e565b600a805460ff1916911515919091179055565b826001600160a01b03811633146107c7576107c7336112d8565b6107d2848484611391565b50505050565b6107e061127e565b6107e8611529565b604051600090734f590f2e40b27d06d8d5a7b8beaf0eaaed66b2489047908381818185875af1925050503d806000811461083e576040519150601f19603f3d011682016040523d82523d6000602084013e610843565b606091505b505090508061085157600080fd5b5061085c6001600955565b565b826001600160a01b038116331461087857610878336112d8565b6107d2848484611582565b61088b61127e565b61089582826115a2565b5050565b6060816000816001600160401b038111156108b6576108b6611fea565b60405190808252806020026020018201604052801561090857816020015b6040805160808101825260008082526020808301829052928201819052606082015282526000199092019101816108d45790505b50905060005b82811461095b5761093686868381811061092a5761092a612156565b90506020020135611036565b82828151811061094857610948612156565b602090810291909101015260010161090e565b50949350505050565b6000610616826116bb565b60006001600160a01b038216610998576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6109c561127e565b61085c600061172a565b600a5483908390839060ff16156109f95760405163ab35696f60e01b815260040160405180910390fd5b6115b383610a0a6000546000190190565b610a149190612182565b1115610a335760405163d05cb60960e01b815260040160405180910390fd5b600a54610100900460ff16610a5b5760405163cfe212a760e01b815260040160405180910390fd5b600283610a81335b6001600160a01b031660009081526005602052604090205460c01c90565b6001600160401b0316610a949190612182565b1115610ab35760405163bc88519760e01b815260040160405180910390fd5b821580610ac05750600283115b15610ade5760405163162908e360e11b815260040160405180910390fd5b610af0836701118f178fb48000612195565b341015610b0f5760405162bfc92160e01b815260040160405180910390fd5b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050610b7483837fce52fe846ffed4f0f16507f048f4db1f7a0ed60d90d852cf14bb07be828eaab88461177c565b610b915760405163bc88519760e01b815260040160405180910390fd5b610bdb3388610b9f33610a63565b610ba991906121ac565b6001600160a01b03909116600090815260056020526040902080546001600160c01b031660c09290921b919091179055565b610be53388611796565b50505050505050565b60606000806000610bfe8561096f565b90506000816001600160401b03811115610c1a57610c1a611fea565b604051908082528060200260200182016040528015610c43578160200160208202803683370190505b509050610c7060408051608081018252600080825260208201819052918101829052606081019190915290565b60015b838614610cea57610c838161189f565b91508160400151610ce25781516001600160a01b031615610ca357815194505b876001600160a01b0316856001600160a01b031603610ce25780838780600101985081518110610cd557610cd5612156565b6020026020010181815250505b600101610c73565b50909695505050505050565b60606003805461062b9061211c565b6060818310610d2757604051631960ccad60e11b815260040160405180910390fd5b600080610d3360005490565b90506001851015610d4357600194505b80841115610d4f578093505b6000610d5a8761096f565b905084861015610d795785850381811015610d73578091505b50610d7d565b5060005b6000816001600160401b03811115610d9757610d97611fea565b604051908082528060200260200182016040528015610dc0578160200160208202803683370190505b50905081600003610dd6579350610e8592505050565b6000610de188611036565b905060008160400151610df2575080515b885b888114158015610e045750848714155b15610e7957610e128161189f565b92508260400151610e715782516001600160a01b031615610e3257825191505b8a6001600160a01b0316826001600160a01b031603610e715780848880600101995081518110610e6457610e64612156565b6020026020010181815250505b600101610df4565b50505092835250909150505b9392505050565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610f0061127e565b600a80549115156101000261ff0019909216919091179055565b836001600160a01b0381163314610f3457610f34336112d8565b610f40858585856118db565b5050505050565b600a54819060ff1615610f6d5760405163ab35696f60e01b815260040160405180910390fd5b6115b381610f7e6000546000190190565b610f889190612182565b1115610fa75760405163d05cb60960e01b815260040160405180910390fd5b600a5462010000900460ff16610fd057604051633167946760e21b815260040160405180910390fd5b801580610fdd5750600a81115b15610ffb5760405163162908e360e11b815260040160405180910390fd5b61100d816701118f178fb48000612195565b34101561102c5760405162bfc92160e01b815260040160405180910390fd5b6108953383611796565b604080516080810182526000808252602082018190529181018290526060810191909152604080516080810182526000808252602082018190529181018290526060810191909152600183108061108f57506000548310155b1561109a5792915050565b6110a38361189f565b90508060400151156110b55792915050565b610e858361191f565b60606110c982611249565b6111325760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084015b60405180910390fd5b600061113c611954565b9050600081511161115c5760405180602001604052806000815250610e85565b8061116684611974565b60405180604001604052806005815260200164173539b7b760d91b815250604051602001611196939291906121d3565b6040516020818303038152906040529392505050565b6111b461127e565b600a8054911515620100000262ff000019909216919091179055565b6111d861127e565b6001600160a01b03811661123d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401611129565b6112468161172a565b50565b60008160011115801561125d575060005482105b8015610616575050600090815260046020526040902054600160e01b161590565b6008546001600160a01b0316331461085c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401611129565b6daaeb6d7670e522a718067333cd4e3b1561124657604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611345573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113699190612216565b61124657604051633b79c77360e21b81526001600160a01b0382166004820152602401611129565b600061139c826116bb565b9050836001600160a01b0316816001600160a01b0316146113cf5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b0388169091141761141c576113ff863361057c565b61141c57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661144357604051633a954ecd60e21b815260040160405180910390fd5b801561144e57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b841690036114e0576001840160008181526004602052604081205490036114de5760005481146114de5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b60026009540361157b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401611129565b6002600955565b61159d83838360405180602001604052806000815250610f1a565b505050565b6000546001600160a01b0383166115cb57604051622e076360e81b815260040160405180910390fd5b816000036115ec5760405163b562e8dd60e01b815260040160405180910390fd5b61138882111561160f57604051633db1f9af60e01b815260040160405180910390fd5b6001600160a01b0383166000908152600560205260408120805468010000000000000001850201905561165c9084905b6001851460e11b174260a01b176001600160a01b03919091161790565b60008281526004602090815260408083209390935591518484016000190181526001600160a01b0386169284917fdeaa91b6123d068f5821d0fb0678463d1a8a6079fe8af5de3ce5e896dcf9133d910160405180910390a40160005550565b60008180600111611711576000548110156117115760008181526004602052604081205490600160e01b8216900361170f575b80600003610e855750600019016000818152600460205260409020546116ee565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008261178a868685611a06565b1490505b949350505050565b60008054908290036117bb5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600090815260056020526040812080546801000000000000000185020190556117ef90849061163f565b6000828152600460205260408120919091556001600160a01b0384169083830190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461187557808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460010161183d565b508160000361189657604051622e076360e81b815260040160405180910390fd5b60005550505050565b60408051608081018252600080825260208201819052918101829052606081019190915260008281526004602052604090205461061690611a49565b6118e68484846107ad565b6001600160a01b0383163b156107d25761190284848484611a90565b6107d2576040516368d2bf6b60e11b815260040160405180910390fd5b60408051608081018252600080825260208201819052918101829052606081019190915261061661194f836116bb565b611a49565b60606040518060800160405280604a81526020016122a7604a9139905090565b6060600061198183611b78565b60010190506000816001600160401b038111156119a0576119a0611fea565b6040519080825280601f01601f1916602001820160405280156119ca576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846119d457509392505050565b600081815b8481101561095b57611a3582878784818110611a2957611a29612156565b90506020020135611c50565b915080611a4181612233565b915050611a0b565b604080516080810182526001600160a01b038316815260a083901c6001600160401b03166020820152600160e01b831615159181019190915260e89190911c606082015290565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611ac590339089908890889060040161224c565b6020604051808303816000875af1925050508015611b00575060408051601f3d908101601f19168201909252611afd91810190612289565b60015b611b5e573d808015611b2e576040519150601f19603f3d011682016040523d82523d6000602084013e611b33565b606091505b508051600003611b56576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061178e565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310611bb75772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611be3576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611c0157662386f26fc10000830492506010015b6305f5e1008310611c19576305f5e100830492506008015b6127108310611c2d57612710830492506004015b60648310611c3f576064830492506002015b600a83106106165760010192915050565b6000818310611c6c576000828152602084905260409020610e85565b5060009182526020526040902090565b6001600160e01b03198116811461124657600080fd5b600060208284031215611ca457600080fd5b8135610e8581611c7c565b60005b83811015611cca578181015183820152602001611cb2565b50506000910152565b60008151808452611ceb816020860160208601611caf565b601f01601f19169290920160200192915050565b602081526000610e856020830184611cd3565b600060208284031215611d2457600080fd5b5035919050565b80356001600160a01b0381168114611d4257600080fd5b919050565b60008060408385031215611d5a57600080fd5b611d6383611d2b565b946020939093013593505050565b801515811461124657600080fd5b600060208284031215611d9157600080fd5b8135610e8581611d71565b600080600060608486031215611db157600080fd5b611dba84611d2b565b9250611dc860208501611d2b565b9150604084013590509250925092565b60008083601f840112611dea57600080fd5b5081356001600160401b03811115611e0157600080fd5b6020830191508360208260051b8501011115611e1c57600080fd5b9250929050565b60008060208385031215611e3657600080fd5b82356001600160401b03811115611e4c57600080fd5b611e5885828601611dd8565b90969095509350505050565b80516001600160a01b031682526020808201516001600160401b03169083015260408082015115159083015260609081015162ffffff16910152565b6020808252825182820181905260009190848201906040850190845b81811015610cea57611ecf838551611e64565b9284019260809290920191600101611ebc565b600060208284031215611ef457600080fd5b610e8582611d2b565b600080600060408486031215611f1257600080fd5b8335925060208401356001600160401b03811115611f2f57600080fd5b611f3b86828701611dd8565b9497909650939450505050565b6020808252825182820181905260009190848201906040850190845b81811015610cea57835183529284019291840191600101611f64565b600080600060608486031215611f9557600080fd5b611f9e84611d2b565b95602085013595506040909401359392505050565b60008060408385031215611fc657600080fd5b611fcf83611d2b565b91506020830135611fdf81611d71565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561201657600080fd5b61201f85611d2b565b935061202d60208601611d2b565b92506040850135915060608501356001600160401b038082111561205057600080fd5b818701915087601f83011261206457600080fd5b81358181111561207657612076611fea565b604051601f8201601f19908116603f0116810190838211818310171561209e5761209e611fea565b816040528281528a60208487010111156120b757600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b608081016106168284611e64565b600080604083850312156120fc57600080fd5b61210583611d2b565b915061211360208401611d2b565b90509250929050565b600181811c9082168061213057607f821691505b60208210810361215057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b808201808211156106165761061661216c565b80820281158282048414176106165761061661216c565b6001600160401b038181168382160190808211156121cc576121cc61216c565b5092915050565b600084516121e5818460208901611caf565b8451908301906121f9818360208901611caf565b845191019061220c818360208801611caf565b0195945050505050565b60006020828403121561222857600080fd5b8151610e8581611d71565b6000600182016122455761224561216c565b5060010190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061227f90830184611cd3565b9695505050505050565b60006020828403121561229b57600080fd5b8151610e8581611c7c56fe68747470733a2f2f6d6574617a6575732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f6d6574617a6575735f6e66745f706173732f6d657461646174612fa2646970667358221220f02173dea51ae345e7b3ac8e020da458d2127f89756d77f8137e26bf9d6a897a64736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ce52fe846ffed4f0f16507f048f4db1f7a0ed60d90d852cf14bb07be828eaab8
-----Decoded View---------------
Arg [0] : _state (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
Arg [1] : _merkleRootAllowList (bytes32): 0xce52fe846ffed4f0f16507f048f4db1f7a0ed60d90d852cf14bb07be828eaab8
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [3] : ce52fe846ffed4f0f16507f048f4db1f7a0ed60d90d852cf14bb07be828eaab8
Deployed Bytecode Sourcemap
432:5152:6:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9155:630:7;;;;;;;;;;-1:-1:-1;9155:630:7;;;;;:::i;:::-;;:::i;:::-;;;565:14:14;;558:22;540:41;;528:2;513:18;9155:630:7;;;;;;;;10039:98;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;16360:214::-;;;;;;;;;;-1:-1:-1;16360:214:7;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:14;;;1679:51;;1667:2;1652:18;16360:214:7;1533:203:14;15812:398:7;;;;;;:::i;:::-;;:::i;:::-;;4416:87:6;;;;;;;;;;-1:-1:-1;4416:87:6;;;;;:::i;:::-;;:::i;5894:317:7:-;;;;;;;;;;-1:-1:-1;3828:1:6;6164:12:7;5955:7;6148:13;:28;-1:-1:-1;;6148:46:7;5894:317;;;2693:25:14;;;2681:2;2666:18;5894:317:7;2547:177:14;4804:188:6;;;;;;:::i;:::-;;:::i;5424:158::-;;;;;;;;;;;;;:::i;737:142:13:-;;;;;;;;;;;;836:42;737:142;;4997:196:6;;;;;;:::i;:::-;;:::i;3552:116::-;;;;;;:::i;:::-;;:::i;1641:513:9:-;;;;;;;;;;-1:-1:-1;1641:513:9;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;11391:150:7:-;;;;;;;;;;-1:-1:-1;11391:150:7;;;;;:::i;:::-;;:::i;7045:230::-;;;;;;;;;;-1:-1:-1;7045:230:7;;;;;:::i;:::-;;:::i;1831:101:0:-;;;;;;;;;;;;;:::i;3105:264:6:-;;;;;;:::i;:::-;;:::i;5417:879:9:-;;;;;;;;;;-1:-1:-1;5417:879:9;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;1201:85:0:-;;;;;;;;;;-1:-1:-1;1273:6:0;;-1:-1:-1;;;;;1273:6:0;1201:85;;10208:102:7;;;;;;;;;;;;;:::i;2528:2454:9:-;;;;;;;;;;-1:-1:-1;2528:2454:9;;;;;:::i;:::-;;:::i;16901:231:7:-;;;;;;;;;;-1:-1:-1;16901:231:7;;;;;:::i;:::-;;:::i;4508:115:6:-;;;;;;;;;;-1:-1:-1;4508:115:6;;;;;:::i;:::-;;:::i;5198:221::-;;;;;;:::i;:::-;;:::i;1449:19::-;;;;;;;;;;-1:-1:-1;1449:19:6;;;;;;;;;;;;;;;;;;;;;;;;;;8668:14:14;;8661:22;8643:41;;8727:14;;8720:22;8715:2;8700:18;;8693:50;8786:14;8779:22;8759:18;;;8752:50;8631:2;8616:18;1449:19:6;8459:349:14;3393:136:6;;;;;;:::i;:::-;;:::i;1070:418:9:-;;;;;;;;;;-1:-1:-1;1070:418:9;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;3841:398:6:-;;;;;;;;;;-1:-1:-1;3841:398:6;;;;;:::i;:::-;;:::i;4628:108::-;;;;;;;;;;-1:-1:-1;4628:108:6;;;;;:::i;:::-;;:::i;17282:162:7:-;;;;;;;;;;-1:-1:-1;17282:162:7;;;;;:::i;:::-;-1:-1:-1;;;;;17402:25:7;;;17379:4;17402:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;17282:162;2081:198:0;;;;;;;;;;-1:-1:-1;2081:198:0;;;;;:::i;:::-;;:::i;9155:630:7:-;9240:4;-1:-1:-1;;;;;;;;;9558:25:7;;;;:101;;-1:-1:-1;;;;;;;;;;9634:25:7;;;9558:101;:177;;;-1:-1:-1;;;;;;;;;;9710:25:7;;;9558:177;9539:196;9155:630;-1:-1:-1;;9155:630:7:o;10039:98::-;10093:13;10125:5;10118:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10039:98;:::o;16360:214::-;16436:7;16460:16;16468:7;16460;:16::i;:::-;16455:64;;16485:34;;-1:-1:-1;;;16485:34:7;;;;;;;;;;;16455:64;-1:-1:-1;16537:24:7;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;16537:30:7;;16360:214::o;15812:398::-;15900:13;15916:16;15924:7;15916;:16::i;:::-;15900:32;-1:-1:-1;39523:10:7;-1:-1:-1;;;;;15947:28:7;;;15943:172;;15994:44;16011:5;39523:10;17282:162;:::i;15994:44::-;15989:126;;16065:35;;-1:-1:-1;;;16065:35:7;;;;;;;;;;;15989:126;16125:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;16125:35:7;-1:-1:-1;;;;;16125:35:7;;;;;;;;;16175:28;;16125:24;;16175:28;;;;;;;15890:320;15812:398;;:::o;4416:87:6:-;1094:13:0;:11;:13::i;:::-;4475:5:6::1;:21:::0;;-1:-1:-1;;4475:21:6::1;::::0;::::1;;::::0;;;::::1;::::0;;4416:87::o;4804:188::-;4932:4;-1:-1:-1;;;;;2054:18:13;;2062:10;2054:18;2050:81;;2088:32;2109:10;2088:20;:32::i;:::-;4948:37:6::1;4967:4;4973:2;4977:7;4948:18;:37::i;:::-;4804:188:::0;;;;:::o;5424:158::-;1094:13:0;:11;:13::i;:::-;2261:21:1::1;:19;:21::i;:::-;5498:56:6::2;::::0;5485:7:::2;::::0;882:42:::2;::::0;5528:21:::2;::::0;5485:7;5498:56;5485:7;5498:56;5528:21;882:42;5498:56:::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5484:70;;;5572:2;5564:11;;;::::0;::::2;;5474:108;2303:20:1::1;1716:1:::0;2809:7;:22;2629:209;2303:20:::1;5424:158:6:o:0;4997:196::-;5129:4;-1:-1:-1;;;;;2054:18:13;;2062:10;2054:18;2050:81;;2088:32;2109:10;2088:20;:32::i;:::-;5145:41:6::1;5168:4;5174:2;5178:7;5145:22;:41::i;3552:116::-:0;1094:13:0;:11;:13::i;:::-;3636:25:6::1;3649:2;3652:8;3636:12;:25::i;:::-;3552:116:::0;;:::o;1641:513:9:-;1780:23;1868:8;1843:22;1868:8;-1:-1:-1;;;;;1934:36:9;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1934:36:9;;-1:-1:-1;;1934:36:9;;;;;;;;;;;;1897:73;;1989:9;1984:123;2005:14;2000:1;:19;1984:123;;2060:32;2080:8;;2089:1;2080:11;;;;;;;:::i;:::-;;;;;;;2060:19;:32::i;:::-;2044:10;2055:1;2044:13;;;;;;;;:::i;:::-;;;;;;;;;;:48;2021:3;;1984:123;;;-1:-1:-1;2127:10:9;1641:513;-1:-1:-1;;;;1641:513:9:o;11391:150:7:-;11463:7;11505:27;11524:7;11505:18;:27::i;7045:230::-;7117:7;-1:-1:-1;;;;;7140:19:7;;7136:60;;7168:28;;-1:-1:-1;;;7168:28:7;;;;;;;;;;;7136:60;-1:-1:-1;;;;;;7213:25:7;;;;;:18;:25;;;;;;-1:-1:-1;;;;;7213:55:7;;7045:230::o;1831:101:0:-;1094:13;:11;:13::i;:::-;1895:30:::1;1922:1;1895:18;:30::i;3105:264:6:-:0;2009:5;:12;3217:11;;3229:12;;;;2009;;2006:40;;;2030:16;;-1:-1:-1;;;2030:16:6;;;;;;;;;;;2006:40;1027:4;2074:11;2059:14;6359:7:7;6546:13;-1:-1:-1;;6546:31:7;;6304:290;2059:14:6;:26;;;;:::i;:::-;:40;2056:70;;;2108:18;;-1:-1:-1;;;2108:18:6;;;;;;;;;;;2056:70;2140:5;:26;;;;;;2136:58;;2175:19;;-1:-1:-1;;;2175:19:6;;;;;;;;;;;2136:58;2244:1;2231:11;2209:21;39523:10:7;2217:12:6;-1:-1:-1;;;;;7997:25:7;7965:6;7997:25;;;:18;:25;;;;;;1725:3;7997:40;;7910:135;2209:21:6;-1:-1:-1;;;;;2209:33:6;;;;;:::i;:::-;2208:37;2204:68;;;2254:18;;-1:-1:-1;;;2254:18:6;;;;;;;;;;;2204:68;2285:16;;;:35;;;2319:1;2305:11;:15;2285:35;2282:62;;;2329:15;;-1:-1:-1;;;2329:15:6;;;;;;;;;;;2282:62;2367:23;2379:11;966:17;2367:23;:::i;:::-;2357:9;:33;2354:59;;;2399:14;;-1:-1:-1;;;2399:14:6;;;;;;;;;;;2354:59;2448:30;;-1:-1:-1;;39523:10:7;10662:2:14;10658:15;10654:53;2448:30:6;;;10642:66:14;2423:12:6;;10724::14;;2448:30:6;;;;;;;;;;;;2438:41;;;;;;2423:56;;2493:67;2520:12;;2534:19;2555:4;2493:26;:67::i;:::-;2489:98;;2569:18;;-1:-1:-1;;;2569:18:6;;;;;;;;;;;2489:98;3255:65:::1;39523:10:7::0;3306:11:6;3277:21:::1;39523:10:7::0;3285:12:6::1;39437:103:7::0;3277:21:6::1;:41;;;;:::i;:::-;-1:-1:-1::0;;;;;8315:25:7;;;8298:14;8315:25;;;:18;:25;;;;;;;-1:-1:-1;;;;;8509:32:7;1725:3;8546:24;;;;8508:63;;;;8581:34;;8227:395;3255:65:6::1;3330:32;39523:10:7::0;3350:11:6::1;3330:5;:32::i;:::-;1996:609:::0;3105:264;;;;;;:::o;5417:879:9:-;5495:16;5547:19;5580:25;5619:22;5644:16;5654:5;5644:9;:16::i;:::-;5619:41;;5674:25;5716:14;-1:-1:-1;;;;;5702:29:9;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5702:29:9;;5674:57;;5745:31;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5745:31:9;3828:1:6;5790:461:9;5839:14;5824:11;:29;5790:461;;5890:15;5903:1;5890:12;:15::i;:::-;5878:27;;5927:9;:16;;;5967:8;5923:71;6015:14;;-1:-1:-1;;;;;6015:28:9;;6011:109;;6087:14;;;-1:-1:-1;6011:109:9;6162:5;-1:-1:-1;;;;;6141:26:9;:17;-1:-1:-1;;;;;6141:26:9;;6137:100;;6217:1;6191:8;6200:13;;;;;;6191:23;;;;;;;;:::i;:::-;;;;;;:27;;;;;6137:100;5855:3;;5790:461;;;-1:-1:-1;6271:8:9;;5417:879;-1:-1:-1;;;;;;5417:879:9:o;10208:102:7:-;10264:13;10296:7;10289:14;;;;;:::i;2528:2454:9:-;2667:16;2732:4;2723:5;:13;2719:45;;2745:19;;-1:-1:-1;;;2745:19:9;;;;;;;;;;;2719:45;2778:19;2811:17;2831:14;5645:7:7;5671:13;;5590:101;2831:14:9;2811:34;-1:-1:-1;3828:1:6;2921:5:9;:23;2917:85;;;3828:1:6;2964:23:9;;2917:85;3076:9;3069:4;:16;3065:71;;;3112:9;3105:16;;3065:71;3149:25;3177:16;3187:5;3177:9;:16::i;:::-;3149:44;;3368:4;3360:5;:12;3356:271;;;3414:12;;;3448:31;;;3444:109;;;3523:11;3503:31;;3444:109;3374:193;3356:271;;;-1:-1:-1;3611:1:9;3356:271;3640:25;3682:17;-1:-1:-1;;;;;3668:32:9;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3668:32:9;;3640:60;;3718:17;3739:1;3718:22;3714:76;;3767:8;-1:-1:-1;3760:15:9;;-1:-1:-1;;;3760:15:9;3714:76;3931:31;3965:26;3985:5;3965:19;:26::i;:::-;3931:60;;4005:25;4247:9;:16;;;4242:90;;-1:-1:-1;4303:14:9;;4242:90;4362:5;4345:467;4374:4;4369:1;:9;;:45;;;;;4397:17;4382:11;:32;;4369:45;4345:467;;;4451:15;4464:1;4451:12;:15::i;:::-;4439:27;;4488:9;:16;;;4528:8;4484:71;4576:14;;-1:-1:-1;;;;;4576:28:9;;4572:109;;4648:14;;;-1:-1:-1;4572:109:9;4723:5;-1:-1:-1;;;;;4702:26:9;:17;-1:-1:-1;;;;;4702:26:9;;4698:100;;4778:1;4752:8;4761:13;;;;;;4752:23;;;;;;;;:::i;:::-;;;;;;:27;;;;;4698:100;4416:3;;4345:467;;;-1:-1:-1;;;4894:29:9;;;-1:-1:-1;4901:8:9;;-1:-1:-1;;2528:2454:9;;;;;;:::o;16901:231:7:-;39523:10;16995:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;16995:49:7;;;;;;;;;;;;:60;;-1:-1:-1;;16995:60:7;;;;;;;;;;17070:55;;540:41:14;;;16995:49:7;;39523:10;17070:55;;513:18:14;17070:55:7;;;;;;;16901:231;;:::o;4508:115:6:-;1094:13:0;:11;:13::i;:::-;4581:5:6::1;:35:::0;;;::::1;;;;-1:-1:-1::0;;4581:35:6;;::::1;::::0;;;::::1;::::0;;4508:115::o;5198:221::-;5349:4;-1:-1:-1;;;;;2054:18:13;;2062:10;2054:18;2050:81;;2088:32;2109:10;2088:20;:32::i;:::-;5365:47:6::1;5388:4;5394:2;5398:7;5407:4;5365:22;:47::i;:::-;5198:221:::0;;;;;:::o;3393:136::-;2674:5;:12;3467:11;;2674:12;;2671:40;;;2695:16;;-1:-1:-1;;;2695:16:6;;;;;;;;;;;2671:40;1027:4;2739:11;2724:14;6359:7:7;6546:13;-1:-1:-1;;6546:31:7;;6304:290;2724:14:6;:26;;;;:::i;:::-;:40;2721:70;;;2773:18;;-1:-1:-1;;;2773:18:6;;;;;;;;;;;2721:70;2805:5;:23;;;;;;2801:56;;2837:20;;-1:-1:-1;;;2837:20:6;;;;;;;;;;;2801:56;2871:16;;;:36;;;2905:2;2891:11;:16;2871:36;2868:63;;;2916:15;;-1:-1:-1;;;2916:15:6;;;;;;;;;;;2868:63;2954:23;2966:11;966:17;2954:23;:::i;:::-;2944:9;:33;2941:59;;;2986:14;;-1:-1:-1;;;2986:14:6;;;;;;;;;;;2941:59;3490:32:::1;39523:10:7::0;3510:11:6::1;3490:5;:32::i;1070:418:9:-:0;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3828:1:6;1232:7:9;:25;:54;;;-1:-1:-1;5645:7:7;5671:13;1261:7:9;:25;;1232:54;1228:101;;;1309:9;1070:418;-1:-1:-1;;1070:418:9:o;1228:101::-;1350:21;1363:7;1350:12;:21::i;:::-;1338:33;;1385:9;:16;;;1381:63;;;1424:9;1070:418;-1:-1:-1;;1070:418:9:o;1381:63::-;1460:21;1473:7;1460:12;:21::i;3841:398:6:-;3934:13;3967:17;3975:8;3967:7;:17::i;:::-;3959:77;;;;-1:-1:-1;;;3959:77:6;;11134:2:14;3959:77:6;;;11116:21:14;11173:2;11153:18;;;11146:30;11212:34;11192:18;;;11185:62;-1:-1:-1;;;11263:18:14;;;11256:45;11318:19;;3959:77:6;;;;;;;;;4046:28;4077:10;:8;:10::i;:::-;4046:41;;4135:1;4110:14;4104:28;:32;:128;;;;;;;;;;;;;;;;;4171:14;4187:19;:8;:17;:19::i;:::-;4208:9;;;;;;;;;;;;;-1:-1:-1;;;4208:9:6;;;4154:64;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;4097:135;3841:398;-1:-1:-1;;;3841:398:6:o;4628:108::-;1094:13:0;:11;:13::i;:::-;4697:5:6::1;:32:::0;;;::::1;;::::0;::::1;-1:-1:-1::0;;4697:32:6;;::::1;::::0;;;::::1;::::0;;4628:108::o;2081:198:0:-;1094:13;:11;:13::i;:::-;-1:-1:-1;;;;;2169:22:0;::::1;2161:73;;;::::0;-1:-1:-1;;;2161:73:0;;12258:2:14;2161:73:0::1;::::0;::::1;12240:21:14::0;12297:2;12277:18;;;12270:30;12336:34;12316:18;;;12309:62;-1:-1:-1;;;12387:18:14;;;12380:36;12433:19;;2161:73:0::1;12056:402:14::0;2161:73:0::1;2244:28;2263:8;2244:18;:28::i;:::-;2081:198:::0;:::o;17693:277:7:-;17758:4;17812:7;3828:1:6;17793:26:7;;:65;;;;;17845:13;;17835:7;:23;17793:65;:151;;;;-1:-1:-1;;17895:26:7;;;;:17;:26;;;;;;-1:-1:-1;;;17895:44:7;:49;;17693:277::o;1359:130:0:-;1273:6;;-1:-1:-1;;;;;1273:6:0;39523:10:7;1422:23:0;1414:68;;;;-1:-1:-1;;;1414:68:0;;12665:2:14;1414:68:0;;;12647:21:14;;;12684:18;;;12677:30;12743:34;12723:18;;;12716:62;12795:18;;1414:68:0;12463:356:14;2281:412:13;836:42;2470:45;:49;2466:221;;2540:67;;-1:-1:-1;;;2540:67:13;;2591:4;2540:67;;;13036:34:14;-1:-1:-1;;;;;13106:15:14;;13086:18;;;13079:43;836:42:13;;2540;;12971:18:14;;2540:67:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2535:142;;2634:28;;-1:-1:-1;;;2634:28:13;;-1:-1:-1;;;;;1697:32:14;;2634:28:13;;;1679:51:14;1652:18;;2634:28:13;1533:203:14;19903:2764:7;20040:27;20070;20089:7;20070:18;:27::i;:::-;20040:57;;20153:4;-1:-1:-1;;;;;20112:45:7;20128:19;-1:-1:-1;;;;;20112:45:7;;20108:86;;20166:28;;-1:-1:-1;;;20166:28:7;;;;;;;;;;;20108:86;20206:27;19036:24;;;:15;:24;;;;;19260:26;;39523:10;18673:30;;;-1:-1:-1;;;;;18370:28:7;;18651:20;;;18648:56;20389:179;;20481:43;20498:4;39523:10;17282:162;:::i;20481:43::-;20476:92;;20533:35;;-1:-1:-1;;;20533:35:7;;;;;;;;;;;20476:92;-1:-1:-1;;;;;20583:16:7;;20579:52;;20608:23;;-1:-1:-1;;;20608:23:7;;;;;;;;;;;20579:52;20774:15;20771:157;;;20912:1;20891:19;20884:30;20771:157;-1:-1:-1;;;;;21300:24:7;;;;;;;:18;:24;;;;;;21298:26;;-1:-1:-1;;21298:26:7;;;21368:22;;;;;;;;;21366:24;;-1:-1:-1;21366:24:7;;;14703:11;14678:23;14674:41;14661:63;-1:-1:-1;;;14661:63:7;21654:26;;;;:17;:26;;;;;:172;;;;-1:-1:-1;;;21943:47:7;;:52;;21939:617;;22047:1;22037:11;;22015:19;22168:30;;;:17;:30;;;;;;:35;;22164:378;;22304:13;;22289:11;:28;22285:239;;22449:30;;;;:17;:30;;;;;:52;;;22285:239;21997:559;21939:617;22600:7;22596:2;-1:-1:-1;;;;;22581:27:7;22590:4;-1:-1:-1;;;;;22581:27:7;;;;;;;;;;;20030:2637;;;19903:2764;;;:::o;2336:287:1:-;1759:1;2468:7;;:19;2460:63;;;;-1:-1:-1;;;2460:63:1;;13585:2:14;2460:63:1;;;13567:21:14;13624:2;13604:18;;;13597:30;13663:33;13643:18;;;13636:61;13714:18;;2460:63:1;13383:355:14;2460:63:1;1759:1;2598:7;:18;2336:287::o;22758:187:7:-;22899:39;22916:4;22922:2;22926:7;22899:39;;;;;;;;;;;;:16;:39::i;:::-;22758:187;;;:::o;30833:1443::-;30912:20;30935:13;-1:-1:-1;;;;;30962:16:7;;30958:48;;30987:19;;-1:-1:-1;;;30987:19:7;;;;;;;;;;;30958:48;31020:8;31032:1;31020:13;31016:44;;31042:18;;-1:-1:-1;;;31042:18:7;;;;;;;;;;;31016:44;3142:4;31074:8;:43;31070:89;;;31126:33;;-1:-1:-1;;;31126:33:7;;;;;;;;;;;31070:89;-1:-1:-1;;;;;31560:22:7;;;;;;:18;:22;;1495:2;31560:22;;:71;;31598:32;31586:45;;31560:71;;;31901:136;;31560:22;;31990:33;15136:1;15123:15;;15097:24;15093:46;31957:66;14703:11;14678:23;14674:41;14671:52;-1:-1:-1;;;;;14531:28:7;;;;14661:63;;14297:443;31901:136;31867:31;;;;:17;:31;;;;;;;;:170;;;;32057:78;;32091:23;;;-1:-1:-1;;32091:27:7;2693:25:14;;-1:-1:-1;;;;;32057:78:7;;;31867:31;;32057:78;;2666:18:14;32057:78:7;;;;;;;32166:23;32150:13;:39;-1:-1:-1;22758:187:7:o;12515:1249::-;12582:7;12616;;3828:1:6;12662:23:7;12658:1042;;12714:13;;12707:4;:20;12703:997;;;12751:14;12768:23;;;:17;:23;;;;;;;-1:-1:-1;;;12855:24:7;;:29;;12851:831;;13510:111;13517:6;13527:1;13517:11;13510:111;;-1:-1:-1;;;13587:6:7;13569:25;;;;:17;:25;;;;;;13510:111;;12851:831;12729:971;12703:997;13726:31;;-1:-1:-1;;;13726:31:7;;;;;;;;;;;2433:187:0;2525:6;;;-1:-1:-1;;;;;2541:17:0;;;-1:-1:-1;;;;;;2541:17:0;;;;;;;2573:40;;2525:6;;;2541:17;2525:6;;2573:40;;2506:16;;2573:40;2496:124;2433:187;:::o;1441:202:4:-;1572:4;1632;1595:33;1616:5;;1623:4;1595:20;:33::i;:::-;:41;1588:48;;1441:202;;;;;;;:::o;27091:2902:7:-;27163:20;27186:13;;;27213;;;27209:44;;27235:18;;-1:-1:-1;;;27235:18:7;;;;;;;;;;;27209:44;-1:-1:-1;;;;;27728:22:7;;;;;;:18;:22;;1495:2;27728:22;;:71;;27766:32;27754:45;;27728:71;;;28069:136;;27728:22;;28158:33;38764:304;28069:136;28035:31;;;;:17;:31;;;;;:170;;;;-1:-1:-1;;;;;28784:25:7;;;28264:23;;;;28053:12;;28784:25;;29016;28035:31;;28872:328;29520:1;29506:12;29502:20;29461:339;29560:3;29551:7;29548:16;29461:339;;29774:7;29764:8;29761:1;29734:25;29731:1;29728;29723:59;29612:1;29599:15;29461:339;;;29465:75;29831:8;29843:1;29831:13;29827:45;;29853:19;;-1:-1:-1;;;29853:19:7;;;;;;;;;;;29827:45;29887:13;:19;-1:-1:-1;22758:187:7;;;:::o;11979:159::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12106:24:7;;;;:17;:24;;;;;;12087:44;;:18;:44::i;23526:396::-;23695:31;23708:4;23714:2;23718:7;23695:12;:31::i;:::-;-1:-1:-1;;;;;23740:14:7;;;:19;23736:180;;23778:56;23809:4;23815:2;23819:7;23828:5;23778:30;:56::i;:::-;23773:143;;23861:40;;-1:-1:-1;;;23861:40:7;;;;;;;;;;;11724:164;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11834:47:7;11853:27;11872:7;11853:18;:27::i;:::-;11834:18;:47::i;4244:117:6:-;4313:13;4345:9;;;;;;;;;;;;;;;;;4338:16;;4244:117;:::o;415:696:3:-;471:13;520:14;537:17;548:5;537:10;:17::i;:::-;557:1;537:21;520:38;;572:20;606:6;-1:-1:-1;;;;;595:18:3;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;595:18:3;-1:-1:-1;572:41:3;-1:-1:-1;733:28:3;;;749:2;733:28;788:280;-1:-1:-1;;819:5:3;-1:-1:-1;;;953:2:3;942:14;;937:30;819:5;924:44;1012:2;1003:11;;;-1:-1:-1;1032:21:3;788:280;1032:21;-1:-1:-1;1088:6:3;415:696;-1:-1:-1;;;415:696:3:o;2391:300:4:-;2484:7;2526:4;2484:7;2540:116;2560:16;;;2540:116;;;2612:33;2622:12;2636:5;;2642:1;2636:8;;;;;;;:::i;:::-;;;;;;;2612:9;:33::i;:::-;2597:48;-1:-1:-1;2578:3:4;;;;:::i;:::-;;;;2540:116;;13858:361:7;-1:-1:-1;;;;;;;;;;;;;13967:41:7;;;;2004:3;14052:33;;;-1:-1:-1;;;;;14018:68:7;-1:-1:-1;;;14018:68:7;-1:-1:-1;;;14115:24:7;;:29;;-1:-1:-1;;;14096:48:7;;;;2513:3;14183:28;;;;-1:-1:-1;;;14154:58:7;-1:-1:-1;13858:361:7:o;25948:697::-;26126:88;;-1:-1:-1;;;26126:88:7;;26106:4;;-1:-1:-1;;;;;26126:45:7;;;;;:88;;39523:10;;26193:4;;26199:7;;26208:5;;26126:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26126:88:7;;;;;;;;-1:-1:-1;;26126:88:7;;;;;;;;;;;;:::i;:::-;;;26122:517;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26404:6;:13;26421:1;26404:18;26400:229;;26449:40;;-1:-1:-1;;;26449:40:7;;;;;;;;;;;26400:229;26589:6;26583:13;26574:6;26570:2;26566:15;26559:38;26122:517;-1:-1:-1;;;;;;26282:64:7;-1:-1:-1;;;26282:64:7;;-1:-1:-1;26275:71:7;;9889:890:5;9942:7;;-1:-1:-1;;;10017:15:5;;10013:99;;-1:-1:-1;;;10052:15:5;;;-1:-1:-1;10095:2:5;10085:12;10013:99;10138:6;10129:5;:15;10125:99;;10173:6;10164:15;;;-1:-1:-1;10207:2:5;10197:12;10125:99;10250:6;10241:5;:15;10237:99;;10285:6;10276:15;;;-1:-1:-1;10319:2:5;10309:12;10237:99;10362:5;10353;:14;10349:96;;10396:5;10387:14;;;-1:-1:-1;10429:1:5;10419:11;10349:96;10471:5;10462;:14;10458:96;;10505:5;10496:14;;;-1:-1:-1;10538:1:5;10528:11;10458:96;10580:5;10571;:14;10567:96;;10614:5;10605:14;;;-1:-1:-1;10647:1:5;10637:11;10567:96;10689:5;10680;:14;10676:64;;10724:1;10714:11;10766:6;9889:890;-1:-1:-1;;9889:890:5:o;8879:147:4:-;8942:7;8972:1;8968;:5;:51;;9100:13;9191:15;;;9226:4;9219:15;;;9272:4;9256:21;;8968:51;;;-1:-1:-1;9100:13:4;9191:15;;;9226:4;9219:15;9272:4;9256:21;;;8879:147::o;14:131:14:-;-1:-1:-1;;;;;;88:32:14;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:250::-;677:1;687:113;701:6;698:1;695:13;687:113;;;777:11;;;771:18;758:11;;;751:39;723:2;716:10;687:113;;;-1:-1:-1;;834:1:14;816:16;;809:27;592:250::o;847:271::-;889:3;927:5;921:12;954:6;949:3;942:19;970:76;1039:6;1032:4;1027:3;1023:14;1016:4;1009:5;1005:16;970:76;:::i;:::-;1100:2;1079:15;-1:-1:-1;;1075:29:14;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:14:o;1123:220::-;1272:2;1261:9;1254:21;1235:4;1292:45;1333:2;1322:9;1318:18;1310:6;1292:45;:::i;1348:180::-;1407:6;1460:2;1448:9;1439:7;1435:23;1431:32;1428:52;;;1476:1;1473;1466:12;1428:52;-1:-1:-1;1499:23:14;;1348:180;-1:-1:-1;1348:180:14:o;1741:173::-;1809:20;;-1:-1:-1;;;;;1858:31:14;;1848:42;;1838:70;;1904:1;1901;1894:12;1838:70;1741:173;;;:::o;1919:254::-;1987:6;1995;2048:2;2036:9;2027:7;2023:23;2019:32;2016:52;;;2064:1;2061;2054:12;2016:52;2087:29;2106:9;2087:29;:::i;:::-;2077:39;2163:2;2148:18;;;;2135:32;;-1:-1:-1;;;1919:254:14:o;2178:118::-;2264:5;2257:13;2250:21;2243:5;2240:32;2230:60;;2286:1;2283;2276:12;2301:241;2357:6;2410:2;2398:9;2389:7;2385:23;2381:32;2378:52;;;2426:1;2423;2416:12;2378:52;2465:9;2452:23;2484:28;2506:5;2484:28;:::i;2729:328::-;2806:6;2814;2822;2875:2;2863:9;2854:7;2850:23;2846:32;2843:52;;;2891:1;2888;2881:12;2843:52;2914:29;2933:9;2914:29;:::i;:::-;2904:39;;2962:38;2996:2;2985:9;2981:18;2962:38;:::i;:::-;2952:48;;3047:2;3036:9;3032:18;3019:32;3009:42;;2729:328;;;;;:::o;3302:367::-;3365:8;3375:6;3429:3;3422:4;3414:6;3410:17;3406:27;3396:55;;3447:1;3444;3437:12;3396:55;-1:-1:-1;3470:20:14;;-1:-1:-1;;;;;3502:30:14;;3499:50;;;3545:1;3542;3535:12;3499:50;3582:4;3574:6;3570:17;3558:29;;3642:3;3635:4;3625:6;3622:1;3618:14;3610:6;3606:27;3602:38;3599:47;3596:67;;;3659:1;3656;3649:12;3596:67;3302:367;;;;;:::o;3674:437::-;3760:6;3768;3821:2;3809:9;3800:7;3796:23;3792:32;3789:52;;;3837:1;3834;3827:12;3789:52;3877:9;3864:23;-1:-1:-1;;;;;3902:6:14;3899:30;3896:50;;;3942:1;3939;3932:12;3896:50;3981:70;4043:7;4034:6;4023:9;4019:22;3981:70;:::i;:::-;4070:8;;3955:96;;-1:-1:-1;3674:437:14;-1:-1:-1;;;;3674:437:14:o;4116:349::-;4200:12;;-1:-1:-1;;;;;4196:38:14;4184:51;;4288:4;4277:16;;;4271:23;-1:-1:-1;;;;;4267:48:14;4251:14;;;4244:72;4379:4;4368:16;;;4362:23;4355:31;4348:39;4332:14;;;4325:63;4441:4;4430:16;;;4424:23;4449:8;4420:38;4404:14;;4397:62;4116:349::o;4470:724::-;4705:2;4757:21;;;4827:13;;4730:18;;;4849:22;;;4676:4;;4705:2;4928:15;;;;4902:2;4887:18;;;4676:4;4971:197;4985:6;4982:1;4979:13;4971:197;;;5034:52;5082:3;5073:6;5067:13;5034:52;:::i;:::-;5143:15;;;;5115:4;5106:14;;;;;5007:1;5000:9;4971:197;;5199:186;5258:6;5311:2;5299:9;5290:7;5286:23;5282:32;5279:52;;;5327:1;5324;5317:12;5279:52;5350:29;5369:9;5350:29;:::i;5390:505::-;5485:6;5493;5501;5554:2;5542:9;5533:7;5529:23;5525:32;5522:52;;;5570:1;5567;5560:12;5522:52;5606:9;5593:23;5583:33;;5667:2;5656:9;5652:18;5639:32;-1:-1:-1;;;;;5686:6:14;5683:30;5680:50;;;5726:1;5723;5716:12;5680:50;5765:70;5827:7;5818:6;5807:9;5803:22;5765:70;:::i;:::-;5390:505;;5854:8;;-1:-1:-1;5739:96:14;;-1:-1:-1;;;;5390:505:14:o;5900:632::-;6071:2;6123:21;;;6193:13;;6096:18;;;6215:22;;;6042:4;;6071:2;6294:15;;;;6268:2;6253:18;;;6042:4;6337:169;6351:6;6348:1;6345:13;6337:169;;;6412:13;;6400:26;;6481:15;;;;6446:12;;;;6373:1;6366:9;6337:169;;6537:322;6614:6;6622;6630;6683:2;6671:9;6662:7;6658:23;6654:32;6651:52;;;6699:1;6696;6689:12;6651:52;6722:29;6741:9;6722:29;:::i;:::-;6712:39;6798:2;6783:18;;6770:32;;-1:-1:-1;6849:2:14;6834:18;;;6821:32;;6537:322;-1:-1:-1;;;6537:322:14:o;6864:315::-;6929:6;6937;6990:2;6978:9;6969:7;6965:23;6961:32;6958:52;;;7006:1;7003;6996:12;6958:52;7029:29;7048:9;7029:29;:::i;:::-;7019:39;;7108:2;7097:9;7093:18;7080:32;7121:28;7143:5;7121:28;:::i;:::-;7168:5;7158:15;;;6864:315;;;;;:::o;7184:127::-;7245:10;7240:3;7236:20;7233:1;7226:31;7276:4;7273:1;7266:15;7300:4;7297:1;7290:15;7316:1138;7411:6;7419;7427;7435;7488:3;7476:9;7467:7;7463:23;7459:33;7456:53;;;7505:1;7502;7495:12;7456:53;7528:29;7547:9;7528:29;:::i;:::-;7518:39;;7576:38;7610:2;7599:9;7595:18;7576:38;:::i;:::-;7566:48;;7661:2;7650:9;7646:18;7633:32;7623:42;;7716:2;7705:9;7701:18;7688:32;-1:-1:-1;;;;;7780:2:14;7772:6;7769:14;7766:34;;;7796:1;7793;7786:12;7766:34;7834:6;7823:9;7819:22;7809:32;;7879:7;7872:4;7868:2;7864:13;7860:27;7850:55;;7901:1;7898;7891:12;7850:55;7937:2;7924:16;7959:2;7955;7952:10;7949:36;;;7965:18;;:::i;:::-;8040:2;8034:9;8008:2;8094:13;;-1:-1:-1;;8090:22:14;;;8114:2;8086:31;8082:40;8070:53;;;8138:18;;;8158:22;;;8135:46;8132:72;;;8184:18;;:::i;:::-;8224:10;8220:2;8213:22;8259:2;8251:6;8244:18;8299:7;8294:2;8289;8285;8281:11;8277:20;8274:33;8271:53;;;8320:1;8317;8310:12;8271:53;8376:2;8371;8367;8363:11;8358:2;8350:6;8346:15;8333:46;8421:1;8416:2;8411;8403:6;8399:15;8395:24;8388:35;8442:6;8432:16;;;;;;;7316:1138;;;;;;;:::o;8813:268::-;9011:3;8996:19;;9024:51;9000:9;9057:6;9024:51;:::i;9086:260::-;9154:6;9162;9215:2;9203:9;9194:7;9190:23;9186:32;9183:52;;;9231:1;9228;9221:12;9183:52;9254:29;9273:9;9254:29;:::i;:::-;9244:39;;9302:38;9336:2;9325:9;9321:18;9302:38;:::i;:::-;9292:48;;9086:260;;;;;:::o;9351:380::-;9430:1;9426:12;;;;9473;;;9494:61;;9548:4;9540:6;9536:17;9526:27;;9494:61;9601:2;9593:6;9590:14;9570:18;9567:38;9564:161;;9647:10;9642:3;9638:20;9635:1;9628:31;9682:4;9679:1;9672:15;9710:4;9707:1;9700:15;9564:161;;9351:380;;;:::o;9946:127::-;10007:10;10002:3;9998:20;9995:1;9988:31;10038:4;10035:1;10028:15;10062:4;10059:1;10052:15;10078:127;10139:10;10134:3;10130:20;10127:1;10120:31;10170:4;10167:1;10160:15;10194:4;10191:1;10184:15;10210:125;10275:9;;;10296:10;;;10293:36;;;10309:18;;:::i;10340:168::-;10413:9;;;10444;;10461:15;;;10455:22;;10441:37;10431:71;;10482:18;;:::i;10747:180::-;-1:-1:-1;;;;;10852:10:14;;;10864;;;10848:27;;10887:11;;;10884:37;;;10901:18;;:::i;:::-;10884:37;10747:180;;;;:::o;11348:703::-;11575:3;11613:6;11607:13;11629:66;11688:6;11683:3;11676:4;11668:6;11664:17;11629:66;:::i;:::-;11758:13;;11717:16;;;;11780:70;11758:13;11717:16;11827:4;11815:17;;11780:70;:::i;:::-;11917:13;;11872:20;;;11939:70;11917:13;11872:20;11986:4;11974:17;;11939:70;:::i;:::-;12025:20;;11348:703;-1:-1:-1;;;;;11348:703:14:o;13133:245::-;13200:6;13253:2;13241:9;13232:7;13228:23;13224:32;13221:52;;;13269:1;13266;13259:12;13221:52;13301:9;13295:16;13320:28;13342:5;13320:28;:::i;13875:135::-;13914:3;13935:17;;;13932:43;;13955:18;;:::i;:::-;-1:-1:-1;14002:1:14;13991:13;;13875:135::o;14015:489::-;-1:-1:-1;;;;;14284:15:14;;;14266:34;;14336:15;;14331:2;14316:18;;14309:43;14383:2;14368:18;;14361:34;;;14431:3;14426:2;14411:18;;14404:31;;;14209:4;;14452:46;;14478:19;;14470:6;14452:46;:::i;:::-;14444:54;14015:489;-1:-1:-1;;;;;;14015:489:14:o;14509:249::-;14578:6;14631:2;14619:9;14610:7;14606:23;14602:32;14599:52;;;14647:1;14644;14637:12;14599:52;14679:9;14673:16;14698:30;14722:5;14698:30;:::i
Swarm Source
ipfs://f02173dea51ae345e7b3ac8e020da458d2127f89756d77f8137e26bf9d6a897a
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.