ERC-721
NFT
Overview
Max Total Supply
7,878 Dgenmon
Holders
4,550
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
0 DgenmonLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Dgenmon
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "./ERC721AQueryable.sol"; import "./access/Ownable.sol"; import "./security/Pausable.sol"; import "./security/ReentrancyGuard.sol"; import "./utils/Context.sol"; import "./utils/MerkleProof.sol"; import "./utils/Presalable.sol"; import "./utils/math/SafeMath.sol"; contract Dgenmon is ERC721AQueryable, Ownable, Pausable, Presalable, ReentrancyGuard { using SafeMath for uint; bytes32 public merkleRoot; string public baseTokenURI; string public hiddenTokenUri; bool public isRevealed = false; uint256 public constant PRICE = 0.0099 ether; uint256 public constant PRESALE_PRICE = 0.0069 ether; uint256 public constant MAX_TOKEN_COUNT = 7878; mapping(address => bool) public isPresaleMinted; address t1 = 0x0d19303C6E1eF14E2cD824281bDcdD06B8d9940f; address t2 = 0x1B63118C94F2Ee99B4138f578860E742BD83c9CF; bool internal _locked; constructor(string memory _hiddenTokenUri) ERC721A("Dgenmon", "Dgenmon") { setHiddenTokenUri(_hiddenTokenUri); presale(); } function totalMinted() public view returns (uint256) { return _totalMinted(); } function totalBurned() public view returns (uint256) { return _totalBurned(); } function numberMinted(address owner) public view returns (uint256) { return _numberMinted(owner); } function setMerkleRoot(bytes32 _merkleRoot) public onlyOwner { merkleRoot = _merkleRoot; } function setRevealed(bool _isRevealed) public onlyOwner { isRevealed = _isRevealed; } function setHiddenTokenUri(string memory _hiddenTokenUri) public onlyOwner { hiddenTokenUri = _hiddenTokenUri; } function mint(uint256 _amount) public payable whenNotPresaled whenNotPaused { require(_numberMinted(msg.sender) + _amount <= 4, "Can only mint 4 tokens at address"); require(_totalMinted() + _amount <= MAX_TOKEN_COUNT, "Exceeds maximum supply"); if (_numberMinted(msg.sender) == 0) require(msg.value >= PRICE * (_amount-1), "Ether value sent is not correct"); else require(msg.value >= PRICE * _amount, "Ether value sent is not correct"); _safeMint(msg.sender, _amount); } function presaleMint(uint256 _amount, bytes32[] calldata _merkleProof) public payable whenPresaled whenNotPaused { bytes32 leaf = keccak256(abi.encodePacked(_msgSender())); require(MerkleProof.verify(_merkleProof, merkleRoot, leaf), "Not whitelisted not allowed mint for presale, Invalid proof!"); require(isPresaleMinted[msg.sender] == false, "Already mint for presale"); require(_numberMinted(msg.sender) + _amount <= 4, "Can only mint 4 tokens at address"); require(_totalMinted() + _amount <= MAX_TOKEN_COUNT, "Exceeds maximum supply"); require( msg.value >= PRESALE_PRICE * (_amount-1), "Ether value sent is not correct"); _safeMint(msg.sender, _amount); isPresaleMinted[msg.sender] = true; } function deployerMint(uint256 _amount) public onlyOwner { _safeMint(msg.sender, _amount); } function isProofed(bytes32[] calldata _merkleProof) public view returns (bool) { bytes32 leaf = keccak256(abi.encodePacked(_msgSender())); return MerkleProof.verify(_merkleProof, merkleRoot, leaf); } function burnUnlucky(uint256[] memory _tokenIds) public onlyOwner whenNotPaused { for(uint256 i = 0; i < _tokenIds.length; i++) { _burn(_tokenIds[i]); } } function _baseURI() internal view virtual override returns (string memory) { return baseTokenURI; } function setBaseURI(string memory _baseTokenURI) public onlyOwner { baseTokenURI = _baseTokenURI; } function withdraw() external onlyOwner nonReentrant { uint256 _balance = address(this).balance / 100; require(payable(t1).send(_balance * 80)); require(payable(t2).send(_balance * 20)); } function pause() public onlyOwner { _pause(); } function unpause() public onlyOwner { _unpause(); } function presale() public onlyOwner { _presale(); } function unpresale() public onlyOwner { _unpresale(); } function _startTokenId() internal view virtual override returns (uint256) { return 1; } function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { require(_exists(_tokenId), 'ERC721Metadata: URI query for nonexistent token'); if (isRevealed == false) { return hiddenTokenUri; } string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, _toString(_tokenId))):''; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import './IERC721AQueryable.sol'; import './ERC721A.sol'; /** * @title ERC721A Queryable * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable { /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * - `addr` = `address(0)` * - `startTimestamp` = `0` * - `burned` = `false` * - `extraData` = `0` * * If the `tokenId` is burned: * - `addr` = `<Address of owner before token was burned>` * - `startTimestamp` = `<Timestamp when token was burned>` * - `burned = `true` * - `extraData` = `<Extra data when token was burned>` * * Otherwise: * - `addr` = `<Address of owner>` * - `startTimestamp` = `<Timestamp of start of ownership>` * - `burned = `false` * - `extraData` = `<Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) public view override returns (TokenOwnership memory) { TokenOwnership memory ownership; if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) { return ownership; } ownership = _ownershipAt(tokenId); if (ownership.burned) { return ownership; } return _ownershipOf(tokenId); } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view override returns (TokenOwnership[] memory) { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength); for (uint256 i; i != tokenIdsLength; ++i) { ownerships[i] = explicitOwnershipOf(tokenIds[i]); } return ownerships; } } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start` < `stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view override returns (uint256[] memory) { unchecked { if (start >= stop) revert InvalidQueryRange(); uint256 tokenIdsIdx; uint256 stopLimit = _nextTokenId(); // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, stopLimit)`. if (stop > stopLimit) { stop = stopLimit; } uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (start < stop) { uint256 rangeLength = stop - start; if (rangeLength < tokenIdsMaxLength) { tokenIdsMaxLength = rangeLength; } } else { tokenIdsMaxLength = 0; } uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength); if (tokenIdsMaxLength == 0) { return tokenIds; } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`. // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } // Downsize the array to fit. assembly { mstore(tokenIds, tokenIdsIdx) } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(totalSupply) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K pfp collections should be fine). */ function tokensOfOwner(address owner) external view override returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "./Context.sol"; abstract contract Presalable is Context { /** * @dev Emitted when the presale is triggered by `account`. */ event Presaled(address account); /** * @dev Emitted when the presale is lifted by `account`. */ event Unpresaled(address account); bool private _presaled; modifier whenPresaled() { require(_presaled, "Sale closed"); _; } modifier whenNotPresaled() { require(!_presaled, "Presale closed"); _; } function presaled() public view virtual returns (bool) { return _presaled; } function _presale() internal virtual whenNotPresaled { _presaled = true; emit Presaled(_msgSender()); } function _unpresale() internal virtual whenPresaled { _presaled = false; emit Unpresaled(_msgSender()); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of an ERC721AQueryable compliant contract. */ interface IERC721AQueryable is IERC721A { /** * Invalid query range (`start` >= `stop`). */ error InvalidQueryRange(); /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * - `addr` = `address(0)` * - `startTimestamp` = `0` * - `burned` = `false` * * If the `tokenId` is burned: * - `addr` = `<Address of owner before token was burned>` * - `startTimestamp` = `<Timestamp when token was burned>` * - `burned = `true` * * Otherwise: * - `addr` = `<Address of owner>` * - `startTimestamp` = `<Timestamp of start of ownership>` * - `burned = `false` */ function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory); /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory); /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start` < `stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory); /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(totalSupply) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K pfp collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev ERC721 token receiver interface. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, * including the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at `_startTokenId()` * (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Mask of an entry in packed address data. uint256 private constant BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with `_mintERC2309`. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to `_mintERC2309` // is required to cause an overflow, which is unrealistic. uint256 private constant MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The tokenId of the next token to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See `_packedOwnershipOf` implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see `_totalMinted`. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to `_startTokenId()` unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view returns (uint256) { return _burnCounter; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes of the XOR of // all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165 // e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)` return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_MINTED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_BURNED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX); _packedAddressData[owner] = packed; } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & BITMASK_BURNED == 0) { // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. // // We can directly compare the packed value. // If the address is zero, packed is zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP); ownership.burned = packed & BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> BITPOS_EXTRA_DATA); } /** * Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, BITMASK_ADDRESS) // `owner | (block.timestamp << BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << BITPOS_NEXT_INITIALIZED`. result := shl(BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned. } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 tokenId = startTokenId; uint256 end = startTokenId + quantity; do { emit Transfer(address(0), to, tokenId++); } while (tokenId < end); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { mapping(uint256 => address) storage tokenApprovalsPtr = _tokenApprovals; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`. assembly { // Compute the slot. mstore(0x00, tokenId) mstore(0x20, tokenApprovalsPtr.slot) approvedAddressSlot := keccak256(0x00, 0x40) // Load the slot's value from storage. approvedAddress := sload(approvedAddressSlot) } } /** * @dev Returns whether the `approvedAddress` is equals to `from` or `msgSender`. */ function _isOwnerOrApproved( address approvedAddress, address from, address msgSender ) private pure returns (bool result) { assembly { // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean. from := and(from, BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, BITMASK_ADDRESS) // `msgSender == from || msgSender == approvedAddress`. result := or(eq(msgSender, from), eq(msgSender, approvedAddress)) } } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (BITMASK_BURNED | BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << BITPOS_EXTRA_DATA; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. * This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. * This includes minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function _toString(uint256 value) internal pure returns (string memory ptr) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128. ptr := add(mload(0x40), 128) // Update the free memory pointer to allocate. mstore(0x40, ptr) // Cache the end of the memory to calculate the length later. let end := ptr // We write the string from the rightmost digit to the leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // Costs a bit more than early returning for the zero case, // but cheaper in terms of deployment and overall runtime costs. for { // Initialize and perform the first pass without check. let temp := value // Move the pointer 1 byte leftwards to point to an empty character slot. ptr := sub(ptr, 1) // Write the character to the pointer. 48 is the ASCII index of '0'. mstore8(ptr, add(48, mod(temp, 10))) temp := div(temp, 10) } temp { // Keep dividing `temp` until zero. temp := div(temp, 10) } { // Body of the for loop. ptr := sub(ptr, 1) mstore8(ptr, add(48, mod(temp, 10))) } let length := sub(end, ptr) // Move the pointer 32 bytes leftwards to make room for the length. ptr := sub(ptr, 32) // Store the length. mstore(ptr, length) } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set through `_extraData`. uint24 extraData; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); // ============================== // IERC165 // ============================== /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================== // IERC721 // ============================== /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================== // IERC721Metadata // ============================== /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================== // IERC2309 // ============================== /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` (inclusive) is transferred from `from` to `to`, * as defined in the ERC2309 standard. See `_mintERC2309` for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
{ "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":"string","name":"_hiddenTokenUri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Presaled","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpresaled","type":"event"},{"inputs":[],"name":"MAX_TOKEN_COUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRESALE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"burnUnlucky","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deployerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hiddenTokenUri","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[{"internalType":"address","name":"","type":"address"}],"name":"isPresaleMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"isProofed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"presaled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseTokenURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_hiddenTokenUri","type":"string"}],"name":"setHiddenTokenUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isRevealed","type":"bool"}],"name":"setRevealed","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":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBurned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526000600d60006101000a81548160ff021916908315150217905550730d19303c6e1ef14e2cd824281bdcdd06b8d9940f600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550731b63118c94f2ee99b4138f578860e742bd83c9cf601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550348015620000d657600080fd5b5060405162005c6338038062005c638339818101604052810190620000fc91906200076f565b6040518060400160405280600781526020017f4467656e6d6f6e000000000000000000000000000000000000000000000000008152506040518060400160405280600781526020017f4467656e6d6f6e0000000000000000000000000000000000000000000000000081525081600290805190602001906200018092919062000522565b5080600390805190602001906200019992919062000522565b50620001aa6200021d60201b60201c565b6000819055505050620001d2620001c66200022660201b60201c565b6200022e60201b60201c565b6000600860146101000a81548160ff02191690831515021790555060016009819055506200020681620002f460201b60201c565b620002166200039f60201b60201c565b506200097c565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620003046200022660201b60201c565b73ffffffffffffffffffffffffffffffffffffffff166200032a6200044060201b60201c565b73ffffffffffffffffffffffffffffffffffffffff161462000383576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200037a9062000821565b60405180910390fd5b80600c90805190602001906200039b92919062000522565b5050565b620003af6200022660201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620003d56200044060201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16146200042e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620004259062000821565b60405180910390fd5b6200043e6200046a60201b60201c565b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600860159054906101000a900460ff1615620004bd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620004b49062000893565b60405180910390fd5b6001600860156101000a81548160ff0219169083151502179055507fb1412a7cd96bc4195d633c938189c320dcbeb2cff60c1b8bdd872678fb3514b4620005096200022660201b60201c565b604051620005189190620008fa565b60405180910390a1565b828054620005309062000946565b90600052602060002090601f016020900481019282620005545760008555620005a0565b82601f106200056f57805160ff1916838001178555620005a0565b82800160010185558215620005a0579182015b828111156200059f57825182559160200191906001019062000582565b5b509050620005af9190620005b3565b5090565b5b80821115620005ce576000816000905550600101620005b4565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200063b82620005f0565b810181811067ffffffffffffffff821117156200065d576200065c62000601565b5b80604052505050565b600062000672620005d2565b905062000680828262000630565b919050565b600067ffffffffffffffff821115620006a357620006a262000601565b5b620006ae82620005f0565b9050602081019050919050565b60005b83811015620006db578082015181840152602081019050620006be565b83811115620006eb576000848401525b50505050565b600062000708620007028462000685565b62000666565b905082815260208101848484011115620007275762000726620005eb565b5b62000734848285620006bb565b509392505050565b600082601f830112620007545762000753620005e6565b5b815162000766848260208601620006f1565b91505092915050565b600060208284031215620007885762000787620005dc565b5b600082015167ffffffffffffffff811115620007a957620007a8620005e1565b5b620007b7848285016200073c565b91505092915050565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600062000809602083620007c0565b91506200081682620007d1565b602082019050919050565b600060208201905081810360008301526200083c81620007fa565b9050919050565b7f50726573616c6520636c6f736564000000000000000000000000000000000000600082015250565b60006200087b600e83620007c0565b9150620008888262000843565b602082019050919050565b60006020820190508181036000830152620008ae816200086c565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620008e282620008b5565b9050919050565b620008f481620008d5565b82525050565b6000602082019050620009116000830184620008e9565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200095f57607f821691505b6020821081141562000976576200097562000917565b5b50919050565b6152d7806200098c6000396000f3fe6080604052600436106102935760003560e01c80638462151c1161015a578063c87b56dd116100c1578063e0a808531161007a578063e0a80853146109f7578063e3e1e8ef14610a20578063e985e9c514610a3c578063f2fde38b14610a79578063fa7ffe6814610aa2578063fdea8e0b14610acd57610293565b8063c87b56dd146108bf578063d0bbb0d7146108fc578063d547cfb714610927578063d7bddf8714610952578063d89135cd1461098f578063dc33e681146109ba57610293565b8063a0712d6811610113578063a0712d68146107c0578063a22cb465146107dc578063a2309ff814610805578063ae8bdd3014610830578063b88d4fde14610859578063c23dc68f1461088257610293565b80638462151c146106ae57806385493853146106eb5780638d859f3e146107025780638da5cb5b1461072d57806395d89b411461075857806399a2557a1461078357610293565b806342842e0e116101fe57806362dc6e21116101b757806362dc6e21146105b25780636352211e146105dd57806370a082311461061a578063715018a6146106575780637cb647591461066e5780638456cb591461069757610293565b806342842e0e146104a25780634cb2f9ea146104cb57806354214f69146104f657806355f804b3146105215780635bbb21771461054a5780635c975abb1461058757610293565b806323b872dd1161025057806323b872dd146103ce5780632670822a146103f75780632eb4a7ab146104205780632f816fd91461044b5780633ccfd60b146104745780633f4ba83a1461048b57610293565b806301ffc9a71461029857806306fdde03146102d5578063081812fc14610300578063095ea7b31461033d57806318160ddd146103665780631e94cbd614610391575b600080fd5b3480156102a457600080fd5b506102bf60048036038101906102ba9190613c5f565b610ae4565b6040516102cc9190613ca7565b60405180910390f35b3480156102e157600080fd5b506102ea610b76565b6040516102f79190613d5b565b60405180910390f35b34801561030c57600080fd5b5061032760048036038101906103229190613db3565b610c08565b6040516103349190613e21565b60405180910390f35b34801561034957600080fd5b50610364600480360381019061035f9190613e68565b610c84565b005b34801561037257600080fd5b5061037b610dc5565b6040516103889190613eb7565b60405180910390f35b34801561039d57600080fd5b506103b860048036038101906103b39190613f37565b610ddc565b6040516103c59190613ca7565b60405180910390f35b3480156103da57600080fd5b506103f560048036038101906103f09190613f84565b610e66565b005b34801561040357600080fd5b5061041e60048036038101906104199190613db3565b61118b565b005b34801561042c57600080fd5b50610435611214565b6040516104429190613ff0565b60405180910390f35b34801561045757600080fd5b50610472600480360381019061046d9190614149565b61121a565b005b34801561048057600080fd5b50610489611324565b005b34801561049757600080fd5b506104a06114e2565b005b3480156104ae57600080fd5b506104c960048036038101906104c49190613f84565b611568565b005b3480156104d757600080fd5b506104e0611588565b6040516104ed9190613ca7565b60405180910390f35b34801561050257600080fd5b5061050b61159f565b6040516105189190613ca7565b60405180910390f35b34801561052d57600080fd5b5061054860048036038101906105439190614247565b6115b2565b005b34801561055657600080fd5b50610571600480360381019061056c9190614149565b611648565b60405161057e91906143f3565b60405180910390f35b34801561059357600080fd5b5061059c611709565b6040516105a99190613ca7565b60405180910390f35b3480156105be57600080fd5b506105c7611720565b6040516105d49190613eb7565b60405180910390f35b3480156105e957600080fd5b5061060460048036038101906105ff9190613db3565b61172b565b6040516106119190613e21565b60405180910390f35b34801561062657600080fd5b50610641600480360381019061063c9190614415565b61173d565b60405161064e9190613eb7565b60405180910390f35b34801561066357600080fd5b5061066c6117f6565b005b34801561067a57600080fd5b506106956004803603810190610690919061446e565b61187e565b005b3480156106a357600080fd5b506106ac611904565b005b3480156106ba57600080fd5b506106d560048036038101906106d09190614415565b61198a565b6040516106e29190614559565b60405180910390f35b3480156106f757600080fd5b50610700611ad4565b005b34801561070e57600080fd5b50610717611b5a565b6040516107249190613eb7565b60405180910390f35b34801561073957600080fd5b50610742611b65565b60405161074f9190613e21565b60405180910390f35b34801561076457600080fd5b5061076d611b8f565b60405161077a9190613d5b565b60405180910390f35b34801561078f57600080fd5b506107aa60048036038101906107a5919061457b565b611c21565b6040516107b79190614559565b60405180910390f35b6107da60048036038101906107d59190613db3565b611e35565b005b3480156107e857600080fd5b5061080360048036038101906107fe91906145fa565b612055565b005b34801561081157600080fd5b5061081a6121cd565b6040516108279190613eb7565b60405180910390f35b34801561083c57600080fd5b5061085760048036038101906108529190614247565b6121dc565b005b34801561086557600080fd5b50610880600480360381019061087b91906146db565b612272565b005b34801561088e57600080fd5b506108a960048036038101906108a49190613db3565b6122e5565b6040516108b691906147b3565b60405180910390f35b3480156108cb57600080fd5b506108e660048036038101906108e19190613db3565b61234f565b6040516108f39190613d5b565b60405180910390f35b34801561090857600080fd5b506109116124a5565b60405161091e9190613eb7565b60405180910390f35b34801561093357600080fd5b5061093c6124ab565b6040516109499190613d5b565b60405180910390f35b34801561095e57600080fd5b5061097960048036038101906109749190614415565b612539565b6040516109869190613ca7565b60405180910390f35b34801561099b57600080fd5b506109a4612559565b6040516109b19190613eb7565b60405180910390f35b3480156109c657600080fd5b506109e160048036038101906109dc9190614415565b612568565b6040516109ee9190613eb7565b60405180910390f35b348015610a0357600080fd5b50610a1e6004803603810190610a1991906147ce565b61257a565b005b610a3a6004803603810190610a3591906147fb565b612613565b005b348015610a4857600080fd5b50610a636004803603810190610a5e919061485b565b612973565b604051610a709190613ca7565b60405180910390f35b348015610a8557600080fd5b50610aa06004803603810190610a9b9190614415565b612a07565b005b348015610aae57600080fd5b50610ab7612aff565b604051610ac49190613d5b565b60405180910390f35b348015610ad957600080fd5b50610ae2612b8d565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b3f57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b6f5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060028054610b85906148ca565b80601f0160208091040260200160405190810160405280929190818152602001828054610bb1906148ca565b8015610bfe5780601f10610bd357610100808354040283529160200191610bfe565b820191906000526020600020905b815481529060010190602001808311610be157829003601f168201915b5050505050905090565b6000610c1382612c13565b610c49576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c8f8261172b565b90508073ffffffffffffffffffffffffffffffffffffffff16610cb0612c72565b73ffffffffffffffffffffffffffffffffffffffff1614610d1357610cdc81610cd7612c72565b612973565b610d12576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610dcf612c7a565b6001546000540303905090565b600080610de7612c83565b604051602001610df79190614944565b604051602081830303815290604052805190602001209050610e5d848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600a5483612c8b565b91505092915050565b6000610e7182612ca2565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ed8576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610ee484612d70565b91509150610efa8187610ef5612c72565b612d92565b610f4657610f0f86610f0a612c72565b612973565b610f45576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610fad576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610fba8686866001612dd6565b8015610fc557600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506110938561106f888887612ddc565b7c020000000000000000000000000000000000000000000000000000000017612e04565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416141561111b576000600185019050600060046000838152602001908152602001600020541415611119576000548114611118578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46111838686866001612e2f565b505050505050565b611193612c83565b73ffffffffffffffffffffffffffffffffffffffff166111b1611b65565b73ffffffffffffffffffffffffffffffffffffffff1614611207576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111fe906149ab565b60405180910390fd5b6112113382612e35565b50565b600a5481565b611222612c83565b73ffffffffffffffffffffffffffffffffffffffff16611240611b65565b73ffffffffffffffffffffffffffffffffffffffff1614611296576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161128d906149ab565b60405180910390fd5b61129e611709565b156112de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112d590614a17565b60405180910390fd5b60005b81518110156113205761130d828281518110611300576112ff614a37565b5b6020026020010151612e53565b808061131890614a95565b9150506112e1565b5050565b61132c612c83565b73ffffffffffffffffffffffffffffffffffffffff1661134a611b65565b73ffffffffffffffffffffffffffffffffffffffff16146113a0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611397906149ab565b60405180910390fd5b600260095414156113e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113dd90614b2a565b60405180910390fd5b600260098190555060006064476113fd9190614b79565b9050600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc6050836114489190614baa565b9081150290604051600060405180830381858888f1935050505061146b57600080fd5b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc6014836114b49190614baa565b9081150290604051600060405180830381858888f193505050506114d757600080fd5b506001600981905550565b6114ea612c83565b73ffffffffffffffffffffffffffffffffffffffff16611508611b65565b73ffffffffffffffffffffffffffffffffffffffff161461155e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611555906149ab565b60405180910390fd5b611566612e61565b565b61158383838360405180602001604052806000815250612272565b505050565b6000600860159054906101000a900460ff16905090565b600d60009054906101000a900460ff1681565b6115ba612c83565b73ffffffffffffffffffffffffffffffffffffffff166115d8611b65565b73ffffffffffffffffffffffffffffffffffffffff161461162e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611625906149ab565b60405180910390fd5b80600b9080519060200190611644929190613b01565b5050565b606060008251905060008167ffffffffffffffff81111561166c5761166b61400b565b5b6040519080825280602002602001820160405280156116a557816020015b611692613b87565b81526020019060019003908161168a5790505b50905060005b8281146116fe576116d58582815181106116c8576116c7614a37565b5b60200260200101516122e5565b8282815181106116e8576116e7614a37565b5b60200260200101819052508060010190506116ab565b508092505050919050565b6000600860149054906101000a900460ff16905090565b6618838370f3400081565b600061173682612ca2565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156117a5576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6117fe612c83565b73ffffffffffffffffffffffffffffffffffffffff1661181c611b65565b73ffffffffffffffffffffffffffffffffffffffff1614611872576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611869906149ab565b60405180910390fd5b61187c6000612f03565b565b611886612c83565b73ffffffffffffffffffffffffffffffffffffffff166118a4611b65565b73ffffffffffffffffffffffffffffffffffffffff16146118fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118f1906149ab565b60405180910390fd5b80600a8190555050565b61190c612c83565b73ffffffffffffffffffffffffffffffffffffffff1661192a611b65565b73ffffffffffffffffffffffffffffffffffffffff1614611980576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611977906149ab565b60405180910390fd5b611988612fc9565b565b6060600080600061199a8561173d565b905060008167ffffffffffffffff8111156119b8576119b761400b565b5b6040519080825280602002602001820160405280156119e65781602001602082028036833780820191505090505b5090506119f1613b87565b60006119fb612c7a565b90505b838614611ac657611a0e8161306c565b9150816040015115611a1f57611abb565b600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614611a5f57816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415611aba5780838780600101985081518110611aad57611aac614a37565b5b6020026020010181815250505b5b8060010190506119fe565b508195505050505050919050565b611adc612c83565b73ffffffffffffffffffffffffffffffffffffffff16611afa611b65565b73ffffffffffffffffffffffffffffffffffffffff1614611b50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b47906149ab565b60405180910390fd5b611b58613097565b565b66232bff5f46c00081565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054611b9e906148ca565b80601f0160208091040260200160405190810160405280929190818152602001828054611bca906148ca565b8015611c175780601f10611bec57610100808354040283529160200191611c17565b820191906000526020600020905b815481529060010190602001808311611bfa57829003601f168201915b5050505050905090565b6060818310611c5c576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080611c67613141565b9050611c71612c7a565b851015611c8357611c80612c7a565b94505b80841115611c8f578093505b6000611c9a8761173d565b905084861015611cbd576000868603905081811015611cb7578091505b50611cc2565b600090505b60008167ffffffffffffffff811115611cde57611cdd61400b565b5b604051908082528060200260200182016040528015611d0c5781602001602082028036833780820191505090505b5090506000821415611d245780945050505050611e2e565b6000611d2f886122e5565b905060008160400151611d4457816000015190505b60008990505b888114158015611d5a5750848714155b15611e2057611d688161306c565b9250826040015115611d7957611e15565b600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff1614611db957826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611e145780848880600101995081518110611e0757611e06614a37565b5b6020026020010181815250505b5b806001019050611d4a565b508583528296505050505050505b9392505050565b600860159054906101000a900460ff1615611e85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7c90614c50565b60405180910390fd5b611e8d611709565b15611ecd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ec490614a17565b60405180910390fd5b600481611ed93361314a565b611ee39190614c70565b1115611f24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f1b90614d38565b60405180910390fd5b611ec681611f306131a1565b611f3a9190614c70565b1115611f7b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f7290614da4565b60405180910390fd5b6000611f863361314a565b1415611ff257600181611f999190614dc4565b66232bff5f46c000611fab9190614baa565b341015611fed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fe490614e44565b60405180910390fd5b612048565b8066232bff5f46c0006120059190614baa565b341015612047576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203e90614e44565b60405180910390fd5b5b6120523382612e35565b50565b61205d612c72565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156120c2576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006120cf612c72565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661217c612c72565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516121c19190613ca7565b60405180910390a35050565b60006121d76131a1565b905090565b6121e4612c83565b73ffffffffffffffffffffffffffffffffffffffff16612202611b65565b73ffffffffffffffffffffffffffffffffffffffff1614612258576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161224f906149ab565b60405180910390fd5b80600c908051906020019061226e929190613b01565b5050565b61227d848484610e66565b60008373ffffffffffffffffffffffffffffffffffffffff163b146122df576122a8848484846131b4565b6122de576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6122ed613b87565b6122f5613b87565b6122fd612c7a565b831080612311575061230d613141565b8310155b1561231f578091505061234a565b6123288361306c565b905080604001511561233d578091505061234a565b61234683613314565b9150505b919050565b606061235a82612c13565b612399576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161239090614ed6565b60405180910390fd5b60001515600d60009054906101000a900460ff161515141561244757600c80546123c2906148ca565b80601f01602080910402602001604051908101604052809291908181526020018280546123ee906148ca565b801561243b5780601f106124105761010080835404028352916020019161243b565b820191906000526020600020905b81548152906001019060200180831161241e57829003601f168201915b505050505090506124a0565b6000612451613334565b90506000815111612471576040518060200160405280600081525061249c565b8061247b846133c6565b60405160200161248c929190614f32565b6040516020818303038152906040525b9150505b919050565b611ec681565b600b80546124b8906148ca565b80601f01602080910402602001604051908101604052809291908181526020018280546124e4906148ca565b80156125315780601f1061250657610100808354040283529160200191612531565b820191906000526020600020905b81548152906001019060200180831161251457829003601f168201915b505050505081565b600e6020528060005260406000206000915054906101000a900460ff1681565b6000612563613420565b905090565b60006125738261314a565b9050919050565b612582612c83565b73ffffffffffffffffffffffffffffffffffffffff166125a0611b65565b73ffffffffffffffffffffffffffffffffffffffff16146125f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125ed906149ab565b60405180910390fd5b80600d60006101000a81548160ff02191690831515021790555050565b600860159054906101000a900460ff16612662576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161265990614fa2565b60405180910390fd5b61266a611709565b156126aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126a190614a17565b60405180910390fd5b60006126b4612c83565b6040516020016126c49190614944565b60405160208183030381529060405280519060200120905061272a838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600a5483612c8b565b612769576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161276090615034565b60405180910390fd5b60001515600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515146127fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127f3906150a0565b60405180910390fd5b6004846128083361314a565b6128129190614c70565b1115612853576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161284a90614d38565b60405180910390fd5b611ec68461285f6131a1565b6128699190614c70565b11156128aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128a190614da4565b60405180910390fd5b6001846128b79190614dc4565b6618838370f340006128c99190614baa565b34101561290b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161290290614e44565b60405180910390fd5b6129153385612e35565b6001600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050505050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612a0f612c83565b73ffffffffffffffffffffffffffffffffffffffff16612a2d611b65565b73ffffffffffffffffffffffffffffffffffffffff1614612a83576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a7a906149ab565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612af3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aea90615132565b60405180910390fd5b612afc81612f03565b50565b600c8054612b0c906148ca565b80601f0160208091040260200160405190810160405280929190818152602001828054612b38906148ca565b8015612b855780601f10612b5a57610100808354040283529160200191612b85565b820191906000526020600020905b815481529060010190602001808311612b6857829003601f168201915b505050505081565b612b95612c83565b73ffffffffffffffffffffffffffffffffffffffff16612bb3611b65565b73ffffffffffffffffffffffffffffffffffffffff1614612c09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c00906149ab565b60405180910390fd5b612c1161342a565b565b600081612c1e612c7a565b11158015612c2d575060005482105b8015612c6b575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b600033905090565b600082612c9885846134d5565b1490509392505050565b60008082905080612cb1612c7a565b11612d3957600054811015612d385760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415612d36575b6000811415612d2c576004600083600190039350838152602001908152602001600020549050612d01565b8092505050612d6b565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000806000600690508360005280602052604060002092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612df386868461352b565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b612e4f828260405180602001604052806000815250613534565b5050565b612e5e8160006135d1565b50565b612e69611709565b612ea8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e9f9061519e565b60405180910390fd5b6000600860146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612eec612c83565b604051612ef99190613e21565b60405180910390a1565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612fd1611709565b15613011576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161300890614a17565b60405180910390fd5b6001600860146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258613055612c83565b6040516130629190613e21565b60405180910390a1565b613074613b87565b6130906004600084815260200190815260200160002054613825565b9050919050565b600860159054906101000a900460ff166130e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130dd90614fa2565b60405180910390fd5b6000600860156101000a81548160ff0219169083151502179055507f9e209206b95275a497262e47a30901f0716b2d6d19618dd5e9b7b68237e7cb7161312a612c83565b6040516131379190613e21565b60405180910390a1565b60008054905090565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b60006131ab612c7a565b60005403905090565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026131da612c72565b8786866040518563ffffffff1660e01b81526004016131fc9493929190615213565b602060405180830381600087803b15801561321657600080fd5b505af192505050801561324757506040513d601f19601f820116820180604052508101906132449190615274565b60015b6132c1573d8060008114613277576040519150601f19603f3d011682016040523d82523d6000602084013e61327c565b606091505b506000815114156132b9576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b61331c613b87565b61332d61332883612ca2565b613825565b9050919050565b6060600b8054613343906148ca565b80601f016020809104026020016040519081016040528092919081815260200182805461336f906148ca565b80156133bc5780601f10613391576101008083540402835291602001916133bc565b820191906000526020600020905b81548152906001019060200180831161339f57829003601f168201915b5050505050905090565b60606080604051019050806040528082600183039250600a81066030018353600a810490505b801561340c57600183039250600a81066030018353600a810490506133ec565b508181036020830392508083525050919050565b6000600154905090565b600860159054906101000a900460ff161561347a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161347190614c50565b60405180910390fd5b6001600860156101000a81548160ff0219169083151502179055507fb1412a7cd96bc4195d633c938189c320dcbeb2cff60c1b8bdd872678fb3514b46134be612c83565b6040516134cb9190613e21565b60405180910390a1565b60008082905060005b84518110156135205761350b828683815181106134fe576134fd614a37565b5b60200260200101516138db565b9150808061351890614a95565b9150506134de565b508091505092915050565b60009392505050565b61353e8383613906565b60008373ffffffffffffffffffffffffffffffffffffffff163b146135cc57600080549050600083820390505b61357e60008683806001019450866131b4565b6135b4576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811061356b5781600054146135c957600080fd5b50505b505050565b60006135dc83612ca2565b905060008190506000806135ef86612d70565b9150915084156136585761360b8184613606612c72565b612d92565b613657576136208361361b612c72565b612973565b613656576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b613666836000886001612dd6565b801561367157600082555b600160806001901b03600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613719836136d685600088612ddc565b7c02000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000001717612e04565b600460008881526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000851614156137a157600060018701905060006004600083815260200190815260200160002054141561379f57600054811461379e578460046000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461380b836000886001612e2f565b600160008154809291906001019190505550505050505050565b61382d613b87565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b60008183106138f3576138ee8284613ada565b6138fe565b6138fd8383613ada565b5b905092915050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613973576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008214156139ae576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6139bb6000848385612dd6565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613a3283613a236000866000612ddc565b613a2c85613af1565b17612e04565b60046000838152602001908152602001600020819055506000819050600083830190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808210613a5657806000819055505050613ad56000848385612e2f565b505050565b600082600052816020526040600020905092915050565b60006001821460e11b9050919050565b828054613b0d906148ca565b90600052602060002090601f016020900481019282613b2f5760008555613b76565b82601f10613b4857805160ff1916838001178555613b76565b82800160010185558215613b76579182015b82811115613b75578251825591602001919060010190613b5a565b5b509050613b839190613bd6565b5090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b5b80821115613bef576000816000905550600101613bd7565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613c3c81613c07565b8114613c4757600080fd5b50565b600081359050613c5981613c33565b92915050565b600060208284031215613c7557613c74613bfd565b5b6000613c8384828501613c4a565b91505092915050565b60008115159050919050565b613ca181613c8c565b82525050565b6000602082019050613cbc6000830184613c98565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613cfc578082015181840152602081019050613ce1565b83811115613d0b576000848401525b50505050565b6000601f19601f8301169050919050565b6000613d2d82613cc2565b613d378185613ccd565b9350613d47818560208601613cde565b613d5081613d11565b840191505092915050565b60006020820190508181036000830152613d758184613d22565b905092915050565b6000819050919050565b613d9081613d7d565b8114613d9b57600080fd5b50565b600081359050613dad81613d87565b92915050565b600060208284031215613dc957613dc8613bfd565b5b6000613dd784828501613d9e565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613e0b82613de0565b9050919050565b613e1b81613e00565b82525050565b6000602082019050613e366000830184613e12565b92915050565b613e4581613e00565b8114613e5057600080fd5b50565b600081359050613e6281613e3c565b92915050565b60008060408385031215613e7f57613e7e613bfd565b5b6000613e8d85828601613e53565b9250506020613e9e85828601613d9e565b9150509250929050565b613eb181613d7d565b82525050565b6000602082019050613ecc6000830184613ea8565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112613ef757613ef6613ed2565b5b8235905067ffffffffffffffff811115613f1457613f13613ed7565b5b602083019150836020820283011115613f3057613f2f613edc565b5b9250929050565b60008060208385031215613f4e57613f4d613bfd565b5b600083013567ffffffffffffffff811115613f6c57613f6b613c02565b5b613f7885828601613ee1565b92509250509250929050565b600080600060608486031215613f9d57613f9c613bfd565b5b6000613fab86828701613e53565b9350506020613fbc86828701613e53565b9250506040613fcd86828701613d9e565b9150509250925092565b6000819050919050565b613fea81613fd7565b82525050565b60006020820190506140056000830184613fe1565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61404382613d11565b810181811067ffffffffffffffff821117156140625761406161400b565b5b80604052505050565b6000614075613bf3565b9050614081828261403a565b919050565b600067ffffffffffffffff8211156140a1576140a061400b565b5b602082029050602081019050919050565b60006140c56140c084614086565b61406b565b905080838252602082019050602084028301858111156140e8576140e7613edc565b5b835b8181101561411157806140fd8882613d9e565b8452602084019350506020810190506140ea565b5050509392505050565b600082601f8301126141305761412f613ed2565b5b81356141408482602086016140b2565b91505092915050565b60006020828403121561415f5761415e613bfd565b5b600082013567ffffffffffffffff81111561417d5761417c613c02565b5b6141898482850161411b565b91505092915050565b600080fd5b600067ffffffffffffffff8211156141b2576141b161400b565b5b6141bb82613d11565b9050602081019050919050565b82818337600083830152505050565b60006141ea6141e584614197565b61406b565b90508281526020810184848401111561420657614205614192565b5b6142118482856141c8565b509392505050565b600082601f83011261422e5761422d613ed2565b5b813561423e8482602086016141d7565b91505092915050565b60006020828403121561425d5761425c613bfd565b5b600082013567ffffffffffffffff81111561427b5761427a613c02565b5b61428784828501614219565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6142c581613e00565b82525050565b600067ffffffffffffffff82169050919050565b6142e8816142cb565b82525050565b6142f781613c8c565b82525050565b600062ffffff82169050919050565b614315816142fd565b82525050565b60808201600082015161433160008501826142bc565b50602082015161434460208501826142df565b50604082015161435760408501826142ee565b50606082015161436a606085018261430c565b50505050565b600061437c838361431b565b60808301905092915050565b6000602082019050919050565b60006143a082614290565b6143aa818561429b565b93506143b5836142ac565b8060005b838110156143e65781516143cd8882614370565b97506143d883614388565b9250506001810190506143b9565b5085935050505092915050565b6000602082019050818103600083015261440d8184614395565b905092915050565b60006020828403121561442b5761442a613bfd565b5b600061443984828501613e53565b91505092915050565b61444b81613fd7565b811461445657600080fd5b50565b60008135905061446881614442565b92915050565b60006020828403121561448457614483613bfd565b5b600061449284828501614459565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6144d081613d7d565b82525050565b60006144e283836144c7565b60208301905092915050565b6000602082019050919050565b60006145068261449b565b61451081856144a6565b935061451b836144b7565b8060005b8381101561454c57815161453388826144d6565b975061453e836144ee565b92505060018101905061451f565b5085935050505092915050565b6000602082019050818103600083015261457381846144fb565b905092915050565b60008060006060848603121561459457614593613bfd565b5b60006145a286828701613e53565b93505060206145b386828701613d9e565b92505060406145c486828701613d9e565b9150509250925092565b6145d781613c8c565b81146145e257600080fd5b50565b6000813590506145f4816145ce565b92915050565b6000806040838503121561461157614610613bfd565b5b600061461f85828601613e53565b9250506020614630858286016145e5565b9150509250929050565b600067ffffffffffffffff8211156146555761465461400b565b5b61465e82613d11565b9050602081019050919050565b600061467e6146798461463a565b61406b565b90508281526020810184848401111561469a57614699614192565b5b6146a58482856141c8565b509392505050565b600082601f8301126146c2576146c1613ed2565b5b81356146d284826020860161466b565b91505092915050565b600080600080608085870312156146f5576146f4613bfd565b5b600061470387828801613e53565b945050602061471487828801613e53565b935050604061472587828801613d9e565b925050606085013567ffffffffffffffff81111561474657614745613c02565b5b614752878288016146ad565b91505092959194509250565b60808201600082015161477460008501826142bc565b50602082015161478760208501826142df565b50604082015161479a60408501826142ee565b5060608201516147ad606085018261430c565b50505050565b60006080820190506147c8600083018461475e565b92915050565b6000602082840312156147e4576147e3613bfd565b5b60006147f2848285016145e5565b91505092915050565b60008060006040848603121561481457614813613bfd565b5b600061482286828701613d9e565b935050602084013567ffffffffffffffff81111561484357614842613c02565b5b61484f86828701613ee1565b92509250509250925092565b6000806040838503121561487257614871613bfd565b5b600061488085828601613e53565b925050602061489185828601613e53565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806148e257607f821691505b602082108114156148f6576148f561489b565b5b50919050565b60008160601b9050919050565b6000614914826148fc565b9050919050565b600061492682614909565b9050919050565b61493e61493982613e00565b61491b565b82525050565b6000614950828461492d565b60148201915081905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614995602083613ccd565b91506149a08261495f565b602082019050919050565b600060208201905081810360008301526149c481614988565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000614a01601083613ccd565b9150614a0c826149cb565b602082019050919050565b60006020820190508181036000830152614a30816149f4565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614aa082613d7d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614ad357614ad2614a66565b5b600182019050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614b14601f83613ccd565b9150614b1f82614ade565b602082019050919050565b60006020820190508181036000830152614b4381614b07565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614b8482613d7d565b9150614b8f83613d7d565b925082614b9f57614b9e614b4a565b5b828204905092915050565b6000614bb582613d7d565b9150614bc083613d7d565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614bf957614bf8614a66565b5b828202905092915050565b7f50726573616c6520636c6f736564000000000000000000000000000000000000600082015250565b6000614c3a600e83613ccd565b9150614c4582614c04565b602082019050919050565b60006020820190508181036000830152614c6981614c2d565b9050919050565b6000614c7b82613d7d565b9150614c8683613d7d565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614cbb57614cba614a66565b5b828201905092915050565b7f43616e206f6e6c79206d696e74203420746f6b656e732061742061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000614d22602183613ccd565b9150614d2d82614cc6565b604082019050919050565b60006020820190508181036000830152614d5181614d15565b9050919050565b7f45786365656473206d6178696d756d20737570706c7900000000000000000000600082015250565b6000614d8e601683613ccd565b9150614d9982614d58565b602082019050919050565b60006020820190508181036000830152614dbd81614d81565b9050919050565b6000614dcf82613d7d565b9150614dda83613d7d565b925082821015614ded57614dec614a66565b5b828203905092915050565b7f45746865722076616c75652073656e74206973206e6f7420636f727265637400600082015250565b6000614e2e601f83613ccd565b9150614e3982614df8565b602082019050919050565b60006020820190508181036000830152614e5d81614e21565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614ec0602f83613ccd565b9150614ecb82614e64565b604082019050919050565b60006020820190508181036000830152614eef81614eb3565b9050919050565b600081905092915050565b6000614f0c82613cc2565b614f168185614ef6565b9350614f26818560208601613cde565b80840191505092915050565b6000614f3e8285614f01565b9150614f4a8284614f01565b91508190509392505050565b7f53616c6520636c6f736564000000000000000000000000000000000000000000600082015250565b6000614f8c600b83613ccd565b9150614f9782614f56565b602082019050919050565b60006020820190508181036000830152614fbb81614f7f565b9050919050565b7f4e6f742077686974656c6973746564206e6f7420616c6c6f776564206d696e7460008201527f20666f722070726573616c652c20496e76616c69642070726f6f662100000000602082015250565b600061501e603c83613ccd565b915061502982614fc2565b604082019050919050565b6000602082019050818103600083015261504d81615011565b9050919050565b7f416c7265616479206d696e7420666f722070726573616c650000000000000000600082015250565b600061508a601883613ccd565b915061509582615054565b602082019050919050565b600060208201905081810360008301526150b98161507d565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061511c602683613ccd565b9150615127826150c0565b604082019050919050565b6000602082019050818103600083015261514b8161510f565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000615188601483613ccd565b915061519382615152565b602082019050919050565b600060208201905081810360008301526151b78161517b565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006151e5826151be565b6151ef81856151c9565b93506151ff818560208601613cde565b61520881613d11565b840191505092915050565b60006080820190506152286000830187613e12565b6152356020830186613e12565b6152426040830185613ea8565b818103606083015261525481846151da565b905095945050505050565b60008151905061526e81613c33565b92915050565b60006020828403121561528a57615289613bfd565b5b60006152988482850161525f565b9150509291505056fea2646970667358221220be36102fee0869d8a4afe75b11dd32f76f8a47f4e4493ff3a4d6a39afe8d8de764736f6c6343000809003300000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d546b5474344c784e64727a355665797a354c50387068324c3432724d616a71783353317074653533785369760000000000000000000000
Deployed Bytecode
0x6080604052600436106102935760003560e01c80638462151c1161015a578063c87b56dd116100c1578063e0a808531161007a578063e0a80853146109f7578063e3e1e8ef14610a20578063e985e9c514610a3c578063f2fde38b14610a79578063fa7ffe6814610aa2578063fdea8e0b14610acd57610293565b8063c87b56dd146108bf578063d0bbb0d7146108fc578063d547cfb714610927578063d7bddf8714610952578063d89135cd1461098f578063dc33e681146109ba57610293565b8063a0712d6811610113578063a0712d68146107c0578063a22cb465146107dc578063a2309ff814610805578063ae8bdd3014610830578063b88d4fde14610859578063c23dc68f1461088257610293565b80638462151c146106ae57806385493853146106eb5780638d859f3e146107025780638da5cb5b1461072d57806395d89b411461075857806399a2557a1461078357610293565b806342842e0e116101fe57806362dc6e21116101b757806362dc6e21146105b25780636352211e146105dd57806370a082311461061a578063715018a6146106575780637cb647591461066e5780638456cb591461069757610293565b806342842e0e146104a25780634cb2f9ea146104cb57806354214f69146104f657806355f804b3146105215780635bbb21771461054a5780635c975abb1461058757610293565b806323b872dd1161025057806323b872dd146103ce5780632670822a146103f75780632eb4a7ab146104205780632f816fd91461044b5780633ccfd60b146104745780633f4ba83a1461048b57610293565b806301ffc9a71461029857806306fdde03146102d5578063081812fc14610300578063095ea7b31461033d57806318160ddd146103665780631e94cbd614610391575b600080fd5b3480156102a457600080fd5b506102bf60048036038101906102ba9190613c5f565b610ae4565b6040516102cc9190613ca7565b60405180910390f35b3480156102e157600080fd5b506102ea610b76565b6040516102f79190613d5b565b60405180910390f35b34801561030c57600080fd5b5061032760048036038101906103229190613db3565b610c08565b6040516103349190613e21565b60405180910390f35b34801561034957600080fd5b50610364600480360381019061035f9190613e68565b610c84565b005b34801561037257600080fd5b5061037b610dc5565b6040516103889190613eb7565b60405180910390f35b34801561039d57600080fd5b506103b860048036038101906103b39190613f37565b610ddc565b6040516103c59190613ca7565b60405180910390f35b3480156103da57600080fd5b506103f560048036038101906103f09190613f84565b610e66565b005b34801561040357600080fd5b5061041e60048036038101906104199190613db3565b61118b565b005b34801561042c57600080fd5b50610435611214565b6040516104429190613ff0565b60405180910390f35b34801561045757600080fd5b50610472600480360381019061046d9190614149565b61121a565b005b34801561048057600080fd5b50610489611324565b005b34801561049757600080fd5b506104a06114e2565b005b3480156104ae57600080fd5b506104c960048036038101906104c49190613f84565b611568565b005b3480156104d757600080fd5b506104e0611588565b6040516104ed9190613ca7565b60405180910390f35b34801561050257600080fd5b5061050b61159f565b6040516105189190613ca7565b60405180910390f35b34801561052d57600080fd5b5061054860048036038101906105439190614247565b6115b2565b005b34801561055657600080fd5b50610571600480360381019061056c9190614149565b611648565b60405161057e91906143f3565b60405180910390f35b34801561059357600080fd5b5061059c611709565b6040516105a99190613ca7565b60405180910390f35b3480156105be57600080fd5b506105c7611720565b6040516105d49190613eb7565b60405180910390f35b3480156105e957600080fd5b5061060460048036038101906105ff9190613db3565b61172b565b6040516106119190613e21565b60405180910390f35b34801561062657600080fd5b50610641600480360381019061063c9190614415565b61173d565b60405161064e9190613eb7565b60405180910390f35b34801561066357600080fd5b5061066c6117f6565b005b34801561067a57600080fd5b506106956004803603810190610690919061446e565b61187e565b005b3480156106a357600080fd5b506106ac611904565b005b3480156106ba57600080fd5b506106d560048036038101906106d09190614415565b61198a565b6040516106e29190614559565b60405180910390f35b3480156106f757600080fd5b50610700611ad4565b005b34801561070e57600080fd5b50610717611b5a565b6040516107249190613eb7565b60405180910390f35b34801561073957600080fd5b50610742611b65565b60405161074f9190613e21565b60405180910390f35b34801561076457600080fd5b5061076d611b8f565b60405161077a9190613d5b565b60405180910390f35b34801561078f57600080fd5b506107aa60048036038101906107a5919061457b565b611c21565b6040516107b79190614559565b60405180910390f35b6107da60048036038101906107d59190613db3565b611e35565b005b3480156107e857600080fd5b5061080360048036038101906107fe91906145fa565b612055565b005b34801561081157600080fd5b5061081a6121cd565b6040516108279190613eb7565b60405180910390f35b34801561083c57600080fd5b5061085760048036038101906108529190614247565b6121dc565b005b34801561086557600080fd5b50610880600480360381019061087b91906146db565b612272565b005b34801561088e57600080fd5b506108a960048036038101906108a49190613db3565b6122e5565b6040516108b691906147b3565b60405180910390f35b3480156108cb57600080fd5b506108e660048036038101906108e19190613db3565b61234f565b6040516108f39190613d5b565b60405180910390f35b34801561090857600080fd5b506109116124a5565b60405161091e9190613eb7565b60405180910390f35b34801561093357600080fd5b5061093c6124ab565b6040516109499190613d5b565b60405180910390f35b34801561095e57600080fd5b5061097960048036038101906109749190614415565b612539565b6040516109869190613ca7565b60405180910390f35b34801561099b57600080fd5b506109a4612559565b6040516109b19190613eb7565b60405180910390f35b3480156109c657600080fd5b506109e160048036038101906109dc9190614415565b612568565b6040516109ee9190613eb7565b60405180910390f35b348015610a0357600080fd5b50610a1e6004803603810190610a1991906147ce565b61257a565b005b610a3a6004803603810190610a3591906147fb565b612613565b005b348015610a4857600080fd5b50610a636004803603810190610a5e919061485b565b612973565b604051610a709190613ca7565b60405180910390f35b348015610a8557600080fd5b50610aa06004803603810190610a9b9190614415565b612a07565b005b348015610aae57600080fd5b50610ab7612aff565b604051610ac49190613d5b565b60405180910390f35b348015610ad957600080fd5b50610ae2612b8d565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b3f57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b6f5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060028054610b85906148ca565b80601f0160208091040260200160405190810160405280929190818152602001828054610bb1906148ca565b8015610bfe5780601f10610bd357610100808354040283529160200191610bfe565b820191906000526020600020905b815481529060010190602001808311610be157829003601f168201915b5050505050905090565b6000610c1382612c13565b610c49576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c8f8261172b565b90508073ffffffffffffffffffffffffffffffffffffffff16610cb0612c72565b73ffffffffffffffffffffffffffffffffffffffff1614610d1357610cdc81610cd7612c72565b612973565b610d12576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610dcf612c7a565b6001546000540303905090565b600080610de7612c83565b604051602001610df79190614944565b604051602081830303815290604052805190602001209050610e5d848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600a5483612c8b565b91505092915050565b6000610e7182612ca2565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ed8576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610ee484612d70565b91509150610efa8187610ef5612c72565b612d92565b610f4657610f0f86610f0a612c72565b612973565b610f45576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610fad576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610fba8686866001612dd6565b8015610fc557600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506110938561106f888887612ddc565b7c020000000000000000000000000000000000000000000000000000000017612e04565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416141561111b576000600185019050600060046000838152602001908152602001600020541415611119576000548114611118578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46111838686866001612e2f565b505050505050565b611193612c83565b73ffffffffffffffffffffffffffffffffffffffff166111b1611b65565b73ffffffffffffffffffffffffffffffffffffffff1614611207576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111fe906149ab565b60405180910390fd5b6112113382612e35565b50565b600a5481565b611222612c83565b73ffffffffffffffffffffffffffffffffffffffff16611240611b65565b73ffffffffffffffffffffffffffffffffffffffff1614611296576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161128d906149ab565b60405180910390fd5b61129e611709565b156112de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112d590614a17565b60405180910390fd5b60005b81518110156113205761130d828281518110611300576112ff614a37565b5b6020026020010151612e53565b808061131890614a95565b9150506112e1565b5050565b61132c612c83565b73ffffffffffffffffffffffffffffffffffffffff1661134a611b65565b73ffffffffffffffffffffffffffffffffffffffff16146113a0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611397906149ab565b60405180910390fd5b600260095414156113e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113dd90614b2a565b60405180910390fd5b600260098190555060006064476113fd9190614b79565b9050600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc6050836114489190614baa565b9081150290604051600060405180830381858888f1935050505061146b57600080fd5b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc6014836114b49190614baa565b9081150290604051600060405180830381858888f193505050506114d757600080fd5b506001600981905550565b6114ea612c83565b73ffffffffffffffffffffffffffffffffffffffff16611508611b65565b73ffffffffffffffffffffffffffffffffffffffff161461155e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611555906149ab565b60405180910390fd5b611566612e61565b565b61158383838360405180602001604052806000815250612272565b505050565b6000600860159054906101000a900460ff16905090565b600d60009054906101000a900460ff1681565b6115ba612c83565b73ffffffffffffffffffffffffffffffffffffffff166115d8611b65565b73ffffffffffffffffffffffffffffffffffffffff161461162e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611625906149ab565b60405180910390fd5b80600b9080519060200190611644929190613b01565b5050565b606060008251905060008167ffffffffffffffff81111561166c5761166b61400b565b5b6040519080825280602002602001820160405280156116a557816020015b611692613b87565b81526020019060019003908161168a5790505b50905060005b8281146116fe576116d58582815181106116c8576116c7614a37565b5b60200260200101516122e5565b8282815181106116e8576116e7614a37565b5b60200260200101819052508060010190506116ab565b508092505050919050565b6000600860149054906101000a900460ff16905090565b6618838370f3400081565b600061173682612ca2565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156117a5576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6117fe612c83565b73ffffffffffffffffffffffffffffffffffffffff1661181c611b65565b73ffffffffffffffffffffffffffffffffffffffff1614611872576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611869906149ab565b60405180910390fd5b61187c6000612f03565b565b611886612c83565b73ffffffffffffffffffffffffffffffffffffffff166118a4611b65565b73ffffffffffffffffffffffffffffffffffffffff16146118fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118f1906149ab565b60405180910390fd5b80600a8190555050565b61190c612c83565b73ffffffffffffffffffffffffffffffffffffffff1661192a611b65565b73ffffffffffffffffffffffffffffffffffffffff1614611980576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611977906149ab565b60405180910390fd5b611988612fc9565b565b6060600080600061199a8561173d565b905060008167ffffffffffffffff8111156119b8576119b761400b565b5b6040519080825280602002602001820160405280156119e65781602001602082028036833780820191505090505b5090506119f1613b87565b60006119fb612c7a565b90505b838614611ac657611a0e8161306c565b9150816040015115611a1f57611abb565b600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614611a5f57816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415611aba5780838780600101985081518110611aad57611aac614a37565b5b6020026020010181815250505b5b8060010190506119fe565b508195505050505050919050565b611adc612c83565b73ffffffffffffffffffffffffffffffffffffffff16611afa611b65565b73ffffffffffffffffffffffffffffffffffffffff1614611b50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b47906149ab565b60405180910390fd5b611b58613097565b565b66232bff5f46c00081565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054611b9e906148ca565b80601f0160208091040260200160405190810160405280929190818152602001828054611bca906148ca565b8015611c175780601f10611bec57610100808354040283529160200191611c17565b820191906000526020600020905b815481529060010190602001808311611bfa57829003601f168201915b5050505050905090565b6060818310611c5c576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080611c67613141565b9050611c71612c7a565b851015611c8357611c80612c7a565b94505b80841115611c8f578093505b6000611c9a8761173d565b905084861015611cbd576000868603905081811015611cb7578091505b50611cc2565b600090505b60008167ffffffffffffffff811115611cde57611cdd61400b565b5b604051908082528060200260200182016040528015611d0c5781602001602082028036833780820191505090505b5090506000821415611d245780945050505050611e2e565b6000611d2f886122e5565b905060008160400151611d4457816000015190505b60008990505b888114158015611d5a5750848714155b15611e2057611d688161306c565b9250826040015115611d7957611e15565b600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff1614611db957826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611e145780848880600101995081518110611e0757611e06614a37565b5b6020026020010181815250505b5b806001019050611d4a565b508583528296505050505050505b9392505050565b600860159054906101000a900460ff1615611e85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7c90614c50565b60405180910390fd5b611e8d611709565b15611ecd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ec490614a17565b60405180910390fd5b600481611ed93361314a565b611ee39190614c70565b1115611f24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f1b90614d38565b60405180910390fd5b611ec681611f306131a1565b611f3a9190614c70565b1115611f7b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f7290614da4565b60405180910390fd5b6000611f863361314a565b1415611ff257600181611f999190614dc4565b66232bff5f46c000611fab9190614baa565b341015611fed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fe490614e44565b60405180910390fd5b612048565b8066232bff5f46c0006120059190614baa565b341015612047576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203e90614e44565b60405180910390fd5b5b6120523382612e35565b50565b61205d612c72565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156120c2576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006120cf612c72565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661217c612c72565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516121c19190613ca7565b60405180910390a35050565b60006121d76131a1565b905090565b6121e4612c83565b73ffffffffffffffffffffffffffffffffffffffff16612202611b65565b73ffffffffffffffffffffffffffffffffffffffff1614612258576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161224f906149ab565b60405180910390fd5b80600c908051906020019061226e929190613b01565b5050565b61227d848484610e66565b60008373ffffffffffffffffffffffffffffffffffffffff163b146122df576122a8848484846131b4565b6122de576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6122ed613b87565b6122f5613b87565b6122fd612c7a565b831080612311575061230d613141565b8310155b1561231f578091505061234a565b6123288361306c565b905080604001511561233d578091505061234a565b61234683613314565b9150505b919050565b606061235a82612c13565b612399576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161239090614ed6565b60405180910390fd5b60001515600d60009054906101000a900460ff161515141561244757600c80546123c2906148ca565b80601f01602080910402602001604051908101604052809291908181526020018280546123ee906148ca565b801561243b5780601f106124105761010080835404028352916020019161243b565b820191906000526020600020905b81548152906001019060200180831161241e57829003601f168201915b505050505090506124a0565b6000612451613334565b90506000815111612471576040518060200160405280600081525061249c565b8061247b846133c6565b60405160200161248c929190614f32565b6040516020818303038152906040525b9150505b919050565b611ec681565b600b80546124b8906148ca565b80601f01602080910402602001604051908101604052809291908181526020018280546124e4906148ca565b80156125315780601f1061250657610100808354040283529160200191612531565b820191906000526020600020905b81548152906001019060200180831161251457829003601f168201915b505050505081565b600e6020528060005260406000206000915054906101000a900460ff1681565b6000612563613420565b905090565b60006125738261314a565b9050919050565b612582612c83565b73ffffffffffffffffffffffffffffffffffffffff166125a0611b65565b73ffffffffffffffffffffffffffffffffffffffff16146125f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125ed906149ab565b60405180910390fd5b80600d60006101000a81548160ff02191690831515021790555050565b600860159054906101000a900460ff16612662576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161265990614fa2565b60405180910390fd5b61266a611709565b156126aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126a190614a17565b60405180910390fd5b60006126b4612c83565b6040516020016126c49190614944565b60405160208183030381529060405280519060200120905061272a838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600a5483612c8b565b612769576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161276090615034565b60405180910390fd5b60001515600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515146127fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127f3906150a0565b60405180910390fd5b6004846128083361314a565b6128129190614c70565b1115612853576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161284a90614d38565b60405180910390fd5b611ec68461285f6131a1565b6128699190614c70565b11156128aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128a190614da4565b60405180910390fd5b6001846128b79190614dc4565b6618838370f340006128c99190614baa565b34101561290b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161290290614e44565b60405180910390fd5b6129153385612e35565b6001600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050505050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612a0f612c83565b73ffffffffffffffffffffffffffffffffffffffff16612a2d611b65565b73ffffffffffffffffffffffffffffffffffffffff1614612a83576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a7a906149ab565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612af3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aea90615132565b60405180910390fd5b612afc81612f03565b50565b600c8054612b0c906148ca565b80601f0160208091040260200160405190810160405280929190818152602001828054612b38906148ca565b8015612b855780601f10612b5a57610100808354040283529160200191612b85565b820191906000526020600020905b815481529060010190602001808311612b6857829003601f168201915b505050505081565b612b95612c83565b73ffffffffffffffffffffffffffffffffffffffff16612bb3611b65565b73ffffffffffffffffffffffffffffffffffffffff1614612c09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c00906149ab565b60405180910390fd5b612c1161342a565b565b600081612c1e612c7a565b11158015612c2d575060005482105b8015612c6b575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b600033905090565b600082612c9885846134d5565b1490509392505050565b60008082905080612cb1612c7a565b11612d3957600054811015612d385760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415612d36575b6000811415612d2c576004600083600190039350838152602001908152602001600020549050612d01565b8092505050612d6b565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000806000600690508360005280602052604060002092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612df386868461352b565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b612e4f828260405180602001604052806000815250613534565b5050565b612e5e8160006135d1565b50565b612e69611709565b612ea8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e9f9061519e565b60405180910390fd5b6000600860146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612eec612c83565b604051612ef99190613e21565b60405180910390a1565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612fd1611709565b15613011576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161300890614a17565b60405180910390fd5b6001600860146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258613055612c83565b6040516130629190613e21565b60405180910390a1565b613074613b87565b6130906004600084815260200190815260200160002054613825565b9050919050565b600860159054906101000a900460ff166130e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130dd90614fa2565b60405180910390fd5b6000600860156101000a81548160ff0219169083151502179055507f9e209206b95275a497262e47a30901f0716b2d6d19618dd5e9b7b68237e7cb7161312a612c83565b6040516131379190613e21565b60405180910390a1565b60008054905090565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b60006131ab612c7a565b60005403905090565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026131da612c72565b8786866040518563ffffffff1660e01b81526004016131fc9493929190615213565b602060405180830381600087803b15801561321657600080fd5b505af192505050801561324757506040513d601f19601f820116820180604052508101906132449190615274565b60015b6132c1573d8060008114613277576040519150601f19603f3d011682016040523d82523d6000602084013e61327c565b606091505b506000815114156132b9576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b61331c613b87565b61332d61332883612ca2565b613825565b9050919050565b6060600b8054613343906148ca565b80601f016020809104026020016040519081016040528092919081815260200182805461336f906148ca565b80156133bc5780601f10613391576101008083540402835291602001916133bc565b820191906000526020600020905b81548152906001019060200180831161339f57829003601f168201915b5050505050905090565b60606080604051019050806040528082600183039250600a81066030018353600a810490505b801561340c57600183039250600a81066030018353600a810490506133ec565b508181036020830392508083525050919050565b6000600154905090565b600860159054906101000a900460ff161561347a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161347190614c50565b60405180910390fd5b6001600860156101000a81548160ff0219169083151502179055507fb1412a7cd96bc4195d633c938189c320dcbeb2cff60c1b8bdd872678fb3514b46134be612c83565b6040516134cb9190613e21565b60405180910390a1565b60008082905060005b84518110156135205761350b828683815181106134fe576134fd614a37565b5b60200260200101516138db565b9150808061351890614a95565b9150506134de565b508091505092915050565b60009392505050565b61353e8383613906565b60008373ffffffffffffffffffffffffffffffffffffffff163b146135cc57600080549050600083820390505b61357e60008683806001019450866131b4565b6135b4576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811061356b5781600054146135c957600080fd5b50505b505050565b60006135dc83612ca2565b905060008190506000806135ef86612d70565b9150915084156136585761360b8184613606612c72565b612d92565b613657576136208361361b612c72565b612973565b613656576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b613666836000886001612dd6565b801561367157600082555b600160806001901b03600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613719836136d685600088612ddc565b7c02000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000001717612e04565b600460008881526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000851614156137a157600060018701905060006004600083815260200190815260200160002054141561379f57600054811461379e578460046000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461380b836000886001612e2f565b600160008154809291906001019190505550505050505050565b61382d613b87565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b60008183106138f3576138ee8284613ada565b6138fe565b6138fd8383613ada565b5b905092915050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613973576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008214156139ae576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6139bb6000848385612dd6565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613a3283613a236000866000612ddc565b613a2c85613af1565b17612e04565b60046000838152602001908152602001600020819055506000819050600083830190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808210613a5657806000819055505050613ad56000848385612e2f565b505050565b600082600052816020526040600020905092915050565b60006001821460e11b9050919050565b828054613b0d906148ca565b90600052602060002090601f016020900481019282613b2f5760008555613b76565b82601f10613b4857805160ff1916838001178555613b76565b82800160010185558215613b76579182015b82811115613b75578251825591602001919060010190613b5a565b5b509050613b839190613bd6565b5090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b5b80821115613bef576000816000905550600101613bd7565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613c3c81613c07565b8114613c4757600080fd5b50565b600081359050613c5981613c33565b92915050565b600060208284031215613c7557613c74613bfd565b5b6000613c8384828501613c4a565b91505092915050565b60008115159050919050565b613ca181613c8c565b82525050565b6000602082019050613cbc6000830184613c98565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613cfc578082015181840152602081019050613ce1565b83811115613d0b576000848401525b50505050565b6000601f19601f8301169050919050565b6000613d2d82613cc2565b613d378185613ccd565b9350613d47818560208601613cde565b613d5081613d11565b840191505092915050565b60006020820190508181036000830152613d758184613d22565b905092915050565b6000819050919050565b613d9081613d7d565b8114613d9b57600080fd5b50565b600081359050613dad81613d87565b92915050565b600060208284031215613dc957613dc8613bfd565b5b6000613dd784828501613d9e565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613e0b82613de0565b9050919050565b613e1b81613e00565b82525050565b6000602082019050613e366000830184613e12565b92915050565b613e4581613e00565b8114613e5057600080fd5b50565b600081359050613e6281613e3c565b92915050565b60008060408385031215613e7f57613e7e613bfd565b5b6000613e8d85828601613e53565b9250506020613e9e85828601613d9e565b9150509250929050565b613eb181613d7d565b82525050565b6000602082019050613ecc6000830184613ea8565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112613ef757613ef6613ed2565b5b8235905067ffffffffffffffff811115613f1457613f13613ed7565b5b602083019150836020820283011115613f3057613f2f613edc565b5b9250929050565b60008060208385031215613f4e57613f4d613bfd565b5b600083013567ffffffffffffffff811115613f6c57613f6b613c02565b5b613f7885828601613ee1565b92509250509250929050565b600080600060608486031215613f9d57613f9c613bfd565b5b6000613fab86828701613e53565b9350506020613fbc86828701613e53565b9250506040613fcd86828701613d9e565b9150509250925092565b6000819050919050565b613fea81613fd7565b82525050565b60006020820190506140056000830184613fe1565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61404382613d11565b810181811067ffffffffffffffff821117156140625761406161400b565b5b80604052505050565b6000614075613bf3565b9050614081828261403a565b919050565b600067ffffffffffffffff8211156140a1576140a061400b565b5b602082029050602081019050919050565b60006140c56140c084614086565b61406b565b905080838252602082019050602084028301858111156140e8576140e7613edc565b5b835b8181101561411157806140fd8882613d9e565b8452602084019350506020810190506140ea565b5050509392505050565b600082601f8301126141305761412f613ed2565b5b81356141408482602086016140b2565b91505092915050565b60006020828403121561415f5761415e613bfd565b5b600082013567ffffffffffffffff81111561417d5761417c613c02565b5b6141898482850161411b565b91505092915050565b600080fd5b600067ffffffffffffffff8211156141b2576141b161400b565b5b6141bb82613d11565b9050602081019050919050565b82818337600083830152505050565b60006141ea6141e584614197565b61406b565b90508281526020810184848401111561420657614205614192565b5b6142118482856141c8565b509392505050565b600082601f83011261422e5761422d613ed2565b5b813561423e8482602086016141d7565b91505092915050565b60006020828403121561425d5761425c613bfd565b5b600082013567ffffffffffffffff81111561427b5761427a613c02565b5b61428784828501614219565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6142c581613e00565b82525050565b600067ffffffffffffffff82169050919050565b6142e8816142cb565b82525050565b6142f781613c8c565b82525050565b600062ffffff82169050919050565b614315816142fd565b82525050565b60808201600082015161433160008501826142bc565b50602082015161434460208501826142df565b50604082015161435760408501826142ee565b50606082015161436a606085018261430c565b50505050565b600061437c838361431b565b60808301905092915050565b6000602082019050919050565b60006143a082614290565b6143aa818561429b565b93506143b5836142ac565b8060005b838110156143e65781516143cd8882614370565b97506143d883614388565b9250506001810190506143b9565b5085935050505092915050565b6000602082019050818103600083015261440d8184614395565b905092915050565b60006020828403121561442b5761442a613bfd565b5b600061443984828501613e53565b91505092915050565b61444b81613fd7565b811461445657600080fd5b50565b60008135905061446881614442565b92915050565b60006020828403121561448457614483613bfd565b5b600061449284828501614459565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6144d081613d7d565b82525050565b60006144e283836144c7565b60208301905092915050565b6000602082019050919050565b60006145068261449b565b61451081856144a6565b935061451b836144b7565b8060005b8381101561454c57815161453388826144d6565b975061453e836144ee565b92505060018101905061451f565b5085935050505092915050565b6000602082019050818103600083015261457381846144fb565b905092915050565b60008060006060848603121561459457614593613bfd565b5b60006145a286828701613e53565b93505060206145b386828701613d9e565b92505060406145c486828701613d9e565b9150509250925092565b6145d781613c8c565b81146145e257600080fd5b50565b6000813590506145f4816145ce565b92915050565b6000806040838503121561461157614610613bfd565b5b600061461f85828601613e53565b9250506020614630858286016145e5565b9150509250929050565b600067ffffffffffffffff8211156146555761465461400b565b5b61465e82613d11565b9050602081019050919050565b600061467e6146798461463a565b61406b565b90508281526020810184848401111561469a57614699614192565b5b6146a58482856141c8565b509392505050565b600082601f8301126146c2576146c1613ed2565b5b81356146d284826020860161466b565b91505092915050565b600080600080608085870312156146f5576146f4613bfd565b5b600061470387828801613e53565b945050602061471487828801613e53565b935050604061472587828801613d9e565b925050606085013567ffffffffffffffff81111561474657614745613c02565b5b614752878288016146ad565b91505092959194509250565b60808201600082015161477460008501826142bc565b50602082015161478760208501826142df565b50604082015161479a60408501826142ee565b5060608201516147ad606085018261430c565b50505050565b60006080820190506147c8600083018461475e565b92915050565b6000602082840312156147e4576147e3613bfd565b5b60006147f2848285016145e5565b91505092915050565b60008060006040848603121561481457614813613bfd565b5b600061482286828701613d9e565b935050602084013567ffffffffffffffff81111561484357614842613c02565b5b61484f86828701613ee1565b92509250509250925092565b6000806040838503121561487257614871613bfd565b5b600061488085828601613e53565b925050602061489185828601613e53565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806148e257607f821691505b602082108114156148f6576148f561489b565b5b50919050565b60008160601b9050919050565b6000614914826148fc565b9050919050565b600061492682614909565b9050919050565b61493e61493982613e00565b61491b565b82525050565b6000614950828461492d565b60148201915081905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614995602083613ccd565b91506149a08261495f565b602082019050919050565b600060208201905081810360008301526149c481614988565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000614a01601083613ccd565b9150614a0c826149cb565b602082019050919050565b60006020820190508181036000830152614a30816149f4565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614aa082613d7d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614ad357614ad2614a66565b5b600182019050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614b14601f83613ccd565b9150614b1f82614ade565b602082019050919050565b60006020820190508181036000830152614b4381614b07565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614b8482613d7d565b9150614b8f83613d7d565b925082614b9f57614b9e614b4a565b5b828204905092915050565b6000614bb582613d7d565b9150614bc083613d7d565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614bf957614bf8614a66565b5b828202905092915050565b7f50726573616c6520636c6f736564000000000000000000000000000000000000600082015250565b6000614c3a600e83613ccd565b9150614c4582614c04565b602082019050919050565b60006020820190508181036000830152614c6981614c2d565b9050919050565b6000614c7b82613d7d565b9150614c8683613d7d565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614cbb57614cba614a66565b5b828201905092915050565b7f43616e206f6e6c79206d696e74203420746f6b656e732061742061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000614d22602183613ccd565b9150614d2d82614cc6565b604082019050919050565b60006020820190508181036000830152614d5181614d15565b9050919050565b7f45786365656473206d6178696d756d20737570706c7900000000000000000000600082015250565b6000614d8e601683613ccd565b9150614d9982614d58565b602082019050919050565b60006020820190508181036000830152614dbd81614d81565b9050919050565b6000614dcf82613d7d565b9150614dda83613d7d565b925082821015614ded57614dec614a66565b5b828203905092915050565b7f45746865722076616c75652073656e74206973206e6f7420636f727265637400600082015250565b6000614e2e601f83613ccd565b9150614e3982614df8565b602082019050919050565b60006020820190508181036000830152614e5d81614e21565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614ec0602f83613ccd565b9150614ecb82614e64565b604082019050919050565b60006020820190508181036000830152614eef81614eb3565b9050919050565b600081905092915050565b6000614f0c82613cc2565b614f168185614ef6565b9350614f26818560208601613cde565b80840191505092915050565b6000614f3e8285614f01565b9150614f4a8284614f01565b91508190509392505050565b7f53616c6520636c6f736564000000000000000000000000000000000000000000600082015250565b6000614f8c600b83613ccd565b9150614f9782614f56565b602082019050919050565b60006020820190508181036000830152614fbb81614f7f565b9050919050565b7f4e6f742077686974656c6973746564206e6f7420616c6c6f776564206d696e7460008201527f20666f722070726573616c652c20496e76616c69642070726f6f662100000000602082015250565b600061501e603c83613ccd565b915061502982614fc2565b604082019050919050565b6000602082019050818103600083015261504d81615011565b9050919050565b7f416c7265616479206d696e7420666f722070726573616c650000000000000000600082015250565b600061508a601883613ccd565b915061509582615054565b602082019050919050565b600060208201905081810360008301526150b98161507d565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061511c602683613ccd565b9150615127826150c0565b604082019050919050565b6000602082019050818103600083015261514b8161510f565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000615188601483613ccd565b915061519382615152565b602082019050919050565b600060208201905081810360008301526151b78161517b565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006151e5826151be565b6151ef81856151c9565b93506151ff818560208601613cde565b61520881613d11565b840191505092915050565b60006080820190506152286000830187613e12565b6152356020830186613e12565b6152426040830185613ea8565b818103606083015261525481846151da565b905095945050505050565b60008151905061526e81613c33565b92915050565b60006020828403121561528a57615289613bfd565b5b60006152988482850161525f565b9150509291505056fea2646970667358221220be36102fee0869d8a4afe75b11dd32f76f8a47f4e4493ff3a4d6a39afe8d8de764736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d546b5474344c784e64727a355665797a354c50387068324c3432724d616a71783353317074653533785369760000000000000000000000
-----Decoded View---------------
Arg [0] : _hiddenTokenUri (string): ipfs://QmTkTt4LxNdrz5Veyz5LP8ph2L42rMajqx3S1pte53xSiv
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [2] : 697066733a2f2f516d546b5474344c784e64727a355665797a354c5038706832
Arg [3] : 4c3432724d616a71783353317074653533785369760000000000000000000000
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.