Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
3,335 MM
Holders
130
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
4 MMLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MetaMotorsToken
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "./ERC721A.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; contract MetaMotorsToken is ERC721A, AccessControl, ReentrancyGuard, ERC2981 { using Strings for uint256; //Roles bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); bytes32 public constant BURNER_ROLE = keccak256("BURNER_ROLE"); //Flags bool public isMintingPermanentlyLocked = false; bool public isMintingActive = false; bool public isBurningActive = false; //URI extension string private _uriExtension = ""; //Base uri for metadata string private _baseUri; /** * @dev Initializes the contract by setting `initialBaseUri`, `name`, `symbol`, * `collectionsPrices`, `initialRoyaltyReceiver`, and `intialRoyaltyFeeNumerator`. * All roles are assigned to the creator of the contract. */ constructor( string memory initialBaseUri, string memory name, string memory symbol, address initialRoyaltyReceiver, uint96 intialRoyaltyFeeNumerator ) ERC721A(name, symbol) { _grantRole(DEFAULT_ADMIN_ROLE, _msgSender()); _grantRole(MINTER_ROLE, _msgSender()); _grantRole(BURNER_ROLE, _msgSender()); setBaseURI(initialBaseUri); setDefaultRoyalty(initialRoyaltyReceiver, intialRoyaltyFeeNumerator); } modifier notPermanentlyLocked() { require(!isMintingPermanentlyLocked, "Minting permanently locked"); _; } modifier mintingActive() { require(isMintingActive, "Mint is not active"); _; } modifier burningActive() { require(isBurningActive, "Burn is not active"); _; } function _startTokenId() internal view virtual override returns (uint256) { return 1; } /** * @dev Get the base token URI */ function _baseURI() internal view virtual override returns (string memory) { return _baseUri; } /** * @dev Update the base token URI * * Requirements: * * - the caller must be an admin role */ function setBaseURI(string memory baseUri) public onlyRole(DEFAULT_ADMIN_ROLE) { _baseUri = baseUri; } /** * @dev Get the base token URI */ function _URIExtension() internal view virtual returns (string memory) { return _uriExtension; } /** * @dev Update the base token URI * * Requirements: * * - the caller must be an admin role */ function setURIExtension(string memory uriExtension) public onlyRole(DEFAULT_ADMIN_ROLE) { _uriExtension = uriExtension; } /** * @dev See {ERC2981-_setDefaultRoyalty}. */ function setDefaultRoyalty(address receiver, uint96 feeNumerator) public onlyRole(DEFAULT_ADMIN_ROLE) { _setDefaultRoyalty(receiver, feeNumerator); } /** * @dev See {ERC2981-_deleteDefaultRoyalty}. */ function deleteDefaultRoyalty() external onlyRole(DEFAULT_ADMIN_ROLE) { _deleteDefaultRoyalty(); } /** * @dev See {ERC2981-_setTokenRoyalty}. */ function setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) external onlyRole(DEFAULT_ADMIN_ROLE) { _setTokenRoyalty(tokenId, receiver, feeNumerator); } /** * @dev See {ERC2981-_resetTokenRoyalty}. */ function resetTokenRoyalty(uint256 tokenId) external onlyRole(DEFAULT_ADMIN_ROLE) { _resetTokenRoyalty(tokenId); } /** * @dev Permanently lock minting * * Requirements: * * - the caller must be an admin role */ function permanentlyLockMinting() external onlyRole(DEFAULT_ADMIN_ROLE) { isMintingPermanentlyLocked = true; } /** * @dev Set the active/inactive state of minting * * Requirements: * * - the caller must be an admin role */ function toggleMintingActive() external onlyRole(DEFAULT_ADMIN_ROLE) { isMintingActive = !isMintingActive; } /** * @dev Set the active/inactive state of burning * * Requirements: * * - the caller must be an admin role */ function toggleBurningActive() external onlyRole(DEFAULT_ADMIN_ROLE) { isBurningActive = !isBurningActive; } /** * @dev Get total tokens minted */ function getTotalMinted() external view returns (uint256) { return _totalMinted(); } /** * @dev mint `quantity` to `to` * * Requirements: * * - minting is not permanently locked * - the caller must be a minter role */ function mint(address to, uint256 quantity) external nonReentrant mintingActive notPermanentlyLocked onlyRole(MINTER_ROLE) { _mint(to, quantity); } /** * @dev mint batch `quantities` to `tos` * * Requirements: * * - minting is not permanently locked * - the caller must be a minter role */ function mintBatch(address[] memory tos, uint256[] memory quantities) external nonReentrant notPermanentlyLocked onlyRole(MINTER_ROLE) { require( tos.length == quantities.length, "tos length much equal quantities length" ); for (uint256 index = 0; index < tos.length; index++) { _mint(tos[index], quantities[index]); } } /** * @dev burn `from` token `tokenId` * * Requirements: * * - burning must be active * - the caller must be a burner role */ function burn(uint256 tokenId) external nonReentrant burningActive onlyRole(BURNER_ROLE) { _burn(tokenId, true); } /** * @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, tokenId.toString(), _URIExtension() ) ) : ""; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view override(ERC721A, ERC2981, AccessControl) returns (bool) { return super.supportsInterface(interfaceId); } /** * @dev Widthraw balance on contact to msg sender * * Requirements: * * - the caller must be an admin role */ function withdrawMoney() external onlyRole(DEFAULT_ADMIN_ROLE) { address payable to = payable(_msgSender()); to.transfer(address(this).balance); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import "./IERC721A.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; /** * @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 Context, ERC165, IERC721A { using Address for address; using Strings for uint256; // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _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 _ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // 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(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ 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(); } } /** * 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 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 override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return _addressData[owner].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 { _addressData[owner].aux = aux; } /** * 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) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // 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. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _ownershipOf(tokenId).addr; } /** * @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, 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 overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner) if (!isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @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 == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_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 { _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.isContract()) 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 && !_ownerships[tokenId].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 { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (to.isContract()) { 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 { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); 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 { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // 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 { _addressData[from].balance -= 1; _addressData[to].balance += 1; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; currSlot.startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } 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 { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); address from = prevOwnership.addr; if (approvalCheck) { bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // 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 { AddressData storage addressData = _addressData[from]; addressData.balance -= 1; addressData.numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = from; currSlot.startTimestamp = uint64(block.timestamp); currSlot.burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } 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 Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @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 IERC721Receiver(to).onERC721Received( _msgSender(), from, tokenId, _data ) returns (bytes4 retval) { return retval == 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 `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * - `addr` = `address(0)` * - `startTimestamp` = `0` * - `burned` = `false` * * If the `tokenId` is burned: * - `addr` = `<Address of owner before token was burned>` * - `startTimestamp` = `<Timestamp when token was burned>` * - `burned = `true` * * Otherwise: * - `addr` = `<Address of owner>` * - `startTimestamp` = `<Timestamp of start of ownership>` * - `burned = `false` */ function explicitOwnershipOf(uint256 tokenId) public view returns (TokenOwnership memory) { TokenOwnership memory ownership; if (tokenId < _startTokenId() || tokenId >= _currentIndex) { return ownership; } ownership = _ownerships[tokenId]; if (ownership.burned) { return ownership; } return _ownershipOf(tokenId); } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory) { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[]( tokenIdsLength ); for (uint256 i; i != tokenIdsLength; ++i) { ownerships[i] = explicitOwnershipOf(tokenIds[i]); } return ownerships; } } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start` < `stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory) { unchecked { if (start >= stop) revert("Invalid range"); uint256 tokenIdsIdx; uint256 stopLimit = _currentIndex; // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, _currentIndex)`. if (stop > stopLimit) { stop = stopLimit; } uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (start < stop) { uint256 rangeLength = stop - start; if (rangeLength < tokenIdsMaxLength) { tokenIdsMaxLength = rangeLength; } } else { tokenIdsMaxLength = 0; } uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength); if (tokenIdsMaxLength == 0) { return tokenIds; } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`. // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } for ( uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i ) { ownership = _ownerships[i]; if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } // Downsize the array to fit. assembly { mstore(tokenIds, tokenIdsIdx) } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(totalSupply) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K pfp collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for ( uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i ) { ownership = _ownerships[i]; if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } }
// SPDX-License-Identifier: MIT // 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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleGranted} event. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleRevoked} event. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * May emit a {RoleGranted} event. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A is IERC721, IERC721Metadata { /** * 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(); // Compiler will pack this into a single 256bit word. 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; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } /** * @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); }
// SPDX-License-Identifier: MIT // 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @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); }
// SPDX-License-Identifier: MIT // 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"initialBaseUri","type":"string"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"initialRoyaltyReceiver","type":"address"},{"internalType":"uint96","name":"intialRoyaltyFeeNumerator","type":"uint96"}],"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":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"BURNER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deleteDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isBurningActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMintingActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMintingPermanentlyLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tos","type":"address[]"},{"internalType":"uint256[]","name":"quantities","type":"uint256[]"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"permanentlyLockMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"resetTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseUri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uriExtension","type":"string"}],"name":"setURIExtension","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":"toggleBurningActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleMintingActive","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":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","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":[],"name":"withdrawMoney","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526000600c60006101000a81548160ff0219169083151502179055506000600c60016101000a81548160ff0219169083151502179055506000600c60026101000a81548160ff02191690831515021790555060405180602001604052806000815250600d90805190602001906200007c92919062000895565b503480156200008a57600080fd5b506040516200674a3803806200674a8339818101604052810190620000b0919062000b90565b83838160029080519060200190620000ca92919062000895565b508060039080519060200190620000e392919062000895565b50620000f4620001d860201b60201c565b60008190555050506001600981905550620001286000801b6200011c620001e160201b60201c565b620001e960201b60201c565b620001697f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66200015d620001e160201b60201c565b620001e960201b60201c565b620001aa7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a8486200019e620001e160201b60201c565b620001e960201b60201c565b620001bb85620002db60201b60201c565b620001cd82826200030d60201b60201c565b505050505062001150565b60006001905090565b600033905090565b620001fb82826200033960201b60201c565b620002d75760016008600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506200027c620001e160201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6000801b620002f081620003a460201b60201c565b81600e90805190602001906200030892919062000895565b505050565b6000801b6200032281620003a460201b60201c565b620003348383620003c860201b60201c565b505050565b60006008600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b620003c581620003b9620001e160201b60201c565b6200056c60201b60201c565b50565b620003d86200063060201b60201c565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff16111562000439576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620004309062000cfc565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415620004ac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620004a39062000d6e565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600a60008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6200057e82826200033960201b60201c565b6200062c57620005b18173ffffffffffffffffffffffffffffffffffffffff1660146200063a60201b62001edc1760201c565b620005cc8360001c60206200063a60201b62001edc1760201c565b604051602001620005df92919062000e7d565b6040516020818303038152906040526040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000623919062000f00565b60405180910390fd5b5050565b6000612710905090565b6060600060028360026200064f919062000f5d565b6200065b919062000fbe565b67ffffffffffffffff81111562000677576200067662000974565b5b6040519080825280601f01601f191660200182016040528015620006aa5781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110620006e557620006e46200101b565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106200074c576200074b6200101b565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026200078e919062000f5d565b6200079a919062000fbe565b90505b600181111562000844577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110620007e057620007df6200101b565b5b1a60f81b828281518110620007fa57620007f96200101b565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806200083c906200104a565b90506200079d565b50600084146200088b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200088290620010c9565b60405180910390fd5b8091505092915050565b828054620008a3906200111a565b90600052602060002090601f016020900481019282620008c7576000855562000913565b82601f10620008e257805160ff191683800117855562000913565b8280016001018555821562000913579182015b8281111562000912578251825591602001919060010190620008f5565b5b50905062000922919062000926565b5090565b5b808211156200094157600081600090555060010162000927565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620009ae8262000963565b810181811067ffffffffffffffff82111715620009d057620009cf62000974565b5b80604052505050565b6000620009e562000945565b9050620009f38282620009a3565b919050565b600067ffffffffffffffff82111562000a165762000a1562000974565b5b62000a218262000963565b9050602081019050919050565b60005b8381101562000a4e57808201518184015260208101905062000a31565b8381111562000a5e576000848401525b50505050565b600062000a7b62000a7584620009f8565b620009d9565b90508281526020810184848401111562000a9a5762000a996200095e565b5b62000aa784828562000a2e565b509392505050565b600082601f83011262000ac75762000ac662000959565b5b815162000ad984826020860162000a64565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000b0f8262000ae2565b9050919050565b62000b218162000b02565b811462000b2d57600080fd5b50565b60008151905062000b418162000b16565b92915050565b60006bffffffffffffffffffffffff82169050919050565b62000b6a8162000b47565b811462000b7657600080fd5b50565b60008151905062000b8a8162000b5f565b92915050565b600080600080600060a0868803121562000baf5762000bae6200094f565b5b600086015167ffffffffffffffff81111562000bd05762000bcf62000954565b5b62000bde8882890162000aaf565b955050602086015167ffffffffffffffff81111562000c025762000c0162000954565b5b62000c108882890162000aaf565b945050604086015167ffffffffffffffff81111562000c345762000c3362000954565b5b62000c428882890162000aaf565b935050606062000c558882890162000b30565b925050608062000c688882890162000b79565b9150509295509295909350565b600082825260208201905092915050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b600062000ce4602a8362000c75565b915062000cf18262000c86565b604082019050919050565b6000602082019050818103600083015262000d178162000cd5565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b600062000d5660198362000c75565b915062000d638262000d1e565b602082019050919050565b6000602082019050818103600083015262000d898162000d47565b9050919050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b600062000dd360178362000d90565b915062000de08262000d9b565b601782019050919050565b600081519050919050565b600062000e038262000deb565b62000e0f818562000d90565b935062000e2181856020860162000a2e565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b600062000e6560118362000d90565b915062000e728262000e2d565b601182019050919050565b600062000e8a8262000dc4565b915062000e98828562000df6565b915062000ea58262000e56565b915062000eb3828462000df6565b91508190509392505050565b600062000ecc8262000deb565b62000ed8818562000c75565b935062000eea81856020860162000a2e565b62000ef58162000963565b840191505092915050565b6000602082019050818103600083015262000f1c818462000ebf565b905092915050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600062000f6a8262000f24565b915062000f778362000f24565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161562000fb35762000fb262000f2e565b5b828202905092915050565b600062000fcb8262000f24565b915062000fd88362000f24565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111562001010576200100f62000f2e565b5b828201905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000620010578262000f24565b915060008214156200106e576200106d62000f2e565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000620010b160208362000c75565b9150620010be8262001079565b602082019050919050565b60006020820190508181036000830152620010e481620010a2565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200113357607f821691505b602082108114156200114a5762001149620010eb565b5b50919050565b6155ea80620011606000396000f3fe608060405234801561001057600080fd5b50600436106102745760003560e01c806370a0823111610151578063aa1b103f116100c3578063c87b56dd11610087578063c87b56dd14610746578063d539139314610776578063d547741f14610794578063d7f01693146107b0578063e08c5182146107ba578063e985e9c5146107d857610274565b8063aa1b103f146106dc578063ac446002146106e6578063b2a19277146106f0578063b88d4fde146106fa578063c23dc68f1461071657610274565b806391d148541161011557806391d148541461061a57806393bd67c31461064a57806395d89b411461065457806399a2557a14610672578063a217fddf146106a2578063a22cb465146106c057610274565b806370a08231146105665780637c88e3d9146105965780638462151c146105b25780638a616bc0146105e257806390709751146105fe57610274565b80632f2ff15d116101ea57806355f804b3116101ae57806355f804b31461049257806357127247146104ae5780635944c753146104cc5780635bbb2177146104e85780636352211e146105185780636ac437b01461054857610274565b80632f2ff15d1461040657806336568abe1461042257806340c10f191461043e57806342842e0e1461045a57806342966c681461047657610274565b80630ca1c5c91161023c5780630ca1c5c91461032f57806318160ddd1461034d57806323b872dd1461036b578063248a9ca314610387578063282c51f3146103b75780632a55205a146103d557610274565b806301ffc9a71461027957806304634d8d146102a957806306fdde03146102c5578063081812fc146102e3578063095ea7b314610313575b600080fd5b610293600480360381019061028e9190613e57565b610808565b6040516102a09190613e9f565b60405180910390f35b6102c360048036038101906102be9190613f5c565b61081a565b005b6102cd610836565b6040516102da9190614035565b60405180910390f35b6102fd60048036038101906102f8919061408d565b6108c8565b60405161030a91906140c9565b60405180910390f35b61032d600480360381019061032891906140e4565b610944565b005b610337610a49565b6040516103449190614133565b60405180910390f35b610355610a58565b6040516103629190614133565b60405180910390f35b6103856004803603810190610380919061414e565b610a6f565b005b6103a1600480360381019061039c91906141d7565b610a7f565b6040516103ae9190614213565b60405180910390f35b6103bf610a9f565b6040516103cc9190614213565b60405180910390f35b6103ef60048036038101906103ea919061422e565b610ac3565b6040516103fd92919061426e565b60405180910390f35b610420600480360381019061041b9190614297565b610cae565b005b61043c60048036038101906104379190614297565b610ccf565b005b610458600480360381019061045391906140e4565b610d52565b005b610474600480360381019061046f919061414e565b610e80565b005b610490600480360381019061048b919061408d565b610ea0565b005b6104ac60048036038101906104a7919061440c565b610f7e565b005b6104b6610fa6565b6040516104c39190613e9f565b60405180910390f35b6104e660048036038101906104e19190614455565b610fb9565b005b61050260048036038101906104fd9190614570565b610fd7565b60405161050f91906146eb565b60405180910390f35b610532600480360381019061052d919061408d565b611098565b60405161053f91906140c9565b60405180910390f35b6105506110ae565b60405161055d9190613e9f565b60405180910390f35b610580600480360381019061057b919061470d565b6110c1565b60405161058d9190614133565b60405180910390f35b6105b060048036038101906105ab91906147fd565b611191565b005b6105cc60048036038101906105c7919061470d565b611308565b6040516105d99190614933565b60405180910390f35b6105fc60048036038101906105f7919061408d565b61150a565b005b6106186004803603810190610613919061440c565b611524565b005b610634600480360381019061062f9190614297565b61154c565b6040516106419190613e9f565b60405180910390f35b6106526115b7565b005b61065c6115f1565b6040516106699190614035565b60405180910390f35b61068c60048036038101906106879190614955565b611683565b6040516106999190614933565b60405180910390f35b6106aa611953565b6040516106b79190614213565b60405180910390f35b6106da60048036038101906106d591906149d4565b61195a565b005b6106e4611ad2565b005b6106ee611aea565b005b6106f8611b4e565b005b610714600480360381019061070f9190614ab5565b611b79565b005b610730600480360381019061072b919061408d565b611bf1565b60405161073d9190614b7a565b60405180910390f35b610760600480360381019061075b919061408d565b611d0e565b60405161076d9190614035565b60405180910390f35b61077e611db6565b60405161078b9190614213565b60405180910390f35b6107ae60048036038101906107a99190614297565b611dda565b005b6107b8611dfb565b005b6107c2611e35565b6040516107cf9190613e9f565b60405180910390f35b6107f260048036038101906107ed9190614b95565b611e48565b6040516107ff9190613e9f565b60405180910390f35b600061081382612118565b9050919050565b6000801b61082781612192565b61083183836121a6565b505050565b60606002805461084590614c04565b80601f016020809104026020016040519081016040528092919081815260200182805461087190614c04565b80156108be5780601f10610893576101008083540402835291602001916108be565b820191906000526020600020905b8154815290600101906020018083116108a157829003601f168201915b5050505050905090565b60006108d38261233c565b610909576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061094f82611098565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156109b7576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166109d661238a565b73ffffffffffffffffffffffffffffffffffffffff1614610a3957610a02816109fd61238a565b611e48565b610a38576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b610a44838383612392565b505050565b6000610a53612444565b905090565b6000610a62612457565b6001546000540303905090565b610a7a838383612460565b505050565b600060086000838152602001908152602001600020600101549050919050565b7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84881565b6000806000600b60008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161415610c5957600a6040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610c63612916565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610c8f9190614c65565b610c999190614cee565b90508160000151819350935050509250929050565b610cb782610a7f565b610cc081612192565b610cca8383612920565b505050565b610cd761238a565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610d44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3b90614d91565b60405180910390fd5b610d4e8282612a01565b5050565b60026009541415610d98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8f90614dfd565b60405180910390fd5b6002600981905550600c60019054906101000a900460ff16610def576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de690614e69565b60405180910390fd5b600c60009054906101000a900460ff1615610e3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3690614ed5565b60405180910390fd5b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610e6981612192565b610e738383612ae3565b5060016009819055505050565b610e9b83838360405180602001604052806000815250611b79565b505050565b60026009541415610ee6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610edd90614dfd565b60405180910390fd5b6002600981905550600c60029054906101000a900460ff16610f3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3490614f41565b60405180910390fd5b7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a848610f6781612192565b610f72826001612dbf565b50600160098190555050565b6000801b610f8b81612192565b81600e9080519060200190610fa1929190613d05565b505050565b600c60029054906101000a900460ff1681565b6000801b610fc681612192565b610fd18484846131af565b50505050565b606060008251905060008167ffffffffffffffff811115610ffb57610ffa6142e1565b5b60405190808252806020026020018201604052801561103457816020015b611021613d8b565b8152602001906001900390816110195790505b50905060005b82811461108d5761106485828151811061105757611056614f61565b5b6020026020010151611bf1565b82828151811061107757611076614f61565b5b602002602001018190525080600101905061103a565b508092505050919050565b60006110a382613357565b600001519050919050565b600c60019054906101000a900460ff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611129576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b600260095414156111d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ce90614dfd565b60405180910390fd5b6002600981905550600c60009054906101000a900460ff161561122f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122690614ed5565b60405180910390fd5b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661125981612192565b815183511461129d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129490615002565b60405180910390fd5b60005b83518110156112fa576112e78482815181106112bf576112be614f61565b5b60200260200101518483815181106112da576112d9614f61565b5b6020026020010151612ae3565b80806112f290615022565b9150506112a0565b505060016009819055505050565b60606000806000611318856110c1565b905060008167ffffffffffffffff811115611336576113356142e1565b5b6040519080825280602002602001820160405280156113645781602001602082028036833780820191505090505b50905061136f613d8b565b6000611379612457565b90505b8386146114fc57600460008281526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509150816040015115611455576114f1565b600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461149557816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156114f057808387806001019850815181106114e3576114e2614f61565b5b6020026020010181815250505b5b80600101905061137c565b508195505050505050919050565b6000801b61151781612192565b611520826135e2565b5050565b6000801b61153181612192565b81600d9080519060200190611547929190613d05565b505050565b60006008600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b6115c481612192565b600c60019054906101000a900460ff1615600c60016101000a81548160ff02191690831515021790555050565b60606003805461160090614c04565b80601f016020809104026020016040519081016040528092919081815260200182805461162c90614c04565b80156116795780601f1061164e57610100808354040283529160200191611679565b820191906000526020600020905b81548152906001019060200180831161165c57829003601f168201915b5050505050905090565b60608183106116c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116be906150b7565b60405180910390fd5b60008060005490506116d7612457565b8510156116e9576116e6612457565b94505b808411156116f5578093505b6000611700876110c1565b90508486101561172357600086860390508181101561171d578091505b50611728565b600090505b60008167ffffffffffffffff811115611744576117436142e1565b5b6040519080825280602002602001820160405280156117725781602001602082028036833780820191505090505b509050600082141561178a578094505050505061194c565b600061179588611bf1565b9050600081604001516117aa57816000015190505b60008990505b8881141580156117c05750848714155b1561193e57600460008281526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff161515151581525050925082604001511561189757611933565b600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff16146118d757826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611932578084888060010199508151811061192557611924614f61565b5b6020026020010181815250505b5b8060010190506117b0565b508583528296505050505050505b9392505050565b6000801b81565b61196261238a565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156119c7576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006119d461238a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611a8161238a565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611ac69190613e9f565b60405180910390a35050565b6000801b611adf81612192565b611ae7613641565b50565b6000801b611af781612192565b6000611b0161238a565b90508073ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015611b49573d6000803e3d6000fd5b505050565b6000801b611b5b81612192565b6001600c60006101000a81548160ff02191690831515021790555050565b611b84848484612460565b611ba38373ffffffffffffffffffffffffffffffffffffffff1661368e565b15611beb57611bb4848484846136b1565b611bea576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b611bf9613d8b565b611c01613d8b565b611c09612457565b831080611c1857506000548310155b15611c265780915050611d09565b600460008481526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050806040015115611cfc5780915050611d09565b611d0583613357565b9150505b919050565b6060611d198261233c565b611d4f576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611d59613811565b9050600081511415611d7a5760405180602001604052806000815250611dae565b80611d84846138a3565b611d8c613a04565b604051602001611d9e93929190615113565b6040516020818303038152906040525b915050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b611de382610a7f565b611dec81612192565b611df68383612a01565b505050565b6000801b611e0881612192565b600c60029054906101000a900460ff1615600c60026101000a81548160ff02191690831515021790555050565b600c60009054906101000a900460ff1681565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606060006002836002611eef9190614c65565b611ef99190615144565b67ffffffffffffffff811115611f1257611f116142e1565b5b6040519080825280601f01601f191660200182016040528015611f445781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110611f7c57611f7b614f61565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110611fe057611fdf614f61565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026120209190614c65565b61202a9190615144565b90505b60018111156120ca577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061206c5761206b614f61565b5b1a60f81b82828151811061208357612082614f61565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806120c39061519a565b905061202d565b506000841461210e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161210590615210565b60405180910390fd5b8091505092915050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061218b575061218a82613a96565b5b9050919050565b6121a38161219e61238a565b613b10565b50565b6121ae612916565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff16111561220c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612203906152a2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561227c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122739061530e565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600a60008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b600081612347612457565b11158015612356575060005482105b8015612383575060046000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600061244e612457565b60005403905090565b60006001905090565b600061246b82613357565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146124d6576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff166124f761238a565b73ffffffffffffffffffffffffffffffffffffffff16148061252657506125258561252061238a565b611e48565b5b8061256b575061253461238a565b73ffffffffffffffffffffffffffffffffffffffff16612553846108c8565b73ffffffffffffffffffffffffffffffffffffffff16145b9050806125a4576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561260b576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6126188585856001613bad565b61262460008487612392565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600460008581526020019081526020016000209050848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060006001850190506000600460008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156128a45760005482146128a357878160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461290f8585856001613bb3565b5050505050565b6000612710905090565b61292a828261154c565b6129fd5760016008600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506129a261238a565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b612a0b828261154c565b15612adf5760006008600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612a8461238a565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612b50576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000821415612b8b576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612b986000848385613bad565b81600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555081600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550826004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000819050600083820190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808210612d3b57816000819055505050612dba6000848385613bb3565b505050565b6000612dca83613357565b90506000816000015190508215612eab5760008173ffffffffffffffffffffffffffffffffffffffff16612dfc61238a565b73ffffffffffffffffffffffffffffffffffffffff161480612e2b5750612e2a82612e2561238a565b611e48565b5b80612e705750612e3961238a565b73ffffffffffffffffffffffffffffffffffffffff16612e58866108c8565b73ffffffffffffffffffffffffffffffffffffffff16145b905080612ea9576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b612eb9816000866001613bad565b612ec560008583612392565b6000600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060018160000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060018160000160108282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600460008781526020019081526020016000209050828160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600181600001601c6101000a81548160ff02191690831515021790555060006001870190506000600460008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561312957600054821461312857848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555085602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b5050505083600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613197816000866001613bb3565b60016000815480929190600101919050555050505050565b6131b7612916565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115613215576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161320c906152a2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613285576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161327c9061537a565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600b600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550905050505050565b61335f613d8b565b60008290508061336d612457565b116135ab576000548110156135aa576000600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff161515151581525050905080604001516135a857600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461348c5780925050506135dd565b5b6001156135a757818060019003925050600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146135a25780925050506135dd565b61348d565b5b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b600b6000828152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556000820160146101000a8154906bffffffffffffffffffffffff0219169055505050565b600a600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556000820160146101000a8154906bffffffffffffffffffffffff02191690555050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026136d761238a565b8786866040518563ffffffff1660e01b81526004016136f994939291906153ef565b602060405180830381600087803b15801561371357600080fd5b505af192505050801561374457506040513d601f19601f820116820180604052508101906137419190615450565b60015b6137be573d8060008114613774576040519150601f19603f3d011682016040523d82523d6000602084013e613779565b606091505b506000815114156137b6576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600e805461382090614c04565b80601f016020809104026020016040519081016040528092919081815260200182805461384c90614c04565b80156138995780601f1061386e57610100808354040283529160200191613899565b820191906000526020600020905b81548152906001019060200180831161387c57829003601f168201915b5050505050905090565b606060008214156138eb576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506139ff565b600082905060005b6000821461391d57808061390690615022565b915050600a826139169190614cee565b91506138f3565b60008167ffffffffffffffff811115613939576139386142e1565b5b6040519080825280601f01601f19166020018201604052801561396b5781602001600182028036833780820191505090505b5090505b600085146139f857600182613984919061547d565b9150600a8561399391906154b1565b603061399f9190615144565b60f81b8183815181106139b5576139b4614f61565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856139f19190614cee565b945061396f565b8093505050505b919050565b6060600d8054613a1390614c04565b80601f0160208091040260200160405190810160405280929190818152602001828054613a3f90614c04565b8015613a8c5780601f10613a6157610100808354040283529160200191613a8c565b820191906000526020600020905b815481529060010190602001808311613a6f57829003601f168201915b5050505050905090565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480613b095750613b0882613bb9565b5b9050919050565b613b1a828261154c565b613ba957613b3f8173ffffffffffffffffffffffffffffffffffffffff166014611edc565b613b4d8360001c6020611edc565b604051602001613b5e92919061557a565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613ba09190614035565b60405180910390fd5b5050565b50505050565b50505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480613c8457507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80613c945750613c9382613c9b565b5b9050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b828054613d1190614c04565b90600052602060002090601f016020900481019282613d335760008555613d7a565b82601f10613d4c57805160ff1916838001178555613d7a565b82800160010185558215613d7a579182015b82811115613d79578251825591602001919060010190613d5e565b5b509050613d879190613dce565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b80821115613de7576000816000905550600101613dcf565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613e3481613dff565b8114613e3f57600080fd5b50565b600081359050613e5181613e2b565b92915050565b600060208284031215613e6d57613e6c613df5565b5b6000613e7b84828501613e42565b91505092915050565b60008115159050919050565b613e9981613e84565b82525050565b6000602082019050613eb46000830184613e90565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613ee582613eba565b9050919050565b613ef581613eda565b8114613f0057600080fd5b50565b600081359050613f1281613eec565b92915050565b60006bffffffffffffffffffffffff82169050919050565b613f3981613f18565b8114613f4457600080fd5b50565b600081359050613f5681613f30565b92915050565b60008060408385031215613f7357613f72613df5565b5b6000613f8185828601613f03565b9250506020613f9285828601613f47565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613fd6578082015181840152602081019050613fbb565b83811115613fe5576000848401525b50505050565b6000601f19601f8301169050919050565b600061400782613f9c565b6140118185613fa7565b9350614021818560208601613fb8565b61402a81613feb565b840191505092915050565b6000602082019050818103600083015261404f8184613ffc565b905092915050565b6000819050919050565b61406a81614057565b811461407557600080fd5b50565b60008135905061408781614061565b92915050565b6000602082840312156140a3576140a2613df5565b5b60006140b184828501614078565b91505092915050565b6140c381613eda565b82525050565b60006020820190506140de60008301846140ba565b92915050565b600080604083850312156140fb576140fa613df5565b5b600061410985828601613f03565b925050602061411a85828601614078565b9150509250929050565b61412d81614057565b82525050565b60006020820190506141486000830184614124565b92915050565b60008060006060848603121561416757614166613df5565b5b600061417586828701613f03565b935050602061418686828701613f03565b925050604061419786828701614078565b9150509250925092565b6000819050919050565b6141b4816141a1565b81146141bf57600080fd5b50565b6000813590506141d1816141ab565b92915050565b6000602082840312156141ed576141ec613df5565b5b60006141fb848285016141c2565b91505092915050565b61420d816141a1565b82525050565b60006020820190506142286000830184614204565b92915050565b6000806040838503121561424557614244613df5565b5b600061425385828601614078565b925050602061426485828601614078565b9150509250929050565b600060408201905061428360008301856140ba565b6142906020830184614124565b9392505050565b600080604083850312156142ae576142ad613df5565b5b60006142bc858286016141c2565b92505060206142cd85828601613f03565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61431982613feb565b810181811067ffffffffffffffff82111715614338576143376142e1565b5b80604052505050565b600061434b613deb565b90506143578282614310565b919050565b600067ffffffffffffffff821115614377576143766142e1565b5b61438082613feb565b9050602081019050919050565b82818337600083830152505050565b60006143af6143aa8461435c565b614341565b9050828152602081018484840111156143cb576143ca6142dc565b5b6143d684828561438d565b509392505050565b600082601f8301126143f3576143f26142d7565b5b813561440384826020860161439c565b91505092915050565b60006020828403121561442257614421613df5565b5b600082013567ffffffffffffffff8111156144405761443f613dfa565b5b61444c848285016143de565b91505092915050565b60008060006060848603121561446e5761446d613df5565b5b600061447c86828701614078565b935050602061448d86828701613f03565b925050604061449e86828701613f47565b9150509250925092565b600067ffffffffffffffff8211156144c3576144c26142e1565b5b602082029050602081019050919050565b600080fd5b60006144ec6144e7846144a8565b614341565b9050808382526020820190506020840283018581111561450f5761450e6144d4565b5b835b8181101561453857806145248882614078565b845260208401935050602081019050614511565b5050509392505050565b600082601f830112614557576145566142d7565b5b81356145678482602086016144d9565b91505092915050565b60006020828403121561458657614585613df5565b5b600082013567ffffffffffffffff8111156145a4576145a3613dfa565b5b6145b084828501614542565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6145ee81613eda565b82525050565b600067ffffffffffffffff82169050919050565b614611816145f4565b82525050565b61462081613e84565b82525050565b60608201600082015161463c60008501826145e5565b50602082015161464f6020850182614608565b5060408201516146626040850182614617565b50505050565b60006146748383614626565b60608301905092915050565b6000602082019050919050565b6000614698826145b9565b6146a281856145c4565b93506146ad836145d5565b8060005b838110156146de5781516146c58882614668565b97506146d083614680565b9250506001810190506146b1565b5085935050505092915050565b60006020820190508181036000830152614705818461468d565b905092915050565b60006020828403121561472357614722613df5565b5b600061473184828501613f03565b91505092915050565b600067ffffffffffffffff821115614755576147546142e1565b5b602082029050602081019050919050565b60006147796147748461473a565b614341565b9050808382526020820190506020840283018581111561479c5761479b6144d4565b5b835b818110156147c557806147b18882613f03565b84526020840193505060208101905061479e565b5050509392505050565b600082601f8301126147e4576147e36142d7565b5b81356147f4848260208601614766565b91505092915050565b6000806040838503121561481457614813613df5565b5b600083013567ffffffffffffffff81111561483257614831613dfa565b5b61483e858286016147cf565b925050602083013567ffffffffffffffff81111561485f5761485e613dfa565b5b61486b85828601614542565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6148aa81614057565b82525050565b60006148bc83836148a1565b60208301905092915050565b6000602082019050919050565b60006148e082614875565b6148ea8185614880565b93506148f583614891565b8060005b8381101561492657815161490d88826148b0565b9750614918836148c8565b9250506001810190506148f9565b5085935050505092915050565b6000602082019050818103600083015261494d81846148d5565b905092915050565b60008060006060848603121561496e5761496d613df5565b5b600061497c86828701613f03565b935050602061498d86828701614078565b925050604061499e86828701614078565b9150509250925092565b6149b181613e84565b81146149bc57600080fd5b50565b6000813590506149ce816149a8565b92915050565b600080604083850312156149eb576149ea613df5565b5b60006149f985828601613f03565b9250506020614a0a858286016149bf565b9150509250929050565b600067ffffffffffffffff821115614a2f57614a2e6142e1565b5b614a3882613feb565b9050602081019050919050565b6000614a58614a5384614a14565b614341565b905082815260208101848484011115614a7457614a736142dc565b5b614a7f84828561438d565b509392505050565b600082601f830112614a9c57614a9b6142d7565b5b8135614aac848260208601614a45565b91505092915050565b60008060008060808587031215614acf57614ace613df5565b5b6000614add87828801613f03565b9450506020614aee87828801613f03565b9350506040614aff87828801614078565b925050606085013567ffffffffffffffff811115614b2057614b1f613dfa565b5b614b2c87828801614a87565b91505092959194509250565b606082016000820151614b4e60008501826145e5565b506020820151614b616020850182614608565b506040820151614b746040850182614617565b50505050565b6000606082019050614b8f6000830184614b38565b92915050565b60008060408385031215614bac57614bab613df5565b5b6000614bba85828601613f03565b9250506020614bcb85828601613f03565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614c1c57607f821691505b60208210811415614c3057614c2f614bd5565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614c7082614057565b9150614c7b83614057565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614cb457614cb3614c36565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614cf982614057565b9150614d0483614057565b925082614d1457614d13614cbf565b5b828204905092915050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000614d7b602f83613fa7565b9150614d8682614d1f565b604082019050919050565b60006020820190508181036000830152614daa81614d6e565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614de7601f83613fa7565b9150614df282614db1565b602082019050919050565b60006020820190508181036000830152614e1681614dda565b9050919050565b7f4d696e74206973206e6f74206163746976650000000000000000000000000000600082015250565b6000614e53601283613fa7565b9150614e5e82614e1d565b602082019050919050565b60006020820190508181036000830152614e8281614e46565b9050919050565b7f4d696e74696e67207065726d616e656e746c79206c6f636b6564000000000000600082015250565b6000614ebf601a83613fa7565b9150614eca82614e89565b602082019050919050565b60006020820190508181036000830152614eee81614eb2565b9050919050565b7f4275726e206973206e6f74206163746976650000000000000000000000000000600082015250565b6000614f2b601283613fa7565b9150614f3682614ef5565b602082019050919050565b60006020820190508181036000830152614f5a81614f1e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f746f73206c656e677468206d75636820657175616c207175616e74697469657360008201527f206c656e67746800000000000000000000000000000000000000000000000000602082015250565b6000614fec602783613fa7565b9150614ff782614f90565b604082019050919050565b6000602082019050818103600083015261501b81614fdf565b9050919050565b600061502d82614057565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156150605761505f614c36565b5b600182019050919050565b7f496e76616c69642072616e676500000000000000000000000000000000000000600082015250565b60006150a1600d83613fa7565b91506150ac8261506b565b602082019050919050565b600060208201905081810360008301526150d081615094565b9050919050565b600081905092915050565b60006150ed82613f9c565b6150f781856150d7565b9350615107818560208601613fb8565b80840191505092915050565b600061511f82866150e2565b915061512b82856150e2565b915061513782846150e2565b9150819050949350505050565b600061514f82614057565b915061515a83614057565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561518f5761518e614c36565b5b828201905092915050565b60006151a582614057565b915060008214156151b9576151b8614c36565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b60006151fa602083613fa7565b9150615205826151c4565b602082019050919050565b60006020820190508181036000830152615229816151ed565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b600061528c602a83613fa7565b915061529782615230565b604082019050919050565b600060208201905081810360008301526152bb8161527f565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b60006152f8601983613fa7565b9150615303826152c2565b602082019050919050565b60006020820190508181036000830152615327816152eb565b9050919050565b7f455243323938313a20496e76616c696420706172616d65746572730000000000600082015250565b6000615364601b83613fa7565b915061536f8261532e565b602082019050919050565b6000602082019050818103600083015261539381615357565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006153c18261539a565b6153cb81856153a5565b93506153db818560208601613fb8565b6153e481613feb565b840191505092915050565b600060808201905061540460008301876140ba565b61541160208301866140ba565b61541e6040830185614124565b818103606083015261543081846153b6565b905095945050505050565b60008151905061544a81613e2b565b92915050565b60006020828403121561546657615465613df5565b5b60006154748482850161543b565b91505092915050565b600061548882614057565b915061549383614057565b9250828210156154a6576154a5614c36565b5b828203905092915050565b60006154bc82614057565b91506154c783614057565b9250826154d7576154d6614cbf565b5b828206905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b60006155186017836150d7565b9150615523826154e2565b601782019050919050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b60006155646011836150d7565b915061556f8261552e565b601182019050919050565b60006155858261550b565b915061559182856150e2565b915061559c82615557565b91506155a882846150e2565b9150819050939250505056fea2646970667358221220943e5b86b60ac63edbdd3eb641c0085352d0b393ec8163727f90e201c9efcdf864736f6c6343000809003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000180000000000000000000000000e42891a318f1b865527aacbded7c08b5d83e6dad0000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000006268747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f6d6574616d6f746f72732f7261772f75706c6f61642f76313636303730343736372f32333439663139642d343763392d346537312d396539322d3966343362343934343035312f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a4d6574614d6f746f72730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024d4d000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102745760003560e01c806370a0823111610151578063aa1b103f116100c3578063c87b56dd11610087578063c87b56dd14610746578063d539139314610776578063d547741f14610794578063d7f01693146107b0578063e08c5182146107ba578063e985e9c5146107d857610274565b8063aa1b103f146106dc578063ac446002146106e6578063b2a19277146106f0578063b88d4fde146106fa578063c23dc68f1461071657610274565b806391d148541161011557806391d148541461061a57806393bd67c31461064a57806395d89b411461065457806399a2557a14610672578063a217fddf146106a2578063a22cb465146106c057610274565b806370a08231146105665780637c88e3d9146105965780638462151c146105b25780638a616bc0146105e257806390709751146105fe57610274565b80632f2ff15d116101ea57806355f804b3116101ae57806355f804b31461049257806357127247146104ae5780635944c753146104cc5780635bbb2177146104e85780636352211e146105185780636ac437b01461054857610274565b80632f2ff15d1461040657806336568abe1461042257806340c10f191461043e57806342842e0e1461045a57806342966c681461047657610274565b80630ca1c5c91161023c5780630ca1c5c91461032f57806318160ddd1461034d57806323b872dd1461036b578063248a9ca314610387578063282c51f3146103b75780632a55205a146103d557610274565b806301ffc9a71461027957806304634d8d146102a957806306fdde03146102c5578063081812fc146102e3578063095ea7b314610313575b600080fd5b610293600480360381019061028e9190613e57565b610808565b6040516102a09190613e9f565b60405180910390f35b6102c360048036038101906102be9190613f5c565b61081a565b005b6102cd610836565b6040516102da9190614035565b60405180910390f35b6102fd60048036038101906102f8919061408d565b6108c8565b60405161030a91906140c9565b60405180910390f35b61032d600480360381019061032891906140e4565b610944565b005b610337610a49565b6040516103449190614133565b60405180910390f35b610355610a58565b6040516103629190614133565b60405180910390f35b6103856004803603810190610380919061414e565b610a6f565b005b6103a1600480360381019061039c91906141d7565b610a7f565b6040516103ae9190614213565b60405180910390f35b6103bf610a9f565b6040516103cc9190614213565b60405180910390f35b6103ef60048036038101906103ea919061422e565b610ac3565b6040516103fd92919061426e565b60405180910390f35b610420600480360381019061041b9190614297565b610cae565b005b61043c60048036038101906104379190614297565b610ccf565b005b610458600480360381019061045391906140e4565b610d52565b005b610474600480360381019061046f919061414e565b610e80565b005b610490600480360381019061048b919061408d565b610ea0565b005b6104ac60048036038101906104a7919061440c565b610f7e565b005b6104b6610fa6565b6040516104c39190613e9f565b60405180910390f35b6104e660048036038101906104e19190614455565b610fb9565b005b61050260048036038101906104fd9190614570565b610fd7565b60405161050f91906146eb565b60405180910390f35b610532600480360381019061052d919061408d565b611098565b60405161053f91906140c9565b60405180910390f35b6105506110ae565b60405161055d9190613e9f565b60405180910390f35b610580600480360381019061057b919061470d565b6110c1565b60405161058d9190614133565b60405180910390f35b6105b060048036038101906105ab91906147fd565b611191565b005b6105cc60048036038101906105c7919061470d565b611308565b6040516105d99190614933565b60405180910390f35b6105fc60048036038101906105f7919061408d565b61150a565b005b6106186004803603810190610613919061440c565b611524565b005b610634600480360381019061062f9190614297565b61154c565b6040516106419190613e9f565b60405180910390f35b6106526115b7565b005b61065c6115f1565b6040516106699190614035565b60405180910390f35b61068c60048036038101906106879190614955565b611683565b6040516106999190614933565b60405180910390f35b6106aa611953565b6040516106b79190614213565b60405180910390f35b6106da60048036038101906106d591906149d4565b61195a565b005b6106e4611ad2565b005b6106ee611aea565b005b6106f8611b4e565b005b610714600480360381019061070f9190614ab5565b611b79565b005b610730600480360381019061072b919061408d565b611bf1565b60405161073d9190614b7a565b60405180910390f35b610760600480360381019061075b919061408d565b611d0e565b60405161076d9190614035565b60405180910390f35b61077e611db6565b60405161078b9190614213565b60405180910390f35b6107ae60048036038101906107a99190614297565b611dda565b005b6107b8611dfb565b005b6107c2611e35565b6040516107cf9190613e9f565b60405180910390f35b6107f260048036038101906107ed9190614b95565b611e48565b6040516107ff9190613e9f565b60405180910390f35b600061081382612118565b9050919050565b6000801b61082781612192565b61083183836121a6565b505050565b60606002805461084590614c04565b80601f016020809104026020016040519081016040528092919081815260200182805461087190614c04565b80156108be5780601f10610893576101008083540402835291602001916108be565b820191906000526020600020905b8154815290600101906020018083116108a157829003601f168201915b5050505050905090565b60006108d38261233c565b610909576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061094f82611098565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156109b7576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166109d661238a565b73ffffffffffffffffffffffffffffffffffffffff1614610a3957610a02816109fd61238a565b611e48565b610a38576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b610a44838383612392565b505050565b6000610a53612444565b905090565b6000610a62612457565b6001546000540303905090565b610a7a838383612460565b505050565b600060086000838152602001908152602001600020600101549050919050565b7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84881565b6000806000600b60008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161415610c5957600a6040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610c63612916565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610c8f9190614c65565b610c999190614cee565b90508160000151819350935050509250929050565b610cb782610a7f565b610cc081612192565b610cca8383612920565b505050565b610cd761238a565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610d44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3b90614d91565b60405180910390fd5b610d4e8282612a01565b5050565b60026009541415610d98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8f90614dfd565b60405180910390fd5b6002600981905550600c60019054906101000a900460ff16610def576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de690614e69565b60405180910390fd5b600c60009054906101000a900460ff1615610e3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3690614ed5565b60405180910390fd5b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610e6981612192565b610e738383612ae3565b5060016009819055505050565b610e9b83838360405180602001604052806000815250611b79565b505050565b60026009541415610ee6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610edd90614dfd565b60405180910390fd5b6002600981905550600c60029054906101000a900460ff16610f3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3490614f41565b60405180910390fd5b7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a848610f6781612192565b610f72826001612dbf565b50600160098190555050565b6000801b610f8b81612192565b81600e9080519060200190610fa1929190613d05565b505050565b600c60029054906101000a900460ff1681565b6000801b610fc681612192565b610fd18484846131af565b50505050565b606060008251905060008167ffffffffffffffff811115610ffb57610ffa6142e1565b5b60405190808252806020026020018201604052801561103457816020015b611021613d8b565b8152602001906001900390816110195790505b50905060005b82811461108d5761106485828151811061105757611056614f61565b5b6020026020010151611bf1565b82828151811061107757611076614f61565b5b602002602001018190525080600101905061103a565b508092505050919050565b60006110a382613357565b600001519050919050565b600c60019054906101000a900460ff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611129576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b600260095414156111d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ce90614dfd565b60405180910390fd5b6002600981905550600c60009054906101000a900460ff161561122f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122690614ed5565b60405180910390fd5b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661125981612192565b815183511461129d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129490615002565b60405180910390fd5b60005b83518110156112fa576112e78482815181106112bf576112be614f61565b5b60200260200101518483815181106112da576112d9614f61565b5b6020026020010151612ae3565b80806112f290615022565b9150506112a0565b505060016009819055505050565b60606000806000611318856110c1565b905060008167ffffffffffffffff811115611336576113356142e1565b5b6040519080825280602002602001820160405280156113645781602001602082028036833780820191505090505b50905061136f613d8b565b6000611379612457565b90505b8386146114fc57600460008281526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509150816040015115611455576114f1565b600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461149557816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156114f057808387806001019850815181106114e3576114e2614f61565b5b6020026020010181815250505b5b80600101905061137c565b508195505050505050919050565b6000801b61151781612192565b611520826135e2565b5050565b6000801b61153181612192565b81600d9080519060200190611547929190613d05565b505050565b60006008600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b6115c481612192565b600c60019054906101000a900460ff1615600c60016101000a81548160ff02191690831515021790555050565b60606003805461160090614c04565b80601f016020809104026020016040519081016040528092919081815260200182805461162c90614c04565b80156116795780601f1061164e57610100808354040283529160200191611679565b820191906000526020600020905b81548152906001019060200180831161165c57829003601f168201915b5050505050905090565b60608183106116c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116be906150b7565b60405180910390fd5b60008060005490506116d7612457565b8510156116e9576116e6612457565b94505b808411156116f5578093505b6000611700876110c1565b90508486101561172357600086860390508181101561171d578091505b50611728565b600090505b60008167ffffffffffffffff811115611744576117436142e1565b5b6040519080825280602002602001820160405280156117725781602001602082028036833780820191505090505b509050600082141561178a578094505050505061194c565b600061179588611bf1565b9050600081604001516117aa57816000015190505b60008990505b8881141580156117c05750848714155b1561193e57600460008281526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff161515151581525050925082604001511561189757611933565b600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff16146118d757826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611932578084888060010199508151811061192557611924614f61565b5b6020026020010181815250505b5b8060010190506117b0565b508583528296505050505050505b9392505050565b6000801b81565b61196261238a565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156119c7576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006119d461238a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611a8161238a565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611ac69190613e9f565b60405180910390a35050565b6000801b611adf81612192565b611ae7613641565b50565b6000801b611af781612192565b6000611b0161238a565b90508073ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015611b49573d6000803e3d6000fd5b505050565b6000801b611b5b81612192565b6001600c60006101000a81548160ff02191690831515021790555050565b611b84848484612460565b611ba38373ffffffffffffffffffffffffffffffffffffffff1661368e565b15611beb57611bb4848484846136b1565b611bea576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b611bf9613d8b565b611c01613d8b565b611c09612457565b831080611c1857506000548310155b15611c265780915050611d09565b600460008481526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050806040015115611cfc5780915050611d09565b611d0583613357565b9150505b919050565b6060611d198261233c565b611d4f576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611d59613811565b9050600081511415611d7a5760405180602001604052806000815250611dae565b80611d84846138a3565b611d8c613a04565b604051602001611d9e93929190615113565b6040516020818303038152906040525b915050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b611de382610a7f565b611dec81612192565b611df68383612a01565b505050565b6000801b611e0881612192565b600c60029054906101000a900460ff1615600c60026101000a81548160ff02191690831515021790555050565b600c60009054906101000a900460ff1681565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606060006002836002611eef9190614c65565b611ef99190615144565b67ffffffffffffffff811115611f1257611f116142e1565b5b6040519080825280601f01601f191660200182016040528015611f445781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110611f7c57611f7b614f61565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110611fe057611fdf614f61565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026120209190614c65565b61202a9190615144565b90505b60018111156120ca577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061206c5761206b614f61565b5b1a60f81b82828151811061208357612082614f61565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806120c39061519a565b905061202d565b506000841461210e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161210590615210565b60405180910390fd5b8091505092915050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061218b575061218a82613a96565b5b9050919050565b6121a38161219e61238a565b613b10565b50565b6121ae612916565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff16111561220c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612203906152a2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561227c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122739061530e565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600a60008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b600081612347612457565b11158015612356575060005482105b8015612383575060046000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600061244e612457565b60005403905090565b60006001905090565b600061246b82613357565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146124d6576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff166124f761238a565b73ffffffffffffffffffffffffffffffffffffffff16148061252657506125258561252061238a565b611e48565b5b8061256b575061253461238a565b73ffffffffffffffffffffffffffffffffffffffff16612553846108c8565b73ffffffffffffffffffffffffffffffffffffffff16145b9050806125a4576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561260b576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6126188585856001613bad565b61262460008487612392565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600460008581526020019081526020016000209050848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060006001850190506000600460008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156128a45760005482146128a357878160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461290f8585856001613bb3565b5050505050565b6000612710905090565b61292a828261154c565b6129fd5760016008600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506129a261238a565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b612a0b828261154c565b15612adf5760006008600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612a8461238a565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612b50576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000821415612b8b576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612b986000848385613bad565b81600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555081600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550826004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000819050600083820190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808210612d3b57816000819055505050612dba6000848385613bb3565b505050565b6000612dca83613357565b90506000816000015190508215612eab5760008173ffffffffffffffffffffffffffffffffffffffff16612dfc61238a565b73ffffffffffffffffffffffffffffffffffffffff161480612e2b5750612e2a82612e2561238a565b611e48565b5b80612e705750612e3961238a565b73ffffffffffffffffffffffffffffffffffffffff16612e58866108c8565b73ffffffffffffffffffffffffffffffffffffffff16145b905080612ea9576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b612eb9816000866001613bad565b612ec560008583612392565b6000600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060018160000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060018160000160108282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600460008781526020019081526020016000209050828160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600181600001601c6101000a81548160ff02191690831515021790555060006001870190506000600460008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561312957600054821461312857848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555085602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b5050505083600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613197816000866001613bb3565b60016000815480929190600101919050555050505050565b6131b7612916565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115613215576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161320c906152a2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613285576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161327c9061537a565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600b600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550905050505050565b61335f613d8b565b60008290508061336d612457565b116135ab576000548110156135aa576000600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff161515151581525050905080604001516135a857600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461348c5780925050506135dd565b5b6001156135a757818060019003925050600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146135a25780925050506135dd565b61348d565b5b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b600b6000828152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556000820160146101000a8154906bffffffffffffffffffffffff0219169055505050565b600a600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556000820160146101000a8154906bffffffffffffffffffffffff02191690555050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026136d761238a565b8786866040518563ffffffff1660e01b81526004016136f994939291906153ef565b602060405180830381600087803b15801561371357600080fd5b505af192505050801561374457506040513d601f19601f820116820180604052508101906137419190615450565b60015b6137be573d8060008114613774576040519150601f19603f3d011682016040523d82523d6000602084013e613779565b606091505b506000815114156137b6576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600e805461382090614c04565b80601f016020809104026020016040519081016040528092919081815260200182805461384c90614c04565b80156138995780601f1061386e57610100808354040283529160200191613899565b820191906000526020600020905b81548152906001019060200180831161387c57829003601f168201915b5050505050905090565b606060008214156138eb576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506139ff565b600082905060005b6000821461391d57808061390690615022565b915050600a826139169190614cee565b91506138f3565b60008167ffffffffffffffff811115613939576139386142e1565b5b6040519080825280601f01601f19166020018201604052801561396b5781602001600182028036833780820191505090505b5090505b600085146139f857600182613984919061547d565b9150600a8561399391906154b1565b603061399f9190615144565b60f81b8183815181106139b5576139b4614f61565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856139f19190614cee565b945061396f565b8093505050505b919050565b6060600d8054613a1390614c04565b80601f0160208091040260200160405190810160405280929190818152602001828054613a3f90614c04565b8015613a8c5780601f10613a6157610100808354040283529160200191613a8c565b820191906000526020600020905b815481529060010190602001808311613a6f57829003601f168201915b5050505050905090565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480613b095750613b0882613bb9565b5b9050919050565b613b1a828261154c565b613ba957613b3f8173ffffffffffffffffffffffffffffffffffffffff166014611edc565b613b4d8360001c6020611edc565b604051602001613b5e92919061557a565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613ba09190614035565b60405180910390fd5b5050565b50505050565b50505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480613c8457507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80613c945750613c9382613c9b565b5b9050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b828054613d1190614c04565b90600052602060002090601f016020900481019282613d335760008555613d7a565b82601f10613d4c57805160ff1916838001178555613d7a565b82800160010185558215613d7a579182015b82811115613d79578251825591602001919060010190613d5e565b5b509050613d879190613dce565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b80821115613de7576000816000905550600101613dcf565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613e3481613dff565b8114613e3f57600080fd5b50565b600081359050613e5181613e2b565b92915050565b600060208284031215613e6d57613e6c613df5565b5b6000613e7b84828501613e42565b91505092915050565b60008115159050919050565b613e9981613e84565b82525050565b6000602082019050613eb46000830184613e90565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613ee582613eba565b9050919050565b613ef581613eda565b8114613f0057600080fd5b50565b600081359050613f1281613eec565b92915050565b60006bffffffffffffffffffffffff82169050919050565b613f3981613f18565b8114613f4457600080fd5b50565b600081359050613f5681613f30565b92915050565b60008060408385031215613f7357613f72613df5565b5b6000613f8185828601613f03565b9250506020613f9285828601613f47565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613fd6578082015181840152602081019050613fbb565b83811115613fe5576000848401525b50505050565b6000601f19601f8301169050919050565b600061400782613f9c565b6140118185613fa7565b9350614021818560208601613fb8565b61402a81613feb565b840191505092915050565b6000602082019050818103600083015261404f8184613ffc565b905092915050565b6000819050919050565b61406a81614057565b811461407557600080fd5b50565b60008135905061408781614061565b92915050565b6000602082840312156140a3576140a2613df5565b5b60006140b184828501614078565b91505092915050565b6140c381613eda565b82525050565b60006020820190506140de60008301846140ba565b92915050565b600080604083850312156140fb576140fa613df5565b5b600061410985828601613f03565b925050602061411a85828601614078565b9150509250929050565b61412d81614057565b82525050565b60006020820190506141486000830184614124565b92915050565b60008060006060848603121561416757614166613df5565b5b600061417586828701613f03565b935050602061418686828701613f03565b925050604061419786828701614078565b9150509250925092565b6000819050919050565b6141b4816141a1565b81146141bf57600080fd5b50565b6000813590506141d1816141ab565b92915050565b6000602082840312156141ed576141ec613df5565b5b60006141fb848285016141c2565b91505092915050565b61420d816141a1565b82525050565b60006020820190506142286000830184614204565b92915050565b6000806040838503121561424557614244613df5565b5b600061425385828601614078565b925050602061426485828601614078565b9150509250929050565b600060408201905061428360008301856140ba565b6142906020830184614124565b9392505050565b600080604083850312156142ae576142ad613df5565b5b60006142bc858286016141c2565b92505060206142cd85828601613f03565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61431982613feb565b810181811067ffffffffffffffff82111715614338576143376142e1565b5b80604052505050565b600061434b613deb565b90506143578282614310565b919050565b600067ffffffffffffffff821115614377576143766142e1565b5b61438082613feb565b9050602081019050919050565b82818337600083830152505050565b60006143af6143aa8461435c565b614341565b9050828152602081018484840111156143cb576143ca6142dc565b5b6143d684828561438d565b509392505050565b600082601f8301126143f3576143f26142d7565b5b813561440384826020860161439c565b91505092915050565b60006020828403121561442257614421613df5565b5b600082013567ffffffffffffffff8111156144405761443f613dfa565b5b61444c848285016143de565b91505092915050565b60008060006060848603121561446e5761446d613df5565b5b600061447c86828701614078565b935050602061448d86828701613f03565b925050604061449e86828701613f47565b9150509250925092565b600067ffffffffffffffff8211156144c3576144c26142e1565b5b602082029050602081019050919050565b600080fd5b60006144ec6144e7846144a8565b614341565b9050808382526020820190506020840283018581111561450f5761450e6144d4565b5b835b8181101561453857806145248882614078565b845260208401935050602081019050614511565b5050509392505050565b600082601f830112614557576145566142d7565b5b81356145678482602086016144d9565b91505092915050565b60006020828403121561458657614585613df5565b5b600082013567ffffffffffffffff8111156145a4576145a3613dfa565b5b6145b084828501614542565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6145ee81613eda565b82525050565b600067ffffffffffffffff82169050919050565b614611816145f4565b82525050565b61462081613e84565b82525050565b60608201600082015161463c60008501826145e5565b50602082015161464f6020850182614608565b5060408201516146626040850182614617565b50505050565b60006146748383614626565b60608301905092915050565b6000602082019050919050565b6000614698826145b9565b6146a281856145c4565b93506146ad836145d5565b8060005b838110156146de5781516146c58882614668565b97506146d083614680565b9250506001810190506146b1565b5085935050505092915050565b60006020820190508181036000830152614705818461468d565b905092915050565b60006020828403121561472357614722613df5565b5b600061473184828501613f03565b91505092915050565b600067ffffffffffffffff821115614755576147546142e1565b5b602082029050602081019050919050565b60006147796147748461473a565b614341565b9050808382526020820190506020840283018581111561479c5761479b6144d4565b5b835b818110156147c557806147b18882613f03565b84526020840193505060208101905061479e565b5050509392505050565b600082601f8301126147e4576147e36142d7565b5b81356147f4848260208601614766565b91505092915050565b6000806040838503121561481457614813613df5565b5b600083013567ffffffffffffffff81111561483257614831613dfa565b5b61483e858286016147cf565b925050602083013567ffffffffffffffff81111561485f5761485e613dfa565b5b61486b85828601614542565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6148aa81614057565b82525050565b60006148bc83836148a1565b60208301905092915050565b6000602082019050919050565b60006148e082614875565b6148ea8185614880565b93506148f583614891565b8060005b8381101561492657815161490d88826148b0565b9750614918836148c8565b9250506001810190506148f9565b5085935050505092915050565b6000602082019050818103600083015261494d81846148d5565b905092915050565b60008060006060848603121561496e5761496d613df5565b5b600061497c86828701613f03565b935050602061498d86828701614078565b925050604061499e86828701614078565b9150509250925092565b6149b181613e84565b81146149bc57600080fd5b50565b6000813590506149ce816149a8565b92915050565b600080604083850312156149eb576149ea613df5565b5b60006149f985828601613f03565b9250506020614a0a858286016149bf565b9150509250929050565b600067ffffffffffffffff821115614a2f57614a2e6142e1565b5b614a3882613feb565b9050602081019050919050565b6000614a58614a5384614a14565b614341565b905082815260208101848484011115614a7457614a736142dc565b5b614a7f84828561438d565b509392505050565b600082601f830112614a9c57614a9b6142d7565b5b8135614aac848260208601614a45565b91505092915050565b60008060008060808587031215614acf57614ace613df5565b5b6000614add87828801613f03565b9450506020614aee87828801613f03565b9350506040614aff87828801614078565b925050606085013567ffffffffffffffff811115614b2057614b1f613dfa565b5b614b2c87828801614a87565b91505092959194509250565b606082016000820151614b4e60008501826145e5565b506020820151614b616020850182614608565b506040820151614b746040850182614617565b50505050565b6000606082019050614b8f6000830184614b38565b92915050565b60008060408385031215614bac57614bab613df5565b5b6000614bba85828601613f03565b9250506020614bcb85828601613f03565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614c1c57607f821691505b60208210811415614c3057614c2f614bd5565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614c7082614057565b9150614c7b83614057565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614cb457614cb3614c36565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614cf982614057565b9150614d0483614057565b925082614d1457614d13614cbf565b5b828204905092915050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000614d7b602f83613fa7565b9150614d8682614d1f565b604082019050919050565b60006020820190508181036000830152614daa81614d6e565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614de7601f83613fa7565b9150614df282614db1565b602082019050919050565b60006020820190508181036000830152614e1681614dda565b9050919050565b7f4d696e74206973206e6f74206163746976650000000000000000000000000000600082015250565b6000614e53601283613fa7565b9150614e5e82614e1d565b602082019050919050565b60006020820190508181036000830152614e8281614e46565b9050919050565b7f4d696e74696e67207065726d616e656e746c79206c6f636b6564000000000000600082015250565b6000614ebf601a83613fa7565b9150614eca82614e89565b602082019050919050565b60006020820190508181036000830152614eee81614eb2565b9050919050565b7f4275726e206973206e6f74206163746976650000000000000000000000000000600082015250565b6000614f2b601283613fa7565b9150614f3682614ef5565b602082019050919050565b60006020820190508181036000830152614f5a81614f1e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f746f73206c656e677468206d75636820657175616c207175616e74697469657360008201527f206c656e67746800000000000000000000000000000000000000000000000000602082015250565b6000614fec602783613fa7565b9150614ff782614f90565b604082019050919050565b6000602082019050818103600083015261501b81614fdf565b9050919050565b600061502d82614057565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156150605761505f614c36565b5b600182019050919050565b7f496e76616c69642072616e676500000000000000000000000000000000000000600082015250565b60006150a1600d83613fa7565b91506150ac8261506b565b602082019050919050565b600060208201905081810360008301526150d081615094565b9050919050565b600081905092915050565b60006150ed82613f9c565b6150f781856150d7565b9350615107818560208601613fb8565b80840191505092915050565b600061511f82866150e2565b915061512b82856150e2565b915061513782846150e2565b9150819050949350505050565b600061514f82614057565b915061515a83614057565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561518f5761518e614c36565b5b828201905092915050565b60006151a582614057565b915060008214156151b9576151b8614c36565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b60006151fa602083613fa7565b9150615205826151c4565b602082019050919050565b60006020820190508181036000830152615229816151ed565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b600061528c602a83613fa7565b915061529782615230565b604082019050919050565b600060208201905081810360008301526152bb8161527f565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b60006152f8601983613fa7565b9150615303826152c2565b602082019050919050565b60006020820190508181036000830152615327816152eb565b9050919050565b7f455243323938313a20496e76616c696420706172616d65746572730000000000600082015250565b6000615364601b83613fa7565b915061536f8261532e565b602082019050919050565b6000602082019050818103600083015261539381615357565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006153c18261539a565b6153cb81856153a5565b93506153db818560208601613fb8565b6153e481613feb565b840191505092915050565b600060808201905061540460008301876140ba565b61541160208301866140ba565b61541e6040830185614124565b818103606083015261543081846153b6565b905095945050505050565b60008151905061544a81613e2b565b92915050565b60006020828403121561546657615465613df5565b5b60006154748482850161543b565b91505092915050565b600061548882614057565b915061549383614057565b9250828210156154a6576154a5614c36565b5b828203905092915050565b60006154bc82614057565b91506154c783614057565b9250826154d7576154d6614cbf565b5b828206905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b60006155186017836150d7565b9150615523826154e2565b601782019050919050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b60006155646011836150d7565b915061556f8261552e565b601182019050919050565b60006155858261550b565b915061559182856150e2565b915061559c82615557565b91506155a882846150e2565b9150819050939250505056fea2646970667358221220943e5b86b60ac63edbdd3eb641c0085352d0b393ec8163727f90e201c9efcdf864736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000180000000000000000000000000e42891a318f1b865527aacbded7c08b5d83e6dad0000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000006268747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f6d6574616d6f746f72732f7261772f75706c6f61642f76313636303730343736372f32333439663139642d343763392d346537312d396539322d3966343362343934343035312f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a4d6574614d6f746f72730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024d4d000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : initialBaseUri (string): https://res.cloudinary.com/metamotors/raw/upload/v1660704767/2349f19d-47c9-4e71-9e92-9f43b4944051/
Arg [1] : name (string): MetaMotors
Arg [2] : symbol (string): MM
Arg [3] : initialRoyaltyReceiver (address): 0xe42891a318f1B865527aACbdED7C08b5d83e6DAD
Arg [4] : intialRoyaltyFeeNumerator (uint96): 800
-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [3] : 000000000000000000000000e42891a318f1b865527aacbded7c08b5d83e6dad
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000320
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000062
Arg [6] : 68747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f6d6574616d
Arg [7] : 6f746f72732f7261772f75706c6f61642f76313636303730343736372f323334
Arg [8] : 39663139642d343763392d346537312d396539322d3966343362343934343035
Arg [9] : 312f000000000000000000000000000000000000000000000000000000000000
Arg [10] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [11] : 4d6574614d6f746f727300000000000000000000000000000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [13] : 4d4d000000000000000000000000000000000000000000000000000000000000
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.