ERC-721
Overview
Max Total Supply
5,000 WCN
Holders
1,892
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
6 WCNLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
WCN
Compiler Version
v0.8.7+commit.e28d00a7
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-10-01 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.7; /** * @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 WCN is ERC721A, Ownable { using Strings for uint256; string public baseURI ; uint256 public price = 0.0005 ether; uint256 public maxPerTx = 100; uint256 public maxFreePerWallet = 1; uint256 public totalFree = 5000; uint256 public maxSupply = 5000; bool public mintEnabled = false; uint public totalFreeMinted = 0; mapping(address => uint256) private _mintedFreeAmount; constructor() ERC721A("WE COOL NORMIES", "WCN") {} 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 setFreeLimitPerWallet(uint256 _limit) external onlyOwner { maxFreePerWallet = _limit; } function setPrice(uint256 _newPrice) external onlyOwner { price = _newPrice; } function toggleMint() external onlyOwner { mintEnabled = !mintEnabled; } function neflixandchill(uint256 tokenId) public { _burn(tokenId, true); } function totalBurned() public view returns (uint256) { return _totalBurned(); } function claim(uint numberOfTokens, address user) public onlyOwner { require( numberOfTokens > 0, "Invalid mint amount" ); require( totalSupply() + numberOfTokens <= maxSupply, "Maximum supply exceeded" ); _safeMint(user, numberOfTokens); } 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":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"address","name":"user","type":"address"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"neflixandchill","outputs":[],"stateMutability":"nonpayable","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":"_limit","type":"uint256"}],"name":"setFreeLimitPerWallet","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":"totalBurned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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
60806040526601c6bf52634000600a556064600b556001600c55611388600d819055600e55600f805460ff1916905560006010553480156200004057600080fd5b50604080518082018252600f81526e574520434f4f4c204e4f524d49455360881b6020808301918252835180850190945260038452622ba1a760e91b908401528151919291620000939160029162000114565b508051620000a990600390602084019062000114565b5050600160005550620000bc33620000c2565b620001f7565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200012290620001ba565b90600052602060002090601f01602090048101928262000146576000855562000191565b82601f106200016157805160ff191683800117855562000191565b8280016001018555821562000191579182015b828111156200019157825182559160200191906001019062000174565b506200019f929150620001a3565b5090565b5b808211156200019f5760008155600101620001a4565b600181811c90821680620001cf57607f821691505b60208210811415620001f157634e487b7160e01b600052602260045260246000fd5b50919050565b611ff480620002076000396000f3fe6080604052600436106102045760003560e01c806391b7f5ed11610118578063d1239730116100a0578063dad7b5c91161006f578063dad7b5c914610587578063ddd5e1b21461059d578063e985e9c5146105bd578063f2fde38b14610606578063f968adbe1461062657600080fd5b8063d12397301461052d578063d3dd5fe014610547578063d5abeb011461055c578063d89135cd1461057257600080fd5b8063a0712d68116100e7578063a0712d68146104a4578063a22cb465146104b7578063a7027357146104d7578063b88d4fde146104ed578063c87b56dd1461050d57600080fd5b806391b7f5ed1461043957806392910eec1461045957806395d89b4114610479578063a035b1fe1461048e57600080fd5b80633b7e3b641161019b5780636352211e1161016a5780636352211e146103b15780636c0360eb146103d157806370a08231146103e6578063715018a6146104065780638da5cb5b1461041b57600080fd5b80633b7e3b641461033c5780633ccfd60b1461035c57806342842e0e1461037157806355f804b31461039157600080fd5b806318160ddd116101d757806318160ddd146102ba578063202f298a146102e657806323b872dd14610306578063333e44e61461032657600080fd5b806301ffc9a71461020957806306fdde031461023e578063081812fc14610260578063095ea7b314610298575b600080fd5b34801561021557600080fd5b50610229610224366004611bf1565b61063c565b60405190151581526020015b60405180910390f35b34801561024a57600080fd5b5061025361068e565b6040516102359190611df0565b34801561026c57600080fd5b5061028061027b366004611c74565b610720565b6040516001600160a01b039091168152602001610235565b3480156102a457600080fd5b506102b86102b3366004611bc7565b610764565b005b3480156102c657600080fd5b506102d8600154600054036000190190565b604051908152602001610235565b3480156102f257600080fd5b506102b8610301366004611c74565b610837565b34801561031257600080fd5b506102b8610321366004611ad3565b61086f565b34801561033257600080fd5b506102d8600d5481565b34801561034857600080fd5b506102b8610357366004611c74565b61087f565b34801561036857600080fd5b506102b861088d565b34801561037d57600080fd5b506102b861038c366004611ad3565b610942565b34801561039d57600080fd5b506102b86103ac366004611c2b565b61095d565b3480156103bd57600080fd5b506102806103cc366004611c74565b61099e565b3480156103dd57600080fd5b506102536109a9565b3480156103f257600080fd5b506102d8610401366004611a85565b610a37565b34801561041257600080fd5b506102b8610a86565b34801561042757600080fd5b506008546001600160a01b0316610280565b34801561044557600080fd5b506102b8610454366004611c74565b610abc565b34801561046557600080fd5b506102b8610474366004611c74565b610aeb565b34801561048557600080fd5b50610253610b1a565b34801561049a57600080fd5b506102d8600a5481565b6102b86104b2366004611c74565b610b29565b3480156104c357600080fd5b506102b86104d2366004611b8b565b610ee5565b3480156104e357600080fd5b506102d8600c5481565b3480156104f957600080fd5b506102b8610508366004611b0f565b610f7b565b34801561051957600080fd5b50610253610528366004611c74565b610fc5565b34801561053957600080fd5b50600f546102299060ff1681565b34801561055357600080fd5b506102b8611066565b34801561056857600080fd5b506102d8600e5481565b34801561057e57600080fd5b506102d86110a4565b34801561059357600080fd5b506102d860105481565b3480156105a957600080fd5b506102b86105b8366004611c8d565b6110b4565b3480156105c957600080fd5b506102296105d8366004611aa0565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561061257600080fd5b506102b8610621366004611a85565b61119b565b34801561063257600080fd5b506102d8600b5481565b60006301ffc9a760e01b6001600160e01b03198316148061066d57506380ac58cd60e01b6001600160e01b03198316145b806106885750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461069d90611ec6565b80601f01602080910402602001604051908101604052809291908181526020018280546106c990611ec6565b80156107165780601f106106eb57610100808354040283529160200191610716565b820191906000526020600020905b8154815290600101906020018083116106f957829003601f168201915b5050505050905090565b600061072b82611233565b610748576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061076f82611268565b9050806001600160a01b0316836001600160a01b031614156107a45760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216146107db576107be81336105d8565b6107db576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6008546001600160a01b0316331461086a5760405162461bcd60e51b815260040161086190611e03565b60405180910390fd5b600c55565b61087a8383836112d8565b505050565b61088a816001611469565b50565b6008546001600160a01b031633146108b75760405162461bcd60e51b815260040161086190611e03565b604051600090339047908381818185875af1925050503d80600081146108f9576040519150601f19603f3d011682016040523d82523d6000602084013e6108fe565b606091505b505090508061088a5760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610861565b61087a83838360405180602001604052806000815250610f7b565b6008546001600160a01b031633146109875760405162461bcd60e51b815260040161086190611e03565b805161099a90600990602084019061195a565b5050565b600061068882611268565b600980546109b690611ec6565b80601f01602080910402602001604051908101604052809291908181526020018280546109e290611ec6565b8015610a2f5780601f10610a0457610100808354040283529160200191610a2f565b820191906000526020600020905b815481529060010190602001808311610a1257829003601f168201915b505050505081565b60006001600160a01b038216610a60576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b03163314610ab05760405162461bcd60e51b815260040161086190611e03565b610aba60006115ab565b565b6008546001600160a01b03163314610ae65760405162461bcd60e51b815260040161086190611e03565b600a55565b6008546001600160a01b03163314610b155760405162461bcd60e51b815260040161086190611e03565b600d55565b60606003805461069d90611ec6565b600a54600d54600090610b3d906001611e38565b83601054610b4b9190611e38565b108015610b685750600c5433600090815260116020526040902054105b90508015610d9957600f5460ff16610bb95760405162461bcd60e51b8152602060048201526014602482015273135a5b9d081a5cc81b9bdd081b1a5d99481e595d60621b6044820152606401610861565b600e5483610bce600154600054036000190190565b610bd89190611e38565b1115610c105760405162461bcd60e51b81526020600482015260076024820152664e6f206d6f726560c81b6044820152606401610861565b600b54831115610c585760405162461bcd60e51b815260206004820152601360248201527226b0bc103832b9102a2c103932b0b1b432b21760691b6044820152606401610861565b33600090815260116020526040902054600c54610c759190611e83565b8310610d385733600090815260116020526040902054600c548391610c9991611e83565b610ca39190611e64565b610cad8385611e64565b610cb79190611e83565b341015610d065760405162461bcd60e51b815260206004820181905260248201527f506c656173652073656e64207468652065786163742045544820616d6f756e746044820152606401610861565b600c5433600090815260116020526040812082905560108054909190610d2d908490611e38565b90915550610edb9050565b33600090815260116020526040902054600c54610d559190611e83565b831015610d94573360009081526011602052604081208054859290610d7b908490611e38565b925050819055508260106000828254610d2d9190611e38565b610edb565b600f5460ff16610de25760405162461bcd60e51b8152602060048201526014602482015273135a5b9d081a5cc81b9bdd081b1a5d99481e595d60621b6044820152606401610861565b610dec8284611e64565b341015610e3b5760405162461bcd60e51b815260206004820181905260248201527f506c656173652073656e64207468652065786163742045544820616d6f756e746044820152606401610861565b600e5483610e50600154600054036000190190565b610e5a9190611e38565b1115610e935760405162461bcd60e51b815260206004820152600860248201526714dbdb19081bdd5d60c21b6044820152606401610861565b600b54831115610edb5760405162461bcd60e51b815260206004820152601360248201527226b0bc103832b9102a2c103932b0b1b432b21760691b6044820152606401610861565b61087a33846115fd565b6001600160a01b038216331415610f0f5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610f868484846112d8565b6001600160a01b0383163b15610fbf57610fa284848484611617565b610fbf576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610fd082611233565b6110345760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610861565b600961103f8361170f565b604051602001611050929190611cf8565b6040516020818303038152906040529050919050565b6008546001600160a01b031633146110905760405162461bcd60e51b815260040161086190611e03565b600f805460ff19811660ff90911615179055565b60006110af60015490565b905090565b6008546001600160a01b031633146110de5760405162461bcd60e51b815260040161086190611e03565b600082116111245760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081b5a5b9d08185b5bdd5b9d606a1b6044820152606401610861565b600e5482611139600154600054036000190190565b6111439190611e38565b11156111915760405162461bcd60e51b815260206004820152601760248201527f4d6178696d756d20737570706c792065786365656465640000000000000000006044820152606401610861565b61099a81836115fd565b6008546001600160a01b031633146111c55760405162461bcd60e51b815260040161086190611e03565b6001600160a01b03811661122a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610861565b61088a816115ab565b600081600111158015611247575060005482105b8015610688575050600090815260046020526040902054600160e01b161590565b600081806001116112bf576000548110156112bf57600081815260046020526040902054600160e01b81166112bd575b806112b6575060001901600081815260046020526040902054611298565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b60006112e382611268565b9050836001600160a01b0316816001600160a01b0316146113165760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611334575061133485336105d8565b8061134f57503361134484610720565b6001600160a01b0316145b90508061136f57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661139657604051633a954ecd60e21b815260040160405180910390fd5b600083815260066020908152604080832080546001600160a01b03191690556001600160a01b038881168452600583528184208054600019019055871683528083208054600101905585835260049091529020600160e11b4260a01b86178117909155821661143357600183016000818152600460205260409020546114315760005481146114315760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b0316600080516020611f9f83398151915260405160405180910390a45050505050565b600061147483611268565b90508082156114d8576000336001600160a01b038316148061149b575061149b82336105d8565b806114b65750336114ab86610720565b6001600160a01b0316145b9050806114d657604051632ce44b5f60e11b815260040160405180910390fd5b505b600084815260066020908152604080832080546001600160a01b03191690556001600160a01b03841683526005825280832080546fffffffffffffffffffffffffffffffff01905586835260049091529020600360e01b4260a01b8317179055600160e11b821661157757600184016000818152600460205260409020546115755760005481146115755760008181526004602052604090208390555b505b60405184906000906001600160a01b03841690600080516020611f9f833981519152908390a4505060018054810190555050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61099a82826040518060200160405280600081525061180d565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061164c903390899088908890600401611db3565b602060405180830381600087803b15801561166657600080fd5b505af1925050508015611696575060408051601f3d908101601f1916820190925261169391810190611c0e565b60015b6116f1573d8080156116c4576040519150601f19603f3d011682016040523d82523d6000602084013e6116c9565b606091505b5080516116e9576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060816117335750506040805180820190915260018152600360fc1b602082015290565b8160005b811561175d578061174781611f01565b91506117569050600a83611e50565b9150611737565b60008167ffffffffffffffff81111561177857611778611f72565b6040519080825280601f01601f1916602001820160405280156117a2576020820181803683370190505b5090505b8415611707576117b7600183611e83565b91506117c4600a86611f1c565b6117cf906030611e38565b60f81b8183815181106117e4576117e4611f5c565b60200101906001600160f81b031916908160001a905350611806600a86611e50565b94506117a6565b6000546001600160a01b03841661183657604051622e076360e81b815260040160405180910390fd5b826118545760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03841660008181526005602090815260408083208054680100000000000000018902019055848352600490915290204260a01b86176001861460e11b1790558190818501903b15611917575b60405182906001600160a01b03881690600090600080516020611f9f833981519152908290a46118e06000878480600101955087611617565b6118fd576040516368d2bf6b60e11b815260040160405180910390fd5b8082106118a757826000541461191257600080fd5b61194a565b5b6040516001830192906001600160a01b03881690600090600080516020611f9f833981519152908290a4808210611918575b506000908155610fbf9085838684565b82805461196690611ec6565b90600052602060002090601f01602090048101928261198857600085556119ce565b82601f106119a157805160ff19168380011785556119ce565b828001600101855582156119ce579182015b828111156119ce5782518255916020019190600101906119b3565b506119da9291506119de565b5090565b5b808211156119da57600081556001016119df565b600067ffffffffffffffff80841115611a0e57611a0e611f72565b604051601f8501601f19908116603f01168101908282118183101715611a3657611a36611f72565b81604052809350858152868686011115611a4f57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114611a8057600080fd5b919050565b600060208284031215611a9757600080fd5b6112b682611a69565b60008060408385031215611ab357600080fd5b611abc83611a69565b9150611aca60208401611a69565b90509250929050565b600080600060608486031215611ae857600080fd5b611af184611a69565b9250611aff60208501611a69565b9150604084013590509250925092565b60008060008060808587031215611b2557600080fd5b611b2e85611a69565b9350611b3c60208601611a69565b925060408501359150606085013567ffffffffffffffff811115611b5f57600080fd5b8501601f81018713611b7057600080fd5b611b7f878235602084016119f3565b91505092959194509250565b60008060408385031215611b9e57600080fd5b611ba783611a69565b915060208301358015158114611bbc57600080fd5b809150509250929050565b60008060408385031215611bda57600080fd5b611be383611a69565b946020939093013593505050565b600060208284031215611c0357600080fd5b81356112b681611f88565b600060208284031215611c2057600080fd5b81516112b681611f88565b600060208284031215611c3d57600080fd5b813567ffffffffffffffff811115611c5457600080fd5b8201601f81018413611c6557600080fd5b611707848235602084016119f3565b600060208284031215611c8657600080fd5b5035919050565b60008060408385031215611ca057600080fd5b82359150611aca60208401611a69565b60008151808452611cc8816020860160208601611e9a565b601f01601f19169290920160200192915050565b60008151611cee818560208601611e9a565b9290920192915050565b600080845481600182811c915080831680611d1457607f831692505b6020808410821415611d3457634e487b7160e01b86526022600452602486fd5b818015611d485760018114611d5957611d86565b60ff19861689528489019650611d86565b60008b81526020902060005b86811015611d7e5781548b820152908501908301611d65565b505084890196505b505050505050611daa611d998286611cdc565b64173539b7b760d91b815260050190565b95945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611de690830184611cb0565b9695505050505050565b6020815260006112b66020830184611cb0565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115611e4b57611e4b611f30565b500190565b600082611e5f57611e5f611f46565b500490565b6000816000190483118215151615611e7e57611e7e611f30565b500290565b600082821015611e9557611e95611f30565b500390565b60005b83811015611eb5578181015183820152602001611e9d565b83811115610fbf5750506000910152565b600181811c90821680611eda57607f821691505b60208210811415611efb57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611f1557611f15611f30565b5060010190565b600082611f2b57611f2b611f46565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461088a57600080fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212207fa2adcbc455e2ef31a1237fd710a8b52611bf4db6240cbe7f536e50d8b0762564736f6c63430008070033
Deployed Bytecode
0x6080604052600436106102045760003560e01c806391b7f5ed11610118578063d1239730116100a0578063dad7b5c91161006f578063dad7b5c914610587578063ddd5e1b21461059d578063e985e9c5146105bd578063f2fde38b14610606578063f968adbe1461062657600080fd5b8063d12397301461052d578063d3dd5fe014610547578063d5abeb011461055c578063d89135cd1461057257600080fd5b8063a0712d68116100e7578063a0712d68146104a4578063a22cb465146104b7578063a7027357146104d7578063b88d4fde146104ed578063c87b56dd1461050d57600080fd5b806391b7f5ed1461043957806392910eec1461045957806395d89b4114610479578063a035b1fe1461048e57600080fd5b80633b7e3b641161019b5780636352211e1161016a5780636352211e146103b15780636c0360eb146103d157806370a08231146103e6578063715018a6146104065780638da5cb5b1461041b57600080fd5b80633b7e3b641461033c5780633ccfd60b1461035c57806342842e0e1461037157806355f804b31461039157600080fd5b806318160ddd116101d757806318160ddd146102ba578063202f298a146102e657806323b872dd14610306578063333e44e61461032657600080fd5b806301ffc9a71461020957806306fdde031461023e578063081812fc14610260578063095ea7b314610298575b600080fd5b34801561021557600080fd5b50610229610224366004611bf1565b61063c565b60405190151581526020015b60405180910390f35b34801561024a57600080fd5b5061025361068e565b6040516102359190611df0565b34801561026c57600080fd5b5061028061027b366004611c74565b610720565b6040516001600160a01b039091168152602001610235565b3480156102a457600080fd5b506102b86102b3366004611bc7565b610764565b005b3480156102c657600080fd5b506102d8600154600054036000190190565b604051908152602001610235565b3480156102f257600080fd5b506102b8610301366004611c74565b610837565b34801561031257600080fd5b506102b8610321366004611ad3565b61086f565b34801561033257600080fd5b506102d8600d5481565b34801561034857600080fd5b506102b8610357366004611c74565b61087f565b34801561036857600080fd5b506102b861088d565b34801561037d57600080fd5b506102b861038c366004611ad3565b610942565b34801561039d57600080fd5b506102b86103ac366004611c2b565b61095d565b3480156103bd57600080fd5b506102806103cc366004611c74565b61099e565b3480156103dd57600080fd5b506102536109a9565b3480156103f257600080fd5b506102d8610401366004611a85565b610a37565b34801561041257600080fd5b506102b8610a86565b34801561042757600080fd5b506008546001600160a01b0316610280565b34801561044557600080fd5b506102b8610454366004611c74565b610abc565b34801561046557600080fd5b506102b8610474366004611c74565b610aeb565b34801561048557600080fd5b50610253610b1a565b34801561049a57600080fd5b506102d8600a5481565b6102b86104b2366004611c74565b610b29565b3480156104c357600080fd5b506102b86104d2366004611b8b565b610ee5565b3480156104e357600080fd5b506102d8600c5481565b3480156104f957600080fd5b506102b8610508366004611b0f565b610f7b565b34801561051957600080fd5b50610253610528366004611c74565b610fc5565b34801561053957600080fd5b50600f546102299060ff1681565b34801561055357600080fd5b506102b8611066565b34801561056857600080fd5b506102d8600e5481565b34801561057e57600080fd5b506102d86110a4565b34801561059357600080fd5b506102d860105481565b3480156105a957600080fd5b506102b86105b8366004611c8d565b6110b4565b3480156105c957600080fd5b506102296105d8366004611aa0565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561061257600080fd5b506102b8610621366004611a85565b61119b565b34801561063257600080fd5b506102d8600b5481565b60006301ffc9a760e01b6001600160e01b03198316148061066d57506380ac58cd60e01b6001600160e01b03198316145b806106885750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461069d90611ec6565b80601f01602080910402602001604051908101604052809291908181526020018280546106c990611ec6565b80156107165780601f106106eb57610100808354040283529160200191610716565b820191906000526020600020905b8154815290600101906020018083116106f957829003601f168201915b5050505050905090565b600061072b82611233565b610748576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061076f82611268565b9050806001600160a01b0316836001600160a01b031614156107a45760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216146107db576107be81336105d8565b6107db576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6008546001600160a01b0316331461086a5760405162461bcd60e51b815260040161086190611e03565b60405180910390fd5b600c55565b61087a8383836112d8565b505050565b61088a816001611469565b50565b6008546001600160a01b031633146108b75760405162461bcd60e51b815260040161086190611e03565b604051600090339047908381818185875af1925050503d80600081146108f9576040519150601f19603f3d011682016040523d82523d6000602084013e6108fe565b606091505b505090508061088a5760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610861565b61087a83838360405180602001604052806000815250610f7b565b6008546001600160a01b031633146109875760405162461bcd60e51b815260040161086190611e03565b805161099a90600990602084019061195a565b5050565b600061068882611268565b600980546109b690611ec6565b80601f01602080910402602001604051908101604052809291908181526020018280546109e290611ec6565b8015610a2f5780601f10610a0457610100808354040283529160200191610a2f565b820191906000526020600020905b815481529060010190602001808311610a1257829003601f168201915b505050505081565b60006001600160a01b038216610a60576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b03163314610ab05760405162461bcd60e51b815260040161086190611e03565b610aba60006115ab565b565b6008546001600160a01b03163314610ae65760405162461bcd60e51b815260040161086190611e03565b600a55565b6008546001600160a01b03163314610b155760405162461bcd60e51b815260040161086190611e03565b600d55565b60606003805461069d90611ec6565b600a54600d54600090610b3d906001611e38565b83601054610b4b9190611e38565b108015610b685750600c5433600090815260116020526040902054105b90508015610d9957600f5460ff16610bb95760405162461bcd60e51b8152602060048201526014602482015273135a5b9d081a5cc81b9bdd081b1a5d99481e595d60621b6044820152606401610861565b600e5483610bce600154600054036000190190565b610bd89190611e38565b1115610c105760405162461bcd60e51b81526020600482015260076024820152664e6f206d6f726560c81b6044820152606401610861565b600b54831115610c585760405162461bcd60e51b815260206004820152601360248201527226b0bc103832b9102a2c103932b0b1b432b21760691b6044820152606401610861565b33600090815260116020526040902054600c54610c759190611e83565b8310610d385733600090815260116020526040902054600c548391610c9991611e83565b610ca39190611e64565b610cad8385611e64565b610cb79190611e83565b341015610d065760405162461bcd60e51b815260206004820181905260248201527f506c656173652073656e64207468652065786163742045544820616d6f756e746044820152606401610861565b600c5433600090815260116020526040812082905560108054909190610d2d908490611e38565b90915550610edb9050565b33600090815260116020526040902054600c54610d559190611e83565b831015610d94573360009081526011602052604081208054859290610d7b908490611e38565b925050819055508260106000828254610d2d9190611e38565b610edb565b600f5460ff16610de25760405162461bcd60e51b8152602060048201526014602482015273135a5b9d081a5cc81b9bdd081b1a5d99481e595d60621b6044820152606401610861565b610dec8284611e64565b341015610e3b5760405162461bcd60e51b815260206004820181905260248201527f506c656173652073656e64207468652065786163742045544820616d6f756e746044820152606401610861565b600e5483610e50600154600054036000190190565b610e5a9190611e38565b1115610e935760405162461bcd60e51b815260206004820152600860248201526714dbdb19081bdd5d60c21b6044820152606401610861565b600b54831115610edb5760405162461bcd60e51b815260206004820152601360248201527226b0bc103832b9102a2c103932b0b1b432b21760691b6044820152606401610861565b61087a33846115fd565b6001600160a01b038216331415610f0f5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610f868484846112d8565b6001600160a01b0383163b15610fbf57610fa284848484611617565b610fbf576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610fd082611233565b6110345760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610861565b600961103f8361170f565b604051602001611050929190611cf8565b6040516020818303038152906040529050919050565b6008546001600160a01b031633146110905760405162461bcd60e51b815260040161086190611e03565b600f805460ff19811660ff90911615179055565b60006110af60015490565b905090565b6008546001600160a01b031633146110de5760405162461bcd60e51b815260040161086190611e03565b600082116111245760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081b5a5b9d08185b5bdd5b9d606a1b6044820152606401610861565b600e5482611139600154600054036000190190565b6111439190611e38565b11156111915760405162461bcd60e51b815260206004820152601760248201527f4d6178696d756d20737570706c792065786365656465640000000000000000006044820152606401610861565b61099a81836115fd565b6008546001600160a01b031633146111c55760405162461bcd60e51b815260040161086190611e03565b6001600160a01b03811661122a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610861565b61088a816115ab565b600081600111158015611247575060005482105b8015610688575050600090815260046020526040902054600160e01b161590565b600081806001116112bf576000548110156112bf57600081815260046020526040902054600160e01b81166112bd575b806112b6575060001901600081815260046020526040902054611298565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b60006112e382611268565b9050836001600160a01b0316816001600160a01b0316146113165760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611334575061133485336105d8565b8061134f57503361134484610720565b6001600160a01b0316145b90508061136f57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661139657604051633a954ecd60e21b815260040160405180910390fd5b600083815260066020908152604080832080546001600160a01b03191690556001600160a01b038881168452600583528184208054600019019055871683528083208054600101905585835260049091529020600160e11b4260a01b86178117909155821661143357600183016000818152600460205260409020546114315760005481146114315760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b0316600080516020611f9f83398151915260405160405180910390a45050505050565b600061147483611268565b90508082156114d8576000336001600160a01b038316148061149b575061149b82336105d8565b806114b65750336114ab86610720565b6001600160a01b0316145b9050806114d657604051632ce44b5f60e11b815260040160405180910390fd5b505b600084815260066020908152604080832080546001600160a01b03191690556001600160a01b03841683526005825280832080546fffffffffffffffffffffffffffffffff01905586835260049091529020600360e01b4260a01b8317179055600160e11b821661157757600184016000818152600460205260409020546115755760005481146115755760008181526004602052604090208390555b505b60405184906000906001600160a01b03841690600080516020611f9f833981519152908390a4505060018054810190555050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61099a82826040518060200160405280600081525061180d565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061164c903390899088908890600401611db3565b602060405180830381600087803b15801561166657600080fd5b505af1925050508015611696575060408051601f3d908101601f1916820190925261169391810190611c0e565b60015b6116f1573d8080156116c4576040519150601f19603f3d011682016040523d82523d6000602084013e6116c9565b606091505b5080516116e9576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060816117335750506040805180820190915260018152600360fc1b602082015290565b8160005b811561175d578061174781611f01565b91506117569050600a83611e50565b9150611737565b60008167ffffffffffffffff81111561177857611778611f72565b6040519080825280601f01601f1916602001820160405280156117a2576020820181803683370190505b5090505b8415611707576117b7600183611e83565b91506117c4600a86611f1c565b6117cf906030611e38565b60f81b8183815181106117e4576117e4611f5c565b60200101906001600160f81b031916908160001a905350611806600a86611e50565b94506117a6565b6000546001600160a01b03841661183657604051622e076360e81b815260040160405180910390fd5b826118545760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03841660008181526005602090815260408083208054680100000000000000018902019055848352600490915290204260a01b86176001861460e11b1790558190818501903b15611917575b60405182906001600160a01b03881690600090600080516020611f9f833981519152908290a46118e06000878480600101955087611617565b6118fd576040516368d2bf6b60e11b815260040160405180910390fd5b8082106118a757826000541461191257600080fd5b61194a565b5b6040516001830192906001600160a01b03881690600090600080516020611f9f833981519152908290a4808210611918575b506000908155610fbf9085838684565b82805461196690611ec6565b90600052602060002090601f01602090048101928261198857600085556119ce565b82601f106119a157805160ff19168380011785556119ce565b828001600101855582156119ce579182015b828111156119ce5782518255916020019190600101906119b3565b506119da9291506119de565b5090565b5b808211156119da57600081556001016119df565b600067ffffffffffffffff80841115611a0e57611a0e611f72565b604051601f8501601f19908116603f01168101908282118183101715611a3657611a36611f72565b81604052809350858152868686011115611a4f57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114611a8057600080fd5b919050565b600060208284031215611a9757600080fd5b6112b682611a69565b60008060408385031215611ab357600080fd5b611abc83611a69565b9150611aca60208401611a69565b90509250929050565b600080600060608486031215611ae857600080fd5b611af184611a69565b9250611aff60208501611a69565b9150604084013590509250925092565b60008060008060808587031215611b2557600080fd5b611b2e85611a69565b9350611b3c60208601611a69565b925060408501359150606085013567ffffffffffffffff811115611b5f57600080fd5b8501601f81018713611b7057600080fd5b611b7f878235602084016119f3565b91505092959194509250565b60008060408385031215611b9e57600080fd5b611ba783611a69565b915060208301358015158114611bbc57600080fd5b809150509250929050565b60008060408385031215611bda57600080fd5b611be383611a69565b946020939093013593505050565b600060208284031215611c0357600080fd5b81356112b681611f88565b600060208284031215611c2057600080fd5b81516112b681611f88565b600060208284031215611c3d57600080fd5b813567ffffffffffffffff811115611c5457600080fd5b8201601f81018413611c6557600080fd5b611707848235602084016119f3565b600060208284031215611c8657600080fd5b5035919050565b60008060408385031215611ca057600080fd5b82359150611aca60208401611a69565b60008151808452611cc8816020860160208601611e9a565b601f01601f19169290920160200192915050565b60008151611cee818560208601611e9a565b9290920192915050565b600080845481600182811c915080831680611d1457607f831692505b6020808410821415611d3457634e487b7160e01b86526022600452602486fd5b818015611d485760018114611d5957611d86565b60ff19861689528489019650611d86565b60008b81526020902060005b86811015611d7e5781548b820152908501908301611d65565b505084890196505b505050505050611daa611d998286611cdc565b64173539b7b760d91b815260050190565b95945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611de690830184611cb0565b9695505050505050565b6020815260006112b66020830184611cb0565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115611e4b57611e4b611f30565b500190565b600082611e5f57611e5f611f46565b500490565b6000816000190483118215151615611e7e57611e7e611f30565b500290565b600082821015611e9557611e95611f30565b500390565b60005b83811015611eb5578181015183820152602001611e9d565b83811115610fbf5750506000910152565b600181811c90821680611eda57607f821691505b60208210811415611efb57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611f1557611f15611f30565b5060010190565b600082611f2b57611f2b611f46565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461088a57600080fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212207fa2adcbc455e2ef31a1237fd710a8b52611bf4db6240cbe7f536e50d8b0762564736f6c63430008070033
Deployed Bytecode Sourcemap
76475:3515:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13048:615;;;;;;;;;;-1:-1:-1;13048:615:0;;;;;:::i;:::-;;:::i;:::-;;;7254:14:1;;7247:22;7229:41;;7217:2;7202:18;13048:615:0;;;;;;;;18061:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;20129:204::-;;;;;;;;;;-1:-1:-1;20129:204:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;6552:32:1;;;6534:51;;6522:2;6507:18;20129:204:0;6388:203:1;19589:474:0;;;;;;;;;;-1:-1:-1;19589:474:0;;;;;:::i;:::-;;:::i;:::-;;12102:315;;;;;;;;;;;;11708:1;12368:12;12155:7;12352:13;:28;-1:-1:-1;;12352:46:0;;12102:315;;;;11609:25:1;;;11597:2;11582:18;12102:315:0;11463:177:1;78927:123:0;;;;;;;;;;-1:-1:-1;78927:123:0;;;;;:::i;:::-;;:::i;21015:170::-;;;;;;;;;;-1:-1:-1;21015:170:0;;;;;:::i;:::-;;:::i;76700:31::-;;;;;;;;;;;;;;;;79258:87;;;;;;;;;;-1:-1:-1;79258:87:0;;;;;:::i;:::-;;:::i;79773:206::-;;;;;;;;;;;;;:::i;21256:185::-;;;;;;;;;;-1:-1:-1;21256:185:0;;;;;:::i;:::-;;:::i;78728:88::-;;;;;;;;;;-1:-1:-1;78728:88:0;;;;;:::i;:::-;;:::i;17850:144::-;;;;;;;;;;-1:-1:-1;17850:144:0;;;;;:::i;:::-;;:::i;76551:21::-;;;;;;;;;;;;;:::i;13727:224::-;;;;;;;;;;-1:-1:-1;13727:224:0;;;;;:::i;:::-;;:::i;43569:103::-;;;;;;;;;;;;;:::i;42918:87::-;;;;;;;;;;-1:-1:-1;42991:6:0;;-1:-1:-1;;;;;42991:6:0;42918:87;;79058:92;;;;;;;;;;-1:-1:-1;79058:92:0;;;;;:::i;:::-;;:::i;78824:95::-;;;;;;;;;;-1:-1:-1;78824:95:0;;;;;:::i;:::-;;:::i;18230:104::-;;;;;;;;;;;;;:::i;76580:35::-;;;;;;;;;;;;;;;;76973:1430;;;;;;:::i;:::-;;:::i;20405:308::-;;;;;;;;;;-1:-1:-1;20405:308:0;;;;;:::i;:::-;;:::i;76658:35::-;;;;;;;;;;;;;;;;21512:396;;;;;;;;;;-1:-1:-1;21512:396:0;;;;;:::i;:::-;;:::i;78411:309::-;;;;;;;;;;-1:-1:-1;78411:309:0;;;;;:::i;:::-;;:::i;76776:31::-;;;;;;;;;;-1:-1:-1;76776:31:0;;;;;;;;79158:86;;;;;;;;;;;;;:::i;76738:31::-;;;;;;;;;;;;;;;;79353:93;;;;;;;;;;;;;:::i;76814:31::-;;;;;;;;;;;;;;;;79456:309;;;;;;;;;;-1:-1:-1;79456:309:0;;;;;:::i;:::-;;:::i;20784:164::-;;;;;;;;;;-1:-1:-1;20784:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;20905:25:0;;;20881:4;20905:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;20784:164;43827:201;;;;;;;;;;-1:-1:-1;43827:201:0;;;;;:::i;:::-;;:::i;76622:29::-;;;;;;;;;;;;;;;;13048:615;13133:4;-1:-1:-1;;;;;;;;;13433:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;13510:25:0;;;13433:102;:179;;;-1:-1:-1;;;;;;;;;;13587:25:0;;;13433:179;13413:199;13048:615;-1:-1:-1;;13048:615:0:o;18061:100::-;18115:13;18148:5;18141:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18061:100;:::o;20129:204::-;20197:7;20222:16;20230:7;20222;:16::i;:::-;20217:64;;20247:34;;-1:-1:-1;;;20247:34:0;;;;;;;;;;;20217:64;-1:-1:-1;20301:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;20301:24:0;;20129:204::o;19589:474::-;19662:13;19694:27;19713:7;19694:18;:27::i;:::-;19662:61;;19744:5;-1:-1:-1;;;;;19738:11:0;:2;-1:-1:-1;;;;;19738:11:0;;19734:48;;;19758:24;;-1:-1:-1;;;19758:24:0;;;;;;;;;;;19734:48;36232:10;-1:-1:-1;;;;;19799:28:0;;;19795:175;;19847:44;19864:5;36232:10;20784:164;:::i;19847:44::-;19842:128;;19919:35;;-1:-1:-1;;;19919:35:0;;;;;;;;;;;19842:128;19982:24;;;;:15;:24;;;;;;:29;;-1:-1:-1;;;;;;19982:29:0;-1:-1:-1;;;;;19982:29:0;;;;;;;;;20027:28;;19982:24;;20027:28;;;;;;;19651:412;19589:474;;:::o;78927:123::-;42991:6;;-1:-1:-1;;;;;42991:6:0;36232:10;43138:23;43130:68;;;;-1:-1:-1;;;43130:68:0;;;;;;;:::i;:::-;;;;;;;;;79019:16:::1;:25:::0;78927:123::o;21015:170::-;21149:28;21159:4;21165:2;21169:7;21149:9;:28::i;:::-;21015:170;;;:::o;79258:87::-;79317:20;79323:7;79332:4;79317:5;:20::i;:::-;79258:87;:::o;79773:206::-;42991:6;;-1:-1:-1;;;;;42991:6:0;36232:10;43138:23;43130:68;;;;-1:-1:-1;;;43130:68:0;;;;;;;:::i;:::-;79842:82:::1;::::0;79824:12:::1;::::0;79850:10:::1;::::0;79888:21:::1;::::0;79824:12;79842:82;79824:12;79842:82;79888:21;79850:10;79842:82:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;79823:101;;;79943:7;79935:36;;;::::0;-1:-1:-1;;;79935:36:0;;10288:2:1;79935:36:0::1;::::0;::::1;10270:21:1::0;10327:2;10307:18;;;10300:30;-1:-1:-1;;;10346:18:1;;;10339:46;10402:18;;79935:36:0::1;10086:340:1::0;21256:185:0;21394:39;21411:4;21417:2;21421:7;21394:39;;;;;;;;;;;;:16;:39::i;78728:88::-;42991:6;;-1:-1:-1;;;;;42991:6:0;36232:10;43138:23;43130:68;;;;-1:-1:-1;;;43130:68:0;;;;;;;:::i;:::-;78795:13;;::::1;::::0;:7:::1;::::0;:13:::1;::::0;::::1;::::0;::::1;:::i;:::-;;78728:88:::0;:::o;17850:144::-;17914:7;17957:27;17976:7;17957:18;:27::i;76551:21::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;13727:224::-;13791:7;-1:-1:-1;;;;;13815:19:0;;13811:60;;13843:28;;-1:-1:-1;;;13843:28:0;;;;;;;;;;;13811:60;-1:-1:-1;;;;;;13889:25:0;;;;;:18;:25;;;;;;9066:13;13889:54;;13727:224::o;43569:103::-;42991:6;;-1:-1:-1;;;;;42991:6:0;36232:10;43138:23;43130:68;;;;-1:-1:-1;;;43130:68:0;;;;;;;:::i;:::-;43634:30:::1;43661:1;43634:18;:30::i;:::-;43569:103::o:0;79058:92::-;42991:6;;-1:-1:-1;;;;;42991:6:0;36232:10;43138:23;43130:68;;;;-1:-1:-1;;;43130:68:0;;;;;;;:::i;:::-;79125:5:::1;:17:::0;79058:92::o;78824:95::-;42991:6;;-1:-1:-1;;;;;42991:6:0;36232:10;43138:23;43130:68;;;;-1:-1:-1;;;43130:68:0;;;;;;;:::i;:::-;78893:9:::1;:18:::0;78824:95::o;18230:104::-;18286:13;18319:7;18312:14;;;;;:::i;76973:1430::-;77045:5;;77103:9;;77030:12;;77103:13;;77115:1;77103:13;:::i;:::-;77095:5;77077:15;;:23;;;;:::i;:::-;:39;77076:108;;;;-1:-1:-1;77167:16:0;;77153:10;77135:29;;;;:17;:29;;;;;;:48;77076:108;77061:124;;77202:6;77198:1157;;;77234:11;;;;77226:44;;;;-1:-1:-1;;;77226:44:0;;7707:2:1;77226:44:0;;;7689:21:1;7746:2;7726:18;;;7719:30;-1:-1:-1;;;7765:18:1;;;7758:50;7825:18;;77226:44:0;7505:344:1;77226:44:0;77318:9;;77309:5;77293:13;11708:1;12368:12;12155:7;12352:13;:28;-1:-1:-1;;12352:46:0;;12102:315;77293:13;:21;;;;:::i;:::-;:34;;77285:54;;;;-1:-1:-1;;;77285:54:0;;8056:2:1;77285:54:0;;;8038:21:1;8095:1;8075:18;;;8068:29;-1:-1:-1;;;8113:18:1;;;8106:37;8160:18;;77285:54:0;7854:330:1;77285:54:0;77371:8;;77362:5;:17;;77354:49;;;;-1:-1:-1;;;77354:49:0;;11317:2:1;77354:49:0;;;11299:21:1;11356:2;11336:18;;;11329:30;-1:-1:-1;;;11375:18:1;;;11368:49;11434:18;;77354:49:0;11115:343:1;77354:49:0;77468:10;77450:29;;;;:17;:29;;;;;;77431:16;;:48;;77450:29;77431:48;:::i;:::-;77421:5;:59;77418:638;;77588:10;77570:29;;;;:17;:29;;;;;;77551:16;;77603:4;;77551:48;;;:::i;:::-;77550:57;;;;:::i;:::-;77533:12;77541:4;77533:5;:12;:::i;:::-;77532:76;;;;:::i;:::-;77519:9;:89;;77511:134;;;;-1:-1:-1;;;77511:134:0;;8798:2:1;77511:134:0;;;8780:21:1;;;8817:18;;;8810:30;8876:34;8856:18;;;8849:62;8928:18;;77511:134:0;8596:356:1;77511:134:0;77693:16;;77679:10;77661:29;;;;:17;:29;;;;;:48;;;77725:15;:35;;:15;;77661:29;77725:35;;77693:16;;77725:35;:::i;:::-;;;;-1:-1:-1;77198:1157:0;;-1:-1:-1;77198:1157:0;77418:638;77844:10;77826:29;;;;:17;:29;;;;;;77807:16;;:48;;77826:29;77807:48;:::i;:::-;77798:5;:58;77795:261;;;77980:10;77962:29;;;;:17;:29;;;;;:38;;77995:5;;77962:29;:38;;77995:5;;77962:38;:::i;:::-;;;;;;;;78035:5;78016:15;;:24;;;;;;;:::i;77795:261::-;77198:1157;;;78100:11;;;;78092:44;;;;-1:-1:-1;;;78092:44:0;;7707:2:1;78092:44:0;;;7689:21:1;7746:2;7726:18;;;7719:30;-1:-1:-1;;;7765:18:1;;;7758:50;7825:18;;78092:44:0;7505:344:1;78092:44:0;78168:12;78176:4;78168:5;:12;:::i;:::-;78155:9;:25;;78147:70;;;;-1:-1:-1;;;78147:70:0;;8798:2:1;78147:70:0;;;8780:21:1;;;8817:18;;;8810:30;8876:34;8856:18;;;8849:62;8928:18;;78147:70:0;8596:356:1;78147:70:0;78261:9;;78252:5;78236:13;11708:1;12368:12;12155:7;12352:13;:28;-1:-1:-1;;12352:46:0;;12102:315;78236:13;:21;;;;:::i;:::-;:34;;78228:55;;;;-1:-1:-1;;;78228:55:0;;10633:2:1;78228:55:0;;;10615:21:1;10672:1;10652:18;;;10645:29;-1:-1:-1;;;10690:18:1;;;10683:38;10738:18;;78228:55:0;10431:331:1;78228:55:0;78311:8;;78302:5;:17;;78294:49;;;;-1:-1:-1;;;78294:49:0;;11317:2:1;78294:49:0;;;11299:21:1;11356:2;11336:18;;;11329:30;-1:-1:-1;;;11375:18:1;;;11368:49;11434:18;;78294:49:0;11115:343:1;78294:49:0;78367:28;78377:10;78389:5;78367:9;:28::i;20405:308::-;-1:-1:-1;;;;;20504:31:0;;36232:10;20504:31;20500:61;;;20544:17;;-1:-1:-1;;;20544:17:0;;;;;;;;;;;20500:61;36232:10;20574:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;20574:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;20574:60:0;;;;;;;;;;20650:55;;7229:41:1;;;20574:49:0;;36232:10;20650:55;;7202:18:1;20650:55:0;;;;;;;20405:308;;:::o;21512:396::-;21679:28;21689:4;21695:2;21699:7;21679:9;:28::i;:::-;-1:-1:-1;;;;;21722:14:0;;;:19;21718:183;;21761:56;21792:4;21798:2;21802:7;21811:5;21761:30;:56::i;:::-;21756:145;;21845:40;;-1:-1:-1;;;21845:40:0;;;;;;;;;;;21756:145;21512:396;;;;:::o;78411:309::-;78493:13;78541:16;78549:7;78541;:16::i;:::-;78519:113;;;;-1:-1:-1;;;78519:113:0;;9872:2:1;78519:113:0;;;9854:21:1;9911:2;9891:18;;;9884:30;9950:34;9930:18;;;9923:62;-1:-1:-1;;;10001:18:1;;;9994:45;10056:19;;78519:113:0;9670:411:1;78519:113:0;78674:7;78683:18;:7;:16;:18::i;:::-;78657:54;;;;;;;;;:::i;:::-;;;;;;;;;;;;;78643:69;;78411:309;;;:::o;79158:86::-;42991:6;;-1:-1:-1;;;;;42991:6:0;36232:10;43138:23;43130:68;;;;-1:-1:-1;;;43130:68:0;;;;;;;:::i;:::-;79225:11:::1;::::0;;-1:-1:-1;;79210:26:0;::::1;79225:11;::::0;;::::1;79224:12;79210:26;::::0;;79158:86::o;79353:93::-;79397:7;79424:14;12956:12;;;12882:94;79424:14;79417:21;;79353:93;:::o;79456:309::-;42991:6;;-1:-1:-1;;;;;42991:6:0;36232:10;43138:23;43130:68;;;;-1:-1:-1;;;43130:68:0;;;;;;;:::i;:::-;79576:1:::1;79559:14;:18;79543:71;;;::::0;-1:-1:-1;;;79543:71:0;;10969:2:1;79543:71:0::1;::::0;::::1;10951:21:1::0;11008:2;10988:18;;;10981:30;-1:-1:-1;;;11027:18:1;;;11020:49;11086:18;;79543:71:0::1;10767:343:1::0;79543:71:0::1;79671:9;;79653:14;79637:13;11708:1:::0;12368:12;12155:7;12352:13;:28;-1:-1:-1;;12352:46:0;;12102:315;79637:13:::1;:30;;;;:::i;:::-;:43;;79621:100;;;::::0;-1:-1:-1;;;79621:100:0;;9159:2:1;79621:100:0::1;::::0;::::1;9141:21:1::0;9198:2;9178:18;;;9171:30;9237:25;9217:18;;;9210:53;9280:18;;79621:100:0::1;8957:347:1::0;79621:100:0::1;79728:31;79738:4;79744:14;79728:9;:31::i;43827:201::-:0;42991:6;;-1:-1:-1;;;;;42991:6:0;36232:10;43138:23;43130:68;;;;-1:-1:-1;;;43130:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;43916:22:0;::::1;43908:73;;;::::0;-1:-1:-1;;;43908:73:0;;8391:2:1;43908:73:0::1;::::0;::::1;8373:21:1::0;8430:2;8410:18;;;8403:30;8469:34;8449:18;;;8442:62;-1:-1:-1;;;8520:18:1;;;8513:36;8566:19;;43908:73:0::1;8189:402:1::0;43908:73:0::1;43992:28;44011:8;43992:18;:28::i;22163:273::-:0;22220:4;22276:7;11708:1;22257:26;;:66;;;;;22310:13;;22300:7;:23;22257:66;:152;;;;-1:-1:-1;;22361:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;22361:43:0;:48;;22163:273::o;15365:1129::-;15432:7;15467;;11708:1;15516:23;15512:915;;15569:13;;15562:4;:20;15558:869;;;15607:14;15624:23;;;:17;:23;;;;;;-1:-1:-1;;;15713:23:0;;15709:699;;16232:113;16239:11;16232:113;;-1:-1:-1;;;16310:6:0;16292:25;;;;:17;:25;;;;;;16232:113;;;16378:6;15365:1129;-1:-1:-1;;;15365:1129:0:o;15709:699::-;15584:843;15558:869;16455:31;;-1:-1:-1;;;16455:31:0;;;;;;;;;;;27402:2515;27517:27;27547;27566:7;27547:18;:27::i;:::-;27517:57;;27632:4;-1:-1:-1;;;;;27591:45:0;27607:19;-1:-1:-1;;;;;27591:45:0;;27587:86;;27645:28;;-1:-1:-1;;;27645:28:0;;;;;;;;;;;27587:86;27686:22;36232:10;-1:-1:-1;;;;;27712:27:0;;;;:87;;-1:-1:-1;27756:43:0;27773:4;36232:10;20784:164;:::i;27756:43::-;27712:147;;;-1:-1:-1;36232:10:0;27816:20;27828:7;27816:11;:20::i;:::-;-1:-1:-1;;;;;27816:43:0;;27712:147;27686:174;;27878:17;27873:66;;27904:35;;-1:-1:-1;;;27904:35:0;;;;;;;;;;;27873:66;-1:-1:-1;;;;;27954:16:0;;27950:52;;27979:23;;-1:-1:-1;;;27979:23:0;;;;;;;;;;;27950:52;28131:24;;;;:15;:24;;;;;;;;28124:31;;-1:-1:-1;;;;;;28124:31:0;;;-1:-1:-1;;;;;28523:24:0;;;;;:18;:24;;;;;28521:26;;-1:-1:-1;;28521:26:0;;;28592:22;;;;;;;28590:24;;-1:-1:-1;28590:24:0;;;28885:26;;;:17;:26;;;;;-1:-1:-1;;;28973:15:0;9720:3;28973:41;28931:84;;:128;;28885:174;;;29179:46;;29175:626;;29283:1;29273:11;;29251:19;29406:30;;;:17;:30;;;;;;29402:384;;29544:13;;29529:11;:28;29525:242;;29691:30;;;;:17;:30;;;;;:52;;;29525:242;29232:569;29175:626;29848:7;29844:2;-1:-1:-1;;;;;29829:27:0;29838:4;-1:-1:-1;;;;;29829:27:0;-1:-1:-1;;;;;;;;;;;29829:27:0;;;;;;;;;27506:2411;;27402:2515;;;:::o;30313:2809::-;30393:27;30423;30442:7;30423:18;:27::i;:::-;30393:57;-1:-1:-1;30393:57:0;30528:311;;;;30562:22;36232:10;-1:-1:-1;;;;;30588:27:0;;;;:91;;-1:-1:-1;30636:43:0;30653:4;36232:10;20784:164;:::i;30636:43::-;30588:155;;;-1:-1:-1;36232:10:0;30700:20;30712:7;30700:11;:20::i;:::-;-1:-1:-1;;;;;30700:43:0;;30588:155;30562:182;;30766:17;30761:66;;30792:35;;-1:-1:-1;;;30792:35:0;;;;;;;;;;;30761:66;30547:292;30528:311;30975:24;;;;:15;:24;;;;;;;;30968:31;;-1:-1:-1;;;;;;30968:31:0;;;-1:-1:-1;;;;;31588:24:0;;;;:18;:24;;;;;:59;;31616:31;31588:59;;;31885:26;;;:17;:26;;;;;-1:-1:-1;;;31975:15:0;9720:3;31975:41;31931:86;;:165;31885:211;;-1:-1:-1;;;32216:46:0;;32212:626;;32320:1;32310:11;;32288:19;32443:30;;;:17;:30;;;;;;32439:384;;32581:13;;32566:11;:28;32562:242;;32728:30;;;;:17;:30;;;;;:52;;;32562:242;32269:569;32212:626;32866:35;;32893:7;;32889:1;;-1:-1:-1;;;;;32866:35:0;;;-1:-1:-1;;;;;;;;;;;32866:35:0;32889:1;;32866:35;-1:-1:-1;;33089:12:0;:14;;;;;;-1:-1:-1;;30313:2809:0:o;44188:191::-;44281:6;;;-1:-1:-1;;;;;44298:17:0;;;-1:-1:-1;;;;;;44298:17:0;;;;;;;44331:40;;44281:6;;;44298:17;44281:6;;44331:40;;44262:16;;44331:40;44251:128;44188:191;:::o;22520:104::-;22589:27;22599:2;22603:8;22589:27;;;;;;;;;;;;:9;:27::i;33614:716::-;33798:88;;-1:-1:-1;;;33798:88:0;;33777:4;;-1:-1:-1;;;;;33798:45:0;;;;;:88;;36232:10;;33865:4;;33871:7;;33880:5;;33798:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;33798:88:0;;;;;;;;-1:-1:-1;;33798:88:0;;;;;;;;;;;;:::i;:::-;;;33794:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;34081:13:0;;34077:235;;34127:40;;-1:-1:-1;;;34127:40:0;;;;;;;;;;;34077:235;34270:6;34264:13;34255:6;34251:2;34247:15;34240:38;33794:529;-1:-1:-1;;;;;;33957:64:0;-1:-1:-1;;;33957:64:0;;-1:-1:-1;33794:529:0;33614:716;;;;;;:::o;38790:723::-;38846:13;39067:10;39063:53;;-1:-1:-1;;39094:10:0;;;;;;;;;;;;-1:-1:-1;;;39094:10:0;;;;;38790:723::o;39063:53::-;39141:5;39126:12;39182:78;39189:9;;39182:78;;39215:8;;;;:::i;:::-;;-1:-1:-1;39238:10:0;;-1:-1:-1;39246:2:0;39238:10;;:::i;:::-;;;39182:78;;;39270:19;39302:6;39292:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39292:17:0;;39270:39;;39320:154;39327:10;;39320:154;;39354:11;39364:1;39354:11;;:::i;:::-;;-1:-1:-1;39423:10:0;39431:2;39423:5;:10;:::i;:::-;39410:24;;:2;:24;:::i;:::-;39397:39;;39380:6;39387;39380:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;39380:56:0;;;;;;;;-1:-1:-1;39451:11:0;39460:2;39451:11;;:::i;:::-;;;39320:154;;22997:2236;23120:20;23143:13;-1:-1:-1;;;;;23171:16:0;;23167:48;;23196:19;;-1:-1:-1;;;23196:19:0;;;;;;;;;;;23167:48;23230:13;23226:44;;23252:18;;-1:-1:-1;;;23252:18:0;;;;;;;;;;;23226:44;-1:-1:-1;;;;;23819:22:0;;;;;;:18;:22;;;;9203:2;23819:22;;;:70;;23857:31;23845:44;;23819:70;;;24132:31;;;:17;:31;;;;;24225:15;9720:3;24225:41;24183:84;;-1:-1:-1;24303:13:0;;9983:3;24288:56;24183:162;24132:213;;:31;;24426:23;;;;24470:14;:19;24466:635;;24510:313;24541:38;;24566:12;;-1:-1:-1;;;;;24541:38:0;;;24558:1;;-1:-1:-1;;;;;;;;;;;24541:38:0;24558:1;;24541:38;24607:69;24646:1;24650:2;24654:14;;;;;;24670:5;24607:30;:69::i;:::-;24602:174;;24712:40;;-1:-1:-1;;;24712:40:0;;;;;;;;;;;24602:174;24818:3;24803:12;:18;24510:313;;24904:12;24887:13;;:29;24883:43;;24918:8;;;24883:43;24466:635;;;24967:119;24998:40;;25023:14;;;;;-1:-1:-1;;;;;24998:40:0;;;25015:1;;-1:-1:-1;;;;;;;;;;;24998:40:0;25015:1;;24998:40;25081:3;25066:12;:18;24967:119;;24466:635;-1:-1:-1;25115:13:0;:28;;;25165:60;;25198:2;25202:12;25216:8;25165:60;:::i;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:631:1;78:5;108:18;149:2;141:6;138:14;135:40;;;155:18;;:::i;:::-;230:2;224:9;198:2;284:15;;-1:-1:-1;;280:24:1;;;306:2;276:33;272:42;260:55;;;330:18;;;350:22;;;327:46;324:72;;;376:18;;:::i;:::-;416:10;412:2;405:22;445:6;436:15;;475:6;467;460:22;515:3;506:6;501:3;497:16;494:25;491:45;;;532:1;529;522:12;491:45;582:6;577:3;570:4;562:6;558:17;545:44;637:1;630:4;621:6;613;609:19;605:30;598:41;;;;14:631;;;;;:::o;650:173::-;718:20;;-1:-1:-1;;;;;767:31:1;;757:42;;747:70;;813:1;810;803:12;747:70;650:173;;;:::o;828:186::-;887:6;940:2;928:9;919:7;915:23;911:32;908:52;;;956:1;953;946:12;908:52;979:29;998:9;979:29;:::i;1019:260::-;1087:6;1095;1148:2;1136:9;1127:7;1123:23;1119:32;1116:52;;;1164:1;1161;1154:12;1116:52;1187:29;1206:9;1187:29;:::i;:::-;1177:39;;1235:38;1269:2;1258:9;1254:18;1235:38;:::i;:::-;1225:48;;1019:260;;;;;:::o;1284:328::-;1361:6;1369;1377;1430:2;1418:9;1409:7;1405:23;1401:32;1398:52;;;1446:1;1443;1436:12;1398:52;1469:29;1488:9;1469:29;:::i;:::-;1459:39;;1517:38;1551:2;1540:9;1536:18;1517:38;:::i;:::-;1507:48;;1602:2;1591:9;1587:18;1574:32;1564:42;;1284:328;;;;;:::o;1617:666::-;1712:6;1720;1728;1736;1789:3;1777:9;1768:7;1764:23;1760:33;1757:53;;;1806:1;1803;1796:12;1757:53;1829:29;1848:9;1829:29;:::i;:::-;1819:39;;1877:38;1911:2;1900:9;1896:18;1877:38;:::i;:::-;1867:48;;1962:2;1951:9;1947:18;1934:32;1924:42;;2017:2;2006:9;2002:18;1989:32;2044:18;2036:6;2033:30;2030:50;;;2076:1;2073;2066:12;2030:50;2099:22;;2152:4;2144:13;;2140:27;-1:-1:-1;2130:55:1;;2181:1;2178;2171:12;2130:55;2204:73;2269:7;2264:2;2251:16;2246:2;2242;2238:11;2204:73;:::i;:::-;2194:83;;;1617:666;;;;;;;:::o;2288:347::-;2353:6;2361;2414:2;2402:9;2393:7;2389:23;2385:32;2382:52;;;2430:1;2427;2420:12;2382:52;2453:29;2472:9;2453:29;:::i;:::-;2443:39;;2532:2;2521:9;2517:18;2504:32;2579:5;2572:13;2565:21;2558:5;2555:32;2545:60;;2601:1;2598;2591:12;2545:60;2624:5;2614:15;;;2288:347;;;;;:::o;2640:254::-;2708:6;2716;2769:2;2757:9;2748:7;2744:23;2740:32;2737:52;;;2785:1;2782;2775:12;2737:52;2808:29;2827:9;2808:29;:::i;:::-;2798:39;2884:2;2869:18;;;;2856:32;;-1:-1:-1;;;2640:254:1:o;2899:245::-;2957:6;3010:2;2998:9;2989:7;2985:23;2981:32;2978:52;;;3026:1;3023;3016:12;2978:52;3065:9;3052:23;3084:30;3108:5;3084:30;:::i;3149:249::-;3218:6;3271:2;3259:9;3250:7;3246:23;3242:32;3239:52;;;3287:1;3284;3277:12;3239:52;3319:9;3313:16;3338:30;3362:5;3338:30;:::i;3403:450::-;3472:6;3525:2;3513:9;3504:7;3500:23;3496:32;3493:52;;;3541:1;3538;3531:12;3493:52;3581:9;3568:23;3614:18;3606:6;3603:30;3600:50;;;3646:1;3643;3636:12;3600:50;3669:22;;3722:4;3714:13;;3710:27;-1:-1:-1;3700:55:1;;3751:1;3748;3741:12;3700:55;3774:73;3839:7;3834:2;3821:16;3816:2;3812;3808:11;3774:73;:::i;3858:180::-;3917:6;3970:2;3958:9;3949:7;3945:23;3941:32;3938:52;;;3986:1;3983;3976:12;3938:52;-1:-1:-1;4009:23:1;;3858:180;-1:-1:-1;3858:180:1:o;4043:254::-;4111:6;4119;4172:2;4160:9;4151:7;4147:23;4143:32;4140:52;;;4188:1;4185;4178:12;4140:52;4224:9;4211:23;4201:33;;4253:38;4287:2;4276:9;4272:18;4253:38;:::i;4302:257::-;4343:3;4381:5;4375:12;4408:6;4403:3;4396:19;4424:63;4480:6;4473:4;4468:3;4464:14;4457:4;4450:5;4446:16;4424:63;:::i;:::-;4541:2;4520:15;-1:-1:-1;;4516:29:1;4507:39;;;;4548:4;4503:50;;4302:257;-1:-1:-1;;4302:257:1:o;4564:185::-;4606:3;4644:5;4638:12;4659:52;4704:6;4699:3;4692:4;4685:5;4681:16;4659:52;:::i;:::-;4727:16;;;;;4564:185;-1:-1:-1;;4564:185:1:o;4872:1301::-;5149:3;5178:1;5211:6;5205:13;5241:3;5263:1;5291:9;5287:2;5283:18;5273:28;;5351:2;5340:9;5336:18;5373;5363:61;;5417:4;5409:6;5405:17;5395:27;;5363:61;5443:2;5491;5483:6;5480:14;5460:18;5457:38;5454:165;;;-1:-1:-1;;;5518:33:1;;5574:4;5571:1;5564:15;5604:4;5525:3;5592:17;5454:165;5635:18;5662:104;;;;5780:1;5775:320;;;;5628:467;;5662:104;-1:-1:-1;;5695:24:1;;5683:37;;5740:16;;;;-1:-1:-1;5662:104:1;;5775:320;11718:1;11711:14;;;11755:4;11742:18;;5870:1;5884:165;5898:6;5895:1;5892:13;5884:165;;;5976:14;;5963:11;;;5956:35;6019:16;;;;5913:10;;5884:165;;;5888:3;;6078:6;6073:3;6069:16;6062:23;;5628:467;;;;;;;6111:56;6136:30;6162:3;6154:6;6136:30;:::i;:::-;-1:-1:-1;;;4814:20:1;;4859:1;4850:11;;4754:113;6111:56;6104:63;4872:1301;-1:-1:-1;;;;;4872:1301:1:o;6596:488::-;-1:-1:-1;;;;;6865:15:1;;;6847:34;;6917:15;;6912:2;6897:18;;6890:43;6964:2;6949:18;;6942:34;;;7012:3;7007:2;6992:18;;6985:31;;;6790:4;;7033:45;;7058:19;;7050:6;7033:45;:::i;:::-;7025:53;6596:488;-1:-1:-1;;;;;;6596:488:1:o;7281:219::-;7430:2;7419:9;7412:21;7393:4;7450:44;7490:2;7479:9;7475:18;7467:6;7450:44;:::i;9309:356::-;9511:2;9493:21;;;9530:18;;;9523:30;9589:34;9584:2;9569:18;;9562:62;9656:2;9641:18;;9309:356::o;11771:128::-;11811:3;11842:1;11838:6;11835:1;11832:13;11829:39;;;11848:18;;:::i;:::-;-1:-1:-1;11884:9:1;;11771:128::o;11904:120::-;11944:1;11970;11960:35;;11975:18;;:::i;:::-;-1:-1:-1;12009:9:1;;11904:120::o;12029:168::-;12069:7;12135:1;12131;12127:6;12123:14;12120:1;12117:21;12112:1;12105:9;12098:17;12094:45;12091:71;;;12142:18;;:::i;:::-;-1:-1:-1;12182:9:1;;12029:168::o;12202:125::-;12242:4;12270:1;12267;12264:8;12261:34;;;12275:18;;:::i;:::-;-1:-1:-1;12312:9:1;;12202:125::o;12332:258::-;12404:1;12414:113;12428:6;12425:1;12422:13;12414:113;;;12504:11;;;12498:18;12485:11;;;12478:39;12450:2;12443:10;12414:113;;;12545:6;12542:1;12539:13;12536:48;;;-1:-1:-1;;12580:1:1;12562:16;;12555:27;12332:258::o;12595:380::-;12674:1;12670:12;;;;12717;;;12738:61;;12792:4;12784:6;12780:17;12770:27;;12738:61;12845:2;12837:6;12834:14;12814:18;12811:38;12808:161;;;12891:10;12886:3;12882:20;12879:1;12872:31;12926:4;12923:1;12916:15;12954:4;12951:1;12944:15;12808:161;;12595:380;;;:::o;12980:135::-;13019:3;-1:-1:-1;;13040:17:1;;13037:43;;;13060:18;;:::i;:::-;-1:-1:-1;13107:1:1;13096:13;;12980:135::o;13120:112::-;13152:1;13178;13168:35;;13183:18;;:::i;:::-;-1:-1:-1;13217:9:1;;13120:112::o;13237:127::-;13298:10;13293:3;13289:20;13286:1;13279:31;13329:4;13326:1;13319:15;13353:4;13350:1;13343:15;13369:127;13430:10;13425:3;13421:20;13418:1;13411:31;13461:4;13458:1;13451:15;13485:4;13482:1;13475:15;13501:127;13562:10;13557:3;13553:20;13550:1;13543:31;13593:4;13590:1;13583:15;13617:4;13614:1;13607:15;13633:127;13694:10;13689:3;13685:20;13682:1;13675:31;13725:4;13722:1;13715:15;13749:4;13746:1;13739:15;13765:131;-1:-1:-1;;;;;;13839:32:1;;13829:43;;13819:71;;13886:1;13883;13876:12
Swarm Source
ipfs://7fa2adcbc455e2ef31a1237fd710a8b52611bf4db6240cbe7f536e50d8b07625
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.