ERC-721
Overview
Max Total Supply
149 CZPUNK
Holders
140
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 CZPUNKLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
czpunks
Compiler Version
v0.8.9+commit.e5eed63a
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-11-21 */ // cz is a legend -> here is your punk collection degens // Twitter/X: https://twitter.com/czpunks // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @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); } } // File: erc721a/contracts/IERC721A.sol // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); } // File: erc721a/contracts/ERC721A.sol // ERC721A Contracts v4.2.2 // 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 { // Reference type for token approval. struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 0x80 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 0x20 + 3 * 0x20 = 0x80. str := add(mload(0x40), 0x80) // Update the free memory pointer to allocate. mstore(0x40, str) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } } // 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/introspection/IERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File: @openzeppelin/contracts/utils/introspection/ERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File: @openzeppelin/contracts/interfaces/IERC2981.sol // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); } // File: @openzeppelin/contracts/token/common/ERC2981.sol // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } } // 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); } } pragma solidity ^0.8.9; enum ContractStatus { disable, open } contract czpunks is Ownable, ERC721A, ERC2981, ReentrancyGuard { ContractStatus public CONTRACT_STATUS = ContractStatus.disable; uint96 public immutable ROYALTY_FEE_NUMERATOR = 69; uint256 public immutable MAX_FREE_PER_WALLET = 1; uint256 public immutable MAX_TX_PER_WALLET = 69; uint256 public immutable PRICE = 0.0069 ether; uint256 public immutable TOTAL_SUPPLY = 3333; string public uriSuffix = '.json'; string internal baseURI = ""; modifier isEthAvailable(uint256 quantity) { require(msg.value >= getSalePrice(msg.sender, quantity), "Insufficient funds"); _; } modifier isMaxTxReached(uint256 quantity) { require(_numberMinted(msg.sender) + quantity <= MAX_TX_PER_WALLET, "Exceeded tx limit"); _; } modifier isSupplyUnavailable(uint256 quantity) { require(totalSupply() + quantity <= TOTAL_SUPPLY, "Max supply reached"); _; } modifier isUser() { require(tx.origin == msg.sender, "Invalid User"); _; } constructor() ERC721A("czpunks", "CZPUNK") { _setDefaultRoyalty(owner(), ROYALTY_FEE_NUMERATOR); } function getTotalSupplyLeft() public view returns (uint256) { return TOTAL_SUPPLY - totalSupply(); } function _baseURI() internal view virtual override returns (string memory) { return baseURI; } function internalMint(address buyerAddress, uint256 quantity) external onlyOwner nonReentrant isUser isSupplyUnavailable(quantity) { _mint(buyerAddress, quantity); } function publicMint(uint256 quantity) public payable virtual nonReentrant isUser isSupplyUnavailable(quantity) isMaxTxReached(quantity) isEthAvailable(quantity) { require( CONTRACT_STATUS == ContractStatus.open, "Not in whitelist mint stage" ); _mint(msg.sender, quantity); } function getTotalMinted(address addr) public view returns (uint256) { return _numberMinted(addr); } function setBaseURI(string memory newURI) external virtual onlyOwner { baseURI = newURI; } function setStatus(ContractStatus status) external onlyOwner { CONTRACT_STATUS = status; } function _startTokenId() internal view virtual override returns (uint256) { return 1; } function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { require(_exists(_tokenId), 'ERC721Metadata: URI query for nonexistent token'); string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, Strings.toString(_tokenId), uriSuffix)) : ''; } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A, ERC2981) returns (bool) { return ERC721A.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId) || super.supportsInterface(interfaceId); } function getSalePrice(address sender, uint256 quantity) private view returns (uint256) { bool isAlreadyMinted = _numberMinted(sender) > 0; return isAlreadyMinted ? PRICE * (quantity) : PRICE * (quantity - MAX_FREE_PER_WALLET); } function withdraw(uint256 balance)external onlyOwner nonReentrant isUser { (bool success, ) = msg.sender.call{value: balance}(""); require(success, "Transfer failed."); } function withdrawAll() external onlyOwner nonReentrant isUser { (bool success, ) = msg.sender.call{value: address(this).balance}(""); require(success, "Transfer failed."); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"CONTRACT_STATUS","outputs":[{"internalType":"enum ContractStatus","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_FREE_PER_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TX_PER_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROYALTY_FEE_NUMERATOR","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"getTotalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalSupplyLeft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"buyerAddress","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"internalMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum ContractStatus","name":"status","type":"uint8"}],"name":"setStatus","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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uriSuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
600c805460ff1916905560456080819052600160a05260c0526618838370f3400060e052610d0561010052610160604052600561012081905264173539b7b760d91b6101409081526200005691600d91906200028e565b506040805160208101918290526000908190526200007791600e916200028e565b503480156200008557600080fd5b5060405180604001604052806007815260200166637a70756e6b7360c81b81525060405180604001604052806006815260200165435a50554e4b60d01b815250620000df620000d96200013560201b60201c565b62000139565b8151620000f49060039060208501906200028e565b5080516200010a9060049060208401906200028e565b506001808155600b5550506000546200012f906001600160a01b031660805162000189565b62000371565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6127106001600160601b0382161115620001fd5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b038216620002555760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401620001f4565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600955565b8280546200029c9062000334565b90600052602060002090601f016020900481019282620002c057600085556200030b565b82601f10620002db57805160ff19168380011785556200030b565b828001600101855582156200030b579182015b828111156200030b578251825591602001919060010190620002ee565b50620003199291506200031d565b5090565b5b808211156200031957600081556001016200031e565b600181811c908216806200034957607f821691505b602082108114156200036b57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e05161010051611fdc620003e76000396000818161051101528181610b0a01528181610e2d01526112bd0152600081816104bf015281816114ef015261151e01526000818161055a0152610b8b01526000818161058e01526114c4015260006103e90152611fdc6000f3fe6080604052600436106101ee5760003560e01c806370a082311161010d57806398710d1e116100a0578063bf7b779c1161006f578063bf7b779c14610610578063c87b56dd14610637578063defcbacb14610657578063e985e9c51461066c578063f2fde38b146106b557600080fd5b806398710d1e1461057c5780639a9c1bb1146105b0578063a22cb465146105d0578063b88d4fde146105f057600080fd5b80638da5cb5b116100dc5780638da5cb5b146104e1578063902d55a5146104ff57806395d89b4114610533578063975e840e1461054857600080fd5b806370a0823114610463578063715018a614610483578063853828b6146104985780638d859f3e146104ad57600080fd5b80632e1a7d4d116101855780635503a0e8116101545780635503a0e8146103c257806355850fe6146103d757806355f804b3146104235780636352211e1461044357600080fd5b80632e1a7d4d146103425780632e49d78b1461036257806335001a1a1461038257806342842e0e146103a257600080fd5b806318160ddd116101c157806318160ddd146102a457806323b872dd146102d05780632a55205a146102f05780632db115441461032f57600080fd5b806301ffc9a7146101f357806306fdde0314610228578063081812fc1461024a578063095ea7b314610282575b600080fd5b3480156101ff57600080fd5b5061021361020e36600461199e565b6106d5565b60405190151581526020015b60405180910390f35b34801561023457600080fd5b5061023d610704565b60405161021f9190611a13565b34801561025657600080fd5b5061026a610265366004611a26565b610796565b6040516001600160a01b03909116815260200161021f565b34801561028e57600080fd5b506102a261029d366004611a5b565b6107da565b005b3480156102b057600080fd5b506102c2600254600154036000190190565b60405190815260200161021f565b3480156102dc57600080fd5b506102a26102eb366004611a85565b61087a565b3480156102fc57600080fd5b5061031061030b366004611ac1565b610a0b565b604080516001600160a01b03909316835260208301919091520161021f565b6102a261033d366004611a26565b610ab7565b34801561034e57600080fd5b506102a261035d366004611a26565b610cca565b34801561036e57600080fd5b506102a261037d366004611ae3565b610dad565b34801561038e57600080fd5b506102a261039d366004611a5b565b610ddb565b3480156103ae57600080fd5b506102a26103bd366004611a85565b610ebf565b3480156103ce57600080fd5b5061023d610edf565b3480156103e357600080fd5b5061040b7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160601b03909116815260200161021f565b34801561042f57600080fd5b506102a261043e366004611b90565b610f6d565b34801561044f57600080fd5b5061026a61045e366004611a26565b610f8c565b34801561046f57600080fd5b506102c261047e366004611bd9565b610f97565b34801561048f57600080fd5b506102a2610fe6565b3480156104a457600080fd5b506102a2610ffa565b3480156104b957600080fd5b506102c27f000000000000000000000000000000000000000000000000000000000000000081565b3480156104ed57600080fd5b506000546001600160a01b031661026a565b34801561050b57600080fd5b506102c27f000000000000000000000000000000000000000000000000000000000000000081565b34801561053f57600080fd5b5061023d6110dc565b34801561055457600080fd5b506102c27f000000000000000000000000000000000000000000000000000000000000000081565b34801561058857600080fd5b506102c27f000000000000000000000000000000000000000000000000000000000000000081565b3480156105bc57600080fd5b506102c26105cb366004611bd9565b6110eb565b3480156105dc57600080fd5b506102a26105eb366004611bf4565b6110f6565b3480156105fc57600080fd5b506102a261060b366004611c30565b61118c565b34801561061c57600080fd5b50600c5461062a9060ff1681565b60405161021f9190611cc2565b34801561064357600080fd5b5061023d610652366004611a26565b6111d6565b34801561066357600080fd5b506102c26112a4565b34801561067857600080fd5b50610213610687366004611cea565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b3480156106c157600080fd5b506102a26106d0366004611bd9565b6112e6565b60006106e08261135f565b806106ef57506106ef826113ad565b806106fe57506106fe826113ad565b92915050565b60606003805461071390611d1d565b80601f016020809104026020016040519081016040528092919081815260200182805461073f90611d1d565b801561078c5780601f106107615761010080835404028352916020019161078c565b820191906000526020600020905b81548152906001019060200180831161076f57829003601f168201915b5050505050905090565b60006107a1826113e2565b6107be576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b60006107e582610f8c565b9050336001600160a01b0382161461081e576108018133610687565b61081e576040516367d9dca160e11b815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061088582611417565b9050836001600160a01b0316816001600160a01b0316146108b85760405162a1148160e81b815260040160405180910390fd5b60008281526007602052604090208054338082146001600160a01b03881690911417610905576108e88633610687565b61090557604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661092c57604051633a954ecd60e21b815260040160405180910390fd5b801561093757600082555b6001600160a01b038681166000908152600660205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260056020526040902055600160e11b83166109c257600184016000818152600560205260409020546109c05760015481146109c05760008181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b6000828152600a602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610a805750604080518082019091526009546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610a9f906001600160601b031687611d6e565b610aa99190611da3565b915196919550909350505050565b6002600b541415610ae35760405162461bcd60e51b8152600401610ada90611db7565b60405180910390fd5b6002600b55323314610b075760405162461bcd60e51b8152600401610ada90611dee565b807f000000000000000000000000000000000000000000000000000000000000000081610b3b600254600154036000190190565b610b459190611e14565b1115610b885760405162461bcd60e51b815260206004820152601260248201527113585e081cdd5c1c1b1e481c995858da195960721b6044820152606401610ada565b817f000000000000000000000000000000000000000000000000000000000000000081610bb433611480565b610bbe9190611e14565b1115610c005760405162461bcd60e51b8152602060048201526011602482015270115e18d959591959081d1e081b1a5b5a5d607a1b6044820152606401610ada565b82610c0b33826114a9565b341015610c4f5760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b6044820152606401610ada565b6001600c5460ff166001811115610c6857610c68611cac565b14610cb55760405162461bcd60e51b815260206004820152601b60248201527f4e6f7420696e2077686974656c697374206d696e7420737461676500000000006044820152606401610ada565b610cbf338561154a565b50506001600b555050565b610cd2611641565b6002600b541415610cf55760405162461bcd60e51b8152600401610ada90611db7565b6002600b55323314610d195760405162461bcd60e51b8152600401610ada90611dee565b604051600090339083908381818185875af1925050503d8060008114610d5b576040519150601f19603f3d011682016040523d82523d6000602084013e610d60565b606091505b5050905080610da45760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610ada565b50506001600b55565b610db5611641565b600c805482919060ff191660018381811115610dd357610dd3611cac565b021790555050565b610de3611641565b6002600b541415610e065760405162461bcd60e51b8152600401610ada90611db7565b6002600b55323314610e2a5760405162461bcd60e51b8152600401610ada90611dee565b807f000000000000000000000000000000000000000000000000000000000000000081610e5e600254600154036000190190565b610e689190611e14565b1115610eab5760405162461bcd60e51b815260206004820152601260248201527113585e081cdd5c1c1b1e481c995858da195960721b6044820152606401610ada565b610eb5838361154a565b50506001600b5550565b610eda8383836040518060200160405280600081525061118c565b505050565b600d8054610eec90611d1d565b80601f0160208091040260200160405190810160405280929190818152602001828054610f1890611d1d565b8015610f655780601f10610f3a57610100808354040283529160200191610f65565b820191906000526020600020905b815481529060010190602001808311610f4857829003601f168201915b505050505081565b610f75611641565b8051610f8890600e9060208401906118ef565b5050565b60006106fe82611417565b60006001600160a01b038216610fc0576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b610fee611641565b610ff8600061169b565b565b611002611641565b6002600b5414156110255760405162461bcd60e51b8152600401610ada90611db7565b6002600b553233146110495760405162461bcd60e51b8152600401610ada90611dee565b604051600090339047908381818185875af1925050503d806000811461108b576040519150601f19603f3d011682016040523d82523d6000602084013e611090565b606091505b50509050806110d45760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610ada565b506001600b55565b60606004805461071390611d1d565b60006106fe82611480565b6001600160a01b0382163314156111205760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61119784848461087a565b6001600160a01b0383163b156111d0576111b3848484846116eb565b6111d0576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60606111e1826113e2565b6112455760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610ada565b600061124f6117e2565b9050600081511161126f576040518060200160405280600081525061129d565b80611279846117f1565b600d60405160200161128d93929190611e2c565b6040516020818303038152906040525b9392505050565b60006112b7600254600154036000190190565b6112e1907f0000000000000000000000000000000000000000000000000000000000000000611ef0565b905090565b6112ee611641565b6001600160a01b0381166113535760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ada565b61135c8161169b565b50565b60006301ffc9a760e01b6001600160e01b03198316148061139057506380ac58cd60e01b6001600160e01b03198316145b806106fe5750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b14806106fe57506301ffc9a760e01b6001600160e01b03198316146106fe565b6000816001111580156113f6575060015482105b80156106fe575050600090815260056020526040902054600160e01b161590565b600081806001116114675760015481101561146757600081815260056020526040902054600160e01b8116611465575b8061129d575060001901600081815260056020526040902054611447565b505b604051636f96cda160e11b815260040160405180910390fd5b6001600160a01b03166000908152600660205260409081902054901c67ffffffffffffffff1690565b60008060006114b785611480565b11905080611518576114e97f000000000000000000000000000000000000000000000000000000000000000084611ef0565b611513907f0000000000000000000000000000000000000000000000000000000000000000611d6e565b611542565b611542837f0000000000000000000000000000000000000000000000000000000000000000611d6e565b949350505050565b6001548161156b5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526006602090815260408083208054680100000000000000018802019055848352600590915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461161a57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016115e2565b508161163857604051622e076360e81b815260040160405180910390fd5b60015550505050565b6000546001600160a01b03163314610ff85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ada565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611720903390899088908890600401611f07565b602060405180830381600087803b15801561173a57600080fd5b505af192505050801561176a575060408051601f3d908101601f1916820190925261176791810190611f44565b60015b6117c5573d808015611798576040519150601f19603f3d011682016040523d82523d6000602084013e61179d565b606091505b5080516117bd576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060600e805461071390611d1d565b6060816118155750506040805180820190915260018152600360fc1b602082015290565b8160005b811561183f578061182981611f61565b91506118389050600a83611da3565b9150611819565b60008167ffffffffffffffff81111561185a5761185a611b04565b6040519080825280601f01601f191660200182016040528015611884576020820181803683370190505b5090505b841561154257611899600183611ef0565b91506118a6600a86611f7c565b6118b1906030611e14565b60f81b8183815181106118c6576118c6611f90565b60200101906001600160f81b031916908160001a9053506118e8600a86611da3565b9450611888565b8280546118fb90611d1d565b90600052602060002090601f01602090048101928261191d5760008555611963565b82601f1061193657805160ff1916838001178555611963565b82800160010185558215611963579182015b82811115611963578251825591602001919060010190611948565b5061196f929150611973565b5090565b5b8082111561196f5760008155600101611974565b6001600160e01b03198116811461135c57600080fd5b6000602082840312156119b057600080fd5b813561129d81611988565b60005b838110156119d65781810151838201526020016119be565b838111156111d05750506000910152565b600081518084526119ff8160208601602086016119bb565b601f01601f19169290920160200192915050565b60208152600061129d60208301846119e7565b600060208284031215611a3857600080fd5b5035919050565b80356001600160a01b0381168114611a5657600080fd5b919050565b60008060408385031215611a6e57600080fd5b611a7783611a3f565b946020939093013593505050565b600080600060608486031215611a9a57600080fd5b611aa384611a3f565b9250611ab160208501611a3f565b9150604084013590509250925092565b60008060408385031215611ad457600080fd5b50508035926020909101359150565b600060208284031215611af557600080fd5b81356002811061129d57600080fd5b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611b3557611b35611b04565b604051601f8501601f19908116603f01168101908282118183101715611b5d57611b5d611b04565b81604052809350858152868686011115611b7657600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611ba257600080fd5b813567ffffffffffffffff811115611bb957600080fd5b8201601f81018413611bca57600080fd5b61154284823560208401611b1a565b600060208284031215611beb57600080fd5b61129d82611a3f565b60008060408385031215611c0757600080fd5b611c1083611a3f565b915060208301358015158114611c2557600080fd5b809150509250929050565b60008060008060808587031215611c4657600080fd5b611c4f85611a3f565b9350611c5d60208601611a3f565b925060408501359150606085013567ffffffffffffffff811115611c8057600080fd5b8501601f81018713611c9157600080fd5b611ca087823560208401611b1a565b91505092959194509250565b634e487b7160e01b600052602160045260246000fd5b6020810160028310611ce457634e487b7160e01b600052602160045260246000fd5b91905290565b60008060408385031215611cfd57600080fd5b611d0683611a3f565b9150611d1460208401611a3f565b90509250929050565b600181811c90821680611d3157607f821691505b60208210811415611d5257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615611d8857611d88611d58565b500290565b634e487b7160e01b600052601260045260246000fd5b600082611db257611db2611d8d565b500490565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252600c908201526b24b73b30b634b2102ab9b2b960a11b604082015260600190565b60008219821115611e2757611e27611d58565b500190565b600084516020611e3f8285838a016119bb565b855191840191611e528184848a016119bb565b8554920191600090600181811c9080831680611e6f57607f831692505b858310811415611e8d57634e487b7160e01b85526022600452602485fd5b808015611ea15760018114611eb257611edf565b60ff19851688528388019550611edf565b60008b81526020902060005b85811015611ed75781548a820152908401908801611ebe565b505083880195505b50939b9a5050505050505050505050565b600082821015611f0257611f02611d58565b500390565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611f3a908301846119e7565b9695505050505050565b600060208284031215611f5657600080fd5b815161129d81611988565b6000600019821415611f7557611f75611d58565b5060010190565b600082611f8b57611f8b611d8d565b500690565b634e487b7160e01b600052603260045260246000fdfea26469706673582212208cef36116bc4bc4c1ce13d24d48ada79aa860fb368fde13043c1893aaf65d8ef64736f6c63430008090033
Deployed Bytecode
0x6080604052600436106101ee5760003560e01c806370a082311161010d57806398710d1e116100a0578063bf7b779c1161006f578063bf7b779c14610610578063c87b56dd14610637578063defcbacb14610657578063e985e9c51461066c578063f2fde38b146106b557600080fd5b806398710d1e1461057c5780639a9c1bb1146105b0578063a22cb465146105d0578063b88d4fde146105f057600080fd5b80638da5cb5b116100dc5780638da5cb5b146104e1578063902d55a5146104ff57806395d89b4114610533578063975e840e1461054857600080fd5b806370a0823114610463578063715018a614610483578063853828b6146104985780638d859f3e146104ad57600080fd5b80632e1a7d4d116101855780635503a0e8116101545780635503a0e8146103c257806355850fe6146103d757806355f804b3146104235780636352211e1461044357600080fd5b80632e1a7d4d146103425780632e49d78b1461036257806335001a1a1461038257806342842e0e146103a257600080fd5b806318160ddd116101c157806318160ddd146102a457806323b872dd146102d05780632a55205a146102f05780632db115441461032f57600080fd5b806301ffc9a7146101f357806306fdde0314610228578063081812fc1461024a578063095ea7b314610282575b600080fd5b3480156101ff57600080fd5b5061021361020e36600461199e565b6106d5565b60405190151581526020015b60405180910390f35b34801561023457600080fd5b5061023d610704565b60405161021f9190611a13565b34801561025657600080fd5b5061026a610265366004611a26565b610796565b6040516001600160a01b03909116815260200161021f565b34801561028e57600080fd5b506102a261029d366004611a5b565b6107da565b005b3480156102b057600080fd5b506102c2600254600154036000190190565b60405190815260200161021f565b3480156102dc57600080fd5b506102a26102eb366004611a85565b61087a565b3480156102fc57600080fd5b5061031061030b366004611ac1565b610a0b565b604080516001600160a01b03909316835260208301919091520161021f565b6102a261033d366004611a26565b610ab7565b34801561034e57600080fd5b506102a261035d366004611a26565b610cca565b34801561036e57600080fd5b506102a261037d366004611ae3565b610dad565b34801561038e57600080fd5b506102a261039d366004611a5b565b610ddb565b3480156103ae57600080fd5b506102a26103bd366004611a85565b610ebf565b3480156103ce57600080fd5b5061023d610edf565b3480156103e357600080fd5b5061040b7f000000000000000000000000000000000000000000000000000000000000004581565b6040516001600160601b03909116815260200161021f565b34801561042f57600080fd5b506102a261043e366004611b90565b610f6d565b34801561044f57600080fd5b5061026a61045e366004611a26565b610f8c565b34801561046f57600080fd5b506102c261047e366004611bd9565b610f97565b34801561048f57600080fd5b506102a2610fe6565b3480156104a457600080fd5b506102a2610ffa565b3480156104b957600080fd5b506102c27f0000000000000000000000000000000000000000000000000018838370f3400081565b3480156104ed57600080fd5b506000546001600160a01b031661026a565b34801561050b57600080fd5b506102c27f0000000000000000000000000000000000000000000000000000000000000d0581565b34801561053f57600080fd5b5061023d6110dc565b34801561055457600080fd5b506102c27f000000000000000000000000000000000000000000000000000000000000004581565b34801561058857600080fd5b506102c27f000000000000000000000000000000000000000000000000000000000000000181565b3480156105bc57600080fd5b506102c26105cb366004611bd9565b6110eb565b3480156105dc57600080fd5b506102a26105eb366004611bf4565b6110f6565b3480156105fc57600080fd5b506102a261060b366004611c30565b61118c565b34801561061c57600080fd5b50600c5461062a9060ff1681565b60405161021f9190611cc2565b34801561064357600080fd5b5061023d610652366004611a26565b6111d6565b34801561066357600080fd5b506102c26112a4565b34801561067857600080fd5b50610213610687366004611cea565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b3480156106c157600080fd5b506102a26106d0366004611bd9565b6112e6565b60006106e08261135f565b806106ef57506106ef826113ad565b806106fe57506106fe826113ad565b92915050565b60606003805461071390611d1d565b80601f016020809104026020016040519081016040528092919081815260200182805461073f90611d1d565b801561078c5780601f106107615761010080835404028352916020019161078c565b820191906000526020600020905b81548152906001019060200180831161076f57829003601f168201915b5050505050905090565b60006107a1826113e2565b6107be576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b60006107e582610f8c565b9050336001600160a01b0382161461081e576108018133610687565b61081e576040516367d9dca160e11b815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061088582611417565b9050836001600160a01b0316816001600160a01b0316146108b85760405162a1148160e81b815260040160405180910390fd5b60008281526007602052604090208054338082146001600160a01b03881690911417610905576108e88633610687565b61090557604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661092c57604051633a954ecd60e21b815260040160405180910390fd5b801561093757600082555b6001600160a01b038681166000908152600660205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260056020526040902055600160e11b83166109c257600184016000818152600560205260409020546109c05760015481146109c05760008181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b6000828152600a602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610a805750604080518082019091526009546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610a9f906001600160601b031687611d6e565b610aa99190611da3565b915196919550909350505050565b6002600b541415610ae35760405162461bcd60e51b8152600401610ada90611db7565b60405180910390fd5b6002600b55323314610b075760405162461bcd60e51b8152600401610ada90611dee565b807f0000000000000000000000000000000000000000000000000000000000000d0581610b3b600254600154036000190190565b610b459190611e14565b1115610b885760405162461bcd60e51b815260206004820152601260248201527113585e081cdd5c1c1b1e481c995858da195960721b6044820152606401610ada565b817f000000000000000000000000000000000000000000000000000000000000004581610bb433611480565b610bbe9190611e14565b1115610c005760405162461bcd60e51b8152602060048201526011602482015270115e18d959591959081d1e081b1a5b5a5d607a1b6044820152606401610ada565b82610c0b33826114a9565b341015610c4f5760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b6044820152606401610ada565b6001600c5460ff166001811115610c6857610c68611cac565b14610cb55760405162461bcd60e51b815260206004820152601b60248201527f4e6f7420696e2077686974656c697374206d696e7420737461676500000000006044820152606401610ada565b610cbf338561154a565b50506001600b555050565b610cd2611641565b6002600b541415610cf55760405162461bcd60e51b8152600401610ada90611db7565b6002600b55323314610d195760405162461bcd60e51b8152600401610ada90611dee565b604051600090339083908381818185875af1925050503d8060008114610d5b576040519150601f19603f3d011682016040523d82523d6000602084013e610d60565b606091505b5050905080610da45760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610ada565b50506001600b55565b610db5611641565b600c805482919060ff191660018381811115610dd357610dd3611cac565b021790555050565b610de3611641565b6002600b541415610e065760405162461bcd60e51b8152600401610ada90611db7565b6002600b55323314610e2a5760405162461bcd60e51b8152600401610ada90611dee565b807f0000000000000000000000000000000000000000000000000000000000000d0581610e5e600254600154036000190190565b610e689190611e14565b1115610eab5760405162461bcd60e51b815260206004820152601260248201527113585e081cdd5c1c1b1e481c995858da195960721b6044820152606401610ada565b610eb5838361154a565b50506001600b5550565b610eda8383836040518060200160405280600081525061118c565b505050565b600d8054610eec90611d1d565b80601f0160208091040260200160405190810160405280929190818152602001828054610f1890611d1d565b8015610f655780601f10610f3a57610100808354040283529160200191610f65565b820191906000526020600020905b815481529060010190602001808311610f4857829003601f168201915b505050505081565b610f75611641565b8051610f8890600e9060208401906118ef565b5050565b60006106fe82611417565b60006001600160a01b038216610fc0576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b610fee611641565b610ff8600061169b565b565b611002611641565b6002600b5414156110255760405162461bcd60e51b8152600401610ada90611db7565b6002600b553233146110495760405162461bcd60e51b8152600401610ada90611dee565b604051600090339047908381818185875af1925050503d806000811461108b576040519150601f19603f3d011682016040523d82523d6000602084013e611090565b606091505b50509050806110d45760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610ada565b506001600b55565b60606004805461071390611d1d565b60006106fe82611480565b6001600160a01b0382163314156111205760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61119784848461087a565b6001600160a01b0383163b156111d0576111b3848484846116eb565b6111d0576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60606111e1826113e2565b6112455760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610ada565b600061124f6117e2565b9050600081511161126f576040518060200160405280600081525061129d565b80611279846117f1565b600d60405160200161128d93929190611e2c565b6040516020818303038152906040525b9392505050565b60006112b7600254600154036000190190565b6112e1907f0000000000000000000000000000000000000000000000000000000000000d05611ef0565b905090565b6112ee611641565b6001600160a01b0381166113535760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ada565b61135c8161169b565b50565b60006301ffc9a760e01b6001600160e01b03198316148061139057506380ac58cd60e01b6001600160e01b03198316145b806106fe5750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b14806106fe57506301ffc9a760e01b6001600160e01b03198316146106fe565b6000816001111580156113f6575060015482105b80156106fe575050600090815260056020526040902054600160e01b161590565b600081806001116114675760015481101561146757600081815260056020526040902054600160e01b8116611465575b8061129d575060001901600081815260056020526040902054611447565b505b604051636f96cda160e11b815260040160405180910390fd5b6001600160a01b03166000908152600660205260409081902054901c67ffffffffffffffff1690565b60008060006114b785611480565b11905080611518576114e97f000000000000000000000000000000000000000000000000000000000000000184611ef0565b611513907f0000000000000000000000000000000000000000000000000018838370f34000611d6e565b611542565b611542837f0000000000000000000000000000000000000000000000000018838370f34000611d6e565b949350505050565b6001548161156b5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526006602090815260408083208054680100000000000000018802019055848352600590915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461161a57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016115e2565b508161163857604051622e076360e81b815260040160405180910390fd5b60015550505050565b6000546001600160a01b03163314610ff85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ada565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611720903390899088908890600401611f07565b602060405180830381600087803b15801561173a57600080fd5b505af192505050801561176a575060408051601f3d908101601f1916820190925261176791810190611f44565b60015b6117c5573d808015611798576040519150601f19603f3d011682016040523d82523d6000602084013e61179d565b606091505b5080516117bd576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060600e805461071390611d1d565b6060816118155750506040805180820190915260018152600360fc1b602082015290565b8160005b811561183f578061182981611f61565b91506118389050600a83611da3565b9150611819565b60008167ffffffffffffffff81111561185a5761185a611b04565b6040519080825280601f01601f191660200182016040528015611884576020820181803683370190505b5090505b841561154257611899600183611ef0565b91506118a6600a86611f7c565b6118b1906030611e14565b60f81b8183815181106118c6576118c6611f90565b60200101906001600160f81b031916908160001a9053506118e8600a86611da3565b9450611888565b8280546118fb90611d1d565b90600052602060002090601f01602090048101928261191d5760008555611963565b82601f1061193657805160ff1916838001178555611963565b82800160010185558215611963579182015b82811115611963578251825591602001919060010190611948565b5061196f929150611973565b5090565b5b8082111561196f5760008155600101611974565b6001600160e01b03198116811461135c57600080fd5b6000602082840312156119b057600080fd5b813561129d81611988565b60005b838110156119d65781810151838201526020016119be565b838111156111d05750506000910152565b600081518084526119ff8160208601602086016119bb565b601f01601f19169290920160200192915050565b60208152600061129d60208301846119e7565b600060208284031215611a3857600080fd5b5035919050565b80356001600160a01b0381168114611a5657600080fd5b919050565b60008060408385031215611a6e57600080fd5b611a7783611a3f565b946020939093013593505050565b600080600060608486031215611a9a57600080fd5b611aa384611a3f565b9250611ab160208501611a3f565b9150604084013590509250925092565b60008060408385031215611ad457600080fd5b50508035926020909101359150565b600060208284031215611af557600080fd5b81356002811061129d57600080fd5b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611b3557611b35611b04565b604051601f8501601f19908116603f01168101908282118183101715611b5d57611b5d611b04565b81604052809350858152868686011115611b7657600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611ba257600080fd5b813567ffffffffffffffff811115611bb957600080fd5b8201601f81018413611bca57600080fd5b61154284823560208401611b1a565b600060208284031215611beb57600080fd5b61129d82611a3f565b60008060408385031215611c0757600080fd5b611c1083611a3f565b915060208301358015158114611c2557600080fd5b809150509250929050565b60008060008060808587031215611c4657600080fd5b611c4f85611a3f565b9350611c5d60208601611a3f565b925060408501359150606085013567ffffffffffffffff811115611c8057600080fd5b8501601f81018713611c9157600080fd5b611ca087823560208401611b1a565b91505092959194509250565b634e487b7160e01b600052602160045260246000fd5b6020810160028310611ce457634e487b7160e01b600052602160045260246000fd5b91905290565b60008060408385031215611cfd57600080fd5b611d0683611a3f565b9150611d1460208401611a3f565b90509250929050565b600181811c90821680611d3157607f821691505b60208210811415611d5257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615611d8857611d88611d58565b500290565b634e487b7160e01b600052601260045260246000fd5b600082611db257611db2611d8d565b500490565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252600c908201526b24b73b30b634b2102ab9b2b960a11b604082015260600190565b60008219821115611e2757611e27611d58565b500190565b600084516020611e3f8285838a016119bb565b855191840191611e528184848a016119bb565b8554920191600090600181811c9080831680611e6f57607f831692505b858310811415611e8d57634e487b7160e01b85526022600452602485fd5b808015611ea15760018114611eb257611edf565b60ff19851688528388019550611edf565b60008b81526020902060005b85811015611ed75781548a820152908401908801611ebe565b505083880195505b50939b9a5050505050505050505050565b600082821015611f0257611f02611d58565b500390565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611f3a908301846119e7565b9695505050505050565b600060208284031215611f5657600080fd5b815161129d81611988565b6000600019821415611f7557611f75611d58565b5060010190565b600082611f8b57611f8b611d8d565b500690565b634e487b7160e01b600052603260045260246000fdfea26469706673582212208cef36116bc4bc4c1ce13d24d48ada79aa860fb368fde13043c1893aaf65d8ef64736f6c63430008090033
Deployed Bytecode Sourcemap
66434:4089:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;69427:344;;;;;;;;;;-1:-1:-1;69427:344:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;69427:344:0;;;;;;;;21489:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;27972:218::-;;;;;;;;;;-1:-1:-1;27972:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1692:32:1;;;1674:51;;1662:2;1647:18;27972:218:0;1528:203:1;27413:400:0;;;;;;;;;;-1:-1:-1;27413:400:0;;;;;:::i;:::-;;:::i;:::-;;17240:323;;;;;;;;;;;;17514:12;;69000:1;17498:13;:28;-1:-1:-1;;17498:46:0;;17240:323;;;;2319:25:1;;;2307:2;2292:18;17240:323:0;2173:177:1;31679:2817:0;;;;;;;;;;-1:-1:-1;31679:2817:0;;;;;:::i;:::-;;:::i;60239:442::-;;;;;;;;;;-1:-1:-1;60239:442:0;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;3133:32:1;;;3115:51;;3197:2;3182:18;;3175:34;;;;3088:18;60239:442:0;2941:274:1;68111:412:0;;;;;;:::i;:::-;;:::i;70119:195::-;;;;;;;;;;-1:-1:-1;70119:195:0;;;;;:::i;:::-;;:::i;68796:104::-;;;;;;;;;;-1:-1:-1;68796:104:0;;;;;:::i;:::-;;:::i;67874:229::-;;;;;;;;;;-1:-1:-1;67874:229:0;;;;;:::i;:::-;;:::i;34592:185::-;;;;;;;;;;-1:-1:-1;34592:185:0;;;;;:::i;:::-;;:::i;66848:33::-;;;;;;;;;;;;;:::i;66577:50::-;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;3662:39:1;;;3644:58;;3632:2;3617:18;66577:50:0;3500:208:1;68684:104:0;;;;;;;;;;-1:-1:-1;68684:104:0;;;;;:::i;:::-;;:::i;22882:152::-;;;;;;;;;;-1:-1:-1;22882:152:0;;;;;:::i;:::-;;:::i;18424:233::-;;;;;;;;;;-1:-1:-1;18424:233:0;;;;;:::i;:::-;;:::i;65512:103::-;;;;;;;;;;;;;:::i;70322:198::-;;;;;;;;;;;;;:::i;66745:45::-;;;;;;;;;;;;;;;64864:87;;;;;;;;;;-1:-1:-1;64910:7:0;64937:6;-1:-1:-1;;;;;64937:6:0;64864:87;;66797:44;;;;;;;;;;;;;;;21665:104;;;;;;;;;;;;;:::i;66691:47::-;;;;;;;;;;;;;;;66636:48;;;;;;;;;;;;;;;68531:145;;;;;;;;;;-1:-1:-1;68531:145:0;;;;;:::i;:::-;;:::i;28530:308::-;;;;;;;;;;-1:-1:-1;28530:308:0;;;;;:::i;:::-;;:::i;35375:399::-;;;;;;;;;;-1:-1:-1;35375:399:0;;;;;:::i;:::-;;:::i;66506:62::-;;;;;;;;;;-1:-1:-1;66506:62:0;;;;;;;;;;;;;;;:::i;69017:402::-;;;;;;;;;;-1:-1:-1;69017:402:0;;;;;:::i;:::-;;:::i;67636:114::-;;;;;;;;;;;;;:::i;28995:164::-;;;;;;;;;;-1:-1:-1;28995:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;29116:25:0;;;29092:4;29116:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;28995:164;65770:201;;;;;;;;;;-1:-1:-1;65770:201:0;;;;;:::i;:::-;;:::i;69427:344::-;69575:4;69617:38;69643:11;69617:25;:38::i;:::-;:93;;;;69672:38;69698:11;69672:25;:38::i;:::-;69617:146;;;;69727:36;69751:11;69727:23;:36::i;:::-;69597:166;69427:344;-1:-1:-1;;69427:344:0:o;21489:100::-;21543:13;21576:5;21569:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21489:100;:::o;27972:218::-;28048:7;28073:16;28081:7;28073;:16::i;:::-;28068:64;;28098:34;;-1:-1:-1;;;28098:34:0;;;;;;;;;;;28068:64;-1:-1:-1;28152:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;28152:30:0;;27972:218::o;27413:400::-;27494:13;27510:16;27518:7;27510;:16::i;:::-;27494:32;-1:-1:-1;51270:10:0;-1:-1:-1;;;;;27543:28:0;;;27539:175;;27591:44;27608:5;51270:10;28995:164;:::i;27591:44::-;27586:128;;27663:35;;-1:-1:-1;;;27663:35:0;;;;;;;;;;;27586:128;27726:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;27726:35:0;-1:-1:-1;;;;;27726:35:0;;;;;;;;;27777:28;;27726:24;;27777:28;;;;;;;27483:330;27413:400;;:::o;31679:2817::-;31813:27;31843;31862:7;31843:18;:27::i;:::-;31813:57;;31928:4;-1:-1:-1;;;;;31887:45:0;31903:19;-1:-1:-1;;;;;31887:45:0;;31883:86;;31941:28;;-1:-1:-1;;;31941:28:0;;;;;;;;;;;31883:86;31983:27;30793:24;;;:15;:24;;;;;31015:26;;51270:10;30418:30;;;-1:-1:-1;;;;;30111:28:0;;30396:20;;;30393:56;32169:180;;32262:43;32279:4;51270:10;28995:164;:::i;32262:43::-;32257:92;;32314:35;;-1:-1:-1;;;32314:35:0;;;;;;;;;;;32257:92;-1:-1:-1;;;;;32366:16:0;;32362:52;;32391:23;;-1:-1:-1;;;32391:23:0;;;;;;;;;;;32362:52;32563:15;32560:160;;;32703:1;32682:19;32675:30;32560:160;-1:-1:-1;;;;;33100:24:0;;;;;;;:18;:24;;;;;;33098:26;;-1:-1:-1;;33098:26:0;;;33169:22;;;;;;;;;33167:24;;-1:-1:-1;33167:24:0;;;26271:11;26246:23;26242:41;26229:63;-1:-1:-1;;;26229:63:0;33462:26;;;;:17;:26;;;;;:175;-1:-1:-1;;;33757:47:0;;33753:627;;33862:1;33852:11;;33830:19;33985:30;;;:17;:30;;;;;;33981:384;;34123:13;;34108:11;:28;34104:242;;34270:30;;;;:17;:30;;;;;:52;;;34104:242;33811:569;33753:627;34427:7;34423:2;-1:-1:-1;;;;;34408:27:0;34417:4;-1:-1:-1;;;;;34408:27:0;;;;;;;;;;;31802:2694;;;31679:2817;;;:::o;60239:442::-;60336:7;60394:27;;;:17;:27;;;;;;;;60365:56;;;;;;;;;-1:-1:-1;;;;;60365:56:0;;;;;-1:-1:-1;;;60365:56:0;;;-1:-1:-1;;;;;60365:56:0;;;;;;;;60336:7;;60434:92;;-1:-1:-1;60485:29:0;;;;;;;;;60495:19;60485:29;-1:-1:-1;;;;;60485:29:0;;;;-1:-1:-1;;;60485:29:0;;-1:-1:-1;;;;;60485:29:0;;;;;60434:92;60576:23;;;;60538:21;;61047:5;;60563:36;;-1:-1:-1;;;;;60563:36:0;:10;:36;:::i;:::-;60562:58;;;;:::i;:::-;60641:16;;;;;-1:-1:-1;60239:442:0;;-1:-1:-1;;;;60239:442:0:o;68111:412::-;54792:1;55390:7;;:19;;55382:63;;;;-1:-1:-1;;;55382:63:0;;;;;;;:::i;:::-;;;;;;;;;54792:1;55523:7;:18;67448:9:::1;67461:10;67448:23;67440:48;;;;-1:-1:-1::0;;;67440:48:0::1;;;;;;;:::i;:::-;68266:8:::2;67348:12;67336:8;67320:13;17514:12:::0;;69000:1;17498:13;:28;-1:-1:-1;;17498:46:0;;17240:323;67320:13:::2;:24;;;;:::i;:::-;:40;;67312:71;;;::::0;-1:-1:-1;;;67312:71:0;;8885:2:1;67312:71:0::2;::::0;::::2;8867:21:1::0;8924:2;8904:18;;;8897:30;-1:-1:-1;;;8943:18:1;;;8936:48;9001:18;;67312:71:0::2;8683:342:1::0;67312:71:0::2;68300:8:::3;67187:17;67175:8;67147:25;67161:10;67147:13;:25::i;:::-;:36;;;;:::i;:::-;:57;;67139:87;;;::::0;-1:-1:-1;;;67139:87:0;;9232:2:1;67139:87:0::3;::::0;::::3;9214:21:1::0;9271:2;9251:18;;;9244:30;-1:-1:-1;;;9290:18:1;;;9283:47;9347:18;;67139:87:0::3;9030:341:1::0;67139:87:0::3;68334:8:::4;67001:34;67014:10;67026:8;67001:12;:34::i;:::-;66988:9;:47;;66980:78;;;::::0;-1:-1:-1;;;66980:78:0;;9578:2:1;66980:78:0::4;::::0;::::4;9560:21:1::0;9617:2;9597:18;;;9590:30;-1:-1:-1;;;9636:18:1;;;9629:48;9694:18;;66980:78:0::4;9376:342:1::0;66980:78:0::4;68401:19:::5;68382:15;::::0;::::5;;::::0;:38;::::5;;;;;;:::i;:::-;;68360:115;;;::::0;-1:-1:-1;;;68360:115:0;;9925:2:1;68360:115:0::5;::::0;::::5;9907:21:1::0;9964:2;9944:18;;;9937:30;10003:29;9983:18;;;9976:57;10050:18;;68360:115:0::5;9723:351:1::0;68360:115:0::5;68488:27;68494:10;68506:8;68488:5;:27::i;:::-;-1:-1:-1::0;;54748:1:0;55702:7;:22;-1:-1:-1;;68111:412:0:o;70119:195::-;64750:13;:11;:13::i;:::-;54792:1:::1;55390:7;;:19;;55382:63;;;;-1:-1:-1::0;;;55382:63:0::1;;;;;;;:::i;:::-;54792:1;55523:7;:18:::0;67448:9:::2;67461:10;67448:23;67440:48;;;;-1:-1:-1::0;;;67440:48:0::2;;;;;;;:::i;:::-;70222:35:::3;::::0;70204:12:::3;::::0;70222:10:::3;::::0;70245:7;;70204:12;70222:35;70204:12;70222:35;70245:7;70222:10;:35:::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;70203:54;;;70278:7;70270:36;;;::::0;-1:-1:-1;;;70270:36:0;;10491:2:1;70270:36:0::3;::::0;::::3;10473:21:1::0;10530:2;10510:18;;;10503:30;-1:-1:-1;;;10549:18:1;;;10542:46;10605:18;;70270:36:0::3;10289:340:1::0;70270:36:0::3;-1:-1:-1::0;;54748:1:0::1;55702:7;:22:::0;70119:195::o;68796:104::-;64750:13;:11;:13::i;:::-;68868:15:::1;:24:::0;;68886:6;;68868:15;-1:-1:-1;;68868:24:0::1;::::0;68886:6;68868:24;;::::1;;;;;;:::i;:::-;;;;;;68796:104:::0;:::o;67874:229::-;64750:13;:11;:13::i;:::-;54792:1:::1;55390:7;;:19;;55382:63;;;;-1:-1:-1::0;;;55382:63:0::1;;;;;;;:::i;:::-;54792:1;55523:7;:18:::0;67448:9:::2;67461:10;67448:23;67440:48;;;;-1:-1:-1::0;;;67440:48:0::2;;;;;;;:::i;:::-;68040:8:::3;67348:12;67336:8;67320:13;17514:12:::0;;69000:1;17498:13;:28;-1:-1:-1;;17498:46:0;;17240:323;67320:13:::3;:24;;;;:::i;:::-;:40;;67312:71;;;::::0;-1:-1:-1;;;67312:71:0;;8885:2:1;67312:71:0::3;::::0;::::3;8867:21:1::0;8924:2;8904:18;;;8897:30;-1:-1:-1;;;8943:18:1;;;8936:48;9001:18;;67312:71:0::3;8683:342:1::0;67312:71:0::3;68066:29:::4;68072:12;68086:8;68066:5;:29::i;:::-;-1:-1:-1::0;;54748:1:0::1;55702:7;:22:::0;-1:-1:-1;67874:229:0:o;34592:185::-;34730:39;34747:4;34753:2;34757:7;34730:39;;;;;;;;;;;;:16;:39::i;:::-;34592:185;;;:::o;66848:33::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;68684:104::-;64750:13;:11;:13::i;:::-;68764:16;;::::1;::::0;:7:::1;::::0;:16:::1;::::0;::::1;::::0;::::1;:::i;:::-;;68684:104:::0;:::o;22882:152::-;22954:7;22997:27;23016:7;22997:18;:27::i;18424:233::-;18496:7;-1:-1:-1;;;;;18520:19:0;;18516:60;;18548:28;;-1:-1:-1;;;18548:28:0;;;;;;;;;;;18516:60;-1:-1:-1;;;;;;18594:25:0;;;;;:18;:25;;;;;;12583:13;18594:55;;18424:233::o;65512:103::-;64750:13;:11;:13::i;:::-;65577:30:::1;65604:1;65577:18;:30::i;:::-;65512:103::o:0;70322:198::-;64750:13;:11;:13::i;:::-;54792:1:::1;55390:7;;:19;;55382:63;;;;-1:-1:-1::0;;;55382:63:0::1;;;;;;;:::i;:::-;54792:1;55523:7;:18:::0;67448:9:::2;67461:10;67448:23;67440:48;;;;-1:-1:-1::0;;;67440:48:0::2;;;;;;;:::i;:::-;70414:49:::3;::::0;70396:12:::3;::::0;70414:10:::3;::::0;70437:21:::3;::::0;70396:12;70414:49;70396:12;70414:49;70437:21;70414:10;:49:::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;70395:68;;;70484:7;70476:36;;;::::0;-1:-1:-1;;;70476:36:0;;10491:2:1;70476:36:0::3;::::0;::::3;10473:21:1::0;10530:2;10510:18;;;10503:30;-1:-1:-1;;;10549:18:1;;;10542:46;10605:18;;70476:36:0::3;10289:340:1::0;70476:36:0::3;-1:-1:-1::0;54748:1:0::1;55702:7;:22:::0;70322:198::o;21665:104::-;21721:13;21754:7;21747:14;;;;;:::i;68531:145::-;68617:7;68649:19;68663:4;68649:13;:19::i;28530:308::-;-1:-1:-1;;;;;28629:31:0;;51270:10;28629:31;28625:61;;;28669:17;;-1:-1:-1;;;28669:17:0;;;;;;;;;;;28625:61;51270:10;28699:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;28699:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;28699:60:0;;;;;;;;;;28775:55;;540:41:1;;;28699:49:0;;51270:10;28775:55;;513:18:1;28775:55:0;;;;;;;28530:308;;:::o;35375:399::-;35542:31;35555:4;35561:2;35565:7;35542:12;:31::i;:::-;-1:-1:-1;;;;;35588:14:0;;;:19;35584:183;;35627:56;35658:4;35664:2;35668:7;35677:5;35627:30;:56::i;:::-;35622:145;;35711:40;;-1:-1:-1;;;35711:40:0;;;;;;;;;;;35622:145;35375:399;;;;:::o;69017:402::-;69091:13;69125:17;69133:8;69125:7;:17::i;:::-;69117:77;;;;-1:-1:-1;;;69117:77:0;;10836:2:1;69117:77:0;;;10818:21:1;10875:2;10855:18;;;10848:30;10914:34;10894:18;;;10887:62;-1:-1:-1;;;10965:18:1;;;10958:45;11020:19;;69117:77:0;10634:411:1;69117:77:0;69207:28;69238:10;:8;:10::i;:::-;69207:41;;69297:1;69272:14;69266:28;:32;:145;;;;;;;;;;;;;;;;;69338:14;69354:26;69371:8;69354:16;:26::i;:::-;69382:9;69321:71;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;69266:145;69259:152;69017:402;-1:-1:-1;;;69017:402:0:o;67636:114::-;67687:7;67729:13;17514:12;;69000:1;17498:13;:28;-1:-1:-1;;17498:46:0;;17240:323;67729:13;67714:28;;:12;:28;:::i;:::-;67707:35;;67636:114;:::o;65770:201::-;64750:13;:11;:13::i;:::-;-1:-1:-1;;;;;65859:22:0;::::1;65851:73;;;::::0;-1:-1:-1;;;65851:73:0;;13040:2:1;65851:73:0::1;::::0;::::1;13022:21:1::0;13079:2;13059:18;;;13052:30;13118:34;13098:18;;;13091:62;-1:-1:-1;;;13169:18:1;;;13162:36;13215:19;;65851:73:0::1;12838:402:1::0;65851:73:0::1;65935:28;65954:8;65935:18;:28::i;:::-;65770:201:::0;:::o;20587:639::-;20672:4;-1:-1:-1;;;;;;;;;20996:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;21073:25:0;;;20996:102;:179;;;-1:-1:-1;;;;;;;;21150:25:0;-1:-1:-1;;;21150:25:0;;20587:639::o;59969:215::-;60071:4;-1:-1:-1;;;;;;60095:41:0;;-1:-1:-1;;;60095:41:0;;:81;;-1:-1:-1;;;;;;;;;;57630:40:0;;;60140:36;57521:157;29417:282;29482:4;29538:7;69000:1;29519:26;;:66;;;;;29572:13;;29562:7;:23;29519:66;:153;;;;-1:-1:-1;;29623:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;29623:44:0;:49;;29417:282::o;24037:1275::-;24104:7;24139;;69000:1;24188:23;24184:1061;;24241:13;;24234:4;:20;24230:1015;;;24279:14;24296:23;;;:17;:23;;;;;;-1:-1:-1;;;24385:24:0;;24381:845;;25050:113;25057:11;25050:113;;-1:-1:-1;;;25128:6:0;25110:25;;;;:17;:25;;;;;;25050:113;;24381:845;24256:989;24230:1015;25273:31;;-1:-1:-1;;;25273:31:0;;;;;;;;;;;18739:178;-1:-1:-1;;;;;18828:25:0;18800:7;18828:25;;;:18;:25;;12721:2;18828:25;;;;;:50;;12583:13;18827:82;;18739:178::o;69779:332::-;69884:7;69909:20;69956:1;69932:21;69946:6;69932:13;:21::i;:::-;:25;69909:48;;69990:15;:113;;70072:30;70083:19;70072:8;:30;:::i;:::-;70063:40;;:5;:40;:::i;:::-;69990:113;;;70025:18;70034:8;70025:5;:18;:::i;:::-;69970:133;69779:332;-1:-1:-1;;;;69779:332:0:o;39036:2454::-;39132:13;;39160;39156:44;;39182:18;;-1:-1:-1;;;39182:18:0;;;;;;;;;;;39156:44;-1:-1:-1;;;;;39688:22:0;;;;;;:18;:22;;;;12721:2;39688:22;;;:71;;39726:32;39714:45;;39688:71;;;40002:31;;;:17;:31;;;;;-1:-1:-1;26702:15:0;;26676:24;26672:46;26271:11;26246:23;26242:41;26239:52;26229:63;;40002:173;;40237:23;;;;40002:31;;39688:22;;40736:25;39688:22;;40589:335;41004:1;40990:12;40986:20;40944:346;41045:3;41036:7;41033:16;40944:346;;41263:7;41253:8;41250:1;41223:25;41220:1;41217;41212:59;41098:1;41085:15;40944:346;;;-1:-1:-1;41323:13:0;41319:45;;41345:19;;-1:-1:-1;;;41345:19:0;;;;;;;;;;;41319:45;41381:13;:19;-1:-1:-1;34592:185:0;;;:::o;65029:132::-;64910:7;64937:6;-1:-1:-1;;;;;64937:6:0;51270:10;65093:23;65085:68;;;;-1:-1:-1;;;65085:68:0;;13447:2:1;65085:68:0;;;13429:21:1;;;13466:18;;;13459:30;13525:34;13505:18;;;13498:62;13577:18;;65085:68:0;13245:356:1;66131:191:0;66205:16;66224:6;;-1:-1:-1;;;;;66241:17:0;;;-1:-1:-1;;;;;;66241:17:0;;;;;;66274:40;;66224:6;;;;;;;66274:40;;66205:16;66274:40;66194:128;66131:191;:::o;37858:716::-;38042:88;;-1:-1:-1;;;38042:88:0;;38021:4;;-1:-1:-1;;;;;38042:45:0;;;;;:88;;51270:10;;38109:4;;38115:7;;38124:5;;38042:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;38042:88:0;;;;;;;;-1:-1:-1;;38042:88:0;;;;;;;;;;;;:::i;:::-;;;38038:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;38325:13:0;;38321:235;;38371:40;;-1:-1:-1;;;38371:40:0;;;;;;;;;;;38321:235;38514:6;38508:13;38499:6;38495:2;38491:15;38484:38;38038:529;-1:-1:-1;;;;;;38201:64:0;-1:-1:-1;;;38201:64:0;;-1:-1:-1;37858:716:0;;;;;;:::o;67758:108::-;67818:13;67851:7;67844:14;;;;;:::i;393:723::-;449:13;670:10;666:53;;-1:-1:-1;;697:10:0;;;;;;;;;;;;-1:-1:-1;;;697:10:0;;;;;393:723::o;666:53::-;744:5;729:12;785:78;792:9;;785:78;;818:8;;;;:::i;:::-;;-1:-1:-1;841:10:0;;-1:-1:-1;849:2:0;841:10;;:::i;:::-;;;785:78;;;873:19;905:6;895:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;895:17:0;;873:39;;923:154;930:10;;923:154;;957:11;967:1;957:11;;:::i;:::-;;-1:-1:-1;1026:10:0;1034:2;1026:5;:10;:::i;:::-;1013:24;;:2;:24;:::i;:::-;1000:39;;983:6;990;983:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;983:56:0;;;;;;;;-1:-1:-1;1054:11:0;1063:2;1054:11;;:::i;:::-;;;923:154;;-1:-1:-1;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::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:258::-;664:1;674:113;688:6;685:1;682:13;674:113;;;764:11;;;758:18;745:11;;;738:39;710:2;703:10;674:113;;;805:6;802:1;799:13;796:48;;;-1:-1:-1;;840:1:1;822:16;;815:27;592:258::o;855:::-;897:3;935:5;929:12;962:6;957:3;950:19;978:63;1034:6;1027:4;1022:3;1018:14;1011:4;1004:5;1000:16;978:63;:::i;:::-;1095:2;1074:15;-1:-1:-1;;1070:29:1;1061:39;;;;1102:4;1057:50;;855:258;-1:-1:-1;;855:258:1:o;1118:220::-;1267:2;1256:9;1249:21;1230:4;1287:45;1328:2;1317:9;1313:18;1305:6;1287:45;:::i;1343:180::-;1402:6;1455:2;1443:9;1434:7;1430:23;1426:32;1423:52;;;1471:1;1468;1461:12;1423:52;-1:-1:-1;1494:23:1;;1343:180;-1:-1:-1;1343:180:1:o;1736:173::-;1804:20;;-1:-1:-1;;;;;1853:31:1;;1843:42;;1833:70;;1899:1;1896;1889:12;1833:70;1736:173;;;:::o;1914:254::-;1982:6;1990;2043:2;2031:9;2022:7;2018:23;2014:32;2011:52;;;2059:1;2056;2049:12;2011:52;2082:29;2101:9;2082:29;:::i;:::-;2072:39;2158:2;2143:18;;;;2130:32;;-1:-1:-1;;;1914:254:1:o;2355:328::-;2432:6;2440;2448;2501:2;2489:9;2480:7;2476:23;2472:32;2469:52;;;2517:1;2514;2507:12;2469:52;2540:29;2559:9;2540:29;:::i;:::-;2530:39;;2588:38;2622:2;2611:9;2607:18;2588:38;:::i;:::-;2578:48;;2673:2;2662:9;2658:18;2645:32;2635:42;;2355:328;;;;;:::o;2688:248::-;2756:6;2764;2817:2;2805:9;2796:7;2792:23;2788:32;2785:52;;;2833:1;2830;2823:12;2785:52;-1:-1:-1;;2856:23:1;;;2926:2;2911:18;;;2898:32;;-1:-1:-1;2688:248:1:o;3220:275::-;3298:6;3351:2;3339:9;3330:7;3326:23;3322:32;3319:52;;;3367:1;3364;3357:12;3319:52;3406:9;3393:23;3445:1;3438:5;3435:12;3425:40;;3461:1;3458;3451:12;3713:127;3774:10;3769:3;3765:20;3762:1;3755:31;3805:4;3802:1;3795:15;3829:4;3826:1;3819:15;3845:632;3910:5;3940:18;3981:2;3973:6;3970:14;3967:40;;;3987:18;;:::i;:::-;4062:2;4056:9;4030:2;4116:15;;-1:-1:-1;;4112:24:1;;;4138:2;4108:33;4104:42;4092:55;;;4162:18;;;4182:22;;;4159:46;4156:72;;;4208:18;;:::i;:::-;4248:10;4244:2;4237:22;4277:6;4268:15;;4307:6;4299;4292:22;4347:3;4338:6;4333:3;4329:16;4326:25;4323:45;;;4364:1;4361;4354:12;4323:45;4414:6;4409:3;4402:4;4394:6;4390:17;4377:44;4469:1;4462:4;4453:6;4445;4441:19;4437:30;4430:41;;;;3845:632;;;;;:::o;4482:451::-;4551:6;4604:2;4592:9;4583:7;4579:23;4575:32;4572:52;;;4620:1;4617;4610:12;4572:52;4660:9;4647:23;4693:18;4685:6;4682:30;4679:50;;;4725:1;4722;4715:12;4679:50;4748:22;;4801:4;4793:13;;4789:27;-1:-1:-1;4779:55:1;;4830:1;4827;4820:12;4779:55;4853:74;4919:7;4914:2;4901:16;4896:2;4892;4888:11;4853:74;:::i;4938:186::-;4997:6;5050:2;5038:9;5029:7;5025:23;5021:32;5018:52;;;5066:1;5063;5056:12;5018:52;5089:29;5108:9;5089:29;:::i;5129:347::-;5194:6;5202;5255:2;5243:9;5234:7;5230:23;5226:32;5223:52;;;5271:1;5268;5261:12;5223:52;5294:29;5313:9;5294:29;:::i;:::-;5284:39;;5373:2;5362:9;5358:18;5345:32;5420:5;5413:13;5406:21;5399:5;5396:32;5386:60;;5442:1;5439;5432:12;5386:60;5465:5;5455:15;;;5129:347;;;;;:::o;5481:667::-;5576:6;5584;5592;5600;5653:3;5641:9;5632:7;5628:23;5624:33;5621:53;;;5670:1;5667;5660:12;5621:53;5693:29;5712:9;5693:29;:::i;:::-;5683:39;;5741:38;5775:2;5764:9;5760:18;5741:38;:::i;:::-;5731:48;;5826:2;5815:9;5811:18;5798:32;5788:42;;5881:2;5870:9;5866:18;5853:32;5908:18;5900:6;5897:30;5894:50;;;5940:1;5937;5930:12;5894:50;5963:22;;6016:4;6008:13;;6004:27;-1:-1:-1;5994:55:1;;6045:1;6042;6035:12;5994:55;6068:74;6134:7;6129:2;6116:16;6111:2;6107;6103:11;6068:74;:::i;:::-;6058:84;;;5481:667;;;;;;;:::o;6153:127::-;6214:10;6209:3;6205:20;6202:1;6195:31;6245:4;6242:1;6235:15;6269:4;6266:1;6259:15;6285:347;6436:2;6421:18;;6469:1;6458:13;;6448:144;;6514:10;6509:3;6505:20;6502:1;6495:31;6549:4;6546:1;6539:15;6577:4;6574:1;6567:15;6448:144;6601:25;;;6285:347;:::o;6637:260::-;6705:6;6713;6766:2;6754:9;6745:7;6741:23;6737:32;6734:52;;;6782:1;6779;6772:12;6734:52;6805:29;6824:9;6805:29;:::i;:::-;6795:39;;6853:38;6887:2;6876:9;6872:18;6853:38;:::i;:::-;6843:48;;6637:260;;;;;:::o;6902:380::-;6981:1;6977:12;;;;7024;;;7045:61;;7099:4;7091:6;7087:17;7077:27;;7045:61;7152:2;7144:6;7141:14;7121:18;7118:38;7115:161;;;7198:10;7193:3;7189:20;7186:1;7179:31;7233:4;7230:1;7223:15;7261:4;7258:1;7251:15;7115:161;;6902:380;;;:::o;7287:127::-;7348:10;7343:3;7339:20;7336:1;7329:31;7379:4;7376:1;7369:15;7403:4;7400:1;7393:15;7419:168;7459:7;7525:1;7521;7517:6;7513:14;7510:1;7507:21;7502:1;7495:9;7488:17;7484:45;7481:71;;;7532:18;;:::i;:::-;-1:-1:-1;7572:9:1;;7419:168::o;7592:127::-;7653:10;7648:3;7644:20;7641:1;7634:31;7684:4;7681:1;7674:15;7708:4;7705:1;7698:15;7724:120;7764:1;7790;7780:35;;7795:18;;:::i;:::-;-1:-1:-1;7829:9:1;;7724:120::o;7849:355::-;8051:2;8033:21;;;8090:2;8070:18;;;8063:30;8129:33;8124:2;8109:18;;8102:61;8195:2;8180:18;;7849:355::o;8209:336::-;8411:2;8393:21;;;8450:2;8430:18;;;8423:30;-1:-1:-1;;;8484:2:1;8469:18;;8462:42;8536:2;8521:18;;8209:336::o;8550:128::-;8590:3;8621:1;8617:6;8614:1;8611:13;8608:39;;;8627:18;;:::i;:::-;-1:-1:-1;8663:9:1;;8550:128::o;11176:1527::-;11400:3;11438:6;11432:13;11464:4;11477:51;11521:6;11516:3;11511:2;11503:6;11499:15;11477:51;:::i;:::-;11591:13;;11550:16;;;;11613:55;11591:13;11550:16;11635:15;;;11613:55;:::i;:::-;11757:13;;11690:20;;;11730:1;;11817;11839:18;;;;11892;;;;11919:93;;11997:4;11987:8;11983:19;11971:31;;11919:93;12060:2;12050:8;12047:16;12027:18;12024:40;12021:167;;;-1:-1:-1;;;12087:33:1;;12143:4;12140:1;12133:15;12173:4;12094:3;12161:17;12021:167;12204:18;12231:110;;;;12355:1;12350:328;;;;12197:481;;12231:110;-1:-1:-1;;12266:24:1;;12252:39;;12311:20;;;;-1:-1:-1;12231:110:1;;12350:328;11123:1;11116:14;;;11160:4;11147:18;;12445:1;12459:169;12473:8;12470:1;12467:15;12459:169;;;12555:14;;12540:13;;;12533:37;12598:16;;;;12490:10;;12459:169;;;12463:3;;12659:8;12652:5;12648:20;12641:27;;12197:481;-1:-1:-1;12694:3:1;;11176:1527;-1:-1:-1;;;;;;;;;;;11176:1527:1:o;12708:125::-;12748:4;12776:1;12773;12770:8;12767:34;;;12781:18;;:::i;:::-;-1:-1:-1;12818:9:1;;12708:125::o;13606:489::-;-1:-1:-1;;;;;13875:15:1;;;13857:34;;13927:15;;13922:2;13907:18;;13900:43;13974:2;13959:18;;13952:34;;;14022:3;14017:2;14002:18;;13995:31;;;13800:4;;14043:46;;14069:19;;14061:6;14043:46;:::i;:::-;14035:54;13606:489;-1:-1:-1;;;;;;13606:489:1:o;14100:249::-;14169:6;14222:2;14210:9;14201:7;14197:23;14193:32;14190:52;;;14238:1;14235;14228:12;14190:52;14270:9;14264:16;14289:30;14313:5;14289:30;:::i;14354:135::-;14393:3;-1:-1:-1;;14414:17:1;;14411:43;;;14434:18;;:::i;:::-;-1:-1:-1;14481:1:1;14470:13;;14354:135::o;14494:112::-;14526:1;14552;14542:35;;14557:18;;:::i;:::-;-1:-1:-1;14591:9:1;;14494:112::o;14611:127::-;14672:10;14667:3;14663:20;14660:1;14653:31;14703:4;14700:1;14693:15;14727:4;14724:1;14717:15
Swarm Source
ipfs://8cef36116bc4bc4c1ce13d24d48ada79aa860fb368fde13043c1893aaf65d8ef
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.