Overview
TokenID
4650
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
ADOA
Compiler Version
v0.8.26+commit.8a97fa7a
Contract Source Code (Solidity)
/** *Submitted for verification at apescan.io on 2024-11-05 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.26; /** * @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 {} } pragma solidity ^0.8.7; contract ADOA is ERC721A, Ownable { using Strings for uint256; string private baseURI ; uint256 public price = 0.2 ether; uint256 public maxPerTx = 50; uint256 public maxFreePerWallet = 1; uint256 public totalFree = 8000; uint256 public maxSupply = 10000; bool public mintEnabled = true; uint public totalFreeMinted = 0; mapping(address => uint256) private _mintedFreeAmount; constructor() ERC721A("Ape Doods On Ape", "ADOA") {} function mint(uint256 count) external payable { uint256 cost = price; bool isFree = ((totalFreeMinted + count < totalFree + 1) && (_mintedFreeAmount[msg.sender] < maxFreePerWallet)); if (isFree) { require(mintEnabled, "Mint is not live yet"); require(totalSupply() + count <= maxSupply, "No more"); require(count <= maxPerTx, "Max per TX reached."); if(count >= (maxFreePerWallet - _mintedFreeAmount[msg.sender])) { require(msg.value >= (count * cost) - ((maxFreePerWallet - _mintedFreeAmount[msg.sender]) * cost), "Please send the exact ETH amount"); _mintedFreeAmount[msg.sender] = maxFreePerWallet; totalFreeMinted += maxFreePerWallet; } else if(count < (maxFreePerWallet - _mintedFreeAmount[msg.sender])) { require(msg.value >= 0, "Please send the exact ETH amount"); _mintedFreeAmount[msg.sender] += count; totalFreeMinted += count; } } else{ require(mintEnabled, "Mint is not live yet"); require(msg.value >= count * cost, "Please send the exact ETH amount"); require(totalSupply() + count <= maxSupply, "Sold out"); require(count <= maxPerTx, "Max per TX reached."); } _safeMint(msg.sender, count); } 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 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":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"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":"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
60806040526702c68af0bb140000600a556032600b556001600c819055611f40600d55612710600e55600f805460ff191690911790555f601055348015610044575f80fd5b506040518060400160405280601081526020016f41706520446f6f6473204f6e2041706560801b8152506040518060400160405280600481526020016341444f4160e01b815250816002908161009a91906101a5565b5060036100a782826101a5565b505060015f55506100b7336100bc565b61025f565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b634e487b7160e01b5f52604160045260245ffd5b600181811c9082168061013557607f821691505b60208210810361015357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156101a057805f5260205f20601f840160051c8101602085101561017e5750805b601f840160051c820191505b8181101561019d575f815560010161018a565b50505b505050565b81516001600160401b038111156101be576101be61010d565b6101d2816101cc8454610121565b84610159565b6020601f821160018114610204575f83156101ed5750848201515b5f19600385901b1c1916600184901b17845561019d565b5f84815260208120601f198516915b828110156102335787850151825560209485019460019092019101610213565b508482101561025057868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b611b638061026c5f395ff3fe6080604052600436106101c5575f3560e01c806392910eec116100f2578063c87b56dd11610092578063dad7b5c911610062578063dad7b5c9146104bd578063e985e9c5146104d2578063f2fde38b146104f1578063f968adbe14610510575f80fd5b8063c87b56dd1461045c578063d12397301461047b578063d3dd5fe014610494578063d5abeb01146104a8575f80fd5b8063a0712d68116100cd578063a0712d68146103f6578063a22cb46514610409578063a702735714610428578063b88d4fde1461043d575f80fd5b806392910eec146103ae57806395d89b41146103cd578063a035b1fe146103e1575f80fd5b80633ccfd60b1161016857806370a082311161013857806370a082311461033f578063715018a61461035e5780638da5cb5b1461037257806391b7f5ed1461038f575f80fd5b80633ccfd60b146102ce57806342842e0e146102e257806355f804b3146103015780636352211e14610320575f80fd5b8063095ea7b3116101a3578063095ea7b31461025557806318160ddd1461027657806323b872dd1461029a578063333e44e6146102b9575f80fd5b806301ffc9a7146101c957806306fdde03146101fd578063081812fc1461021e575b5f80fd5b3480156101d4575f80fd5b506101e86101e336600461156f565b610525565b60405190151581526020015b60405180910390f35b348015610208575f80fd5b50610211610576565b6040516101f491906115b8565b348015610229575f80fd5b5061023d6102383660046115ca565b610606565b6040516001600160a01b0390911681526020016101f4565b348015610260575f80fd5b5061027461026f3660046115fc565b610648565b005b348015610281575f80fd5b506001545f54035f19015b6040519081526020016101f4565b3480156102a5575f80fd5b506102746102b4366004611624565b610718565b3480156102c4575f80fd5b5061028c600d5481565b3480156102d9575f80fd5b50610274610728565b3480156102ed575f80fd5b506102746102fc366004611624565b6107e6565b34801561030c575f80fd5b5061027461031b3660046116e9565b610800565b34801561032b575f80fd5b5061023d61033a3660046115ca565b61083a565b34801561034a575f80fd5b5061028c61035936600461172e565b610844565b348015610369575f80fd5b50610274610891565b34801561037d575f80fd5b506008546001600160a01b031661023d565b34801561039a575f80fd5b506102746103a93660046115ca565b6108c6565b3480156103b9575f80fd5b506102746103c83660046115ca565b6108f5565b3480156103d8575f80fd5b50610211610924565b3480156103ec575f80fd5b5061028c600a5481565b6102746104043660046115ca565b610933565b348015610414575f80fd5b50610274610423366004611747565b610cdb565b348015610433575f80fd5b5061028c600c5481565b348015610448575f80fd5b50610274610457366004611780565b610d6f565b348015610467575f80fd5b506102116104763660046115ca565b610db9565b348015610486575f80fd5b50600f546101e89060ff1681565b34801561049f575f80fd5b50610274610e5a565b3480156104b3575f80fd5b5061028c600e5481565b3480156104c8575f80fd5b5061028c60105481565b3480156104dd575f80fd5b506101e86104ec3660046117f7565b610e98565b3480156104fc575f80fd5b5061027461050b36600461172e565b610ec5565b34801561051b575f80fd5b5061028c600b5481565b5f6301ffc9a760e01b6001600160e01b03198316148061055557506380ac58cd60e01b6001600160e01b03198316145b806105705750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461058590611828565b80601f01602080910402602001604051908101604052809291908181526020018280546105b190611828565b80156105fc5780601f106105d3576101008083540402835291602001916105fc565b820191905f5260205f20905b8154815290600101906020018083116105df57829003601f168201915b5050505050905090565b5f61061082610f5d565b61062d576040516333d1c03960e21b815260040160405180910390fd5b505f908152600660205260409020546001600160a01b031690565b5f61065282610f8f565b9050806001600160a01b0316836001600160a01b0316036106865760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216146106bd576106a08133610e98565b6106bd576040516367d9dca160e11b815260040160405180910390fd5b5f8281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610723838383610fff565b505050565b6008546001600160a01b0316331461075b5760405162461bcd60e51b815260040161075290611860565b60405180910390fd5b6040515f90339047908381818185875af1925050503d805f811461079a576040519150601f19603f3d011682016040523d82523d5f602084013e61079f565b606091505b50509050806107e35760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610752565b50565b61072383838360405180602001604052805f815250610d6f565b6008546001600160a01b0316331461082a5760405162461bcd60e51b815260040161075290611860565b600961083682826118d9565b5050565b5f61057082610f8f565b5f6001600160a01b03821661086c576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03165f9081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b031633146108bb5760405162461bcd60e51b815260040161075290611860565b6108c45f6111a0565b565b6008546001600160a01b031633146108f05760405162461bcd60e51b815260040161075290611860565b600a55565b6008546001600160a01b0316331461091f5760405162461bcd60e51b815260040161075290611860565b600d55565b60606003805461058590611828565b600a54600d545f906109469060016119a8565b8360105461095491906119a8565b1080156109705750600c54335f90815260116020526040902054105b90508015610b9557600f5460ff166109c15760405162461bcd60e51b8152602060048201526014602482015273135a5b9d081a5cc81b9bdd081b1a5d99481e595d60621b6044820152606401610752565b600e546001545f54859190035f19016109da91906119a8565b1115610a125760405162461bcd60e51b81526020600482015260076024820152664e6f206d6f726560c81b6044820152606401610752565b600b54831115610a5a5760405162461bcd60e51b815260206004820152601360248201527226b0bc103832b9102a2c103932b0b1b432b21760691b6044820152606401610752565b335f90815260116020526040902054600c54610a7691906119bb565b8310610b3757335f90815260116020526040902054600c548391610a99916119bb565b610aa391906119ce565b610aad83856119ce565b610ab791906119bb565b341015610b065760405162461bcd60e51b815260206004820181905260248201527f506c656173652073656e64207468652065786163742045544820616d6f756e746044820152606401610752565b600c54335f90815260116020526040812082905560108054909190610b2c9084906119a8565b90915550610cd19050565b335f90815260116020526040902054600c54610b5391906119bb565b831015610b9057335f9081526011602052604081208054859290610b789084906119a8565b925050819055508260105f828254610b2c91906119a8565b610cd1565b600f5460ff16610bde5760405162461bcd60e51b8152602060048201526014602482015273135a5b9d081a5cc81b9bdd081b1a5d99481e595d60621b6044820152606401610752565b610be882846119ce565b341015610c375760405162461bcd60e51b815260206004820181905260248201527f506c656173652073656e64207468652065786163742045544820616d6f756e746044820152606401610752565b600e546001545f54859190035f1901610c5091906119a8565b1115610c895760405162461bcd60e51b815260206004820152600860248201526714dbdb19081bdd5d60c21b6044820152606401610752565b600b54831115610cd15760405162461bcd60e51b815260206004820152601360248201527226b0bc103832b9102a2c103932b0b1b432b21760691b6044820152606401610752565b61072333846111f1565b336001600160a01b03831603610d045760405163b06307db60e01b815260040160405180910390fd5b335f8181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610d7a848484610fff565b6001600160a01b0383163b15610db357610d968484848461120a565b610db3576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610dc482610f5d565b610e285760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610752565b6009610e33836112f2565b604051602001610e449291906119e5565b6040516020818303038152906040529050919050565b6008546001600160a01b03163314610e845760405162461bcd60e51b815260040161075290611860565b600f805460ff19811660ff90911615179055565b6001600160a01b039182165f90815260076020908152604080832093909416825291909152205460ff1690565b6008546001600160a01b03163314610eef5760405162461bcd60e51b815260040161075290611860565b6001600160a01b038116610f545760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610752565b6107e3816111a0565b5f81600111158015610f6f57505f5482105b80156105705750505f90815260046020526040902054600160e01b161590565b5f8180600111610fe6575f54811015610fe6575f8181526004602052604081205490600160e01b82169003610fe4575b805f03610fdd57505f19015f81815260046020526040902054610fbf565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b5f61100982610f8f565b9050836001600160a01b0316816001600160a01b03161461103c5760405162a1148160e81b815260040160405180910390fd5b5f336001600160a01b038616148061105957506110598533610e98565b8061107457503361106984610606565b6001600160a01b0316145b90508061109457604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0384166110bb57604051633a954ecd60e21b815260040160405180910390fd5b5f83815260066020908152604080832080546001600160a01b03191690556001600160a01b0388811684526005835281842080545f19019055871683528083208054600101905585835260049091528120600160e11b4260a01b871781179091558316900361115757600183015f818152600460205260408120549003611155575f548114611155575f8181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b610836828260405180602001604052805f8152506113ef565b604051630a85bd0160e11b81525f906001600160a01b0385169063150b7a029061123e903390899088908890600401611a70565b6020604051808303815f875af1925050508015611278575060408051601f3d908101601f1916820190925261127591810190611aac565b60015b6112d4573d8080156112a5576040519150601f19603f3d011682016040523d82523d5f602084013e6112aa565b606091505b5080515f036112cc576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060815f036113185750506040805180820190915260018152600360fc1b602082015290565b815f5b8115611341578061132b81611ac7565b915061133a9050600a83611af3565b915061131b565b5f8167ffffffffffffffff81111561135b5761135b61165e565b6040519080825280601f01601f191660200182016040528015611385576020820181803683370190505b5090505b84156112ea5761139a6001836119bb565b91506113a7600a86611b06565b6113b29060306119a8565b60f81b8183815181106113c7576113c7611b19565b60200101906001600160f81b03191690815f1a9053506113e8600a86611af3565b9450611389565b5f546001600160a01b03841661141757604051622e076360e81b815260040160405180910390fd5b825f036114375760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b0384165f8181526005602090815260408083208054680100000000000000018902019055848352600490915290204260a01b86176001861460e11b1790558190818501903b15611507575b60405182906001600160a01b038816905f907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46114d25f87848060010195508761120a565b6114ef576040516368d2bf6b60e11b815260040160405180910390fd5b80821061148957825f5414611502575f80fd5b61154b565b5b6040516001830192906001600160a01b038816905f907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210611508575b505f908155610db39085838684565b6001600160e01b0319811681146107e3575f80fd5b5f6020828403121561157f575f80fd5b8135610fdd8161155a565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f610fdd602083018461158a565b5f602082840312156115da575f80fd5b5035919050565b80356001600160a01b03811681146115f7575f80fd5b919050565b5f806040838503121561160d575f80fd5b611616836115e1565b946020939093013593505050565b5f805f60608486031215611636575f80fd5b61163f846115e1565b925061164d602085016115e1565b929592945050506040919091013590565b634e487b7160e01b5f52604160045260245ffd5b5f8067ffffffffffffffff84111561168c5761168c61165e565b50604051601f19601f85018116603f0116810181811067ffffffffffffffff821117156116bb576116bb61165e565b6040528381529050808284018510156116d2575f80fd5b838360208301375f60208583010152509392505050565b5f602082840312156116f9575f80fd5b813567ffffffffffffffff81111561170f575f80fd5b8201601f8101841361171f575f80fd5b6112ea84823560208401611672565b5f6020828403121561173e575f80fd5b610fdd826115e1565b5f8060408385031215611758575f80fd5b611761836115e1565b915060208301358015158114611775575f80fd5b809150509250929050565b5f805f8060808587031215611793575f80fd5b61179c856115e1565b93506117aa602086016115e1565b925060408501359150606085013567ffffffffffffffff8111156117cc575f80fd5b8501601f810187136117dc575f80fd5b6117eb87823560208401611672565b91505092959194509250565b5f8060408385031215611808575f80fd5b611811836115e1565b915061181f602084016115e1565b90509250929050565b600181811c9082168061183c57607f821691505b60208210810361185a57634e487b7160e01b5f52602260045260245ffd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b601f82111561072357805f5260205f20601f840160051c810160208510156118ba5750805b601f840160051c820191505b81811015611199575f81556001016118c6565b815167ffffffffffffffff8111156118f3576118f361165e565b611907816119018454611828565b84611895565b6020601f821160018114611939575f83156119225750848201515b5f19600385901b1c1916600184901b178455611199565b5f84815260208120601f198516915b828110156119685787850151825560209485019460019092019101611948565b508482101561198557868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b634e487b7160e01b5f52601160045260245ffd5b8082018082111561057057610570611994565b8181038181111561057057610570611994565b808202811582820484141761057057610570611994565b5f8084546119f281611828565b600182168015611a095760018114611a1e57611a4b565b60ff1983168652811515820286019350611a4b565b875f5260205f205f5b83811015611a4357815488820152600190910190602001611a27565b505081860193505b50505083518060208601835e64173539b7b760d91b9101908152600501949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f90611aa29083018461158a565b9695505050505050565b5f60208284031215611abc575f80fd5b8151610fdd8161155a565b5f60018201611ad857611ad8611994565b5060010190565b634e487b7160e01b5f52601260045260245ffd5b5f82611b0157611b01611adf565b500490565b5f82611b1457611b14611adf565b500690565b634e487b7160e01b5f52603260045260245ffdfea2646970667358221220917977ff1495cd11d140f375f029294ee421e007e26e1b6227806a52536e73f964736f6c634300081a0033
Deployed Bytecode
0x6080604052600436106101c5575f3560e01c806392910eec116100f2578063c87b56dd11610092578063dad7b5c911610062578063dad7b5c9146104bd578063e985e9c5146104d2578063f2fde38b146104f1578063f968adbe14610510575f80fd5b8063c87b56dd1461045c578063d12397301461047b578063d3dd5fe014610494578063d5abeb01146104a8575f80fd5b8063a0712d68116100cd578063a0712d68146103f6578063a22cb46514610409578063a702735714610428578063b88d4fde1461043d575f80fd5b806392910eec146103ae57806395d89b41146103cd578063a035b1fe146103e1575f80fd5b80633ccfd60b1161016857806370a082311161013857806370a082311461033f578063715018a61461035e5780638da5cb5b1461037257806391b7f5ed1461038f575f80fd5b80633ccfd60b146102ce57806342842e0e146102e257806355f804b3146103015780636352211e14610320575f80fd5b8063095ea7b3116101a3578063095ea7b31461025557806318160ddd1461027657806323b872dd1461029a578063333e44e6146102b9575f80fd5b806301ffc9a7146101c957806306fdde03146101fd578063081812fc1461021e575b5f80fd5b3480156101d4575f80fd5b506101e86101e336600461156f565b610525565b60405190151581526020015b60405180910390f35b348015610208575f80fd5b50610211610576565b6040516101f491906115b8565b348015610229575f80fd5b5061023d6102383660046115ca565b610606565b6040516001600160a01b0390911681526020016101f4565b348015610260575f80fd5b5061027461026f3660046115fc565b610648565b005b348015610281575f80fd5b506001545f54035f19015b6040519081526020016101f4565b3480156102a5575f80fd5b506102746102b4366004611624565b610718565b3480156102c4575f80fd5b5061028c600d5481565b3480156102d9575f80fd5b50610274610728565b3480156102ed575f80fd5b506102746102fc366004611624565b6107e6565b34801561030c575f80fd5b5061027461031b3660046116e9565b610800565b34801561032b575f80fd5b5061023d61033a3660046115ca565b61083a565b34801561034a575f80fd5b5061028c61035936600461172e565b610844565b348015610369575f80fd5b50610274610891565b34801561037d575f80fd5b506008546001600160a01b031661023d565b34801561039a575f80fd5b506102746103a93660046115ca565b6108c6565b3480156103b9575f80fd5b506102746103c83660046115ca565b6108f5565b3480156103d8575f80fd5b50610211610924565b3480156103ec575f80fd5b5061028c600a5481565b6102746104043660046115ca565b610933565b348015610414575f80fd5b50610274610423366004611747565b610cdb565b348015610433575f80fd5b5061028c600c5481565b348015610448575f80fd5b50610274610457366004611780565b610d6f565b348015610467575f80fd5b506102116104763660046115ca565b610db9565b348015610486575f80fd5b50600f546101e89060ff1681565b34801561049f575f80fd5b50610274610e5a565b3480156104b3575f80fd5b5061028c600e5481565b3480156104c8575f80fd5b5061028c60105481565b3480156104dd575f80fd5b506101e86104ec3660046117f7565b610e98565b3480156104fc575f80fd5b5061027461050b36600461172e565b610ec5565b34801561051b575f80fd5b5061028c600b5481565b5f6301ffc9a760e01b6001600160e01b03198316148061055557506380ac58cd60e01b6001600160e01b03198316145b806105705750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461058590611828565b80601f01602080910402602001604051908101604052809291908181526020018280546105b190611828565b80156105fc5780601f106105d3576101008083540402835291602001916105fc565b820191905f5260205f20905b8154815290600101906020018083116105df57829003601f168201915b5050505050905090565b5f61061082610f5d565b61062d576040516333d1c03960e21b815260040160405180910390fd5b505f908152600660205260409020546001600160a01b031690565b5f61065282610f8f565b9050806001600160a01b0316836001600160a01b0316036106865760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216146106bd576106a08133610e98565b6106bd576040516367d9dca160e11b815260040160405180910390fd5b5f8281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610723838383610fff565b505050565b6008546001600160a01b0316331461075b5760405162461bcd60e51b815260040161075290611860565b60405180910390fd5b6040515f90339047908381818185875af1925050503d805f811461079a576040519150601f19603f3d011682016040523d82523d5f602084013e61079f565b606091505b50509050806107e35760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610752565b50565b61072383838360405180602001604052805f815250610d6f565b6008546001600160a01b0316331461082a5760405162461bcd60e51b815260040161075290611860565b600961083682826118d9565b5050565b5f61057082610f8f565b5f6001600160a01b03821661086c576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03165f9081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b031633146108bb5760405162461bcd60e51b815260040161075290611860565b6108c45f6111a0565b565b6008546001600160a01b031633146108f05760405162461bcd60e51b815260040161075290611860565b600a55565b6008546001600160a01b0316331461091f5760405162461bcd60e51b815260040161075290611860565b600d55565b60606003805461058590611828565b600a54600d545f906109469060016119a8565b8360105461095491906119a8565b1080156109705750600c54335f90815260116020526040902054105b90508015610b9557600f5460ff166109c15760405162461bcd60e51b8152602060048201526014602482015273135a5b9d081a5cc81b9bdd081b1a5d99481e595d60621b6044820152606401610752565b600e546001545f54859190035f19016109da91906119a8565b1115610a125760405162461bcd60e51b81526020600482015260076024820152664e6f206d6f726560c81b6044820152606401610752565b600b54831115610a5a5760405162461bcd60e51b815260206004820152601360248201527226b0bc103832b9102a2c103932b0b1b432b21760691b6044820152606401610752565b335f90815260116020526040902054600c54610a7691906119bb565b8310610b3757335f90815260116020526040902054600c548391610a99916119bb565b610aa391906119ce565b610aad83856119ce565b610ab791906119bb565b341015610b065760405162461bcd60e51b815260206004820181905260248201527f506c656173652073656e64207468652065786163742045544820616d6f756e746044820152606401610752565b600c54335f90815260116020526040812082905560108054909190610b2c9084906119a8565b90915550610cd19050565b335f90815260116020526040902054600c54610b5391906119bb565b831015610b9057335f9081526011602052604081208054859290610b789084906119a8565b925050819055508260105f828254610b2c91906119a8565b610cd1565b600f5460ff16610bde5760405162461bcd60e51b8152602060048201526014602482015273135a5b9d081a5cc81b9bdd081b1a5d99481e595d60621b6044820152606401610752565b610be882846119ce565b341015610c375760405162461bcd60e51b815260206004820181905260248201527f506c656173652073656e64207468652065786163742045544820616d6f756e746044820152606401610752565b600e546001545f54859190035f1901610c5091906119a8565b1115610c895760405162461bcd60e51b815260206004820152600860248201526714dbdb19081bdd5d60c21b6044820152606401610752565b600b54831115610cd15760405162461bcd60e51b815260206004820152601360248201527226b0bc103832b9102a2c103932b0b1b432b21760691b6044820152606401610752565b61072333846111f1565b336001600160a01b03831603610d045760405163b06307db60e01b815260040160405180910390fd5b335f8181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610d7a848484610fff565b6001600160a01b0383163b15610db357610d968484848461120a565b610db3576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610dc482610f5d565b610e285760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610752565b6009610e33836112f2565b604051602001610e449291906119e5565b6040516020818303038152906040529050919050565b6008546001600160a01b03163314610e845760405162461bcd60e51b815260040161075290611860565b600f805460ff19811660ff90911615179055565b6001600160a01b039182165f90815260076020908152604080832093909416825291909152205460ff1690565b6008546001600160a01b03163314610eef5760405162461bcd60e51b815260040161075290611860565b6001600160a01b038116610f545760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610752565b6107e3816111a0565b5f81600111158015610f6f57505f5482105b80156105705750505f90815260046020526040902054600160e01b161590565b5f8180600111610fe6575f54811015610fe6575f8181526004602052604081205490600160e01b82169003610fe4575b805f03610fdd57505f19015f81815260046020526040902054610fbf565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b5f61100982610f8f565b9050836001600160a01b0316816001600160a01b03161461103c5760405162a1148160e81b815260040160405180910390fd5b5f336001600160a01b038616148061105957506110598533610e98565b8061107457503361106984610606565b6001600160a01b0316145b90508061109457604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0384166110bb57604051633a954ecd60e21b815260040160405180910390fd5b5f83815260066020908152604080832080546001600160a01b03191690556001600160a01b0388811684526005835281842080545f19019055871683528083208054600101905585835260049091528120600160e11b4260a01b871781179091558316900361115757600183015f818152600460205260408120549003611155575f548114611155575f8181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b610836828260405180602001604052805f8152506113ef565b604051630a85bd0160e11b81525f906001600160a01b0385169063150b7a029061123e903390899088908890600401611a70565b6020604051808303815f875af1925050508015611278575060408051601f3d908101601f1916820190925261127591810190611aac565b60015b6112d4573d8080156112a5576040519150601f19603f3d011682016040523d82523d5f602084013e6112aa565b606091505b5080515f036112cc576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060815f036113185750506040805180820190915260018152600360fc1b602082015290565b815f5b8115611341578061132b81611ac7565b915061133a9050600a83611af3565b915061131b565b5f8167ffffffffffffffff81111561135b5761135b61165e565b6040519080825280601f01601f191660200182016040528015611385576020820181803683370190505b5090505b84156112ea5761139a6001836119bb565b91506113a7600a86611b06565b6113b29060306119a8565b60f81b8183815181106113c7576113c7611b19565b60200101906001600160f81b03191690815f1a9053506113e8600a86611af3565b9450611389565b5f546001600160a01b03841661141757604051622e076360e81b815260040160405180910390fd5b825f036114375760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b0384165f8181526005602090815260408083208054680100000000000000018902019055848352600490915290204260a01b86176001861460e11b1790558190818501903b15611507575b60405182906001600160a01b038816905f907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46114d25f87848060010195508761120a565b6114ef576040516368d2bf6b60e11b815260040160405180910390fd5b80821061148957825f5414611502575f80fd5b61154b565b5b6040516001830192906001600160a01b038816905f907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210611508575b505f908155610db39085838684565b6001600160e01b0319811681146107e3575f80fd5b5f6020828403121561157f575f80fd5b8135610fdd8161155a565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f610fdd602083018461158a565b5f602082840312156115da575f80fd5b5035919050565b80356001600160a01b03811681146115f7575f80fd5b919050565b5f806040838503121561160d575f80fd5b611616836115e1565b946020939093013593505050565b5f805f60608486031215611636575f80fd5b61163f846115e1565b925061164d602085016115e1565b929592945050506040919091013590565b634e487b7160e01b5f52604160045260245ffd5b5f8067ffffffffffffffff84111561168c5761168c61165e565b50604051601f19601f85018116603f0116810181811067ffffffffffffffff821117156116bb576116bb61165e565b6040528381529050808284018510156116d2575f80fd5b838360208301375f60208583010152509392505050565b5f602082840312156116f9575f80fd5b813567ffffffffffffffff81111561170f575f80fd5b8201601f8101841361171f575f80fd5b6112ea84823560208401611672565b5f6020828403121561173e575f80fd5b610fdd826115e1565b5f8060408385031215611758575f80fd5b611761836115e1565b915060208301358015158114611775575f80fd5b809150509250929050565b5f805f8060808587031215611793575f80fd5b61179c856115e1565b93506117aa602086016115e1565b925060408501359150606085013567ffffffffffffffff8111156117cc575f80fd5b8501601f810187136117dc575f80fd5b6117eb87823560208401611672565b91505092959194509250565b5f8060408385031215611808575f80fd5b611811836115e1565b915061181f602084016115e1565b90509250929050565b600181811c9082168061183c57607f821691505b60208210810361185a57634e487b7160e01b5f52602260045260245ffd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b601f82111561072357805f5260205f20601f840160051c810160208510156118ba5750805b601f840160051c820191505b81811015611199575f81556001016118c6565b815167ffffffffffffffff8111156118f3576118f361165e565b611907816119018454611828565b84611895565b6020601f821160018114611939575f83156119225750848201515b5f19600385901b1c1916600184901b178455611199565b5f84815260208120601f198516915b828110156119685787850151825560209485019460019092019101611948565b508482101561198557868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b634e487b7160e01b5f52601160045260245ffd5b8082018082111561057057610570611994565b8181038181111561057057610570611994565b808202811582820484141761057057610570611994565b5f8084546119f281611828565b600182168015611a095760018114611a1e57611a4b565b60ff1983168652811515820286019350611a4b565b875f5260205f205f5b83811015611a4357815488820152600190910190602001611a27565b505081860193505b50505083518060208601835e64173539b7b760d91b9101908152600501949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f90611aa29083018461158a565b9695505050505050565b5f60208284031215611abc575f80fd5b8151610fdd8161155a565b5f60018201611ad857611ad8611994565b5060010190565b634e487b7160e01b5f52601260045260245ffd5b5f82611b0157611b01611adf565b500490565b5f82611b1457611b14611adf565b500690565b634e487b7160e01b5f52603260045260245ffdfea2646970667358221220917977ff1495cd11d140f375f029294ee421e007e26e1b6227806a52536e73f964736f6c634300081a0033
Deployed Bytecode Sourcemap
76480:2883:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13053:615;;;;;;;;;;-1:-1:-1;13053:615:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;13053:615:0;;;;;;;;18066:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;20134:204::-;;;;;;;;;;-1:-1:-1;20134:204:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1506:32:1;;;1488:51;;1476:2;1461:18;20134:204:0;1342:203:1;19594:474:0;;;;;;;;;;-1:-1:-1;19594:474:0;;;;;:::i;:::-;;:::i;:::-;;12107:315;;;;;;;;;;-1:-1:-1;11713:1:0;12373:12;12160:7;12357:13;:28;-1:-1:-1;;12357:46:0;12107:315;;;2179:25:1;;;2167:2;2152:18;12107:315:0;2033:177:1;21020:170:0;;;;;;;;;;-1:-1:-1;21020:170:0;;;;;:::i;:::-;;:::i;76711:31::-;;;;;;;;;;;;;;;;79146:206;;;;;;;;;;;;;:::i;21261:185::-;;;;;;;;;;-1:-1:-1;21261:185:0;;;;;:::i;:::-;;:::i;78753:88::-;;;;;;;;;;-1:-1:-1;78753:88:0;;;;;:::i;:::-;;:::i;17855:144::-;;;;;;;;;;-1:-1:-1;17855:144:0;;;;;:::i;:::-;;:::i;13732:224::-;;;;;;;;;;-1:-1:-1;13732:224:0;;;;;:::i;:::-;;:::i;43574:103::-;;;;;;;;;;;;;:::i;42923:87::-;;;;;;;;;;-1:-1:-1;42996:6:0;;-1:-1:-1;;;;;42996:6:0;42923:87;;78952:92;;;;;;;;;;-1:-1:-1;78952:92:0;;;;;:::i;:::-;;:::i;78849:95::-;;;;;;;;;;-1:-1:-1;78849:95:0;;;;;:::i;:::-;;:::i;18235:104::-;;;;;;;;;;;;;:::i;76589:32::-;;;;;;;;;;;;;;;;76998:1430;;;;;;:::i;:::-;;:::i;20410:308::-;;;;;;;;;;-1:-1:-1;20410:308:0;;;;;:::i;:::-;;:::i;76667:35::-;;;;;;;;;;;;;;;;21517:396;;;;;;;;;;-1:-1:-1;21517:396:0;;;;;:::i;:::-;;:::i;78436:309::-;;;;;;;;;;-1:-1:-1;78436:309:0;;;;;:::i;:::-;;:::i;76792:30::-;;;;;;;;;;-1:-1:-1;76792:30:0;;;;;;;;79052:86;;;;;;;;;;;;;:::i;76751:32::-;;;;;;;;;;;;;;;;76835:33;;;;;;;;;;;;;;;;20789:164;;;;;;;;;;-1:-1:-1;20789:164:0;;;;;:::i;:::-;;:::i;43832:201::-;;;;;;;;;;-1:-1:-1;43832:201:0;;;;;:::i;:::-;;:::i;76630:28::-;;;;;;;;;;;;;;;;13053:615;13138:4;-1:-1:-1;;;;;;;;;13438:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;13515:25:0;;;13438:102;:179;;;-1:-1:-1;;;;;;;;;;13592:25:0;;;13438:179;13418:199;13053:615;-1:-1:-1;;13053:615:0:o;18066:100::-;18120:13;18153:5;18146:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18066:100;:::o;20134:204::-;20202:7;20227:16;20235:7;20227;:16::i;:::-;20222:64;;20252:34;;-1:-1:-1;;;20252:34:0;;;;;;;;;;;20222:64;-1:-1:-1;20306:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;20306:24:0;;20134:204::o;19594:474::-;19667:13;19699:27;19718:7;19699:18;:27::i;:::-;19667:61;;19749:5;-1:-1:-1;;;;;19743:11:0;:2;-1:-1:-1;;;;;19743:11:0;;19739:48;;19763:24;;-1:-1:-1;;;19763:24:0;;;;;;;;;;;19739:48;36237:10;-1:-1:-1;;;;;19804:28:0;;;19800:175;;19852:44;19869:5;36237:10;20789:164;:::i;19852:44::-;19847:128;;19924:35;;-1:-1:-1;;;19924:35:0;;;;;;;;;;;19847:128;19987:24;;;;:15;:24;;;;;;:29;;-1:-1:-1;;;;;;19987:29:0;-1:-1:-1;;;;;19987:29:0;;;;;;;;;20032:28;;19987:24;;20032:28;;;;;;;19656:412;19594:474;;:::o;21020:170::-;21154:28;21164:4;21170:2;21174:7;21154:9;:28::i;:::-;21020:170;;;:::o;79146:206::-;42996:6;;-1:-1:-1;;;;;42996:6:0;36237:10;43143:23;43135:68;;;;-1:-1:-1;;;43135:68:0;;;;;;;:::i;:::-;;;;;;;;;79215:82:::1;::::0;79197:12:::1;::::0;79223:10:::1;::::0;79261:21:::1;::::0;79197:12;79215:82;79197:12;79215:82;79261:21;79223:10;79215:82:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;79196:101;;;79316:7;79308:36;;;::::0;-1:-1:-1;;;79308:36:0;;6587:2:1;79308:36:0::1;::::0;::::1;6569:21:1::0;6626:2;6606:18;;;6599:30;-1:-1:-1;;;6645:18:1;;;6638:46;6701:18;;79308:36:0::1;6385:340:1::0;79308:36:0::1;79185:167;79146:206::o:0;21261:185::-;21399:39;21416:4;21422:2;21426:7;21399:39;;;;;;;;;;;;:16;:39::i;78753:88::-;42996:6;;-1:-1:-1;;;;;42996:6:0;36237:10;43143:23;43135:68;;;;-1:-1:-1;;;43135:68:0;;;;;;;:::i;:::-;78820:7:::1;:13;78830:3:::0;78820:7;:13:::1;:::i;:::-;;78753:88:::0;:::o;17855:144::-;17919:7;17962:27;17981:7;17962:18;:27::i;13732:224::-;13796:7;-1:-1:-1;;;;;13820:19:0;;13816:60;;13848:28;;-1:-1:-1;;;13848:28:0;;;;;;;;;;;13816:60;-1:-1:-1;;;;;;13894:25:0;;;;;:18;:25;;;;;;9071:13;13894:54;;13732:224::o;43574:103::-;42996:6;;-1:-1:-1;;;;;42996:6:0;36237:10;43143:23;43135:68;;;;-1:-1:-1;;;43135:68:0;;;;;;;:::i;:::-;43639:30:::1;43666:1;43639:18;:30::i;:::-;43574:103::o:0;78952:92::-;42996:6;;-1:-1:-1;;;;;42996:6:0;36237:10;43143:23;43135:68;;;;-1:-1:-1;;;43135:68:0;;;;;;;:::i;:::-;79019:5:::1;:17:::0;78952:92::o;78849:95::-;42996:6;;-1:-1:-1;;;;;42996:6:0;36237:10;43143:23;43135:68;;;;-1:-1:-1;;;43135:68:0;;;;;;;:::i;:::-;78918:9:::1;:18:::0;78849:95::o;18235:104::-;18291:13;18324:7;18317:14;;;;;:::i;76998:1430::-;77070:5;;77128:9;;77055:12;;77128:13;;77140:1;77128:13;:::i;:::-;77120:5;77102:15;;:23;;;;:::i;:::-;:39;77101:108;;;;-1:-1:-1;77192:16:0;;77178:10;77160:29;;;;:17;:29;;;;;;:48;77101:108;77086:124;;77227:6;77223:1157;;;77259:11;;;;77251:44;;;;-1:-1:-1;;;77251:44:0;;9318:2:1;77251:44:0;;;9300:21:1;9357:2;9337:18;;;9330:30;-1:-1:-1;;;9376:18:1;;;9369:50;9436:18;;77251:44:0;9116:344:1;77251:44:0;77343:9;;11713:1;12373:12;12160:7;12357:13;77334:5;;12357:28;;-1:-1:-1;;12357:46:0;77318:21;;;;:::i;:::-;:34;;77310:54;;;;-1:-1:-1;;;77310:54:0;;9667:2:1;77310:54:0;;;9649:21:1;9706:1;9686:18;;;9679:29;-1:-1:-1;;;9724:18:1;;;9717:37;9771:18;;77310:54:0;9465:330:1;77310:54:0;77396:8;;77387:5;:17;;77379:49;;;;-1:-1:-1;;;77379:49:0;;10002:2:1;77379:49:0;;;9984:21:1;10041:2;10021:18;;;10014:30;-1:-1:-1;;;10060:18:1;;;10053:49;10119:18;;77379:49:0;9800:343:1;77379:49:0;77493:10;77475:29;;;;:17;:29;;;;;;77456:16;;:48;;77475:29;77456:48;:::i;:::-;77446:5;:59;77443:638;;77613:10;77595:29;;;;:17;:29;;;;;;77576:16;;77628:4;;77576:48;;;:::i;:::-;77575:57;;;;:::i;:::-;77558:12;77566:4;77558:5;:12;:::i;:::-;77557:76;;;;:::i;:::-;77544:9;:89;;77536:134;;;;-1:-1:-1;;;77536:134:0;;10656:2:1;77536:134:0;;;10638:21:1;;;10675:18;;;10668:30;10734:34;10714:18;;;10707:62;10786:18;;77536:134:0;10454:356:1;77536:134:0;77718:16;;77704:10;77686:29;;;;:17;:29;;;;;:48;;;77750:15;:35;;:15;;77686:29;77750:35;;77718:16;;77750:35;:::i;:::-;;;;-1:-1:-1;77223:1157:0;;-1:-1:-1;77223:1157:0;77443:638;77869:10;77851:29;;;;:17;:29;;;;;;77832:16;;:48;;77851:29;77832:48;:::i;:::-;77823:5;:58;77820:261;;;78005:10;77987:29;;;;:17;:29;;;;;:38;;78020:5;;77987:29;:38;;78020:5;;77987:38;:::i;:::-;;;;;;;;78060:5;78041:15;;:24;;;;;;;:::i;77820:261::-;77223:1157;;;78125:11;;;;78117:44;;;;-1:-1:-1;;;78117:44:0;;9318:2:1;78117:44:0;;;9300:21:1;9357:2;9337:18;;;9330:30;-1:-1:-1;;;9376:18:1;;;9369:50;9436:18;;78117:44:0;9116:344:1;78117:44:0;78193:12;78201:4;78193:5;:12;:::i;:::-;78180:9;:25;;78172:70;;;;-1:-1:-1;;;78172:70:0;;10656:2:1;78172:70:0;;;10638:21:1;;;10675:18;;;10668:30;10734:34;10714:18;;;10707:62;10786:18;;78172:70:0;10454:356:1;78172:70:0;78286:9;;11713:1;12373:12;12160:7;12357:13;78277:5;;12357:28;;-1:-1:-1;;12357:46:0;78261:21;;;;:::i;:::-;:34;;78253:55;;;;-1:-1:-1;;;78253:55:0;;11017:2:1;78253:55:0;;;10999:21:1;11056:1;11036:18;;;11029:29;-1:-1:-1;;;11074:18:1;;;11067:38;11122:18;;78253:55:0;10815:331:1;78253:55:0;78336:8;;78327:5;:17;;78319:49;;;;-1:-1:-1;;;78319:49:0;;10002:2:1;78319:49:0;;;9984:21:1;10041:2;10021:18;;;10014:30;-1:-1:-1;;;10060:18:1;;;10053:49;10119:18;;78319:49:0;9800:343:1;78319:49:0;78392:28;78402:10;78414:5;78392:9;:28::i;20410:308::-;36237:10;-1:-1:-1;;;;;20509:31:0;;;20505:61;;20549:17;;-1:-1:-1;;;20549:17:0;;;;;;;;;;;20505:61;36237:10;20579:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;20579:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;20579:60:0;;;;;;;;;;20655:55;;540:41:1;;;20579:49:0;;36237:10;20655:55;;513:18:1;20655:55:0;;;;;;;20410:308;;:::o;21517:396::-;21684:28;21694:4;21700:2;21704:7;21684:9;:28::i;:::-;-1:-1:-1;;;;;21727:14:0;;;:19;21723:183;;21766:56;21797:4;21803:2;21807:7;21816:5;21766:30;:56::i;:::-;21761:145;;21850:40;;-1:-1:-1;;;21850:40:0;;;;;;;;;;;21761:145;21517:396;;;;:::o;78436:309::-;78518:13;78566:16;78574:7;78566;:16::i;:::-;78544:113;;;;-1:-1:-1;;;78544:113:0;;11353:2:1;78544:113:0;;;11335:21:1;11392:2;11372:18;;;11365:30;11431:34;11411:18;;;11404:62;-1:-1:-1;;;11482:18:1;;;11475:45;11537:19;;78544:113:0;11151:411:1;78544:113:0;78699:7;78708:18;:7;:16;:18::i;:::-;78682:54;;;;;;;;;:::i;:::-;;;;;;;;;;;;;78668:69;;78436:309;;;:::o;79052:86::-;42996:6;;-1:-1:-1;;;;;42996:6:0;36237:10;43143:23;43135:68;;;;-1:-1:-1;;;43135:68:0;;;;;;;:::i;:::-;79119:11:::1;::::0;;-1:-1:-1;;79104:26:0;::::1;79119:11;::::0;;::::1;79118:12;79104:26;::::0;;79052:86::o;20789:164::-;-1:-1:-1;;;;;20910:25:0;;;20886:4;20910:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;20789:164::o;43832:201::-;42996:6;;-1:-1:-1;;;;;42996:6:0;36237:10;43143:23;43135:68;;;;-1:-1:-1;;;43135:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;43921:22:0;::::1;43913:73;;;::::0;-1:-1:-1;;;43913:73:0;;12946:2:1;43913:73:0::1;::::0;::::1;12928:21:1::0;12985:2;12965:18;;;12958:30;13024:34;13004:18;;;12997:62;-1:-1:-1;;;13075:18:1;;;13068:36;13121:19;;43913:73:0::1;12744:402:1::0;43913:73:0::1;43997:28;44016:8;43997:18;:28::i;22168:273::-:0;22225:4;22281:7;11713:1;22262:26;;:66;;;;;22315:13;;22305:7;:23;22262:66;:152;;;;-1:-1:-1;;22366:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;22366:43:0;:48;;22168:273::o;15370:1129::-;15437:7;15472;;11713:1;15521:23;15517:915;;15574:13;;15567:4;:20;15563:869;;;15612:14;15629:23;;;:17;:23;;;;;;;-1:-1:-1;;;15718:23:0;;:28;;15714:699;;16237:113;16244:6;16254:1;16244:11;16237:113;;-1:-1:-1;;;16315:6:0;16297:25;;;;:17;:25;;;;;;16237:113;;;16383:6;15370:1129;-1:-1:-1;;;15370:1129:0:o;15714:699::-;15589:843;15563:869;16460:31;;-1:-1:-1;;;16460:31:0;;;;;;;;;;;27407:2515;27522:27;27552;27571:7;27552:18;:27::i;:::-;27522:57;;27637:4;-1:-1:-1;;;;;27596:45:0;27612:19;-1:-1:-1;;;;;27596:45:0;;27592:86;;27650:28;;-1:-1:-1;;;27650:28:0;;;;;;;;;;;27592:86;27691:22;36237:10;-1:-1:-1;;;;;27717:27:0;;;;:87;;-1:-1:-1;27761:43:0;27778:4;36237:10;20789:164;:::i;27761:43::-;27717:147;;;-1:-1:-1;36237:10:0;27821:20;27833:7;27821:11;:20::i;:::-;-1:-1:-1;;;;;27821:43:0;;27717:147;27691:174;;27883:17;27878:66;;27909:35;;-1:-1:-1;;;27909:35:0;;;;;;;;;;;27878:66;-1:-1:-1;;;;;27959:16:0;;27955:52;;27984:23;;-1:-1:-1;;;27984:23:0;;;;;;;;;;;27955:52;28136:24;;;;:15;:24;;;;;;;;28129:31;;-1:-1:-1;;;;;;28129:31:0;;;-1:-1:-1;;;;;28528:24:0;;;;;:18;:24;;;;;28526:26;;-1:-1:-1;;28526:26:0;;;28597:22;;;;;;;28595:24;;-1:-1:-1;28595:24:0;;;28890:26;;;:17;:26;;;;;-1:-1:-1;;;28978:15:0;9725:3;28978:41;28936:84;;:128;;28890:174;;;29184:46;;:51;;29180:626;;29288:1;29278:11;;29256:19;29411:30;;;:17;:30;;;;;;:35;;29407:384;;29549:13;;29534:11;:28;29530:242;;29696:30;;;;:17;:30;;;;;:52;;;29530:242;29237:569;29180:626;29853:7;29849:2;-1:-1:-1;;;;;29834:27:0;29843:4;-1:-1:-1;;;;;29834:27:0;;;;;;;;;;;29872:42;27511:2411;;27407:2515;;;:::o;44193:191::-;44286:6;;;-1:-1:-1;;;;;44303:17:0;;;-1:-1:-1;;;;;;44303:17:0;;;;;;;44336:40;;44286:6;;;44303:17;44286:6;;44336:40;;44267:16;;44336:40;44256:128;44193:191;:::o;22525:104::-;22594:27;22604:2;22608:8;22594:27;;;;;;;;;;;;:9;:27::i;33619:716::-;33803:88;;-1:-1:-1;;;33803:88:0;;33782:4;;-1:-1:-1;;;;;33803:45:0;;;;;:88;;36237:10;;33870:4;;33876:7;;33885:5;;33803:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;33803:88:0;;;;;;;;-1:-1:-1;;33803:88:0;;;;;;;;;;;;:::i;:::-;;;33799:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34086:6;:13;34103:1;34086:18;34082:235;;34132:40;;-1:-1:-1;;;34132:40:0;;;;;;;;;;;34082:235;34275:6;34269:13;34260:6;34256:2;34252:15;34245:38;33799:529;-1:-1:-1;;;;;;33962:64:0;-1:-1:-1;;;33962:64:0;;-1:-1:-1;33799:529:0;33619:716;;;;;;:::o;38795:723::-;38851:13;39072:5;39081:1;39072:10;39068:53;;-1:-1:-1;;39099:10:0;;;;;;;;;;;;-1:-1:-1;;;39099:10:0;;;;;38795:723::o;39068:53::-;39146:5;39131:12;39187:78;39194:9;;39187:78;;39220:8;;;;:::i;:::-;;-1:-1:-1;39243:10:0;;-1:-1:-1;39251:2:0;39243:10;;:::i;:::-;;;39187:78;;;39275:19;39307:6;39297:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39297:17:0;;39275:39;;39325:154;39332:10;;39325:154;;39359:11;39369:1;39359:11;;:::i;:::-;;-1:-1:-1;39428:10:0;39436:2;39428:5;:10;:::i;:::-;39415:24;;:2;:24;:::i;:::-;39402:39;;39385:6;39392;39385:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;39385:56:0;;;;;;;;-1:-1:-1;39456:11:0;39465:2;39456:11;;:::i;:::-;;;39325:154;;23002:2236;23125:20;23148:13;-1:-1:-1;;;;;23176:16:0;;23172:48;;23201:19;;-1:-1:-1;;;23201:19:0;;;;;;;;;;;23172:48;23235:8;23247:1;23235:13;23231:44;;23257:18;;-1:-1:-1;;;23257:18:0;;;;;;;;;;;23231:44;-1:-1:-1;;;;;23824:22:0;;;;;;:18;:22;;;;9208:2;23824:22;;;:70;;23862:31;23850:44;;23824:70;;;24137:31;;;:17;:31;;;;;24230:15;9725:3;24230:41;24188:84;;-1:-1:-1;24308:13:0;;9988:3;24293:56;24188:162;24137:213;;:31;;24431:23;;;;24475:14;:19;24471:635;;24515:313;24546:38;;24571:12;;-1:-1:-1;;;;;24546:38:0;;;24563:1;;24546:38;;24563:1;;24546:38;24612:69;24651:1;24655:2;24659:14;;;;;;24675:5;24612:30;:69::i;:::-;24607:174;;24717:40;;-1:-1:-1;;;24717:40:0;;;;;;;;;;;24607:174;24823:3;24808:12;:18;24515:313;;24909:12;24892:13;;:29;24888:43;;24923:8;;;24888:43;24471:635;;;24972:119;25003:40;;25028:14;;;;;-1:-1:-1;;;;;25003:40:0;;;25020:1;;25003:40;;25020:1;;25003:40;25086:3;25071:12;:18;24972:119;;24471:635;-1:-1:-1;25120:13:0;:28;;;25170:60;;25203:2;25207:12;25221:8;25170:60;:::i;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:289::-;634:3;672:5;666:12;699:6;694:3;687:19;755:6;748:4;741:5;737:16;730:4;725:3;721:14;715:47;807:1;800:4;791:6;786:3;782:16;778:27;771:38;870:4;863:2;859:7;854:2;846:6;842:15;838:29;833:3;829:39;825:50;818:57;;;592:289;;;;:::o;886:220::-;1035:2;1024:9;1017:21;998:4;1055:45;1096:2;1085:9;1081:18;1073:6;1055:45;:::i;1111:226::-;1170:6;1223:2;1211:9;1202:7;1198:23;1194:32;1191:52;;;1239:1;1236;1229:12;1191:52;-1:-1:-1;1284:23:1;;1111:226;-1:-1:-1;1111:226:1:o;1550:173::-;1618:20;;-1:-1:-1;;;;;1667:31:1;;1657:42;;1647:70;;1713:1;1710;1703:12;1647:70;1550:173;;;:::o;1728:300::-;1796:6;1804;1857:2;1845:9;1836:7;1832:23;1828:32;1825:52;;;1873:1;1870;1863:12;1825:52;1896:29;1915:9;1896:29;:::i;:::-;1886:39;1994:2;1979:18;;;;1966:32;;-1:-1:-1;;;1728:300:1:o;2215:374::-;2292:6;2300;2308;2361:2;2349:9;2340:7;2336:23;2332:32;2329:52;;;2377:1;2374;2367:12;2329:52;2400:29;2419:9;2400:29;:::i;:::-;2390:39;;2448:38;2482:2;2471:9;2467:18;2448:38;:::i;:::-;2215:374;;2438:48;;-1:-1:-1;;;2555:2:1;2540:18;;;;2527:32;;2215:374::o;2594:127::-;2655:10;2650:3;2646:20;2643:1;2636:31;2686:4;2683:1;2676:15;2710:4;2707:1;2700:15;2726:716;2791:5;2823:1;2847:18;2839:6;2836:30;2833:56;;;2869:18;;:::i;:::-;-1:-1:-1;3024:2:1;3018:9;-1:-1:-1;;2937:2:1;2916:15;;2912:29;;3082:2;3070:15;3066:29;3054:42;;3147:22;;;3126:18;3111:34;;3108:62;3105:88;;;3173:18;;:::i;:::-;3209:2;3202:22;3257;;;3242:6;-1:-1:-1;3242:6:1;3294:16;;;3291:25;-1:-1:-1;3288:45:1;;;3329:1;3326;3319:12;3288:45;3379:6;3374:3;3367:4;3359:6;3355:17;3342:44;3434:1;3427:4;3418:6;3410;3406:19;3402:30;3395:41;;2726:716;;;;;:::o;3447:451::-;3516:6;3569:2;3557:9;3548:7;3544:23;3540:32;3537:52;;;3585:1;3582;3575:12;3537:52;3625:9;3612:23;3658:18;3650:6;3647:30;3644:50;;;3690:1;3687;3680:12;3644:50;3713:22;;3766:4;3758:13;;3754:27;-1:-1:-1;3744:55:1;;3795:1;3792;3785:12;3744:55;3818:74;3884:7;3879:2;3866:16;3861:2;3857;3853:11;3818:74;:::i;3903:186::-;3962:6;4015:2;4003:9;3994:7;3990:23;3986:32;3983:52;;;4031:1;4028;4021:12;3983:52;4054:29;4073:9;4054:29;:::i;4094:347::-;4159:6;4167;4220:2;4208:9;4199:7;4195:23;4191:32;4188:52;;;4236:1;4233;4226:12;4188:52;4259:29;4278:9;4259:29;:::i;:::-;4249:39;;4338:2;4327:9;4323:18;4310:32;4385:5;4378:13;4371:21;4364:5;4361:32;4351:60;;4407:1;4404;4397:12;4351:60;4430:5;4420:15;;;4094:347;;;;;:::o;4446:713::-;4541:6;4549;4557;4565;4618:3;4606:9;4597:7;4593:23;4589:33;4586:53;;;4635:1;4632;4625:12;4586:53;4658:29;4677:9;4658:29;:::i;:::-;4648:39;;4706:38;4740:2;4729:9;4725:18;4706:38;:::i;:::-;4696:48;-1:-1:-1;4813:2:1;4798:18;;4785:32;;-1:-1:-1;4892:2:1;4877:18;;4864:32;4919:18;4908:30;;4905:50;;;4951:1;4948;4941:12;4905:50;4974:22;;5027:4;5019:13;;5015:27;-1:-1:-1;5005:55:1;;5056:1;5053;5046:12;5005:55;5079:74;5145:7;5140:2;5127:16;5122:2;5118;5114:11;5079:74;:::i;:::-;5069:84;;;4446:713;;;;;;;:::o;5164:260::-;5232:6;5240;5293:2;5281:9;5272:7;5268:23;5264:32;5261:52;;;5309:1;5306;5299:12;5261:52;5332:29;5351:9;5332:29;:::i;:::-;5322:39;;5380:38;5414:2;5403:9;5399:18;5380:38;:::i;:::-;5370:48;;5164:260;;;;;:::o;5429:380::-;5508:1;5504:12;;;;5551;;;5572:61;;5626:4;5618:6;5614:17;5604:27;;5572:61;5679:2;5671:6;5668:14;5648:18;5645:38;5642:161;;5725:10;5720:3;5716:20;5713:1;5706:31;5760:4;5757:1;5750:15;5788:4;5785:1;5778:15;5642:161;;5429:380;;;:::o;5814:356::-;6016:2;5998:21;;;6035:18;;;6028:30;6094:34;6089:2;6074:18;;6067:62;6161:2;6146:18;;5814:356::o;6856:518::-;6958:2;6953:3;6950:11;6947:421;;;6994:5;6991:1;6984:16;7038:4;7035:1;7025:18;7108:2;7096:10;7092:19;7089:1;7085:27;7079:4;7075:38;7144:4;7132:10;7129:20;7126:47;;;-1:-1:-1;7167:4:1;7126:47;7222:2;7217:3;7213:12;7210:1;7206:20;7200:4;7196:31;7186:41;;7277:81;7295:2;7288:5;7285:13;7277:81;;;7354:1;7340:16;;7321:1;7310:13;7277:81;;7550:1299;7676:3;7670:10;7703:18;7695:6;7692:30;7689:56;;;7725:18;;:::i;:::-;7754:97;7844:6;7804:38;7836:4;7830:11;7804:38;:::i;:::-;7798:4;7754:97;:::i;:::-;7900:4;7931:2;7920:14;;7948:1;7943:649;;;;8636:1;8653:6;8650:89;;;-1:-1:-1;8705:19:1;;;8699:26;8650:89;-1:-1:-1;;7507:1:1;7503:11;;;7499:24;7495:29;7485:40;7531:1;7527:11;;;7482:57;8752:81;;7913:930;;7943:649;6803:1;6796:14;;;6840:4;6827:18;;-1:-1:-1;;7979:20:1;;;8097:222;8111:7;8108:1;8105:14;8097:222;;;8193:19;;;8187:26;8172:42;;8300:4;8285:20;;;;8253:1;8241:14;;;;8127:12;8097:222;;;8101:3;8347:6;8338:7;8335:19;8332:201;;;8408:19;;;8402:26;-1:-1:-1;;8491:1:1;8487:14;;;8503:3;8483:24;8479:37;8475:42;8460:58;8445:74;;8332:201;-1:-1:-1;;;;8579:1:1;8563:14;;;8559:22;8546:36;;-1:-1:-1;7550:1299:1:o;8854:127::-;8915:10;8910:3;8906:20;8903:1;8896:31;8946:4;8943:1;8936:15;8970:4;8967:1;8960:15;8986:125;9051:9;;;9072:10;;;9069:36;;;9085:18;;:::i;10148:128::-;10215:9;;;10236:11;;;10233:37;;;10250:18;;:::i;10281:168::-;10354:9;;;10385;;10402:15;;;10396:22;;10382:37;10372:71;;10423:18;;:::i;11567:1172::-;11844:3;11873:1;11906:6;11900:13;11936:36;11962:9;11936:36;:::i;:::-;12003:1;11988:17;;12014:133;;;;12161:1;12156:332;;;;11981:507;;12014:133;-1:-1:-1;;12047:24:1;;12035:37;;12120:14;;12113:22;12101:35;;12092:45;;;-1:-1:-1;12014:133:1;;12156:332;12187:6;12184:1;12177:17;12235:4;12232:1;12222:18;12262:1;12276:166;12290:6;12287:1;12284:13;12276:166;;;12370:14;;12357:11;;;12350:35;12426:1;12413:15;;;;12312:4;12305:12;12276:166;;;12280:3;;12471:6;12466:3;12462:16;12455:23;;11981:507;;;;12519:6;12513:13;12565:8;12558:4;12550:6;12546:17;12541:3;12535:39;-1:-1:-1;;;12593:18:1;;12665:19;;;12710:1;12702:10;;11567:1172;-1:-1:-1;;;;11567:1172:1:o;13151:485::-;-1:-1:-1;;;;;13382:32:1;;;13364:51;;13451:32;;13446:2;13431:18;;13424:60;13515:2;13500:18;;13493:34;;;13563:3;13558:2;13543:18;;13536:31;;;-1:-1:-1;;13584:46:1;;13610:19;;13602:6;13584:46;:::i;:::-;13576:54;13151:485;-1:-1:-1;;;;;;13151:485:1:o;13641:249::-;13710:6;13763:2;13751:9;13742:7;13738:23;13734:32;13731:52;;;13779:1;13776;13769:12;13731:52;13811:9;13805:16;13830:30;13854:5;13830:30;:::i;13895:135::-;13934:3;13955:17;;;13952:43;;13975:18;;:::i;:::-;-1:-1:-1;14022:1:1;14011:13;;13895:135::o;14035:127::-;14096:10;14091:3;14087:20;14084:1;14077:31;14127:4;14124:1;14117:15;14151:4;14148:1;14141:15;14167:120;14207:1;14233;14223:35;;14238:18;;:::i;:::-;-1:-1:-1;14272:9:1;;14167:120::o;14292:112::-;14324:1;14350;14340:35;;14355:18;;:::i;:::-;-1:-1:-1;14389:9:1;;14292:112::o;14409:127::-;14470:10;14465:3;14461:20;14458:1;14451:31;14501:4;14498:1;14491:15;14525:4;14522:1;14515:15
Swarm Source
ipfs://917977ff1495cd11d140f375f029294ee421e007e26e1b6227806a52536e73f9
[ 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.