Feature Tip: Add private address tag to any address under My Name Tag !
Overview
TokenID
212
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Cryptodphucks
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-11-30 */ // SPDX-License-Identifier: MIT // File: operator-filter-registry/src/IOperatorFilterRegistry.sol /** _ _ / `_ _ _/__ / | _ /_ _ /_ _ /_,//_//_// /_/ /_.'/_// //_// //\_\ _// / */ pragma solidity ^0.8.13; interface IOperatorFilterRegistry { function isOperatorAllowed(address registrant, address operator) external view returns (bool); function register(address registrant) external; function registerAndSubscribe(address registrant, address subscription) external; function registerAndCopyEntries(address registrant, address registrantToCopy) external; function updateOperator(address registrant, address operator, bool filtered) external; function updateOperators(address registrant, address[] calldata operators, bool filtered) external; function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; function subscribe(address registrant, address registrantToSubscribe) external; function unsubscribe(address registrant, bool copyExistingEntries) external; function subscriptionOf(address addr) external returns (address registrant); function subscribers(address registrant) external returns (address[] memory); function subscriberAt(address registrant, uint256 index) external returns (address); function copyEntriesOf(address registrant, address registrantToCopy) external; function isOperatorFiltered(address registrant, address operator) external returns (bool); function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); function filteredOperators(address addr) external returns (address[] memory); function filteredCodeHashes(address addr) external returns (bytes32[] memory); function filteredOperatorAt(address registrant, uint256 index) external returns (address); function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); function isRegistered(address addr) external returns (bool); function codeHashOf(address addr) external returns (bytes32); } // File: operator-filter-registry/src/OperatorFilterer.sol pragma solidity ^0.8.13; abstract contract OperatorFilterer { error OperatorNotAllowed(address operator); IOperatorFilterRegistry constant operatorFilterRegistry = IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E); 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(operatorFilterRegistry).code.length > 0) { if (subscribe) { operatorFilterRegistry.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { operatorFilterRegistry.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { operatorFilterRegistry.register(address(this)); } } } } modifier onlyAllowedOperator(address from) virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(operatorFilterRegistry).code.length > 0) { // 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) { _; return; } if ( !( operatorFilterRegistry.isOperatorAllowed(address(this), msg.sender) && operatorFilterRegistry.isOperatorAllowed(address(this), from) ) ) { revert OperatorNotAllowed(msg.sender); } } _; } } // File: @openzeppelin/contracts/security/ReentrancyGuard.sol // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } // File: @openzeppelin/contracts/utils/cryptography/MerkleProof.sol // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } } // File: @openzeppelin/contracts/utils/Context.sol // 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; } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @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); } } // File: erc721a/contracts/IERC721A.sol // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); } // File: erc721a/contracts/ERC721A.sol // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } } pragma solidity ^0.8.13; contract Cryptodphucks is ERC721A, Ownable, ReentrancyGuard, OperatorFilterer { using Strings for uint256; uint256 constant maxSupply = 2222; uint256 constant Ownermint = 1; uint256 constant maxPerAddress = 100; uint256 constant maxMintTx = 5; uint256 public cost = 0.002 ether; address private constant OSlist = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6; bytes32 private merkleRoot; mapping(address => bool) public mintClaimed; bool public whitelistMintEnabled = true; bool public paused = false; string private uriPrefix = ''; string private uriSuffix = '.json'; constructor(string memory baseURI) ERC721A("Crypto Dphucks", "CDPK") OperatorFilterer(address(OSlist), false) { setUriPrefix(baseURI); _safeMint(_msgSender(), Ownermint); } modifier callerIsUser() { require(tx.origin == msg.sender, "The caller is another contract"); _; } function mint(uint256 _mintAmount, bytes32[] calldata _merkleProof) public payable nonReentrant{ require(!paused, 'The contract is paused!'); require(_mintAmount > 0 && _mintAmount <= maxMintTx, 'Invalid mint amount!'); require(totalSupply() + _mintAmount <= (maxSupply), 'Max supply exceeded!'); require(msg.value == cost * _mintAmount, 'Insufficient funds!'); if (whitelistMintEnabled){ bytes32 leaf = keccak256(abi.encodePacked(_msgSender())); require(MerkleProof.verify(_merkleProof, merkleRoot, leaf), 'Invalid proof!'); require(!mintClaimed[_msgSender()], 'Address already claimed!'); require(_mintAmount == 1, 'Whitelist can only mint one'); mintClaimed[_msgSender()] = true; } _safeMint(_msgSender(), _mintAmount); } function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { require(_exists(_tokenId), 'ERC721Metadata: URI query for nonexistent token'); string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, _tokenId.toString(), uriSuffix)) : ''; } function setPaused() public onlyOwner { paused = !paused; } function setMintStates(bool stateWhitelist) public onlyOwner { whitelistMintEnabled = stateWhitelist; } function setCost(uint256 _cost) public onlyOwner { cost = _cost; } function setUriPrefix(string memory _uriPrefix) public onlyOwner { uriPrefix = _uriPrefix; } function setMerkleRoot(bytes32 _merkleRoot) public onlyOwner { merkleRoot = _merkleRoot; } function withdraw() external onlyOwner{ payable(msg.sender).transfer(address(this).balance); } // Internal -> function _startTokenId() internal view virtual override returns (uint256) { return 1; } function _baseURI() internal view virtual override returns (string memory) { return uriPrefix; } function transferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public payable override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"stateWhitelist","type":"bool"}],"name":"setMintStates","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriPrefix","type":"string"}],"name":"setUriPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistMintEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
66071afd498d0000600a55600d805461ffff1916600117905560a060405260006080908152600e906200003390826200066a565b50604080518082019091526005815264173539b7b760d91b6020820152600f906200005f90826200066a565b503480156200006d57600080fd5b50604051620028643803806200286483398101604081905262000090916200075c565b733cc6cdda760b79bafa08df41ecfa224f810dceb660006040518060400160405280600e81526020016d43727970746f2044706875636b7360901b815250604051806040016040528060048152602001634344504b60e01b8152508160029081620000fc91906200066a565b5060036200010b82826200066a565b50506001600055506200011e336200028a565b60016009556daaeb6d7670e522a718067333cd4e3b1562000268578015620001b657604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200019757600080fd5b505af1158015620001ac573d6000803e3d6000fd5b5050505062000268565b6001600160a01b03821615620002075760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af2903906044016200017c565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200024e57600080fd5b505af115801562000263573d6000803e3d6000fd5b505050505b5062000276905081620002dc565b62000283336001620002f8565b506200089d565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620002e66200031a565b600e620002f482826200066a565b5050565b620002f48282604051806020016040528060008152506200037b60201b60201c565b6008546001600160a01b03163314620003795760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b565b620003878383620003f2565b6001600160a01b0383163b15620003ed576000548281035b6001810190620003b590600090879086620004d2565b620003d3576040516368d2bf6b60e11b815260040160405180910390fd5b8181106200039f578160005414620003ea57600080fd5b50505b505050565b6000805490829003620004185760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b17831790558284019083908390600080516020620028448339815191528180a4600183015b818114620004a7578083600060008051602062002844833981519152600080a46001016200047e565b5081600003620004c957604051622e076360e81b815260040160405180910390fd5b60005550505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906200050990339089908890889060040162000814565b6020604051808303816000875af192505050801562000547575060408051601f3d908101601f1916820190925262000544918101906200086a565b60015b620005a9573d80801562000578576040519150601f19603f3d011682016040523d82523d6000602084013e6200057d565b606091505b508051600003620005a1576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620005f157607f821691505b6020821081036200061257634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620003ed57600081815260208120601f850160051c81016020861015620006415750805b601f850160051c820191505b8181101562000662578281556001016200064d565b505050505050565b81516001600160401b03811115620006865762000686620005c6565b6200069e81620006978454620005dc565b8462000618565b602080601f831160018114620006d65760008415620006bd5750858301515b600019600386901b1c1916600185901b17855562000662565b600085815260208120601f198616915b828110156200070757888601518255948401946001909101908401620006e6565b5085821015620007265787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60005b838110156200075357818101518382015260200162000739565b50506000910152565b6000602082840312156200076f57600080fd5b81516001600160401b03808211156200078757600080fd5b818401915084601f8301126200079c57600080fd5b815181811115620007b157620007b1620005c6565b604051601f8201601f19908116603f01168101908382118183101715620007dc57620007dc620005c6565b81604052828152876020848701011115620007f657600080fd5b6200080983602083016020880162000736565b979650505050505050565b600060018060a01b038087168352808616602084015250836040830152608060608301528251806080840152620008538160a085016020870162000736565b601f01601f19169190910160a00195945050505050565b6000602082840312156200087d57600080fd5b81516001600160e01b0319811681146200089657600080fd5b9392505050565b611f9780620008ad6000396000f3fe6080604052600436106101b75760003560e01c80636caede3d116100ec578063a22cb4651161008a578063c87b56dd11610064578063c87b56dd14610488578063e20a91ac146104a8578063e985e9c5146104c8578063f2fde38b146104e857600080fd5b8063a22cb46514610442578063b88d4fde14610462578063ba41b0c61461047557600080fd5b80637cb64759116100c65780637cb64759146103cf5780637ec4a659146103ef5780638da5cb5b1461040f57806395d89b411461042d57600080fd5b80636caede3d1461038057806370a082311461039a578063715018a6146103ba57600080fd5b806323b872dd1161015957806342842e0e1161013357806342842e0e1461030e57806344a0d68a146103215780635c975abb146103415780636352211e1461036057600080fd5b806323b872dd146102d157806337a66d85146102e45780633ccfd60b146102f957600080fd5b8063095ea7b311610195578063095ea7b31461024b5780631237e5e81461026057806313faede61461029057806318160ddd146102b457600080fd5b806301ffc9a7146101bc57806306fdde03146101f1578063081812fc14610213575b600080fd5b3480156101c857600080fd5b506101dc6101d73660046118af565b610508565b60405190151581526020015b60405180910390f35b3480156101fd57600080fd5b5061020661055a565b6040516101e8919061191c565b34801561021f57600080fd5b5061023361022e36600461192f565b6105ec565b6040516001600160a01b0390911681526020016101e8565b61025e610259366004611964565b610630565b005b34801561026c57600080fd5b506101dc61027b36600461198e565b600c6020526000908152604090205460ff1681565b34801561029c57600080fd5b506102a6600a5481565b6040519081526020016101e8565b3480156102c057600080fd5b5060015460005403600019016102a6565b61025e6102df3660046119a9565b6106d0565b3480156102f057600080fd5b5061025e610831565b34801561030557600080fd5b5061025e610856565b61025e61031c3660046119a9565b61088d565b34801561032d57600080fd5b5061025e61033c36600461192f565b6109de565b34801561034d57600080fd5b50600d546101dc90610100900460ff1681565b34801561036c57600080fd5b5061023361037b36600461192f565b6109eb565b34801561038c57600080fd5b50600d546101dc9060ff1681565b3480156103a657600080fd5b506102a66103b536600461198e565b6109f6565b3480156103c657600080fd5b5061025e610a45565b3480156103db57600080fd5b5061025e6103ea36600461192f565b610a59565b3480156103fb57600080fd5b5061025e61040a366004611a71565b610a66565b34801561041b57600080fd5b506008546001600160a01b0316610233565b34801561043957600080fd5b50610206610a7e565b34801561044e57600080fd5b5061025e61045d366004611ac8565b610a8d565b61025e610470366004611aff565b610af9565b61025e610483366004611b7b565b610c58565b34801561049457600080fd5b506102066104a336600461192f565b610faf565b3480156104b457600080fd5b5061025e6104c3366004611bfa565b61107d565b3480156104d457600080fd5b506101dc6104e3366004611c17565b611098565b3480156104f457600080fd5b5061025e61050336600461198e565b6110c6565b60006301ffc9a760e01b6001600160e01b03198316148061053957506380ac58cd60e01b6001600160e01b03198316145b806105545750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461056990611c4a565b80601f016020809104026020016040519081016040528092919081815260200182805461059590611c4a565b80156105e25780601f106105b7576101008083540402835291602001916105e2565b820191906000526020600020905b8154815290600101906020018083116105c557829003601f168201915b5050505050905090565b60006105f78261113c565b610614576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061063b826109eb565b9050336001600160a01b03821614610674576106578133611098565b610674576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b826daaeb6d7670e522a718067333cd4e3b1561082057336001600160a01b0382160361070657610701848484611171565b61082b565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610755573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107799190611c84565b80156107fc5750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156107d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107fc9190611c84565b61082057604051633b79c77360e21b81523360048201526024015b60405180910390fd5b61082b848484611171565b50505050565b61083961130a565b600d805461ff001981166101009182900460ff1615909102179055565b61085e61130a565b60405133904780156108fc02916000818181858888f1935050505015801561088a573d6000803e3d6000fd5b50565b826daaeb6d7670e522a718067333cd4e3b156109d357336001600160a01b038216036108be57610701848484611364565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561090d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109319190611c84565b80156109b45750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610990573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109b49190611c84565b6109d357604051633b79c77360e21b8152336004820152602401610817565b61082b848484611364565b6109e661130a565b600a55565b600061055482611384565b60006001600160a01b038216610a1f576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610a4d61130a565b610a5760006113f3565b565b610a6161130a565b600b55565b610a6e61130a565b600e610a7a8282611ce7565b5050565b60606003805461056990611c4a565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b836daaeb6d7670e522a718067333cd4e3b15610c4557336001600160a01b03821603610b3057610b2b85858585611445565b610c51565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610b7f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ba39190611c84565b8015610c265750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610c02573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c269190611c84565b610c4557604051633b79c77360e21b8152336004820152602401610817565b610c5185858585611445565b5050505050565b600260095403610caa5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610817565b6002600955600d54610100900460ff1615610d075760405162461bcd60e51b815260206004820152601760248201527f54686520636f6e747261637420697320706175736564210000000000000000006044820152606401610817565b600083118015610d18575060058311155b610d5b5760405162461bcd60e51b8152602060048201526014602482015273496e76616c6964206d696e7420616d6f756e742160601b6044820152606401610817565b6001546000546108ae9185910360001901610d769190611dbd565b1115610dbb5760405162461bcd60e51b81526020600482015260146024820152734d617820737570706c792065786365656465642160601b6044820152606401610817565b82600a54610dc99190611dd0565b3414610e0d5760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e742066756e64732160681b6044820152606401610817565b600d5460ff1615610f9b576040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050610e9283838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600b549150849050611489565b610ecf5760405162461bcd60e51b815260206004820152600e60248201526d496e76616c69642070726f6f662160901b6044820152606401610817565b336000908152600c602052604090205460ff1615610f2f5760405162461bcd60e51b815260206004820152601860248201527f4164647265737320616c726561647920636c61696d65642100000000000000006044820152606401610817565b83600114610f7f5760405162461bcd60e51b815260206004820152601b60248201527f57686974656c6973742063616e206f6e6c79206d696e74206f6e6500000000006044820152606401610817565b50336000908152600c60205260409020805460ff191660011790555b610fa5338461149f565b5050600160095550565b6060610fba8261113c565b61101e5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610817565b60006110286114b9565b905060008151116110485760405180602001604052806000815250611076565b80611052846114c8565b600f60405160200161106693929190611de7565b6040516020818303038152906040525b9392505050565b61108561130a565b600d805460ff1916911515919091179055565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6110ce61130a565b6001600160a01b0381166111335760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610817565b61088a816113f3565b600081600111158015611150575060005482105b8015610554575050600090815260046020526040902054600160e01b161590565b600061117c82611384565b9050836001600160a01b0316816001600160a01b0316146111af5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b038816909114176111fc576111df8633611098565b6111fc57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661122357604051633a954ecd60e21b815260040160405180910390fd5b801561122e57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b841690036112c0576001840160008181526004602052604081205490036112be5760005481146112be5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6008546001600160a01b03163314610a575760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610817565b61137f83838360405180602001604052806000815250610af9565b505050565b600081806001116113da576000548110156113da5760008181526004602052604081205490600160e01b821690036113d8575b806000036110765750600019016000818152600460205260409020546113b7565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6114508484846106d0565b6001600160a01b0383163b1561082b5761146c848484846115d1565b61082b576040516368d2bf6b60e11b815260040160405180910390fd5b60008261149685846116bc565b14949350505050565b610a7a828260405180602001604052806000815250611709565b6060600e805461056990611c4a565b6060816000036114ef5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611519578061150381611e87565b91506115129050600a83611eb6565b91506114f3565b60008167ffffffffffffffff811115611534576115346119e5565b6040519080825280601f01601f19166020018201604052801561155e576020820181803683370190505b5090505b84156115c957611573600183611eca565b9150611580600a86611edd565b61158b906030611dbd565b60f81b8183815181106115a0576115a0611ef1565b60200101906001600160f81b031916908160001a9053506115c2600a86611eb6565b9450611562565b949350505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611606903390899088908890600401611f07565b6020604051808303816000875af1925050508015611641575060408051601f3d908101601f1916820190925261163e91810190611f44565b60015b61169f573d80801561166f576040519150601f19603f3d011682016040523d82523d6000602084013e611674565b606091505b508051600003611697576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b600081815b8451811015611701576116ed828683815181106116e0576116e0611ef1565b602002602001015161176f565b9150806116f981611e87565b9150506116c1565b509392505050565b611713838361179b565b6001600160a01b0383163b1561137f576000548281035b61173d60008683806001019450866115d1565b61175a576040516368d2bf6b60e11b815260040160405180910390fd5b81811061172a578160005414610c5157600080fd5b600081831061178b576000828152602084905260409020611076565b5060009182526020526040902090565b60008054908290036117c05760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461186f57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101611837565b508160000361189057604051622e076360e81b815260040160405180910390fd5b60005550505050565b6001600160e01b03198116811461088a57600080fd5b6000602082840312156118c157600080fd5b813561107681611899565b60005b838110156118e75781810151838201526020016118cf565b50506000910152565b600081518084526119088160208601602086016118cc565b601f01601f19169290920160200192915050565b60208152600061107660208301846118f0565b60006020828403121561194157600080fd5b5035919050565b80356001600160a01b038116811461195f57600080fd5b919050565b6000806040838503121561197757600080fd5b61198083611948565b946020939093013593505050565b6000602082840312156119a057600080fd5b61107682611948565b6000806000606084860312156119be57600080fd5b6119c784611948565b92506119d560208501611948565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611a1657611a166119e5565b604051601f8501601f19908116603f01168101908282118183101715611a3e57611a3e6119e5565b81604052809350858152868686011115611a5757600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611a8357600080fd5b813567ffffffffffffffff811115611a9a57600080fd5b8201601f81018413611aab57600080fd5b6115c9848235602084016119fb565b801515811461088a57600080fd5b60008060408385031215611adb57600080fd5b611ae483611948565b91506020830135611af481611aba565b809150509250929050565b60008060008060808587031215611b1557600080fd5b611b1e85611948565b9350611b2c60208601611948565b925060408501359150606085013567ffffffffffffffff811115611b4f57600080fd5b8501601f81018713611b6057600080fd5b611b6f878235602084016119fb565b91505092959194509250565b600080600060408486031215611b9057600080fd5b83359250602084013567ffffffffffffffff80821115611baf57600080fd5b818601915086601f830112611bc357600080fd5b813581811115611bd257600080fd5b8760208260051b8501011115611be757600080fd5b6020830194508093505050509250925092565b600060208284031215611c0c57600080fd5b813561107681611aba565b60008060408385031215611c2a57600080fd5b611c3383611948565b9150611c4160208401611948565b90509250929050565b600181811c90821680611c5e57607f821691505b602082108103611c7e57634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215611c9657600080fd5b815161107681611aba565b601f82111561137f57600081815260208120601f850160051c81016020861015611cc85750805b601f850160051c820191505b8181101561130257828155600101611cd4565b815167ffffffffffffffff811115611d0157611d016119e5565b611d1581611d0f8454611c4a565b84611ca1565b602080601f831160018114611d4a5760008415611d325750858301515b600019600386901b1c1916600185901b178555611302565b600085815260208120601f198616915b82811015611d7957888601518255948401946001909101908401611d5a565b5085821015611d975787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b8082018082111561055457610554611da7565b808202811582820484141761055457610554611da7565b600084516020611dfa8285838a016118cc565b855191840191611e0d8184848a016118cc565b8554920191600090611e1e81611c4a565b60018281168015611e365760018114611e4b57611e77565b60ff1984168752821515830287019450611e77565b896000528560002060005b84811015611e6f57815489820152908301908701611e56565b505082870194505b50929a9950505050505050505050565b600060018201611e9957611e99611da7565b5060010190565b634e487b7160e01b600052601260045260246000fd5b600082611ec557611ec5611ea0565b500490565b8181038181111561055457610554611da7565b600082611eec57611eec611ea0565b500690565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611f3a908301846118f0565b9695505050505050565b600060208284031215611f5657600080fd5b81516110768161189956fea264697066735822122092bd1e19fc4f9e86167e57859c252eb26272f4a240288e97a627f898c8e2aa2664736f6c63430008110033ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d6371486f446e5a744a4b36487764434547483269546257336a4b3250674d4b6167364c556e41686d754368662f00000000000000000000
Deployed Bytecode
0x6080604052600436106101b75760003560e01c80636caede3d116100ec578063a22cb4651161008a578063c87b56dd11610064578063c87b56dd14610488578063e20a91ac146104a8578063e985e9c5146104c8578063f2fde38b146104e857600080fd5b8063a22cb46514610442578063b88d4fde14610462578063ba41b0c61461047557600080fd5b80637cb64759116100c65780637cb64759146103cf5780637ec4a659146103ef5780638da5cb5b1461040f57806395d89b411461042d57600080fd5b80636caede3d1461038057806370a082311461039a578063715018a6146103ba57600080fd5b806323b872dd1161015957806342842e0e1161013357806342842e0e1461030e57806344a0d68a146103215780635c975abb146103415780636352211e1461036057600080fd5b806323b872dd146102d157806337a66d85146102e45780633ccfd60b146102f957600080fd5b8063095ea7b311610195578063095ea7b31461024b5780631237e5e81461026057806313faede61461029057806318160ddd146102b457600080fd5b806301ffc9a7146101bc57806306fdde03146101f1578063081812fc14610213575b600080fd5b3480156101c857600080fd5b506101dc6101d73660046118af565b610508565b60405190151581526020015b60405180910390f35b3480156101fd57600080fd5b5061020661055a565b6040516101e8919061191c565b34801561021f57600080fd5b5061023361022e36600461192f565b6105ec565b6040516001600160a01b0390911681526020016101e8565b61025e610259366004611964565b610630565b005b34801561026c57600080fd5b506101dc61027b36600461198e565b600c6020526000908152604090205460ff1681565b34801561029c57600080fd5b506102a6600a5481565b6040519081526020016101e8565b3480156102c057600080fd5b5060015460005403600019016102a6565b61025e6102df3660046119a9565b6106d0565b3480156102f057600080fd5b5061025e610831565b34801561030557600080fd5b5061025e610856565b61025e61031c3660046119a9565b61088d565b34801561032d57600080fd5b5061025e61033c36600461192f565b6109de565b34801561034d57600080fd5b50600d546101dc90610100900460ff1681565b34801561036c57600080fd5b5061023361037b36600461192f565b6109eb565b34801561038c57600080fd5b50600d546101dc9060ff1681565b3480156103a657600080fd5b506102a66103b536600461198e565b6109f6565b3480156103c657600080fd5b5061025e610a45565b3480156103db57600080fd5b5061025e6103ea36600461192f565b610a59565b3480156103fb57600080fd5b5061025e61040a366004611a71565b610a66565b34801561041b57600080fd5b506008546001600160a01b0316610233565b34801561043957600080fd5b50610206610a7e565b34801561044e57600080fd5b5061025e61045d366004611ac8565b610a8d565b61025e610470366004611aff565b610af9565b61025e610483366004611b7b565b610c58565b34801561049457600080fd5b506102066104a336600461192f565b610faf565b3480156104b457600080fd5b5061025e6104c3366004611bfa565b61107d565b3480156104d457600080fd5b506101dc6104e3366004611c17565b611098565b3480156104f457600080fd5b5061025e61050336600461198e565b6110c6565b60006301ffc9a760e01b6001600160e01b03198316148061053957506380ac58cd60e01b6001600160e01b03198316145b806105545750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461056990611c4a565b80601f016020809104026020016040519081016040528092919081815260200182805461059590611c4a565b80156105e25780601f106105b7576101008083540402835291602001916105e2565b820191906000526020600020905b8154815290600101906020018083116105c557829003601f168201915b5050505050905090565b60006105f78261113c565b610614576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061063b826109eb565b9050336001600160a01b03821614610674576106578133611098565b610674576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b826daaeb6d7670e522a718067333cd4e3b1561082057336001600160a01b0382160361070657610701848484611171565b61082b565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610755573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107799190611c84565b80156107fc5750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156107d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107fc9190611c84565b61082057604051633b79c77360e21b81523360048201526024015b60405180910390fd5b61082b848484611171565b50505050565b61083961130a565b600d805461ff001981166101009182900460ff1615909102179055565b61085e61130a565b60405133904780156108fc02916000818181858888f1935050505015801561088a573d6000803e3d6000fd5b50565b826daaeb6d7670e522a718067333cd4e3b156109d357336001600160a01b038216036108be57610701848484611364565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561090d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109319190611c84565b80156109b45750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610990573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109b49190611c84565b6109d357604051633b79c77360e21b8152336004820152602401610817565b61082b848484611364565b6109e661130a565b600a55565b600061055482611384565b60006001600160a01b038216610a1f576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610a4d61130a565b610a5760006113f3565b565b610a6161130a565b600b55565b610a6e61130a565b600e610a7a8282611ce7565b5050565b60606003805461056990611c4a565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b836daaeb6d7670e522a718067333cd4e3b15610c4557336001600160a01b03821603610b3057610b2b85858585611445565b610c51565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610b7f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ba39190611c84565b8015610c265750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610c02573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c269190611c84565b610c4557604051633b79c77360e21b8152336004820152602401610817565b610c5185858585611445565b5050505050565b600260095403610caa5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610817565b6002600955600d54610100900460ff1615610d075760405162461bcd60e51b815260206004820152601760248201527f54686520636f6e747261637420697320706175736564210000000000000000006044820152606401610817565b600083118015610d18575060058311155b610d5b5760405162461bcd60e51b8152602060048201526014602482015273496e76616c6964206d696e7420616d6f756e742160601b6044820152606401610817565b6001546000546108ae9185910360001901610d769190611dbd565b1115610dbb5760405162461bcd60e51b81526020600482015260146024820152734d617820737570706c792065786365656465642160601b6044820152606401610817565b82600a54610dc99190611dd0565b3414610e0d5760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e742066756e64732160681b6044820152606401610817565b600d5460ff1615610f9b576040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050610e9283838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600b549150849050611489565b610ecf5760405162461bcd60e51b815260206004820152600e60248201526d496e76616c69642070726f6f662160901b6044820152606401610817565b336000908152600c602052604090205460ff1615610f2f5760405162461bcd60e51b815260206004820152601860248201527f4164647265737320616c726561647920636c61696d65642100000000000000006044820152606401610817565b83600114610f7f5760405162461bcd60e51b815260206004820152601b60248201527f57686974656c6973742063616e206f6e6c79206d696e74206f6e6500000000006044820152606401610817565b50336000908152600c60205260409020805460ff191660011790555b610fa5338461149f565b5050600160095550565b6060610fba8261113c565b61101e5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610817565b60006110286114b9565b905060008151116110485760405180602001604052806000815250611076565b80611052846114c8565b600f60405160200161106693929190611de7565b6040516020818303038152906040525b9392505050565b61108561130a565b600d805460ff1916911515919091179055565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6110ce61130a565b6001600160a01b0381166111335760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610817565b61088a816113f3565b600081600111158015611150575060005482105b8015610554575050600090815260046020526040902054600160e01b161590565b600061117c82611384565b9050836001600160a01b0316816001600160a01b0316146111af5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b038816909114176111fc576111df8633611098565b6111fc57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661122357604051633a954ecd60e21b815260040160405180910390fd5b801561122e57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b841690036112c0576001840160008181526004602052604081205490036112be5760005481146112be5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6008546001600160a01b03163314610a575760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610817565b61137f83838360405180602001604052806000815250610af9565b505050565b600081806001116113da576000548110156113da5760008181526004602052604081205490600160e01b821690036113d8575b806000036110765750600019016000818152600460205260409020546113b7565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6114508484846106d0565b6001600160a01b0383163b1561082b5761146c848484846115d1565b61082b576040516368d2bf6b60e11b815260040160405180910390fd5b60008261149685846116bc565b14949350505050565b610a7a828260405180602001604052806000815250611709565b6060600e805461056990611c4a565b6060816000036114ef5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611519578061150381611e87565b91506115129050600a83611eb6565b91506114f3565b60008167ffffffffffffffff811115611534576115346119e5565b6040519080825280601f01601f19166020018201604052801561155e576020820181803683370190505b5090505b84156115c957611573600183611eca565b9150611580600a86611edd565b61158b906030611dbd565b60f81b8183815181106115a0576115a0611ef1565b60200101906001600160f81b031916908160001a9053506115c2600a86611eb6565b9450611562565b949350505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611606903390899088908890600401611f07565b6020604051808303816000875af1925050508015611641575060408051601f3d908101601f1916820190925261163e91810190611f44565b60015b61169f573d80801561166f576040519150601f19603f3d011682016040523d82523d6000602084013e611674565b606091505b508051600003611697576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b600081815b8451811015611701576116ed828683815181106116e0576116e0611ef1565b602002602001015161176f565b9150806116f981611e87565b9150506116c1565b509392505050565b611713838361179b565b6001600160a01b0383163b1561137f576000548281035b61173d60008683806001019450866115d1565b61175a576040516368d2bf6b60e11b815260040160405180910390fd5b81811061172a578160005414610c5157600080fd5b600081831061178b576000828152602084905260409020611076565b5060009182526020526040902090565b60008054908290036117c05760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461186f57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101611837565b508160000361189057604051622e076360e81b815260040160405180910390fd5b60005550505050565b6001600160e01b03198116811461088a57600080fd5b6000602082840312156118c157600080fd5b813561107681611899565b60005b838110156118e75781810151838201526020016118cf565b50506000910152565b600081518084526119088160208601602086016118cc565b601f01601f19169290920160200192915050565b60208152600061107660208301846118f0565b60006020828403121561194157600080fd5b5035919050565b80356001600160a01b038116811461195f57600080fd5b919050565b6000806040838503121561197757600080fd5b61198083611948565b946020939093013593505050565b6000602082840312156119a057600080fd5b61107682611948565b6000806000606084860312156119be57600080fd5b6119c784611948565b92506119d560208501611948565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611a1657611a166119e5565b604051601f8501601f19908116603f01168101908282118183101715611a3e57611a3e6119e5565b81604052809350858152868686011115611a5757600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611a8357600080fd5b813567ffffffffffffffff811115611a9a57600080fd5b8201601f81018413611aab57600080fd5b6115c9848235602084016119fb565b801515811461088a57600080fd5b60008060408385031215611adb57600080fd5b611ae483611948565b91506020830135611af481611aba565b809150509250929050565b60008060008060808587031215611b1557600080fd5b611b1e85611948565b9350611b2c60208601611948565b925060408501359150606085013567ffffffffffffffff811115611b4f57600080fd5b8501601f81018713611b6057600080fd5b611b6f878235602084016119fb565b91505092959194509250565b600080600060408486031215611b9057600080fd5b83359250602084013567ffffffffffffffff80821115611baf57600080fd5b818601915086601f830112611bc357600080fd5b813581811115611bd257600080fd5b8760208260051b8501011115611be757600080fd5b6020830194508093505050509250925092565b600060208284031215611c0c57600080fd5b813561107681611aba565b60008060408385031215611c2a57600080fd5b611c3383611948565b9150611c4160208401611948565b90509250929050565b600181811c90821680611c5e57607f821691505b602082108103611c7e57634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215611c9657600080fd5b815161107681611aba565b601f82111561137f57600081815260208120601f850160051c81016020861015611cc85750805b601f850160051c820191505b8181101561130257828155600101611cd4565b815167ffffffffffffffff811115611d0157611d016119e5565b611d1581611d0f8454611c4a565b84611ca1565b602080601f831160018114611d4a5760008415611d325750858301515b600019600386901b1c1916600185901b178555611302565b600085815260208120601f198616915b82811015611d7957888601518255948401946001909101908401611d5a565b5085821015611d975787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b8082018082111561055457610554611da7565b808202811582820484141761055457610554611da7565b600084516020611dfa8285838a016118cc565b855191840191611e0d8184848a016118cc565b8554920191600090611e1e81611c4a565b60018281168015611e365760018114611e4b57611e77565b60ff1984168752821515830287019450611e77565b896000528560002060005b84811015611e6f57815489820152908301908701611e56565b505082870194505b50929a9950505050505050505050565b600060018201611e9957611e99611da7565b5060010190565b634e487b7160e01b600052601260045260246000fd5b600082611ec557611ec5611ea0565b500490565b8181038181111561055457610554611da7565b600082611eec57611eec611ea0565b500690565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611f3a908301846118f0565b9695505050505050565b600060208284031215611f5657600080fd5b81516110768161189956fea264697066735822122092bd1e19fc4f9e86167e57859c252eb26272f4a240288e97a627f898c8e2aa2664736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d6371486f446e5a744a4b36487764434547483269546257336a4b3250674d4b6167364c556e41686d754368662f00000000000000000000
-----Decoded View---------------
Arg [0] : baseURI (string): ipfs://QmcqHoDnZtJK6HwdCEGH2iTbW3jK2PgMKag6LUnAhmuChf/
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [2] : 697066733a2f2f516d6371486f446e5a744a4b36487764434547483269546257
Arg [3] : 336a4b3250674d4b6167364c556e41686d754368662f00000000000000000000
Deployed Bytecode Sourcemap
73540:3680:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40479:639;;;;;;;;;;-1:-1:-1;40479:639:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;40479:639:0;;;;;;;;41381:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;47872:218::-;;;;;;;;;;-1:-1:-1;47872:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:1;;;1679:51;;1667:2;1652:18;47872:218:0;1533:203:1;47305:408:0;;;;;;:::i;:::-;;:::i;:::-;;73965:43;;;;;;;;;;-1:-1:-1;73965:43:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;73813:33;;;;;;;;;;;;;;;;;;;2515:25:1;;;2503:2;2488:18;73813:33:0;2369:177:1;37132:323:0;;;;;;;;;;-1:-1:-1;76399:1:0;37406:12;37193:7;37390:13;:28;-1:-1:-1;;37390:46:0;37132:323;;76524:212;;;;;;:::i;:::-;;:::i;75705:67::-;;;;;;;;;;;;;:::i;76185:102::-;;;;;;;;;;;;;:::i;76744:220::-;;;;;;:::i;:::-;;:::i;75895:74::-;;;;;;;;;;-1:-1:-1;75895:74:0;;;;;:::i;:::-;;:::i;74066:26::-;;;;;;;;;;-1:-1:-1;74066:26:0;;;;;;;;;;;42774:152;;;;;;;;;;-1:-1:-1;42774:152:0;;;;;:::i;:::-;;:::i;74020:39::-;;;;;;;;;;-1:-1:-1;74020:39:0;;;;;;;;38316:233;;;;;;;;;;-1:-1:-1;38316:233:0;;;;;:::i;:::-;;:::i;21258:103::-;;;;;;;;;;;;;:::i;76081:98::-;;;;;;;;;;-1:-1:-1;76081:98:0;;;;;:::i;:::-;;:::i;75975:100::-;;;;;;;;;;-1:-1:-1;75975:100:0;;;;;:::i;:::-;;:::i;20610:87::-;;;;;;;;;;-1:-1:-1;20683:6:0;;-1:-1:-1;;;;;20683:6:0;20610:87;;41557:104;;;;;;;;;;;;;:::i;48430:234::-;;;;;;;;;;-1:-1:-1;48430:234:0;;;;;:::i;:::-;;:::i;76972:245::-;;;;;;:::i;:::-;;:::i;74501:821::-;;;;;;:::i;:::-;;:::i;75328:371::-;;;;;;;;;;-1:-1:-1;75328:371:0;;;;;:::i;:::-;;:::i;75778:111::-;;;;;;;;;;-1:-1:-1;75778:111:0;;;;;:::i;:::-;;:::i;48821:164::-;;;;;;;;;;-1:-1:-1;48821:164:0;;;;;:::i;:::-;;:::i;21516:201::-;;;;;;;;;;-1:-1:-1;21516:201:0;;;;;:::i;:::-;;:::i;40479:639::-;40564:4;-1:-1:-1;;;;;;;;;40888:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;40965:25:0;;;40888:102;:179;;;-1:-1:-1;;;;;;;;;;41042:25:0;;;40888:179;40868:199;40479:639;-1:-1:-1;;40479:639:0:o;41381:100::-;41435:13;41468:5;41461:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41381:100;:::o;47872:218::-;47948:7;47973:16;47981:7;47973;:16::i;:::-;47968:64;;47998:34;;-1:-1:-1;;;47998:34:0;;;;;;;;;;;47968:64;-1:-1:-1;48052:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;48052:30:0;;47872:218::o;47305:408::-;47394:13;47410:16;47418:7;47410;:16::i;:::-;47394:32;-1:-1:-1;71638:10:0;-1:-1:-1;;;;;47443:28:0;;;47439:175;;47491:44;47508:5;71638:10;48821:164;:::i;47491:44::-;47486:128;;47563:35;;-1:-1:-1;;;47563:35:0;;;;;;;;;;;47486:128;47626:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;47626:35:0;-1:-1:-1;;;;;47626:35:0;;;;;;;;;47677:28;;47626:24;;47677:28;;;;;;;47383:330;47305:408;;:::o;76524:212::-;76669:4;2644:42;3784:43;:47;3780:699;;4071:10;-1:-1:-1;;;;;4063:18:0;;;4059:85;;76691:37:::1;76710:4;76716:2;76720:7;76691:18;:37::i;:::-;4122:7:::0;;4059:85;4204:67;;-1:-1:-1;;;4204:67:0;;4253:4;4204:67;;;7205:34:1;4260:10:0;7255:18:1;;;7248:43;2644:42:0;;4204:40;;7140:18:1;;4204:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:157;;;;-1:-1:-1;4300:61:0;;-1:-1:-1;;;4300:61:0;;4349:4;4300:61;;;7205:34:1;-1:-1:-1;;;;;7275:15:1;;7255:18;;;7248:43;2644:42:0;;4300:40;;7140:18:1;;4300:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4158:310;;4422:30;;-1:-1:-1;;;4422:30:0;;4441:10;4422:30;;;1679:51:1;1652:18;;4422:30:0;;;;;;;;4158:310;76691:37:::1;76710:4;76716:2;76720:7;76691:18;:37::i;:::-;76524:212:::0;;;;:::o;75705:67::-;20496:13;:11;:13::i;:::-;75760:6:::1;::::0;;-1:-1:-1;;75750:16:0;::::1;75760:6;::::0;;;::::1;;;75759:7;75750:16:::0;;::::1;;::::0;;75705:67::o;76185:102::-;20496:13;:11;:13::i;:::-;76230:51:::1;::::0;76238:10:::1;::::0;76259:21:::1;76230:51:::0;::::1;;;::::0;::::1;::::0;;;76259:21;76238:10;76230:51;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;76185:102::o:0;76744:220::-;76893:4;2644:42;3784:43;:47;3780:699;;4071:10;-1:-1:-1;;;;;4063:18:0;;;4059:85;;76915:41:::1;76938:4;76944:2;76948:7;76915:22;:41::i;4059:85::-:0;4204:67;;-1:-1:-1;;;4204:67:0;;4253:4;4204:67;;;7205:34:1;4260:10:0;7255:18:1;;;7248:43;2644:42:0;;4204:40;;7140:18:1;;4204:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:157;;;;-1:-1:-1;4300:61:0;;-1:-1:-1;;;4300:61:0;;4349:4;4300:61;;;7205:34:1;-1:-1:-1;;;;;7275:15:1;;7255:18;;;7248:43;2644:42:0;;4300:40;;7140:18:1;;4300:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4158:310;;4422:30;;-1:-1:-1;;;4422:30:0;;4441:10;4422:30;;;1679:51:1;1652:18;;4422:30:0;1533:203:1;4158:310:0;76915:41:::1;76938:4;76944:2;76948:7;76915:22;:41::i;75895:74::-:0;20496:13;:11;:13::i;:::-;75951:4:::1;:12:::0;75895:74::o;42774:152::-;42846:7;42889:27;42908:7;42889:18;:27::i;38316:233::-;38388:7;-1:-1:-1;;;;;38412:19:0;;38408:60;;38440:28;;-1:-1:-1;;;38440:28:0;;;;;;;;;;;38408:60;-1:-1:-1;;;;;;38486:25:0;;;;;:18;:25;;;;;;32475:13;38486:55;;38316:233::o;21258:103::-;20496:13;:11;:13::i;:::-;21323:30:::1;21350:1;21323:18;:30::i;:::-;21258:103::o:0;76081:98::-;20496:13;:11;:13::i;:::-;76149:10:::1;:24:::0;76081:98::o;75975:100::-;20496:13;:11;:13::i;:::-;76047:9:::1;:22;76059:10:::0;76047:9;:22:::1;:::i;:::-;;75975:100:::0;:::o;41557:104::-;41613:13;41646:7;41639:14;;;;;:::i;48430:234::-;71638:10;48525:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;48525:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;48525:60:0;;;;;;;;;;48601:55;;540:41:1;;;48525:49:0;;71638:10;48601:55;;513:18:1;48601:55:0;;;;;;;48430:234;;:::o;76972:245::-;77140:4;2644:42;3784:43;:47;3780:699;;4071:10;-1:-1:-1;;;;;4063:18:0;;;4059:85;;77162:47:::1;77185:4;77191:2;77195:7;77204:4;77162:22;:47::i;:::-;4122:7:::0;;4059:85;4204:67;;-1:-1:-1;;;4204:67:0;;4253:4;4204:67;;;7205:34:1;4260:10:0;7255:18:1;;;7248:43;2644:42:0;;4204:40;;7140:18:1;;4204:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:157;;;;-1:-1:-1;4300:61:0;;-1:-1:-1;;;4300:61:0;;4349:4;4300:61;;;7205:34:1;-1:-1:-1;;;;;7275:15:1;;7255:18;;;7248:43;2644:42:0;;4300:40;;7140:18:1;;4300:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4158:310;;4422:30;;-1:-1:-1;;;4422:30:0;;4441:10;4422:30;;;1679:51:1;1652:18;;4422:30:0;1533:203:1;4158:310:0;77162:47:::1;77185:4;77191:2;77195:7;77204:4;77162:22;:47::i;:::-;76972:245:::0;;;;;:::o;74501:821::-;6311:1;6909:7;;:19;6901:63;;;;-1:-1:-1;;;6901:63:0;;9958:2:1;6901:63:0;;;9940:21:1;9997:2;9977:18;;;9970:30;10036:33;10016:18;;;10009:61;10087:18;;6901:63:0;9756:355:1;6901:63:0;6311:1;7042:7;:18;74616:6:::1;::::0;::::1;::::0;::::1;;;74615:7;74607:43;;;::::0;-1:-1:-1;;;74607:43:0;;10318:2:1;74607:43:0::1;::::0;::::1;10300:21:1::0;10357:2;10337:18;;;10330:30;10396:25;10376:18;;;10369:53;10439:18;;74607:43:0::1;10116:347:1::0;74607:43:0::1;74683:1;74669:11;:15;:43;;;;;73805:1;74688:11;:24;;74669:43;74661:76;;;::::0;-1:-1:-1;;;74661:76:0;;10670:2:1;74661:76:0::1;::::0;::::1;10652:21:1::0;10709:2;10689:18;;;10682:30;-1:-1:-1;;;10728:18:1;;;10721:50;10788:18;;74661:76:0::1;10468:344:1::0;74661:76:0::1;76399:1:::0;37406:12;37193:7;37390:13;73688:4:::1;::::0;74772:11;;37390:28;-1:-1:-1;;37390:46:0;74756:27:::1;;;;:::i;:::-;:42;;74748:75;;;::::0;-1:-1:-1;;;74748:75:0;;11281:2:1;74748:75:0::1;::::0;::::1;11263:21:1::0;11320:2;11300:18;;;11293:30;-1:-1:-1;;;11339:18:1;;;11332:50;11399:18;;74748:75:0::1;11079:344:1::0;74748:75:0::1;74862:11;74855:4;;:18;;;;:::i;:::-;74842:9;:31;74834:63;;;::::0;-1:-1:-1;;;74834:63:0;;11803:2:1;74834:63:0::1;::::0;::::1;11785:21:1::0;11842:2;11822:18;;;11815:30;-1:-1:-1;;;11861:18:1;;;11854:49;11920:18;;74834:63:0::1;11601:343:1::0;74834:63:0::1;74905:20;::::0;::::1;;74901:369;;;74959:30;::::0;-1:-1:-1;;71638:10:0;12098:2:1;12094:15;12090:53;74959:30:0::1;::::0;::::1;12078:66:1::0;74934:12:0::1;::::0;12160::1;;74959:30:0::1;;;;;;;;;;;;74949:41;;;;;;74934:56;;75009:50;75028:12;;75009:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;;-1:-1:-1;;75042:10:0::1;::::0;;-1:-1:-1;75054:4:0;;-1:-1:-1;75009:18:0::1;:50::i;:::-;75001:77;;;::::0;-1:-1:-1;;;75001:77:0;;12385:2:1;75001:77:0::1;::::0;::::1;12367:21:1::0;12424:2;12404:18;;;12397:30;-1:-1:-1;;;12443:18:1;;;12436:44;12497:18;;75001:77:0::1;12183:338:1::0;75001:77:0::1;71638:10:::0;75098:25:::1;::::0;;;:11:::1;:25;::::0;;;;;::::1;;75097:26;75089:63;;;::::0;-1:-1:-1;;;75089:63:0;;12728:2:1;75089:63:0::1;::::0;::::1;12710:21:1::0;12767:2;12747:18;;;12740:30;12806:26;12786:18;;;12779:54;12850:18;;75089:63:0::1;12526:348:1::0;75089:63:0::1;75171:11;75186:1;75171:16;75163:56;;;::::0;-1:-1:-1;;;75163:56:0;;13081:2:1;75163:56:0::1;::::0;::::1;13063:21:1::0;13120:2;13100:18;;;13093:30;13159:29;13139:18;;;13132:57;13206:18;;75163:56:0::1;12879:351:1::0;75163:56:0::1;-1:-1:-1::0;71638:10:0;75230:25:::1;::::0;;;:11:::1;:25;::::0;;;;:32;;-1:-1:-1;;75230:32:0::1;75258:4;75230:32;::::0;;74901:369:::1;75280:36;71638:10:::0;75304:11:::1;75280:9;:36::i;:::-;-1:-1:-1::0;;6267:1:0;7221:7;:22;-1:-1:-1;74501:821:0:o;75328:371::-;75402:13;75432:17;75440:8;75432:7;:17::i;:::-;75424:77;;;;-1:-1:-1;;;75424:77:0;;13437:2:1;75424:77:0;;;13419:21:1;13476:2;13456:18;;;13449:30;13515:34;13495:18;;;13488:62;-1:-1:-1;;;13566:18:1;;;13559:45;13621:19;;75424:77:0;13235:411:1;75424:77:0;75508:28;75539:10;:8;:10::i;:::-;75508:41;;75594:1;75569:14;75563:28;:32;:130;;;;;;;;;;;;;;;;;75631:14;75647:19;:8;:17;:19::i;:::-;75668:9;75614:64;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;75563:130;75556:137;75328:371;-1:-1:-1;;;75328:371:0:o;75778:111::-;20496:13;:11;:13::i;:::-;75846:20:::1;:37:::0;;-1:-1:-1;;75846:37:0::1;::::0;::::1;;::::0;;;::::1;::::0;;75778:111::o;48821:164::-;-1:-1:-1;;;;;48942:25:0;;;48918:4;48942:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;48821:164::o;21516:201::-;20496:13;:11;:13::i;:::-;-1:-1:-1;;;;;21605:22:0;::::1;21597:73;;;::::0;-1:-1:-1;;;21597:73:0;;15114:2:1;21597:73:0::1;::::0;::::1;15096:21:1::0;15153:2;15133:18;;;15126:30;15192:34;15172:18;;;15165:62;-1:-1:-1;;;15243:18:1;;;15236:36;15289:19;;21597:73:0::1;14912:402:1::0;21597:73:0::1;21681:28;21700:8;21681:18;:28::i;49243:282::-:0;49308:4;49364:7;76399:1;49345:26;;:66;;;;;49398:13;;49388:7;:23;49345:66;:153;;;;-1:-1:-1;;49449:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;49449:44:0;:49;;49243:282::o;51511:2825::-;51653:27;51683;51702:7;51683:18;:27::i;:::-;51653:57;;51768:4;-1:-1:-1;;;;;51727:45:0;51743:19;-1:-1:-1;;;;;51727:45:0;;51723:86;;51781:28;;-1:-1:-1;;;51781:28:0;;;;;;;;;;;51723:86;51823:27;50619:24;;;:15;:24;;;;;50847:26;;71638:10;50244:30;;;-1:-1:-1;;;;;49937:28:0;;50222:20;;;50219:56;52009:180;;52102:43;52119:4;71638:10;48821:164;:::i;52102:43::-;52097:92;;52154:35;;-1:-1:-1;;;52154:35:0;;;;;;;;;;;52097:92;-1:-1:-1;;;;;52206:16:0;;52202:52;;52231:23;;-1:-1:-1;;;52231:23:0;;;;;;;;;;;52202:52;52403:15;52400:160;;;52543:1;52522:19;52515:30;52400:160;-1:-1:-1;;;;;52940:24:0;;;;;;;:18;:24;;;;;;52938:26;;-1:-1:-1;;52938:26:0;;;53009:22;;;;;;;;;53007:24;;-1:-1:-1;53007:24:0;;;46163:11;46138:23;46134:41;46121:63;-1:-1:-1;;;46121:63:0;53302:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;53597:47:0;;:52;;53593:627;;53702:1;53692:11;;53670:19;53825:30;;;:17;:30;;;;;;:35;;53821:384;;53963:13;;53948:11;:28;53944:242;;54110:30;;;;:17;:30;;;;;:52;;;53944:242;53651:569;53593:627;54267:7;54263:2;-1:-1:-1;;;;;54248:27:0;54257:4;-1:-1:-1;;;;;54248:27:0;;;;;;;;;;;54286:42;51642:2694;;;51511:2825;;;:::o;20775:132::-;20683:6;;-1:-1:-1;;;;;20683:6:0;71638:10;20839:23;20831:68;;;;-1:-1:-1;;;20831:68:0;;15521:2:1;20831:68:0;;;15503:21:1;;;15540:18;;;15533:30;15599:34;15579:18;;;15572:62;15651:18;;20831:68:0;15319:356:1;54432:193:0;54578:39;54595:4;54601:2;54605:7;54578:39;;;;;;;;;;;;:16;:39::i;:::-;54432:193;;;:::o;43929:1275::-;43996:7;44031;;76399:1;44080:23;44076:1061;;44133:13;;44126:4;:20;44122:1015;;;44171:14;44188:23;;;:17;:23;;;;;;;-1:-1:-1;;;44277:24:0;;:29;;44273:845;;44942:113;44949:6;44959:1;44949:11;44942:113;;-1:-1:-1;;;45020:6:0;45002:25;;;;:17;:25;;;;;;44942:113;;44273:845;44148:989;44122:1015;45165:31;;-1:-1:-1;;;45165:31:0;;;;;;;;;;;21877:191;21970:6;;;-1:-1:-1;;;;;21987:17:0;;;-1:-1:-1;;;;;;21987:17:0;;;;;;;22020:40;;21970:6;;;21987:17;21970:6;;22020:40;;21951:16;;22020:40;21940:128;21877:191;:::o;55223:407::-;55398:31;55411:4;55417:2;55421:7;55398:12;:31::i;:::-;-1:-1:-1;;;;;55444:14:0;;;:19;55440:183;;55483:56;55514:4;55520:2;55524:7;55533:5;55483:30;:56::i;:::-;55478:145;;55567:40;;-1:-1:-1;;;55567:40:0;;;;;;;;;;;10974:190;11099:4;11152;11123:25;11136:5;11143:4;11123:12;:25::i;:::-;:33;;10974:190;-1:-1:-1;;;;10974:190:0:o;65383:112::-;65460:27;65470:2;65474:8;65460:27;;;;;;;;;;;;:9;:27::i;76412:104::-;76472:13;76501:9;76494:16;;;;;:::i;7688:723::-;7744:13;7965:5;7974:1;7965:10;7961:53;;-1:-1:-1;;7992:10:0;;;;;;;;;;;;-1:-1:-1;;;7992:10:0;;;;;7688:723::o;7961:53::-;8039:5;8024:12;8080:78;8087:9;;8080:78;;8113:8;;;;:::i;:::-;;-1:-1:-1;8136:10:0;;-1:-1:-1;8144:2:0;8136:10;;:::i;:::-;;;8080:78;;;8168:19;8200:6;8190:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;8190:17:0;;8168:39;;8218:154;8225:10;;8218:154;;8252:11;8262:1;8252:11;;:::i;:::-;;-1:-1:-1;8321:10:0;8329:2;8321:5;:10;:::i;:::-;8308:24;;:2;:24;:::i;:::-;8295:39;;8278:6;8285;8278:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;8278:56:0;;;;;;;;-1:-1:-1;8349:11:0;8358:2;8349:11;;:::i;:::-;;;8218:154;;;8396:6;7688:723;-1:-1:-1;;;;7688:723:0:o;57714:716::-;57898:88;;-1:-1:-1;;;57898:88:0;;57877:4;;-1:-1:-1;;;;;57898:45:0;;;;;:88;;71638:10;;57965:4;;57971:7;;57980:5;;57898:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;57898:88:0;;;;;;;;-1:-1:-1;;57898:88:0;;;;;;;;;;;;:::i;:::-;;;57894:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58181:6;:13;58198:1;58181:18;58177:235;;58227:40;;-1:-1:-1;;;58227:40:0;;;;;;;;;;;58177:235;58370:6;58364:13;58355:6;58351:2;58347:15;58340:38;57894:529;-1:-1:-1;;;;;;58057:64:0;-1:-1:-1;;;58057:64:0;;-1:-1:-1;57714:716:0;;;;;;:::o;11841:296::-;11924:7;11967:4;11924:7;11982:118;12006:5;:12;12002:1;:16;11982:118;;;12055:33;12065:12;12079:5;12085:1;12079:8;;;;;;;;:::i;:::-;;;;;;;12055:9;:33::i;:::-;12040:48;-1:-1:-1;12020:3:0;;;;:::i;:::-;;;;11982:118;;;-1:-1:-1;12117:12:0;11841:296;-1:-1:-1;;;11841:296:0:o;64610:689::-;64741:19;64747:2;64751:8;64741:5;:19::i;:::-;-1:-1:-1;;;;;64802:14:0;;;:19;64798:483;;64842:11;64856:13;64904:14;;;64937:233;64968:62;65007:1;65011:2;65015:7;;;;;;65024:5;64968:30;:62::i;:::-;64963:167;;65066:40;;-1:-1:-1;;;65066:40:0;;;;;;;;;;;64963:167;65165:3;65157:5;:11;64937:233;;65252:3;65235:13;;:20;65231:34;;65257:8;;;18048:149;18111:7;18142:1;18138;:5;:51;;18273:13;18367:15;;;18403:4;18396:15;;;18450:4;18434:21;;18138:51;;;-1:-1:-1;18273:13:0;18367:15;;;18403:4;18396:15;18450:4;18434:21;;;18048:149::o;58892:2966::-;58965:20;58988:13;;;59016;;;59012:44;;59038:18;;-1:-1:-1;;;59038:18:0;;;;;;;;;;;59012:44;-1:-1:-1;;;;;59544:22:0;;;;;;:18;:22;;;;32613:2;59544:22;;;:71;;59582:32;59570:45;;59544:71;;;59858:31;;;:17;:31;;;;;-1:-1:-1;46594:15:0;;46568:24;46564:46;46163:11;46138:23;46134:41;46131:52;46121:63;;59858:173;;60093:23;;;;59858:31;;59544:22;;60858:25;59544:22;;60711:335;61372:1;61358:12;61354:20;61312:346;61413:3;61404:7;61401:16;61312:346;;61631:7;61621:8;61618:1;61591:25;61588:1;61585;61580:59;61466:1;61453:15;61312:346;;;61316:77;61691:8;61703:1;61691:13;61687:45;;61713:19;;-1:-1:-1;;;61713:19:0;;;;;;;;;;;61687:45;61749:13;:19;-1:-1:-1;54432:193:0;;;:::o;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;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:1;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:1;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:1: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:1;;1348:180;-1:-1:-1;1348:180:1:o;1741:173::-;1809:20;;-1:-1:-1;;;;;1858:31:1;;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:1:o;2178:186::-;2237:6;2290:2;2278:9;2269:7;2265:23;2261:32;2258:52;;;2306:1;2303;2296:12;2258:52;2329:29;2348:9;2329:29;:::i;2551:328::-;2628:6;2636;2644;2697:2;2685:9;2676:7;2672:23;2668:32;2665:52;;;2713:1;2710;2703:12;2665:52;2736:29;2755:9;2736:29;:::i;:::-;2726:39;;2784:38;2818:2;2807:9;2803:18;2784:38;:::i;:::-;2774:48;;2869:2;2858:9;2854:18;2841:32;2831:42;;2551:328;;;;;:::o;3069:127::-;3130:10;3125:3;3121:20;3118:1;3111:31;3161:4;3158:1;3151:15;3185:4;3182:1;3175:15;3201:632;3266:5;3296:18;3337:2;3329:6;3326:14;3323:40;;;3343:18;;:::i;:::-;3418:2;3412:9;3386:2;3472:15;;-1:-1:-1;;3468:24:1;;;3494:2;3464:33;3460:42;3448:55;;;3518:18;;;3538:22;;;3515:46;3512:72;;;3564:18;;:::i;:::-;3604:10;3600:2;3593:22;3633:6;3624:15;;3663:6;3655;3648:22;3703:3;3694:6;3689:3;3685:16;3682:25;3679:45;;;3720:1;3717;3710:12;3679:45;3770:6;3765:3;3758:4;3750:6;3746:17;3733:44;3825:1;3818:4;3809:6;3801;3797:19;3793:30;3786:41;;;;3201:632;;;;;:::o;3838:451::-;3907:6;3960:2;3948:9;3939:7;3935:23;3931:32;3928:52;;;3976:1;3973;3966:12;3928:52;4016:9;4003:23;4049:18;4041:6;4038:30;4035:50;;;4081:1;4078;4071:12;4035:50;4104:22;;4157:4;4149:13;;4145:27;-1:-1:-1;4135:55:1;;4186:1;4183;4176:12;4135:55;4209:74;4275:7;4270:2;4257:16;4252:2;4248;4244:11;4209:74;:::i;4294:118::-;4380:5;4373:13;4366:21;4359:5;4356:32;4346:60;;4402:1;4399;4392:12;4417:315;4482:6;4490;4543:2;4531:9;4522:7;4518:23;4514:32;4511:52;;;4559:1;4556;4549:12;4511:52;4582:29;4601:9;4582:29;:::i;:::-;4572:39;;4661:2;4650:9;4646:18;4633:32;4674:28;4696:5;4674:28;:::i;:::-;4721:5;4711:15;;;4417:315;;;;;:::o;4737:667::-;4832:6;4840;4848;4856;4909:3;4897:9;4888:7;4884:23;4880:33;4877:53;;;4926:1;4923;4916:12;4877:53;4949:29;4968:9;4949:29;:::i;:::-;4939:39;;4997:38;5031:2;5020:9;5016:18;4997:38;:::i;:::-;4987:48;;5082:2;5071:9;5067:18;5054:32;5044:42;;5137:2;5126:9;5122:18;5109:32;5164:18;5156:6;5153:30;5150:50;;;5196:1;5193;5186:12;5150:50;5219:22;;5272:4;5264:13;;5260:27;-1:-1:-1;5250:55:1;;5301:1;5298;5291:12;5250:55;5324:74;5390:7;5385:2;5372:16;5367:2;5363;5359:11;5324:74;:::i;:::-;5314:84;;;4737:667;;;;;;;:::o;5409:683::-;5504:6;5512;5520;5573:2;5561:9;5552:7;5548:23;5544:32;5541:52;;;5589:1;5586;5579:12;5541:52;5625:9;5612:23;5602:33;;5686:2;5675:9;5671:18;5658:32;5709:18;5750:2;5742:6;5739:14;5736:34;;;5766:1;5763;5756:12;5736:34;5804:6;5793:9;5789:22;5779:32;;5849:7;5842:4;5838:2;5834:13;5830:27;5820:55;;5871:1;5868;5861:12;5820:55;5911:2;5898:16;5937:2;5929:6;5926:14;5923:34;;;5953:1;5950;5943:12;5923:34;6006:7;6001:2;5991:6;5988:1;5984:14;5980:2;5976:23;5972:32;5969:45;5966:65;;;6027:1;6024;6017:12;5966:65;6058:2;6054;6050:11;6040:21;;6080:6;6070:16;;;;;5409:683;;;;;:::o;6097:241::-;6153:6;6206:2;6194:9;6185:7;6181:23;6177:32;6174:52;;;6222:1;6219;6212:12;6174:52;6261:9;6248:23;6280:28;6302:5;6280:28;:::i;6343:260::-;6411:6;6419;6472:2;6460:9;6451:7;6447:23;6443:32;6440:52;;;6488:1;6485;6478:12;6440:52;6511:29;6530:9;6511:29;:::i;:::-;6501:39;;6559:38;6593:2;6582:9;6578:18;6559:38;:::i;:::-;6549:48;;6343:260;;;;;:::o;6608:380::-;6687:1;6683:12;;;;6730;;;6751:61;;6805:4;6797:6;6793:17;6783:27;;6751:61;6858:2;6850:6;6847:14;6827:18;6824:38;6821:161;;6904:10;6899:3;6895:20;6892:1;6885:31;6939:4;6936:1;6929:15;6967:4;6964:1;6957:15;6821:161;;6608:380;;;:::o;7302:245::-;7369:6;7422:2;7410:9;7401:7;7397:23;7393:32;7390:52;;;7438:1;7435;7428:12;7390:52;7470:9;7464:16;7489:28;7511:5;7489:28;:::i;7678:545::-;7780:2;7775:3;7772:11;7769:448;;;7816:1;7841:5;7837:2;7830:17;7886:4;7882:2;7872:19;7956:2;7944:10;7940:19;7937:1;7933:27;7927:4;7923:38;7992:4;7980:10;7977:20;7974:47;;;-1:-1:-1;8015:4:1;7974:47;8070:2;8065:3;8061:12;8058:1;8054:20;8048:4;8044:31;8034:41;;8125:82;8143:2;8136:5;8133:13;8125:82;;;8188:17;;;8169:1;8158:13;8125:82;;8399:1352;8525:3;8519:10;8552:18;8544:6;8541:30;8538:56;;;8574:18;;:::i;:::-;8603:97;8693:6;8653:38;8685:4;8679:11;8653:38;:::i;:::-;8647:4;8603:97;:::i;:::-;8755:4;;8819:2;8808:14;;8836:1;8831:663;;;;9538:1;9555:6;9552:89;;;-1:-1:-1;9607:19:1;;;9601:26;9552:89;-1:-1:-1;;8356:1:1;8352:11;;;8348:24;8344:29;8334:40;8380:1;8376:11;;;8331:57;9654:81;;8801:944;;8831:663;7625:1;7618:14;;;7662:4;7649:18;;-1:-1:-1;;8867:20:1;;;8985:236;8999:7;8996:1;8993:14;8985:236;;;9088:19;;;9082:26;9067:42;;9180:27;;;;9148:1;9136:14;;;;9015:19;;8985:236;;;8989:3;9249:6;9240:7;9237:19;9234:201;;;9310:19;;;9304:26;-1:-1:-1;;9393:1:1;9389:14;;;9405:3;9385:24;9381:37;9377:42;9362:58;9347:74;;9234:201;-1:-1:-1;;;;;9481:1:1;9465:14;;;9461:22;9448:36;;-1:-1:-1;8399:1352:1:o;10817:127::-;10878:10;10873:3;10869:20;10866:1;10859:31;10909:4;10906:1;10899:15;10933:4;10930:1;10923:15;10949:125;11014:9;;;11035:10;;;11032:36;;;11048:18;;:::i;11428:168::-;11501:9;;;11532;;11549:15;;;11543:22;;11529:37;11519:71;;11570:18;;:::i;13651:1256::-;13875:3;13913:6;13907:13;13939:4;13952:64;14009:6;14004:3;13999:2;13991:6;13987:15;13952:64;:::i;:::-;14079:13;;14038:16;;;;14101:68;14079:13;14038:16;14136:15;;;14101:68;:::i;:::-;14258:13;;14191:20;;;14231:1;;14296:36;14258:13;14296:36;:::i;:::-;14351:1;14368:18;;;14395:141;;;;14550:1;14545:337;;;;14361:521;;14395:141;-1:-1:-1;;14430:24:1;;14416:39;;14507:16;;14500:24;14486:39;;14475:51;;;-1:-1:-1;14395:141:1;;14545:337;14576:6;14573:1;14566:17;14624:2;14621:1;14611:16;14649:1;14663:169;14677:8;14674:1;14671:15;14663:169;;;14759:14;;14744:13;;;14737:37;14802:16;;;;14694:10;;14663:169;;;14667:3;;14863:8;14856:5;14852:20;14845:27;;14361:521;-1:-1:-1;14898:3:1;;13651:1256;-1:-1:-1;;;;;;;;;;13651:1256:1:o;15680:135::-;15719:3;15740:17;;;15737:43;;15760:18;;:::i;:::-;-1:-1:-1;15807:1:1;15796:13;;15680:135::o;15820:127::-;15881:10;15876:3;15872:20;15869:1;15862:31;15912:4;15909:1;15902:15;15936:4;15933:1;15926:15;15952:120;15992:1;16018;16008:35;;16023:18;;:::i;:::-;-1:-1:-1;16057:9:1;;15952:120::o;16077:128::-;16144:9;;;16165:11;;;16162:37;;;16179:18;;:::i;16210:112::-;16242:1;16268;16258:35;;16273:18;;:::i;:::-;-1:-1:-1;16307:9:1;;16210:112::o;16327:127::-;16388:10;16383:3;16379:20;16376:1;16369:31;16419:4;16416:1;16409:15;16443:4;16440:1;16433:15;16459:489;-1:-1:-1;;;;;16728:15:1;;;16710:34;;16780:15;;16775:2;16760:18;;16753:43;16827:2;16812:18;;16805:34;;;16875:3;16870:2;16855:18;;16848:31;;;16653:4;;16896:46;;16922:19;;16914:6;16896:46;:::i;:::-;16888:54;16459:489;-1:-1:-1;;;;;;16459:489:1:o;16953:249::-;17022:6;17075:2;17063:9;17054:7;17050:23;17046:32;17043:52;;;17091:1;17088;17081:12;17043:52;17123:9;17117:16;17142:30;17166:5;17142:30;:::i
Swarm Source
ipfs://92bd1e19fc4f9e86167e57859c252eb26272f4a240288e97a627f898c8e2aa26
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.