ERC-721
Overview
Max Total Supply
20 CRE
Holders
19
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 CRELoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
CubeVerseRealEstate
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity >=0.8.9 <0.9.0; import "erc721a/contracts/extensions/ERC721AQueryable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "operator-filter-registry/src/DefaultOperatorFilterer.sol"; contract CubeVerseRealEstate is ERC721AQueryable, Ownable, ReentrancyGuard, DefaultOperatorFilterer { using Strings for uint256; bytes32 public merkleRoot; mapping(address => bool) public whitelistClaimed; string public uriPrefix = ""; string public uriSuffix = ".json"; string public hiddenMetadataUri; uint256 public cost; uint256 public maxSupply; uint256 public maxMintAmountPerTx; bool public paused = true; bool public whitelistMintEnabled = false; bool public revealed = false; constructor( string memory _tokenName, string memory _tokenSymbol, uint256 _cost, uint256 _maxSupply, uint256 _maxMintAmountPerTx, string memory _hiddenMetadataUri ) ERC721A(_tokenName, _tokenSymbol) { setCost(_cost); maxSupply = _maxSupply; setMaxMintAmountPerTx(_maxMintAmountPerTx); setHiddenMetadataUri(_hiddenMetadataUri); } modifier mintCompliance(uint256 _mintAmount) { require( _mintAmount > 0 && _mintAmount <= maxMintAmountPerTx, "Invalid mint amount!" ); require( totalSupply() + _mintAmount <= maxSupply, "Max supply exceeded!" ); _; } modifier mintPriceCompliance(uint256 _mintAmount) { require(msg.value >= cost * _mintAmount, "Insufficient funds!"); _; } function whitelistMint( uint256 _mintAmount, bytes32[] calldata _merkleProof ) public payable mintCompliance(_mintAmount) mintPriceCompliance(_mintAmount) { // Verify whitelist requirements require(whitelistMintEnabled, "The whitelist sale is not enabled!"); require(!whitelistClaimed[_msgSender()], "Address already claimed!"); bytes32 leaf = keccak256(abi.encodePacked(_msgSender())); require( MerkleProof.verify(_merkleProof, merkleRoot, leaf), "Invalid proof!" ); whitelistClaimed[_msgSender()] = true; _safeMint(_msgSender(), _mintAmount); } function mint( uint256 _mintAmount ) public payable mintCompliance(_mintAmount) mintPriceCompliance(_mintAmount) { require(!paused, "The contract is paused!"); _safeMint(_msgSender(), _mintAmount); } function mintForAddress( uint256 _mintAmount, address _receiver ) public mintCompliance(_mintAmount) onlyOwner { _safeMint(_receiver, _mintAmount); } function _startTokenId() internal view virtual override returns (uint256) { return 1; } function tokenURI( uint256 _tokenId ) public view virtual override(ERC721A, IERC721Metadata) returns (string memory) { require( _exists(_tokenId), "ERC721Metadata: URI query for nonexistent token" ); if (revealed == false) { return hiddenMetadataUri; } string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string( abi.encodePacked( currentBaseURI, _tokenId.toString(), uriSuffix ) ) : ""; } function setRevealed(bool _state) public onlyOwner { revealed = _state; } function setCost(uint256 _cost) public onlyOwner { cost = _cost; } function setMaxMintAmountPerTx( uint256 _maxMintAmountPerTx ) public onlyOwner { maxMintAmountPerTx = _maxMintAmountPerTx; } function setMaxSupply(uint256 _maxSupply) public onlyOwner { maxSupply = _maxSupply; } function setHiddenMetadataUri( string memory _hiddenMetadataUri ) public onlyOwner { hiddenMetadataUri = _hiddenMetadataUri; } function setUriPrefix(string memory _uriPrefix) public onlyOwner { uriPrefix = _uriPrefix; } function setUriSuffix(string memory _uriSuffix) public onlyOwner { uriSuffix = _uriSuffix; } function setPaused(bool _state) public onlyOwner { paused = _state; } function setMerkleRoot(bytes32 _merkleRoot) public onlyOwner { merkleRoot = _merkleRoot; } function setWhitelistMintEnabled(bool _state) public onlyOwner { whitelistMintEnabled = _state; } function withdraw() public onlyOwner nonReentrant { (bool os, ) = payable(owner()).call{value: address(this).balance}(""); require(os); } function _baseURI() internal view virtual override returns (string memory) { return uriPrefix; } function transferFrom( address from, address to, uint256 tokenId ) public override(ERC721A, IERC721) onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId ) public override(ERC721A, IERC721) onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public override(ERC721A, IERC721) onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is Context, ERC165, IERC721A { using Address for address; using Strings for uint256; // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _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 _ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to _startTokenId() unchecked { return _currentIndex - _startTokenId(); } } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return _addressData[owner].aux; } /** * Sets the auxillary 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 { _addressData[owner].aux = aux; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @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, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner) if(!isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (to.isContract()) if(!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned; } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (to.isContract()) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex < end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @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. */ function _mint(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // 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 { _addressData[from].balance -= 1; _addressData[to].balance += 1; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; currSlot.startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); address from = prevOwnership.addr; if (approvalCheck) { bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // 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 { AddressData storage addressData = _addressData[from]; addressData.balance -= 1; addressData.numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = from; currSlot.startTimestamp = uint64(block.timestamp); currSlot.burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @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 {} }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721AQueryable.sol'; import '../ERC721A.sol'; /** * @title ERC721A Queryable * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable { /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * - `addr` = `address(0)` * - `startTimestamp` = `0` * - `burned` = `false` * * If the `tokenId` is burned: * - `addr` = `<Address of owner before token was burned>` * - `startTimestamp` = `<Timestamp when token was burned>` * - `burned = `true` * * Otherwise: * - `addr` = `<Address of owner>` * - `startTimestamp` = `<Timestamp of start of ownership>` * - `burned = `false` */ function explicitOwnershipOf(uint256 tokenId) public view override returns (TokenOwnership memory) { TokenOwnership memory ownership; if (tokenId < _startTokenId() || tokenId >= _currentIndex) { return ownership; } ownership = _ownerships[tokenId]; if (ownership.burned) { return ownership; } return _ownershipOf(tokenId); } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view override returns (TokenOwnership[] memory) { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength); for (uint256 i; i != tokenIdsLength; ++i) { ownerships[i] = explicitOwnershipOf(tokenIds[i]); } return ownerships; } } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start` < `stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view override returns (uint256[] memory) { unchecked { if (start >= stop) revert InvalidQueryRange(); uint256 tokenIdsIdx; uint256 stopLimit = _currentIndex; // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, _currentIndex)`. if (stop > stopLimit) { stop = stopLimit; } uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (start < stop) { uint256 rangeLength = stop - start; if (rangeLength < tokenIdsMaxLength) { tokenIdsMaxLength = rangeLength; } } else { tokenIdsMaxLength = 0; } uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength); if (tokenIdsMaxLength == 0) { return tokenIds; } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`. // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) { ownership = _ownerships[i]; if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } // Downsize the array to fit. assembly { mstore(tokenIds, tokenIdsIdx) } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(totalSupply) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K pfp collections should be fine). */ function tokensOfOwner(address owner) external view override returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownerships[i]; if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import '../IERC721A.sol'; /** * @dev Interface of an ERC721AQueryable compliant contract. */ interface IERC721AQueryable is IERC721A { /** * Invalid query range (`start` >= `stop`). */ error InvalidQueryRange(); /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * - `addr` = `address(0)` * - `startTimestamp` = `0` * - `burned` = `false` * * If the `tokenId` is burned: * - `addr` = `<Address of owner before token was burned>` * - `startTimestamp` = `<Timestamp when token was burned>` * - `burned = `true` * * Otherwise: * - `addr` = `<Address of owner>` * - `startTimestamp` = `<Timestamp of start of ownership>` * - `burned = `false` */ function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory); /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory); /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start` < `stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory); /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(totalSupply) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K pfp collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A is IERC721, IERC721Metadata { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * The caller cannot approve to the current owner. */ error ApprovalToCurrentOwner(); /** * 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(); // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {OperatorFilterer} from "./OperatorFilterer.sol"; import {CANONICAL_CORI_SUBSCRIPTION} from "./lib/Constants.sol"; /** * @title DefaultOperatorFilterer * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription. * @dev Please note that if your token contract does not provide an owner with EIP-173, it must provide * administration methods on the contract itself to interact with the registry otherwise the subscription * will be locked to the options set during construction. */ abstract contract DefaultOperatorFilterer is OperatorFilterer { /// @dev The constructor that is called when the contract is being deployed. constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface IOperatorFilterRegistry { /** * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns * true if supplied registrant address is not registered. */ function isOperatorAllowed(address registrant, address operator) external view returns (bool); /** * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner. */ function register(address registrant) external; /** * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes. */ function registerAndSubscribe(address registrant, address subscription) external; /** * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another * address without subscribing. */ function registerAndCopyEntries(address registrant, address registrantToCopy) external; /** * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner. * Note that this does not remove any filtered addresses or codeHashes. * Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes. */ function unregister(address addr) external; /** * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered. */ function updateOperator(address registrant, address operator, bool filtered) external; /** * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates. */ function updateOperators(address registrant, address[] calldata operators, bool filtered) external; /** * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered. */ function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; /** * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates. */ function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; /** * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous * subscription if present. * Note that accounts with subscriptions may go on to subscribe to other accounts - in this case, * subscriptions will not be forwarded. Instead the former subscription's existing entries will still be * used. */ function subscribe(address registrant, address registrantToSubscribe) external; /** * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes. */ function unsubscribe(address registrant, bool copyExistingEntries) external; /** * @notice Get the subscription address of a given registrant, if any. */ function subscriptionOf(address addr) external returns (address registrant); /** * @notice Get the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscribers(address registrant) external returns (address[] memory); /** * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscriberAt(address registrant, uint256 index) external returns (address); /** * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr. */ function copyEntriesOf(address registrant, address registrantToCopy) external; /** * @notice Returns true if operator is filtered by a given address or its subscription. */ function isOperatorFiltered(address registrant, address operator) external returns (bool); /** * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription. */ function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); /** * @notice Returns true if a codeHash is filtered by a given address or its subscription. */ function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); /** * @notice Returns a list of filtered operators for a given address or its subscription. */ function filteredOperators(address addr) external returns (address[] memory); /** * @notice Returns the set of filtered codeHashes for a given address or its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashes(address addr) external returns (bytes32[] memory); /** * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredOperatorAt(address registrant, uint256 index) external returns (address); /** * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); /** * @notice Returns true if an address has registered */ function isRegistered(address addr) external returns (bool); /** * @dev Convenience method to compute the code hash of an arbitrary contract */ function codeHashOf(address addr) external returns (bytes32); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E; address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol"; import {CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS} from "./lib/Constants.sol"; /** * @title OperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. * Please note that if your token contract does not provide an owner with EIP-173, it must provide * administration methods on the contract itself to interact with the registry otherwise the subscription * will be locked to the options set during construction. */ abstract contract OperatorFilterer { /// @dev Emitted when an operator is not allowed. error OperatorNotAllowed(address operator); IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS); /// @dev The constructor that is called when the contract is being deployed. constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } /** * @dev A helper function to check if an operator is allowed. */ modifier onlyAllowedOperator(address from) virtual { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from != msg.sender) { _checkFilterOperator(msg.sender); } _; } /** * @dev A helper function to check if an operator approval is allowed. */ modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } /** * @dev A helper function to check if an operator is allowed. */ function _checkFilterOperator(address operator) internal view virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { // under normal circumstances, this function will revert rather than return false, but inheriting contracts // may specify their own OperatorFilterRegistry implementations, which may behave differently if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
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":"uint256","name":"_cost","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_maxMintAmountPerTx","type":"uint256"},{"internalType":"string","name":"_hiddenMetadataUri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","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":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hiddenMetadataUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmountPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"mintForAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_hiddenMetadataUri","type":"string"}],"name":"setHiddenMetadataUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxMintAmountPerTx","type":"uint256"}],"name":"setMaxMintAmountPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriPrefix","type":"string"}],"name":"setUriPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriSuffix","type":"string"}],"name":"setUriSuffix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setWhitelistMintEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uriPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uriSuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"whitelistMintEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a060405260006080908152600c906200001a9082620003e0565b50604080518082019091526005815264173539b7b760d91b6020820152600d90620000469082620003e0565b506012805462ffffff191660011790553480156200006357600080fd5b50604051620031e3380380620031e383398101604081905262000086916200055b565b733cc6cdda760b79bafa08df41ecfa224f810dceb6600187876002620000ad8382620003e0565b506003620000bc8282620003e0565b5050600160005550620000cf336200024e565b60016009556daaeb6d7670e522a718067333cd4e3b15620002195780156200016757604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200014857600080fd5b505af11580156200015d573d6000803e3d6000fd5b5050505062000219565b6001600160a01b03821615620001b85760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af2903906044016200012d565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b158015620001ff57600080fd5b505af115801562000214573d6000803e3d6000fd5b505050505b5062000227905084620002a0565b60108390556200023782620002af565b6200024281620002be565b50505050505062000608565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620002aa620002da565b600f55565b620002b9620002da565b601155565b620002c8620002da565b600e620002d68282620003e0565b5050565b6008546001600160a01b03163314620003395760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200036657607f821691505b6020821081036200038757634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620003db57600081815260208120601f850160051c81016020861015620003b65750805b601f850160051c820191505b81811015620003d757828155600101620003c2565b5050505b505050565b81516001600160401b03811115620003fc57620003fc6200033b565b62000414816200040d845462000351565b846200038d565b602080601f8311600181146200044c5760008415620004335750858301515b600019600386901b1c1916600185901b178555620003d7565b600085815260208120601f198616915b828110156200047d578886015182559484019460019091019084016200045c565b50858210156200049c5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082601f830112620004be57600080fd5b81516001600160401b0380821115620004db57620004db6200033b565b604051601f8301601f19908116603f011681019082821181831017156200050657620005066200033b565b816040528381526020925086838588010111156200052357600080fd5b600091505b8382101562000547578582018301518183018401529082019062000528565b600093810190920192909252949350505050565b60008060008060008060c087890312156200057557600080fd5b86516001600160401b03808211156200058d57600080fd5b6200059b8a838b01620004ac565b97506020890151915080821115620005b257600080fd5b620005c08a838b01620004ac565b965060408901519550606089015194506080890151935060a0890151915080821115620005ec57600080fd5b50620005fb89828a01620004ac565b9150509295509295509295565b612bcb80620006186000396000f3fe6080604052600436106102885760003560e01c806370a082311161015a578063b071401b116100c1578063d5abeb011161007a578063d5abeb0114610790578063db4bec44146107a6578063e0a80853146107d6578063e985e9c5146107f6578063efbd73f414610816578063f2fde38b1461083657600080fd5b8063b071401b146106d0578063b767a098146106f0578063b88d4fde14610710578063c23dc68f14610730578063c87b56dd1461075d578063d2cab0561461077d57600080fd5b806394354fd01161011357806394354fd01461063d57806395d89b411461065357806399a2557a14610668578063a0712d6814610688578063a22cb4651461069b578063a45ba8e7146106bb57600080fd5b806370a082311461057d578063715018a61461059d5780637cb64759146105b25780637ec4a659146105d25780638462151c146105f25780638da5cb5b1461061f57600080fd5b806341f43434116101fe5780635bbb2177116101b75780635bbb2177146104c25780635c975abb146104ef57806362b99ad4146105095780636352211e1461051e5780636caede3d1461053e5780636f8b44b01461055d57600080fd5b806341f434341461040b57806342842e0e1461042d57806344a0d68a1461044d5780634fdd43cb1461046d578063518302271461048d5780635503a0e8146104ad57600080fd5b806316ba10e01161025057806316ba10e01461036257806316c38b3c1461038257806318160ddd146103a257806323b872dd146103c05780632eb4a7ab146103e05780633ccfd60b146103f657600080fd5b806301ffc9a71461028d57806306fdde03146102c2578063081812fc146102e4578063095ea7b31461031c57806313faede61461033e575b600080fd5b34801561029957600080fd5b506102ad6102a83660046122f9565b610856565b60405190151581526020015b60405180910390f35b3480156102ce57600080fd5b506102d76108a8565b6040516102b99190612366565b3480156102f057600080fd5b506103046102ff366004612379565b61093a565b6040516001600160a01b0390911681526020016102b9565b34801561032857600080fd5b5061033c6103373660046123ae565b61097e565b005b34801561034a57600080fd5b50610354600f5481565b6040519081526020016102b9565b34801561036e57600080fd5b5061033c61037d366004612475565b610a04565b34801561038e57600080fd5b5061033c61039d3660046124cb565b610a1c565b3480156103ae57600080fd5b50610354600154600054036000190190565b3480156103cc57600080fd5b5061033c6103db3660046124e8565b610a37565b3480156103ec57600080fd5b50610354600a5481565b34801561040257600080fd5b5061033c610a62565b34801561041757600080fd5b506103046daaeb6d7670e522a718067333cd4e81565b34801561043957600080fd5b5061033c6104483660046124e8565b610af0565b34801561045957600080fd5b5061033c610468366004612379565b610b15565b34801561047957600080fd5b5061033c610488366004612475565b610b22565b34801561049957600080fd5b506012546102ad9062010000900460ff1681565b3480156104b957600080fd5b506102d7610b36565b3480156104ce57600080fd5b506104e26104dd366004612524565b610bc4565b6040516102b991906125c9565b3480156104fb57600080fd5b506012546102ad9060ff1681565b34801561051557600080fd5b506102d7610c8a565b34801561052a57600080fd5b50610304610539366004612379565b610c97565b34801561054a57600080fd5b506012546102ad90610100900460ff1681565b34801561056957600080fd5b5061033c610578366004612379565b610ca9565b34801561058957600080fd5b50610354610598366004612633565b610cb6565b3480156105a957600080fd5b5061033c610d04565b3480156105be57600080fd5b5061033c6105cd366004612379565b610d16565b3480156105de57600080fd5b5061033c6105ed366004612475565b610d23565b3480156105fe57600080fd5b5061061261060d366004612633565b610d37565b6040516102b9919061264e565b34801561062b57600080fd5b506008546001600160a01b0316610304565b34801561064957600080fd5b5061035460115481565b34801561065f57600080fd5b506102d7610e7c565b34801561067457600080fd5b50610612610683366004612686565b610e8b565b61033c610696366004612379565b61104c565b3480156106a757600080fd5b5061033c6106b63660046126b9565b611172565b3480156106c757600080fd5b506102d7611207565b3480156106dc57600080fd5b5061033c6106eb366004612379565b611214565b3480156106fc57600080fd5b5061033c61070b3660046124cb565b611221565b34801561071c57600080fd5b5061033c61072b3660046126f0565b611243565b34801561073c57600080fd5b5061075061074b366004612379565b611270565b6040516102b9919061276b565b34801561076957600080fd5b506102d7610778366004612379565b61132a565b61033c61078b3660046127a0565b61149e565b34801561079c57600080fd5b5061035460105481565b3480156107b257600080fd5b506102ad6107c1366004612633565b600b6020526000908152604090205460ff1681565b3480156107e257600080fd5b5061033c6107f13660046124cb565b611703565b34801561080257600080fd5b506102ad61081136600461281e565b611727565b34801561082257600080fd5b5061033c610831366004612851565b611755565b34801561084257600080fd5b5061033c610851366004612633565b6117d3565b60006001600160e01b031982166380ac58cd60e01b148061088757506001600160e01b03198216635b5e139f60e01b145b806108a257506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600280546108b790612874565b80601f01602080910402602001604051908101604052809291908181526020018280546108e390612874565b80156109305780601f1061090557610100808354040283529160200191610930565b820191906000526020600020905b81548152906001019060200180831161091357829003601f168201915b5050505050905090565b60006109458261184c565b610962576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061098982610c97565b9050806001600160a01b0316836001600160a01b0316036109bd5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216146109f4576109d78133611727565b6109f4576040516367d9dca160e11b815260040160405180910390fd5b6109ff838383611885565b505050565b610a0c6118e1565b600d610a1882826128f4565b5050565b610a246118e1565b6012805460ff1916911515919091179055565b826001600160a01b0381163314610a5157610a513361193b565b610a5c8484846119f4565b50505050565b610a6a6118e1565b610a726119ff565b6000610a866008546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610ad0576040519150601f19603f3d011682016040523d82523d6000602084013e610ad5565b606091505b5050905080610ae357600080fd5b50610aee6001600955565b565b826001600160a01b0381163314610b0a57610b0a3361193b565b610a5c848484611a58565b610b1d6118e1565b600f55565b610b2a6118e1565b600e610a1882826128f4565b600d8054610b4390612874565b80601f0160208091040260200160405190810160405280929190818152602001828054610b6f90612874565b8015610bbc5780601f10610b9157610100808354040283529160200191610bbc565b820191906000526020600020905b815481529060010190602001808311610b9f57829003601f168201915b505050505081565b80516060906000816001600160401b03811115610be357610be36123d8565b604051908082528060200260200182016040528015610c2e57816020015b6040805160608101825260008082526020808301829052928201528252600019909201910181610c015790505b50905060005b828114610c8257610c5d858281518110610c5057610c506129b3565b6020026020010151611270565b828281518110610c6f57610c6f6129b3565b6020908102919091010152600101610c34565b509392505050565b600c8054610b4390612874565b6000610ca282611a73565b5192915050565b610cb16118e1565b601055565b60006001600160a01b038216610cdf576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b610d0c6118e1565b610aee6000611b95565b610d1e6118e1565b600a55565b610d2b6118e1565b600c610a1882826128f4565b60606000806000610d4785610cb6565b90506000816001600160401b03811115610d6357610d636123d8565b604051908082528060200260200182016040528015610d8c578160200160208202803683370190505b509050610db2604080516060810182526000808252602082018190529181019190915290565b60015b838614610e7057600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615159181018290529250610e685781516001600160a01b031615610e2957815194505b876001600160a01b0316856001600160a01b031603610e685780838780600101985081518110610e5b57610e5b6129b3565b6020026020010181815250505b600101610db5565b50909695505050505050565b6060600380546108b790612874565b6060818310610ead57604051631960ccad60e11b815260040160405180910390fd5b600080546001851015610ebf57600194505b80841115610ecb578093505b6000610ed687610cb6565b905084861015610ef55785850381811015610eef578091505b50610ef9565b5060005b6000816001600160401b03811115610f1357610f136123d8565b604051908082528060200260200182016040528015610f3c578160200160208202803683370190505b50905081600003610f5257935061104592505050565b6000610f5d88611270565b905060008160400151610f6e575080515b885b888114158015610f805750848714155b1561103957600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905293506110315782516001600160a01b031615610ff257825191505b8a6001600160a01b0316826001600160a01b0316036110315780848880600101995081518110611024576110246129b3565b6020026020010181815250505b600101610f70565b50505092835250909150505b9392505050565b8060008111801561105f57506011548111155b6110845760405162461bcd60e51b815260040161107b906129c9565b60405180910390fd5b60105481611099600154600054036000190190565b6110a39190612a0d565b11156110c15760405162461bcd60e51b815260040161107b90612a20565b8180600f546110d09190612a4e565b3410156111155760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e742066756e64732160681b604482015260640161107b565b60125460ff16156111685760405162461bcd60e51b815260206004820152601760248201527f54686520636f6e74726163742069732070617573656421000000000000000000604482015260640161107b565b6109ff3384611be7565b336001600160a01b0383160361119b5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600e8054610b4390612874565b61121c6118e1565b601155565b6112296118e1565b601280549115156101000261ff0019909216919091179055565b836001600160a01b038116331461125d5761125d3361193b565b61126985858585611c01565b5050505050565b604080516060808201835260008083526020808401829052838501829052845192830185528183528201819052928101929092529060018310806112b657506000548310155b156112c15792915050565b50600082815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615801592820192909252906113215792915050565b61104583611a73565b60606113358261184c565b6113995760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161107b565b60125462010000900460ff16151560000361144057600e80546113bb90612874565b80601f01602080910402602001604051908101604052809291908181526020018280546113e790612874565b80156114345780601f1061140957610100808354040283529160200191611434565b820191906000526020600020905b81548152906001019060200180831161141757829003601f168201915b50505050509050919050565b600061144a611c45565b9050600081511161146a5760405180602001604052806000815250611045565b8061147484611c54565b600d60405160200161148893929190612a65565b6040516020818303038152906040529392505050565b826000811180156114b157506011548111155b6114cd5760405162461bcd60e51b815260040161107b906129c9565b601054816114e2600154600054036000190190565b6114ec9190612a0d565b111561150a5760405162461bcd60e51b815260040161107b90612a20565b8380600f546115199190612a4e565b34101561155e5760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e742066756e64732160681b604482015260640161107b565b601254610100900460ff166115c05760405162461bcd60e51b815260206004820152602260248201527f5468652077686974656c6973742073616c65206973206e6f7420656e61626c65604482015261642160f01b606482015260840161107b565b336000908152600b602052604090205460ff16156116205760405162461bcd60e51b815260206004820152601860248201527f4164647265737320616c726561647920636c61696d6564210000000000000000604482015260640161107b565b6040516bffffffffffffffffffffffff193360601b16602082015260009060340160405160208183030381529060405280519060200120905061169a85858080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600a549150849050611ce6565b6116d75760405162461bcd60e51b815260206004820152600e60248201526d496e76616c69642070726f6f662160901b604482015260640161107b565b336000818152600b60205260409020805460ff191660011790556116fb9087611be7565b505050505050565b61170b6118e1565b60128054911515620100000262ff000019909216919091179055565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b8160008111801561176857506011548111155b6117845760405162461bcd60e51b815260040161107b906129c9565b60105481611799600154600054036000190190565b6117a39190612a0d565b11156117c15760405162461bcd60e51b815260040161107b90612a20565b6117c96118e1565b6109ff8284611be7565b6117db6118e1565b6001600160a01b0381166118405760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161107b565b61184981611b95565b50565b600081600111158015611860575060005482105b80156108a2575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6008546001600160a01b03163314610aee5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161107b565b6daaeb6d7670e522a718067333cd4e3b1561184957604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156119a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119cc9190612b05565b61184957604051633b79c77360e21b81526001600160a01b038216600482015260240161107b565b6109ff838383611cfc565b600260095403611a515760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161107b565b6002600955565b6109ff83838360405180602001604052806000815250611243565b60408051606081018252600080825260208201819052918101919091528180600111611b7c57600054811015611b7c57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290611b7a5780516001600160a01b031615611b11579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215611b75579392505050565b611b11565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610a18828260405180602001604052806000815250611ee7565b611c0c848484611cfc565b6001600160a01b0383163b15610a5c57611c28848484846120ae565b610a5c576040516368d2bf6b60e11b815260040160405180910390fd5b6060600c80546108b790612874565b60606000611c618361219a565b60010190506000816001600160401b03811115611c8057611c806123d8565b6040519080825280601f01601f191660200182016040528015611caa576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084611cb457509392505050565b600082611cf38584612272565b14949350505050565b6000611d0782611a73565b9050836001600160a01b031681600001516001600160a01b031614611d3e5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611d5c5750611d5c8533611727565b80611d77575033611d6c8461093a565b6001600160a01b0316145b905080611d9757604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416611dbe57604051633a954ecd60e21b815260040160405180910390fd5b611dca60008487611885565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116611e9e576000548214611e9e57805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611269565b6000546001600160a01b038416611f1057604051622e076360e81b815260040160405180910390fd5b82600003611f315760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038416600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168b0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168b01811690920217909155858452600490925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b15612059575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a461202260008784806001019550876120ae565b61203f576040516368d2bf6b60e11b815260040160405180910390fd5b808210611fd757826000541461205457600080fd5b61209e565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821061205a575b506000908155610a5c9085838684565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906120e3903390899088908890600401612b22565b6020604051808303816000875af192505050801561211e575060408051601f3d908101601f1916820190925261211b91810190612b5f565b60015b61217c573d80801561214c576040519150601f19603f3d011682016040523d82523d6000602084013e612151565b606091505b508051600003612174576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106121d95772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612205576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061222357662386f26fc10000830492506010015b6305f5e100831061223b576305f5e100830492506008015b612710831061224f57612710830492506004015b60648310612261576064830492506002015b600a83106108a25760010192915050565b600081815b8451811015610c82576122a382868381518110612296576122966129b3565b60200260200101516122b7565b9150806122af81612b7c565b915050612277565b60008183106122d3576000828152602084905260409020611045565b5060009182526020526040902090565b6001600160e01b03198116811461184957600080fd5b60006020828403121561230b57600080fd5b8135611045816122e3565b60005b83811015612331578181015183820152602001612319565b50506000910152565b60008151808452612352816020860160208601612316565b601f01601f19169290920160200192915050565b602081526000611045602083018461233a565b60006020828403121561238b57600080fd5b5035919050565b80356001600160a01b03811681146123a957600080fd5b919050565b600080604083850312156123c157600080fd5b6123ca83612392565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612416576124166123d8565b604052919050565b60006001600160401b03831115612437576124376123d8565b61244a601f8401601f19166020016123ee565b905082815283838301111561245e57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561248757600080fd5b81356001600160401b0381111561249d57600080fd5b8201601f810184136124ae57600080fd5b6121928482356020840161241e565b801515811461184957600080fd5b6000602082840312156124dd57600080fd5b8135611045816124bd565b6000806000606084860312156124fd57600080fd5b61250684612392565b925061251460208501612392565b9150604084013590509250925092565b6000602080838503121561253757600080fd5b82356001600160401b038082111561254e57600080fd5b818501915085601f83011261256257600080fd5b813581811115612574576125746123d8565b8060051b91506125858483016123ee565b818152918301840191848101908884111561259f57600080fd5b938501935b838510156125bd578435825293850193908501906125a4565b98975050505050505050565b6020808252825182820181905260009190848201906040850190845b81811015610e705761262083855180516001600160a01b031682526020808201516001600160401b0316908301526040908101511515910152565b92840192606092909201916001016125e5565b60006020828403121561264557600080fd5b61104582612392565b6020808252825182820181905260009190848201906040850190845b81811015610e705783518352928401929184019160010161266a565b60008060006060848603121561269b57600080fd5b6126a484612392565b95602085013595506040909401359392505050565b600080604083850312156126cc57600080fd5b6126d583612392565b915060208301356126e5816124bd565b809150509250929050565b6000806000806080858703121561270657600080fd5b61270f85612392565b935061271d60208601612392565b92506040850135915060608501356001600160401b0381111561273f57600080fd5b8501601f8101871361275057600080fd5b61275f8782356020840161241e565b91505092959194509250565b81516001600160a01b031681526020808301516001600160401b031690820152604080830151151590820152606081016108a2565b6000806000604084860312156127b557600080fd5b8335925060208401356001600160401b03808211156127d357600080fd5b818601915086601f8301126127e757600080fd5b8135818111156127f657600080fd5b8760208260051b850101111561280b57600080fd5b6020830194508093505050509250925092565b6000806040838503121561283157600080fd5b61283a83612392565b915061284860208401612392565b90509250929050565b6000806040838503121561286457600080fd5b8235915061284860208401612392565b600181811c9082168061288857607f821691505b6020821081036128a857634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156109ff57600081815260208120601f850160051c810160208610156128d55750805b601f850160051c820191505b818110156116fb578281556001016128e1565b81516001600160401b0381111561290d5761290d6123d8565b6129218161291b8454612874565b846128ae565b602080601f831160018114612956576000841561293e5750858301515b600019600386901b1c1916600185901b1785556116fb565b600085815260208120601f198616915b8281101561298557888601518255948401946001909101908401612966565b50858210156129a35787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b602080825260149082015273496e76616c6964206d696e7420616d6f756e742160601b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b808201808211156108a2576108a26129f7565b6020808252601490820152734d617820737570706c792065786365656465642160601b604082015260600190565b80820281158282048414176108a2576108a26129f7565b600084516020612a788285838a01612316565b855191840191612a8b8184848a01612316565b8554920191600090612a9c81612874565b60018281168015612ab45760018114612ac957612af5565b60ff1984168752821515830287019450612af5565b896000528560002060005b84811015612aed57815489820152908301908701612ad4565b505082870194505b50929a9950505050505050505050565b600060208284031215612b1757600080fd5b8151611045816124bd565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612b559083018461233a565b9695505050505050565b600060208284031215612b7157600080fd5b8151611045816122e3565b600060018201612b8e57612b8e6129f7565b506001019056fea2646970667358221220350d84c4131b3df00ae9588b67b2504c5d48456fc1de4845e00e8855ba81004c64736f6c6343000811003300000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000000000000002710000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000015437562655665727365205265616c20457374617465000000000000000000000000000000000000000000000000000000000000000000000000000000000000034352450000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001a697066733a2f2f5f5f4349445f5f2f68696464656e2e6a736f6e000000000000
Deployed Bytecode
0x6080604052600436106102885760003560e01c806370a082311161015a578063b071401b116100c1578063d5abeb011161007a578063d5abeb0114610790578063db4bec44146107a6578063e0a80853146107d6578063e985e9c5146107f6578063efbd73f414610816578063f2fde38b1461083657600080fd5b8063b071401b146106d0578063b767a098146106f0578063b88d4fde14610710578063c23dc68f14610730578063c87b56dd1461075d578063d2cab0561461077d57600080fd5b806394354fd01161011357806394354fd01461063d57806395d89b411461065357806399a2557a14610668578063a0712d6814610688578063a22cb4651461069b578063a45ba8e7146106bb57600080fd5b806370a082311461057d578063715018a61461059d5780637cb64759146105b25780637ec4a659146105d25780638462151c146105f25780638da5cb5b1461061f57600080fd5b806341f43434116101fe5780635bbb2177116101b75780635bbb2177146104c25780635c975abb146104ef57806362b99ad4146105095780636352211e1461051e5780636caede3d1461053e5780636f8b44b01461055d57600080fd5b806341f434341461040b57806342842e0e1461042d57806344a0d68a1461044d5780634fdd43cb1461046d578063518302271461048d5780635503a0e8146104ad57600080fd5b806316ba10e01161025057806316ba10e01461036257806316c38b3c1461038257806318160ddd146103a257806323b872dd146103c05780632eb4a7ab146103e05780633ccfd60b146103f657600080fd5b806301ffc9a71461028d57806306fdde03146102c2578063081812fc146102e4578063095ea7b31461031c57806313faede61461033e575b600080fd5b34801561029957600080fd5b506102ad6102a83660046122f9565b610856565b60405190151581526020015b60405180910390f35b3480156102ce57600080fd5b506102d76108a8565b6040516102b99190612366565b3480156102f057600080fd5b506103046102ff366004612379565b61093a565b6040516001600160a01b0390911681526020016102b9565b34801561032857600080fd5b5061033c6103373660046123ae565b61097e565b005b34801561034a57600080fd5b50610354600f5481565b6040519081526020016102b9565b34801561036e57600080fd5b5061033c61037d366004612475565b610a04565b34801561038e57600080fd5b5061033c61039d3660046124cb565b610a1c565b3480156103ae57600080fd5b50610354600154600054036000190190565b3480156103cc57600080fd5b5061033c6103db3660046124e8565b610a37565b3480156103ec57600080fd5b50610354600a5481565b34801561040257600080fd5b5061033c610a62565b34801561041757600080fd5b506103046daaeb6d7670e522a718067333cd4e81565b34801561043957600080fd5b5061033c6104483660046124e8565b610af0565b34801561045957600080fd5b5061033c610468366004612379565b610b15565b34801561047957600080fd5b5061033c610488366004612475565b610b22565b34801561049957600080fd5b506012546102ad9062010000900460ff1681565b3480156104b957600080fd5b506102d7610b36565b3480156104ce57600080fd5b506104e26104dd366004612524565b610bc4565b6040516102b991906125c9565b3480156104fb57600080fd5b506012546102ad9060ff1681565b34801561051557600080fd5b506102d7610c8a565b34801561052a57600080fd5b50610304610539366004612379565b610c97565b34801561054a57600080fd5b506012546102ad90610100900460ff1681565b34801561056957600080fd5b5061033c610578366004612379565b610ca9565b34801561058957600080fd5b50610354610598366004612633565b610cb6565b3480156105a957600080fd5b5061033c610d04565b3480156105be57600080fd5b5061033c6105cd366004612379565b610d16565b3480156105de57600080fd5b5061033c6105ed366004612475565b610d23565b3480156105fe57600080fd5b5061061261060d366004612633565b610d37565b6040516102b9919061264e565b34801561062b57600080fd5b506008546001600160a01b0316610304565b34801561064957600080fd5b5061035460115481565b34801561065f57600080fd5b506102d7610e7c565b34801561067457600080fd5b50610612610683366004612686565b610e8b565b61033c610696366004612379565b61104c565b3480156106a757600080fd5b5061033c6106b63660046126b9565b611172565b3480156106c757600080fd5b506102d7611207565b3480156106dc57600080fd5b5061033c6106eb366004612379565b611214565b3480156106fc57600080fd5b5061033c61070b3660046124cb565b611221565b34801561071c57600080fd5b5061033c61072b3660046126f0565b611243565b34801561073c57600080fd5b5061075061074b366004612379565b611270565b6040516102b9919061276b565b34801561076957600080fd5b506102d7610778366004612379565b61132a565b61033c61078b3660046127a0565b61149e565b34801561079c57600080fd5b5061035460105481565b3480156107b257600080fd5b506102ad6107c1366004612633565b600b6020526000908152604090205460ff1681565b3480156107e257600080fd5b5061033c6107f13660046124cb565b611703565b34801561080257600080fd5b506102ad61081136600461281e565b611727565b34801561082257600080fd5b5061033c610831366004612851565b611755565b34801561084257600080fd5b5061033c610851366004612633565b6117d3565b60006001600160e01b031982166380ac58cd60e01b148061088757506001600160e01b03198216635b5e139f60e01b145b806108a257506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600280546108b790612874565b80601f01602080910402602001604051908101604052809291908181526020018280546108e390612874565b80156109305780601f1061090557610100808354040283529160200191610930565b820191906000526020600020905b81548152906001019060200180831161091357829003601f168201915b5050505050905090565b60006109458261184c565b610962576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061098982610c97565b9050806001600160a01b0316836001600160a01b0316036109bd5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216146109f4576109d78133611727565b6109f4576040516367d9dca160e11b815260040160405180910390fd5b6109ff838383611885565b505050565b610a0c6118e1565b600d610a1882826128f4565b5050565b610a246118e1565b6012805460ff1916911515919091179055565b826001600160a01b0381163314610a5157610a513361193b565b610a5c8484846119f4565b50505050565b610a6a6118e1565b610a726119ff565b6000610a866008546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610ad0576040519150601f19603f3d011682016040523d82523d6000602084013e610ad5565b606091505b5050905080610ae357600080fd5b50610aee6001600955565b565b826001600160a01b0381163314610b0a57610b0a3361193b565b610a5c848484611a58565b610b1d6118e1565b600f55565b610b2a6118e1565b600e610a1882826128f4565b600d8054610b4390612874565b80601f0160208091040260200160405190810160405280929190818152602001828054610b6f90612874565b8015610bbc5780601f10610b9157610100808354040283529160200191610bbc565b820191906000526020600020905b815481529060010190602001808311610b9f57829003601f168201915b505050505081565b80516060906000816001600160401b03811115610be357610be36123d8565b604051908082528060200260200182016040528015610c2e57816020015b6040805160608101825260008082526020808301829052928201528252600019909201910181610c015790505b50905060005b828114610c8257610c5d858281518110610c5057610c506129b3565b6020026020010151611270565b828281518110610c6f57610c6f6129b3565b6020908102919091010152600101610c34565b509392505050565b600c8054610b4390612874565b6000610ca282611a73565b5192915050565b610cb16118e1565b601055565b60006001600160a01b038216610cdf576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b610d0c6118e1565b610aee6000611b95565b610d1e6118e1565b600a55565b610d2b6118e1565b600c610a1882826128f4565b60606000806000610d4785610cb6565b90506000816001600160401b03811115610d6357610d636123d8565b604051908082528060200260200182016040528015610d8c578160200160208202803683370190505b509050610db2604080516060810182526000808252602082018190529181019190915290565b60015b838614610e7057600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615159181018290529250610e685781516001600160a01b031615610e2957815194505b876001600160a01b0316856001600160a01b031603610e685780838780600101985081518110610e5b57610e5b6129b3565b6020026020010181815250505b600101610db5565b50909695505050505050565b6060600380546108b790612874565b6060818310610ead57604051631960ccad60e11b815260040160405180910390fd5b600080546001851015610ebf57600194505b80841115610ecb578093505b6000610ed687610cb6565b905084861015610ef55785850381811015610eef578091505b50610ef9565b5060005b6000816001600160401b03811115610f1357610f136123d8565b604051908082528060200260200182016040528015610f3c578160200160208202803683370190505b50905081600003610f5257935061104592505050565b6000610f5d88611270565b905060008160400151610f6e575080515b885b888114158015610f805750848714155b1561103957600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905293506110315782516001600160a01b031615610ff257825191505b8a6001600160a01b0316826001600160a01b0316036110315780848880600101995081518110611024576110246129b3565b6020026020010181815250505b600101610f70565b50505092835250909150505b9392505050565b8060008111801561105f57506011548111155b6110845760405162461bcd60e51b815260040161107b906129c9565b60405180910390fd5b60105481611099600154600054036000190190565b6110a39190612a0d565b11156110c15760405162461bcd60e51b815260040161107b90612a20565b8180600f546110d09190612a4e565b3410156111155760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e742066756e64732160681b604482015260640161107b565b60125460ff16156111685760405162461bcd60e51b815260206004820152601760248201527f54686520636f6e74726163742069732070617573656421000000000000000000604482015260640161107b565b6109ff3384611be7565b336001600160a01b0383160361119b5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600e8054610b4390612874565b61121c6118e1565b601155565b6112296118e1565b601280549115156101000261ff0019909216919091179055565b836001600160a01b038116331461125d5761125d3361193b565b61126985858585611c01565b5050505050565b604080516060808201835260008083526020808401829052838501829052845192830185528183528201819052928101929092529060018310806112b657506000548310155b156112c15792915050565b50600082815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615801592820192909252906113215792915050565b61104583611a73565b60606113358261184c565b6113995760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161107b565b60125462010000900460ff16151560000361144057600e80546113bb90612874565b80601f01602080910402602001604051908101604052809291908181526020018280546113e790612874565b80156114345780601f1061140957610100808354040283529160200191611434565b820191906000526020600020905b81548152906001019060200180831161141757829003601f168201915b50505050509050919050565b600061144a611c45565b9050600081511161146a5760405180602001604052806000815250611045565b8061147484611c54565b600d60405160200161148893929190612a65565b6040516020818303038152906040529392505050565b826000811180156114b157506011548111155b6114cd5760405162461bcd60e51b815260040161107b906129c9565b601054816114e2600154600054036000190190565b6114ec9190612a0d565b111561150a5760405162461bcd60e51b815260040161107b90612a20565b8380600f546115199190612a4e565b34101561155e5760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e742066756e64732160681b604482015260640161107b565b601254610100900460ff166115c05760405162461bcd60e51b815260206004820152602260248201527f5468652077686974656c6973742073616c65206973206e6f7420656e61626c65604482015261642160f01b606482015260840161107b565b336000908152600b602052604090205460ff16156116205760405162461bcd60e51b815260206004820152601860248201527f4164647265737320616c726561647920636c61696d6564210000000000000000604482015260640161107b565b6040516bffffffffffffffffffffffff193360601b16602082015260009060340160405160208183030381529060405280519060200120905061169a85858080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600a549150849050611ce6565b6116d75760405162461bcd60e51b815260206004820152600e60248201526d496e76616c69642070726f6f662160901b604482015260640161107b565b336000818152600b60205260409020805460ff191660011790556116fb9087611be7565b505050505050565b61170b6118e1565b60128054911515620100000262ff000019909216919091179055565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b8160008111801561176857506011548111155b6117845760405162461bcd60e51b815260040161107b906129c9565b60105481611799600154600054036000190190565b6117a39190612a0d565b11156117c15760405162461bcd60e51b815260040161107b90612a20565b6117c96118e1565b6109ff8284611be7565b6117db6118e1565b6001600160a01b0381166118405760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161107b565b61184981611b95565b50565b600081600111158015611860575060005482105b80156108a2575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6008546001600160a01b03163314610aee5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161107b565b6daaeb6d7670e522a718067333cd4e3b1561184957604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156119a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119cc9190612b05565b61184957604051633b79c77360e21b81526001600160a01b038216600482015260240161107b565b6109ff838383611cfc565b600260095403611a515760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161107b565b6002600955565b6109ff83838360405180602001604052806000815250611243565b60408051606081018252600080825260208201819052918101919091528180600111611b7c57600054811015611b7c57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290611b7a5780516001600160a01b031615611b11579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215611b75579392505050565b611b11565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610a18828260405180602001604052806000815250611ee7565b611c0c848484611cfc565b6001600160a01b0383163b15610a5c57611c28848484846120ae565b610a5c576040516368d2bf6b60e11b815260040160405180910390fd5b6060600c80546108b790612874565b60606000611c618361219a565b60010190506000816001600160401b03811115611c8057611c806123d8565b6040519080825280601f01601f191660200182016040528015611caa576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084611cb457509392505050565b600082611cf38584612272565b14949350505050565b6000611d0782611a73565b9050836001600160a01b031681600001516001600160a01b031614611d3e5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611d5c5750611d5c8533611727565b80611d77575033611d6c8461093a565b6001600160a01b0316145b905080611d9757604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416611dbe57604051633a954ecd60e21b815260040160405180910390fd5b611dca60008487611885565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116611e9e576000548214611e9e57805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611269565b6000546001600160a01b038416611f1057604051622e076360e81b815260040160405180910390fd5b82600003611f315760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038416600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168b0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168b01811690920217909155858452600490925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b15612059575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a461202260008784806001019550876120ae565b61203f576040516368d2bf6b60e11b815260040160405180910390fd5b808210611fd757826000541461205457600080fd5b61209e565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821061205a575b506000908155610a5c9085838684565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906120e3903390899088908890600401612b22565b6020604051808303816000875af192505050801561211e575060408051601f3d908101601f1916820190925261211b91810190612b5f565b60015b61217c573d80801561214c576040519150601f19603f3d011682016040523d82523d6000602084013e612151565b606091505b508051600003612174576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106121d95772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612205576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061222357662386f26fc10000830492506010015b6305f5e100831061223b576305f5e100830492506008015b612710831061224f57612710830492506004015b60648310612261576064830492506002015b600a83106108a25760010192915050565b600081815b8451811015610c82576122a382868381518110612296576122966129b3565b60200260200101516122b7565b9150806122af81612b7c565b915050612277565b60008183106122d3576000828152602084905260409020611045565b5060009182526020526040902090565b6001600160e01b03198116811461184957600080fd5b60006020828403121561230b57600080fd5b8135611045816122e3565b60005b83811015612331578181015183820152602001612319565b50506000910152565b60008151808452612352816020860160208601612316565b601f01601f19169290920160200192915050565b602081526000611045602083018461233a565b60006020828403121561238b57600080fd5b5035919050565b80356001600160a01b03811681146123a957600080fd5b919050565b600080604083850312156123c157600080fd5b6123ca83612392565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612416576124166123d8565b604052919050565b60006001600160401b03831115612437576124376123d8565b61244a601f8401601f19166020016123ee565b905082815283838301111561245e57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561248757600080fd5b81356001600160401b0381111561249d57600080fd5b8201601f810184136124ae57600080fd5b6121928482356020840161241e565b801515811461184957600080fd5b6000602082840312156124dd57600080fd5b8135611045816124bd565b6000806000606084860312156124fd57600080fd5b61250684612392565b925061251460208501612392565b9150604084013590509250925092565b6000602080838503121561253757600080fd5b82356001600160401b038082111561254e57600080fd5b818501915085601f83011261256257600080fd5b813581811115612574576125746123d8565b8060051b91506125858483016123ee565b818152918301840191848101908884111561259f57600080fd5b938501935b838510156125bd578435825293850193908501906125a4565b98975050505050505050565b6020808252825182820181905260009190848201906040850190845b81811015610e705761262083855180516001600160a01b031682526020808201516001600160401b0316908301526040908101511515910152565b92840192606092909201916001016125e5565b60006020828403121561264557600080fd5b61104582612392565b6020808252825182820181905260009190848201906040850190845b81811015610e705783518352928401929184019160010161266a565b60008060006060848603121561269b57600080fd5b6126a484612392565b95602085013595506040909401359392505050565b600080604083850312156126cc57600080fd5b6126d583612392565b915060208301356126e5816124bd565b809150509250929050565b6000806000806080858703121561270657600080fd5b61270f85612392565b935061271d60208601612392565b92506040850135915060608501356001600160401b0381111561273f57600080fd5b8501601f8101871361275057600080fd5b61275f8782356020840161241e565b91505092959194509250565b81516001600160a01b031681526020808301516001600160401b031690820152604080830151151590820152606081016108a2565b6000806000604084860312156127b557600080fd5b8335925060208401356001600160401b03808211156127d357600080fd5b818601915086601f8301126127e757600080fd5b8135818111156127f657600080fd5b8760208260051b850101111561280b57600080fd5b6020830194508093505050509250925092565b6000806040838503121561283157600080fd5b61283a83612392565b915061284860208401612392565b90509250929050565b6000806040838503121561286457600080fd5b8235915061284860208401612392565b600181811c9082168061288857607f821691505b6020821081036128a857634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156109ff57600081815260208120601f850160051c810160208610156128d55750805b601f850160051c820191505b818110156116fb578281556001016128e1565b81516001600160401b0381111561290d5761290d6123d8565b6129218161291b8454612874565b846128ae565b602080601f831160018114612956576000841561293e5750858301515b600019600386901b1c1916600185901b1785556116fb565b600085815260208120601f198616915b8281101561298557888601518255948401946001909101908401612966565b50858210156129a35787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b602080825260149082015273496e76616c6964206d696e7420616d6f756e742160601b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b808201808211156108a2576108a26129f7565b6020808252601490820152734d617820737570706c792065786365656465642160601b604082015260600190565b80820281158282048414176108a2576108a26129f7565b600084516020612a788285838a01612316565b855191840191612a8b8184848a01612316565b8554920191600090612a9c81612874565b60018281168015612ab45760018114612ac957612af5565b60ff1984168752821515830287019450612af5565b896000528560002060005b84811015612aed57815489820152908301908701612ad4565b505082870194505b50929a9950505050505050505050565b600060208284031215612b1757600080fd5b8151611045816124bd565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612b559083018461233a565b9695505050505050565b600060208284031215612b7157600080fd5b8151611045816122e3565b600060018201612b8e57612b8e6129f7565b506001019056fea2646970667358221220350d84c4131b3df00ae9588b67b2504c5d48456fc1de4845e00e8855ba81004c64736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000000000000002710000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000015437562655665727365205265616c20457374617465000000000000000000000000000000000000000000000000000000000000000000000000000000000000034352450000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001a697066733a2f2f5f5f4349445f5f2f68696464656e2e6a736f6e000000000000
-----Decoded View---------------
Arg [0] : _tokenName (string): CubeVerse Real Estate
Arg [1] : _tokenSymbol (string): CRE
Arg [2] : _cost (uint256): 1000000000000000000
Arg [3] : _maxSupply (uint256): 10000
Arg [4] : _maxMintAmountPerTx (uint256): 10
Arg [5] : _hiddenMetadataUri (string): ipfs://__CID__/hidden.json
-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 0000000000000000000000000000000000000000000000000de0b6b3a7640000
Arg [3] : 0000000000000000000000000000000000000000000000000000000000002710
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000015
Arg [7] : 437562655665727365205265616c204573746174650000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [9] : 4352450000000000000000000000000000000000000000000000000000000000
Arg [10] : 000000000000000000000000000000000000000000000000000000000000001a
Arg [11] : 697066733a2f2f5f5f4349445f5f2f68696464656e2e6a736f6e000000000000
Deployed Bytecode Sourcemap
379:5542:12:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3057:300:13;;;;;;;;;;-1:-1:-1;3057:300:13;;;;;:::i;:::-;;:::i;:::-;;;565:14:21;;558:22;540:41;;528:2;513:18;3057:300:13;;;;;;;;6087:98;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;7544:200::-;;;;;;;;;;-1:-1:-1;7544:200:13;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:21;;;1679:51;;1667:2;1652:18;7544:200:13;1533:203:21;7120:363:13;;;;;;;;;;-1:-1:-1;7120:363:13;;;;;:::i;:::-;;:::i;:::-;;730:19:12;;;;;;;;;;;;;;;;;;;2324:25:21;;;2312:2;2297:18;730:19:12;2178:177:21;4534:104:12;;;;;;;;;;-1:-1:-1;4534:104:12;;;;;:::i;:::-;;:::i;4644:81::-;;;;;;;;;;-1:-1:-1;4644:81:12;;;;;:::i;:::-;;:::i;2319:306:13:-;;;;;;;;;;;;3075:1:12;2578:12:13;2372:7;2562:13;:28;-1:-1:-1;;2562:46:13;;2319:306;5231:209:12;;;;;;;;;;-1:-1:-1;5231:209:12;;;;;:::i;:::-;;:::i;533:25::-;;;;;;;;;;;;;;;;4954:157;;;;;;;;;;;;;:::i;1158:142:19:-;;;;;;;;;;;;120:42:20;1158:142:19;;5446:217:12;;;;;;;;;;-1:-1:-1;5446:217:12;;;;;:::i;:::-;;:::i;3926:78::-;;;;;;;;;;-1:-1:-1;3926:78:12;;;;;:::i;:::-;;:::i;4268:150::-;;;;;;;;;;-1:-1:-1;4268:150:12;;;;;:::i;:::-;;:::i;902:28::-;;;;;;;;;;-1:-1:-1;902:28:12;;;;;;;;;;;653:33;;;;;;;;;;;;;:::i;1500:459:15:-;;;;;;;;;;-1:-1:-1;1500:459:15;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;825:25:12:-;;;;;;;;;;-1:-1:-1;825:25:12;;;;;;;;619:28;;;;;;;;;;;;;:::i;5902:123:13:-;;;;;;;;;;-1:-1:-1;5902:123:13;;;;;:::i;:::-;;:::i;856:40:12:-;;;;;;;;;;-1:-1:-1;856:40:12;;;;;;;;;;;4164:98;;;;;;;;;;-1:-1:-1;4164:98:12;;;;;:::i;:::-;;:::i;3416:203:13:-;;;;;;;;;;-1:-1:-1;3416:203:13;;;;;:::i;:::-;;:::i;1831:101:0:-;;;;;;;;;;;;;:::i;4731:102:12:-;;;;;;;;;;-1:-1:-1;4731:102:12;;;;;:::i;:::-;;:::i;4424:104::-;;;;;;;;;;-1:-1:-1;4424:104:12;;;;;:::i;:::-;;:::i;5220:870:15:-;;;;;;;;;;-1:-1:-1;5220:870:15;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;1201:85:0:-;;;;;;;;;;-1:-1:-1;1273:6:0;;-1:-1:-1;;;;;1273:6:0;1201:85;;785:33:12;;;;;;;;;;;;;;;;6249:102:13;;;;;;;;;;;;;:::i;2335:2448:15:-;;;;;;;;;;-1:-1:-1;2335:2448:15;;;;;:::i;:::-;;:::i;2523:268:12:-;;;;;;:::i;:::-;;:::i;7811:282:13:-;;;;;;;;;;-1:-1:-1;7811:282:13;;;;;:::i;:::-;;:::i;692:31:12:-;;;;;;;;;;;;;:::i;4010:148::-;;;;;;;;;;-1:-1:-1;4010:148:12;;;;;:::i;:::-;;:::i;4839:109::-;;;;;;;;;;-1:-1:-1;4839:109:12;;;;;:::i;:::-;;:::i;5669:250::-;;;;;;;;;;-1:-1:-1;5669:250:12;;;;;:::i;:::-;;:::i;939:408:15:-;;;;;;;;;;-1:-1:-1;939:408:15;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;3089:740:12:-;;;;;;;;;;-1:-1:-1;3089:740:12;;;;;:::i;:::-;;:::i;1822:695::-;;;;;;:::i;:::-;;:::i;755:24::-;;;;;;;;;;;;;;;;564:48;;;;;;;;;;-1:-1:-1;564:48:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;3835:85;;;;;;;;;;-1:-1:-1;3835:85:12;;;;;:::i;:::-;;:::i;8159:162:13:-;;;;;;;;;;-1:-1:-1;8159:162:13;;;;;:::i;:::-;;:::i;2797:181:12:-;;;;;;;;;;-1:-1:-1;2797:181:12;;;;;:::i;:::-;;:::i;2081:198:0:-;;;;;;;;;;-1:-1:-1;2081:198:0;;;;;:::i;:::-;;:::i;3057:300:13:-;3159:4;-1:-1:-1;;;;;;3194:40:13;;-1:-1:-1;;;3194:40:13;;:104;;-1:-1:-1;;;;;;;3250:48:13;;-1:-1:-1;;;3250:48:13;3194:104;:156;;;-1:-1:-1;;;;;;;;;;937:40:9;;;3314:36:13;3175:175;3057:300;-1:-1:-1;;3057:300:13:o;6087:98::-;6141:13;6173:5;6166:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6087:98;:::o;7544:200::-;7612:7;7636:16;7644:7;7636;:16::i;:::-;7631:64;;7661:34;;-1:-1:-1;;;7661:34:13;;;;;;;;;;;7631:64;-1:-1:-1;7713:24:13;;;;:15;:24;;;;;;-1:-1:-1;;;;;7713:24:13;;7544:200::o;7120:363::-;7192:13;7208:24;7224:7;7208:15;:24::i;:::-;7192:40;;7252:5;-1:-1:-1;;;;;7246:11:13;:2;-1:-1:-1;;;;;7246:11:13;;7242:48;;7266:24;;-1:-1:-1;;;7266:24:13;;;;;;;;;;;7242:48;719:10:6;-1:-1:-1;;;;;7305:21:13;;;7301:137;;7332:37;7349:5;719:10:6;8159:162:13;:::i;7332:37::-;7328:110;;7392:35;;-1:-1:-1;;;7392:35:13;;;;;;;;;;;7328:110;7448:28;7457:2;7461:7;7470:5;7448:8;:28::i;:::-;7182:301;7120:363;;:::o;4534:104:12:-;1094:13:0;:11;:13::i;:::-;4609:9:12::1;:22;4621:10:::0;4609:9;:22:::1;:::i;:::-;;4534:104:::0;:::o;4644:81::-;1094:13:0;:11;:13::i;:::-;4703:6:12::1;:15:::0;;-1:-1:-1;;4703:15:12::1;::::0;::::1;;::::0;;;::::1;::::0;;4644:81::o;5231:209::-;5380:4;-1:-1:-1;;;;;2638:18:19;;2646:10;2638:18;2634:81;;2672:32;2693:10;2672:20;:32::i;:::-;5396:37:12::1;5415:4;5421:2;5425:7;5396:18;:37::i;:::-;5231:209:::0;;;;:::o;4954:157::-;1094:13:0;:11;:13::i;:::-;2261:21:1::1;:19;:21::i;:::-;5015:7:12::2;5036;1273:6:0::0;;-1:-1:-1;;;;;1273:6:0;;1201:85;5036:7:12::2;-1:-1:-1::0;;;;;5028:21:12::2;5057;5028:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5014:69;;;5101:2;5093:11;;;::::0;::::2;;5004:107;2303:20:1::1;1716:1:::0;2809:7;:22;2629:209;2303:20:::1;4954:157:12:o:0;5446:217::-;5599:4;-1:-1:-1;;;;;2638:18:19;;2646:10;2638:18;2634:81;;2672:32;2693:10;2672:20;:32::i;:::-;5615:41:12::1;5638:4;5644:2;5648:7;5615:22;:41::i;3926:78::-:0;1094:13:0;:11;:13::i;:::-;3985:4:12::1;:12:::0;3926:78::o;4268:150::-;1094:13:0;:11;:13::i;:::-;4373:17:12::1;:38;4393:18:::0;4373:17;:38:::1;:::i;653:33::-:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1500:459:15:-;1673:15;;1589:23;;1648:22;1673:15;-1:-1:-1;;;;;1739:36:15;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;1739:36:15;;-1:-1:-1;;1739:36:15;;;;;;;;;;;;1702:73;;1794:9;1789:123;1810:14;1805:1;:19;1789:123;;1865:32;1885:8;1894:1;1885:11;;;;;;;;:::i;:::-;;;;;;;1865:19;:32::i;:::-;1849:10;1860:1;1849:13;;;;;;;;:::i;:::-;;;;;;;;;;:48;1826:3;;1789:123;;;-1:-1:-1;1932:10:15;1500:459;-1:-1:-1;;;1500:459:15:o;619:28:12:-;;;;;;;:::i;5902:123:13:-;5966:7;5992:21;6005:7;5992:12;:21::i;:::-;:26;;5902:123;-1:-1:-1;;5902:123:13:o;4164:98:12:-;1094:13:0;:11;:13::i;:::-;4233:9:12::1;:22:::0;4164:98::o;3416:203:13:-;3480:7;-1:-1:-1;;;;;3503:19:13;;3499:60;;3531:28;;-1:-1:-1;;;3531:28:13;;;;;;;;;;;3499:60;-1:-1:-1;;;;;;3584:19:13;;;;;:12;:19;;;;;:27;-1:-1:-1;;;;;3584:27:13;;3416:203::o;1831:101:0:-;1094:13;:11;:13::i;:::-;1895:30:::1;1922:1;1895:18;:30::i;4731:102:12:-:0;1094:13:0;:11;:13::i;:::-;4802:10:12::1;:24:::0;4731:102::o;4424:104::-;1094:13:0;:11;:13::i;:::-;4499:9:12::1;:22;4511:10:::0;4499:9;:22:::1;:::i;5220:870:15:-:0;5290:16;5342:19;5375:25;5414:22;5439:16;5449:5;5439:9;:16::i;:::-;5414:41;;5469:25;5511:14;-1:-1:-1;;;;;5497:29:15;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5497:29:15;;5469:57;;5540:31;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;5540:31:15;3075:1:12;5585:460:15;5634:14;5619:11;:29;5585:460;;5685:14;;;;:11;:14;;;;;;;;;5673:26;;;;;;;;;-1:-1:-1;;;;;5673:26:15;;;;-1:-1:-1;;;5673:26:15;;-1:-1:-1;;;;;5673:26:15;;;;;;;;-1:-1:-1;;;5673:26:15;;;;;;;;;;;;;;-1:-1:-1;5761:8:15;5717:71;5809:14;;-1:-1:-1;;;;;5809:28:15;;5805:109;;5881:14;;;-1:-1:-1;5805:109:15;5956:5;-1:-1:-1;;;;;5935:26:15;:17;-1:-1:-1;;;;;5935:26:15;;5931:100;;6011:1;5985:8;5994:13;;;;;;5985:23;;;;;;;;:::i;:::-;;;;;;:27;;;;;5931:100;5650:3;;5585:460;;;-1:-1:-1;6065:8:15;;5220:870;-1:-1:-1;;;;;;5220:870:15:o;6249:102:13:-;6305:13;6337:7;6330:14;;;;;:::i;2335:2448:15:-;2466:16;2531:4;2522:5;:13;2518:45;;2544:19;;-1:-1:-1;;;2544:19:15;;;;;;;;;;;2518:45;2577:19;2630:13;;3075:1:12;2719:5:15;:23;2715:85;;;3075:1:12;2762:23:15;;2715:85;2878:9;2871:4;:16;2867:71;;;2914:9;2907:16;;2867:71;2951:25;2979:16;2989:5;2979:9;:16::i;:::-;2951:44;;3170:4;3162:5;:12;3158:271;;;3216:12;;;3250:31;;;3246:109;;;3325:11;3305:31;;3246:109;3176:193;3158:271;;;-1:-1:-1;3413:1:15;3158:271;3442:25;3484:17;-1:-1:-1;;;;;3470:32:15;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3470:32:15;;3442:60;;3520:17;3541:1;3520:22;3516:76;;3569:8;-1:-1:-1;3562:15:15;;-1:-1:-1;;;3562:15:15;3516:76;3733:31;3767:26;3787:5;3767:19;:26::i;:::-;3733:60;;3807:25;4049:9;:16;;;4044:90;;-1:-1:-1;4105:14:15;;4044:90;4164:5;4147:466;4176:4;4171:1;:9;;:45;;;;;4199:17;4184:11;:32;;4171:45;4147:466;;;4253:14;;;;:11;:14;;;;;;;;;4241:26;;;;;;;;;-1:-1:-1;;;;;4241:26:15;;;;-1:-1:-1;;;4241:26:15;;-1:-1:-1;;;;;4241:26:15;;;;;;;;-1:-1:-1;;;4241:26:15;;;;;;;;;;;;;;-1:-1:-1;4329:8:15;4285:71;4377:14;;-1:-1:-1;;;;;4377:28:15;;4373:109;;4449:14;;;-1:-1:-1;4373:109:15;4524:5;-1:-1:-1;;;;;4503:26:15;:17;-1:-1:-1;;;;;4503:26:15;;4499:100;;4579:1;4553:8;4562:13;;;;;;4553:23;;;;;;;;:::i;:::-;;;;;;:27;;;;;4499:100;4218:3;;4147:466;;;-1:-1:-1;;;4695:29:15;;;-1:-1:-1;4702:8:15;;-1:-1:-1;;2335:2448:15;;;;;;:::o;2523:268:12:-;2626:11;1450:1;1436:11;:15;:52;;;;;1470:18;;1455:11;:33;;1436:52;1415:119;;;;-1:-1:-1;;;1415:119:12;;;;;;;:::i;:::-;;;;;;;;;1596:9;;1581:11;1565:13;3075:1;2578:12:13;2372:7;2562:13;:28;-1:-1:-1;;2562:46:13;;2319:306;1565:13:12;:27;;;;:::i;:::-;:40;;1544:107;;;;-1:-1:-1;;;1544:107:12;;;;;;;:::i;:::-;2667:11:::1;1763;1756:4;;:18;;;;:::i;:::-;1743:9;:31;;1735:63;;;::::0;-1:-1:-1;;;1735:63:12;;14809:2:21;1735:63:12::1;::::0;::::1;14791:21:21::0;14848:2;14828:18;;;14821:30;-1:-1:-1;;;14867:18:21;;;14860:49;14926:18;;1735:63:12::1;14607:343:21::0;1735:63:12::1;2703:6:::2;::::0;::::2;;2702:7;2694:43;;;::::0;-1:-1:-1;;;2694:43:12;;15157:2:21;2694:43:12::2;::::0;::::2;15139:21:21::0;15196:2;15176:18;;;15169:30;15235:25;15215:18;;;15208:53;15278:18;;2694:43:12::2;14955:347:21::0;2694:43:12::2;2748:36;719:10:6::0;2772:11:12::2;2748:9;:36::i;7811:282:13:-:0;719:10:6;-1:-1:-1;;;;;7909:24:13;;;7905:54;;7942:17;;-1:-1:-1;;;7942:17:13;;;;;;;;;;;7905:54;719:10:6;7970:32:13;;;;:18;:32;;;;;;;;-1:-1:-1;;;;;7970:42:13;;;;;;;;;;;;:53;;-1:-1:-1;;7970:53:13;;;;;;;;;;8038:48;;540:41:21;;;7970:42:13;;719:10:6;8038:48:13;;513:18:21;8038:48:13;;;;;;;7811:282;;:::o;692:31:12:-;;;;;;;:::i;4010:148::-;1094:13:0;:11;:13::i;:::-;4111:18:12::1;:40:::0;4010:148::o;4839:109::-;1094:13:0;:11;:13::i;:::-;4912:20:12::1;:29:::0;;;::::1;;;;-1:-1:-1::0;;4912:29:12;;::::1;::::0;;;::::1;::::0;;4839:109::o;5669:250::-;5849:4;-1:-1:-1;;;;;2638:18:19;;2646:10;2638:18;2634:81;;2672:32;2693:10;2672:20;:32::i;:::-;5865:47:12::1;5888:4;5894:2;5898:7;5907:4;5865:22;:47::i;:::-;5669:250:::0;;;;;:::o;939:408:15:-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3075:1:12;1093:25:15;;;:53;;;1133:13;;1122:7;:24;;1093:53;1089:100;;;1169:9;939:408;-1:-1:-1;;939:408:15:o;1089:100::-;-1:-1:-1;1210:20:15;;;;:11;:20;;;;;;;;;1198:32;;;;;;;;;-1:-1:-1;;;;;1198:32:15;;;;-1:-1:-1;;;1198:32:15;;-1:-1:-1;;;;;1198:32:15;;;;;;;;-1:-1:-1;;;1198:32:15;;;;;;;;;;;;;;;;1240:63;;1283:9;939:408;-1:-1:-1;;939:408:15:o;1240:63::-;1319:21;1332:7;1319:12;:21::i;3089:740:12:-;3243:13;3293:17;3301:8;3293:7;:17::i;:::-;3272:111;;;;-1:-1:-1;;;3272:111:12;;15509:2:21;3272:111:12;;;15491:21:21;15548:2;15528:18;;;15521:30;15587:34;15567:18;;;15560:62;-1:-1:-1;;;15638:18:21;;;15631:45;15693:19;;3272:111:12;15307:411:21;3272:111:12;3398:8;;;;;;;:17;;3410:5;3398:17;3394:72;;3438:17;3431:24;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3089:740;;;:::o;3394:72::-;3476:28;3507:10;:8;:10::i;:::-;3476:41;;3577:1;3552:14;3546:28;:32;:276;;;;;;;;;;;;;;;;;3667:14;3707:19;:8;:17;:19::i;:::-;3752:9;3625:158;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;3527:295;3089:740;-1:-1:-1;;;3089:740:12:o;1822:695::-;1975:11;1450:1;1436:11;:15;:52;;;;;1470:18;;1455:11;:33;;1436:52;1415:119;;;;-1:-1:-1;;;1415:119:12;;;;;;;:::i;:::-;1596:9;;1581:11;1565:13;3075:1;2578:12:13;2372:7;2562:13;:28;-1:-1:-1;;2562:46:13;;2319:306;1565:13:12;:27;;;;:::i;:::-;:40;;1544:107;;;;-1:-1:-1;;;1544:107:12;;;;;;;:::i;:::-;2016:11:::1;1763;1756:4;;:18;;;;:::i;:::-;1743:9;:31;;1735:63;;;::::0;-1:-1:-1;;;1735:63:12;;14809:2:21;1735:63:12::1;::::0;::::1;14791:21:21::0;14848:2;14828:18;;;14821:30;-1:-1:-1;;;14867:18:21;;;14860:49;14926:18;;1735:63:12::1;14607:343:21::0;1735:63:12::1;2092:20:::2;::::0;::::2;::::0;::::2;;;2084:67;;;::::0;-1:-1:-1;;;2084:67:12;;17186:2:21;2084:67:12::2;::::0;::::2;17168:21:21::0;17225:2;17205:18;;;17198:30;17264:34;17244:18;;;17237:62;-1:-1:-1;;;17315:18:21;;;17308:32;17357:19;;2084:67:12::2;16984:398:21::0;2084:67:12::2;719:10:6::0;2170:30:12::2;::::0;;;:16:::2;:30;::::0;;;;;::::2;;2169:31;2161:68;;;::::0;-1:-1:-1;;;2161:68:12;;17589:2:21;2161:68:12::2;::::0;::::2;17571:21:21::0;17628:2;17608:18;;;17601:30;17667:26;17647:18;;;17640:54;17711:18;;2161:68:12::2;17387:348:21::0;2161:68:12::2;2264:30;::::0;-1:-1:-1;;719:10:6;17889:2:21;17885:15;17881:53;2264:30:12::2;::::0;::::2;17869:66:21::0;2239:12:12::2;::::0;17951::21;;2264:30:12::2;;;;;;;;;;;;2254:41;;;;;;2239:56;;2326:50;2345:12;;2326:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;::::0;;;;-1:-1:-1;;2359:10:12::2;::::0;;-1:-1:-1;2371:4:12;;-1:-1:-1;2326:18:12::2;:50::i;:::-;2305:111;;;::::0;-1:-1:-1;;;2305:111:12;;18176:2:21;2305:111:12::2;::::0;::::2;18158:21:21::0;18215:2;18195:18;;;18188:30;-1:-1:-1;;;18234:18:21;;;18227:44;18288:18;;2305:111:12::2;17974:338:21::0;2305:111:12::2;719:10:6::0;2427:30:12::2;::::0;;;:16:::2;:30;::::0;;;;:37;;-1:-1:-1;;2427:37:12::2;2460:4;2427:37;::::0;;2474:36:::2;::::0;2498:11;2474:9:::2;:36::i;:::-;2033:484;1661:1:::1;1822:695:::0;;;;:::o;3835:85::-;1094:13:0;:11;:13::i;:::-;3896:8:12::1;:17:::0;;;::::1;;::::0;::::1;-1:-1:-1::0;;3896:17:12;;::::1;::::0;;;::::1;::::0;;3835:85::o;8159:162:13:-;-1:-1:-1;;;;;8279:25:13;;;8256:4;8279:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;8159:162::o;2797:181:12:-;2905:11;1450:1;1436:11;:15;:52;;;;;1470:18;;1455:11;:33;;1436:52;1415:119;;;;-1:-1:-1;;;1415:119:12;;;;;;;:::i;:::-;1596:9;;1581:11;1565:13;3075:1;2578:12:13;2372:7;2562:13;:28;-1:-1:-1;;2562:46:13;;2319:306;1565:13:12;:27;;;;:::i;:::-;:40;;1544:107;;;;-1:-1:-1;;;1544:107:12;;;;;;;:::i;:::-;1094:13:0::1;:11;:13::i;:::-;2938:33:12::2;2948:9;2959:11;2938:9;:33::i;2081:198:0:-:0;1094:13;:11;:13::i;:::-;-1:-1:-1;;;;;2169:22:0;::::1;2161:73;;;::::0;-1:-1:-1;;;2161:73:0;;18519:2:21;2161:73:0::1;::::0;::::1;18501:21:21::0;18558:2;18538:18;;;18531:30;18597:34;18577:18;;;18570:62;-1:-1:-1;;;18648:18:21;;;18641:36;18694:19;;2161:73:0::1;18317:402:21::0;2161:73:0::1;2244:28;2263:8;2244:18;:28::i;:::-;2081:198:::0;:::o;9464:172:13:-;9521:4;9563:7;3075:1:12;9544:26:13;;:53;;;;;9584:13;;9574:7;:23;9544:53;:85;;;;-1:-1:-1;;9602:20:13;;;;:11;:20;;;;;:27;-1:-1:-1;;;9602:27:13;;;;9601:28;;9464:172::o;18445:189::-;18555:24;;;;:15;:24;;;;;;:29;;-1:-1:-1;;;;;;18555:29:13;-1:-1:-1;;;;;18555:29:13;;;;;;;;;18599:28;;18555:24;;18599:28;;;;;;;18445:189;;;:::o;1359:130:0:-;1273:6;;-1:-1:-1;;;;;1273:6:0;719:10:6;1422:23:0;1414:68;;;;-1:-1:-1;;;1414:68:0;;18926:2:21;1414:68:0;;;18908:21:21;;;18945:18;;;18938:30;19004:34;18984:18;;;18977:62;19056:18;;1414:68:0;18724:356:21;3038:638:19;120:42:20;3227:45:19;:49;3223:447;;3523:67;;-1:-1:-1;;;3523:67:19;;3574:4;3523:67;;;19297:34:21;-1:-1:-1;;;;;19367:15:21;;19347:18;;;19340:43;120:42:20;;3523::19;;19232:18:21;;3523:67:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3518:142;;3617:28;;-1:-1:-1;;;3617:28:19;;-1:-1:-1;;;;;1697:32:21;;3617:28:19;;;1679:51:21;1652:18;;3617:28:19;1533:203:21;8383:164:13;8512:28;8522:4;8528:2;8532:7;8512:9;:28::i;2336:287:1:-;1759:1;2468:7;;:19;2460:63;;;;-1:-1:-1;;;2460:63:1;;19846:2:21;2460:63:1;;;19828:21:21;19885:2;19865:18;;;19858:30;19924:33;19904:18;;;19897:61;19975:18;;2460:63:1;19644:355:21;2460:63:1;1759:1;2598:7;:18;2336:287::o;8613:179:13:-;8746:39;8763:4;8769:2;8773:7;8746:39;;;;;;;;;;;;:16;:39::i;4759:1086::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;4869:7:13;;3075:1:12;4915:23:13;4911:870;;4951:13;;4944:4;:20;4940:841;;;4984:31;5018:17;;;:11;:17;;;;;;;;;4984:51;;;;;;;;;-1:-1:-1;;;;;4984:51:13;;;;-1:-1:-1;;;4984:51:13;;-1:-1:-1;;;;;4984:51:13;;;;;;;;-1:-1:-1;;;4984:51:13;;;;;;;;;;;;;;5053:714;;5102:14;;-1:-1:-1;;;;;5102:28:13;;5098:99;;5165:9;4759:1086;-1:-1:-1;;;4759:1086:13:o;5098:99::-;-1:-1:-1;;;5533:6:13;5577:17;;;;:11;:17;;;;;;;;;5565:29;;;;;;;;;-1:-1:-1;;;;;5565:29:13;;;;;-1:-1:-1;;;5565:29:13;;-1:-1:-1;;;;;5565:29:13;;;;;;;;-1:-1:-1;;;5565:29:13;;;;;;;;;;;;;5624:28;5620:107;;5691:9;4759:1086;-1:-1:-1;;;4759:1086:13:o;5620:107::-;5494:255;;;4966:815;4940:841;5807:31;;-1:-1:-1;;;5807:31:13;;;;;;;;;;;2433:187:0;2525:6;;;-1:-1:-1;;;;;2541:17:0;;;-1:-1:-1;;;;;;2541:17:0;;;;;;;2573:40;;2525:6;;;2541:17;2525:6;;2573:40;;2506:16;;2573:40;2496:124;2433:187;:::o;9715:102:13:-;9783:27;9793:2;9797:8;9783:27;;;;;;;;;;;;:9;:27::i;8858:360::-;9019:28;9029:4;9035:2;9039:7;9019:9;:28::i;:::-;-1:-1:-1;;;;;9061:13:13;;1465:19:5;:23;9057:155:13;;9082:56;9113:4;9119:2;9123:7;9132:5;9082:30;:56::i;:::-;9078:134;;9161:40;;-1:-1:-1;;;9161:40:13;;;;;;;;;;;5117:108:12;5177:13;5209:9;5202:16;;;;;:::i;415:696:7:-;471:13;520:14;537:17;548:5;537:10;:17::i;:::-;557:1;537:21;520:38;;572:20;606:6;-1:-1:-1;;;;;595:18:7;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;595:18:7;-1:-1:-1;572:41:7;-1:-1:-1;733:28:7;;;749:2;733:28;788:280;-1:-1:-1;;819:5:7;-1:-1:-1;;;953:2:7;942:14;;937:30;819:5;924:44;1012:2;1003:11;;;-1:-1:-1;1032:21:7;788:280;1032:21;-1:-1:-1;1088:6:7;415:696;-1:-1:-1;;;415:696:7:o;1156:184:8:-;1277:4;1329;1300:25;1313:5;1320:4;1300:12;:25::i;:::-;:33;;1156:184;-1:-1:-1;;;;1156:184:8:o;13520:2082:13:-;13630:35;13668:21;13681:7;13668:12;:21::i;:::-;13630:59;;13726:4;-1:-1:-1;;;;;13704:26:13;:13;:18;;;-1:-1:-1;;;;;13704:26:13;;13700:67;;13739:28;;-1:-1:-1;;;13739:28:13;;;;;;;;;;;13700:67;13778:22;719:10:6;-1:-1:-1;;;;;13804:20:13;;;;:72;;-1:-1:-1;13840:36:13;13857:4;719:10:6;8159:162:13;:::i;13840:36::-;13804:124;;;-1:-1:-1;719:10:6;13892:20:13;13904:7;13892:11;:20::i;:::-;-1:-1:-1;;;;;13892:36:13;;13804:124;13778:151;;13945:17;13940:66;;13971:35;;-1:-1:-1;;;13971:35:13;;;;;;;;;;;13940:66;-1:-1:-1;;;;;14020:16:13;;14016:52;;14045:23;;-1:-1:-1;;;14045:23:13;;;;;;;;;;;14016:52;14184:35;14201:1;14205:7;14214:4;14184:8;:35::i;:::-;-1:-1:-1;;;;;14509:18:13;;;;;;;:12;:18;;;;;;;;:31;;-1:-1:-1;;14509:31:13;;;-1:-1:-1;;;;;14509:31:13;;;-1:-1:-1;;14509:31:13;;;;;;;14554:16;;;;;;;;;:29;;;;;;;;-1:-1:-1;14554:29:13;;;;;;;;;;;14632:20;;;:11;:20;;;;;;14666:18;;-1:-1:-1;;;;;;14698:49:13;;;;-1:-1:-1;;;14731:15:13;14698:49;;;;;;;;;;15017:11;;15076:24;;;;;15118:13;;14632:20;;15076:24;;15118:13;15114:377;;15325:13;;15310:11;:28;15306:171;;15362:20;;15430:28;;;;-1:-1:-1;;;;;15404:54:13;-1:-1:-1;;;15404:54:13;-1:-1:-1;;;;;;15404:54:13;;;-1:-1:-1;;;;;15362:20:13;;15404:54;;;;15306:171;14485:1016;;;15535:7;15531:2;-1:-1:-1;;;;;15516:27:13;15525:4;-1:-1:-1;;;;;15516:27:13;;;;;;;;;;;15553:42;5231:209:12;10177:1708:13;10295:20;10318:13;-1:-1:-1;;;;;10345:16:13;;10341:48;;10370:19;;-1:-1:-1;;;10370:19:13;;;;;;;;;;;10341:48;10403:8;10415:1;10403:13;10399:44;;10425:18;;-1:-1:-1;;;10425:18:13;;;;;;;;;;;10399:44;-1:-1:-1;;;;;10786:16:13;;;;;;:12;:16;;;;;;;;:44;;-1:-1:-1;;10844:49:13;;-1:-1:-1;;;;;10786:44:13;;;;;;;10844:49;;;;-1:-1:-1;;10786:44:13;;;;;;10844:49;;;;;;;;;;;;;;;;10908:25;;;:11;:25;;;;;;:35;;-1:-1:-1;;;;;;10957:66:13;;;-1:-1:-1;;;11007:15:13;10957:66;;;;;;;;;;;;;10908:25;;11101:23;;;;1465:19:5;:23;11139:618:13;;11178:308;11208:38;;11233:12;;-1:-1:-1;;;;;11208:38:13;;;11225:1;;11208:38;;11225:1;;11208:38;11273:69;11312:1;11316:2;11320:14;;;;;;11336:5;11273:30;:69::i;:::-;11268:172;;11377:40;;-1:-1:-1;;;11377:40:13;;;;;;;;;;;11268:172;11481:3;11466:12;:18;11178:308;;11565:12;11548:13;;:29;11544:43;;11579:8;;;11544:43;11139:618;;;11626:117;11656:40;;11681:14;;;;;-1:-1:-1;;;;;11656:40:13;;;11673:1;;11656:40;;11673:1;;11656:40;11738:3;11723:12;:18;11626:117;;11139:618;-1:-1:-1;11770:13:13;:28;;;11818:60;;11851:2;11855:12;11869:8;11818:60;:::i;19115:650::-;19293:72;;-1:-1:-1;;;19293:72:13;;19273:4;;-1:-1:-1;;;;;19293:36:13;;;;;:72;;719:10:6;;19344:4:13;;19350:7;;19359:5;;19293:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;19293:72:13;;;;;;;;-1:-1:-1;;19293:72:13;;;;;;;;;;;;:::i;:::-;;;19289:470;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19524:6;:13;19541:1;19524:18;19520:229;;19569:40;;-1:-1:-1;;;19569:40:13;;;;;;;;;;;19520:229;19709:6;19703:13;19694:6;19690:2;19686:15;19679:38;19289:470;-1:-1:-1;;;;;;19411:55:13;-1:-1:-1;;;19411:55:13;;-1:-1:-1;19289:470:13;19115:650;;;;;;:::o;9889:890:11:-;9942:7;;-1:-1:-1;;;10017:15:11;;10013:99;;-1:-1:-1;;;10052:15:11;;;-1:-1:-1;10095:2:11;10085:12;10013:99;10138:6;10129:5;:15;10125:99;;10173:6;10164:15;;;-1:-1:-1;10207:2:11;10197:12;10125:99;10250:6;10241:5;:15;10237:99;;10285:6;10276:15;;;-1:-1:-1;10319:2:11;10309:12;10237:99;10362:5;10353;:14;10349:96;;10396:5;10387:14;;;-1:-1:-1;10429:1:11;10419:11;10349:96;10471:5;10462;:14;10458:96;;10505:5;10496:14;;;-1:-1:-1;10538:1:11;10528:11;10458:96;10580:5;10571;:14;10567:96;;10614:5;10605:14;;;-1:-1:-1;10647:1:11;10637:11;10567:96;10689:5;10680;:14;10676:64;;10724:1;10714:11;10766:6;9889:890;-1:-1:-1;;9889:890:11:o;1994:290:8:-;2077:7;2119:4;2077:7;2133:116;2157:5;:12;2153:1;:16;2133:116;;;2205:33;2215:12;2229:5;2235:1;2229:8;;;;;;;;:::i;:::-;;;;;;;2205:9;:33::i;:::-;2190:48;-1:-1:-1;2171:3:8;;;;:::i;:::-;;;;2133:116;;8879:147;8942:7;8972:1;8968;:5;:51;;9100:13;9191:15;;;9226:4;9219:15;;;9272:4;9256:21;;8968:51;;;-1:-1:-1;9100:13:8;9191:15;;;9226:4;9219:15;9272:4;9256:21;;;8879:147::o;14:131:21:-;-1:-1:-1;;;;;;88:32:21;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:250::-;677:1;687:113;701:6;698:1;695:13;687:113;;;777:11;;;771:18;758:11;;;751:39;723:2;716:10;687:113;;;-1:-1:-1;;834:1:21;816:16;;809:27;592:250::o;847:271::-;889:3;927:5;921:12;954:6;949:3;942:19;970:76;1039:6;1032:4;1027:3;1023:14;1016:4;1009:5;1005:16;970:76;:::i;:::-;1100:2;1079:15;-1:-1:-1;;1075:29:21;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:21:o;1123:220::-;1272:2;1261:9;1254:21;1235:4;1292:45;1333:2;1322:9;1318:18;1310:6;1292:45;:::i;1348:180::-;1407:6;1460:2;1448:9;1439:7;1435:23;1431:32;1428:52;;;1476:1;1473;1466:12;1428:52;-1:-1:-1;1499:23:21;;1348:180;-1:-1:-1;1348:180:21:o;1741:173::-;1809:20;;-1:-1:-1;;;;;1858:31:21;;1848:42;;1838:70;;1904:1;1901;1894:12;1838:70;1741:173;;;:::o;1919:254::-;1987:6;1995;2048:2;2036:9;2027:7;2023:23;2019:32;2016:52;;;2064:1;2061;2054:12;2016:52;2087:29;2106:9;2087:29;:::i;:::-;2077:39;2163:2;2148:18;;;;2135:32;;-1:-1:-1;;;1919:254:21:o;2360:127::-;2421:10;2416:3;2412:20;2409:1;2402:31;2452:4;2449:1;2442:15;2476:4;2473:1;2466:15;2492:275;2563:2;2557:9;2628:2;2609:13;;-1:-1:-1;;2605:27:21;2593:40;;-1:-1:-1;;;;;2648:34:21;;2684:22;;;2645:62;2642:88;;;2710:18;;:::i;:::-;2746:2;2739:22;2492:275;;-1:-1:-1;2492:275:21:o;2772:407::-;2837:5;-1:-1:-1;;;;;2863:6:21;2860:30;2857:56;;;2893:18;;:::i;:::-;2931:57;2976:2;2955:15;;-1:-1:-1;;2951:29:21;2982:4;2947:40;2931:57;:::i;:::-;2922:66;;3011:6;3004:5;2997:21;3051:3;3042:6;3037:3;3033:16;3030:25;3027:45;;;3068:1;3065;3058:12;3027:45;3117:6;3112:3;3105:4;3098:5;3094:16;3081:43;3171:1;3164:4;3155:6;3148:5;3144:18;3140:29;3133:40;2772:407;;;;;:::o;3184:451::-;3253:6;3306:2;3294:9;3285:7;3281:23;3277:32;3274:52;;;3322:1;3319;3312:12;3274:52;3362:9;3349:23;-1:-1:-1;;;;;3387:6:21;3384:30;3381:50;;;3427:1;3424;3417:12;3381:50;3450:22;;3503:4;3495:13;;3491:27;-1:-1:-1;3481:55:21;;3532:1;3529;3522:12;3481:55;3555:74;3621:7;3616:2;3603:16;3598:2;3594;3590:11;3555:74;:::i;3640:118::-;3726:5;3719:13;3712:21;3705:5;3702:32;3692:60;;3748:1;3745;3738:12;3763:241;3819:6;3872:2;3860:9;3851:7;3847:23;3843:32;3840:52;;;3888:1;3885;3878:12;3840:52;3927:9;3914:23;3946:28;3968:5;3946:28;:::i;4009:328::-;4086:6;4094;4102;4155:2;4143:9;4134:7;4130:23;4126:32;4123:52;;;4171:1;4168;4161:12;4123:52;4194:29;4213:9;4194:29;:::i;:::-;4184:39;;4242:38;4276:2;4265:9;4261:18;4242:38;:::i;:::-;4232:48;;4327:2;4316:9;4312:18;4299:32;4289:42;;4009:328;;;;;:::o;4764:946::-;4848:6;4879:2;4922;4910:9;4901:7;4897:23;4893:32;4890:52;;;4938:1;4935;4928:12;4890:52;4978:9;4965:23;-1:-1:-1;;;;;5048:2:21;5040:6;5037:14;5034:34;;;5064:1;5061;5054:12;5034:34;5102:6;5091:9;5087:22;5077:32;;5147:7;5140:4;5136:2;5132:13;5128:27;5118:55;;5169:1;5166;5159:12;5118:55;5205:2;5192:16;5227:2;5223;5220:10;5217:36;;;5233:18;;:::i;:::-;5279:2;5276:1;5272:10;5262:20;;5302:28;5326:2;5322;5318:11;5302:28;:::i;:::-;5364:15;;;5434:11;;;5430:20;;;5395:12;;;;5462:19;;;5459:39;;;5494:1;5491;5484:12;5459:39;5518:11;;;;5538:142;5554:6;5549:3;5546:15;5538:142;;;5620:17;;5608:30;;5571:12;;;;5658;;;;5538:142;;;5699:5;4764:946;-1:-1:-1;;;;;;;;4764:946:21:o;5998:724::-;6233:2;6285:21;;;6355:13;;6258:18;;;6377:22;;;6204:4;;6233:2;6456:15;;;;6430:2;6415:18;;;6204:4;6499:197;6513:6;6510:1;6507:13;6499:197;;;6562:52;6610:3;6601:6;6595:13;5799:12;;-1:-1:-1;;;;;5795:38:21;5783:51;;5887:4;5876:16;;;5870:23;-1:-1:-1;;;;;5866:48:21;5850:14;;;5843:72;5978:4;5967:16;;;5961:23;5954:31;5947:39;5931:14;;5924:63;5715:278;6562:52;6671:15;;;;6643:4;6634:14;;;;;6535:1;6528:9;6499:197;;6727:186;6786:6;6839:2;6827:9;6818:7;6814:23;6810:32;6807:52;;;6855:1;6852;6845:12;6807:52;6878:29;6897:9;6878:29;:::i;7103:632::-;7274:2;7326:21;;;7396:13;;7299:18;;;7418:22;;;7245:4;;7274:2;7497:15;;;;7471:2;7456:18;;;7245:4;7540:169;7554:6;7551:1;7548:13;7540:169;;;7615:13;;7603:26;;7684:15;;;;7649:12;;;;7576:1;7569:9;7540:169;;7740:322;7817:6;7825;7833;7886:2;7874:9;7865:7;7861:23;7857:32;7854:52;;;7902:1;7899;7892:12;7854:52;7925:29;7944:9;7925:29;:::i;:::-;7915:39;8001:2;7986:18;;7973:32;;-1:-1:-1;8052:2:21;8037:18;;;8024:32;;7740:322;-1:-1:-1;;;7740:322:21:o;8067:315::-;8132:6;8140;8193:2;8181:9;8172:7;8168:23;8164:32;8161:52;;;8209:1;8206;8199:12;8161:52;8232:29;8251:9;8232:29;:::i;:::-;8222:39;;8311:2;8300:9;8296:18;8283:32;8324:28;8346:5;8324:28;:::i;:::-;8371:5;8361:15;;;8067:315;;;;;:::o;8387:667::-;8482:6;8490;8498;8506;8559:3;8547:9;8538:7;8534:23;8530:33;8527:53;;;8576:1;8573;8566:12;8527:53;8599:29;8618:9;8599:29;:::i;:::-;8589:39;;8647:38;8681:2;8670:9;8666:18;8647:38;:::i;:::-;8637:48;;8732:2;8721:9;8717:18;8704:32;8694:42;;8787:2;8776:9;8772:18;8759:32;-1:-1:-1;;;;;8806:6:21;8803:30;8800:50;;;8846:1;8843;8836:12;8800:50;8869:22;;8922:4;8914:13;;8910:27;-1:-1:-1;8900:55:21;;8951:1;8948;8941:12;8900:55;8974:74;9040:7;9035:2;9022:16;9017:2;9013;9009:11;8974:74;:::i;:::-;8964:84;;;8387:667;;;;;;;:::o;9059:267::-;5799:12;;-1:-1:-1;;;;;5795:38:21;5783:51;;5887:4;5876:16;;;5870:23;-1:-1:-1;;;;;5866:48:21;5850:14;;;5843:72;5978:4;5967:16;;;5961:23;5954:31;5947:39;5931:14;;;5924:63;9257:2;9242:18;;9269:51;5715:278;9331:683;9426:6;9434;9442;9495:2;9483:9;9474:7;9470:23;9466:32;9463:52;;;9511:1;9508;9501:12;9463:52;9547:9;9534:23;9524:33;;9608:2;9597:9;9593:18;9580:32;-1:-1:-1;;;;;9672:2:21;9664:6;9661:14;9658:34;;;9688:1;9685;9678:12;9658:34;9726:6;9715:9;9711:22;9701:32;;9771:7;9764:4;9760:2;9756:13;9752:27;9742:55;;9793:1;9790;9783:12;9742:55;9833:2;9820:16;9859:2;9851:6;9848:14;9845:34;;;9875:1;9872;9865:12;9845:34;9928:7;9923:2;9913:6;9910:1;9906:14;9902:2;9898:23;9894:32;9891:45;9888:65;;;9949:1;9946;9939:12;9888:65;9980:2;9976;9972:11;9962:21;;10002:6;9992:16;;;;;9331:683;;;;;:::o;10019:260::-;10087:6;10095;10148:2;10136:9;10127:7;10123:23;10119:32;10116:52;;;10164:1;10161;10154:12;10116:52;10187:29;10206:9;10187:29;:::i;:::-;10177:39;;10235:38;10269:2;10258:9;10254:18;10235:38;:::i;:::-;10225:48;;10019:260;;;;;:::o;10284:254::-;10352:6;10360;10413:2;10401:9;10392:7;10388:23;10384:32;10381:52;;;10429:1;10426;10419:12;10381:52;10465:9;10452:23;10442:33;;10494:38;10528:2;10517:9;10513:18;10494:38;:::i;10543:380::-;10622:1;10618:12;;;;10665;;;10686:61;;10740:4;10732:6;10728:17;10718:27;;10686:61;10793:2;10785:6;10782:14;10762:18;10759:38;10756:161;;10839:10;10834:3;10830:20;10827:1;10820:31;10874:4;10871:1;10864:15;10902:4;10899:1;10892:15;10756:161;;10543:380;;;:::o;11054:545::-;11156:2;11151:3;11148:11;11145:448;;;11192:1;11217:5;11213:2;11206:17;11262:4;11258:2;11248:19;11332:2;11320:10;11316:19;11313:1;11309:27;11303:4;11299:38;11368:4;11356:10;11353:20;11350:47;;;-1:-1:-1;11391:4:21;11350:47;11446:2;11441:3;11437:12;11434:1;11430:20;11424:4;11420:31;11410:41;;11501:82;11519:2;11512:5;11509:13;11501:82;;;11564:17;;;11545:1;11534:13;11501:82;;11775:1352;11901:3;11895:10;-1:-1:-1;;;;;11920:6:21;11917:30;11914:56;;;11950:18;;:::i;:::-;11979:97;12069:6;12029:38;12061:4;12055:11;12029:38;:::i;:::-;12023:4;11979:97;:::i;:::-;12131:4;;12195:2;12184:14;;12212:1;12207:663;;;;12914:1;12931:6;12928:89;;;-1:-1:-1;12983:19:21;;;12977:26;12928:89;-1:-1:-1;;11732:1:21;11728:11;;;11724:24;11720:29;11710:40;11756:1;11752:11;;;11707:57;13030:81;;12177:944;;12207:663;11001:1;10994:14;;;11038:4;11025:18;;-1:-1:-1;;12243:20:21;;;12361:236;12375:7;12372:1;12369:14;12361:236;;;12464:19;;;12458:26;12443:42;;12556:27;;;;12524:1;12512:14;;;;12391:19;;12361:236;;;12365:3;12625:6;12616:7;12613:19;12610:201;;;12686:19;;;12680:26;-1:-1:-1;;12769:1:21;12765:14;;;12781:3;12761:24;12757:37;12753:42;12738:58;12723:74;;12610:201;-1:-1:-1;;;;;12857:1:21;12841:14;;;12837:22;12824:36;;-1:-1:-1;11775:1352:21:o;13342:127::-;13403:10;13398:3;13394:20;13391:1;13384:31;13434:4;13431:1;13424:15;13458:4;13455:1;13448:15;13474:344;13676:2;13658:21;;;13715:2;13695:18;;;13688:30;-1:-1:-1;;;13749:2:21;13734:18;;13727:50;13809:2;13794:18;;13474:344::o;13823:127::-;13884:10;13879:3;13875:20;13872:1;13865:31;13915:4;13912:1;13905:15;13939:4;13936:1;13929:15;13955:125;14020:9;;;14041:10;;;14038:36;;;14054:18;;:::i;14085:344::-;14287:2;14269:21;;;14326:2;14306:18;;;14299:30;-1:-1:-1;;;14360:2:21;14345:18;;14338:50;14420:2;14405:18;;14085:344::o;14434:168::-;14507:9;;;14538;;14555:15;;;14549:22;;14535:37;14525:71;;14576:18;;:::i;15723:1256::-;15947:3;15985:6;15979:13;16011:4;16024:64;16081:6;16076:3;16071:2;16063:6;16059:15;16024:64;:::i;:::-;16151:13;;16110:16;;;;16173:68;16151:13;16110:16;16208:15;;;16173:68;:::i;:::-;16330:13;;16263:20;;;16303:1;;16368:36;16330:13;16368:36;:::i;:::-;16423:1;16440:18;;;16467:141;;;;16622:1;16617:337;;;;16433:521;;16467:141;-1:-1:-1;;16502:24:21;;16488:39;;16579:16;;16572:24;16558:39;;16547:51;;;-1:-1:-1;16467:141:21;;16617:337;16648:6;16645:1;16638:17;16696:2;16693:1;16683:16;16721:1;16735:169;16749:8;16746:1;16743:15;16735:169;;;16831:14;;16816:13;;;16809:37;16874:16;;;;16766:10;;16735:169;;;16739:3;;16935:8;16928:5;16924:20;16917:27;;16433:521;-1:-1:-1;16970:3:21;;15723:1256;-1:-1:-1;;;;;;;;;;15723:1256:21:o;19394:245::-;19461:6;19514:2;19502:9;19493:7;19489:23;19485:32;19482:52;;;19530:1;19527;19520:12;19482:52;19562:9;19556:16;19581:28;19603:5;19581:28;:::i;20136:489::-;-1:-1:-1;;;;;20405:15:21;;;20387:34;;20457:15;;20452:2;20437:18;;20430:43;20504:2;20489:18;;20482:34;;;20552:3;20547:2;20532:18;;20525:31;;;20330:4;;20573:46;;20599:19;;20591:6;20573:46;:::i;:::-;20565:54;20136:489;-1:-1:-1;;;;;;20136:489:21:o;20630:249::-;20699:6;20752:2;20740:9;20731:7;20727:23;20723:32;20720:52;;;20768:1;20765;20758:12;20720:52;20800:9;20794:16;20819:30;20843:5;20819:30;:::i;20884:135::-;20923:3;20944:17;;;20941:43;;20964:18;;:::i;:::-;-1:-1:-1;21011:1:21;21000:13;;20884:135::o
Swarm Source
ipfs://350d84c4131b3df00ae9588b67b2504c5d48456fc1de4845e00e8855ba81004c
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.