ERC-721
Overview
Max Total Supply
246 REXOG
Holders
59
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
150 REXOGLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
RedRexOG721A
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity >=0.8.17 <0.9.0; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; contract RedRexOG721A is ERC721A, ReentrancyGuard, Ownable { using Strings for uint256; bytes32 public merkleRoot; mapping(address => uint256) public preMinted; mapping(address => uint256) public publicMinted; string public uriPrefix; string public uriSuffix = ""; string public uriContract; uint256 public publicMintPrice = 0.05 ether; uint256 public preMintPrice = 0.04 ether; uint256 public maxSupply = 5000; uint256 public preMintTxLimit = 2; uint256 public publicMintTxLimit = 3; uint256 public maxPreMintAmount = 2; uint256 public maxPublicMintAmount = 3; uint256 public maxInternalMintAmount = 150; bool public preMintPaused = true; bool public paused = true; constructor(bytes32 _merkleRoot, address[] memory _internalAccounts, string memory _prefix, string memory _contractURI) ERC721A("RedRex OG Pass", "REXOG") { setMerkleRoot(_merkleRoot); setUriPrefix(_prefix); setContractURI(_contractURI); for (uint256 i = 0; i < _internalAccounts.length; i++) { _safeMint(_internalAccounts[i], maxInternalMintAmount); } } modifier publicMintCompliance(uint256 _mintAmount) { uint256 requestedAmount = totalSupply() + _mintAmount; require(_mintAmount > 0 && _mintAmount <= publicMintTxLimit, "You have exceeded the limit of mints per transaction"); require(publicMinted[msg.sender] + _mintAmount <= maxPublicMintAmount, "You have already minted your limit"); require(requestedAmount <= maxSupply, "SOLD OUT"); require(!paused, "Minting is not currently allowed!"); require(msg.value >= publicMintPrice * _mintAmount, "You did not send enough ETH"); _; } modifier preMintCompliance(uint256 _mintAmount) { uint256 requestedAmount = totalSupply() + _mintAmount; require(_mintAmount > 0 && _mintAmount <= preMintTxLimit, "You have exceeded the limit of mints per transaction"); require(preMinted[msg.sender] + _mintAmount <= maxPreMintAmount, "You are not on the whitelist or have already used your whitelist mint"); require(requestedAmount <= maxSupply, "SOLD OUT"); require(!preMintPaused, "Minting is not currently allowed!"); require(msg.value >= preMintPrice * _mintAmount, "You did not send enough ETH"); _; } modifier airDropCompliance(uint256 _mintAmount) { uint256 requestedAmount = totalSupply() + _mintAmount; require(requestedAmount <= maxSupply, "SOLD OUT"); _; } function preMint(bytes32[] calldata _merkleProof, uint256 _mintAmount) public payable preMintCompliance(_mintAmount) nonReentrant { bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); require( MerkleProof.verify(_merkleProof, merkleRoot, leaf), "Invalid Merkle Proof." ); preMinted[msg.sender] += _mintAmount; _safeMint(msg.sender, _mintAmount); } function mint(uint256 _mintAmount) public payable publicMintCompliance(_mintAmount) nonReentrant { publicMinted[msg.sender] += _mintAmount; _safeMint(msg.sender, _mintAmount); } function airDrop(uint256 _mintAmount, address _receiver) public airDropCompliance(_mintAmount) onlyOwner nonReentrant { _safeMint(_receiver, _mintAmount); } function tokenURI(uint256 _tokenId) public view virtual override 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, uriSuffix)) : ""; } function walletOfOwner(address _owner) public view returns (uint256[] memory) { uint256 ownerTokenCount = balanceOf(_owner); uint256[] memory ownedTokenIds = new uint256[](ownerTokenCount); uint256 currentTokenId = 0; uint256 ownedTokenIndex = 0; while (ownedTokenIndex < ownerTokenCount && currentTokenId <= maxSupply) { address currentTokenOwner = ownerOf(currentTokenId); if (currentTokenOwner == _owner) { ownedTokenIds[ownedTokenIndex] = currentTokenId; ownedTokenIndex++; } currentTokenId++; } return ownedTokenIds; } function setMaxSupply(uint256 _maxSupply) public onlyOwner { require(_maxSupply <= 5000, "CAN NOT INCREASE SUPPLY"); maxSupply = _maxSupply; } function setPreMintTxLimit(uint256 _preMintTxLimit) public onlyOwner { preMintTxLimit = _preMintTxLimit; } function setPublicMintTxLimit(uint256 _publicMintTxLimit) public onlyOwner { publicMintTxLimit = _publicMintTxLimit; } function setMaxPreMintAmount(uint256 _maxPreMintAmount) public onlyOwner { maxPreMintAmount = _maxPreMintAmount; } function setMaxPublicMintAmount(uint256 _maxPublicMintAmount) public onlyOwner { maxPublicMintAmount = _maxPublicMintAmount; } function setMerkleRoot(bytes32 _merkleRoot) public onlyOwner { merkleRoot = _merkleRoot; } function setPreMintPaused(bool _state) public onlyOwner { preMintPaused = _state; } function setPaused(bool _state) public onlyOwner { paused = _state; } function setUriPrefix(string memory _uriPrefix) public onlyOwner { uriPrefix = _uriPrefix; } function setUriSuffix(string memory _uriSuffix) public onlyOwner { uriSuffix = _uriSuffix; } function _baseURI() internal view virtual override returns (string memory) { return uriPrefix; } function contractURI() public view returns (string memory) { return uriContract; } function setContractURI(string memory _contractURI) public onlyOwner { uriContract = _contractURI; } function withdraw() public onlyOwner nonReentrant{ (bool owner, ) = payable(owner()).call{value: address(this).balance}(""); require(owner); } }
// 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; /** * @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); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"address[]","name":"_internalAccounts","type":"address[]"},{"internalType":"string","name":"_prefix","type":"string"},{"internalType":"string","name":"_contractURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"airDrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"maxInternalMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPreMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPublicMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"preMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"preMintPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preMintTxLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"preMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintTxLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"publicMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"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":"string","name":"_contractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxPreMintAmount","type":"uint256"}],"name":"setMaxPreMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxPublicMintAmount","type":"uint256"}],"name":"setMaxPublicMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","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":"setPreMintPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_preMintTxLimit","type":"uint256"}],"name":"setPreMintTxLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicMintTxLimit","type":"uint256"}],"name":"setPublicMintTxLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriPrefix","type":"string"}],"name":"setUriPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriSuffix","type":"string"}],"name":"setUriSuffix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":"uriContract","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uriPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uriSuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405260405180602001604052806000815250600e908162000024919062000b38565b5066b1a2bc2ec50000601055668e1bc9bf040000601155611388601255600260135560036014556002601555600360165560966017556001601860006101000a81548160ff0219169083151502179055506001601860016101000a81548160ff0219169083151502179055503480156200009d57600080fd5b5060405162005307380380620053078339818101604052810190620000c3919062000efe565b6040518060400160405280600e81526020017f526564526578204f4720506173730000000000000000000000000000000000008152506040518060400160405280600581526020017f5245584f47000000000000000000000000000000000000000000000000000000815250816002908162000140919062000b38565b50806003908162000152919062000b38565b50620001636200022560201b60201c565b6000819055505050600160088190555062000193620001876200022a60201b60201c565b6200023260201b60201c565b620001a484620002f860201b60201c565b620001b5826200031260201b60201c565b620001c6816200033760201b60201c565b60005b83518110156200021a5762000204848281518110620001ed57620001ec62000fcd565b5b60200260200101516017546200035c60201b60201c565b808062000211906200102b565b915050620001c9565b50505050506200125d565b600090565b600033905090565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620003086200038260201b60201c565b80600a8190555050565b620003226200038260201b60201c565b80600d908162000333919062000b38565b5050565b620003476200038260201b60201c565b80600f908162000358919062000b38565b5050565b6200037e8282604051806020016040528060008152506200041360201b60201c565b5050565b620003926200022a60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620003b8620004c460201b60201c565b73ffffffffffffffffffffffffffffffffffffffff161462000411576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200040890620010d9565b60405180910390fd5b565b620004258383620004ee60201b60201c565b60008373ffffffffffffffffffffffffffffffffffffffff163b14620004bf57600080549050600083820390505b6200046e6000868380600101945086620006d560201b60201c565b620004a5576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811062000453578160005414620004bc57600080fd5b50505b505050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600080549050600082036200052f576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6200054460008483856200083660201b60201c565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550620005d383620005b560008660006200083c60201b60201c565b620005c6856200086c60201b60201c565b176200087c60201b60201c565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146200067657808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460018101905062000639565b5060008203620006b2576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050620006d06000848385620008a760201b60201c565b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0262000703620008ad60201b60201c565b8786866040518563ffffffff1660e01b81526004016200072794939291906200117a565b6020604051808303816000875af19250505080156200076657506040513d601f19601f820116820180604052508101906200076391906200122b565b60015b620007e3573d806000811462000799576040519150601f19603f3d011682016040523d82523d6000602084013e6200079e565b606091505b506000815103620007db576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b50505050565b60008060e883901c905060e86200085b868684620008b560201b60201c565b62ffffff16901b9150509392505050565b60006001821460e11b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b60009392505050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200094057607f821691505b602082108103620009565762000955620008f8565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620009c07fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000981565b620009cc868362000981565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b600062000a1962000a1362000a0d84620009e4565b620009ee565b620009e4565b9050919050565b6000819050919050565b62000a3583620009f8565b62000a4d62000a448262000a20565b8484546200098e565b825550505050565b600090565b62000a6462000a55565b62000a7181848462000a2a565b505050565b5b8181101562000a995762000a8d60008262000a5a565b60018101905062000a77565b5050565b601f82111562000ae85762000ab2816200095c565b62000abd8462000971565b8101602085101562000acd578190505b62000ae562000adc8562000971565b83018262000a76565b50505b505050565b600082821c905092915050565b600062000b0d6000198460080262000aed565b1980831691505092915050565b600062000b28838362000afa565b9150826002028217905092915050565b62000b4382620008be565b67ffffffffffffffff81111562000b5f5762000b5e620008c9565b5b62000b6b825462000927565b62000b7882828562000a9d565b600060209050601f83116001811462000bb0576000841562000b9b578287015190505b62000ba7858262000b1a565b86555062000c17565b601f19841662000bc0866200095c565b60005b8281101562000bea5784890151825560018201915060208501945060208101905062000bc3565b8683101562000c0a578489015162000c06601f89168262000afa565b8355505b6001600288020188555050505b505050505050565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b62000c488162000c33565b811462000c5457600080fd5b50565b60008151905062000c688162000c3d565b92915050565b600080fd5b6000601f19601f8301169050919050565b62000c8f8262000c73565b810181811067ffffffffffffffff8211171562000cb15762000cb0620008c9565b5b80604052505050565b600062000cc662000c1f565b905062000cd4828262000c84565b919050565b600067ffffffffffffffff82111562000cf75762000cf6620008c9565b5b602082029050602081019050919050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000d3a8262000d0d565b9050919050565b62000d4c8162000d2d565b811462000d5857600080fd5b50565b60008151905062000d6c8162000d41565b92915050565b600062000d8962000d838462000cd9565b62000cba565b9050808382526020820190506020840283018581111562000daf5762000dae62000d08565b5b835b8181101562000ddc578062000dc7888262000d5b565b84526020840193505060208101905062000db1565b5050509392505050565b600082601f83011262000dfe5762000dfd62000c6e565b5b815162000e1084826020860162000d72565b91505092915050565b600080fd5b600067ffffffffffffffff82111562000e3c5762000e3b620008c9565b5b62000e478262000c73565b9050602081019050919050565b60005b8381101562000e7457808201518184015260208101905062000e57565b60008484015250505050565b600062000e9762000e918462000e1e565b62000cba565b90508281526020810184848401111562000eb65762000eb562000e19565b5b62000ec384828562000e54565b509392505050565b600082601f83011262000ee35762000ee262000c6e565b5b815162000ef584826020860162000e80565b91505092915050565b6000806000806080858703121562000f1b5762000f1a62000c29565b5b600062000f2b8782880162000c57565b945050602085015167ffffffffffffffff81111562000f4f5762000f4e62000c2e565b5b62000f5d8782880162000de6565b935050604085015167ffffffffffffffff81111562000f815762000f8062000c2e565b5b62000f8f8782880162000ecb565b925050606085015167ffffffffffffffff81111562000fb35762000fb262000c2e565b5b62000fc18782880162000ecb565b91505092959194509250565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006200103882620009e4565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036200106d576200106c62000ffc565b5b600182019050919050565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000620010c160208362001078565b9150620010ce8262001089565b602082019050919050565b60006020820190508181036000830152620010f481620010b2565b9050919050565b620011068162000d2d565b82525050565b6200111781620009e4565b82525050565b600081519050919050565b600082825260208201905092915050565b600062001146826200111d565b62001152818562001128565b93506200116481856020860162000e54565b6200116f8162000c73565b840191505092915050565b6000608082019050620011916000830187620010fb565b620011a06020830186620010fb565b620011af60408301856200110c565b8181036060830152620011c3818462001139565b905095945050505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6200120581620011ce565b81146200121157600080fd5b50565b6000815190506200122581620011fa565b92915050565b60006020828403121562001244576200124362000c29565b5b6000620012548482850162001214565b91505092915050565b61409a806200126d6000396000f3fe6080604052600436106102c95760003560e01c8063715018a611610175578063aed38015116100dc578063d8bd5b0911610095578063e985e9c51161006f578063e985e9c514610a7e578063ea457d0f14610abb578063f2fde38b14610ae4578063fe86deca14610b0d576102c9565b8063d8bd5b09146109ff578063dc53fd9214610a28578063e8a3d48514610a53576102c9565b8063aed380151461090b578063b47fbd1714610934578063b88d4fde1461095f578063c3e301961461097b578063c87b56dd14610997578063d5abeb01146109d4576102c9565b8063938e3d7b1161012e578063938e3d7b1461080a57806395d89b4114610833578063963c41771461085e578063a0712d681461089b578063a187c89b146108b7578063a22cb465146108e2576102c9565b8063715018a61461072257806379fcb984146107395780637cb64759146107625780637ec4a6591461078b5780638aa37268146107b45780638da5cb5b146107df576102c9565b80632eb4a7ab116102345780635503a0e8116101ed5780636352211e116101c75780636352211e1461065457806368abfea9146106915780636f8b44b0146106bc57806370a08231146106e5576102c9565b80635503a0e8146105d35780635c975abb146105fe57806362b99ad414610629576102c9565b80632eb4a7ab146104e45780633ccfd60b1461050f5780633ee212f51461052657806342842e0e1461054f578063438b63001461056b5780634df3c52f146105a8576102c9565b80630e82b63d116102865780630e82b63d146103e55780631015805b1461040e57806316ba10e01461044b57806316c38b3c1461047457806318160ddd1461049d57806323b872dd146104c8576102c9565b806301ffc9a7146102ce57806303d8acef1461030b57806306fdde0314610336578063081812fc14610361578063095ea7b31461039e5780630bf91c53146103ba575b600080fd5b3480156102da57600080fd5b506102f560048036038101906102f09190612b0f565b610b38565b6040516103029190612b57565b60405180910390f35b34801561031757600080fd5b50610320610bca565b60405161032d9190612b8b565b60405180910390f35b34801561034257600080fd5b5061034b610bd0565b6040516103589190612c36565b60405180910390f35b34801561036d57600080fd5b5061038860048036038101906103839190612c84565b610c62565b6040516103959190612cf2565b60405180910390f35b6103b860048036038101906103b39190612d39565b610ce1565b005b3480156103c657600080fd5b506103cf610e25565b6040516103dc9190612b8b565b60405180910390f35b3480156103f157600080fd5b5061040c60048036038101906104079190612c84565b610e2b565b005b34801561041a57600080fd5b5061043560048036038101906104309190612d79565b610e3d565b6040516104429190612b8b565b60405180910390f35b34801561045757600080fd5b50610472600480360381019061046d9190612edb565b610e55565b005b34801561048057600080fd5b5061049b60048036038101906104969190612f50565b610e70565b005b3480156104a957600080fd5b506104b2610e95565b6040516104bf9190612b8b565b60405180910390f35b6104e260048036038101906104dd9190612f7d565b610eac565b005b3480156104f057600080fd5b506104f96111ce565b6040516105069190612fe9565b60405180910390f35b34801561051b57600080fd5b506105246111d4565b005b34801561053257600080fd5b5061054d60048036038101906105489190612c84565b61126c565b005b61056960048036038101906105649190612f7d565b61127e565b005b34801561057757600080fd5b50610592600480360381019061058d9190612d79565b61129e565b60405161059f91906130c2565b60405180910390f35b3480156105b457600080fd5b506105bd6113a3565b6040516105ca9190612b8b565b60405180910390f35b3480156105df57600080fd5b506105e86113a9565b6040516105f59190612c36565b60405180910390f35b34801561060a57600080fd5b50610613611437565b6040516106209190612b57565b60405180910390f35b34801561063557600080fd5b5061063e61144a565b60405161064b9190612c36565b60405180910390f35b34801561066057600080fd5b5061067b60048036038101906106769190612c84565b6114d8565b6040516106889190612cf2565b60405180910390f35b34801561069d57600080fd5b506106a66114ea565b6040516106b39190612b57565b60405180910390f35b3480156106c857600080fd5b506106e360048036038101906106de9190612c84565b6114fd565b005b3480156106f157600080fd5b5061070c60048036038101906107079190612d79565b611554565b6040516107199190612b8b565b60405180910390f35b34801561072e57600080fd5b5061073761160c565b005b34801561074557600080fd5b50610760600480360381019061075b9190612c84565b611620565b005b34801561076e57600080fd5b5061078960048036038101906107849190613110565b611632565b005b34801561079757600080fd5b506107b260048036038101906107ad9190612edb565b611644565b005b3480156107c057600080fd5b506107c961165f565b6040516107d69190612c36565b60405180910390f35b3480156107eb57600080fd5b506107f46116ed565b6040516108019190612cf2565b60405180910390f35b34801561081657600080fd5b50610831600480360381019061082c9190612edb565b611717565b005b34801561083f57600080fd5b50610848611732565b6040516108559190612c36565b60405180910390f35b34801561086a57600080fd5b5061088560048036038101906108809190612d79565b6117c4565b6040516108929190612b8b565b60405180910390f35b6108b560048036038101906108b09190612c84565b6117dc565b005b3480156108c357600080fd5b506108cc611a2e565b6040516108d99190612b8b565b60405180910390f35b3480156108ee57600080fd5b506109096004803603810190610904919061313d565b611a34565b005b34801561091757600080fd5b50610932600480360381019061092d919061317d565b611b3f565b005b34801561094057600080fd5b50610949611bc4565b6040516109569190612b8b565b60405180910390f35b6109796004803603810190610974919061325e565b611bca565b005b61099560048036038101906109909190613341565b611c3d565b005b3480156109a357600080fd5b506109be60048036038101906109b99190612c84565b611f4a565b6040516109cb9190612c36565b60405180910390f35b3480156109e057600080fd5b506109e9611fea565b6040516109f69190612b8b565b60405180910390f35b348015610a0b57600080fd5b50610a266004803603810190610a219190612c84565b611ff0565b005b348015610a3457600080fd5b50610a3d612002565b604051610a4a9190612b8b565b60405180910390f35b348015610a5f57600080fd5b50610a68612008565b604051610a759190612c36565b60405180910390f35b348015610a8a57600080fd5b50610aa56004803603810190610aa091906133a1565b61209a565b604051610ab29190612b57565b60405180910390f35b348015610ac757600080fd5b50610ae26004803603810190610add9190612f50565b61212e565b005b348015610af057600080fd5b50610b0b6004803603810190610b069190612d79565b612153565b005b348015610b1957600080fd5b50610b226121d6565b604051610b2f9190612b8b565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b9357506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610bc35750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60165481565b606060028054610bdf90613410565b80601f0160208091040260200160405190810160405280929190818152602001828054610c0b90613410565b8015610c585780601f10610c2d57610100808354040283529160200191610c58565b820191906000526020600020905b815481529060010190602001808311610c3b57829003601f168201915b5050505050905090565b6000610c6d826121dc565b610ca3576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610cec826114d8565b90508073ffffffffffffffffffffffffffffffffffffffff16610d0d61223b565b73ffffffffffffffffffffffffffffffffffffffff1614610d7057610d3981610d3461223b565b61209a565b610d6f576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60175481565b610e33612243565b8060148190555050565b600c6020528060005260406000206000915090505481565b610e5d612243565b80600e9081610e6c91906135ed565b5050565b610e78612243565b80601860016101000a81548160ff02191690831515021790555050565b6000610e9f6122c1565b6001546000540303905090565b6000610eb7826122c6565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610f1e576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610f2a84612392565b91509150610f408187610f3b61223b565b6123b9565b610f8c57610f5586610f5061223b565b61209a565b610f8b576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610ff2576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610fff86868660016123fd565b801561100a57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506110d8856110b4888887612403565b7c02000000000000000000000000000000000000000000000000000000001761242b565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084160361115e576000600185019050600060046000838152602001908152602001600020540361115c57600054811461115b578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46111c68686866001612456565b505050505050565b600a5481565b6111dc612243565b6111e461245c565b60006111ee6116ed565b73ffffffffffffffffffffffffffffffffffffffff1647604051611211906136f0565b60006040518083038185875af1925050503d806000811461124e576040519150601f19603f3d011682016040523d82523d6000602084013e611253565b606091505b505090508061126157600080fd5b5061126a6124ab565b565b611274612243565b8060138190555050565b61129983838360405180602001604052806000815250611bca565b505050565b606060006112ab83611554565b905060008167ffffffffffffffff8111156112c9576112c8612db0565b5b6040519080825280602002602001820160405280156112f75781602001602082028036833780820191505090505b5090506000805b838110801561130f57506012548211155b1561139757600061131f836114d8565b90508673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611383578284838151811061136857611367613705565b5b602002602001018181525050818061137f90613763565b9250505b828061138e90613763565b935050506112fe565b82945050505050919050565b60135481565b600e80546113b690613410565b80601f01602080910402602001604051908101604052809291908181526020018280546113e290613410565b801561142f5780601f106114045761010080835404028352916020019161142f565b820191906000526020600020905b81548152906001019060200180831161141257829003601f168201915b505050505081565b601860019054906101000a900460ff1681565b600d805461145790613410565b80601f016020809104026020016040519081016040528092919081815260200182805461148390613410565b80156114d05780601f106114a5576101008083540402835291602001916114d0565b820191906000526020600020905b8154815290600101906020018083116114b357829003601f168201915b505050505081565b60006114e3826122c6565b9050919050565b601860009054906101000a900460ff1681565b611505612243565b61138881111561154a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611541906137f7565b60405180910390fd5b8060128190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036115bb576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611614612243565b61161e60006124b5565b565b611628612243565b8060168190555050565b61163a612243565b80600a8190555050565b61164c612243565b80600d908161165b91906135ed565b5050565b600f805461166c90613410565b80601f016020809104026020016040519081016040528092919081815260200182805461169890613410565b80156116e55780601f106116ba576101008083540402835291602001916116e5565b820191906000526020600020905b8154815290600101906020018083116116c857829003601f168201915b505050505081565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61171f612243565b80600f908161172e91906135ed565b5050565b60606003805461174190613410565b80601f016020809104026020016040519081016040528092919081815260200182805461176d90613410565b80156117ba5780601f1061178f576101008083540402835291602001916117ba565b820191906000526020600020905b81548152906001019060200180831161179d57829003601f168201915b5050505050905090565b600b6020528060005260406000206000915090505481565b806000816117e8610e95565b6117f29190613817565b905060008211801561180657506014548211155b611845576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183c906138bd565b60405180910390fd5b60165482600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546118939190613817565b11156118d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118cb9061394f565b60405180910390fd5b601254811115611919576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611910906139bb565b60405180910390fd5b601860019054906101000a900460ff1615611969576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196090613a4d565b60405180910390fd5b816010546119779190613a6d565b3410156119b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119b090613afb565b60405180910390fd5b6119c161245c565b82600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611a109190613817565b92505081905550611a21338461257b565b611a296124ab565b505050565b60115481565b8060076000611a4161223b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611aee61223b565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611b339190612b57565b60405180910390a35050565b81600081611b4b610e95565b611b559190613817565b9050601254811115611b9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b93906139bb565b60405180910390fd5b611ba4612243565b611bac61245c565b611bb6838561257b565b611bbe6124ab565b50505050565b60155481565b611bd5848484610eac565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611c3757611c0084848484612599565b611c36576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b80600081611c49610e95565b611c539190613817565b9050600082118015611c6757506013548211155b611ca6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9d906138bd565b60405180910390fd5b60155482600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611cf49190613817565b1115611d35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d2c90613bb3565b60405180910390fd5b601254811115611d7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d71906139bb565b60405180910390fd5b601860009054906101000a900460ff1615611dca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dc190613a4d565b60405180910390fd5b81601154611dd89190613a6d565b341015611e1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1190613afb565b60405180910390fd5b611e2261245c565b600033604051602001611e359190613c1b565b604051602081830303815290604052805190602001209050611e9b868680806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600a54836126e9565b611eda576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ed190613c82565b60405180910390fd5b83600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f299190613817565b92505081905550611f3a338561257b565b50611f436124ab565b5050505050565b6060611f55826121dc565b611f94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f8b90613d14565b60405180910390fd5b6000611f9e612700565b90506000815111611fbe5760405180602001604052806000815250611fe2565b80600e604051602001611fd2929190613df3565b6040516020818303038152906040525b915050919050565b60125481565b611ff8612243565b8060158190555050565b60105481565b6060600f805461201790613410565b80601f016020809104026020016040519081016040528092919081815260200182805461204390613410565b80156120905780601f1061206557610100808354040283529160200191612090565b820191906000526020600020905b81548152906001019060200180831161207357829003601f168201915b5050505050905090565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612136612243565b80601860006101000a81548160ff02191690831515021790555050565b61215b612243565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036121ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121c190613e89565b60405180910390fd5b6121d3816124b5565b50565b60145481565b6000816121e76122c1565b111580156121f6575060005482105b8015612234575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b61224b612792565b73ffffffffffffffffffffffffffffffffffffffff166122696116ed565b73ffffffffffffffffffffffffffffffffffffffff16146122bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122b690613ef5565b60405180910390fd5b565b600090565b600080829050806122d56122c1565b1161235b5760005481101561235a5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612358575b6000810361234e576004600083600190039350838152602001908152602001600020549050612324565b809250505061238d565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e861241a86868461279a565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6002600854036124a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161249890613f61565b60405180910390fd5b6002600881905550565b6001600881905550565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6125958282604051806020016040528060008152506127a3565b5050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026125bf61223b565b8786866040518563ffffffff1660e01b81526004016125e19493929190613fd6565b6020604051808303816000875af192505050801561261d57506040513d601f19601f8201168201806040525081019061261a9190614037565b60015b612696573d806000811461264d576040519150601f19603f3d011682016040523d82523d6000602084013e612652565b606091505b50600081510361268e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6000826126f68584612840565b1490509392505050565b6060600d805461270f90613410565b80601f016020809104026020016040519081016040528092919081815260200182805461273b90613410565b80156127885780601f1061275d57610100808354040283529160200191612788565b820191906000526020600020905b81548152906001019060200180831161276b57829003601f168201915b5050505050905090565b600033905090565b60009392505050565b6127ad8383612896565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461283b57600080549050600083820390505b6127ed6000868380600101945086612599565b612823576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106127da57816000541461283857600080fd5b50505b505050565b60008082905060005b845181101561288b576128768286838151811061286957612868613705565b5b6020026020010151612a51565b9150808061288390613763565b915050612849565b508091505092915050565b600080549050600082036128d6576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6128e360008483856123fd565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061295a8361294b6000866000612403565b61295485612a7c565b1761242b565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146129fb57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506129c0565b5060008203612a36576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050612a4c6000848385612456565b505050565b6000818310612a6957612a648284612a8c565b612a74565b612a738383612a8c565b5b905092915050565b60006001821460e11b9050919050565b600082600052816020526040600020905092915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612aec81612ab7565b8114612af757600080fd5b50565b600081359050612b0981612ae3565b92915050565b600060208284031215612b2557612b24612aad565b5b6000612b3384828501612afa565b91505092915050565b60008115159050919050565b612b5181612b3c565b82525050565b6000602082019050612b6c6000830184612b48565b92915050565b6000819050919050565b612b8581612b72565b82525050565b6000602082019050612ba06000830184612b7c565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612be0578082015181840152602081019050612bc5565b60008484015250505050565b6000601f19601f8301169050919050565b6000612c0882612ba6565b612c128185612bb1565b9350612c22818560208601612bc2565b612c2b81612bec565b840191505092915050565b60006020820190508181036000830152612c508184612bfd565b905092915050565b612c6181612b72565b8114612c6c57600080fd5b50565b600081359050612c7e81612c58565b92915050565b600060208284031215612c9a57612c99612aad565b5b6000612ca884828501612c6f565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612cdc82612cb1565b9050919050565b612cec81612cd1565b82525050565b6000602082019050612d076000830184612ce3565b92915050565b612d1681612cd1565b8114612d2157600080fd5b50565b600081359050612d3381612d0d565b92915050565b60008060408385031215612d5057612d4f612aad565b5b6000612d5e85828601612d24565b9250506020612d6f85828601612c6f565b9150509250929050565b600060208284031215612d8f57612d8e612aad565b5b6000612d9d84828501612d24565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612de882612bec565b810181811067ffffffffffffffff82111715612e0757612e06612db0565b5b80604052505050565b6000612e1a612aa3565b9050612e268282612ddf565b919050565b600067ffffffffffffffff821115612e4657612e45612db0565b5b612e4f82612bec565b9050602081019050919050565b82818337600083830152505050565b6000612e7e612e7984612e2b565b612e10565b905082815260208101848484011115612e9a57612e99612dab565b5b612ea5848285612e5c565b509392505050565b600082601f830112612ec257612ec1612da6565b5b8135612ed2848260208601612e6b565b91505092915050565b600060208284031215612ef157612ef0612aad565b5b600082013567ffffffffffffffff811115612f0f57612f0e612ab2565b5b612f1b84828501612ead565b91505092915050565b612f2d81612b3c565b8114612f3857600080fd5b50565b600081359050612f4a81612f24565b92915050565b600060208284031215612f6657612f65612aad565b5b6000612f7484828501612f3b565b91505092915050565b600080600060608486031215612f9657612f95612aad565b5b6000612fa486828701612d24565b9350506020612fb586828701612d24565b9250506040612fc686828701612c6f565b9150509250925092565b6000819050919050565b612fe381612fd0565b82525050565b6000602082019050612ffe6000830184612fda565b92915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61303981612b72565b82525050565b600061304b8383613030565b60208301905092915050565b6000602082019050919050565b600061306f82613004565b613079818561300f565b935061308483613020565b8060005b838110156130b557815161309c888261303f565b97506130a783613057565b925050600181019050613088565b5085935050505092915050565b600060208201905081810360008301526130dc8184613064565b905092915050565b6130ed81612fd0565b81146130f857600080fd5b50565b60008135905061310a816130e4565b92915050565b60006020828403121561312657613125612aad565b5b6000613134848285016130fb565b91505092915050565b6000806040838503121561315457613153612aad565b5b600061316285828601612d24565b925050602061317385828601612f3b565b9150509250929050565b6000806040838503121561319457613193612aad565b5b60006131a285828601612c6f565b92505060206131b385828601612d24565b9150509250929050565b600067ffffffffffffffff8211156131d8576131d7612db0565b5b6131e182612bec565b9050602081019050919050565b60006132016131fc846131bd565b612e10565b90508281526020810184848401111561321d5761321c612dab565b5b613228848285612e5c565b509392505050565b600082601f83011261324557613244612da6565b5b81356132558482602086016131ee565b91505092915050565b6000806000806080858703121561327857613277612aad565b5b600061328687828801612d24565b945050602061329787828801612d24565b93505060406132a887828801612c6f565b925050606085013567ffffffffffffffff8111156132c9576132c8612ab2565b5b6132d587828801613230565b91505092959194509250565b600080fd5b600080fd5b60008083601f84011261330157613300612da6565b5b8235905067ffffffffffffffff81111561331e5761331d6132e1565b5b60208301915083602082028301111561333a576133396132e6565b5b9250929050565b60008060006040848603121561335a57613359612aad565b5b600084013567ffffffffffffffff81111561337857613377612ab2565b5b613384868287016132eb565b9350935050602061339786828701612c6f565b9150509250925092565b600080604083850312156133b8576133b7612aad565b5b60006133c685828601612d24565b92505060206133d785828601612d24565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061342857607f821691505b60208210810361343b5761343a6133e1565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026134a37fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613466565b6134ad8683613466565b95508019841693508086168417925050509392505050565b6000819050919050565b60006134ea6134e56134e084612b72565b6134c5565b612b72565b9050919050565b6000819050919050565b613504836134cf565b613518613510826134f1565b848454613473565b825550505050565b600090565b61352d613520565b6135388184846134fb565b505050565b5b8181101561355c57613551600082613525565b60018101905061353e565b5050565b601f8211156135a15761357281613441565b61357b84613456565b8101602085101561358a578190505b61359e61359685613456565b83018261353d565b50505b505050565b600082821c905092915050565b60006135c4600019846008026135a6565b1980831691505092915050565b60006135dd83836135b3565b9150826002028217905092915050565b6135f682612ba6565b67ffffffffffffffff81111561360f5761360e612db0565b5b6136198254613410565b613624828285613560565b600060209050601f8311600181146136575760008415613645578287015190505b61364f85826135d1565b8655506136b7565b601f19841661366586613441565b60005b8281101561368d57848901518255600182019150602085019450602081019050613668565b868310156136aa57848901516136a6601f8916826135b3565b8355505b6001600288020188555050505b505050505050565b600081905092915050565b50565b60006136da6000836136bf565b91506136e5826136ca565b600082019050919050565b60006136fb826136cd565b9150819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061376e82612b72565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036137a05761379f613734565b5b600182019050919050565b7f43414e204e4f5420494e43524541534520535550504c59000000000000000000600082015250565b60006137e1601783612bb1565b91506137ec826137ab565b602082019050919050565b60006020820190508181036000830152613810816137d4565b9050919050565b600061382282612b72565b915061382d83612b72565b925082820190508082111561384557613844613734565b5b92915050565b7f596f75206861766520657863656564656420746865206c696d6974206f66206d60008201527f696e747320706572207472616e73616374696f6e000000000000000000000000602082015250565b60006138a7603483612bb1565b91506138b28261384b565b604082019050919050565b600060208201905081810360008301526138d68161389a565b9050919050565b7f596f75206861766520616c7265616479206d696e74656420796f7572206c696d60008201527f6974000000000000000000000000000000000000000000000000000000000000602082015250565b6000613939602283612bb1565b9150613944826138dd565b604082019050919050565b600060208201905081810360008301526139688161392c565b9050919050565b7f534f4c44204f5554000000000000000000000000000000000000000000000000600082015250565b60006139a5600883612bb1565b91506139b08261396f565b602082019050919050565b600060208201905081810360008301526139d481613998565b9050919050565b7f4d696e74696e67206973206e6f742063757272656e746c7920616c6c6f77656460008201527f2100000000000000000000000000000000000000000000000000000000000000602082015250565b6000613a37602183612bb1565b9150613a42826139db565b604082019050919050565b60006020820190508181036000830152613a6681613a2a565b9050919050565b6000613a7882612b72565b9150613a8383612b72565b9250828202613a9181612b72565b91508282048414831517613aa857613aa7613734565b5b5092915050565b7f596f7520646964206e6f742073656e6420656e6f756768204554480000000000600082015250565b6000613ae5601b83612bb1565b9150613af082613aaf565b602082019050919050565b60006020820190508181036000830152613b1481613ad8565b9050919050565b7f596f7520617265206e6f74206f6e207468652077686974656c697374206f722060008201527f6861766520616c7265616479207573656420796f75722077686974656c69737460208201527f206d696e74000000000000000000000000000000000000000000000000000000604082015250565b6000613b9d604583612bb1565b9150613ba882613b1b565b606082019050919050565b60006020820190508181036000830152613bcc81613b90565b9050919050565b60008160601b9050919050565b6000613beb82613bd3565b9050919050565b6000613bfd82613be0565b9050919050565b613c15613c1082612cd1565b613bf2565b82525050565b6000613c278284613c04565b60148201915081905092915050565b7f496e76616c6964204d65726b6c652050726f6f662e0000000000000000000000600082015250565b6000613c6c601583612bb1565b9150613c7782613c36565b602082019050919050565b60006020820190508181036000830152613c9b81613c5f565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000613cfe602f83612bb1565b9150613d0982613ca2565b604082019050919050565b60006020820190508181036000830152613d2d81613cf1565b9050919050565b600081905092915050565b6000613d4a82612ba6565b613d548185613d34565b9350613d64818560208601612bc2565b80840191505092915050565b60008154613d7d81613410565b613d878186613d34565b94506001821660008114613da25760018114613db757613dea565b60ff1983168652811515820286019350613dea565b613dc085613441565b60005b83811015613de257815481890152600182019150602081019050613dc3565b838801955050505b50505092915050565b6000613dff8285613d3f565b9150613e0b8284613d70565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613e73602683612bb1565b9150613e7e82613e17565b604082019050919050565b60006020820190508181036000830152613ea281613e66565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613edf602083612bb1565b9150613eea82613ea9565b602082019050919050565b60006020820190508181036000830152613f0e81613ed2565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000613f4b601f83612bb1565b9150613f5682613f15565b602082019050919050565b60006020820190508181036000830152613f7a81613f3e565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000613fa882613f81565b613fb28185613f8c565b9350613fc2818560208601612bc2565b613fcb81612bec565b840191505092915050565b6000608082019050613feb6000830187612ce3565b613ff86020830186612ce3565b6140056040830185612b7c565b81810360608301526140178184613f9d565b905095945050505050565b60008151905061403181612ae3565b92915050565b60006020828403121561404d5761404c612aad565b5b600061405b84828501614022565b9150509291505056fea26469706673582212206c6b324f7f40b1d61e71ba6f8577f22f314636dd360ac96d7d90066f8ccd69df64736f6c634300081100330443b6059e81aa03d4c08ce0ec4a06c1e1a39f36bc7da4dc8b7fd746d70087c1000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000c215ecc74b18bee297743efff1201e59fa5a01920000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d4e7043373274697558393333465541517473776b5a66326867346a4a5356597872337358734d46737669764c00000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d577369436f4e5756665578483479686d6d7531554d5457427848527273433652373945397745537053694d500000000000000000000000
Deployed Bytecode
0x6080604052600436106102c95760003560e01c8063715018a611610175578063aed38015116100dc578063d8bd5b0911610095578063e985e9c51161006f578063e985e9c514610a7e578063ea457d0f14610abb578063f2fde38b14610ae4578063fe86deca14610b0d576102c9565b8063d8bd5b09146109ff578063dc53fd9214610a28578063e8a3d48514610a53576102c9565b8063aed380151461090b578063b47fbd1714610934578063b88d4fde1461095f578063c3e301961461097b578063c87b56dd14610997578063d5abeb01146109d4576102c9565b8063938e3d7b1161012e578063938e3d7b1461080a57806395d89b4114610833578063963c41771461085e578063a0712d681461089b578063a187c89b146108b7578063a22cb465146108e2576102c9565b8063715018a61461072257806379fcb984146107395780637cb64759146107625780637ec4a6591461078b5780638aa37268146107b45780638da5cb5b146107df576102c9565b80632eb4a7ab116102345780635503a0e8116101ed5780636352211e116101c75780636352211e1461065457806368abfea9146106915780636f8b44b0146106bc57806370a08231146106e5576102c9565b80635503a0e8146105d35780635c975abb146105fe57806362b99ad414610629576102c9565b80632eb4a7ab146104e45780633ccfd60b1461050f5780633ee212f51461052657806342842e0e1461054f578063438b63001461056b5780634df3c52f146105a8576102c9565b80630e82b63d116102865780630e82b63d146103e55780631015805b1461040e57806316ba10e01461044b57806316c38b3c1461047457806318160ddd1461049d57806323b872dd146104c8576102c9565b806301ffc9a7146102ce57806303d8acef1461030b57806306fdde0314610336578063081812fc14610361578063095ea7b31461039e5780630bf91c53146103ba575b600080fd5b3480156102da57600080fd5b506102f560048036038101906102f09190612b0f565b610b38565b6040516103029190612b57565b60405180910390f35b34801561031757600080fd5b50610320610bca565b60405161032d9190612b8b565b60405180910390f35b34801561034257600080fd5b5061034b610bd0565b6040516103589190612c36565b60405180910390f35b34801561036d57600080fd5b5061038860048036038101906103839190612c84565b610c62565b6040516103959190612cf2565b60405180910390f35b6103b860048036038101906103b39190612d39565b610ce1565b005b3480156103c657600080fd5b506103cf610e25565b6040516103dc9190612b8b565b60405180910390f35b3480156103f157600080fd5b5061040c60048036038101906104079190612c84565b610e2b565b005b34801561041a57600080fd5b5061043560048036038101906104309190612d79565b610e3d565b6040516104429190612b8b565b60405180910390f35b34801561045757600080fd5b50610472600480360381019061046d9190612edb565b610e55565b005b34801561048057600080fd5b5061049b60048036038101906104969190612f50565b610e70565b005b3480156104a957600080fd5b506104b2610e95565b6040516104bf9190612b8b565b60405180910390f35b6104e260048036038101906104dd9190612f7d565b610eac565b005b3480156104f057600080fd5b506104f96111ce565b6040516105069190612fe9565b60405180910390f35b34801561051b57600080fd5b506105246111d4565b005b34801561053257600080fd5b5061054d60048036038101906105489190612c84565b61126c565b005b61056960048036038101906105649190612f7d565b61127e565b005b34801561057757600080fd5b50610592600480360381019061058d9190612d79565b61129e565b60405161059f91906130c2565b60405180910390f35b3480156105b457600080fd5b506105bd6113a3565b6040516105ca9190612b8b565b60405180910390f35b3480156105df57600080fd5b506105e86113a9565b6040516105f59190612c36565b60405180910390f35b34801561060a57600080fd5b50610613611437565b6040516106209190612b57565b60405180910390f35b34801561063557600080fd5b5061063e61144a565b60405161064b9190612c36565b60405180910390f35b34801561066057600080fd5b5061067b60048036038101906106769190612c84565b6114d8565b6040516106889190612cf2565b60405180910390f35b34801561069d57600080fd5b506106a66114ea565b6040516106b39190612b57565b60405180910390f35b3480156106c857600080fd5b506106e360048036038101906106de9190612c84565b6114fd565b005b3480156106f157600080fd5b5061070c60048036038101906107079190612d79565b611554565b6040516107199190612b8b565b60405180910390f35b34801561072e57600080fd5b5061073761160c565b005b34801561074557600080fd5b50610760600480360381019061075b9190612c84565b611620565b005b34801561076e57600080fd5b5061078960048036038101906107849190613110565b611632565b005b34801561079757600080fd5b506107b260048036038101906107ad9190612edb565b611644565b005b3480156107c057600080fd5b506107c961165f565b6040516107d69190612c36565b60405180910390f35b3480156107eb57600080fd5b506107f46116ed565b6040516108019190612cf2565b60405180910390f35b34801561081657600080fd5b50610831600480360381019061082c9190612edb565b611717565b005b34801561083f57600080fd5b50610848611732565b6040516108559190612c36565b60405180910390f35b34801561086a57600080fd5b5061088560048036038101906108809190612d79565b6117c4565b6040516108929190612b8b565b60405180910390f35b6108b560048036038101906108b09190612c84565b6117dc565b005b3480156108c357600080fd5b506108cc611a2e565b6040516108d99190612b8b565b60405180910390f35b3480156108ee57600080fd5b506109096004803603810190610904919061313d565b611a34565b005b34801561091757600080fd5b50610932600480360381019061092d919061317d565b611b3f565b005b34801561094057600080fd5b50610949611bc4565b6040516109569190612b8b565b60405180910390f35b6109796004803603810190610974919061325e565b611bca565b005b61099560048036038101906109909190613341565b611c3d565b005b3480156109a357600080fd5b506109be60048036038101906109b99190612c84565b611f4a565b6040516109cb9190612c36565b60405180910390f35b3480156109e057600080fd5b506109e9611fea565b6040516109f69190612b8b565b60405180910390f35b348015610a0b57600080fd5b50610a266004803603810190610a219190612c84565b611ff0565b005b348015610a3457600080fd5b50610a3d612002565b604051610a4a9190612b8b565b60405180910390f35b348015610a5f57600080fd5b50610a68612008565b604051610a759190612c36565b60405180910390f35b348015610a8a57600080fd5b50610aa56004803603810190610aa091906133a1565b61209a565b604051610ab29190612b57565b60405180910390f35b348015610ac757600080fd5b50610ae26004803603810190610add9190612f50565b61212e565b005b348015610af057600080fd5b50610b0b6004803603810190610b069190612d79565b612153565b005b348015610b1957600080fd5b50610b226121d6565b604051610b2f9190612b8b565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b9357506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610bc35750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60165481565b606060028054610bdf90613410565b80601f0160208091040260200160405190810160405280929190818152602001828054610c0b90613410565b8015610c585780601f10610c2d57610100808354040283529160200191610c58565b820191906000526020600020905b815481529060010190602001808311610c3b57829003601f168201915b5050505050905090565b6000610c6d826121dc565b610ca3576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610cec826114d8565b90508073ffffffffffffffffffffffffffffffffffffffff16610d0d61223b565b73ffffffffffffffffffffffffffffffffffffffff1614610d7057610d3981610d3461223b565b61209a565b610d6f576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60175481565b610e33612243565b8060148190555050565b600c6020528060005260406000206000915090505481565b610e5d612243565b80600e9081610e6c91906135ed565b5050565b610e78612243565b80601860016101000a81548160ff02191690831515021790555050565b6000610e9f6122c1565b6001546000540303905090565b6000610eb7826122c6565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610f1e576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610f2a84612392565b91509150610f408187610f3b61223b565b6123b9565b610f8c57610f5586610f5061223b565b61209a565b610f8b576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610ff2576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610fff86868660016123fd565b801561100a57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506110d8856110b4888887612403565b7c02000000000000000000000000000000000000000000000000000000001761242b565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084160361115e576000600185019050600060046000838152602001908152602001600020540361115c57600054811461115b578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46111c68686866001612456565b505050505050565b600a5481565b6111dc612243565b6111e461245c565b60006111ee6116ed565b73ffffffffffffffffffffffffffffffffffffffff1647604051611211906136f0565b60006040518083038185875af1925050503d806000811461124e576040519150601f19603f3d011682016040523d82523d6000602084013e611253565b606091505b505090508061126157600080fd5b5061126a6124ab565b565b611274612243565b8060138190555050565b61129983838360405180602001604052806000815250611bca565b505050565b606060006112ab83611554565b905060008167ffffffffffffffff8111156112c9576112c8612db0565b5b6040519080825280602002602001820160405280156112f75781602001602082028036833780820191505090505b5090506000805b838110801561130f57506012548211155b1561139757600061131f836114d8565b90508673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611383578284838151811061136857611367613705565b5b602002602001018181525050818061137f90613763565b9250505b828061138e90613763565b935050506112fe565b82945050505050919050565b60135481565b600e80546113b690613410565b80601f01602080910402602001604051908101604052809291908181526020018280546113e290613410565b801561142f5780601f106114045761010080835404028352916020019161142f565b820191906000526020600020905b81548152906001019060200180831161141257829003601f168201915b505050505081565b601860019054906101000a900460ff1681565b600d805461145790613410565b80601f016020809104026020016040519081016040528092919081815260200182805461148390613410565b80156114d05780601f106114a5576101008083540402835291602001916114d0565b820191906000526020600020905b8154815290600101906020018083116114b357829003601f168201915b505050505081565b60006114e3826122c6565b9050919050565b601860009054906101000a900460ff1681565b611505612243565b61138881111561154a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611541906137f7565b60405180910390fd5b8060128190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036115bb576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611614612243565b61161e60006124b5565b565b611628612243565b8060168190555050565b61163a612243565b80600a8190555050565b61164c612243565b80600d908161165b91906135ed565b5050565b600f805461166c90613410565b80601f016020809104026020016040519081016040528092919081815260200182805461169890613410565b80156116e55780601f106116ba576101008083540402835291602001916116e5565b820191906000526020600020905b8154815290600101906020018083116116c857829003601f168201915b505050505081565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61171f612243565b80600f908161172e91906135ed565b5050565b60606003805461174190613410565b80601f016020809104026020016040519081016040528092919081815260200182805461176d90613410565b80156117ba5780601f1061178f576101008083540402835291602001916117ba565b820191906000526020600020905b81548152906001019060200180831161179d57829003601f168201915b5050505050905090565b600b6020528060005260406000206000915090505481565b806000816117e8610e95565b6117f29190613817565b905060008211801561180657506014548211155b611845576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183c906138bd565b60405180910390fd5b60165482600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546118939190613817565b11156118d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118cb9061394f565b60405180910390fd5b601254811115611919576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611910906139bb565b60405180910390fd5b601860019054906101000a900460ff1615611969576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196090613a4d565b60405180910390fd5b816010546119779190613a6d565b3410156119b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119b090613afb565b60405180910390fd5b6119c161245c565b82600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611a109190613817565b92505081905550611a21338461257b565b611a296124ab565b505050565b60115481565b8060076000611a4161223b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611aee61223b565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611b339190612b57565b60405180910390a35050565b81600081611b4b610e95565b611b559190613817565b9050601254811115611b9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b93906139bb565b60405180910390fd5b611ba4612243565b611bac61245c565b611bb6838561257b565b611bbe6124ab565b50505050565b60155481565b611bd5848484610eac565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611c3757611c0084848484612599565b611c36576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b80600081611c49610e95565b611c539190613817565b9050600082118015611c6757506013548211155b611ca6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9d906138bd565b60405180910390fd5b60155482600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611cf49190613817565b1115611d35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d2c90613bb3565b60405180910390fd5b601254811115611d7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d71906139bb565b60405180910390fd5b601860009054906101000a900460ff1615611dca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dc190613a4d565b60405180910390fd5b81601154611dd89190613a6d565b341015611e1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1190613afb565b60405180910390fd5b611e2261245c565b600033604051602001611e359190613c1b565b604051602081830303815290604052805190602001209050611e9b868680806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600a54836126e9565b611eda576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ed190613c82565b60405180910390fd5b83600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f299190613817565b92505081905550611f3a338561257b565b50611f436124ab565b5050505050565b6060611f55826121dc565b611f94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f8b90613d14565b60405180910390fd5b6000611f9e612700565b90506000815111611fbe5760405180602001604052806000815250611fe2565b80600e604051602001611fd2929190613df3565b6040516020818303038152906040525b915050919050565b60125481565b611ff8612243565b8060158190555050565b60105481565b6060600f805461201790613410565b80601f016020809104026020016040519081016040528092919081815260200182805461204390613410565b80156120905780601f1061206557610100808354040283529160200191612090565b820191906000526020600020905b81548152906001019060200180831161207357829003601f168201915b5050505050905090565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612136612243565b80601860006101000a81548160ff02191690831515021790555050565b61215b612243565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036121ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121c190613e89565b60405180910390fd5b6121d3816124b5565b50565b60145481565b6000816121e76122c1565b111580156121f6575060005482105b8015612234575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b61224b612792565b73ffffffffffffffffffffffffffffffffffffffff166122696116ed565b73ffffffffffffffffffffffffffffffffffffffff16146122bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122b690613ef5565b60405180910390fd5b565b600090565b600080829050806122d56122c1565b1161235b5760005481101561235a5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612358575b6000810361234e576004600083600190039350838152602001908152602001600020549050612324565b809250505061238d565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e861241a86868461279a565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6002600854036124a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161249890613f61565b60405180910390fd5b6002600881905550565b6001600881905550565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6125958282604051806020016040528060008152506127a3565b5050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026125bf61223b565b8786866040518563ffffffff1660e01b81526004016125e19493929190613fd6565b6020604051808303816000875af192505050801561261d57506040513d601f19601f8201168201806040525081019061261a9190614037565b60015b612696573d806000811461264d576040519150601f19603f3d011682016040523d82523d6000602084013e612652565b606091505b50600081510361268e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6000826126f68584612840565b1490509392505050565b6060600d805461270f90613410565b80601f016020809104026020016040519081016040528092919081815260200182805461273b90613410565b80156127885780601f1061275d57610100808354040283529160200191612788565b820191906000526020600020905b81548152906001019060200180831161276b57829003601f168201915b5050505050905090565b600033905090565b60009392505050565b6127ad8383612896565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461283b57600080549050600083820390505b6127ed6000868380600101945086612599565b612823576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106127da57816000541461283857600080fd5b50505b505050565b60008082905060005b845181101561288b576128768286838151811061286957612868613705565b5b6020026020010151612a51565b9150808061288390613763565b915050612849565b508091505092915050565b600080549050600082036128d6576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6128e360008483856123fd565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061295a8361294b6000866000612403565b61295485612a7c565b1761242b565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146129fb57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506129c0565b5060008203612a36576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050612a4c6000848385612456565b505050565b6000818310612a6957612a648284612a8c565b612a74565b612a738383612a8c565b5b905092915050565b60006001821460e11b9050919050565b600082600052816020526040600020905092915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612aec81612ab7565b8114612af757600080fd5b50565b600081359050612b0981612ae3565b92915050565b600060208284031215612b2557612b24612aad565b5b6000612b3384828501612afa565b91505092915050565b60008115159050919050565b612b5181612b3c565b82525050565b6000602082019050612b6c6000830184612b48565b92915050565b6000819050919050565b612b8581612b72565b82525050565b6000602082019050612ba06000830184612b7c565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612be0578082015181840152602081019050612bc5565b60008484015250505050565b6000601f19601f8301169050919050565b6000612c0882612ba6565b612c128185612bb1565b9350612c22818560208601612bc2565b612c2b81612bec565b840191505092915050565b60006020820190508181036000830152612c508184612bfd565b905092915050565b612c6181612b72565b8114612c6c57600080fd5b50565b600081359050612c7e81612c58565b92915050565b600060208284031215612c9a57612c99612aad565b5b6000612ca884828501612c6f565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612cdc82612cb1565b9050919050565b612cec81612cd1565b82525050565b6000602082019050612d076000830184612ce3565b92915050565b612d1681612cd1565b8114612d2157600080fd5b50565b600081359050612d3381612d0d565b92915050565b60008060408385031215612d5057612d4f612aad565b5b6000612d5e85828601612d24565b9250506020612d6f85828601612c6f565b9150509250929050565b600060208284031215612d8f57612d8e612aad565b5b6000612d9d84828501612d24565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612de882612bec565b810181811067ffffffffffffffff82111715612e0757612e06612db0565b5b80604052505050565b6000612e1a612aa3565b9050612e268282612ddf565b919050565b600067ffffffffffffffff821115612e4657612e45612db0565b5b612e4f82612bec565b9050602081019050919050565b82818337600083830152505050565b6000612e7e612e7984612e2b565b612e10565b905082815260208101848484011115612e9a57612e99612dab565b5b612ea5848285612e5c565b509392505050565b600082601f830112612ec257612ec1612da6565b5b8135612ed2848260208601612e6b565b91505092915050565b600060208284031215612ef157612ef0612aad565b5b600082013567ffffffffffffffff811115612f0f57612f0e612ab2565b5b612f1b84828501612ead565b91505092915050565b612f2d81612b3c565b8114612f3857600080fd5b50565b600081359050612f4a81612f24565b92915050565b600060208284031215612f6657612f65612aad565b5b6000612f7484828501612f3b565b91505092915050565b600080600060608486031215612f9657612f95612aad565b5b6000612fa486828701612d24565b9350506020612fb586828701612d24565b9250506040612fc686828701612c6f565b9150509250925092565b6000819050919050565b612fe381612fd0565b82525050565b6000602082019050612ffe6000830184612fda565b92915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61303981612b72565b82525050565b600061304b8383613030565b60208301905092915050565b6000602082019050919050565b600061306f82613004565b613079818561300f565b935061308483613020565b8060005b838110156130b557815161309c888261303f565b97506130a783613057565b925050600181019050613088565b5085935050505092915050565b600060208201905081810360008301526130dc8184613064565b905092915050565b6130ed81612fd0565b81146130f857600080fd5b50565b60008135905061310a816130e4565b92915050565b60006020828403121561312657613125612aad565b5b6000613134848285016130fb565b91505092915050565b6000806040838503121561315457613153612aad565b5b600061316285828601612d24565b925050602061317385828601612f3b565b9150509250929050565b6000806040838503121561319457613193612aad565b5b60006131a285828601612c6f565b92505060206131b385828601612d24565b9150509250929050565b600067ffffffffffffffff8211156131d8576131d7612db0565b5b6131e182612bec565b9050602081019050919050565b60006132016131fc846131bd565b612e10565b90508281526020810184848401111561321d5761321c612dab565b5b613228848285612e5c565b509392505050565b600082601f83011261324557613244612da6565b5b81356132558482602086016131ee565b91505092915050565b6000806000806080858703121561327857613277612aad565b5b600061328687828801612d24565b945050602061329787828801612d24565b93505060406132a887828801612c6f565b925050606085013567ffffffffffffffff8111156132c9576132c8612ab2565b5b6132d587828801613230565b91505092959194509250565b600080fd5b600080fd5b60008083601f84011261330157613300612da6565b5b8235905067ffffffffffffffff81111561331e5761331d6132e1565b5b60208301915083602082028301111561333a576133396132e6565b5b9250929050565b60008060006040848603121561335a57613359612aad565b5b600084013567ffffffffffffffff81111561337857613377612ab2565b5b613384868287016132eb565b9350935050602061339786828701612c6f565b9150509250925092565b600080604083850312156133b8576133b7612aad565b5b60006133c685828601612d24565b92505060206133d785828601612d24565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061342857607f821691505b60208210810361343b5761343a6133e1565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026134a37fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613466565b6134ad8683613466565b95508019841693508086168417925050509392505050565b6000819050919050565b60006134ea6134e56134e084612b72565b6134c5565b612b72565b9050919050565b6000819050919050565b613504836134cf565b613518613510826134f1565b848454613473565b825550505050565b600090565b61352d613520565b6135388184846134fb565b505050565b5b8181101561355c57613551600082613525565b60018101905061353e565b5050565b601f8211156135a15761357281613441565b61357b84613456565b8101602085101561358a578190505b61359e61359685613456565b83018261353d565b50505b505050565b600082821c905092915050565b60006135c4600019846008026135a6565b1980831691505092915050565b60006135dd83836135b3565b9150826002028217905092915050565b6135f682612ba6565b67ffffffffffffffff81111561360f5761360e612db0565b5b6136198254613410565b613624828285613560565b600060209050601f8311600181146136575760008415613645578287015190505b61364f85826135d1565b8655506136b7565b601f19841661366586613441565b60005b8281101561368d57848901518255600182019150602085019450602081019050613668565b868310156136aa57848901516136a6601f8916826135b3565b8355505b6001600288020188555050505b505050505050565b600081905092915050565b50565b60006136da6000836136bf565b91506136e5826136ca565b600082019050919050565b60006136fb826136cd565b9150819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061376e82612b72565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036137a05761379f613734565b5b600182019050919050565b7f43414e204e4f5420494e43524541534520535550504c59000000000000000000600082015250565b60006137e1601783612bb1565b91506137ec826137ab565b602082019050919050565b60006020820190508181036000830152613810816137d4565b9050919050565b600061382282612b72565b915061382d83612b72565b925082820190508082111561384557613844613734565b5b92915050565b7f596f75206861766520657863656564656420746865206c696d6974206f66206d60008201527f696e747320706572207472616e73616374696f6e000000000000000000000000602082015250565b60006138a7603483612bb1565b91506138b28261384b565b604082019050919050565b600060208201905081810360008301526138d68161389a565b9050919050565b7f596f75206861766520616c7265616479206d696e74656420796f7572206c696d60008201527f6974000000000000000000000000000000000000000000000000000000000000602082015250565b6000613939602283612bb1565b9150613944826138dd565b604082019050919050565b600060208201905081810360008301526139688161392c565b9050919050565b7f534f4c44204f5554000000000000000000000000000000000000000000000000600082015250565b60006139a5600883612bb1565b91506139b08261396f565b602082019050919050565b600060208201905081810360008301526139d481613998565b9050919050565b7f4d696e74696e67206973206e6f742063757272656e746c7920616c6c6f77656460008201527f2100000000000000000000000000000000000000000000000000000000000000602082015250565b6000613a37602183612bb1565b9150613a42826139db565b604082019050919050565b60006020820190508181036000830152613a6681613a2a565b9050919050565b6000613a7882612b72565b9150613a8383612b72565b9250828202613a9181612b72565b91508282048414831517613aa857613aa7613734565b5b5092915050565b7f596f7520646964206e6f742073656e6420656e6f756768204554480000000000600082015250565b6000613ae5601b83612bb1565b9150613af082613aaf565b602082019050919050565b60006020820190508181036000830152613b1481613ad8565b9050919050565b7f596f7520617265206e6f74206f6e207468652077686974656c697374206f722060008201527f6861766520616c7265616479207573656420796f75722077686974656c69737460208201527f206d696e74000000000000000000000000000000000000000000000000000000604082015250565b6000613b9d604583612bb1565b9150613ba882613b1b565b606082019050919050565b60006020820190508181036000830152613bcc81613b90565b9050919050565b60008160601b9050919050565b6000613beb82613bd3565b9050919050565b6000613bfd82613be0565b9050919050565b613c15613c1082612cd1565b613bf2565b82525050565b6000613c278284613c04565b60148201915081905092915050565b7f496e76616c6964204d65726b6c652050726f6f662e0000000000000000000000600082015250565b6000613c6c601583612bb1565b9150613c7782613c36565b602082019050919050565b60006020820190508181036000830152613c9b81613c5f565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000613cfe602f83612bb1565b9150613d0982613ca2565b604082019050919050565b60006020820190508181036000830152613d2d81613cf1565b9050919050565b600081905092915050565b6000613d4a82612ba6565b613d548185613d34565b9350613d64818560208601612bc2565b80840191505092915050565b60008154613d7d81613410565b613d878186613d34565b94506001821660008114613da25760018114613db757613dea565b60ff1983168652811515820286019350613dea565b613dc085613441565b60005b83811015613de257815481890152600182019150602081019050613dc3565b838801955050505b50505092915050565b6000613dff8285613d3f565b9150613e0b8284613d70565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613e73602683612bb1565b9150613e7e82613e17565b604082019050919050565b60006020820190508181036000830152613ea281613e66565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613edf602083612bb1565b9150613eea82613ea9565b602082019050919050565b60006020820190508181036000830152613f0e81613ed2565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000613f4b601f83612bb1565b9150613f5682613f15565b602082019050919050565b60006020820190508181036000830152613f7a81613f3e565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000613fa882613f81565b613fb28185613f8c565b9350613fc2818560208601612bc2565b613fcb81612bec565b840191505092915050565b6000608082019050613feb6000830187612ce3565b613ff86020830186612ce3565b6140056040830185612b7c565b81810360608301526140178184613f9d565b905095945050505050565b60008151905061403181612ae3565b92915050565b60006020828403121561404d5761404c612aad565b5b600061405b84828501614022565b9150509291505056fea26469706673582212206c6b324f7f40b1d61e71ba6f8577f22f314636dd360ac96d7d90066f8ccd69df64736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0443b6059e81aa03d4c08ce0ec4a06c1e1a39f36bc7da4dc8b7fd746d70087c1000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000c215ecc74b18bee297743efff1201e59fa5a01920000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d4e7043373274697558393333465541517473776b5a66326867346a4a5356597872337358734d46737669764c00000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d577369436f4e5756665578483479686d6d7531554d5457427848527273433652373945397745537053694d500000000000000000000000
-----Decoded View---------------
Arg [0] : _merkleRoot (bytes32): 0x0443b6059e81aa03d4c08ce0ec4a06c1e1a39f36bc7da4dc8b7fd746d70087c1
Arg [1] : _internalAccounts (address[]): 0xc215eCc74b18BEe297743efff1201e59FA5a0192
Arg [2] : _prefix (string): ipfs://QmNpC72tiuX933FUAQtswkZf2hg4jJSVYxr3sXsMFsvivL
Arg [3] : _contractURI (string): ipfs://QmWsiCoNWVfUxH4yhmmu1UMTWBxHRrsC6R79E9wESpSiMP
-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 0443b6059e81aa03d4c08ce0ec4a06c1e1a39f36bc7da4dc8b7fd746d70087c1
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [5] : 000000000000000000000000c215ecc74b18bee297743efff1201e59fa5a0192
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [7] : 697066733a2f2f516d4e7043373274697558393333465541517473776b5a6632
Arg [8] : 6867346a4a5356597872337358734d46737669764c0000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [10] : 697066733a2f2f516d577369436f4e5756665578483479686d6d7531554d5457
Arg [11] : 427848527273433652373945397745537053694d500000000000000000000000
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.