Feature Tip: Add private address tag to any address under My Name Tag !
NFT
Overview
TokenID
503
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
NanCupz
Compiler Version
v0.8.21+commit.d9974bed
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.21 <0.9.0; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; /* ββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββββ ββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββββ ββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββββ ββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββββ ββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββββ ββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββββ*/ contract NanCupz is ERC721A, Pausable, Ownable { // Different types of whitelist mint enum whitelistType { POTLIST, WHITELIST, CUPZLIST } bool public transfersPaused = false; bool public revealed = false; string public unrevealedUri; string public uriSuffix; string public baseUri; uint256 public maxSupply; uint256 public maxPerWalletPotlist; uint256 public maxPerWalletWhitelist; uint256 public maxPerWalletCupzlist; // Merkle roots to handle different types of mint bytes32 public merkleRootPotlist; bytes32 public merkleRootWhitelist; bytes32 public merkleRootCupzlist; mapping(address => uint256) public mintedTokens; // Blocked marketplaces mapping(address => bool) public blockedOperators; modifier whitelistCompliance( bytes32[] calldata _merkleProof, whitelistType mintType ) { bytes32 node = keccak256(abi.encodePacked(msg.sender)); bytes32 merkleRoot; // Assign merkleRoot depending on whitelist type provided by user if (mintType == whitelistType.POTLIST) { merkleRoot = merkleRootPotlist; } else if (mintType == whitelistType.WHITELIST) { merkleRoot = merkleRootWhitelist; } else if (mintType == whitelistType.CUPZLIST) { merkleRoot = merkleRootCupzlist; } require( MerkleProof.verify(_merkleProof, merkleRoot, node), "Invalid Merkle proof" ); _; } modifier mintCompliance(uint256 quantity, whitelistType mintType) { require(_totalMinted() + quantity <= maxSupply, "Max supply reached"); uint256 maxPerWallet = 0; // Assign maxPerWallet depending on whitelist type provided by user if (mintType == whitelistType.POTLIST) { maxPerWallet = maxPerWalletPotlist; } else if (mintType == whitelistType.WHITELIST) { maxPerWallet = maxPerWalletWhitelist; } else if (mintType == whitelistType.CUPZLIST) { maxPerWallet = maxPerWalletCupzlist; } require( _numberMinted(msg.sender) + quantity <= maxPerWallet, "Mint limit reached for wallet" ); _; } constructor( string memory _tokenName, string memory _tokenSymbol, bytes32 _merkleRootPotlist, bytes32 _merkleRootWhitelist, bytes32 _merkleRootCupzlist, string memory _baseUri, string memory _uriSuffix, string memory _unrevealedUri, uint256 _maxSupply ) ERC721A(_tokenName, _tokenSymbol) { pause(); maxPerWalletPotlist = 3; maxPerWalletWhitelist = 2; maxPerWalletCupzlist = 1; merkleRootPotlist = _merkleRootPotlist; merkleRootWhitelist = _merkleRootWhitelist; merkleRootCupzlist = _merkleRootCupzlist; baseUri = _baseUri; uriSuffix = _uriSuffix; unrevealedUri = _unrevealedUri; maxSupply = _maxSupply; } // Whitelist mint funciton function whitelistMint( uint256 quantity, whitelistType mintType, // Mint type: 0 - Potlist, 1 - Whitelist, 2 - Cupzlist bytes32[] calldata _merkleProof // Merkle proof for a corresponding mint type ) external payable whenNotPaused // Check if mint is paused whitelistCompliance(_merkleProof, mintType) mintCompliance(quantity, mintType) { _mint(msg.sender, quantity); } // OWNER SECTION function setBaseUri(string calldata _baseUri) external onlyOwner { baseUri = _baseUri; } function setUriSuffix(string calldata _uriSuffix) external onlyOwner { uriSuffix = _uriSuffix; } function setUnrevealedUri( string calldata _unrevealedUri ) external onlyOwner { unrevealedUri = _unrevealedUri; } // Update max per wallet per allowlist value function setMaxPerWalletPotlist(uint256 _maxPerWallet) external onlyOwner { maxPerWalletPotlist = _maxPerWallet; } function setMaxPerWalletWhitelist( uint256 _maxPerWallet ) external onlyOwner { maxPerWalletWhitelist = _maxPerWallet; } function setMaxPerWalletCupzlist(uint256 _maxPerWallet) external onlyOwner { maxPerWalletCupzlist = _maxPerWallet; } // Update merkel roots for allowlists function setMerkleRootPotlist(bytes32 _merkleRoot) external onlyOwner { merkleRootPotlist = _merkleRoot; } function setMerkleRootWhitelist(bytes32 _merkleRoot) external onlyOwner { merkleRootWhitelist = _merkleRoot; } function setMerkleRootCupzlist(bytes32 _merkleRoot) external onlyOwner { merkleRootCupzlist = _merkleRoot; } // Pause token transfers function setTransfersPaused(bool _setPause) public onlyOwner { transfersPaused = _setPause; } // Blocking marketplaces function blockOperator(address _address) external onlyOwner { blockedOperators[_address] = true; } function unblockOperator(address _address) external onlyOwner { blockedOperators[_address] = false; } // Owner airdrop mint function airdropMint( address _address, uint256 quantity ) external onlyOwner { _mint(_address, quantity); } // Pause mint process function pause() public onlyOwner { _pause(); } function unpause() public onlyOwner { _unpause(); } // Change mint reveal status function setRevealStatus(bool _status) public onlyOwner { revealed = _status; } // OVERRIDES function tokenURI( uint256 _tokenId ) public view virtual override returns (string memory) { if (!_exists(_tokenId)) revert URIQueryForNonexistentToken(); if (!revealed) { return unrevealedUri; } string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string( abi.encodePacked(baseURI, _toString(_tokenId), uriSuffix) ) : ""; } function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { require(!transfersPaused, "Transfers paused"); if (blockedOperators[msg.sender]) { revert("No transfer allowed"); } safeTransferFrom(from, to, tokenId, ""); } function _baseURI() internal view override returns (string memory) { return baseUri; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.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. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.2) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata(bytes32[] calldata proof, bytes32 root, bytes32 leaf) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuilds 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 proofLen = proof.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proofLen - 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 from 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) { require(proofPos == proofLen, "MerkleProof: invalid multiproof"); unchecked { return hashes[totalHashes - 1]; } } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuilds 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 proofLen = proof.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proofLen - 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 from 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) { require(proofPos == proofLen, "MerkleProof: invalid multiproof"); unchecked { 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 // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_tokenName","type":"string"},{"internalType":"string","name":"_tokenSymbol","type":"string"},{"internalType":"bytes32","name":"_merkleRootPotlist","type":"bytes32"},{"internalType":"bytes32","name":"_merkleRootWhitelist","type":"bytes32"},{"internalType":"bytes32","name":"_merkleRootCupzlist","type":"bytes32"},{"internalType":"string","name":"_baseUri","type":"string"},{"internalType":"string","name":"_uriSuffix","type":"string"},{"internalType":"string","name":"_unrevealedUri","type":"string"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"airdropMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"blockOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"blockedOperators","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerWalletCupzlist","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerWalletPotlist","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerWalletWhitelist","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":"merkleRootCupzlist","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRootPotlist","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRootWhitelist","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintedTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseUri","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxPerWallet","type":"uint256"}],"name":"setMaxPerWalletCupzlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxPerWallet","type":"uint256"}],"name":"setMaxPerWalletPotlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxPerWallet","type":"uint256"}],"name":"setMaxPerWalletWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRootCupzlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRootPotlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRootWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_status","type":"bool"}],"name":"setRevealStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_setPause","type":"bool"}],"name":"setTransfersPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_unrevealedUri","type":"string"}],"name":"setUnrevealedUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriSuffix","type":"string"}],"name":"setUriSuffix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"transfersPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"unblockOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unrevealedUri","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":"quantity","type":"uint256"},{"internalType":"enum NanCupz.whitelistType","name":"mintType","type":"uint8"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
60806040525f600860156101000a81548160ff0219169083151502179055505f600860166101000a81548160ff02191690831515021790555034801562000044575f80fd5b50604051620045093803806200450983398181016040528101906200006a9190620005e8565b888881600290816200007d91906200098a565b5080600390816200008f91906200098a565b50620000a06200016960201b60201c565b5f8190555050505f60085f6101000a81548160ff021916908315150217905550620000e0620000d46200016d60201b60201c565b6200017460201b60201c565b620000f06200023960201b60201c565b6003600d819055506002600e819055506001600f8190555086601081905550856011819055508460128190555083600b90816200012e91906200098a565b5082600a90816200014091906200098a565b5081600990816200015291906200098a565b5080600c8190555050505050505050505062000bb8565b5f90565b5f33905090565b5f600860019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620002496200025b60201b60201c565b62000259620002ec60201b60201c565b565b6200026b6200016d60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620002916200036060201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1614620002ea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002e19062000acc565b60405180910390fd5b565b620002fc6200038960201b60201c565b600160085f6101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620003476200016d60201b60201c565b60405162000356919062000b2f565b60405180910390a1565b5f600860019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b62000399620003de60201b60201c565b15620003dc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003d39062000b98565b60405180910390fd5b565b5f60085f9054906101000a900460ff16905090565b5f604051905090565b5f80fd5b5f80fd5b5f80fd5b5f80fd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b62000454826200040c565b810181811067ffffffffffffffff821117156200047657620004756200041c565b5b80604052505050565b5f6200048a620003f3565b905062000498828262000449565b919050565b5f67ffffffffffffffff821115620004ba57620004b96200041c565b5b620004c5826200040c565b9050602081019050919050565b5f5b83811015620004f1578082015181840152602081019050620004d4565b5f8484015250505050565b5f620005126200050c846200049d565b6200047f565b90508281526020810184848401111562000531576200053062000408565b5b6200053e848285620004d2565b509392505050565b5f82601f8301126200055d576200055c62000404565b5b81516200056f848260208601620004fc565b91505092915050565b5f819050919050565b6200058c8162000578565b811462000597575f80fd5b50565b5f81519050620005aa8162000581565b92915050565b5f819050919050565b620005c481620005b0565b8114620005cf575f80fd5b50565b5f81519050620005e281620005b9565b92915050565b5f805f805f805f805f6101208a8c031215620006095762000608620003fc565b5b5f8a015167ffffffffffffffff81111562000629576200062862000400565b5b620006378c828d0162000546565b99505060208a015167ffffffffffffffff8111156200065b576200065a62000400565b5b620006698c828d0162000546565b98505060406200067c8c828d016200059a565b97505060606200068f8c828d016200059a565b9650506080620006a28c828d016200059a565b95505060a08a015167ffffffffffffffff811115620006c657620006c562000400565b5b620006d48c828d0162000546565b94505060c08a015167ffffffffffffffff811115620006f857620006f762000400565b5b620007068c828d0162000546565b93505060e08a015167ffffffffffffffff8111156200072a576200072962000400565b5b620007388c828d0162000546565b9250506101006200074c8c828d01620005d2565b9150509295985092959850929598565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680620007ab57607f821691505b602082108103620007c157620007c062000766565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f60088302620008257fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620007e8565b620008318683620007e8565b95508019841693508086168417925050509392505050565b5f819050919050565b5f620008726200086c6200086684620005b0565b62000849565b620005b0565b9050919050565b5f819050919050565b6200088d8362000852565b620008a56200089c8262000879565b848454620007f4565b825550505050565b5f90565b620008bb620008ad565b620008c881848462000882565b505050565b5b81811015620008ef57620008e35f82620008b1565b600181019050620008ce565b5050565b601f8211156200093e576200090881620007c7565b6200091384620007d9565b8101602085101562000923578190505b6200093b6200093285620007d9565b830182620008cd565b50505b505050565b5f82821c905092915050565b5f620009605f198460080262000943565b1980831691505092915050565b5f6200097a83836200094f565b9150826002028217905092915050565b62000995826200075c565b67ffffffffffffffff811115620009b157620009b06200041c565b5b620009bd825462000793565b620009ca828285620008f3565b5f60209050601f83116001811462000a00575f8415620009eb578287015190505b620009f785826200096d565b86555062000a66565b601f19841662000a1086620007c7565b5f5b8281101562000a395784890151825560018201915060208501945060208101905062000a12565b8683101562000a59578489015162000a55601f8916826200094f565b8355505b6001600288020188555050505b505050505050565b5f82825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f62000ab460208362000a6e565b915062000ac18262000a7e565b602082019050919050565b5f6020820190508181035f83015262000ae58162000aa6565b9050919050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f62000b178262000aec565b9050919050565b62000b298162000b0b565b82525050565b5f60208201905062000b445f83018462000b1e565b92915050565b7f5061757361626c653a20706175736564000000000000000000000000000000005f82015250565b5f62000b8060108362000a6e565b915062000b8d8262000b4a565b602082019050919050565b5f6020820190508181035f83015262000bb18162000b72565b9050919050565b6139438062000bc65f395ff3fe6080604052600436106102ad575f3560e01c806370a08231116101745780639abc8320116100db578063c6baf91711610094578063e985e9c51161006e578063e985e9c5146109f3578063ead39cfb14610a2f578063f2fde38b14610a57578063fc8d658514610a7f576102ad565b8063c6baf91714610965578063c87b56dd1461098d578063d5abeb01146109c9576102ad565b80639abc83201461087b578063a0bcfc7f146108a5578063a22cb465146108cd578063a4f18771146108f5578063b88d4fde1461091f578063c02c1bcd1461093b576102ad565b8063869d12171161012d578063869d1217146107835780638da5cb5b146107ad5780638e1f9cfe146107d75780638e41caf91461080157806390fb5fb91461082957806395d89b4114610851576102ad565b806370a082311461068f578063715018a6146106cb5780637241dfa0146106e157806378003eab1461071d5780638456cb591461074557806384c99fb41461075b576102ad565b8063360bede81161021857806348bcb5dc116101d157806348bcb5dc1461059157806351830227146105b95780635503a0e8146105e35780635c975abb1461060d5780636352211e146106375780636df69b1814610673576102ad565b8063360bede8146104bb57806336a4e19b146104e35780633f4ba83a1461050d57806342842e0e1461052357806344e46dff1461053f5780634563f30a14610567576102ad565b806318160ddd1161026a57806318160ddd146103bf5780631d0cb0d5146103e957806322ad06701461041157806323b076d51461043957806323b872dd1461046357806324cf70ec1461047f576102ad565b806301ffc9a7146102b1578063051e0616146102ed57806306fdde0314610315578063081812fc1461033f578063095ea7b31461037b57806316ba10e014610397575b5f80fd5b3480156102bc575f80fd5b506102d760048036038101906102d291906127ec565b610aa9565b6040516102e49190612831565b60405180910390f35b3480156102f8575f80fd5b50610313600480360381019061030e919061287d565b610b3a565b005b348015610320575f80fd5b50610329610b4c565b6040516103369190612932565b60405180910390f35b34801561034a575f80fd5b506103656004803603810190610360919061287d565b610bdc565b6040516103729190612991565b60405180910390f35b610395600480360381019061039091906129d4565b610c56565b005b3480156103a2575f80fd5b506103bd60048036038101906103b89190612a73565b610d95565b005b3480156103ca575f80fd5b506103d3610db3565b6040516103e09190612acd565b60405180910390f35b3480156103f4575f80fd5b5061040f600480360381019061040a9190612ae6565b610dc8565b005b34801561041c575f80fd5b50610437600480360381019061043291906129d4565b610e27565b005b348015610444575f80fd5b5061044d610e3d565b60405161045a9190612acd565b60405180910390f35b61047d60048036038101906104789190612b11565b610e43565b005b34801561048a575f80fd5b506104a560048036038101906104a09190612ae6565b611151565b6040516104b29190612831565b60405180910390f35b3480156104c6575f80fd5b506104e160048036038101906104dc9190612b94565b61116e565b005b3480156104ee575f80fd5b506104f7611180565b6040516105049190612acd565b60405180910390f35b348015610518575f80fd5b50610521611186565b005b61053d60048036038101906105389190612b11565b611198565b005b34801561054a575f80fd5b5061056560048036038101906105609190612be9565b611291565b005b348015610572575f80fd5b5061057b6112b6565b6040516105889190612831565b60405180910390f35b34801561059c575f80fd5b506105b760048036038101906105b2919061287d565b6112c9565b005b3480156105c4575f80fd5b506105cd6112db565b6040516105da9190612831565b60405180910390f35b3480156105ee575f80fd5b506105f76112ee565b6040516106049190612932565b60405180910390f35b348015610618575f80fd5b5061062161137a565b60405161062e9190612831565b60405180910390f35b348015610642575f80fd5b5061065d6004803603810190610658919061287d565b61138f565b60405161066a9190612991565b60405180910390f35b61068d60048036038101906106889190612c8c565b6113a0565b005b34801561069a575f80fd5b506106b560048036038101906106b09190612ae6565b611664565b6040516106c29190612acd565b60405180910390f35b3480156106d6575f80fd5b506106df611719565b005b3480156106ec575f80fd5b5061070760048036038101906107029190612ae6565b61172c565b6040516107149190612acd565b60405180910390f35b348015610728575f80fd5b50610743600480360381019061073e9190612b94565b611741565b005b348015610750575f80fd5b50610759611753565b005b348015610766575f80fd5b50610781600480360381019061077c9190612be9565b611765565b005b34801561078e575f80fd5b5061079761178a565b6040516107a49190612d0c565b60405180910390f35b3480156107b8575f80fd5b506107c1611790565b6040516107ce9190612991565b60405180910390f35b3480156107e2575f80fd5b506107eb6117b9565b6040516107f89190612d0c565b60405180910390f35b34801561080c575f80fd5b5061082760048036038101906108229190612b94565b6117bf565b005b348015610834575f80fd5b5061084f600480360381019061084a9190612a73565b6117d1565b005b34801561085c575f80fd5b506108656117ef565b6040516108729190612932565b60405180910390f35b348015610886575f80fd5b5061088f61187f565b60405161089c9190612932565b60405180910390f35b3480156108b0575f80fd5b506108cb60048036038101906108c69190612a73565b61190b565b005b3480156108d8575f80fd5b506108f360048036038101906108ee9190612d25565b611929565b005b348015610900575f80fd5b50610909611a2f565b6040516109169190612d0c565b60405180910390f35b61093960048036038101906109349190612e8b565b611a35565b005b348015610946575f80fd5b5061094f611aa7565b60405161095c9190612932565b60405180910390f35b348015610970575f80fd5b5061098b6004803603810190610986919061287d565b611b33565b005b348015610998575f80fd5b506109b360048036038101906109ae919061287d565b611b45565b6040516109c09190612932565b60405180910390f35b3480156109d4575f80fd5b506109dd611c88565b6040516109ea9190612acd565b60405180910390f35b3480156109fe575f80fd5b50610a196004803603810190610a149190612f0b565b611c8e565b604051610a269190612831565b60405180910390f35b348015610a3a575f80fd5b50610a556004803603810190610a509190612ae6565b611d1c565b005b348015610a62575f80fd5b50610a7d6004803603810190610a789190612ae6565b611d7c565b005b348015610a8a575f80fd5b50610a93611dfe565b604051610aa09190612acd565b60405180910390f35b5f6301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b0357506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b335750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b610b42611e04565b80600f8190555050565b606060028054610b5b90612f76565b80601f0160208091040260200160405190810160405280929190818152602001828054610b8790612f76565b8015610bd25780601f10610ba957610100808354040283529160200191610bd2565b820191905f5260205f20905b815481529060010190602001808311610bb557829003601f168201915b5050505050905090565b5f610be682611e82565b610c1c576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60065f8381526020019081526020015f205f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b5f610c608261138f565b90508073ffffffffffffffffffffffffffffffffffffffff16610c81611edc565b73ffffffffffffffffffffffffffffffffffffffff1614610ce457610cad81610ca8611edc565b611c8e565b610ce3576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b8260065f8481526020019081526020015f205f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b610d9d611e04565b8181600a9182610dae92919061314d565b505050565b5f610dbc611ee3565b6001545f540303905090565b610dd0611e04565b5f60145f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555050565b610e2f611e04565b610e398282611ee7565b5050565b600f5481565b5f610e4d82612090565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610eb4576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f80610ebf84612153565b91509150610ed58187610ed0611edc565b612176565b610f2157610eea86610ee5611edc565b611c8e565b610f20576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610f86576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610f9386868660016121b9565b8015610f9d575f82555b60055f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8154600190039190508190555060055f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f815460010191905081905550611065856110418888876121bf565b7c0200000000000000000000000000000000000000000000000000000000176121e6565b60045f8681526020019081526020015f20819055505f7c02000000000000000000000000000000000000000000000000000000008416036110e1575f6001850190505f60045f8381526020019081526020015f2054036110df575f5481146110de578360045f8381526020019081526020015f20819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46111498686866001612210565b505050505050565b6014602052805f5260405f205f915054906101000a900460ff1681565b611176611e04565b8060118190555050565b600e5481565b61118e611e04565b611196612216565b565b600860159054906101000a900460ff16156111e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111df90613264565b60405180910390fd5b60145f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615611272576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611269906132cc565b60405180910390fd5b61128c83838360405180602001604052805f815250611a35565b505050565b611299611e04565b80600860156101000a81548160ff02191690831515021790555050565b600860159054906101000a900460ff1681565b6112d1611e04565b80600d8190555050565b600860169054906101000a900460ff1681565b600a80546112fb90612f76565b80601f016020809104026020016040519081016040528092919081815260200182805461132790612f76565b80156113725780601f1061134957610100808354040283529160200191611372565b820191905f5260205f20905b81548152906001019060200180831161135557829003601f168201915b505050505081565b5f60085f9054906101000a900460ff16905090565b5f61139982612090565b9050919050565b6113a8612277565b8181845f336040516020016113bd919061332f565b6040516020818303038152906040528051906020012090505f8060028111156113e9576113e8613349565b5b8360028111156113fc576113fb613349565b5b0361140b576010549050611474565b6001600281111561141f5761141e613349565b5b83600281111561143257611431613349565b5b03611441576011549050611473565b60028081111561145457611453613349565b5b83600281111561146757611466613349565b5b036114725760125490505b5b5b6114bf8585808060200260200160405190810160405280939291908181526020018383602002808284375f81840152601f19601f8201169050808301925050505050505082846122c1565b6114fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f5906133c0565b60405180910390fd5b8888600c548261150c6122d7565b611516919061340b565b1115611557576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154e90613488565b60405180910390fd5b5f80600281111561156b5761156a613349565b5b82600281111561157e5761157d613349565b5b0361158d57600d5490506115f6565b600160028111156115a1576115a0613349565b5b8260028111156115b4576115b3613349565b5b036115c357600e5490506115f5565b6002808111156115d6576115d5613349565b5b8260028111156115e9576115e8613349565b5b036115f457600f5490505b5b5b8083611601336122e8565b61160b919061340b565b111561164c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611643906134f0565b60405180910390fd5b611656338d611ee7565b505050505050505050505050565b5f8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036116ca576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054169050919050565b611721611e04565b61172a5f61233c565b565b6013602052805f5260405f205f915090505481565b611749611e04565b8060108190555050565b61175b611e04565b611763612401565b565b61176d611e04565b80600860166101000a81548160ff02191690831515021790555050565b60125481565b5f600860019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60115481565b6117c7611e04565b8060128190555050565b6117d9611e04565b8181600991826117ea92919061314d565b505050565b6060600380546117fe90612f76565b80601f016020809104026020016040519081016040528092919081815260200182805461182a90612f76565b80156118755780601f1061184c57610100808354040283529160200191611875565b820191905f5260205f20905b81548152906001019060200180831161185857829003601f168201915b5050505050905090565b600b805461188c90612f76565b80601f01602080910402602001604051908101604052809291908181526020018280546118b890612f76565b80156119035780601f106118da57610100808354040283529160200191611903565b820191905f5260205f20905b8154815290600101906020018083116118e657829003601f168201915b505050505081565b611913611e04565b8181600b918261192492919061314d565b505050565b8060075f611935611edc565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166119de611edc565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611a239190612831565b60405180910390a35050565b60105481565b611a40848484610e43565b5f8373ffffffffffffffffffffffffffffffffffffffff163b14611aa157611a6a84848484612463565b611aa0576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60098054611ab490612f76565b80601f0160208091040260200160405190810160405280929190818152602001828054611ae090612f76565b8015611b2b5780601f10611b0257610100808354040283529160200191611b2b565b820191905f5260205f20905b815481529060010190602001808311611b0e57829003601f168201915b505050505081565b611b3b611e04565b80600e8190555050565b6060611b5082611e82565b611b86576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600860169054906101000a900460ff16611c2a5760098054611ba790612f76565b80601f0160208091040260200160405190810160405280929190818152602001828054611bd390612f76565b8015611c1e5780601f10611bf557610100808354040283529160200191611c1e565b820191905f5260205f20905b815481529060010190602001808311611c0157829003601f168201915b50505050509050611c83565b5f611c336125ae565b90505f815103611c515760405180602001604052805f815250611c7f565b80611c5b8461263e565b600a604051602001611c6f939291906135c8565b6040516020818303038152906040525b9150505b919050565b600c5481565b5f60075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b611d24611e04565b600160145f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555050565b611d84611e04565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611df2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de990613668565b60405180910390fd5b611dfb8161233c565b50565b600d5481565b611e0c61268d565b73ffffffffffffffffffffffffffffffffffffffff16611e2a611790565b73ffffffffffffffffffffffffffffffffffffffff1614611e80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e77906136d0565b60405180910390fd5b565b5f81611e8c611ee3565b11158015611e9a57505f5482105b8015611ed557505f7c010000000000000000000000000000000000000000000000000000000060045f8581526020019081526020015f205416145b9050919050565b5f33905090565b5f90565b5f805490505f8203611f25576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611f315f8483856121b9565b600160406001901b17820260055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282540192505081905550611fa383611f945f865f6121bf565b611f9d85612694565b176121e6565b60045f8381526020019081526020015f20819055505f80838301905073ffffffffffffffffffffffffffffffffffffffff8516915082825f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4600183015b81811461203d5780835f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4600181019050612004565b505f8203612077576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805f81905550505061208b5f848385612210565b505050565b5f808290508061209e611ee3565b1161211c575f5481101561211b575f60045f8381526020019081526020015f205490505f7c0100000000000000000000000000000000000000000000000000000000821603612119575b5f810361210f5760045f836001900393508381526020019081526020015f205490506120e8565b809250505061214e565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b5f805f60065f8581526020019081526020015f2090508092508254915050915091565b5f73ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b5f8060e883901c905060e86121d58686846126a3565b62ffffff16901b9150509392505050565b5f73ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b61221e6126ab565b5f60085f6101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61226061268d565b60405161226d9190612991565b60405180910390a1565b61227f61137a565b156122bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122b690613738565b60405180910390fd5b565b5f826122cd85846126f4565b1490509392505050565b5f6122e0611ee3565b5f5403905090565b5f67ffffffffffffffff604060055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054901c169050919050565b5f600860019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612409612277565b600160085f6101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861244c61268d565b6040516124599190612991565b60405180910390a1565b5f8373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612488611edc565b8786866040518563ffffffff1660e01b81526004016124aa94939291906137a8565b6020604051808303815f875af19250505080156124e557506040513d601f19601f820116820180604052508101906124e29190613806565b60015b61255b573d805f8114612513576040519150601f19603f3d011682016040523d82523d5f602084013e612518565b606091505b505f815103612553576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600b80546125bd90612f76565b80601f01602080910402602001604051908101604052809291908181526020018280546125e990612f76565b80156126345780601f1061260b57610100808354040283529160200191612634565b820191905f5260205f20905b81548152906001019060200180831161261757829003601f168201915b5050505050905090565b606060a060405101806040526020810391505f825281835b60011561267857600184039350600a81066030018453600a8104905080612656575b50828103602084039350808452505050919050565b5f33905090565b5f6001821460e11b9050919050565b5f9392505050565b6126b361137a565b6126f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126e99061387b565b60405180910390fd5b565b5f808290505f5b845181101561273d576127288286838151811061271b5761271a613899565b5b6020026020010151612748565b91508080612735906138c6565b9150506126fb565b508091505092915050565b5f81831061275f5761275a8284612772565b61276a565b6127698383612772565b5b905092915050565b5f825f528160205260405f20905092915050565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6127cb81612797565b81146127d5575f80fd5b50565b5f813590506127e6816127c2565b92915050565b5f602082840312156128015761280061278f565b5b5f61280e848285016127d8565b91505092915050565b5f8115159050919050565b61282b81612817565b82525050565b5f6020820190506128445f830184612822565b92915050565b5f819050919050565b61285c8161284a565b8114612866575f80fd5b50565b5f8135905061287781612853565b92915050565b5f602082840312156128925761289161278f565b5b5f61289f84828501612869565b91505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b838110156128df5780820151818401526020810190506128c4565b5f8484015250505050565b5f601f19601f8301169050919050565b5f612904826128a8565b61290e81856128b2565b935061291e8185602086016128c2565b612927816128ea565b840191505092915050565b5f6020820190508181035f83015261294a81846128fa565b905092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61297b82612952565b9050919050565b61298b81612971565b82525050565b5f6020820190506129a45f830184612982565b92915050565b6129b381612971565b81146129bd575f80fd5b50565b5f813590506129ce816129aa565b92915050565b5f80604083850312156129ea576129e961278f565b5b5f6129f7858286016129c0565b9250506020612a0885828601612869565b9150509250929050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f840112612a3357612a32612a12565b5b8235905067ffffffffffffffff811115612a5057612a4f612a16565b5b602083019150836001820283011115612a6c57612a6b612a1a565b5b9250929050565b5f8060208385031215612a8957612a8861278f565b5b5f83013567ffffffffffffffff811115612aa657612aa5612793565b5b612ab285828601612a1e565b92509250509250929050565b612ac78161284a565b82525050565b5f602082019050612ae05f830184612abe565b92915050565b5f60208284031215612afb57612afa61278f565b5b5f612b08848285016129c0565b91505092915050565b5f805f60608486031215612b2857612b2761278f565b5b5f612b35868287016129c0565b9350506020612b46868287016129c0565b9250506040612b5786828701612869565b9150509250925092565b5f819050919050565b612b7381612b61565b8114612b7d575f80fd5b50565b5f81359050612b8e81612b6a565b92915050565b5f60208284031215612ba957612ba861278f565b5b5f612bb684828501612b80565b91505092915050565b612bc881612817565b8114612bd2575f80fd5b50565b5f81359050612be381612bbf565b92915050565b5f60208284031215612bfe57612bfd61278f565b5b5f612c0b84828501612bd5565b91505092915050565b60038110612c20575f80fd5b50565b5f81359050612c3181612c14565b92915050565b5f8083601f840112612c4c57612c4b612a12565b5b8235905067ffffffffffffffff811115612c6957612c68612a16565b5b602083019150836020820283011115612c8557612c84612a1a565b5b9250929050565b5f805f8060608587031215612ca457612ca361278f565b5b5f612cb187828801612869565b9450506020612cc287828801612c23565b935050604085013567ffffffffffffffff811115612ce357612ce2612793565b5b612cef87828801612c37565b925092505092959194509250565b612d0681612b61565b82525050565b5f602082019050612d1f5f830184612cfd565b92915050565b5f8060408385031215612d3b57612d3a61278f565b5b5f612d48858286016129c0565b9250506020612d5985828601612bd5565b9150509250929050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b612d9d826128ea565b810181811067ffffffffffffffff82111715612dbc57612dbb612d67565b5b80604052505050565b5f612dce612786565b9050612dda8282612d94565b919050565b5f67ffffffffffffffff821115612df957612df8612d67565b5b612e02826128ea565b9050602081019050919050565b828183375f83830152505050565b5f612e2f612e2a84612ddf565b612dc5565b905082815260208101848484011115612e4b57612e4a612d63565b5b612e56848285612e0f565b509392505050565b5f82601f830112612e7257612e71612a12565b5b8135612e82848260208601612e1d565b91505092915050565b5f805f8060808587031215612ea357612ea261278f565b5b5f612eb0878288016129c0565b9450506020612ec1878288016129c0565b9350506040612ed287828801612869565b925050606085013567ffffffffffffffff811115612ef357612ef2612793565b5b612eff87828801612e5e565b91505092959194509250565b5f8060408385031215612f2157612f2061278f565b5b5f612f2e858286016129c0565b9250506020612f3f858286016129c0565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680612f8d57607f821691505b602082108103612fa057612f9f612f49565b5b50919050565b5f82905092915050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f6008830261300c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82612fd1565b6130168683612fd1565b95508019841693508086168417925050509392505050565b5f819050919050565b5f61305161304c6130478461284a565b61302e565b61284a565b9050919050565b5f819050919050565b61306a83613037565b61307e61307682613058565b848454612fdd565b825550505050565b5f90565b613092613086565b61309d818484613061565b505050565b5b818110156130c0576130b55f8261308a565b6001810190506130a3565b5050565b601f821115613105576130d681612fb0565b6130df84612fc2565b810160208510156130ee578190505b6131026130fa85612fc2565b8301826130a2565b50505b505050565b5f82821c905092915050565b5f6131255f198460080261310a565b1980831691505092915050565b5f61313d8383613116565b9150826002028217905092915050565b6131578383612fa6565b67ffffffffffffffff8111156131705761316f612d67565b5b61317a8254612f76565b6131858282856130c4565b5f601f8311600181146131b2575f84156131a0578287013590505b6131aa8582613132565b865550613211565b601f1984166131c086612fb0565b5f5b828110156131e7578489013582556001820191506020850194506020810190506131c2565b868310156132045784890135613200601f891682613116565b8355505b6001600288020188555050505b50505050505050565b7f5472616e736665727320706175736564000000000000000000000000000000005f82015250565b5f61324e6010836128b2565b91506132598261321a565b602082019050919050565b5f6020820190508181035f83015261327b81613242565b9050919050565b7f4e6f207472616e7366657220616c6c6f776564000000000000000000000000005f82015250565b5f6132b66013836128b2565b91506132c182613282565b602082019050919050565b5f6020820190508181035f8301526132e3816132aa565b9050919050565b5f8160601b9050919050565b5f613300826132ea565b9050919050565b5f613311826132f6565b9050919050565b61332961332482612971565b613307565b82525050565b5f61333a8284613318565b60148201915081905092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b7f496e76616c6964204d65726b6c652070726f6f660000000000000000000000005f82015250565b5f6133aa6014836128b2565b91506133b582613376565b602082019050919050565b5f6020820190508181035f8301526133d78161339e565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6134158261284a565b91506134208361284a565b9250828201905080821115613438576134376133de565b5b92915050565b7f4d617820737570706c79207265616368656400000000000000000000000000005f82015250565b5f6134726012836128b2565b915061347d8261343e565b602082019050919050565b5f6020820190508181035f83015261349f81613466565b9050919050565b7f4d696e74206c696d6974207265616368656420666f722077616c6c65740000005f82015250565b5f6134da601d836128b2565b91506134e5826134a6565b602082019050919050565b5f6020820190508181035f830152613507816134ce565b9050919050565b5f81905092915050565b5f613522826128a8565b61352c818561350e565b935061353c8185602086016128c2565b80840191505092915050565b5f815461355481612f76565b61355e818661350e565b9450600182165f8114613578576001811461358d576135bf565b60ff19831686528115158202860193506135bf565b61359685612fb0565b5f5b838110156135b757815481890152600182019150602081019050613598565b838801955050505b50505092915050565b5f6135d38286613518565b91506135df8285613518565b91506135eb8284613548565b9150819050949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f6136526026836128b2565b915061365d826135f8565b604082019050919050565b5f6020820190508181035f83015261367f81613646565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f6136ba6020836128b2565b91506136c582613686565b602082019050919050565b5f6020820190508181035f8301526136e7816136ae565b9050919050565b7f5061757361626c653a20706175736564000000000000000000000000000000005f82015250565b5f6137226010836128b2565b915061372d826136ee565b602082019050919050565b5f6020820190508181035f83015261374f81613716565b9050919050565b5f81519050919050565b5f82825260208201905092915050565b5f61377a82613756565b6137848185613760565b93506137948185602086016128c2565b61379d816128ea565b840191505092915050565b5f6080820190506137bb5f830187612982565b6137c86020830186612982565b6137d56040830185612abe565b81810360608301526137e78184613770565b905095945050505050565b5f81519050613800816127c2565b92915050565b5f6020828403121561381b5761381a61278f565b5b5f613828848285016137f2565b91505092915050565b7f5061757361626c653a206e6f74207061757365640000000000000000000000005f82015250565b5f6138656014836128b2565b915061387082613831565b602082019050919050565b5f6020820190508181035f83015261389281613859565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f6138d08261284a565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613902576139016133de565b5b60018201905091905056fea2646970667358221220cf78a8b062fd59eca44065763b544de1580b88584ad899aa1deb17e09a09ba8064736f6c6343000815003300000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000160feddca5fff137c9334a793c64d407faff044283330cc7dc9ffb31ae243abcc729aaee41ba9692931eaa670a6c64141f8db621ac6b61a290092190e101822538a3b3084d79e966c0c3bcb1e051f41c895c7a899bec21e7bb90332e5a602c99aa800000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000002eb00000000000000000000000000000000000000000000000000000000000000084e616e204375707a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044375707a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001668747470733a2f2f6d79626173657572692e636f6d2f0000000000000000000000000000000000000000000000000000000000000000000000000000000000052e6a736f6e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002c68747470733a2f2f6d79756e72657665616c65647572692e636f6d2f706c616365686f6c6465722e6a736f6e0000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102ad575f3560e01c806370a08231116101745780639abc8320116100db578063c6baf91711610094578063e985e9c51161006e578063e985e9c5146109f3578063ead39cfb14610a2f578063f2fde38b14610a57578063fc8d658514610a7f576102ad565b8063c6baf91714610965578063c87b56dd1461098d578063d5abeb01146109c9576102ad565b80639abc83201461087b578063a0bcfc7f146108a5578063a22cb465146108cd578063a4f18771146108f5578063b88d4fde1461091f578063c02c1bcd1461093b576102ad565b8063869d12171161012d578063869d1217146107835780638da5cb5b146107ad5780638e1f9cfe146107d75780638e41caf91461080157806390fb5fb91461082957806395d89b4114610851576102ad565b806370a082311461068f578063715018a6146106cb5780637241dfa0146106e157806378003eab1461071d5780638456cb591461074557806384c99fb41461075b576102ad565b8063360bede81161021857806348bcb5dc116101d157806348bcb5dc1461059157806351830227146105b95780635503a0e8146105e35780635c975abb1461060d5780636352211e146106375780636df69b1814610673576102ad565b8063360bede8146104bb57806336a4e19b146104e35780633f4ba83a1461050d57806342842e0e1461052357806344e46dff1461053f5780634563f30a14610567576102ad565b806318160ddd1161026a57806318160ddd146103bf5780631d0cb0d5146103e957806322ad06701461041157806323b076d51461043957806323b872dd1461046357806324cf70ec1461047f576102ad565b806301ffc9a7146102b1578063051e0616146102ed57806306fdde0314610315578063081812fc1461033f578063095ea7b31461037b57806316ba10e014610397575b5f80fd5b3480156102bc575f80fd5b506102d760048036038101906102d291906127ec565b610aa9565b6040516102e49190612831565b60405180910390f35b3480156102f8575f80fd5b50610313600480360381019061030e919061287d565b610b3a565b005b348015610320575f80fd5b50610329610b4c565b6040516103369190612932565b60405180910390f35b34801561034a575f80fd5b506103656004803603810190610360919061287d565b610bdc565b6040516103729190612991565b60405180910390f35b610395600480360381019061039091906129d4565b610c56565b005b3480156103a2575f80fd5b506103bd60048036038101906103b89190612a73565b610d95565b005b3480156103ca575f80fd5b506103d3610db3565b6040516103e09190612acd565b60405180910390f35b3480156103f4575f80fd5b5061040f600480360381019061040a9190612ae6565b610dc8565b005b34801561041c575f80fd5b50610437600480360381019061043291906129d4565b610e27565b005b348015610444575f80fd5b5061044d610e3d565b60405161045a9190612acd565b60405180910390f35b61047d60048036038101906104789190612b11565b610e43565b005b34801561048a575f80fd5b506104a560048036038101906104a09190612ae6565b611151565b6040516104b29190612831565b60405180910390f35b3480156104c6575f80fd5b506104e160048036038101906104dc9190612b94565b61116e565b005b3480156104ee575f80fd5b506104f7611180565b6040516105049190612acd565b60405180910390f35b348015610518575f80fd5b50610521611186565b005b61053d60048036038101906105389190612b11565b611198565b005b34801561054a575f80fd5b5061056560048036038101906105609190612be9565b611291565b005b348015610572575f80fd5b5061057b6112b6565b6040516105889190612831565b60405180910390f35b34801561059c575f80fd5b506105b760048036038101906105b2919061287d565b6112c9565b005b3480156105c4575f80fd5b506105cd6112db565b6040516105da9190612831565b60405180910390f35b3480156105ee575f80fd5b506105f76112ee565b6040516106049190612932565b60405180910390f35b348015610618575f80fd5b5061062161137a565b60405161062e9190612831565b60405180910390f35b348015610642575f80fd5b5061065d6004803603810190610658919061287d565b61138f565b60405161066a9190612991565b60405180910390f35b61068d60048036038101906106889190612c8c565b6113a0565b005b34801561069a575f80fd5b506106b560048036038101906106b09190612ae6565b611664565b6040516106c29190612acd565b60405180910390f35b3480156106d6575f80fd5b506106df611719565b005b3480156106ec575f80fd5b5061070760048036038101906107029190612ae6565b61172c565b6040516107149190612acd565b60405180910390f35b348015610728575f80fd5b50610743600480360381019061073e9190612b94565b611741565b005b348015610750575f80fd5b50610759611753565b005b348015610766575f80fd5b50610781600480360381019061077c9190612be9565b611765565b005b34801561078e575f80fd5b5061079761178a565b6040516107a49190612d0c565b60405180910390f35b3480156107b8575f80fd5b506107c1611790565b6040516107ce9190612991565b60405180910390f35b3480156107e2575f80fd5b506107eb6117b9565b6040516107f89190612d0c565b60405180910390f35b34801561080c575f80fd5b5061082760048036038101906108229190612b94565b6117bf565b005b348015610834575f80fd5b5061084f600480360381019061084a9190612a73565b6117d1565b005b34801561085c575f80fd5b506108656117ef565b6040516108729190612932565b60405180910390f35b348015610886575f80fd5b5061088f61187f565b60405161089c9190612932565b60405180910390f35b3480156108b0575f80fd5b506108cb60048036038101906108c69190612a73565b61190b565b005b3480156108d8575f80fd5b506108f360048036038101906108ee9190612d25565b611929565b005b348015610900575f80fd5b50610909611a2f565b6040516109169190612d0c565b60405180910390f35b61093960048036038101906109349190612e8b565b611a35565b005b348015610946575f80fd5b5061094f611aa7565b60405161095c9190612932565b60405180910390f35b348015610970575f80fd5b5061098b6004803603810190610986919061287d565b611b33565b005b348015610998575f80fd5b506109b360048036038101906109ae919061287d565b611b45565b6040516109c09190612932565b60405180910390f35b3480156109d4575f80fd5b506109dd611c88565b6040516109ea9190612acd565b60405180910390f35b3480156109fe575f80fd5b50610a196004803603810190610a149190612f0b565b611c8e565b604051610a269190612831565b60405180910390f35b348015610a3a575f80fd5b50610a556004803603810190610a509190612ae6565b611d1c565b005b348015610a62575f80fd5b50610a7d6004803603810190610a789190612ae6565b611d7c565b005b348015610a8a575f80fd5b50610a93611dfe565b604051610aa09190612acd565b60405180910390f35b5f6301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b0357506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b335750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b610b42611e04565b80600f8190555050565b606060028054610b5b90612f76565b80601f0160208091040260200160405190810160405280929190818152602001828054610b8790612f76565b8015610bd25780601f10610ba957610100808354040283529160200191610bd2565b820191905f5260205f20905b815481529060010190602001808311610bb557829003601f168201915b5050505050905090565b5f610be682611e82565b610c1c576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60065f8381526020019081526020015f205f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b5f610c608261138f565b90508073ffffffffffffffffffffffffffffffffffffffff16610c81611edc565b73ffffffffffffffffffffffffffffffffffffffff1614610ce457610cad81610ca8611edc565b611c8e565b610ce3576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b8260065f8481526020019081526020015f205f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b610d9d611e04565b8181600a9182610dae92919061314d565b505050565b5f610dbc611ee3565b6001545f540303905090565b610dd0611e04565b5f60145f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555050565b610e2f611e04565b610e398282611ee7565b5050565b600f5481565b5f610e4d82612090565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610eb4576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f80610ebf84612153565b91509150610ed58187610ed0611edc565b612176565b610f2157610eea86610ee5611edc565b611c8e565b610f20576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610f86576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610f9386868660016121b9565b8015610f9d575f82555b60055f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8154600190039190508190555060055f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f815460010191905081905550611065856110418888876121bf565b7c0200000000000000000000000000000000000000000000000000000000176121e6565b60045f8681526020019081526020015f20819055505f7c02000000000000000000000000000000000000000000000000000000008416036110e1575f6001850190505f60045f8381526020019081526020015f2054036110df575f5481146110de578360045f8381526020019081526020015f20819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46111498686866001612210565b505050505050565b6014602052805f5260405f205f915054906101000a900460ff1681565b611176611e04565b8060118190555050565b600e5481565b61118e611e04565b611196612216565b565b600860159054906101000a900460ff16156111e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111df90613264565b60405180910390fd5b60145f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615611272576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611269906132cc565b60405180910390fd5b61128c83838360405180602001604052805f815250611a35565b505050565b611299611e04565b80600860156101000a81548160ff02191690831515021790555050565b600860159054906101000a900460ff1681565b6112d1611e04565b80600d8190555050565b600860169054906101000a900460ff1681565b600a80546112fb90612f76565b80601f016020809104026020016040519081016040528092919081815260200182805461132790612f76565b80156113725780601f1061134957610100808354040283529160200191611372565b820191905f5260205f20905b81548152906001019060200180831161135557829003601f168201915b505050505081565b5f60085f9054906101000a900460ff16905090565b5f61139982612090565b9050919050565b6113a8612277565b8181845f336040516020016113bd919061332f565b6040516020818303038152906040528051906020012090505f8060028111156113e9576113e8613349565b5b8360028111156113fc576113fb613349565b5b0361140b576010549050611474565b6001600281111561141f5761141e613349565b5b83600281111561143257611431613349565b5b03611441576011549050611473565b60028081111561145457611453613349565b5b83600281111561146757611466613349565b5b036114725760125490505b5b5b6114bf8585808060200260200160405190810160405280939291908181526020018383602002808284375f81840152601f19601f8201169050808301925050505050505082846122c1565b6114fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f5906133c0565b60405180910390fd5b8888600c548261150c6122d7565b611516919061340b565b1115611557576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154e90613488565b60405180910390fd5b5f80600281111561156b5761156a613349565b5b82600281111561157e5761157d613349565b5b0361158d57600d5490506115f6565b600160028111156115a1576115a0613349565b5b8260028111156115b4576115b3613349565b5b036115c357600e5490506115f5565b6002808111156115d6576115d5613349565b5b8260028111156115e9576115e8613349565b5b036115f457600f5490505b5b5b8083611601336122e8565b61160b919061340b565b111561164c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611643906134f0565b60405180910390fd5b611656338d611ee7565b505050505050505050505050565b5f8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036116ca576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054169050919050565b611721611e04565b61172a5f61233c565b565b6013602052805f5260405f205f915090505481565b611749611e04565b8060108190555050565b61175b611e04565b611763612401565b565b61176d611e04565b80600860166101000a81548160ff02191690831515021790555050565b60125481565b5f600860019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60115481565b6117c7611e04565b8060128190555050565b6117d9611e04565b8181600991826117ea92919061314d565b505050565b6060600380546117fe90612f76565b80601f016020809104026020016040519081016040528092919081815260200182805461182a90612f76565b80156118755780601f1061184c57610100808354040283529160200191611875565b820191905f5260205f20905b81548152906001019060200180831161185857829003601f168201915b5050505050905090565b600b805461188c90612f76565b80601f01602080910402602001604051908101604052809291908181526020018280546118b890612f76565b80156119035780601f106118da57610100808354040283529160200191611903565b820191905f5260205f20905b8154815290600101906020018083116118e657829003601f168201915b505050505081565b611913611e04565b8181600b918261192492919061314d565b505050565b8060075f611935611edc565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166119de611edc565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611a239190612831565b60405180910390a35050565b60105481565b611a40848484610e43565b5f8373ffffffffffffffffffffffffffffffffffffffff163b14611aa157611a6a84848484612463565b611aa0576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60098054611ab490612f76565b80601f0160208091040260200160405190810160405280929190818152602001828054611ae090612f76565b8015611b2b5780601f10611b0257610100808354040283529160200191611b2b565b820191905f5260205f20905b815481529060010190602001808311611b0e57829003601f168201915b505050505081565b611b3b611e04565b80600e8190555050565b6060611b5082611e82565b611b86576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600860169054906101000a900460ff16611c2a5760098054611ba790612f76565b80601f0160208091040260200160405190810160405280929190818152602001828054611bd390612f76565b8015611c1e5780601f10611bf557610100808354040283529160200191611c1e565b820191905f5260205f20905b815481529060010190602001808311611c0157829003601f168201915b50505050509050611c83565b5f611c336125ae565b90505f815103611c515760405180602001604052805f815250611c7f565b80611c5b8461263e565b600a604051602001611c6f939291906135c8565b6040516020818303038152906040525b9150505b919050565b600c5481565b5f60075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b611d24611e04565b600160145f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555050565b611d84611e04565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611df2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de990613668565b60405180910390fd5b611dfb8161233c565b50565b600d5481565b611e0c61268d565b73ffffffffffffffffffffffffffffffffffffffff16611e2a611790565b73ffffffffffffffffffffffffffffffffffffffff1614611e80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e77906136d0565b60405180910390fd5b565b5f81611e8c611ee3565b11158015611e9a57505f5482105b8015611ed557505f7c010000000000000000000000000000000000000000000000000000000060045f8581526020019081526020015f205416145b9050919050565b5f33905090565b5f90565b5f805490505f8203611f25576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611f315f8483856121b9565b600160406001901b17820260055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282540192505081905550611fa383611f945f865f6121bf565b611f9d85612694565b176121e6565b60045f8381526020019081526020015f20819055505f80838301905073ffffffffffffffffffffffffffffffffffffffff8516915082825f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4600183015b81811461203d5780835f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4600181019050612004565b505f8203612077576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805f81905550505061208b5f848385612210565b505050565b5f808290508061209e611ee3565b1161211c575f5481101561211b575f60045f8381526020019081526020015f205490505f7c0100000000000000000000000000000000000000000000000000000000821603612119575b5f810361210f5760045f836001900393508381526020019081526020015f205490506120e8565b809250505061214e565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b5f805f60065f8581526020019081526020015f2090508092508254915050915091565b5f73ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b5f8060e883901c905060e86121d58686846126a3565b62ffffff16901b9150509392505050565b5f73ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b61221e6126ab565b5f60085f6101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61226061268d565b60405161226d9190612991565b60405180910390a1565b61227f61137a565b156122bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122b690613738565b60405180910390fd5b565b5f826122cd85846126f4565b1490509392505050565b5f6122e0611ee3565b5f5403905090565b5f67ffffffffffffffff604060055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054901c169050919050565b5f600860019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612409612277565b600160085f6101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861244c61268d565b6040516124599190612991565b60405180910390a1565b5f8373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612488611edc565b8786866040518563ffffffff1660e01b81526004016124aa94939291906137a8565b6020604051808303815f875af19250505080156124e557506040513d601f19601f820116820180604052508101906124e29190613806565b60015b61255b573d805f8114612513576040519150601f19603f3d011682016040523d82523d5f602084013e612518565b606091505b505f815103612553576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600b80546125bd90612f76565b80601f01602080910402602001604051908101604052809291908181526020018280546125e990612f76565b80156126345780601f1061260b57610100808354040283529160200191612634565b820191905f5260205f20905b81548152906001019060200180831161261757829003601f168201915b5050505050905090565b606060a060405101806040526020810391505f825281835b60011561267857600184039350600a81066030018453600a8104905080612656575b50828103602084039350808452505050919050565b5f33905090565b5f6001821460e11b9050919050565b5f9392505050565b6126b361137a565b6126f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126e99061387b565b60405180910390fd5b565b5f808290505f5b845181101561273d576127288286838151811061271b5761271a613899565b5b6020026020010151612748565b91508080612735906138c6565b9150506126fb565b508091505092915050565b5f81831061275f5761275a8284612772565b61276a565b6127698383612772565b5b905092915050565b5f825f528160205260405f20905092915050565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6127cb81612797565b81146127d5575f80fd5b50565b5f813590506127e6816127c2565b92915050565b5f602082840312156128015761280061278f565b5b5f61280e848285016127d8565b91505092915050565b5f8115159050919050565b61282b81612817565b82525050565b5f6020820190506128445f830184612822565b92915050565b5f819050919050565b61285c8161284a565b8114612866575f80fd5b50565b5f8135905061287781612853565b92915050565b5f602082840312156128925761289161278f565b5b5f61289f84828501612869565b91505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b838110156128df5780820151818401526020810190506128c4565b5f8484015250505050565b5f601f19601f8301169050919050565b5f612904826128a8565b61290e81856128b2565b935061291e8185602086016128c2565b612927816128ea565b840191505092915050565b5f6020820190508181035f83015261294a81846128fa565b905092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61297b82612952565b9050919050565b61298b81612971565b82525050565b5f6020820190506129a45f830184612982565b92915050565b6129b381612971565b81146129bd575f80fd5b50565b5f813590506129ce816129aa565b92915050565b5f80604083850312156129ea576129e961278f565b5b5f6129f7858286016129c0565b9250506020612a0885828601612869565b9150509250929050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f840112612a3357612a32612a12565b5b8235905067ffffffffffffffff811115612a5057612a4f612a16565b5b602083019150836001820283011115612a6c57612a6b612a1a565b5b9250929050565b5f8060208385031215612a8957612a8861278f565b5b5f83013567ffffffffffffffff811115612aa657612aa5612793565b5b612ab285828601612a1e565b92509250509250929050565b612ac78161284a565b82525050565b5f602082019050612ae05f830184612abe565b92915050565b5f60208284031215612afb57612afa61278f565b5b5f612b08848285016129c0565b91505092915050565b5f805f60608486031215612b2857612b2761278f565b5b5f612b35868287016129c0565b9350506020612b46868287016129c0565b9250506040612b5786828701612869565b9150509250925092565b5f819050919050565b612b7381612b61565b8114612b7d575f80fd5b50565b5f81359050612b8e81612b6a565b92915050565b5f60208284031215612ba957612ba861278f565b5b5f612bb684828501612b80565b91505092915050565b612bc881612817565b8114612bd2575f80fd5b50565b5f81359050612be381612bbf565b92915050565b5f60208284031215612bfe57612bfd61278f565b5b5f612c0b84828501612bd5565b91505092915050565b60038110612c20575f80fd5b50565b5f81359050612c3181612c14565b92915050565b5f8083601f840112612c4c57612c4b612a12565b5b8235905067ffffffffffffffff811115612c6957612c68612a16565b5b602083019150836020820283011115612c8557612c84612a1a565b5b9250929050565b5f805f8060608587031215612ca457612ca361278f565b5b5f612cb187828801612869565b9450506020612cc287828801612c23565b935050604085013567ffffffffffffffff811115612ce357612ce2612793565b5b612cef87828801612c37565b925092505092959194509250565b612d0681612b61565b82525050565b5f602082019050612d1f5f830184612cfd565b92915050565b5f8060408385031215612d3b57612d3a61278f565b5b5f612d48858286016129c0565b9250506020612d5985828601612bd5565b9150509250929050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b612d9d826128ea565b810181811067ffffffffffffffff82111715612dbc57612dbb612d67565b5b80604052505050565b5f612dce612786565b9050612dda8282612d94565b919050565b5f67ffffffffffffffff821115612df957612df8612d67565b5b612e02826128ea565b9050602081019050919050565b828183375f83830152505050565b5f612e2f612e2a84612ddf565b612dc5565b905082815260208101848484011115612e4b57612e4a612d63565b5b612e56848285612e0f565b509392505050565b5f82601f830112612e7257612e71612a12565b5b8135612e82848260208601612e1d565b91505092915050565b5f805f8060808587031215612ea357612ea261278f565b5b5f612eb0878288016129c0565b9450506020612ec1878288016129c0565b9350506040612ed287828801612869565b925050606085013567ffffffffffffffff811115612ef357612ef2612793565b5b612eff87828801612e5e565b91505092959194509250565b5f8060408385031215612f2157612f2061278f565b5b5f612f2e858286016129c0565b9250506020612f3f858286016129c0565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680612f8d57607f821691505b602082108103612fa057612f9f612f49565b5b50919050565b5f82905092915050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f6008830261300c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82612fd1565b6130168683612fd1565b95508019841693508086168417925050509392505050565b5f819050919050565b5f61305161304c6130478461284a565b61302e565b61284a565b9050919050565b5f819050919050565b61306a83613037565b61307e61307682613058565b848454612fdd565b825550505050565b5f90565b613092613086565b61309d818484613061565b505050565b5b818110156130c0576130b55f8261308a565b6001810190506130a3565b5050565b601f821115613105576130d681612fb0565b6130df84612fc2565b810160208510156130ee578190505b6131026130fa85612fc2565b8301826130a2565b50505b505050565b5f82821c905092915050565b5f6131255f198460080261310a565b1980831691505092915050565b5f61313d8383613116565b9150826002028217905092915050565b6131578383612fa6565b67ffffffffffffffff8111156131705761316f612d67565b5b61317a8254612f76565b6131858282856130c4565b5f601f8311600181146131b2575f84156131a0578287013590505b6131aa8582613132565b865550613211565b601f1984166131c086612fb0565b5f5b828110156131e7578489013582556001820191506020850194506020810190506131c2565b868310156132045784890135613200601f891682613116565b8355505b6001600288020188555050505b50505050505050565b7f5472616e736665727320706175736564000000000000000000000000000000005f82015250565b5f61324e6010836128b2565b91506132598261321a565b602082019050919050565b5f6020820190508181035f83015261327b81613242565b9050919050565b7f4e6f207472616e7366657220616c6c6f776564000000000000000000000000005f82015250565b5f6132b66013836128b2565b91506132c182613282565b602082019050919050565b5f6020820190508181035f8301526132e3816132aa565b9050919050565b5f8160601b9050919050565b5f613300826132ea565b9050919050565b5f613311826132f6565b9050919050565b61332961332482612971565b613307565b82525050565b5f61333a8284613318565b60148201915081905092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b7f496e76616c6964204d65726b6c652070726f6f660000000000000000000000005f82015250565b5f6133aa6014836128b2565b91506133b582613376565b602082019050919050565b5f6020820190508181035f8301526133d78161339e565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6134158261284a565b91506134208361284a565b9250828201905080821115613438576134376133de565b5b92915050565b7f4d617820737570706c79207265616368656400000000000000000000000000005f82015250565b5f6134726012836128b2565b915061347d8261343e565b602082019050919050565b5f6020820190508181035f83015261349f81613466565b9050919050565b7f4d696e74206c696d6974207265616368656420666f722077616c6c65740000005f82015250565b5f6134da601d836128b2565b91506134e5826134a6565b602082019050919050565b5f6020820190508181035f830152613507816134ce565b9050919050565b5f81905092915050565b5f613522826128a8565b61352c818561350e565b935061353c8185602086016128c2565b80840191505092915050565b5f815461355481612f76565b61355e818661350e565b9450600182165f8114613578576001811461358d576135bf565b60ff19831686528115158202860193506135bf565b61359685612fb0565b5f5b838110156135b757815481890152600182019150602081019050613598565b838801955050505b50505092915050565b5f6135d38286613518565b91506135df8285613518565b91506135eb8284613548565b9150819050949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f6136526026836128b2565b915061365d826135f8565b604082019050919050565b5f6020820190508181035f83015261367f81613646565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f6136ba6020836128b2565b91506136c582613686565b602082019050919050565b5f6020820190508181035f8301526136e7816136ae565b9050919050565b7f5061757361626c653a20706175736564000000000000000000000000000000005f82015250565b5f6137226010836128b2565b915061372d826136ee565b602082019050919050565b5f6020820190508181035f83015261374f81613716565b9050919050565b5f81519050919050565b5f82825260208201905092915050565b5f61377a82613756565b6137848185613760565b93506137948185602086016128c2565b61379d816128ea565b840191505092915050565b5f6080820190506137bb5f830187612982565b6137c86020830186612982565b6137d56040830185612abe565b81810360608301526137e78184613770565b905095945050505050565b5f81519050613800816127c2565b92915050565b5f6020828403121561381b5761381a61278f565b5b5f613828848285016137f2565b91505092915050565b7f5061757361626c653a206e6f74207061757365640000000000000000000000005f82015250565b5f6138656014836128b2565b915061387082613831565b602082019050919050565b5f6020820190508181035f83015261389281613859565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f6138d08261284a565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613902576139016133de565b5b60018201905091905056fea2646970667358221220cf78a8b062fd59eca44065763b544de1580b88584ad899aa1deb17e09a09ba8064736f6c63430008150033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000160feddca5fff137c9334a793c64d407faff044283330cc7dc9ffb31ae243abcc729aaee41ba9692931eaa670a6c64141f8db621ac6b61a290092190e101822538a3b3084d79e966c0c3bcb1e051f41c895c7a899bec21e7bb90332e5a602c99aa800000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000002eb00000000000000000000000000000000000000000000000000000000000000084e616e204375707a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044375707a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001668747470733a2f2f6d79626173657572692e636f6d2f0000000000000000000000000000000000000000000000000000000000000000000000000000000000052e6a736f6e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002c68747470733a2f2f6d79756e72657665616c65647572692e636f6d2f706c616365686f6c6465722e6a736f6e0000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _tokenName (string): Nan Cupz
Arg [1] : _tokenSymbol (string): Cupz
Arg [2] : _merkleRootPotlist (bytes32): 0xfeddca5fff137c9334a793c64d407faff044283330cc7dc9ffb31ae243abcc72
Arg [3] : _merkleRootWhitelist (bytes32): 0x9aaee41ba9692931eaa670a6c64141f8db621ac6b61a290092190e101822538a
Arg [4] : _merkleRootCupzlist (bytes32): 0x3b3084d79e966c0c3bcb1e051f41c895c7a899bec21e7bb90332e5a602c99aa8
Arg [5] : _baseUri (string): https://mybaseuri.com/
Arg [6] : _uriSuffix (string): .json
Arg [7] : _unrevealedUri (string): https://myunrevealeduri.com/placeholder.json
Arg [8] : _maxSupply (uint256): 747
-----Encoded View---------------
20 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [2] : feddca5fff137c9334a793c64d407faff044283330cc7dc9ffb31ae243abcc72
Arg [3] : 9aaee41ba9692931eaa670a6c64141f8db621ac6b61a290092190e101822538a
Arg [4] : 3b3084d79e966c0c3bcb1e051f41c895c7a899bec21e7bb90332e5a602c99aa8
Arg [5] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [6] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000220
Arg [8] : 00000000000000000000000000000000000000000000000000000000000002eb
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [10] : 4e616e204375707a000000000000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [12] : 4375707a00000000000000000000000000000000000000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000016
Arg [14] : 68747470733a2f2f6d79626173657572692e636f6d2f00000000000000000000
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [16] : 2e6a736f6e000000000000000000000000000000000000000000000000000000
Arg [17] : 000000000000000000000000000000000000000000000000000000000000002c
Arg [18] : 68747470733a2f2f6d79756e72657665616c65647572692e636f6d2f706c6163
Arg [19] : 65686f6c6465722e6a736f6e0000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ 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.