ERC-721
Overview
Max Total Supply
10,000 DOGYOOTS
Holders
736
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
3 DOGYOOTSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
y00tsCanineClub
Compiler Version
v0.8.7+commit.e28d00a7
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-09-12 */ // SPDX-License-Identifier: MIT // Official Link: https://www.y00tscanineclub.xyz // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of an ERC721A compliant contract. */ 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(); /** * The caller cannot approve to the current owner. */ error ApprovalToCurrentOwner(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); // ============================== // 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); // ============================== // 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`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must 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 ) external; /** * @dev Transfers `tokenId` token 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); } // File: https://github.com/chiru-labs/ERC721A/blob/main/contracts/ERC721A.sol // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev ERC721 token receiver interface. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // 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 tokenId of the next token 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` 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 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 1; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view 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 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 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 returns (uint256) { return _burnCounter; } /** * @dev See {IERC165-supportsInterface}. */ 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: 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. } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view 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 auxillary 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 auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; assembly { // Cast aux without masking. auxCasted := aux } packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX); _packedAddressData[owner] = packed; } /** * 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 ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. // // We can directly compare the packed value. // If the address is zero, packed is zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * 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; } /** * Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _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, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev Casts the address to uint256 without masking. */ function _addressToUint256(address value) private pure returns (uint256 result) { assembly { result := value } } /** * @dev Casts the boolean to uint256 without branching. */ function _boolToUint256(bool value) private pure returns (uint256 result) { assembly { result := value } } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = address(uint160(_packedOwnershipOf(tokenId))); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned. } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the balance and number minted. _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] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (to.code.length != 0) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex < end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the balance and number minted. _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] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSenderERC721A() == from || isApprovedForAll(from, _msgSenderERC721A()) || getApproved(tokenId) == _msgSenderERC721A()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. delete _tokenApprovals[tokenId]; // 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] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | BITMASK_NEXT_INITIALIZED; // 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 `_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)); if (approvalCheck) { bool isApprovedOrOwner = (_msgSenderERC721A() == from || isApprovedForAll(from, _msgSenderERC721A()) || getApproved(tokenId) == _msgSenderERC721A()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. delete _tokenApprovals[tokenId]; // 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] = _addressToUint256(from) | (block.timestamp << BITPOS_START_TIMESTAMP) | BITMASK_BURNED | BITMASK_NEXT_INITIALIZED; // 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++; } } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try 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)) } } } } /** * @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 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 returns (string memory ptr) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 128 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: 32 + 3 * 32 = 128. ptr := add(mload(0x40), 128) // Update the free memory pointer to allocate. mstore(0x40, ptr) // Cache the end of the memory to calculate the length later. let end := ptr // We write the string from the rightmost digit to the leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // Costs a bit more than early returning for the zero case, // but cheaper in terms of deployment and overall runtime costs. for { // Initialize and perform the first pass without check. let temp := value // Move the pointer 1 byte leftwards to point to an empty character slot. ptr := sub(ptr, 1) // Write the character to the pointer. 48 is the ASCII index of '0'. mstore8(ptr, add(48, mod(temp, 10))) temp := div(temp, 10) } temp { // Keep dividing `temp` until zero. temp := div(temp, 10) } { // Body of the for loop. ptr := sub(ptr, 1) mstore8(ptr, add(48, mod(temp, 10))) } let length := sub(end, ptr) // Move the pointer 32 bytes leftwards to make room for the length. ptr := sub(ptr, 32) // Store the length. mstore(ptr, length) } } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Strings.sol // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/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: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol // OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Address.sol // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/IERC721Receiver.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/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: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/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: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/IERC721.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: 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); } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/extensions/IERC721Metadata.sol // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/ERC721.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, data); } /** * @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. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * 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, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} } // File: contracts/y00tsCanineClub.sol pragma solidity ^0.8.0; abstract contract MYOOTS { function balanceOf(address owner) external virtual view returns (uint256 balance); } contract y00tsCanineClub is ERC721A, Ownable { using Strings for uint256; MYOOTS myoots = MYOOTS(0x3059955684071B412Bd8e6f1506577ac11dDd692); string private baseURI = "https://y00tscanineclub.s3.amazonaws.com/metadata/"; uint256 public price = 0.001 ether; uint256 public maxPerTx = 20; uint256 public maxFreePerWallet = 1; uint256 public totalFree = 5000; uint256 public maxSupply = 10000; bool public holderAdoptionEnabled = true; bool public mintEnabled; uint public totalFreeMinted = 0; mapping(address => uint256) private _mintedFreeAmount; mapping(address => uint256) private _adoptedHolderAmount; constructor() ERC721A("y00tsCanineClub", "DOGYOOTS") {} function adoptHolderOnly(uint256 count) external payable { uint balance = myoots.balanceOf(msg.sender); uint256 s = totalSupply(); require(holderAdoptionEnabled, "Adoption not possible yet"); require(count <= 50, "Cannot adopt more than 50 doggos at once"); require(msg.value >= 0, "Please fill in the exact ETH amount"); require(s + count <= maxSupply, "Too late, all doggos have found an owner"); require(count <= balance - _adoptedHolderAmount[msg.sender], "You can only adopt as many doggos as MYOOTS you're holding"); _adoptedHolderAmount[msg.sender] += count; _safeMint(msg.sender, count); delete s; } function mint(uint256 count) external payable { uint256 cost = price; uint256 s = totalSupply(); bool isFree = ((totalFreeMinted + count < totalFree + 1) && (_mintedFreeAmount[msg.sender] < maxFreePerWallet)); if (isFree) { require(mintEnabled, "Mint is not live yet"); require(s + count <= maxSupply, "No more"); require(count <= maxPerTx, "Max per transaction reached."); if(count >= (maxFreePerWallet - _mintedFreeAmount[msg.sender])) { require(msg.value >= (count * cost) - ((maxFreePerWallet - _mintedFreeAmount[msg.sender]) * cost), "Please fill in the exact ETH amount"); _mintedFreeAmount[msg.sender] = maxFreePerWallet; totalFreeMinted += maxFreePerWallet; } else if(count < (maxFreePerWallet - _mintedFreeAmount[msg.sender])) { require(msg.value >= 0, "Please fill in the exact ETH amount"); _mintedFreeAmount[msg.sender] += count; totalFreeMinted += count; } } else{ require(mintEnabled, "Mint is not live yet"); require(msg.value >= count * cost, "Please fill in the exact ETH amount"); require(s + count <= maxSupply, "All doggos have found an owner"); require(count <= maxPerTx, "Max per TX reached."); } _safeMint(msg.sender, count); delete s; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); return string(abi.encodePacked(baseURI, tokenId.toString(), ".json")); } function setBaseURI(string memory uri) public onlyOwner { baseURI = uri; } function setFreeAmount(uint256 amount) external onlyOwner { totalFree = amount; } function setPrice(uint256 _newPrice) external onlyOwner { price = _newPrice; } function toggleHolderAdoption() external onlyOwner { holderAdoptionEnabled = !holderAdoptionEnabled; } function toggleMint() external onlyOwner { mintEnabled = !mintEnabled; } function withdraw() external onlyOwner { (bool success, ) = payable(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":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"adoptHolderOnly","outputs":[],"stateMutability":"payable","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":[],"name":"holderAdoptionEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxFreePerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"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":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setFreeAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setPrice","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":[],"name":"toggleHolderAdoption","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFree","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFreeMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
600980546001600160a01b031916733059955684071b412bd8e6f1506577ac11ddd69217905560e06040526032608081815290620021ae60a03980516200004f91600a916020909101906200016b565b5066038d7ea4c68000600b556014600c556001600d819055611388600e55612710600f556010805460ff1916909117905560006011553480156200009257600080fd5b50604080518082018252600f81526e3c98183a39a1b0b734b732a1b63ab160891b602080830191825283518085019094526008845267444f47594f4f545360c01b908401528151919291620000ea916002916200016b565b508051620001009060039060208401906200016b565b5050600160005550620001133362000119565b6200024e565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001799062000211565b90600052602060002090601f0160209004810192826200019d5760008555620001e8565b82601f10620001b857805160ff1916838001178555620001e8565b82800160010185558215620001e8579182015b82811115620001e8578251825591602001919060010190620001cb565b50620001f6929150620001fa565b5090565b5b80821115620001f65760008155600101620001fb565b600181811c908216806200022657607f821691505b602082108114156200024857634e487b7160e01b600052602260045260246000fd5b50919050565b611f50806200025e6000396000f3fe6080604052600436106101ee5760003560e01c806392910eec1161010d578063cd613355116100a0578063dad7b5c91161006f578063dad7b5c914610536578063dcabd09c1461054c578063e985e9c51461055f578063f2fde38b146105a8578063f968adbe146105c857600080fd5b8063cd613355146104d7578063d1239730146104ec578063d3dd5fe01461050b578063d5abeb011461052057600080fd5b8063a22cb465116100dc578063a22cb46514610461578063a702735714610481578063b88d4fde14610497578063c87b56dd146104b757600080fd5b806392910eec1461040357806395d89b4114610423578063a035b1fe14610438578063a0712d681461044e57600080fd5b80633ccfd60b1161018557806370a082311161015457806370a0823114610390578063715018a6146103b05780638da5cb5b146103c557806391b7f5ed146103e357600080fd5b80633ccfd60b1461031b57806342842e0e1461033057806355f804b3146103505780636352211e1461037057600080fd5b806317b652d7116101c157806317b652d7146102a457806318160ddd146102be57806323b872dd146102e5578063333e44e61461030557600080fd5b806301ffc9a7146101f357806306fdde0314610228578063081812fc1461024a578063095ea7b314610282575b600080fd5b3480156101ff57600080fd5b5061021361020e366004611b34565b6105de565b60405190151581526020015b60405180910390f35b34801561023457600080fd5b5061023d610630565b60405161021f9190611d29565b34801561025657600080fd5b5061026a610265366004611bb7565b6106c2565b6040516001600160a01b03909116815260200161021f565b34801561028e57600080fd5b506102a261029d366004611b0a565b610706565b005b3480156102b057600080fd5b506010546102139060ff1681565b3480156102ca57600080fd5b5060015460005403600019015b60405190815260200161021f565b3480156102f157600080fd5b506102a2610300366004611a16565b6107d9565b34801561031157600080fd5b506102d7600e5481565b34801561032757600080fd5b506102a26107e9565b34801561033c57600080fd5b506102a261034b366004611a16565b6108aa565b34801561035c57600080fd5b506102a261036b366004611b6e565b6108c5565b34801561037c57600080fd5b5061026a61038b366004611bb7565b610906565b34801561039c57600080fd5b506102d76103ab3660046119c8565b610911565b3480156103bc57600080fd5b506102a2610960565b3480156103d157600080fd5b506008546001600160a01b031661026a565b3480156103ef57600080fd5b506102a26103fe366004611bb7565b610996565b34801561040f57600080fd5b506102a261041e366004611bb7565b6109c5565b34801561042f57600080fd5b5061023d6109f4565b34801561044457600080fd5b506102d7600b5481565b6102a261045c366004611bb7565b610a03565b34801561046d57600080fd5b506102a261047c366004611ace565b610d81565b34801561048d57600080fd5b506102d7600d5481565b3480156104a357600080fd5b506102a26104b2366004611a52565b610e17565b3480156104c357600080fd5b5061023d6104d2366004611bb7565b610e5b565b3480156104e357600080fd5b506102a2610efc565b3480156104f857600080fd5b5060105461021390610100900460ff1681565b34801561051757600080fd5b506102a2610f3a565b34801561052c57600080fd5b506102d7600f5481565b34801561054257600080fd5b506102d760115481565b6102a261055a366004611bb7565b610f81565b34801561056b57600080fd5b5061021361057a3660046119e3565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156105b457600080fd5b506102a26105c33660046119c8565b6111ea565b3480156105d457600080fd5b506102d7600c5481565b60006301ffc9a760e01b6001600160e01b03198316148061060f57506380ac58cd60e01b6001600160e01b03198316145b8061062a5750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461063f90611e42565b80601f016020809104026020016040519081016040528092919081815260200182805461066b90611e42565b80156106b85780601f1061068d576101008083540402835291602001916106b8565b820191906000526020600020905b81548152906001019060200180831161069b57829003601f168201915b5050505050905090565b60006106cd82611282565b6106ea576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610711826112b7565b9050806001600160a01b0316836001600160a01b031614156107465760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b0382161461077d57610760813361057a565b61077d576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6107e4838383611327565b505050565b6008546001600160a01b0316331461081c5760405162461bcd60e51b815260040161081390611d7f565b60405180910390fd5b604051600090339047908381818185875af1925050503d806000811461085e576040519150601f19603f3d011682016040523d82523d6000602084013e610863565b606091505b50509050806108a75760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610813565b50565b6107e483838360405180602001604052806000815250610e17565b6008546001600160a01b031633146108ef5760405162461bcd60e51b815260040161081390611d7f565b805161090290600a90602084019061189d565b5050565b600061062a826112b7565b60006001600160a01b03821661093a576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b0316331461098a5760405162461bcd60e51b815260040161081390611d7f565b61099460006114ca565b565b6008546001600160a01b031633146109c05760405162461bcd60e51b815260040161081390611d7f565b600b55565b6008546001600160a01b031633146109ef5760405162461bcd60e51b815260040161081390611d7f565b600e55565b60606003805461063f90611e42565b600b546000610a1b6001546000546000199190030190565b90506000600e546001610a2e9190611db4565b84601154610a3c9190611db4565b108015610a595750600d5433600090815260126020526040902054105b90508015610c5757601054610100900460ff16610aaf5760405162461bcd60e51b8152602060048201526014602482015273135a5b9d081a5cc81b9bdd081b1a5d99481e595d60621b6044820152606401610813565b600f54610abc8584611db4565b1115610af45760405162461bcd60e51b81526020600482015260076024820152664e6f206d6f726560c81b6044820152606401610813565b600c54841115610b465760405162461bcd60e51b815260206004820152601c60248201527f4d617820706572207472616e73616374696f6e20726561636865642e000000006044820152606401610813565b33600090815260126020526040902054600d54610b639190611dff565b8410610bf65733600090815260126020526040902054600d548491610b8791611dff565b610b919190611de0565b610b9b8486611de0565b610ba59190611dff565b341015610bc45760405162461bcd60e51b815260040161081390611d3c565b600d5433600090815260126020526040812082905560118054909190610beb908490611db4565b90915550610d719050565b33600090815260126020526040902054600d54610c139190611dff565b841015610c52573360009081526012602052604081208054869290610c39908490611db4565b925050819055508360116000828254610beb9190611db4565b610d71565b601054610100900460ff16610ca55760405162461bcd60e51b8152602060048201526014602482015273135a5b9d081a5cc81b9bdd081b1a5d99481e595d60621b6044820152606401610813565b610caf8385611de0565b341015610cce5760405162461bcd60e51b815260040161081390611d3c565b600f54610cdb8584611db4565b1115610d295760405162461bcd60e51b815260206004820152601e60248201527f416c6c20646f67676f73206861766520666f756e6420616e206f776e657200006044820152606401610813565b600c54841115610d715760405162461bcd60e51b815260206004820152601360248201527226b0bc103832b9102a2c103932b0b1b432b21760691b6044820152606401610813565b610d7b338561151c565b50505050565b6001600160a01b038216331415610dab5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610e22848484611327565b6001600160a01b0383163b15610d7b57610e3e84848484611536565b610d7b576040516368d2bf6b60e11b815260040160405180910390fd5b6060610e6682611282565b610eca5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610813565b600a610ed58361162e565b604051602001610ee6929190611c31565b6040516020818303038152906040529050919050565b6008546001600160a01b03163314610f265760405162461bcd60e51b815260040161081390611d7f565b6010805460ff19811660ff90911615179055565b6008546001600160a01b03163314610f645760405162461bcd60e51b815260040161081390611d7f565b6010805461ff001981166101009182900460ff1615909102179055565b6009546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015610fc557600080fd5b505afa158015610fd9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ffd9190611bd0565b60015460005460105492935003600019019060ff1661105e5760405162461bcd60e51b815260206004820152601960248201527f41646f7074696f6e206e6f7420706f737369626c6520796574000000000000006044820152606401610813565b60328311156110c05760405162461bcd60e51b815260206004820152602860248201527f43616e6e6f742061646f7074206d6f7265207468616e20353020646f67676f73604482015267206174206f6e636560c01b6064820152608401610813565b600f546110cd8483611db4565b111561112c5760405162461bcd60e51b815260206004820152602860248201527f546f6f206c6174652c20616c6c20646f67676f73206861766520666f756e642060448201526730b71037bbb732b960c11b6064820152608401610813565b336000908152601360205260409020546111469083611dff565b8311156111bb5760405162461bcd60e51b815260206004820152603a60248201527f596f752063616e206f6e6c792061646f7074206173206d616e7920646f67676f60448201527f73206173204d594f4f545320796f7527726520686f6c64696e670000000000006064820152608401610813565b33600090815260136020526040812080548592906111da908490611db4565b909155506107e49050338461151c565b6008546001600160a01b031633146112145760405162461bcd60e51b815260040161081390611d7f565b6001600160a01b0381166112795760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610813565b6108a7816114ca565b600081600111158015611296575060005482105b801561062a575050600090815260046020526040902054600160e01b161590565b6000818060011161130e5760005481101561130e57600081815260046020526040902054600160e01b811661130c575b806113055750600019016000818152600460205260409020546112e7565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b6000611332826112b7565b9050836001600160a01b0316816001600160a01b0316146113655760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806113835750611383853361057a565b8061139e575033611393846106c2565b6001600160a01b0316145b9050806113be57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0384166113e557604051633a954ecd60e21b815260040160405180910390fd5b600083815260066020908152604080832080546001600160a01b03191690556001600160a01b038881168452600583528184208054600019019055871683528083208054600101905585835260049091529020600160e11b4260a01b86178117909155821661148257600183016000818152600460205260409020546114805760005481146114805760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61090282826040518060200160405280600081525061172c565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061156b903390899088908890600401611cec565b602060405180830381600087803b15801561158557600080fd5b505af19250505080156115b5575060408051601f3d908101601f191682019092526115b291810190611b51565b60015b611610573d8080156115e3576040519150601f19603f3d011682016040523d82523d6000602084013e6115e8565b606091505b508051611608576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060816116525750506040805180820190915260018152600360fc1b602082015290565b8160005b811561167c578061166681611e7d565b91506116759050600a83611dcc565b9150611656565b60008167ffffffffffffffff81111561169757611697611eee565b6040519080825280601f01601f1916602001820160405280156116c1576020820181803683370190505b5090505b8415611626576116d6600183611dff565b91506116e3600a86611e98565b6116ee906030611db4565b60f81b81838151811061170357611703611ed8565b60200101906001600160f81b031916908160001a905350611725600a86611dcc565b94506116c5565b6000546001600160a01b03841661175557604051622e076360e81b815260040160405180910390fd5b826117735760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03841660008181526005602090815260408083208054680100000000000000018902019055848352600490915290204260a01b86176001861460e11b1790558190818501903b15611848575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46118116000878480600101955087611536565b61182e576040516368d2bf6b60e11b815260040160405180910390fd5b8082106117c657826000541461184357600080fd5b61188d565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210611849575b506000908155610d7b9085838684565b8280546118a990611e42565b90600052602060002090601f0160209004810192826118cb5760008555611911565b82601f106118e457805160ff1916838001178555611911565b82800160010185558215611911579182015b828111156119115782518255916020019190600101906118f6565b5061191d929150611921565b5090565b5b8082111561191d5760008155600101611922565b600067ffffffffffffffff8084111561195157611951611eee565b604051601f8501601f19908116603f0116810190828211818310171561197957611979611eee565b8160405280935085815286868601111561199257600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b03811681146119c357600080fd5b919050565b6000602082840312156119da57600080fd5b611305826119ac565b600080604083850312156119f657600080fd5b6119ff836119ac565b9150611a0d602084016119ac565b90509250929050565b600080600060608486031215611a2b57600080fd5b611a34846119ac565b9250611a42602085016119ac565b9150604084013590509250925092565b60008060008060808587031215611a6857600080fd5b611a71856119ac565b9350611a7f602086016119ac565b925060408501359150606085013567ffffffffffffffff811115611aa257600080fd5b8501601f81018713611ab357600080fd5b611ac287823560208401611936565b91505092959194509250565b60008060408385031215611ae157600080fd5b611aea836119ac565b915060208301358015158114611aff57600080fd5b809150509250929050565b60008060408385031215611b1d57600080fd5b611b26836119ac565b946020939093013593505050565b600060208284031215611b4657600080fd5b813561130581611f04565b600060208284031215611b6357600080fd5b815161130581611f04565b600060208284031215611b8057600080fd5b813567ffffffffffffffff811115611b9757600080fd5b8201601f81018413611ba857600080fd5b61162684823560208401611936565b600060208284031215611bc957600080fd5b5035919050565b600060208284031215611be257600080fd5b5051919050565b60008151808452611c01816020860160208601611e16565b601f01601f19169290920160200192915050565b60008151611c27818560208601611e16565b9290920192915050565b600080845481600182811c915080831680611c4d57607f831692505b6020808410821415611c6d57634e487b7160e01b86526022600452602486fd5b818015611c815760018114611c9257611cbf565b60ff19861689528489019650611cbf565b60008b81526020902060005b86811015611cb75781548b820152908501908301611c9e565b505084890196505b505050505050611ce3611cd28286611c15565b64173539b7b760d91b815260050190565b95945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611d1f90830184611be9565b9695505050505050565b6020815260006113056020830184611be9565b60208082526023908201527f506c656173652066696c6c20696e207468652065786163742045544820616d6f6040820152621d5b9d60ea1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115611dc757611dc7611eac565b500190565b600082611ddb57611ddb611ec2565b500490565b6000816000190483118215151615611dfa57611dfa611eac565b500290565b600082821015611e1157611e11611eac565b500390565b60005b83811015611e31578181015183820152602001611e19565b83811115610d7b5750506000910152565b600181811c90821680611e5657607f821691505b60208210811415611e7757634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611e9157611e91611eac565b5060010190565b600082611ea757611ea7611ec2565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146108a757600080fdfea2646970667358221220cf54de062f9077cbc5aca0febaca7a1a5ad77170f5382f7916c972684c5b902764736f6c6343000807003368747470733a2f2f793030747363616e696e65636c75622e73332e616d617a6f6e6177732e636f6d2f6d657461646174612f
Deployed Bytecode
0x6080604052600436106101ee5760003560e01c806392910eec1161010d578063cd613355116100a0578063dad7b5c91161006f578063dad7b5c914610536578063dcabd09c1461054c578063e985e9c51461055f578063f2fde38b146105a8578063f968adbe146105c857600080fd5b8063cd613355146104d7578063d1239730146104ec578063d3dd5fe01461050b578063d5abeb011461052057600080fd5b8063a22cb465116100dc578063a22cb46514610461578063a702735714610481578063b88d4fde14610497578063c87b56dd146104b757600080fd5b806392910eec1461040357806395d89b4114610423578063a035b1fe14610438578063a0712d681461044e57600080fd5b80633ccfd60b1161018557806370a082311161015457806370a0823114610390578063715018a6146103b05780638da5cb5b146103c557806391b7f5ed146103e357600080fd5b80633ccfd60b1461031b57806342842e0e1461033057806355f804b3146103505780636352211e1461037057600080fd5b806317b652d7116101c157806317b652d7146102a457806318160ddd146102be57806323b872dd146102e5578063333e44e61461030557600080fd5b806301ffc9a7146101f357806306fdde0314610228578063081812fc1461024a578063095ea7b314610282575b600080fd5b3480156101ff57600080fd5b5061021361020e366004611b34565b6105de565b60405190151581526020015b60405180910390f35b34801561023457600080fd5b5061023d610630565b60405161021f9190611d29565b34801561025657600080fd5b5061026a610265366004611bb7565b6106c2565b6040516001600160a01b03909116815260200161021f565b34801561028e57600080fd5b506102a261029d366004611b0a565b610706565b005b3480156102b057600080fd5b506010546102139060ff1681565b3480156102ca57600080fd5b5060015460005403600019015b60405190815260200161021f565b3480156102f157600080fd5b506102a2610300366004611a16565b6107d9565b34801561031157600080fd5b506102d7600e5481565b34801561032757600080fd5b506102a26107e9565b34801561033c57600080fd5b506102a261034b366004611a16565b6108aa565b34801561035c57600080fd5b506102a261036b366004611b6e565b6108c5565b34801561037c57600080fd5b5061026a61038b366004611bb7565b610906565b34801561039c57600080fd5b506102d76103ab3660046119c8565b610911565b3480156103bc57600080fd5b506102a2610960565b3480156103d157600080fd5b506008546001600160a01b031661026a565b3480156103ef57600080fd5b506102a26103fe366004611bb7565b610996565b34801561040f57600080fd5b506102a261041e366004611bb7565b6109c5565b34801561042f57600080fd5b5061023d6109f4565b34801561044457600080fd5b506102d7600b5481565b6102a261045c366004611bb7565b610a03565b34801561046d57600080fd5b506102a261047c366004611ace565b610d81565b34801561048d57600080fd5b506102d7600d5481565b3480156104a357600080fd5b506102a26104b2366004611a52565b610e17565b3480156104c357600080fd5b5061023d6104d2366004611bb7565b610e5b565b3480156104e357600080fd5b506102a2610efc565b3480156104f857600080fd5b5060105461021390610100900460ff1681565b34801561051757600080fd5b506102a2610f3a565b34801561052c57600080fd5b506102d7600f5481565b34801561054257600080fd5b506102d760115481565b6102a261055a366004611bb7565b610f81565b34801561056b57600080fd5b5061021361057a3660046119e3565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156105b457600080fd5b506102a26105c33660046119c8565b6111ea565b3480156105d457600080fd5b506102d7600c5481565b60006301ffc9a760e01b6001600160e01b03198316148061060f57506380ac58cd60e01b6001600160e01b03198316145b8061062a5750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461063f90611e42565b80601f016020809104026020016040519081016040528092919081815260200182805461066b90611e42565b80156106b85780601f1061068d576101008083540402835291602001916106b8565b820191906000526020600020905b81548152906001019060200180831161069b57829003601f168201915b5050505050905090565b60006106cd82611282565b6106ea576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610711826112b7565b9050806001600160a01b0316836001600160a01b031614156107465760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b0382161461077d57610760813361057a565b61077d576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6107e4838383611327565b505050565b6008546001600160a01b0316331461081c5760405162461bcd60e51b815260040161081390611d7f565b60405180910390fd5b604051600090339047908381818185875af1925050503d806000811461085e576040519150601f19603f3d011682016040523d82523d6000602084013e610863565b606091505b50509050806108a75760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610813565b50565b6107e483838360405180602001604052806000815250610e17565b6008546001600160a01b031633146108ef5760405162461bcd60e51b815260040161081390611d7f565b805161090290600a90602084019061189d565b5050565b600061062a826112b7565b60006001600160a01b03821661093a576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b0316331461098a5760405162461bcd60e51b815260040161081390611d7f565b61099460006114ca565b565b6008546001600160a01b031633146109c05760405162461bcd60e51b815260040161081390611d7f565b600b55565b6008546001600160a01b031633146109ef5760405162461bcd60e51b815260040161081390611d7f565b600e55565b60606003805461063f90611e42565b600b546000610a1b6001546000546000199190030190565b90506000600e546001610a2e9190611db4565b84601154610a3c9190611db4565b108015610a595750600d5433600090815260126020526040902054105b90508015610c5757601054610100900460ff16610aaf5760405162461bcd60e51b8152602060048201526014602482015273135a5b9d081a5cc81b9bdd081b1a5d99481e595d60621b6044820152606401610813565b600f54610abc8584611db4565b1115610af45760405162461bcd60e51b81526020600482015260076024820152664e6f206d6f726560c81b6044820152606401610813565b600c54841115610b465760405162461bcd60e51b815260206004820152601c60248201527f4d617820706572207472616e73616374696f6e20726561636865642e000000006044820152606401610813565b33600090815260126020526040902054600d54610b639190611dff565b8410610bf65733600090815260126020526040902054600d548491610b8791611dff565b610b919190611de0565b610b9b8486611de0565b610ba59190611dff565b341015610bc45760405162461bcd60e51b815260040161081390611d3c565b600d5433600090815260126020526040812082905560118054909190610beb908490611db4565b90915550610d719050565b33600090815260126020526040902054600d54610c139190611dff565b841015610c52573360009081526012602052604081208054869290610c39908490611db4565b925050819055508360116000828254610beb9190611db4565b610d71565b601054610100900460ff16610ca55760405162461bcd60e51b8152602060048201526014602482015273135a5b9d081a5cc81b9bdd081b1a5d99481e595d60621b6044820152606401610813565b610caf8385611de0565b341015610cce5760405162461bcd60e51b815260040161081390611d3c565b600f54610cdb8584611db4565b1115610d295760405162461bcd60e51b815260206004820152601e60248201527f416c6c20646f67676f73206861766520666f756e6420616e206f776e657200006044820152606401610813565b600c54841115610d715760405162461bcd60e51b815260206004820152601360248201527226b0bc103832b9102a2c103932b0b1b432b21760691b6044820152606401610813565b610d7b338561151c565b50505050565b6001600160a01b038216331415610dab5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610e22848484611327565b6001600160a01b0383163b15610d7b57610e3e84848484611536565b610d7b576040516368d2bf6b60e11b815260040160405180910390fd5b6060610e6682611282565b610eca5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610813565b600a610ed58361162e565b604051602001610ee6929190611c31565b6040516020818303038152906040529050919050565b6008546001600160a01b03163314610f265760405162461bcd60e51b815260040161081390611d7f565b6010805460ff19811660ff90911615179055565b6008546001600160a01b03163314610f645760405162461bcd60e51b815260040161081390611d7f565b6010805461ff001981166101009182900460ff1615909102179055565b6009546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015610fc557600080fd5b505afa158015610fd9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ffd9190611bd0565b60015460005460105492935003600019019060ff1661105e5760405162461bcd60e51b815260206004820152601960248201527f41646f7074696f6e206e6f7420706f737369626c6520796574000000000000006044820152606401610813565b60328311156110c05760405162461bcd60e51b815260206004820152602860248201527f43616e6e6f742061646f7074206d6f7265207468616e20353020646f67676f73604482015267206174206f6e636560c01b6064820152608401610813565b600f546110cd8483611db4565b111561112c5760405162461bcd60e51b815260206004820152602860248201527f546f6f206c6174652c20616c6c20646f67676f73206861766520666f756e642060448201526730b71037bbb732b960c11b6064820152608401610813565b336000908152601360205260409020546111469083611dff565b8311156111bb5760405162461bcd60e51b815260206004820152603a60248201527f596f752063616e206f6e6c792061646f7074206173206d616e7920646f67676f60448201527f73206173204d594f4f545320796f7527726520686f6c64696e670000000000006064820152608401610813565b33600090815260136020526040812080548592906111da908490611db4565b909155506107e49050338461151c565b6008546001600160a01b031633146112145760405162461bcd60e51b815260040161081390611d7f565b6001600160a01b0381166112795760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610813565b6108a7816114ca565b600081600111158015611296575060005482105b801561062a575050600090815260046020526040902054600160e01b161590565b6000818060011161130e5760005481101561130e57600081815260046020526040902054600160e01b811661130c575b806113055750600019016000818152600460205260409020546112e7565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b6000611332826112b7565b9050836001600160a01b0316816001600160a01b0316146113655760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806113835750611383853361057a565b8061139e575033611393846106c2565b6001600160a01b0316145b9050806113be57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0384166113e557604051633a954ecd60e21b815260040160405180910390fd5b600083815260066020908152604080832080546001600160a01b03191690556001600160a01b038881168452600583528184208054600019019055871683528083208054600101905585835260049091529020600160e11b4260a01b86178117909155821661148257600183016000818152600460205260409020546114805760005481146114805760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61090282826040518060200160405280600081525061172c565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061156b903390899088908890600401611cec565b602060405180830381600087803b15801561158557600080fd5b505af19250505080156115b5575060408051601f3d908101601f191682019092526115b291810190611b51565b60015b611610573d8080156115e3576040519150601f19603f3d011682016040523d82523d6000602084013e6115e8565b606091505b508051611608576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060816116525750506040805180820190915260018152600360fc1b602082015290565b8160005b811561167c578061166681611e7d565b91506116759050600a83611dcc565b9150611656565b60008167ffffffffffffffff81111561169757611697611eee565b6040519080825280601f01601f1916602001820160405280156116c1576020820181803683370190505b5090505b8415611626576116d6600183611dff565b91506116e3600a86611e98565b6116ee906030611db4565b60f81b81838151811061170357611703611ed8565b60200101906001600160f81b031916908160001a905350611725600a86611dcc565b94506116c5565b6000546001600160a01b03841661175557604051622e076360e81b815260040160405180910390fd5b826117735760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03841660008181526005602090815260408083208054680100000000000000018902019055848352600490915290204260a01b86176001861460e11b1790558190818501903b15611848575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46118116000878480600101955087611536565b61182e576040516368d2bf6b60e11b815260040160405180910390fd5b8082106117c657826000541461184357600080fd5b61188d565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210611849575b506000908155610d7b9085838684565b8280546118a990611e42565b90600052602060002090601f0160209004810192826118cb5760008555611911565b82601f106118e457805160ff1916838001178555611911565b82800160010185558215611911579182015b828111156119115782518255916020019190600101906118f6565b5061191d929150611921565b5090565b5b8082111561191d5760008155600101611922565b600067ffffffffffffffff8084111561195157611951611eee565b604051601f8501601f19908116603f0116810190828211818310171561197957611979611eee565b8160405280935085815286868601111561199257600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b03811681146119c357600080fd5b919050565b6000602082840312156119da57600080fd5b611305826119ac565b600080604083850312156119f657600080fd5b6119ff836119ac565b9150611a0d602084016119ac565b90509250929050565b600080600060608486031215611a2b57600080fd5b611a34846119ac565b9250611a42602085016119ac565b9150604084013590509250925092565b60008060008060808587031215611a6857600080fd5b611a71856119ac565b9350611a7f602086016119ac565b925060408501359150606085013567ffffffffffffffff811115611aa257600080fd5b8501601f81018713611ab357600080fd5b611ac287823560208401611936565b91505092959194509250565b60008060408385031215611ae157600080fd5b611aea836119ac565b915060208301358015158114611aff57600080fd5b809150509250929050565b60008060408385031215611b1d57600080fd5b611b26836119ac565b946020939093013593505050565b600060208284031215611b4657600080fd5b813561130581611f04565b600060208284031215611b6357600080fd5b815161130581611f04565b600060208284031215611b8057600080fd5b813567ffffffffffffffff811115611b9757600080fd5b8201601f81018413611ba857600080fd5b61162684823560208401611936565b600060208284031215611bc957600080fd5b5035919050565b600060208284031215611be257600080fd5b5051919050565b60008151808452611c01816020860160208601611e16565b601f01601f19169290920160200192915050565b60008151611c27818560208601611e16565b9290920192915050565b600080845481600182811c915080831680611c4d57607f831692505b6020808410821415611c6d57634e487b7160e01b86526022600452602486fd5b818015611c815760018114611c9257611cbf565b60ff19861689528489019650611cbf565b60008b81526020902060005b86811015611cb75781548b820152908501908301611c9e565b505084890196505b505050505050611ce3611cd28286611c15565b64173539b7b760d91b815260050190565b95945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611d1f90830184611be9565b9695505050505050565b6020815260006113056020830184611be9565b60208082526023908201527f506c656173652066696c6c20696e207468652065786163742045544820616d6f6040820152621d5b9d60ea1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115611dc757611dc7611eac565b500190565b600082611ddb57611ddb611ec2565b500490565b6000816000190483118215151615611dfa57611dfa611eac565b500290565b600082821015611e1157611e11611eac565b500390565b60005b83811015611e31578181015183820152602001611e19565b83811115610d7b5750506000910152565b600181811c90821680611e5657607f821691505b60208210811415611e7757634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611e9157611e91611eac565b5060010190565b600082611ea757611ea7611ec2565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146108a757600080fdfea2646970667358221220cf54de062f9077cbc5aca0febaca7a1a5ad77170f5382f7916c972684c5b902764736f6c63430008070033
Deployed Bytecode Sourcemap
76746:4036:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13158:615;;;;;;;;;;-1:-1:-1;13158:615:0;;;;;:::i;:::-;;:::i;:::-;;;7184:14:1;;7177:22;7159:41;;7147:2;7132:18;13158:615:0;;;;;;;;18171:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;20239:204::-;;;;;;;;;;-1:-1:-1;20239:204:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;6482:32:1;;;6464:51;;6452:2;6437:18;20239:204:0;6318:203:1;19699:474:0;;;;;;;;;;-1:-1:-1;19699:474:0;;;;;:::i;:::-;;:::i;:::-;;77204:40;;;;;;;;;;-1:-1:-1;77204:40:0;;;;;;;;12212:315;;;;;;;;;;-1:-1:-1;11818:1:0;12478:12;12265:7;12462:13;:28;-1:-1:-1;;12462:46:0;12212:315;;;12861:25:1;;;12849:2;12834:18;12212:315:0;12715:177:1;21125:170:0;;;;;;;;;;-1:-1:-1;21125:170:0;;;;;:::i;:::-;;:::i;77123:31::-;;;;;;;;;;;;;;;;80571:206;;;;;;;;;;;;;:::i;21366:185::-;;;;;;;;;;-1:-1:-1;21366:185:0;;;;;:::i;:::-;;:::i;80054:88::-;;;;;;;;;;-1:-1:-1;80054:88:0;;;;;:::i;:::-;;:::i;17960:144::-;;;;;;;;;;-1:-1:-1;17960:144:0;;;;;:::i;:::-;;:::i;13837:224::-;;;;;;;;;;-1:-1:-1;13837:224:0;;;;;:::i;:::-;;:::i;43679:103::-;;;;;;;;;;;;;:::i;43028:87::-;;;;;;;;;;-1:-1:-1;43101:6:0;;-1:-1:-1;;;;;43101:6:0;43028:87;;80253:92;;;;;;;;;;-1:-1:-1;80253:92:0;;;;;:::i;:::-;;:::i;80150:95::-;;;;;;;;;;-1:-1:-1;80150:95:0;;;;;:::i;:::-;;:::i;18340:104::-;;;;;;;;;;;;;:::i;76999:34::-;;;;;;;;;;;;;;;;78228:1501;;;;;;:::i;:::-;;:::i;20515:308::-;;;;;;;;;;-1:-1:-1;20515:308:0;;;;;:::i;:::-;;:::i;77079:35::-;;;;;;;;;;;;;;;;21622:396;;;;;;;;;;-1:-1:-1;21622:396:0;;;;;:::i;:::-;;:::i;79737:309::-;;;;;;;;;;-1:-1:-1;79737:309:0;;;;;:::i;:::-;;:::i;80353:116::-;;;;;;;;;;;;;:::i;77253:23::-;;;;;;;;;;-1:-1:-1;77253:23:0;;;;;;;;;;;80477:86;;;;;;;;;;;;;:::i;77163:32::-;;;;;;;;;;;;;;;;77285:31;;;;;;;;;;;;;;;;77514:706;;;;;;:::i;:::-;;:::i;20894:164::-;;;;;;;;;;-1:-1:-1;20894:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;21015:25:0;;;20991:4;21015:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;20894:164;43937:201;;;;;;;;;;-1:-1:-1;43937:201:0;;;;;:::i;:::-;;:::i;77042:28::-;;;;;;;;;;;;;;;;13158:615;13243:4;-1:-1:-1;;;;;;;;;13543:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;13620:25:0;;;13543:102;:179;;;-1:-1:-1;;;;;;;;;;13697:25:0;;;13543:179;13523:199;13158:615;-1:-1:-1;;13158:615:0:o;18171:100::-;18225:13;18258:5;18251:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18171:100;:::o;20239:204::-;20307:7;20332:16;20340:7;20332;:16::i;:::-;20327:64;;20357:34;;-1:-1:-1;;;20357:34:0;;;;;;;;;;;20327:64;-1:-1:-1;20411:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;20411:24:0;;20239:204::o;19699:474::-;19772:13;19804:27;19823:7;19804:18;:27::i;:::-;19772:61;;19854:5;-1:-1:-1;;;;;19848:11:0;:2;-1:-1:-1;;;;;19848:11:0;;19844:48;;;19868:24;;-1:-1:-1;;;19868:24:0;;;;;;;;;;;19844:48;36342:10;-1:-1:-1;;;;;19909:28:0;;;19905:175;;19957:44;19974:5;36342:10;20894:164;:::i;19957:44::-;19952:128;;20029:35;;-1:-1:-1;;;20029:35:0;;;;;;;;;;;19952:128;20092:24;;;;:15;:24;;;;;;:29;;-1:-1:-1;;;;;;20092:29:0;-1:-1:-1;;;;;20092:29:0;;;;;;;;;20137:28;;20092:24;;20137:28;;;;;;;19761:412;19699:474;;:::o;21125:170::-;21259:28;21269:4;21275:2;21279:7;21259:9;:28::i;:::-;21125:170;;;:::o;80571:206::-;43101:6;;-1:-1:-1;;;;;43101:6:0;36342:10;43248:23;43240:68;;;;-1:-1:-1;;;43240:68:0;;;;;;;:::i;:::-;;;;;;;;;80640:82:::1;::::0;80622:12:::1;::::0;80648:10:::1;::::0;80686:21:::1;::::0;80622:12;80640:82;80622:12;80640:82;80686:21;80648:10;80640:82:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80621:101;;;80741:7;80733:36;;;::::0;-1:-1:-1;;;80733:36:0;;11102:2:1;80733:36:0::1;::::0;::::1;11084:21:1::0;11141:2;11121:18;;;11114:30;-1:-1:-1;;;11160:18:1;;;11153:46;11216:18;;80733:36:0::1;10900:340:1::0;80733:36:0::1;80610:167;80571:206::o:0;21366:185::-;21504:39;21521:4;21527:2;21531:7;21504:39;;;;;;;;;;;;:16;:39::i;80054:88::-;43101:6;;-1:-1:-1;;;;;43101:6:0;36342:10;43248:23;43240:68;;;;-1:-1:-1;;;43240:68:0;;;;;;;:::i;:::-;80121:13;;::::1;::::0;:7:::1;::::0;:13:::1;::::0;::::1;::::0;::::1;:::i;:::-;;80054:88:::0;:::o;17960:144::-;18024:7;18067:27;18086:7;18067:18;:27::i;13837:224::-;13901:7;-1:-1:-1;;;;;13925:19:0;;13921:60;;13953:28;;-1:-1:-1;;;13953:28:0;;;;;;;;;;;13921:60;-1:-1:-1;;;;;;13999:25:0;;;;;:18;:25;;;;;;9176:13;13999:54;;13837:224::o;43679:103::-;43101:6;;-1:-1:-1;;;;;43101:6:0;36342:10;43248:23;43240:68;;;;-1:-1:-1;;;43240:68:0;;;;;;;:::i;:::-;43744:30:::1;43771:1;43744:18;:30::i;:::-;43679:103::o:0;80253:92::-;43101:6;;-1:-1:-1;;;;;43101:6:0;36342:10;43248:23;43240:68;;;;-1:-1:-1;;;43240:68:0;;;;;;;:::i;:::-;80320:5:::1;:17:::0;80253:92::o;80150:95::-;43101:6;;-1:-1:-1;;;;;43101:6:0;36342:10;43248:23;43240:68;;;;-1:-1:-1;;;43240:68:0;;;;;;;:::i;:::-;80219:9:::1;:18:::0;80150:95::o;18340:104::-;18396:13;18429:7;18422:14;;;;;:::i;78228:1501::-;78300:5;;78285:12;78328:13;11818:1;12478:12;12265:7;12462:13;-1:-1:-1;;12462:28:0;;;:46;;12212:315;78328:13;78316:25;;78352:11;78394:9;;78406:1;78394:13;;;;:::i;:::-;78386:5;78368:15;;:23;;;;:::i;:::-;:39;78367:108;;;;-1:-1:-1;78458:16:0;;78444:10;78426:29;;;;:17;:29;;;;;;:48;78367:108;78352:124;;78493:6;78489:1173;;;78525:11;;;;;;;78517:44;;;;-1:-1:-1;;;78517:44:0;;8041:2:1;78517:44:0;;;8023:21:1;8080:2;8060:18;;;8053:30;-1:-1:-1;;;8099:18:1;;;8092:50;8159:18;;78517:44:0;7839:344:1;78517:44:0;78597:9;;78584;78588:5;78584:1;:9;:::i;:::-;:22;;78576:42;;;;-1:-1:-1;;;78576:42:0;;8390:2:1;78576:42:0;;;8372:21:1;8429:1;8409:18;;;8402:29;-1:-1:-1;;;8447:18:1;;;8440:37;8494:18;;78576:42:0;8188:330:1;78576:42:0;78650:8;;78641:5;:17;;78633:58;;;;-1:-1:-1;;;78633:58:0;;10336:2:1;78633:58:0;;;10318:21:1;10375:2;10355:18;;;10348:30;10414;10394:18;;;10387:58;10462:18;;78633:58:0;10134:352:1;78633:58:0;78756:10;78738:29;;;;:17;:29;;;;;;78719:16;;:48;;78738:29;78719:48;:::i;:::-;78709:5;:59;78706:644;;78876:10;78858:29;;;;:17;:29;;;;;;78839:16;;78891:4;;78839:48;;;:::i;:::-;78838:57;;;;:::i;:::-;78821:12;78829:4;78821:5;:12;:::i;:::-;78820:76;;;;:::i;:::-;78807:9;:89;;78799:137;;;;-1:-1:-1;;;78799:137:0;;;;;;;:::i;:::-;78984:16;;78970:10;78952:29;;;;:17;:29;;;;;:48;;;79016:15;:35;;:15;;78952:29;79016:35;;78984:16;;79016:35;:::i;:::-;;;;-1:-1:-1;78489:1173:0;;-1:-1:-1;78489:1173:0;78706:644;79135:10;79117:29;;;;:17;:29;;;;;;79098:16;;:48;;79117:29;79098:48;:::i;:::-;79089:5;:58;79086:264;;;79274:10;79256:29;;;;:17;:29;;;;;:38;;79289:5;;79256:29;:38;;79289:5;;79256:38;:::i;:::-;;;;;;;;79329:5;79310:15;;:24;;;;;;;:::i;79086:264::-;78489:1173;;;79394:11;;;;;;;79386:44;;;;-1:-1:-1;;;79386:44:0;;8041:2:1;79386:44:0;;;8023:21:1;8080:2;8060:18;;;8053:30;-1:-1:-1;;;8099:18:1;;;8092:50;8159:18;;79386:44:0;7839:344:1;79386:44:0;79462:12;79470:4;79462:5;:12;:::i;:::-;79449:9;:25;;79441:73;;;;-1:-1:-1;;;79441:73:0;;;;;;;:::i;:::-;79546:9;;79533;79537:5;79533:1;:9;:::i;:::-;:22;;79525:65;;;;-1:-1:-1;;;79525:65:0;;12558:2:1;79525:65:0;;;12540:21:1;12597:2;12577:18;;;12570:30;12636:32;12616:18;;;12609:60;12686:18;;79525:65:0;12356:354:1;79525:65:0;79618:8;;79609:5;:17;;79601:49;;;;-1:-1:-1;;;79601:49:0;;11801:2:1;79601:49:0;;;11783:21:1;11840:2;11820:18;;;11813:30;-1:-1:-1;;;11859:18:1;;;11852:49;11918:18;;79601:49:0;11599:343:1;79601:49:0;79674:28;79684:10;79696:5;79674:9;:28::i;:::-;-1:-1:-1;;;;78228:1501:0:o;20515:308::-;-1:-1:-1;;;;;20614:31:0;;36342:10;20614:31;20610:61;;;20654:17;;-1:-1:-1;;;20654:17:0;;;;;;;;;;;20610:61;36342:10;20684:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;20684:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;20684:60:0;;;;;;;;;;20760:55;;7159:41:1;;;20684:49:0;;36342:10;20760:55;;7132:18:1;20760:55:0;;;;;;;20515:308;;:::o;21622:396::-;21789:28;21799:4;21805:2;21809:7;21789:9;:28::i;:::-;-1:-1:-1;;;;;21832:14:0;;;:19;21828:183;;21871:56;21902:4;21908:2;21912:7;21921:5;21871:30;:56::i;:::-;21866:145;;21955:40;;-1:-1:-1;;;21955:40:0;;;;;;;;;;;79737:309;79819:13;79867:16;79875:7;79867;:16::i;:::-;79845:113;;;;-1:-1:-1;;;79845:113:0;;9920:2:1;79845:113:0;;;9902:21:1;9959:2;9939:18;;;9932:30;9998:34;9978:18;;;9971:62;-1:-1:-1;;;10049:18:1;;;10042:45;10104:19;;79845:113:0;9718:411:1;79845:113:0;80000:7;80009:18;:7;:16;:18::i;:::-;79983:54;;;;;;;;;:::i;:::-;;;;;;;;;;;;;79969:69;;79737:309;;;:::o;80353:116::-;43101:6;;-1:-1:-1;;;;;43101:6:0;36342:10;43248:23;43240:68;;;;-1:-1:-1;;;43240:68:0;;;;;;;:::i;:::-;80440:21:::1;::::0;;-1:-1:-1;;80415:46:0;::::1;80440:21;::::0;;::::1;80439:22;80415:46;::::0;;80353:116::o;80477:86::-;43101:6;;-1:-1:-1;;;;;43101:6:0;36342:10;43248:23;43240:68;;;;-1:-1:-1;;;43240:68:0;;;;;;;:::i;:::-;80544:11:::1;::::0;;-1:-1:-1;;80529:26:0;::::1;80544:11;::::0;;;::::1;;;80543:12;80529:26:::0;;::::1;;::::0;;80477:86::o;77514:706::-;77597:6;;:28;;-1:-1:-1;;;77597:28:0;;77614:10;77597:28;;;6464:51:1;77582:12:0;;-1:-1:-1;;;;;77597:6:0;;:16;;6437:18:1;;77597:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;11818:1;12478:12;77636:9;12462:13;77682:21;;77582:43;;-1:-1:-1;12462:28:0;-1:-1:-1;;12462:46:0;;77682:21;;77674:59;;;;-1:-1:-1;;;77674:59:0;;11447:2:1;77674:59:0;;;11429:21:1;11486:2;11466:18;;;11459:30;11525:27;11505:18;;;11498:55;11570:18;;77674:59:0;11245:349:1;77674:59:0;77761:2;77752:5;:11;;77744:64;;;;-1:-1:-1;;;77744:64:0;;10693:2:1;77744:64:0;;;10675:21:1;10732:2;10712:18;;;10705:30;10771:34;10751:18;;;10744:62;-1:-1:-1;;;10822:18:1;;;10815:38;10870:19;;77744:64:0;10491:404:1;77744:64:0;77913:9;;77900;77904:5;77900:1;:9;:::i;:::-;:22;;77892:75;;;;-1:-1:-1;;;77892:75:0;;12149:2:1;77892:75:0;;;12131:21:1;12188:2;12168:18;;;12161:30;12227:34;12207:18;;;12200:62;-1:-1:-1;;;12278:18:1;;;12271:38;12326:19;;77892:75:0;11947:404:1;77892:75:0;78026:10;78005:32;;;;:20;:32;;;;;;77995:42;;:7;:42;:::i;:::-;77986:5;:51;;77978:122;;;;-1:-1:-1;;;77978:122:0;;9132:2:1;77978:122:0;;;9114:21:1;9171:2;9151:18;;;9144:30;9210:34;9190:18;;;9183:62;9281:28;9261:18;;;9254:56;9327:19;;77978:122:0;8930:422:1;77978:122:0;78132:10;78111:32;;;;:20;:32;;;;;:41;;78147:5;;78111:32;:41;;78147:5;;78111:41;:::i;:::-;;;;-1:-1:-1;78165:28:0;;-1:-1:-1;78175:10:0;78187:5;78165:9;:28::i;43937:201::-;43101:6;;-1:-1:-1;;;;;43101:6:0;36342:10;43248:23;43240:68;;;;-1:-1:-1;;;43240:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;44026:22:0;::::1;44018:73;;;::::0;-1:-1:-1;;;44018:73:0;;8725:2:1;44018:73:0::1;::::0;::::1;8707:21:1::0;8764:2;8744:18;;;8737:30;8803:34;8783:18;;;8776:62;-1:-1:-1;;;8854:18:1;;;8847:36;8900:19;;44018:73:0::1;8523:402:1::0;44018:73:0::1;44102:28;44121:8;44102:18;:28::i;22273:273::-:0;22330:4;22386:7;11818:1;22367:26;;:66;;;;;22420:13;;22410:7;:23;22367:66;:152;;;;-1:-1:-1;;22471:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;22471:43:0;:48;;22273:273::o;15475:1129::-;15542:7;15577;;11818:1;15626:23;15622:915;;15679:13;;15672:4;:20;15668:869;;;15717:14;15734:23;;;:17;:23;;;;;;-1:-1:-1;;;15823:23:0;;15819:699;;16342:113;16349:11;16342:113;;-1:-1:-1;;;16420:6:0;16402:25;;;;:17;:25;;;;;;16342:113;;;16488:6;15475:1129;-1:-1:-1;;;15475:1129:0:o;15819:699::-;15694:843;15668:869;16565:31;;-1:-1:-1;;;16565:31:0;;;;;;;;;;;27512:2515;27627:27;27657;27676:7;27657:18;:27::i;:::-;27627:57;;27742:4;-1:-1:-1;;;;;27701:45:0;27717:19;-1:-1:-1;;;;;27701:45:0;;27697:86;;27755:28;;-1:-1:-1;;;27755:28:0;;;;;;;;;;;27697:86;27796:22;36342:10;-1:-1:-1;;;;;27822:27:0;;;;:87;;-1:-1:-1;27866:43:0;27883:4;36342:10;20894:164;:::i;27866:43::-;27822:147;;;-1:-1:-1;36342:10:0;27926:20;27938:7;27926:11;:20::i;:::-;-1:-1:-1;;;;;27926:43:0;;27822:147;27796:174;;27988:17;27983:66;;28014:35;;-1:-1:-1;;;28014:35:0;;;;;;;;;;;27983:66;-1:-1:-1;;;;;28064:16:0;;28060:52;;28089:23;;-1:-1:-1;;;28089:23:0;;;;;;;;;;;28060:52;28241:24;;;;:15;:24;;;;;;;;28234:31;;-1:-1:-1;;;;;;28234:31:0;;;-1:-1:-1;;;;;28633:24:0;;;;;:18;:24;;;;;28631:26;;-1:-1:-1;;28631:26:0;;;28702:22;;;;;;;28700:24;;-1:-1:-1;28700:24:0;;;28995:26;;;:17;:26;;;;;-1:-1:-1;;;29083:15:0;9830:3;29083:41;29041:84;;:128;;28995:174;;;29289:46;;29285:626;;29393:1;29383:11;;29361:19;29516:30;;;:17;:30;;;;;;29512:384;;29654:13;;29639:11;:28;29635:242;;29801:30;;;;:17;:30;;;;;:52;;;29635:242;29342:569;29285:626;29958:7;29954:2;-1:-1:-1;;;;;29939:27:0;29948:4;-1:-1:-1;;;;;29939:27:0;;;;;;;;;;;27616:2411;;27512:2515;;;:::o;44298:191::-;44391:6;;;-1:-1:-1;;;;;44408:17:0;;;-1:-1:-1;;;;;;44408:17:0;;;;;;;44441:40;;44391:6;;;44408:17;44391:6;;44441:40;;44372:16;;44441:40;44361:128;44298:191;:::o;22630:104::-;22699:27;22709:2;22713:8;22699:27;;;;;;;;;;;;:9;:27::i;33724:716::-;33908:88;;-1:-1:-1;;;33908:88:0;;33887:4;;-1:-1:-1;;;;;33908:45:0;;;;;:88;;36342:10;;33975:4;;33981:7;;33990:5;;33908:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;33908:88:0;;;;;;;;-1:-1:-1;;33908:88:0;;;;;;;;;;;;:::i;:::-;;;33904:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;34191:13:0;;34187:235;;34237:40;;-1:-1:-1;;;34237:40:0;;;;;;;;;;;34187:235;34380:6;34374:13;34365:6;34361:2;34357:15;34350:38;33904:529;-1:-1:-1;;;;;;34067:64:0;-1:-1:-1;;;34067:64:0;;-1:-1:-1;33904:529:0;33724:716;;;;;;:::o;38900:723::-;38956:13;39177:10;39173:53;;-1:-1:-1;;39204:10:0;;;;;;;;;;;;-1:-1:-1;;;39204:10:0;;;;;38900:723::o;39173:53::-;39251:5;39236:12;39292:78;39299:9;;39292:78;;39325:8;;;;:::i;:::-;;-1:-1:-1;39348:10:0;;-1:-1:-1;39356:2:0;39348:10;;:::i;:::-;;;39292:78;;;39380:19;39412:6;39402:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39402:17:0;;39380:39;;39430:154;39437:10;;39430:154;;39464:11;39474:1;39464:11;;:::i;:::-;;-1:-1:-1;39533:10:0;39541:2;39533:5;:10;:::i;:::-;39520:24;;:2;:24;:::i;:::-;39507:39;;39490:6;39497;39490:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;39490:56:0;;;;;;;;-1:-1:-1;39561:11:0;39570:2;39561:11;;:::i;:::-;;;39430:154;;23107:2236;23230:20;23253:13;-1:-1:-1;;;;;23281:16:0;;23277:48;;23306:19;;-1:-1:-1;;;23306:19:0;;;;;;;;;;;23277:48;23340:13;23336:44;;23362:18;;-1:-1:-1;;;23362:18:0;;;;;;;;;;;23336:44;-1:-1:-1;;;;;23929:22:0;;;;;;:18;:22;;;;9313:2;23929:22;;;:70;;23967:31;23955:44;;23929:70;;;24242:31;;;:17;:31;;;;;24335:15;9830:3;24335:41;24293:84;;-1:-1:-1;24413:13:0;;10093:3;24398:56;24293:162;24242:213;;:31;;24536:23;;;;24580:14;:19;24576:635;;24620:313;24651:38;;24676:12;;-1:-1:-1;;;;;24651:38:0;;;24668:1;;24651:38;;24668:1;;24651:38;24717:69;24756:1;24760:2;24764:14;;;;;;24780:5;24717:30;:69::i;:::-;24712:174;;24822:40;;-1:-1:-1;;;24822:40:0;;;;;;;;;;;24712:174;24928:3;24913:12;:18;24620:313;;25014:12;24997:13;;:29;24993:43;;25028:8;;;24993:43;24576:635;;;25077:119;25108:40;;25133:14;;;;;-1:-1:-1;;;;;25108:40:0;;;25125:1;;25108:40;;25125:1;;25108:40;25191:3;25176:12;:18;25077:119;;24576:635;-1:-1:-1;25225:13:0;:28;;;25275:60;;25308:2;25312:12;25326:8;25275:60;:::i;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:631:1;78:5;108:18;149:2;141:6;138:14;135:40;;;155:18;;:::i;:::-;230:2;224:9;198:2;284:15;;-1:-1:-1;;280:24:1;;;306:2;276:33;272:42;260:55;;;330:18;;;350:22;;;327:46;324:72;;;376:18;;:::i;:::-;416:10;412:2;405:22;445:6;436:15;;475:6;467;460:22;515:3;506:6;501:3;497:16;494:25;491:45;;;532:1;529;522:12;491:45;582:6;577:3;570:4;562:6;558:17;545:44;637:1;630:4;621:6;613;609:19;605:30;598:41;;;;14:631;;;;;:::o;650:173::-;718:20;;-1:-1:-1;;;;;767:31:1;;757:42;;747:70;;813:1;810;803:12;747:70;650:173;;;:::o;828:186::-;887:6;940:2;928:9;919:7;915:23;911:32;908:52;;;956:1;953;946:12;908:52;979:29;998:9;979:29;:::i;1019:260::-;1087:6;1095;1148:2;1136:9;1127:7;1123:23;1119:32;1116:52;;;1164:1;1161;1154:12;1116:52;1187:29;1206:9;1187:29;:::i;:::-;1177:39;;1235:38;1269:2;1258:9;1254:18;1235:38;:::i;:::-;1225:48;;1019:260;;;;;:::o;1284:328::-;1361:6;1369;1377;1430:2;1418:9;1409:7;1405:23;1401:32;1398:52;;;1446:1;1443;1436:12;1398:52;1469:29;1488:9;1469:29;:::i;:::-;1459:39;;1517:38;1551:2;1540:9;1536:18;1517:38;:::i;:::-;1507:48;;1602:2;1591:9;1587:18;1574:32;1564:42;;1284:328;;;;;:::o;1617:666::-;1712:6;1720;1728;1736;1789:3;1777:9;1768:7;1764:23;1760:33;1757:53;;;1806:1;1803;1796:12;1757:53;1829:29;1848:9;1829:29;:::i;:::-;1819:39;;1877:38;1911:2;1900:9;1896:18;1877:38;:::i;:::-;1867:48;;1962:2;1951:9;1947:18;1934:32;1924:42;;2017:2;2006:9;2002:18;1989:32;2044:18;2036:6;2033:30;2030:50;;;2076:1;2073;2066:12;2030:50;2099:22;;2152:4;2144:13;;2140:27;-1:-1:-1;2130:55:1;;2181:1;2178;2171:12;2130:55;2204:73;2269:7;2264:2;2251:16;2246:2;2242;2238:11;2204:73;:::i;:::-;2194:83;;;1617:666;;;;;;;:::o;2288:347::-;2353:6;2361;2414:2;2402:9;2393:7;2389:23;2385:32;2382:52;;;2430:1;2427;2420:12;2382:52;2453:29;2472:9;2453:29;:::i;:::-;2443:39;;2532:2;2521:9;2517:18;2504:32;2579:5;2572:13;2565:21;2558:5;2555:32;2545:60;;2601:1;2598;2591:12;2545:60;2624:5;2614:15;;;2288:347;;;;;:::o;2640:254::-;2708:6;2716;2769:2;2757:9;2748:7;2744:23;2740:32;2737:52;;;2785:1;2782;2775:12;2737:52;2808:29;2827:9;2808:29;:::i;:::-;2798:39;2884:2;2869:18;;;;2856:32;;-1:-1:-1;;;2640:254:1:o;2899:245::-;2957:6;3010:2;2998:9;2989:7;2985:23;2981:32;2978:52;;;3026:1;3023;3016:12;2978:52;3065:9;3052:23;3084:30;3108:5;3084:30;:::i;3149:249::-;3218:6;3271:2;3259:9;3250:7;3246:23;3242:32;3239:52;;;3287:1;3284;3277:12;3239:52;3319:9;3313:16;3338:30;3362:5;3338:30;:::i;3403:450::-;3472:6;3525:2;3513:9;3504:7;3500:23;3496:32;3493:52;;;3541:1;3538;3531:12;3493:52;3581:9;3568:23;3614:18;3606:6;3603:30;3600:50;;;3646:1;3643;3636:12;3600:50;3669:22;;3722:4;3714:13;;3710:27;-1:-1:-1;3700:55:1;;3751:1;3748;3741:12;3700:55;3774:73;3839:7;3834:2;3821:16;3816:2;3812;3808:11;3774:73;:::i;3858:180::-;3917:6;3970:2;3958:9;3949:7;3945:23;3941:32;3938:52;;;3986:1;3983;3976:12;3938:52;-1:-1:-1;4009:23:1;;3858:180;-1:-1:-1;3858:180:1:o;4043:184::-;4113:6;4166:2;4154:9;4145:7;4141:23;4137:32;4134:52;;;4182:1;4179;4172:12;4134:52;-1:-1:-1;4205:16:1;;4043:184;-1:-1:-1;4043:184:1:o;4232:257::-;4273:3;4311:5;4305:12;4338:6;4333:3;4326:19;4354:63;4410:6;4403:4;4398:3;4394:14;4387:4;4380:5;4376:16;4354:63;:::i;:::-;4471:2;4450:15;-1:-1:-1;;4446:29:1;4437:39;;;;4478:4;4433:50;;4232:257;-1:-1:-1;;4232:257:1:o;4494:185::-;4536:3;4574:5;4568:12;4589:52;4634:6;4629:3;4622:4;4615:5;4611:16;4589:52;:::i;:::-;4657:16;;;;;4494:185;-1:-1:-1;;4494:185:1:o;4802:1301::-;5079:3;5108:1;5141:6;5135:13;5171:3;5193:1;5221:9;5217:2;5213:18;5203:28;;5281:2;5270:9;5266:18;5303;5293:61;;5347:4;5339:6;5335:17;5325:27;;5293:61;5373:2;5421;5413:6;5410:14;5390:18;5387:38;5384:165;;;-1:-1:-1;;;5448:33:1;;5504:4;5501:1;5494:15;5534:4;5455:3;5522:17;5384:165;5565:18;5592:104;;;;5710:1;5705:320;;;;5558:467;;5592:104;-1:-1:-1;;5625:24:1;;5613:37;;5670:16;;;;-1:-1:-1;5592:104:1;;5705:320;12970:1;12963:14;;;13007:4;12994:18;;5800:1;5814:165;5828:6;5825:1;5822:13;5814:165;;;5906:14;;5893:11;;;5886:35;5949:16;;;;5843:10;;5814:165;;;5818:3;;6008:6;6003:3;5999:16;5992:23;;5558:467;;;;;;;6041:56;6066:30;6092:3;6084:6;6066:30;:::i;:::-;-1:-1:-1;;;4744:20:1;;4789:1;4780:11;;4684:113;6041:56;6034:63;4802:1301;-1:-1:-1;;;;;4802:1301:1:o;6526:488::-;-1:-1:-1;;;;;6795:15:1;;;6777:34;;6847:15;;6842:2;6827:18;;6820:43;6894:2;6879:18;;6872:34;;;6942:3;6937:2;6922:18;;6915:31;;;6720:4;;6963:45;;6988:19;;6980:6;6963:45;:::i;:::-;6955:53;6526:488;-1:-1:-1;;;;;;6526:488:1:o;7211:219::-;7360:2;7349:9;7342:21;7323:4;7380:44;7420:2;7409:9;7405:18;7397:6;7380:44;:::i;7435:399::-;7637:2;7619:21;;;7676:2;7656:18;;;7649:30;7715:34;7710:2;7695:18;;7688:62;-1:-1:-1;;;7781:2:1;7766:18;;7759:33;7824:3;7809:19;;7435:399::o;9357:356::-;9559:2;9541:21;;;9578:18;;;9571:30;9637:34;9632:2;9617:18;;9610:62;9704:2;9689:18;;9357:356::o;13023:128::-;13063:3;13094:1;13090:6;13087:1;13084:13;13081:39;;;13100:18;;:::i;:::-;-1:-1:-1;13136:9:1;;13023:128::o;13156:120::-;13196:1;13222;13212:35;;13227:18;;:::i;:::-;-1:-1:-1;13261:9:1;;13156:120::o;13281:168::-;13321:7;13387:1;13383;13379:6;13375:14;13372:1;13369:21;13364:1;13357:9;13350:17;13346:45;13343:71;;;13394:18;;:::i;:::-;-1:-1:-1;13434:9:1;;13281:168::o;13454:125::-;13494:4;13522:1;13519;13516:8;13513:34;;;13527:18;;:::i;:::-;-1:-1:-1;13564:9:1;;13454:125::o;13584:258::-;13656:1;13666:113;13680:6;13677:1;13674:13;13666:113;;;13756:11;;;13750:18;13737:11;;;13730:39;13702:2;13695:10;13666:113;;;13797:6;13794:1;13791:13;13788:48;;;-1:-1:-1;;13832:1:1;13814:16;;13807:27;13584:258::o;13847:380::-;13926:1;13922:12;;;;13969;;;13990:61;;14044:4;14036:6;14032:17;14022:27;;13990:61;14097:2;14089:6;14086:14;14066:18;14063:38;14060:161;;;14143:10;14138:3;14134:20;14131:1;14124:31;14178:4;14175:1;14168:15;14206:4;14203:1;14196:15;14060:161;;13847:380;;;:::o;14232:135::-;14271:3;-1:-1:-1;;14292:17:1;;14289:43;;;14312:18;;:::i;:::-;-1:-1:-1;14359:1:1;14348:13;;14232:135::o;14372:112::-;14404:1;14430;14420:35;;14435:18;;:::i;:::-;-1:-1:-1;14469:9:1;;14372:112::o;14489:127::-;14550:10;14545:3;14541:20;14538:1;14531:31;14581:4;14578:1;14571:15;14605:4;14602:1;14595:15;14621:127;14682:10;14677:3;14673:20;14670:1;14663:31;14713:4;14710:1;14703:15;14737:4;14734:1;14727:15;14753:127;14814:10;14809:3;14805:20;14802:1;14795:31;14845:4;14842:1;14835:15;14869:4;14866:1;14859:15;14885:127;14946:10;14941:3;14937:20;14934:1;14927:31;14977:4;14974:1;14967:15;15001:4;14998:1;14991:15;15017:131;-1:-1:-1;;;;;;15091:32:1;;15081:43;;15071:71;;15138:1;15135;15128:12
Swarm Source
ipfs://cf54de062f9077cbc5aca0febaca7a1a5ad77170f5382f7916c972684c5b9027
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.