Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
1,000 FHTM
Holders
228
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
38 FHTMLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
FluffyHedgehogsTheMinis
Compiler Version
v0.8.11+commit.d7f03943
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 <0.9.0; import "erc721a/contracts/extensions/ERC721AQueryable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; contract FluffyHedgehogsTheMinis is ERC721AQueryable, Ownable, ReentrancyGuard { using Strings for uint256; bytes32 public merkleRoot; mapping(address => uint256) public addressPresaleMintedBalance; string public uriPrefix = ""; string public uriSuffix = ".json"; string public hiddenMetadataUri; uint256 public price = 0.02 ether; uint256 public maxSupply = 1000; uint256 public maxMintAmountPerTx = 2; uint256 public addressLimitPresale = 2; bool public paused = true; bool public whitelistMintEnabled = false; bool public revealed = false; constructor() ERC721A("FluffyHedgehogsTheMinis", "FHTM") { setHiddenMetadataUri("https://files.fluffyhedgehogs.com/hidden.json"); } // Check one modifier mintCompliance(uint256 _mintAmount) { require(_mintAmount > 0, "Lol, cannot mint zero hedgies"); require(_mintAmount <= maxMintAmountPerTx, "Oh no, cannot mint that many hedgies!"); require(totalSupply() + _mintAmount <= maxSupply, "Maximum supply of hedgies exceeded!"); _; } // Check two modifier mintPriceCompliance(uint256 _mintAmount) { require(msg.value >= price * _mintAmount, "You need more Ether in your wallet!"); _; } // Function whitelist mint function whitelistMint(uint256 _mintAmount, bytes32[] calldata _merkleProof) public payable mintCompliance(_mintAmount) mintPriceCompliance(_mintAmount) { // Verify whitelist requirements require(whitelistMintEnabled, "Whitelist mint is not enabled!"); uint256 ownerMintedCount = addressPresaleMintedBalance[_msgSender()]; require(ownerMintedCount + _mintAmount <= addressLimitPresale, "Maximum hedgies per address during whitelist exceeded"); bytes32 leaf = keccak256(abi.encodePacked(_msgSender())); require(MerkleProof.verify(_merkleProof, merkleRoot, leaf), "Invalid merkleproof, ask Fluffy!"); addressPresaleMintedBalance[_msgSender()] += _mintAmount; _safeMint(_msgSender(), _mintAmount); } // Function regular mint function mint(uint256 _mintAmount) public payable mintCompliance(_mintAmount) mintPriceCompliance(_mintAmount) { require(!paused, "Minting is not possible at the moment!"); _safeMint(_msgSender(), _mintAmount); } // Check owner mint modifier mintComplianceOwner(uint256 _mintAmount) { require(_mintAmount > 0, "Lol, cannot mint zero hedgies"); require(totalSupply() + _mintAmount <= maxSupply, "Maximum of hedgies exceeded!"); _; } // Function only owner mint function mintForAddress(uint256 _mintAmount, address _to) public mintComplianceOwner(_mintAmount) onlyOwner { _safeMint(_to, _mintAmount); } // Let's start with number one function _startTokenId() internal view virtual override returns (uint256) { return 1; } // Metadata things function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { require(_exists(_tokenId), "ERC721Metadata: URI query for nonexistent token"); if (revealed == false) { return hiddenMetadataUri; } string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, _tokenId.toString(), uriSuffix)) : ''; } // Switch button reveal function switchRevealed() public onlyOwner { revealed = !revealed; } // Function for changing the mintprice function setPrice(uint256 _price) public onlyOwner { price = _price; } // Function for setting a new maximum whitelist mint amount per transaction function setAddressLimitPresale(uint256 _newAddressLimitPresale) public onlyOwner { addressLimitPresale = _newAddressLimitPresale; } // Function for setting a new maximum mint amount per transaction function setMaxMintAmountPerTx(uint256 _maxMintAmountPerTx) public onlyOwner { maxMintAmountPerTx = _maxMintAmountPerTx; } // Function for setting a new hidden metadata URI function setHiddenMetadataUri(string memory _hiddenMetadataUri) public onlyOwner { hiddenMetadataUri = _hiddenMetadataUri; } // Function for setting a new URI prefix function setUriPrefix(string memory _uriPrefix) public onlyOwner { uriPrefix = _uriPrefix; } // Function for setting a new URI suffix function setUriSuffix(string memory _uriSuffix) public onlyOwner { uriSuffix = _uriSuffix; } // Switch button pauze function switchPaused() public onlyOwner { paused = !paused; } // Function for setting a new merkleroot function setMerkleRoot(bytes32 _merkleRoot) public onlyOwner { merkleRoot = _merkleRoot; } // Switch button whitelist mint function switchWhitelistMintEnabled() public onlyOwner { whitelistMintEnabled = !whitelistMintEnabled; } // Withdraw function for owner function withdraw() public onlyOwner nonReentrant { (bool success, ) = payable(owner()).call{value: address(this).balance}(""); require(success); } // returning the URI function _baseURI() internal view virtual override returns (string memory) { return uriPrefix; } // Update the value for addressPresaleMintedBalance function setPresaleMintedBalance(address _addr, uint _i) public onlyOwner { addressPresaleMintedBalance[_addr] = _i; } // Reset the value for addressPresaleMintedBalance function removePresaleMintedBalance(address _addr) public onlyOwner { delete addressPresaleMintedBalance[_addr]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721AQueryable.sol'; import '../ERC721A.sol'; /** * @title ERC721AQueryable. * * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable { /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) public view virtual override returns (TokenOwnership memory) { TokenOwnership memory ownership; if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) { return ownership; } ownership = _ownershipAt(tokenId); if (ownership.burned) { return ownership; } return _ownershipOf(tokenId); } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] calldata tokenIds) external view virtual override returns (TokenOwnership[] memory) { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength); for (uint256 i; i != tokenIdsLength; ++i) { ownerships[i] = explicitOwnershipOf(tokenIds[i]); } return ownerships; } } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view virtual override returns (uint256[] memory) { unchecked { if (start >= stop) revert InvalidQueryRange(); uint256 tokenIdsIdx; uint256 stopLimit = _nextTokenId(); // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, stopLimit)`. if (stop > stopLimit) { stop = stopLimit; } uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (start < stop) { uint256 rangeLength = stop - start; if (rangeLength < tokenIdsMaxLength) { tokenIdsMaxLength = rangeLength; } } else { tokenIdsMaxLength = 0; } uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength); if (tokenIdsMaxLength == 0) { return tokenIds; } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`. // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } // Downsize the array to fit. assembly { mstore(tokenIds, tokenIdsIdx) } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view virtual override returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Reference type for token approval. struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 0x80 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: 0x20 + 3 * 0x20 = 0x80. str := add(mload(0x40), 0x80) // Update the free memory pointer to allocate. mstore(0x40, str) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; import '../IERC721A.sol'; /** * @dev Interface of ERC721AQueryable. */ interface IERC721AQueryable is IERC721A { /** * Invalid query range (`start` >= `stop`). */ error InvalidQueryRange(); /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory); /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory); /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory); /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * 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(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @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](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"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":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"addressLimitPresale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressPresaleMintedBalance","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":[{"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":"hiddenMetadataUri","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":[],"name":"maxMintAmountPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"mintForAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"removePresaleMintedBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"uint256","name":"_newAddressLimitPresale","type":"uint256"}],"name":"setAddressLimitPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_hiddenMetadataUri","type":"string"}],"name":"setHiddenMetadataUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxMintAmountPerTx","type":"uint256"}],"name":"setMaxMintAmountPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"uint256","name":"_i","type":"uint256"}],"name":"setPresaleMintedBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriPrefix","type":"string"}],"name":"setUriPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriSuffix","type":"string"}],"name":"setUriSuffix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"switchPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"switchRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"switchWhitelistMintEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uriPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uriSuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"whitelistMintEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405260405180602001604052806000815250600c90805190602001906200002b929190620003c0565b506040518060400160405280600581526020017f2e6a736f6e000000000000000000000000000000000000000000000000000000815250600d908051906020019062000079929190620003c0565b5066470de4df820000600f556103e8601055600260115560026012556001601360006101000a81548160ff0219169083151502179055506000601360016101000a81548160ff0219169083151502179055506000601360026101000a81548160ff021916908315150217905550348015620000f357600080fd5b506040518060400160405280601781526020017f466c756666794865646765686f67735468654d696e69730000000000000000008152506040518060400160405280600481526020017f4648544d00000000000000000000000000000000000000000000000000000000815250816002908051906020019062000178929190620003c0565b50806003908051906020019062000191929190620003c0565b50620001a26200020260201b60201c565b6000819055505050620001ca620001be6200020b60201b60201c565b6200021360201b60201c565b6001600981905550620001fc6040518060600160405280602d815260200162004f57602d9139620002d960201b60201c565b62000558565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620002e96200030560201b60201c565b80600e908051906020019062000301929190620003c0565b5050565b620003156200020b60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff166200033b6200039660201b60201c565b73ffffffffffffffffffffffffffffffffffffffff161462000394576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200038b90620004d1565b60405180910390fd5b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b828054620003ce9062000522565b90600052602060002090601f016020900481019282620003f257600085556200043e565b82601f106200040d57805160ff19168380011785556200043e565b828001600101855582156200043e579182015b828111156200043d57825182559160200191906001019062000420565b5b5090506200044d919062000451565b5090565b5b808211156200046c57600081600090555060010162000452565b5090565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000620004b960208362000470565b9150620004c68262000481565b602082019050919050565b60006020820190508181036000830152620004ec81620004aa565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200053b57607f821691505b60208210811415620005525762000551620004f3565b5b50919050565b6149ef80620005686000396000f3fe6080604052600436106102ae5760003560e01c80637cb6475911610175578063a45ba8e7116100dc578063d5abeb0111610095578063ee4c2e451161006f578063ee4c2e4514610a6c578063efbd73f414610a83578063f2fde38b14610aac578063f9d38e9714610ad5576102ae565b8063d5abeb01146109ed578063d8a7921514610a18578063e985e9c514610a2f576102ae565b8063a45ba8e7146108da578063b071401b14610905578063b88d4fde1461092e578063c23dc68f14610957578063c87b56dd14610994578063d2cab056146109d1576102ae565b806395d245e41161012e57806395d245e4146107d757806395d89b411461080257806399a2557a1461082d578063a035b1fe1461086a578063a0712d6814610895578063a22cb465146108b1576102ae565b80637cb64759146106c95780637ec4a659146106f25780638462151c1461071b5780638da5cb5b1461075857806391b7f5ed1461078357806394354fd0146107ac576102ae565b80634fc4a0fa1161021957806362b99ad4116101d257806362b99ad4146105cb5780636352211e146105f65780636caede3d1461063357806370a082311461065e578063715018a61461069b578063750ee18a146106b2576102ae565b80634fc4a0fa146104bb5780634fdd43cb146104e4578063518302271461050d5780635503a0e8146105385780635bbb2177146105635780635c975abb146105a0576102ae565b806323b872dd1161026b57806323b872dd146103d55780632eb4a7ab146103fe5780633642c23f146104295780633ccfd60b1461045257806342842e0e1461046957806345bb71ef14610492576102ae565b806301ffc9a7146102b357806306fdde03146102f0578063081812fc1461031b578063095ea7b31461035857806316ba10e01461038157806318160ddd146103aa575b600080fd5b3480156102bf57600080fd5b506102da60048036038101906102d59190613290565b610b12565b6040516102e791906132d8565b60405180910390f35b3480156102fc57600080fd5b50610305610ba4565b604051610312919061338c565b60405180910390f35b34801561032757600080fd5b50610342600480360381019061033d91906133e4565b610c36565b60405161034f9190613452565b60405180910390f35b34801561036457600080fd5b5061037f600480360381019061037a9190613499565b610cb5565b005b34801561038d57600080fd5b506103a860048036038101906103a3919061360e565b610df9565b005b3480156103b657600080fd5b506103bf610e1b565b6040516103cc9190613666565b60405180910390f35b3480156103e157600080fd5b506103fc60048036038101906103f79190613681565b610e32565b005b34801561040a57600080fd5b50610413611157565b60405161042091906136ed565b60405180910390f35b34801561043557600080fd5b50610450600480360381019061044b9190613708565b61115d565b005b34801561045e57600080fd5b506104676111ab565b005b34801561047557600080fd5b50610490600480360381019061048b9190613681565b611289565b005b34801561049e57600080fd5b506104b960048036038101906104b491906133e4565b6112a9565b005b3480156104c757600080fd5b506104e260048036038101906104dd9190613499565b6112bb565b005b3480156104f057600080fd5b5061050b6004803603810190610506919061360e565b61130b565b005b34801561051957600080fd5b5061052261132d565b60405161052f91906132d8565b60405180910390f35b34801561054457600080fd5b5061054d611340565b60405161055a919061338c565b60405180910390f35b34801561056f57600080fd5b5061058a60048036038101906105859190613795565b6113ce565b6040516105979190613945565b60405180910390f35b3480156105ac57600080fd5b506105b5611491565b6040516105c291906132d8565b60405180910390f35b3480156105d757600080fd5b506105e06114a4565b6040516105ed919061338c565b60405180910390f35b34801561060257600080fd5b5061061d600480360381019061061891906133e4565b611532565b60405161062a9190613452565b60405180910390f35b34801561063f57600080fd5b50610648611544565b60405161065591906132d8565b60405180910390f35b34801561066a57600080fd5b5061068560048036038101906106809190613708565b611557565b6040516106929190613666565b60405180910390f35b3480156106a757600080fd5b506106b0611610565b005b3480156106be57600080fd5b506106c7611624565b005b3480156106d557600080fd5b506106f060048036038101906106eb9190613993565b611658565b005b3480156106fe57600080fd5b506107196004803603810190610714919061360e565b61166a565b005b34801561072757600080fd5b50610742600480360381019061073d9190613708565b61168c565b60405161074f9190613a7e565b60405180910390f35b34801561076457600080fd5b5061076d6117d6565b60405161077a9190613452565b60405180910390f35b34801561078f57600080fd5b506107aa60048036038101906107a591906133e4565b611800565b005b3480156107b857600080fd5b506107c1611812565b6040516107ce9190613666565b60405180910390f35b3480156107e357600080fd5b506107ec611818565b6040516107f99190613666565b60405180910390f35b34801561080e57600080fd5b5061081761181e565b604051610824919061338c565b60405180910390f35b34801561083957600080fd5b50610854600480360381019061084f9190613aa0565b6118b0565b6040516108619190613a7e565b60405180910390f35b34801561087657600080fd5b5061087f611ac4565b60405161088c9190613666565b60405180910390f35b6108af60048036038101906108aa91906133e4565b611aca565b005b3480156108bd57600080fd5b506108d860048036038101906108d39190613b1f565b611c61565b005b3480156108e657600080fd5b506108ef611dd9565b6040516108fc919061338c565b60405180910390f35b34801561091157600080fd5b5061092c600480360381019061092791906133e4565b611e67565b005b34801561093a57600080fd5b5061095560048036038101906109509190613c00565b611e79565b005b34801561096357600080fd5b5061097e600480360381019061097991906133e4565b611eec565b60405161098b9190613cd8565b60405180910390f35b3480156109a057600080fd5b506109bb60048036038101906109b691906133e4565b611f56565b6040516109c8919061338c565b60405180910390f35b6109eb60048036038101906109e69190613d49565b6120af565b005b3480156109f957600080fd5b50610a02612400565b604051610a0f9190613666565b60405180910390f35b348015610a2457600080fd5b50610a2d612406565b005b348015610a3b57600080fd5b50610a566004803603810190610a519190613da9565b61243a565b604051610a6391906132d8565b60405180910390f35b348015610a7857600080fd5b50610a816124ce565b005b348015610a8f57600080fd5b50610aaa6004803603810190610aa59190613de9565b612502565b005b348015610ab857600080fd5b50610ad36004803603810190610ace9190613708565b6125b4565b005b348015610ae157600080fd5b50610afc6004803603810190610af79190613708565b612638565b604051610b099190613666565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b6d57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b9d5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060028054610bb390613e58565b80601f0160208091040260200160405190810160405280929190818152602001828054610bdf90613e58565b8015610c2c5780601f10610c0157610100808354040283529160200191610c2c565b820191906000526020600020905b815481529060010190602001808311610c0f57829003601f168201915b5050505050905090565b6000610c4182612650565b610c77576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610cc082611532565b90508073ffffffffffffffffffffffffffffffffffffffff16610ce16126af565b73ffffffffffffffffffffffffffffffffffffffff1614610d4457610d0d81610d086126af565b61243a565b610d43576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b610e016126b7565b80600d9080519060200190610e17929190613132565b5050565b6000610e25612735565b6001546000540303905090565b6000610e3d8261273e565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ea4576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610eb08461280c565b91509150610ec68187610ec16126af565b612833565b610f1257610edb86610ed66126af565b61243a565b610f11576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610f79576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610f868686866001612877565b8015610f9157600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001019190508190555061105f8561103b88888761287d565b7c0200000000000000000000000000000000000000000000000000000000176128a5565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841614156110e75760006001850190506000600460008381526020019081526020016000205414156110e55760005481146110e4578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461114f86868660016128d0565b505050505050565b600a5481565b6111656126b7565b600b60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000905550565b6111b36126b7565b600260095414156111f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111f090613ed6565b60405180910390fd5b6002600981905550600061120b6117d6565b73ffffffffffffffffffffffffffffffffffffffff164760405161122e90613f27565b60006040518083038185875af1925050503d806000811461126b576040519150601f19603f3d011682016040523d82523d6000602084013e611270565b606091505b505090508061127e57600080fd5b506001600981905550565b6112a483838360405180602001604052806000815250611e79565b505050565b6112b16126b7565b8060128190555050565b6112c36126b7565b80600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b6113136126b7565b80600e9080519060200190611329929190613132565b5050565b601360029054906101000a900460ff1681565b600d805461134d90613e58565b80601f016020809104026020016040519081016040528092919081815260200182805461137990613e58565b80156113c65780601f1061139b576101008083540402835291602001916113c6565b820191906000526020600020905b8154815290600101906020018083116113a957829003601f168201915b505050505081565b6060600083839050905060008167ffffffffffffffff8111156113f4576113f36134e3565b5b60405190808252806020026020018201604052801561142d57816020015b61141a6131b8565b8152602001906001900390816114125790505b50905060005b8281146114855761145c8686838181106114505761144f613f3c565b5b90506020020135611eec565b82828151811061146f5761146e613f3c565b5b6020026020010181905250806001019050611433565b50809250505092915050565b601360009054906101000a900460ff1681565b600c80546114b190613e58565b80601f01602080910402602001604051908101604052809291908181526020018280546114dd90613e58565b801561152a5780601f106114ff5761010080835404028352916020019161152a565b820191906000526020600020905b81548152906001019060200180831161150d57829003601f168201915b505050505081565b600061153d8261273e565b9050919050565b601360019054906101000a900460ff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156115bf576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6116186126b7565b61162260006128d6565b565b61162c6126b7565b601360019054906101000a900460ff1615601360016101000a81548160ff021916908315150217905550565b6116606126b7565b80600a8190555050565b6116726126b7565b80600c9080519060200190611688929190613132565b5050565b6060600080600061169c85611557565b905060008167ffffffffffffffff8111156116ba576116b96134e3565b5b6040519080825280602002602001820160405280156116e85781602001602082028036833780820191505090505b5090506116f36131b8565b60006116fd612735565b90505b8386146117c8576117108161299c565b9150816040015115611721576117bd565b600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461176157816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156117bc57808387806001019850815181106117af576117ae613f3c565b5b6020026020010181815250505b5b806001019050611700565b508195505050505050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6118086126b7565b80600f8190555050565b60115481565b60125481565b60606003805461182d90613e58565b80601f016020809104026020016040519081016040528092919081815260200182805461185990613e58565b80156118a65780601f1061187b576101008083540402835291602001916118a6565b820191906000526020600020905b81548152906001019060200180831161188957829003601f168201915b5050505050905090565b60608183106118eb576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806118f66129c7565b9050611900612735565b8510156119125761190f612735565b94505b8084111561191e578093505b600061192987611557565b90508486101561194c576000868603905081811015611946578091505b50611951565b600090505b60008167ffffffffffffffff81111561196d5761196c6134e3565b5b60405190808252806020026020018201604052801561199b5781602001602082028036833780820191505090505b50905060008214156119b35780945050505050611abd565b60006119be88611eec565b9050600081604001516119d357816000015190505b60008990505b8881141580156119e95750848714155b15611aaf576119f78161299c565b9250826040015115611a0857611aa4565b600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff1614611a4857826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611aa35780848880600101995081518110611a9657611a95613f3c565b5b6020026020010181815250505b5b8060010190506119d9565b508583528296505050505050505b9392505050565b600f5481565b8060008111611b0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b0590613fb7565b60405180910390fd5b601154811115611b53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b4a90614049565b60405180910390fd5b60105481611b5f610e1b565b611b699190614098565b1115611baa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba190614160565b60405180910390fd5b8180600f54611bb99190614180565b341015611bfb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bf29061424c565b60405180910390fd5b601360009054906101000a900460ff1615611c4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c42906142de565b60405180910390fd5b611c5c611c566129d0565b846129d8565b505050565b611c696126af565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611cce576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611cdb6126af565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611d886126af565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611dcd91906132d8565b60405180910390a35050565b600e8054611de690613e58565b80601f0160208091040260200160405190810160405280929190818152602001828054611e1290613e58565b8015611e5f5780601f10611e3457610100808354040283529160200191611e5f565b820191906000526020600020905b815481529060010190602001808311611e4257829003601f168201915b505050505081565b611e6f6126b7565b8060118190555050565b611e84848484610e32565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611ee657611eaf848484846129f6565b611ee5576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b611ef46131b8565b611efc6131b8565b611f04612735565b831080611f185750611f146129c7565b8310155b15611f265780915050611f51565b611f2f8361299c565b9050806040015115611f445780915050611f51565b611f4d83612b47565b9150505b919050565b6060611f6182612650565b611fa0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9790614370565b60405180910390fd5b60001515601360029054906101000a900460ff161515141561204e57600e8054611fc990613e58565b80601f0160208091040260200160405190810160405280929190818152602001828054611ff590613e58565b80156120425780601f1061201757610100808354040283529160200191612042565b820191906000526020600020905b81548152906001019060200180831161202557829003601f168201915b505050505090506120aa565b6000612058612b67565b9050600081511161207857604051806020016040528060008152506120a6565b8061208284612bf9565b600d60405160200161209693929190614460565b6040516020818303038152906040525b9150505b919050565b82600081116120f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120ea90613fb7565b60405180910390fd5b601154811115612138576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161212f90614049565b60405180910390fd5b60105481612144610e1b565b61214e9190614098565b111561218f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161218690614160565b60405180910390fd5b8380600f5461219e9190614180565b3410156121e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d79061424c565b60405180910390fd5b601360019054906101000a900460ff1661222f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612226906144dd565b60405180910390fd5b6000600b600061223d6129d0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060125486826122899190614098565b11156122ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122c19061456f565b60405180910390fd5b60006122d46129d0565b6040516020016122e491906145d7565b60405160208183030381529060405280519060200120905061234a868680806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600a5483612d5a565b612389576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123809061463e565b60405180910390fd5b86600b60006123966129d0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546123df9190614098565b925050819055506123f76123f16129d0565b886129d8565b50505050505050565b60105481565b61240e6126b7565b601360009054906101000a900460ff1615601360006101000a81548160ff021916908315150217905550565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6124d66126b7565b601360029054906101000a900460ff1615601360026101000a81548160ff021916908315150217905550565b8160008111612546576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161253d90613fb7565b60405180910390fd5b60105481612552610e1b565b61255c9190614098565b111561259d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612594906146aa565b60405180910390fd5b6125a56126b7565b6125af82846129d8565b505050565b6125bc6126b7565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561262c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126239061473c565b60405180910390fd5b612635816128d6565b50565b600b6020528060005260406000206000915090505481565b60008161265b612735565b1115801561266a575060005482105b80156126a8575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b6126bf6129d0565b73ffffffffffffffffffffffffffffffffffffffff166126dd6117d6565b73ffffffffffffffffffffffffffffffffffffffff1614612733576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161272a906147a8565b60405180910390fd5b565b60006001905090565b6000808290508061274d612735565b116127d5576000548110156127d45760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821614156127d2575b60008114156127c857600460008360019003935083815260200190815260200160002054905061279d565b8092505050612807565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612894868684612d71565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6129a46131b8565b6129c06004600084815260200190815260200160002054612d7a565b9050919050565b60008054905090565b600033905090565b6129f2828260405180602001604052806000815250612e30565b5050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612a1c6126af565b8786866040518563ffffffff1660e01b8152600401612a3e949392919061481d565b6020604051808303816000875af1925050508015612a7a57506040513d601f19601f82011682018060405250810190612a77919061487e565b60015b612af4573d8060008114612aaa576040519150601f19603f3d011682016040523d82523d6000602084013e612aaf565b606091505b50600081511415612aec576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b612b4f6131b8565b612b60612b5b8361273e565b612d7a565b9050919050565b6060600c8054612b7690613e58565b80601f0160208091040260200160405190810160405280929190818152602001828054612ba290613e58565b8015612bef5780601f10612bc457610100808354040283529160200191612bef565b820191906000526020600020905b815481529060010190602001808311612bd257829003601f168201915b5050505050905090565b60606000821415612c41576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612d55565b600082905060005b60008214612c73578080612c5c906148ab565b915050600a82612c6c9190614923565b9150612c49565b60008167ffffffffffffffff811115612c8f57612c8e6134e3565b5b6040519080825280601f01601f191660200182016040528015612cc15781602001600182028036833780820191505090505b5090505b60008514612d4e57600182612cda9190614954565b9150600a85612ce99190614988565b6030612cf59190614098565b60f81b818381518110612d0b57612d0a613f3c565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612d479190614923565b9450612cc5565b8093505050505b919050565b600082612d678584612ecd565b1490509392505050565b60009392505050565b612d826131b8565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b612e3a8383612f23565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612ec857600080549050600083820390505b612e7a60008683806001019450866129f6565b612eb0576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110612e67578160005414612ec557600080fd5b50505b505050565b60008082905060005b8451811015612f1857612f0382868381518110612ef657612ef5613f3c565b5b60200260200101516130e0565b91508080612f10906148ab565b915050612ed6565b508091505092915050565b6000805490506000821415612f64576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612f716000848385612877565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612fe883612fd9600086600061287d565b612fe28561310b565b176128a5565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461308957808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460018101905061304e565b5060008214156130c5576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506130db60008483856128d0565b505050565b60008183106130f8576130f3828461311b565b613103565b613102838361311b565b5b905092915050565b60006001821460e11b9050919050565b600082600052816020526040600020905092915050565b82805461313e90613e58565b90600052602060002090601f01602090048101928261316057600085556131a7565b82601f1061317957805160ff19168380011785556131a7565b828001600101855582156131a7579182015b828111156131a657825182559160200191906001019061318b565b5b5090506131b49190613207565b5090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b5b80821115613220576000816000905550600101613208565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61326d81613238565b811461327857600080fd5b50565b60008135905061328a81613264565b92915050565b6000602082840312156132a6576132a561322e565b5b60006132b48482850161327b565b91505092915050565b60008115159050919050565b6132d2816132bd565b82525050565b60006020820190506132ed60008301846132c9565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561332d578082015181840152602081019050613312565b8381111561333c576000848401525b50505050565b6000601f19601f8301169050919050565b600061335e826132f3565b61336881856132fe565b935061337881856020860161330f565b61338181613342565b840191505092915050565b600060208201905081810360008301526133a68184613353565b905092915050565b6000819050919050565b6133c1816133ae565b81146133cc57600080fd5b50565b6000813590506133de816133b8565b92915050565b6000602082840312156133fa576133f961322e565b5b6000613408848285016133cf565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061343c82613411565b9050919050565b61344c81613431565b82525050565b60006020820190506134676000830184613443565b92915050565b61347681613431565b811461348157600080fd5b50565b6000813590506134938161346d565b92915050565b600080604083850312156134b0576134af61322e565b5b60006134be85828601613484565b92505060206134cf858286016133cf565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61351b82613342565b810181811067ffffffffffffffff8211171561353a576135396134e3565b5b80604052505050565b600061354d613224565b90506135598282613512565b919050565b600067ffffffffffffffff821115613579576135786134e3565b5b61358282613342565b9050602081019050919050565b82818337600083830152505050565b60006135b16135ac8461355e565b613543565b9050828152602081018484840111156135cd576135cc6134de565b5b6135d884828561358f565b509392505050565b600082601f8301126135f5576135f46134d9565b5b813561360584826020860161359e565b91505092915050565b6000602082840312156136245761362361322e565b5b600082013567ffffffffffffffff81111561364257613641613233565b5b61364e848285016135e0565b91505092915050565b613660816133ae565b82525050565b600060208201905061367b6000830184613657565b92915050565b60008060006060848603121561369a5761369961322e565b5b60006136a886828701613484565b93505060206136b986828701613484565b92505060406136ca868287016133cf565b9150509250925092565b6000819050919050565b6136e7816136d4565b82525050565b600060208201905061370260008301846136de565b92915050565b60006020828403121561371e5761371d61322e565b5b600061372c84828501613484565b91505092915050565b600080fd5b600080fd5b60008083601f840112613755576137546134d9565b5b8235905067ffffffffffffffff81111561377257613771613735565b5b60208301915083602082028301111561378e5761378d61373a565b5b9250929050565b600080602083850312156137ac576137ab61322e565b5b600083013567ffffffffffffffff8111156137ca576137c9613233565b5b6137d68582860161373f565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61381781613431565b82525050565b600067ffffffffffffffff82169050919050565b61383a8161381d565b82525050565b613849816132bd565b82525050565b600062ffffff82169050919050565b6138678161384f565b82525050565b608082016000820151613883600085018261380e565b5060208201516138966020850182613831565b5060408201516138a96040850182613840565b5060608201516138bc606085018261385e565b50505050565b60006138ce838361386d565b60808301905092915050565b6000602082019050919050565b60006138f2826137e2565b6138fc81856137ed565b9350613907836137fe565b8060005b8381101561393857815161391f88826138c2565b975061392a836138da565b92505060018101905061390b565b5085935050505092915050565b6000602082019050818103600083015261395f81846138e7565b905092915050565b613970816136d4565b811461397b57600080fd5b50565b60008135905061398d81613967565b92915050565b6000602082840312156139a9576139a861322e565b5b60006139b78482850161397e565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6139f5816133ae565b82525050565b6000613a0783836139ec565b60208301905092915050565b6000602082019050919050565b6000613a2b826139c0565b613a3581856139cb565b9350613a40836139dc565b8060005b83811015613a71578151613a5888826139fb565b9750613a6383613a13565b925050600181019050613a44565b5085935050505092915050565b60006020820190508181036000830152613a988184613a20565b905092915050565b600080600060608486031215613ab957613ab861322e565b5b6000613ac786828701613484565b9350506020613ad8868287016133cf565b9250506040613ae9868287016133cf565b9150509250925092565b613afc816132bd565b8114613b0757600080fd5b50565b600081359050613b1981613af3565b92915050565b60008060408385031215613b3657613b3561322e565b5b6000613b4485828601613484565b9250506020613b5585828601613b0a565b9150509250929050565b600067ffffffffffffffff821115613b7a57613b796134e3565b5b613b8382613342565b9050602081019050919050565b6000613ba3613b9e84613b5f565b613543565b905082815260208101848484011115613bbf57613bbe6134de565b5b613bca84828561358f565b509392505050565b600082601f830112613be757613be66134d9565b5b8135613bf7848260208601613b90565b91505092915050565b60008060008060808587031215613c1a57613c1961322e565b5b6000613c2887828801613484565b9450506020613c3987828801613484565b9350506040613c4a878288016133cf565b925050606085013567ffffffffffffffff811115613c6b57613c6a613233565b5b613c7787828801613bd2565b91505092959194509250565b608082016000820151613c99600085018261380e565b506020820151613cac6020850182613831565b506040820151613cbf6040850182613840565b506060820151613cd2606085018261385e565b50505050565b6000608082019050613ced6000830184613c83565b92915050565b60008083601f840112613d0957613d086134d9565b5b8235905067ffffffffffffffff811115613d2657613d25613735565b5b602083019150836020820283011115613d4257613d4161373a565b5b9250929050565b600080600060408486031215613d6257613d6161322e565b5b6000613d70868287016133cf565b935050602084013567ffffffffffffffff811115613d9157613d90613233565b5b613d9d86828701613cf3565b92509250509250925092565b60008060408385031215613dc057613dbf61322e565b5b6000613dce85828601613484565b9250506020613ddf85828601613484565b9150509250929050565b60008060408385031215613e0057613dff61322e565b5b6000613e0e858286016133cf565b9250506020613e1f85828601613484565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613e7057607f821691505b60208210811415613e8457613e83613e29565b5b50919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000613ec0601f836132fe565b9150613ecb82613e8a565b602082019050919050565b60006020820190508181036000830152613eef81613eb3565b9050919050565b600081905092915050565b50565b6000613f11600083613ef6565b9150613f1c82613f01565b600082019050919050565b6000613f3282613f04565b9150819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4c6f6c2c2063616e6e6f74206d696e74207a65726f2068656467696573000000600082015250565b6000613fa1601d836132fe565b9150613fac82613f6b565b602082019050919050565b60006020820190508181036000830152613fd081613f94565b9050919050565b7f4f68206e6f2c2063616e6e6f74206d696e742074686174206d616e792068656460008201527f6769657321000000000000000000000000000000000000000000000000000000602082015250565b60006140336025836132fe565b915061403e82613fd7565b604082019050919050565b6000602082019050818103600083015261406281614026565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006140a3826133ae565b91506140ae836133ae565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156140e3576140e2614069565b5b828201905092915050565b7f4d6178696d756d20737570706c79206f6620686564676965732065786365656460008201527f6564210000000000000000000000000000000000000000000000000000000000602082015250565b600061414a6023836132fe565b9150614155826140ee565b604082019050919050565b600060208201905081810360008301526141798161413d565b9050919050565b600061418b826133ae565b9150614196836133ae565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156141cf576141ce614069565b5b828202905092915050565b7f596f75206e656564206d6f726520457468657220696e20796f75722077616c6c60008201527f6574210000000000000000000000000000000000000000000000000000000000602082015250565b60006142366023836132fe565b9150614241826141da565b604082019050919050565b6000602082019050818103600083015261426581614229565b9050919050565b7f4d696e74696e67206973206e6f7420706f737369626c6520617420746865206d60008201527f6f6d656e74210000000000000000000000000000000000000000000000000000602082015250565b60006142c86026836132fe565b91506142d38261426c565b604082019050919050565b600060208201905081810360008301526142f7816142bb565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b600061435a602f836132fe565b9150614365826142fe565b604082019050919050565b600060208201905081810360008301526143898161434d565b9050919050565b600081905092915050565b60006143a6826132f3565b6143b08185614390565b93506143c081856020860161330f565b80840191505092915050565b60008190508160005260206000209050919050565b600081546143ee81613e58565b6143f88186614390565b94506001821660008114614413576001811461442457614457565b60ff19831686528186019350614457565b61442d856143cc565b60005b8381101561444f57815481890152600182019150602081019050614430565b838801955050505b50505092915050565b600061446c828661439b565b9150614478828561439b565b915061448482846143e1565b9150819050949350505050565b7f57686974656c697374206d696e74206973206e6f7420656e61626c6564210000600082015250565b60006144c7601e836132fe565b91506144d282614491565b602082019050919050565b600060208201905081810360008301526144f6816144ba565b9050919050565b7f4d6178696d756d2068656467696573207065722061646472657373206475726960008201527f6e672077686974656c6973742065786365656465640000000000000000000000602082015250565b60006145596035836132fe565b9150614564826144fd565b604082019050919050565b600060208201905081810360008301526145888161454c565b9050919050565b60008160601b9050919050565b60006145a78261458f565b9050919050565b60006145b98261459c565b9050919050565b6145d16145cc82613431565b6145ae565b82525050565b60006145e382846145c0565b60148201915081905092915050565b7f496e76616c6964206d65726b6c6570726f6f662c2061736b20466c7566667921600082015250565b60006146286020836132fe565b9150614633826145f2565b602082019050919050565b600060208201905081810360008301526146578161461b565b9050919050565b7f4d6178696d756d206f6620686564676965732065786365656465642100000000600082015250565b6000614694601c836132fe565b915061469f8261465e565b602082019050919050565b600060208201905081810360008301526146c381614687565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006147266026836132fe565b9150614731826146ca565b604082019050919050565b6000602082019050818103600083015261475581614719565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006147926020836132fe565b915061479d8261475c565b602082019050919050565b600060208201905081810360008301526147c181614785565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006147ef826147c8565b6147f981856147d3565b935061480981856020860161330f565b61481281613342565b840191505092915050565b60006080820190506148326000830187613443565b61483f6020830186613443565b61484c6040830185613657565b818103606083015261485e81846147e4565b905095945050505050565b60008151905061487881613264565b92915050565b6000602082840312156148945761489361322e565b5b60006148a284828501614869565b91505092915050565b60006148b6826133ae565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156148e9576148e8614069565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061492e826133ae565b9150614939836133ae565b925082614949576149486148f4565b5b828204905092915050565b600061495f826133ae565b915061496a836133ae565b92508282101561497d5761497c614069565b5b828203905092915050565b6000614993826133ae565b915061499e836133ae565b9250826149ae576149ad6148f4565b5b82820690509291505056fea26469706673582212204e42a4222effa48c00ebf488f9ca7378c11091d5380a35b5ab800005be14e51f64736f6c634300080b003368747470733a2f2f66696c65732e666c756666796865646765686f67732e636f6d2f68696464656e2e6a736f6e
Deployed Bytecode
0x6080604052600436106102ae5760003560e01c80637cb6475911610175578063a45ba8e7116100dc578063d5abeb0111610095578063ee4c2e451161006f578063ee4c2e4514610a6c578063efbd73f414610a83578063f2fde38b14610aac578063f9d38e9714610ad5576102ae565b8063d5abeb01146109ed578063d8a7921514610a18578063e985e9c514610a2f576102ae565b8063a45ba8e7146108da578063b071401b14610905578063b88d4fde1461092e578063c23dc68f14610957578063c87b56dd14610994578063d2cab056146109d1576102ae565b806395d245e41161012e57806395d245e4146107d757806395d89b411461080257806399a2557a1461082d578063a035b1fe1461086a578063a0712d6814610895578063a22cb465146108b1576102ae565b80637cb64759146106c95780637ec4a659146106f25780638462151c1461071b5780638da5cb5b1461075857806391b7f5ed1461078357806394354fd0146107ac576102ae565b80634fc4a0fa1161021957806362b99ad4116101d257806362b99ad4146105cb5780636352211e146105f65780636caede3d1461063357806370a082311461065e578063715018a61461069b578063750ee18a146106b2576102ae565b80634fc4a0fa146104bb5780634fdd43cb146104e4578063518302271461050d5780635503a0e8146105385780635bbb2177146105635780635c975abb146105a0576102ae565b806323b872dd1161026b57806323b872dd146103d55780632eb4a7ab146103fe5780633642c23f146104295780633ccfd60b1461045257806342842e0e1461046957806345bb71ef14610492576102ae565b806301ffc9a7146102b357806306fdde03146102f0578063081812fc1461031b578063095ea7b31461035857806316ba10e01461038157806318160ddd146103aa575b600080fd5b3480156102bf57600080fd5b506102da60048036038101906102d59190613290565b610b12565b6040516102e791906132d8565b60405180910390f35b3480156102fc57600080fd5b50610305610ba4565b604051610312919061338c565b60405180910390f35b34801561032757600080fd5b50610342600480360381019061033d91906133e4565b610c36565b60405161034f9190613452565b60405180910390f35b34801561036457600080fd5b5061037f600480360381019061037a9190613499565b610cb5565b005b34801561038d57600080fd5b506103a860048036038101906103a3919061360e565b610df9565b005b3480156103b657600080fd5b506103bf610e1b565b6040516103cc9190613666565b60405180910390f35b3480156103e157600080fd5b506103fc60048036038101906103f79190613681565b610e32565b005b34801561040a57600080fd5b50610413611157565b60405161042091906136ed565b60405180910390f35b34801561043557600080fd5b50610450600480360381019061044b9190613708565b61115d565b005b34801561045e57600080fd5b506104676111ab565b005b34801561047557600080fd5b50610490600480360381019061048b9190613681565b611289565b005b34801561049e57600080fd5b506104b960048036038101906104b491906133e4565b6112a9565b005b3480156104c757600080fd5b506104e260048036038101906104dd9190613499565b6112bb565b005b3480156104f057600080fd5b5061050b6004803603810190610506919061360e565b61130b565b005b34801561051957600080fd5b5061052261132d565b60405161052f91906132d8565b60405180910390f35b34801561054457600080fd5b5061054d611340565b60405161055a919061338c565b60405180910390f35b34801561056f57600080fd5b5061058a60048036038101906105859190613795565b6113ce565b6040516105979190613945565b60405180910390f35b3480156105ac57600080fd5b506105b5611491565b6040516105c291906132d8565b60405180910390f35b3480156105d757600080fd5b506105e06114a4565b6040516105ed919061338c565b60405180910390f35b34801561060257600080fd5b5061061d600480360381019061061891906133e4565b611532565b60405161062a9190613452565b60405180910390f35b34801561063f57600080fd5b50610648611544565b60405161065591906132d8565b60405180910390f35b34801561066a57600080fd5b5061068560048036038101906106809190613708565b611557565b6040516106929190613666565b60405180910390f35b3480156106a757600080fd5b506106b0611610565b005b3480156106be57600080fd5b506106c7611624565b005b3480156106d557600080fd5b506106f060048036038101906106eb9190613993565b611658565b005b3480156106fe57600080fd5b506107196004803603810190610714919061360e565b61166a565b005b34801561072757600080fd5b50610742600480360381019061073d9190613708565b61168c565b60405161074f9190613a7e565b60405180910390f35b34801561076457600080fd5b5061076d6117d6565b60405161077a9190613452565b60405180910390f35b34801561078f57600080fd5b506107aa60048036038101906107a591906133e4565b611800565b005b3480156107b857600080fd5b506107c1611812565b6040516107ce9190613666565b60405180910390f35b3480156107e357600080fd5b506107ec611818565b6040516107f99190613666565b60405180910390f35b34801561080e57600080fd5b5061081761181e565b604051610824919061338c565b60405180910390f35b34801561083957600080fd5b50610854600480360381019061084f9190613aa0565b6118b0565b6040516108619190613a7e565b60405180910390f35b34801561087657600080fd5b5061087f611ac4565b60405161088c9190613666565b60405180910390f35b6108af60048036038101906108aa91906133e4565b611aca565b005b3480156108bd57600080fd5b506108d860048036038101906108d39190613b1f565b611c61565b005b3480156108e657600080fd5b506108ef611dd9565b6040516108fc919061338c565b60405180910390f35b34801561091157600080fd5b5061092c600480360381019061092791906133e4565b611e67565b005b34801561093a57600080fd5b5061095560048036038101906109509190613c00565b611e79565b005b34801561096357600080fd5b5061097e600480360381019061097991906133e4565b611eec565b60405161098b9190613cd8565b60405180910390f35b3480156109a057600080fd5b506109bb60048036038101906109b691906133e4565b611f56565b6040516109c8919061338c565b60405180910390f35b6109eb60048036038101906109e69190613d49565b6120af565b005b3480156109f957600080fd5b50610a02612400565b604051610a0f9190613666565b60405180910390f35b348015610a2457600080fd5b50610a2d612406565b005b348015610a3b57600080fd5b50610a566004803603810190610a519190613da9565b61243a565b604051610a6391906132d8565b60405180910390f35b348015610a7857600080fd5b50610a816124ce565b005b348015610a8f57600080fd5b50610aaa6004803603810190610aa59190613de9565b612502565b005b348015610ab857600080fd5b50610ad36004803603810190610ace9190613708565b6125b4565b005b348015610ae157600080fd5b50610afc6004803603810190610af79190613708565b612638565b604051610b099190613666565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b6d57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b9d5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060028054610bb390613e58565b80601f0160208091040260200160405190810160405280929190818152602001828054610bdf90613e58565b8015610c2c5780601f10610c0157610100808354040283529160200191610c2c565b820191906000526020600020905b815481529060010190602001808311610c0f57829003601f168201915b5050505050905090565b6000610c4182612650565b610c77576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610cc082611532565b90508073ffffffffffffffffffffffffffffffffffffffff16610ce16126af565b73ffffffffffffffffffffffffffffffffffffffff1614610d4457610d0d81610d086126af565b61243a565b610d43576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b610e016126b7565b80600d9080519060200190610e17929190613132565b5050565b6000610e25612735565b6001546000540303905090565b6000610e3d8261273e565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ea4576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610eb08461280c565b91509150610ec68187610ec16126af565b612833565b610f1257610edb86610ed66126af565b61243a565b610f11576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610f79576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610f868686866001612877565b8015610f9157600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001019190508190555061105f8561103b88888761287d565b7c0200000000000000000000000000000000000000000000000000000000176128a5565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841614156110e75760006001850190506000600460008381526020019081526020016000205414156110e55760005481146110e4578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461114f86868660016128d0565b505050505050565b600a5481565b6111656126b7565b600b60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000905550565b6111b36126b7565b600260095414156111f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111f090613ed6565b60405180910390fd5b6002600981905550600061120b6117d6565b73ffffffffffffffffffffffffffffffffffffffff164760405161122e90613f27565b60006040518083038185875af1925050503d806000811461126b576040519150601f19603f3d011682016040523d82523d6000602084013e611270565b606091505b505090508061127e57600080fd5b506001600981905550565b6112a483838360405180602001604052806000815250611e79565b505050565b6112b16126b7565b8060128190555050565b6112c36126b7565b80600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b6113136126b7565b80600e9080519060200190611329929190613132565b5050565b601360029054906101000a900460ff1681565b600d805461134d90613e58565b80601f016020809104026020016040519081016040528092919081815260200182805461137990613e58565b80156113c65780601f1061139b576101008083540402835291602001916113c6565b820191906000526020600020905b8154815290600101906020018083116113a957829003601f168201915b505050505081565b6060600083839050905060008167ffffffffffffffff8111156113f4576113f36134e3565b5b60405190808252806020026020018201604052801561142d57816020015b61141a6131b8565b8152602001906001900390816114125790505b50905060005b8281146114855761145c8686838181106114505761144f613f3c565b5b90506020020135611eec565b82828151811061146f5761146e613f3c565b5b6020026020010181905250806001019050611433565b50809250505092915050565b601360009054906101000a900460ff1681565b600c80546114b190613e58565b80601f01602080910402602001604051908101604052809291908181526020018280546114dd90613e58565b801561152a5780601f106114ff5761010080835404028352916020019161152a565b820191906000526020600020905b81548152906001019060200180831161150d57829003601f168201915b505050505081565b600061153d8261273e565b9050919050565b601360019054906101000a900460ff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156115bf576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6116186126b7565b61162260006128d6565b565b61162c6126b7565b601360019054906101000a900460ff1615601360016101000a81548160ff021916908315150217905550565b6116606126b7565b80600a8190555050565b6116726126b7565b80600c9080519060200190611688929190613132565b5050565b6060600080600061169c85611557565b905060008167ffffffffffffffff8111156116ba576116b96134e3565b5b6040519080825280602002602001820160405280156116e85781602001602082028036833780820191505090505b5090506116f36131b8565b60006116fd612735565b90505b8386146117c8576117108161299c565b9150816040015115611721576117bd565b600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461176157816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156117bc57808387806001019850815181106117af576117ae613f3c565b5b6020026020010181815250505b5b806001019050611700565b508195505050505050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6118086126b7565b80600f8190555050565b60115481565b60125481565b60606003805461182d90613e58565b80601f016020809104026020016040519081016040528092919081815260200182805461185990613e58565b80156118a65780601f1061187b576101008083540402835291602001916118a6565b820191906000526020600020905b81548152906001019060200180831161188957829003601f168201915b5050505050905090565b60608183106118eb576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806118f66129c7565b9050611900612735565b8510156119125761190f612735565b94505b8084111561191e578093505b600061192987611557565b90508486101561194c576000868603905081811015611946578091505b50611951565b600090505b60008167ffffffffffffffff81111561196d5761196c6134e3565b5b60405190808252806020026020018201604052801561199b5781602001602082028036833780820191505090505b50905060008214156119b35780945050505050611abd565b60006119be88611eec565b9050600081604001516119d357816000015190505b60008990505b8881141580156119e95750848714155b15611aaf576119f78161299c565b9250826040015115611a0857611aa4565b600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff1614611a4857826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611aa35780848880600101995081518110611a9657611a95613f3c565b5b6020026020010181815250505b5b8060010190506119d9565b508583528296505050505050505b9392505050565b600f5481565b8060008111611b0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b0590613fb7565b60405180910390fd5b601154811115611b53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b4a90614049565b60405180910390fd5b60105481611b5f610e1b565b611b699190614098565b1115611baa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba190614160565b60405180910390fd5b8180600f54611bb99190614180565b341015611bfb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bf29061424c565b60405180910390fd5b601360009054906101000a900460ff1615611c4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c42906142de565b60405180910390fd5b611c5c611c566129d0565b846129d8565b505050565b611c696126af565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611cce576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611cdb6126af565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611d886126af565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611dcd91906132d8565b60405180910390a35050565b600e8054611de690613e58565b80601f0160208091040260200160405190810160405280929190818152602001828054611e1290613e58565b8015611e5f5780601f10611e3457610100808354040283529160200191611e5f565b820191906000526020600020905b815481529060010190602001808311611e4257829003601f168201915b505050505081565b611e6f6126b7565b8060118190555050565b611e84848484610e32565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611ee657611eaf848484846129f6565b611ee5576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b611ef46131b8565b611efc6131b8565b611f04612735565b831080611f185750611f146129c7565b8310155b15611f265780915050611f51565b611f2f8361299c565b9050806040015115611f445780915050611f51565b611f4d83612b47565b9150505b919050565b6060611f6182612650565b611fa0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9790614370565b60405180910390fd5b60001515601360029054906101000a900460ff161515141561204e57600e8054611fc990613e58565b80601f0160208091040260200160405190810160405280929190818152602001828054611ff590613e58565b80156120425780601f1061201757610100808354040283529160200191612042565b820191906000526020600020905b81548152906001019060200180831161202557829003601f168201915b505050505090506120aa565b6000612058612b67565b9050600081511161207857604051806020016040528060008152506120a6565b8061208284612bf9565b600d60405160200161209693929190614460565b6040516020818303038152906040525b9150505b919050565b82600081116120f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120ea90613fb7565b60405180910390fd5b601154811115612138576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161212f90614049565b60405180910390fd5b60105481612144610e1b565b61214e9190614098565b111561218f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161218690614160565b60405180910390fd5b8380600f5461219e9190614180565b3410156121e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d79061424c565b60405180910390fd5b601360019054906101000a900460ff1661222f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612226906144dd565b60405180910390fd5b6000600b600061223d6129d0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060125486826122899190614098565b11156122ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122c19061456f565b60405180910390fd5b60006122d46129d0565b6040516020016122e491906145d7565b60405160208183030381529060405280519060200120905061234a868680806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600a5483612d5a565b612389576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123809061463e565b60405180910390fd5b86600b60006123966129d0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546123df9190614098565b925050819055506123f76123f16129d0565b886129d8565b50505050505050565b60105481565b61240e6126b7565b601360009054906101000a900460ff1615601360006101000a81548160ff021916908315150217905550565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6124d66126b7565b601360029054906101000a900460ff1615601360026101000a81548160ff021916908315150217905550565b8160008111612546576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161253d90613fb7565b60405180910390fd5b60105481612552610e1b565b61255c9190614098565b111561259d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612594906146aa565b60405180910390fd5b6125a56126b7565b6125af82846129d8565b505050565b6125bc6126b7565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561262c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126239061473c565b60405180910390fd5b612635816128d6565b50565b600b6020528060005260406000206000915090505481565b60008161265b612735565b1115801561266a575060005482105b80156126a8575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b6126bf6129d0565b73ffffffffffffffffffffffffffffffffffffffff166126dd6117d6565b73ffffffffffffffffffffffffffffffffffffffff1614612733576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161272a906147a8565b60405180910390fd5b565b60006001905090565b6000808290508061274d612735565b116127d5576000548110156127d45760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821614156127d2575b60008114156127c857600460008360019003935083815260200190815260200160002054905061279d565b8092505050612807565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612894868684612d71565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6129a46131b8565b6129c06004600084815260200190815260200160002054612d7a565b9050919050565b60008054905090565b600033905090565b6129f2828260405180602001604052806000815250612e30565b5050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612a1c6126af565b8786866040518563ffffffff1660e01b8152600401612a3e949392919061481d565b6020604051808303816000875af1925050508015612a7a57506040513d601f19601f82011682018060405250810190612a77919061487e565b60015b612af4573d8060008114612aaa576040519150601f19603f3d011682016040523d82523d6000602084013e612aaf565b606091505b50600081511415612aec576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b612b4f6131b8565b612b60612b5b8361273e565b612d7a565b9050919050565b6060600c8054612b7690613e58565b80601f0160208091040260200160405190810160405280929190818152602001828054612ba290613e58565b8015612bef5780601f10612bc457610100808354040283529160200191612bef565b820191906000526020600020905b815481529060010190602001808311612bd257829003601f168201915b5050505050905090565b60606000821415612c41576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612d55565b600082905060005b60008214612c73578080612c5c906148ab565b915050600a82612c6c9190614923565b9150612c49565b60008167ffffffffffffffff811115612c8f57612c8e6134e3565b5b6040519080825280601f01601f191660200182016040528015612cc15781602001600182028036833780820191505090505b5090505b60008514612d4e57600182612cda9190614954565b9150600a85612ce99190614988565b6030612cf59190614098565b60f81b818381518110612d0b57612d0a613f3c565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612d479190614923565b9450612cc5565b8093505050505b919050565b600082612d678584612ecd565b1490509392505050565b60009392505050565b612d826131b8565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b612e3a8383612f23565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612ec857600080549050600083820390505b612e7a60008683806001019450866129f6565b612eb0576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110612e67578160005414612ec557600080fd5b50505b505050565b60008082905060005b8451811015612f1857612f0382868381518110612ef657612ef5613f3c565b5b60200260200101516130e0565b91508080612f10906148ab565b915050612ed6565b508091505092915050565b6000805490506000821415612f64576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612f716000848385612877565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612fe883612fd9600086600061287d565b612fe28561310b565b176128a5565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461308957808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460018101905061304e565b5060008214156130c5576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506130db60008483856128d0565b505050565b60008183106130f8576130f3828461311b565b613103565b613102838361311b565b5b905092915050565b60006001821460e11b9050919050565b600082600052816020526040600020905092915050565b82805461313e90613e58565b90600052602060002090601f01602090048101928261316057600085556131a7565b82601f1061317957805160ff19168380011785556131a7565b828001600101855582156131a7579182015b828111156131a657825182559160200191906001019061318b565b5b5090506131b49190613207565b5090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b5b80821115613220576000816000905550600101613208565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61326d81613238565b811461327857600080fd5b50565b60008135905061328a81613264565b92915050565b6000602082840312156132a6576132a561322e565b5b60006132b48482850161327b565b91505092915050565b60008115159050919050565b6132d2816132bd565b82525050565b60006020820190506132ed60008301846132c9565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561332d578082015181840152602081019050613312565b8381111561333c576000848401525b50505050565b6000601f19601f8301169050919050565b600061335e826132f3565b61336881856132fe565b935061337881856020860161330f565b61338181613342565b840191505092915050565b600060208201905081810360008301526133a68184613353565b905092915050565b6000819050919050565b6133c1816133ae565b81146133cc57600080fd5b50565b6000813590506133de816133b8565b92915050565b6000602082840312156133fa576133f961322e565b5b6000613408848285016133cf565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061343c82613411565b9050919050565b61344c81613431565b82525050565b60006020820190506134676000830184613443565b92915050565b61347681613431565b811461348157600080fd5b50565b6000813590506134938161346d565b92915050565b600080604083850312156134b0576134af61322e565b5b60006134be85828601613484565b92505060206134cf858286016133cf565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61351b82613342565b810181811067ffffffffffffffff8211171561353a576135396134e3565b5b80604052505050565b600061354d613224565b90506135598282613512565b919050565b600067ffffffffffffffff821115613579576135786134e3565b5b61358282613342565b9050602081019050919050565b82818337600083830152505050565b60006135b16135ac8461355e565b613543565b9050828152602081018484840111156135cd576135cc6134de565b5b6135d884828561358f565b509392505050565b600082601f8301126135f5576135f46134d9565b5b813561360584826020860161359e565b91505092915050565b6000602082840312156136245761362361322e565b5b600082013567ffffffffffffffff81111561364257613641613233565b5b61364e848285016135e0565b91505092915050565b613660816133ae565b82525050565b600060208201905061367b6000830184613657565b92915050565b60008060006060848603121561369a5761369961322e565b5b60006136a886828701613484565b93505060206136b986828701613484565b92505060406136ca868287016133cf565b9150509250925092565b6000819050919050565b6136e7816136d4565b82525050565b600060208201905061370260008301846136de565b92915050565b60006020828403121561371e5761371d61322e565b5b600061372c84828501613484565b91505092915050565b600080fd5b600080fd5b60008083601f840112613755576137546134d9565b5b8235905067ffffffffffffffff81111561377257613771613735565b5b60208301915083602082028301111561378e5761378d61373a565b5b9250929050565b600080602083850312156137ac576137ab61322e565b5b600083013567ffffffffffffffff8111156137ca576137c9613233565b5b6137d68582860161373f565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61381781613431565b82525050565b600067ffffffffffffffff82169050919050565b61383a8161381d565b82525050565b613849816132bd565b82525050565b600062ffffff82169050919050565b6138678161384f565b82525050565b608082016000820151613883600085018261380e565b5060208201516138966020850182613831565b5060408201516138a96040850182613840565b5060608201516138bc606085018261385e565b50505050565b60006138ce838361386d565b60808301905092915050565b6000602082019050919050565b60006138f2826137e2565b6138fc81856137ed565b9350613907836137fe565b8060005b8381101561393857815161391f88826138c2565b975061392a836138da565b92505060018101905061390b565b5085935050505092915050565b6000602082019050818103600083015261395f81846138e7565b905092915050565b613970816136d4565b811461397b57600080fd5b50565b60008135905061398d81613967565b92915050565b6000602082840312156139a9576139a861322e565b5b60006139b78482850161397e565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6139f5816133ae565b82525050565b6000613a0783836139ec565b60208301905092915050565b6000602082019050919050565b6000613a2b826139c0565b613a3581856139cb565b9350613a40836139dc565b8060005b83811015613a71578151613a5888826139fb565b9750613a6383613a13565b925050600181019050613a44565b5085935050505092915050565b60006020820190508181036000830152613a988184613a20565b905092915050565b600080600060608486031215613ab957613ab861322e565b5b6000613ac786828701613484565b9350506020613ad8868287016133cf565b9250506040613ae9868287016133cf565b9150509250925092565b613afc816132bd565b8114613b0757600080fd5b50565b600081359050613b1981613af3565b92915050565b60008060408385031215613b3657613b3561322e565b5b6000613b4485828601613484565b9250506020613b5585828601613b0a565b9150509250929050565b600067ffffffffffffffff821115613b7a57613b796134e3565b5b613b8382613342565b9050602081019050919050565b6000613ba3613b9e84613b5f565b613543565b905082815260208101848484011115613bbf57613bbe6134de565b5b613bca84828561358f565b509392505050565b600082601f830112613be757613be66134d9565b5b8135613bf7848260208601613b90565b91505092915050565b60008060008060808587031215613c1a57613c1961322e565b5b6000613c2887828801613484565b9450506020613c3987828801613484565b9350506040613c4a878288016133cf565b925050606085013567ffffffffffffffff811115613c6b57613c6a613233565b5b613c7787828801613bd2565b91505092959194509250565b608082016000820151613c99600085018261380e565b506020820151613cac6020850182613831565b506040820151613cbf6040850182613840565b506060820151613cd2606085018261385e565b50505050565b6000608082019050613ced6000830184613c83565b92915050565b60008083601f840112613d0957613d086134d9565b5b8235905067ffffffffffffffff811115613d2657613d25613735565b5b602083019150836020820283011115613d4257613d4161373a565b5b9250929050565b600080600060408486031215613d6257613d6161322e565b5b6000613d70868287016133cf565b935050602084013567ffffffffffffffff811115613d9157613d90613233565b5b613d9d86828701613cf3565b92509250509250925092565b60008060408385031215613dc057613dbf61322e565b5b6000613dce85828601613484565b9250506020613ddf85828601613484565b9150509250929050565b60008060408385031215613e0057613dff61322e565b5b6000613e0e858286016133cf565b9250506020613e1f85828601613484565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613e7057607f821691505b60208210811415613e8457613e83613e29565b5b50919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000613ec0601f836132fe565b9150613ecb82613e8a565b602082019050919050565b60006020820190508181036000830152613eef81613eb3565b9050919050565b600081905092915050565b50565b6000613f11600083613ef6565b9150613f1c82613f01565b600082019050919050565b6000613f3282613f04565b9150819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4c6f6c2c2063616e6e6f74206d696e74207a65726f2068656467696573000000600082015250565b6000613fa1601d836132fe565b9150613fac82613f6b565b602082019050919050565b60006020820190508181036000830152613fd081613f94565b9050919050565b7f4f68206e6f2c2063616e6e6f74206d696e742074686174206d616e792068656460008201527f6769657321000000000000000000000000000000000000000000000000000000602082015250565b60006140336025836132fe565b915061403e82613fd7565b604082019050919050565b6000602082019050818103600083015261406281614026565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006140a3826133ae565b91506140ae836133ae565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156140e3576140e2614069565b5b828201905092915050565b7f4d6178696d756d20737570706c79206f6620686564676965732065786365656460008201527f6564210000000000000000000000000000000000000000000000000000000000602082015250565b600061414a6023836132fe565b9150614155826140ee565b604082019050919050565b600060208201905081810360008301526141798161413d565b9050919050565b600061418b826133ae565b9150614196836133ae565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156141cf576141ce614069565b5b828202905092915050565b7f596f75206e656564206d6f726520457468657220696e20796f75722077616c6c60008201527f6574210000000000000000000000000000000000000000000000000000000000602082015250565b60006142366023836132fe565b9150614241826141da565b604082019050919050565b6000602082019050818103600083015261426581614229565b9050919050565b7f4d696e74696e67206973206e6f7420706f737369626c6520617420746865206d60008201527f6f6d656e74210000000000000000000000000000000000000000000000000000602082015250565b60006142c86026836132fe565b91506142d38261426c565b604082019050919050565b600060208201905081810360008301526142f7816142bb565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b600061435a602f836132fe565b9150614365826142fe565b604082019050919050565b600060208201905081810360008301526143898161434d565b9050919050565b600081905092915050565b60006143a6826132f3565b6143b08185614390565b93506143c081856020860161330f565b80840191505092915050565b60008190508160005260206000209050919050565b600081546143ee81613e58565b6143f88186614390565b94506001821660008114614413576001811461442457614457565b60ff19831686528186019350614457565b61442d856143cc565b60005b8381101561444f57815481890152600182019150602081019050614430565b838801955050505b50505092915050565b600061446c828661439b565b9150614478828561439b565b915061448482846143e1565b9150819050949350505050565b7f57686974656c697374206d696e74206973206e6f7420656e61626c6564210000600082015250565b60006144c7601e836132fe565b91506144d282614491565b602082019050919050565b600060208201905081810360008301526144f6816144ba565b9050919050565b7f4d6178696d756d2068656467696573207065722061646472657373206475726960008201527f6e672077686974656c6973742065786365656465640000000000000000000000602082015250565b60006145596035836132fe565b9150614564826144fd565b604082019050919050565b600060208201905081810360008301526145888161454c565b9050919050565b60008160601b9050919050565b60006145a78261458f565b9050919050565b60006145b98261459c565b9050919050565b6145d16145cc82613431565b6145ae565b82525050565b60006145e382846145c0565b60148201915081905092915050565b7f496e76616c6964206d65726b6c6570726f6f662c2061736b20466c7566667921600082015250565b60006146286020836132fe565b9150614633826145f2565b602082019050919050565b600060208201905081810360008301526146578161461b565b9050919050565b7f4d6178696d756d206f6620686564676965732065786365656465642100000000600082015250565b6000614694601c836132fe565b915061469f8261465e565b602082019050919050565b600060208201905081810360008301526146c381614687565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006147266026836132fe565b9150614731826146ca565b604082019050919050565b6000602082019050818103600083015261475581614719565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006147926020836132fe565b915061479d8261475c565b602082019050919050565b600060208201905081810360008301526147c181614785565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006147ef826147c8565b6147f981856147d3565b935061480981856020860161330f565b61481281613342565b840191505092915050565b60006080820190506148326000830187613443565b61483f6020830186613443565b61484c6040830185613657565b818103606083015261485e81846147e4565b905095945050505050565b60008151905061487881613264565b92915050565b6000602082840312156148945761489361322e565b5b60006148a284828501614869565b91505092915050565b60006148b6826133ae565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156148e9576148e8614069565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061492e826133ae565b9150614939836133ae565b925082614949576149486148f4565b5b828204905092915050565b600061495f826133ae565b915061496a836133ae565b92508282101561497d5761497c614069565b5b828203905092915050565b6000614993826133ae565b915061499e836133ae565b9250826149ae576149ad6148f4565b5b82820690509291505056fea26469706673582212204e42a4222effa48c00ebf488f9ca7378c11091d5380a35b5ab800005be14e51f64736f6c634300080b0033
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.