ERC-721
Overview
Max Total Supply
191 FEEVMC
Holders
100
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 FEEVMCLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
FEEVMembershipNFT
Compiler Version
v0.8.2+commit.661d1103
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.2; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "@openzeppelin/contracts/interfaces/IERC2981.sol"; import "./FeevieNFT.sol"; contract FEEVMembershipNFT is AccessControl, ERC721, ERC721Enumerable, IERC2981 { using Counters for Counters.Counter; Counters.Counter private _tokenIdCounter; bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); uint256 private constant INITIAL_MINT_LIMIT = 130; string public baseURI; uint256 public maxSupply; uint256[] public priceRanges; uint256[] public prices; address public feevieNFT; address private royaltyReceiver; uint256 private royaltyBPS; address private initialMintRecipient; uint256 private amountOfInitiallyMintedTokens; address public owner; constructor( string memory _name, string memory _symbol, address _owner, address _minter, address _initialMintRecipient, uint256 _maxSupply, address _royaltyReceiver, string memory _initialURI, address _feevieNFT, uint256[] memory _priceRanges, uint256[] memory _prices ) ERC721(_name, _symbol) { maxSupply = _maxSupply; _tokenIdCounter.increment(); _grantRole(DEFAULT_ADMIN_ROLE, _owner); _grantRole(MINTER_ROLE, _owner); _grantRole(MINTER_ROLE, _minter); baseURI = _initialURI; royaltyBPS = 800; royaltyReceiver = _royaltyReceiver; priceRanges = _priceRanges; prices = _prices; feevieNFT = _feevieNFT; initialMintRecipient = _initialMintRecipient; owner = _owner; FeevieNFT(feevieNFT).setMembershipNFT(address(this)); } /// @dev Function to mint initial amount of tokens to the feev.eth /// @param amount Amount of tokens to mint /// @notice It is possible to mint only 130 tokens function initialMint(uint256 amount) external { require(amountOfInitiallyMintedTokens + amount <= INITIAL_MINT_LIMIT, "Reached limit for minting"); for (uint256 i = 0; i < amount; i++) { uint256 tokenId = _tokenIdCounter.current(); _tokenIdCounter.increment(); _safeMint(initialMintRecipient, tokenId); } FeevieNFT(feevieNFT).safeMint(initialMintRecipient, amount); amountOfInitiallyMintedTokens += amount; } /// @dev Function to mint new NFT tokens /// @param to Address of new NFTs' owner /// @param tokensAmount Amount of NFTs to mint /// @notice It can be called only by address with minter role function safeMint(address to, uint256 tokensAmount) public onlyRole(MINTER_ROLE) { require(_tokenIdCounter.current() + tokensAmount <= maxSupply, "Reached limit for minting"); for (uint256 i = 0; i < tokensAmount; i++) { uint256 tokenId = _tokenIdCounter.current(); _tokenIdCounter.increment(); _safeMint(to, tokenId); } FeevieNFT(feevieNFT).safeMint(to, tokensAmount); } /// @dev Change owner address /// @param newOwner Address of new owner function changeOwner(address newOwner) external onlyRole(DEFAULT_ADMIN_ROLE) { owner = newOwner; _grantRole(DEFAULT_ADMIN_ROLE, newOwner); _revokeRole(DEFAULT_ADMIN_ROLE, msg.sender); } /// @dev Change baseURI /// @param newURI New uri to new folder with metadata /// @notice It can be called only by owner function setBaseURI(string memory newURI) public onlyRole(DEFAULT_ADMIN_ROLE) { baseURI = newURI; } function _baseURI() internal view virtual override returns (string memory) { return baseURI; } /// @dev Function to set new royalties for each NFT token in the collection /// @param _royaltyBPS Royalty amount in BPS (0 - 0%, 100% - 10000) /// @param _royaltyReceiver Address of royalty receiver /// @notice It can be called only by administrator function setRoyalties(uint256 _royaltyBPS, address _royaltyReceiver) public onlyRole(DEFAULT_ADMIN_ROLE) { royaltyBPS = _royaltyBPS; royaltyReceiver = _royaltyReceiver; } /// @dev Getter for info about royalty /// @param tokenId Id of NFT token /// @param salePrice Price to calculate royalty /// @return receiver Address of royalty receiver /// @return royaltyAmount Amount of calculated royalty function royaltyInfo(uint256 tokenId, uint256 salePrice) external view override returns (address receiver, uint256 royaltyAmount) { uint256 price = (salePrice * royaltyBPS) / 10000; return (royaltyReceiver, price); } /// @dev Getter for price of minting /// @param tokensAmount Amount of NFT tokens to mint /// @return uint256 calculated price of minting function getPrice(uint256 tokensAmount) external view returns (uint256) { uint256 currentSupply = totalSupply(); uint256 price = 0; for ( uint256 tokenNumber = currentSupply + 1; tokenNumber <= currentSupply + tokensAmount; tokenNumber++ ) { for (uint256 rangeIndex = 0; rangeIndex < priceRanges.length; rangeIndex++) { if (tokenNumber > priceRanges[rangeIndex]) { continue; } else { price += prices[rangeIndex]; break; } } } return price; } function isApprovedForAll(address _owner, address _operator) public view override returns (bool isOperator) { if (_operator == feevieNFT) { return true; } return super.isApprovedForAll(_owner, _operator); } function transferFrom( address from, address to, uint256 tokenId ) public virtual override { super.transferFrom(from, to, tokenId); FeevieNFT(feevieNFT).onMembershipNFTTransfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { super.safeTransferFrom(from, to, tokenId, ""); FeevieNFT(feevieNFT).onMembershipNFTTransfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { super.safeTransferFrom(from, to, tokenId, _data); FeevieNFT(feevieNFT).onMembershipNFTTransfer(from, to, tokenId); } /// @dev Hook which is called on Feevie contract after Feevie token transfer function onFeevieTransfer( address from, address to, uint256 tokenId ) external { require(msg.sender == feevieNFT, "Only for feevie contract"); super._transfer(from, to, tokenId); } function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); } function tokenURI(uint256 tokenId) public view override returns (string memory) { require(_exists(tokenId), "ERC721: nonexistent token"); return super.tokenURI(tokenId); } function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable, IERC165, AccessControl) returns (bool) { if (interfaceId == type(IERC2981).interfaceId) { return true; } return super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721URIStorage.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; /** * @dev ERC721 token with storage based token URI management. */ abstract contract ERC721URIStorage is ERC721 { using Strings for uint256; // Optional mapping for token URIs mapping(uint256 => string) private _tokenURIs; /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token"); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = _baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(base, _tokenURI)); } return super.tokenURI(tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual override { super._burn(tokenId); if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.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, _msgSender()); _; } /** * @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 `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. */ 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. */ 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`. */ 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. * * [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. */ 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. */ 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 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.5.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "./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 payed in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.2; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "@openzeppelin/contracts/interfaces/IERC2981.sol"; import "./FEEVMembershipNFT.sol"; contract FeevieNFT is AccessControl, ERC721, ERC721Enumerable, IERC2981 { using Counters for Counters.Counter; Counters.Counter private _tokenIdCounter; bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); string public baseURI; address public owner; address public membershipNFT; uint256 private royaltyBPS; address private royaltyReceiver; constructor( string memory _name, string memory _symbol, address _owner, address _royaltyReceiver, string memory _initialURI ) ERC721(_name, _symbol) { _tokenIdCounter.increment(); _grantRole(DEFAULT_ADMIN_ROLE, _owner); baseURI = _initialURI; royaltyBPS = 800; royaltyReceiver = _royaltyReceiver; owner = _owner; } /// @dev Function to mint new NFT tokens /// @param to Address of new NFTs' owner /// @param tokensAmount Amount of NFTs to mint /// @notice It can be called only by address with minter role function safeMint(address to, uint256 tokensAmount) public onlyRole(MINTER_ROLE) { for (uint256 i = 0; i < tokensAmount; i++) { uint256 tokenId = _tokenIdCounter.current(); _tokenIdCounter.increment(); _safeMint(to, tokenId); } } /// @dev Change owner address /// @param newOwner Address of new owner function changeOwner(address newOwner) external onlyRole(DEFAULT_ADMIN_ROLE) { owner = newOwner; _grantRole(DEFAULT_ADMIN_ROLE, newOwner); _revokeRole(DEFAULT_ADMIN_ROLE, msg.sender); } /// @dev Change baseURI /// @param newURI New uri to new folder with metadata /// @notice It can be called only by owner function setBaseURI(string memory newURI) public onlyRole(DEFAULT_ADMIN_ROLE) { baseURI = newURI; } function _baseURI() internal view virtual override returns (string memory) { return baseURI; } /// @dev Function to set new royalties for each NFT token in the collection /// @param _royaltyBPS Royalty amount in BPS (0 - 0%, 100% - 10000) /// @param _royaltyReceiver Address of royalty receiver /// @notice It can be called only by administrator function setRoyalties(uint256 _royaltyBPS, address _royaltyReceiver) public onlyRole(DEFAULT_ADMIN_ROLE) { royaltyBPS = _royaltyBPS; royaltyReceiver = _royaltyReceiver; } /// @dev Getter for info about royalty /// @param tokenId Id of NFT token /// @param salePrice Price to calculate royalty /// @return receiver Address of royalty receiver /// @return royaltyAmount Amount of calculated royalty function royaltyInfo(uint256 tokenId, uint256 salePrice) external view override returns (address receiver, uint256 royaltyAmount) { uint256 price = (salePrice * royaltyBPS) / 10000; return (royaltyReceiver, price); } /// @dev Function to set connected FEEV MC NFT contract /// @param _membershipNFT Address of FEEV MC NFT contract /// @notice Address can be set once function setMembershipNFT(address _membershipNFT) external { require(membershipNFT == address(0), "MembershipNFT is already set"); _grantRole(MINTER_ROLE, _membershipNFT); membershipNFT = _membershipNFT; } function isApprovedForAll(address _owner, address _operator) public view override returns (bool isOperator) { if (_operator == membershipNFT) { return true; } return super.isApprovedForAll(_owner, _operator); } function transferFrom( address from, address to, uint256 tokenId ) public virtual override { super.transferFrom(from, to, tokenId); FEEVMembershipNFT(membershipNFT).onFeevieTransfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { super.safeTransferFrom(from, to, tokenId, ""); FEEVMembershipNFT(membershipNFT).onFeevieTransfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { super.safeTransferFrom(from, to, tokenId, _data); FEEVMembershipNFT(membershipNFT).onFeevieTransfer(from, to, tokenId); } /// @dev Hook which is called on FEEV MC contract after MC token transfer function onMembershipNFTTransfer( address from, address to, uint256 tokenId ) external { require(msg.sender == membershipNFT, "Only for membership NFT contract"); super._transfer(from, to, tokenId); } function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); } function tokenURI(uint256 tokenId) public view override returns (string memory) { require(_exists(tokenId), "ERC721: nonexistent token"); return super.tokenURI(tokenId); } function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable, IERC165, AccessControl) returns (bool) { if (interfaceId == type(IERC2981).interfaceId) { return true; } return super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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 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); /** * @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; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// 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 (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// 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 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// 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 (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// 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 v4.4.1 (interfaces/IERC165.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol";
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_minter","type":"address"},{"internalType":"address","name":"_initialMintRecipient","type":"address"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"address","name":"_royaltyReceiver","type":"address"},{"internalType":"string","name":"_initialURI","type":"string"},{"internalType":"address","name":"_feevieNFT","type":"address"},{"internalType":"uint256[]","name":"_priceRanges","type":"uint256[]"},{"internalType":"uint256[]","name":"_prices","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"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":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"changeOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feevieNFT","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"uint256","name":"tokensAmount","type":"uint256"}],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":"uint256","name":"amount","type":"uint256"}],"name":"initialMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"isOperator","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"onFeevieTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"priceRanges","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"prices","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","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":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokensAmount","type":"uint256"}],"name":"safeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_royaltyBPS","type":"uint256"},{"internalType":"address","name":"_royaltyReceiver","type":"address"}],"name":"setRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200569a3803806200569a8339818101604052810190620000379190620006bb565b8a8a81600190805190602001906200005192919062000477565b5080600290805190602001906200006a92919062000477565b50505085600d819055506200008b600b620002fe60201b620018da1760201c565b620000a06000801b8a6200031460201b60201c565b620000d27f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a68a6200031460201b60201c565b620001047f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6896200031460201b60201c565b83600c90805190602001906200011c92919062000477565b5061032060128190555084601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600e90805190602001906200017f92919062000508565b5080600f90805190602001906200019892919062000508565b5082601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555086601360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555088601560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663aeb75a24306040518263ffffffff1660e01b8152600401620002b9919062000850565b600060405180830381600087803b158015620002d457600080fd5b505af1158015620002e9573d6000803e3d6000fd5b50505050505050505050505050505062000a7e565b6001816000016000828254019250508190555050565b6200032682826200040560201b60201c565b6200040157600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620003a66200046f60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b82805462000485906200096f565b90600052602060002090601f016020900481019282620004a95760008555620004f5565b82601f10620004c457805160ff1916838001178555620004f5565b82800160010185558215620004f5579182015b82811115620004f4578251825591602001919060010190620004d7565b5b5090506200050491906200055a565b5090565b82805482825590600052602060002090810192821562000547579160200282015b828111156200054657825182559160200191906001019062000529565b5b5090506200055691906200055a565b5090565b5b80821115620005755760008160009055506001016200055b565b5090565b6000620005906200058a8462000896565b6200086d565b90508083825260208201905082856020860282011115620005b057600080fd5b60005b85811015620005e45781620005c98882620006a4565b845260208401935060208301925050600181019050620005b3565b5050509392505050565b600062000605620005ff84620008c5565b6200086d565b9050828152602081018484840111156200061e57600080fd5b6200062b84828562000939565b509392505050565b600081519050620006448162000a4a565b92915050565b600082601f8301126200065c57600080fd5b81516200066e84826020860162000579565b91505092915050565b600082601f8301126200068957600080fd5b81516200069b848260208601620005ee565b91505092915050565b600081519050620006b58162000a64565b92915050565b60008060008060008060008060008060006101608c8e031215620006de57600080fd5b60008c015167ffffffffffffffff811115620006f957600080fd5b620007078e828f0162000677565b9b505060208c015167ffffffffffffffff8111156200072557600080fd5b620007338e828f0162000677565b9a50506040620007468e828f0162000633565b9950506060620007598e828f0162000633565b98505060806200076c8e828f0162000633565b97505060a06200077f8e828f01620006a4565b96505060c0620007928e828f0162000633565b95505060e08c015167ffffffffffffffff811115620007b057600080fd5b620007be8e828f0162000677565b945050610100620007d28e828f0162000633565b9350506101208c015167ffffffffffffffff811115620007f157600080fd5b620007ff8e828f016200064a565b9250506101408c015167ffffffffffffffff8111156200081e57600080fd5b6200082c8e828f016200064a565b9150509295989b509295989b9093969950565b6200084a81620008fb565b82525050565b60006020820190506200086760008301846200083f565b92915050565b6000620008796200088c565b9050620008878282620009a5565b919050565b6000604051905090565b600067ffffffffffffffff821115620008b457620008b362000a0a565b5b602082029050602081019050919050565b600067ffffffffffffffff821115620008e357620008e262000a0a565b5b620008ee8262000a39565b9050602081019050919050565b600062000908826200090f565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b83811015620009595780820151818401526020810190506200093c565b8381111562000969576000848401525b50505050565b600060028204905060018216806200098857607f821691505b602082108114156200099f576200099e620009db565b5b50919050565b620009b08262000a39565b810181811067ffffffffffffffff82111715620009d257620009d162000a0a565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b62000a5581620008fb565b811462000a6157600080fd5b50565b62000a6f816200092f565b811462000a7b57600080fd5b50565b614c0c8062000a8e6000396000f3fe608060405234801561001057600080fd5b50600436106102275760003560e01c80636352211e11610130578063a6f9dae1116100b8578063d53913931161007c578063d5391393146106ab578063d547741f146106c9578063d5abeb01146106e5578063e757223014610703578063e985e9c51461073357610227565b8063a6f9dae1146105f5578063b88d4fde14610611578063bc31c1c11461062d578063be5898901461065d578063c87b56dd1461067b57610227565b806391d14854116100ff57806391d148541461055157806395d89b4114610581578063a14481941461059f578063a217fddf146105bb578063a22cb465146105d957610227565b80636352211e146104b55780636c0360eb146104e557806370a08231146105035780638da5cb5b1461053357610227565b80632a55205a116101b357806342842e0e1161018257806342842e0e14610415578063456467e8146104315780634f6ccce71461044d57806355f804b31461047d5780635de429851461049957610227565b80632a55205a1461037c5780632f2ff15d146103ad5780632f745c59146103c957806336568abe146103f957610227565b8063095ea7b3116101fa578063095ea7b3146102c657806318160ddd146102e257806323b579281461030057806323b872dd14610330578063248a9ca31461034c57610227565b806301ffc9a71461022c57806305a0ba7e1461025c57806306fdde0314610278578063081812fc14610296575b600080fd5b610246600480360381019061024191906137bd565b610763565b6040516102539190613e1a565b60405180910390f35b61027660048036038101906102719190613850565b6107e5565b005b610280610967565b60405161028d9190613e50565b60405180910390f35b6102b060048036038101906102ab9190613850565b6109f9565b6040516102bd9190613d53565b60405180910390f35b6102e060048036038101906102db919061371c565b610a7e565b005b6102ea610b96565b6040516102f79190614112565b60405180910390f35b61031a60048036038101906103159190613850565b610ba3565b6040516103279190614112565b60405180910390f35b61034a60048036038101906103459190613616565b610bc7565b005b61036660048036038101906103619190613758565b610c68565b6040516103739190613e35565b60405180910390f35b610396600480360381019061039191906138b5565b610c87565b6040516103a4929190613df1565b60405180910390f35b6103c760048036038101906103c29190613781565b610cd9565b005b6103e360048036038101906103de919061371c565b610d02565b6040516103f09190614112565b60405180910390f35b610413600480360381019061040e9190613781565b610da7565b005b61042f600480360381019061042a9190613616565b610e2a565b005b61044b60048036038101906104469190613616565b610edb565b005b61046760048036038101906104629190613850565b610f7b565b6040516104749190614112565b60405180910390f35b6104976004803603810190610492919061380f565b611012565b005b6104b360048036038101906104ae9190613879565b611042565b005b6104cf60048036038101906104ca9190613850565b6110a4565b6040516104dc9190613d53565b60405180910390f35b6104ed611156565b6040516104fa9190613e50565b60405180910390f35b61051d600480360381019061051891906135b1565b6111e4565b60405161052a9190614112565b60405180910390f35b61053b61129c565b6040516105489190613d53565b60405180910390f35b61056b60048036038101906105669190613781565b6112c2565b6040516105789190613e1a565b60405180910390f35b61058961132c565b6040516105969190613e50565b60405180910390f35b6105b960048036038101906105b4919061371c565b6113be565b005b6105c361151f565b6040516105d09190613e35565b60405180910390f35b6105f360048036038101906105ee91906136e0565b611526565b005b61060f600480360381019061060a91906135b1565b61153c565b005b61062b60048036038101906106269190613665565b6115b0565b005b61064760048036038101906106429190613850565b611653565b6040516106549190614112565b60405180910390f35b610665611677565b6040516106729190613d53565b60405180910390f35b61069560048036038101906106909190613850565b61169d565b6040516106a29190613e50565b60405180910390f35b6106b36116f7565b6040516106c09190613e35565b60405180910390f35b6106e360048036038101906106de9190613781565b61171b565b005b6106ed611744565b6040516106fa9190614112565b60405180910390f35b61071d60048036038101906107189190613850565b61174a565b60405161072a9190614112565b60405180910390f35b61074d600480360381019061074891906135da565b611866565b60405161075a9190613e1a565b60405180910390f35b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614156107d457600190506107e0565b6107dd826118f0565b90505b919050565b6082816014546107f591906141f7565b1115610836576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082d90613e92565b60405180910390fd5b60005b8181101561089957600061084d600b61196a565b9050610859600b6118da565b610885601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682611978565b50808061089190614459565b915050610839565b50601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a1448194601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b8152600401610919929190613df1565b600060405180830381600087803b15801561093357600080fd5b505af1158015610947573d6000803e3d6000fd5b50505050806014600082825461095d91906141f7565b9250508190555050565b606060018054610976906143f6565b80601f01602080910402602001604051908101604052809291908181526020018280546109a2906143f6565b80156109ef5780601f106109c4576101008083540402835291602001916109ef565b820191906000526020600020905b8154815290600101906020018083116109d257829003601f168201915b5050505050905090565b6000610a0482611996565b610a43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3a90614032565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a89826110a4565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610afa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af190614092565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b19611a02565b73ffffffffffffffffffffffffffffffffffffffff161480610b485750610b4781610b42611a02565b611866565b5b610b87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b7e90613fb2565b60405180910390fd5b610b918383611a0a565b505050565b6000600980549050905090565b600e8181548110610bb357600080fd5b906000526020600020016000915090505481565b610bd2838383611ac3565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166375f9dcf48484846040518463ffffffff1660e01b8152600401610c3193929190613d6e565b600060405180830381600087803b158015610c4b57600080fd5b505af1158015610c5f573d6000803e3d6000fd5b50505050505050565b6000806000838152602001908152602001600020600101549050919050565b600080600061271060125485610c9d919061427e565b610ca7919061424d565b9050601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168192509250509250929050565b610ce282610c68565b610cf381610cee611a02565b611b23565b610cfd8383611bc0565b505050565b6000610d0d836111e4565b8210610d4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4590613eb2565b60405180910390fd5b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610daf611a02565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610e1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e13906140f2565b60405180910390fd5b610e268282611ca0565b5050565b610e4583838360405180602001604052806000815250611d81565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166375f9dcf48484846040518463ffffffff1660e01b8152600401610ea493929190613d6e565b600060405180830381600087803b158015610ebe57600080fd5b505af1158015610ed2573d6000803e3d6000fd5b50505050505050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610f6b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6290613ef2565b60405180910390fd5b610f76838383611de3565b505050565b6000610f85610b96565b8210610fc6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fbd906140d2565b60405180910390fd5b60098281548110611000577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b6000801b61102781611022611a02565b611b23565b81600c908051906020019061103d9291906133c0565b505050565b6000801b61105781611052611a02565b611b23565b8260128190555081601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b6000806003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561114d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114490613ff2565b60405180910390fd5b80915050919050565b600c8054611163906143f6565b80601f016020809104026020016040519081016040528092919081815260200182805461118f906143f6565b80156111dc5780601f106111b1576101008083540402835291602001916111dc565b820191906000526020600020905b8154815290600101906020018083116111bf57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611255576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161124c90613fd2565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60606002805461133b906143f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611367906143f6565b80156113b45780601f10611389576101008083540402835291602001916113b4565b820191906000526020600020905b81548152906001019060200180831161139757829003601f168201915b5050505050905090565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66113f0816113eb611a02565b611b23565b600d54826113fe600b61196a565b61140891906141f7565b1115611449576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144090613e92565b60405180910390fd5b60005b8281101561148a576000611460600b61196a565b905061146c600b6118da565b6114768582611978565b50808061148290614459565b91505061144c565b50601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a144819484846040518363ffffffff1660e01b81526004016114e8929190613df1565b600060405180830381600087803b15801561150257600080fd5b505af1158015611516573d6000803e3d6000fd5b50505050505050565b6000801b81565b611538611531611a02565b838361204a565b5050565b6000801b6115518161154c611a02565b611b23565b81601560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061159f6000801b83611bc0565b6115ac6000801b33611ca0565b5050565b6115bc84848484611d81565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166375f9dcf48585856040518463ffffffff1660e01b815260040161161b93929190613d6e565b600060405180830381600087803b15801561163557600080fd5b505af1158015611649573d6000803e3d6000fd5b5050505050505050565b600f818154811061166357600080fd5b906000526020600020016000915090505481565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60606116a882611996565b6116e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116de90614072565b60405180910390fd5b6116f0826121b7565b9050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61172482610c68565b61173581611730611a02565b611b23565b61173f8383611ca0565b505050565b600d5481565b600080611755610b96565b905060008060018361176791906141f7565b90505b848361177691906141f7565b811161185b5760005b600e8054905081101561184757600e81815481106117c6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001548211156117dd57611834565b600f8181548110611817577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001548361182d91906141f7565b9250611847565b808061183f90614459565b91505061177f565b50808061185390614459565b91505061176a565b508092505050919050565b6000601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156118c757600190506118d4565b6118d1838361225e565b90505b92915050565b6001816000016000828254019250508190555050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806119635750611962826122f2565b5b9050919050565b600081600001549050919050565b6119928282604051806020016040528060008152506123d4565b5050565b60008073ffffffffffffffffffffffffffffffffffffffff166003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611a7d836110a4565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b611ad4611ace611a02565b8261242f565b611b13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b0a906140b2565b60405180910390fd5b611b1e838383611de3565b505050565b611b2d82826112c2565b611bbc57611b528173ffffffffffffffffffffffffffffffffffffffff16601461250d565b611b608360001c602061250d565b604051602001611b71929190613d19565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bb39190613e50565b60405180910390fd5b5050565b611bca82826112c2565b611c9c57600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611c41611a02565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b611caa82826112c2565b15611d7d57600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611d22611a02565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b611d92611d8c611a02565b8361242f565b611dd1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dc8906140b2565b60405180910390fd5b611ddd84848484612807565b50505050565b8273ffffffffffffffffffffffffffffffffffffffff16611e03826110a4565b73ffffffffffffffffffffffffffffffffffffffff1614611e59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5090613f12565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611ec9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ec090613f52565b60405180910390fd5b611ed4838383612863565b611edf600082611a0a565b6001600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f2f91906142d8565b925050819055506001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f8691906141f7565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612045838383612873565b505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156120b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120b090613f72565b60405180910390fd5b80600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516121aa9190613e1a565b60405180910390a3505050565b60606121c282611996565b612201576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121f890614052565b60405180910390fd5b600061220b612878565b9050600081511161222b5760405180602001604052806000815250612256565b806122358461290a565b604051602001612246929190613cf5565b6040516020818303038152906040525b915050919050565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806123bd57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806123cd57506123cc82612ab7565b5b9050919050565b6123de8383612b31565b6123eb6000848484612d0b565b61242a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161242190613ed2565b60405180910390fd5b505050565b600061243a82611996565b612479576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161247090613f92565b60405180910390fd5b6000612484836110a4565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806124f357508373ffffffffffffffffffffffffffffffffffffffff166124db846109f9565b73ffffffffffffffffffffffffffffffffffffffff16145b8061250457506125038185611866565b5b91505092915050565b606060006002836002612520919061427e565b61252a91906141f7565b67ffffffffffffffff811115612569577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561259b5781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106125f9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612683577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026126c3919061427e565b6126cd91906141f7565b90505b60018111156127b9577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110612735577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110612772577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806127b2906143cc565b90506126d0565b50600084146127fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127f490613e72565b60405180910390fd5b8091505092915050565b612812848484611de3565b61281e84848484612d0b565b61285d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161285490613ed2565b60405180910390fd5b50505050565b61286e838383612ea2565b505050565b505050565b6060600c8054612887906143f6565b80601f01602080910402602001604051908101604052809291908181526020018280546128b3906143f6565b80156129005780601f106128d557610100808354040283529160200191612900565b820191906000526020600020905b8154815290600101906020018083116128e357829003601f168201915b5050505050905090565b60606000821415612952576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612ab2565b600082905060005b6000821461298457808061296d90614459565b915050600a8261297d919061424d565b915061295a565b60008167ffffffffffffffff8111156129c6577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156129f85781602001600182028036833780820191505090505b5090505b60008514612aab57600182612a1191906142d8565b9150600a85612a2091906144a2565b6030612a2c91906141f7565b60f81b818381518110612a68577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612aa4919061424d565b94506129fc565b8093505050505b919050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612b2a5750612b2982612fb6565b5b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612ba1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b9890614012565b60405180910390fd5b612baa81611996565b15612bea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612be190613f32565b60405180910390fd5b612bf660008383612863565b6001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612c4691906141f7565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612d0760008383612873565b5050565b6000612d2c8473ffffffffffffffffffffffffffffffffffffffff16613020565b15612e95578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612d55611a02565b8786866040518563ffffffff1660e01b8152600401612d779493929190613da5565b602060405180830381600087803b158015612d9157600080fd5b505af1925050508015612dc257506040513d601f19601f82011682018060405250810190612dbf91906137e6565b60015b612e45573d8060008114612df2576040519150601f19603f3d011682016040523d82523d6000602084013e612df7565b606091505b50600081511415612e3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e3490613ed2565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612e9a565b600190505b949350505050565b612ead838383613043565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612ef057612eeb81613048565b612f2f565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612f2e57612f2d8382613091565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612f7257612f6d816131fe565b612fb1565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612fb057612faf8282613341565b5b5b505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b505050565b600980549050600a600083815260200190815260200160002081905550600981908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161309e846111e4565b6130a891906142d8565b905060006008600084815260200190815260200160002054905081811461318d576000600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816008600083815260200190815260200160002081905550505b6008600084815260200190815260200160002060009055600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b6000600160098054905061321291906142d8565b90506000600a6000848152602001908152602001600020549050600060098381548110613268577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080600983815481106132b0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600a600083815260200190815260200160002081905550600a6000858152602001908152602001600020600090556009805480613325577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061334c836111e4565b905081600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806008600084815260200190815260200160002081905550505050565b8280546133cc906143f6565b90600052602060002090601f0160209004810192826133ee5760008555613435565b82601f1061340757805160ff1916838001178555613435565b82800160010185558215613435579182015b82811115613434578251825591602001919060010190613419565b5b5090506134429190613446565b5090565b5b8082111561345f576000816000905550600101613447565b5090565b600061347661347184614152565b61412d565b90508281526020810184848401111561348e57600080fd5b61349984828561438a565b509392505050565b60006134b46134af84614183565b61412d565b9050828152602081018484840111156134cc57600080fd5b6134d784828561438a565b509392505050565b6000813590506134ee81614b63565b92915050565b60008135905061350381614b7a565b92915050565b60008135905061351881614b91565b92915050565b60008135905061352d81614ba8565b92915050565b60008151905061354281614ba8565b92915050565b600082601f83011261355957600080fd5b8135613569848260208601613463565b91505092915050565b600082601f83011261358357600080fd5b81356135938482602086016134a1565b91505092915050565b6000813590506135ab81614bbf565b92915050565b6000602082840312156135c357600080fd5b60006135d1848285016134df565b91505092915050565b600080604083850312156135ed57600080fd5b60006135fb858286016134df565b925050602061360c858286016134df565b9150509250929050565b60008060006060848603121561362b57600080fd5b6000613639868287016134df565b935050602061364a868287016134df565b925050604061365b8682870161359c565b9150509250925092565b6000806000806080858703121561367b57600080fd5b6000613689878288016134df565b945050602061369a878288016134df565b93505060406136ab8782880161359c565b925050606085013567ffffffffffffffff8111156136c857600080fd5b6136d487828801613548565b91505092959194509250565b600080604083850312156136f357600080fd5b6000613701858286016134df565b9250506020613712858286016134f4565b9150509250929050565b6000806040838503121561372f57600080fd5b600061373d858286016134df565b925050602061374e8582860161359c565b9150509250929050565b60006020828403121561376a57600080fd5b600061377884828501613509565b91505092915050565b6000806040838503121561379457600080fd5b60006137a285828601613509565b92505060206137b3858286016134df565b9150509250929050565b6000602082840312156137cf57600080fd5b60006137dd8482850161351e565b91505092915050565b6000602082840312156137f857600080fd5b600061380684828501613533565b91505092915050565b60006020828403121561382157600080fd5b600082013567ffffffffffffffff81111561383b57600080fd5b61384784828501613572565b91505092915050565b60006020828403121561386257600080fd5b60006138708482850161359c565b91505092915050565b6000806040838503121561388c57600080fd5b600061389a8582860161359c565b92505060206138ab858286016134df565b9150509250929050565b600080604083850312156138c857600080fd5b60006138d68582860161359c565b92505060206138e78582860161359c565b9150509250929050565b6138fa8161430c565b82525050565b6139098161431e565b82525050565b6139188161432a565b82525050565b6000613929826141b4565b61393381856141ca565b9350613943818560208601614399565b61394c8161458f565b840191505092915050565b6000613962826141bf565b61396c81856141db565b935061397c818560208601614399565b6139858161458f565b840191505092915050565b600061399b826141bf565b6139a581856141ec565b93506139b5818560208601614399565b80840191505092915050565b60006139ce6020836141db565b91506139d9826145a0565b602082019050919050565b60006139f16019836141db565b91506139fc826145c9565b602082019050919050565b6000613a14602b836141db565b9150613a1f826145f2565b604082019050919050565b6000613a376032836141db565b9150613a4282614641565b604082019050919050565b6000613a5a6018836141db565b9150613a6582614690565b602082019050919050565b6000613a7d6025836141db565b9150613a88826146b9565b604082019050919050565b6000613aa0601c836141db565b9150613aab82614708565b602082019050919050565b6000613ac36024836141db565b9150613ace82614731565b604082019050919050565b6000613ae66019836141db565b9150613af182614780565b602082019050919050565b6000613b09602c836141db565b9150613b14826147a9565b604082019050919050565b6000613b2c6038836141db565b9150613b37826147f8565b604082019050919050565b6000613b4f602a836141db565b9150613b5a82614847565b604082019050919050565b6000613b726029836141db565b9150613b7d82614896565b604082019050919050565b6000613b956020836141db565b9150613ba0826148e5565b602082019050919050565b6000613bb8602c836141db565b9150613bc38261490e565b604082019050919050565b6000613bdb602f836141db565b9150613be68261495d565b604082019050919050565b6000613bfe6019836141db565b9150613c09826149ac565b602082019050919050565b6000613c216021836141db565b9150613c2c826149d5565b604082019050919050565b6000613c446031836141db565b9150613c4f82614a24565b604082019050919050565b6000613c67602c836141db565b9150613c7282614a73565b604082019050919050565b6000613c8a6017836141ec565b9150613c9582614ac2565b601782019050919050565b6000613cad6011836141ec565b9150613cb882614aeb565b601182019050919050565b6000613cd0602f836141db565b9150613cdb82614b14565b604082019050919050565b613cef81614380565b82525050565b6000613d018285613990565b9150613d0d8284613990565b91508190509392505050565b6000613d2482613c7d565b9150613d308285613990565b9150613d3b82613ca0565b9150613d478284613990565b91508190509392505050565b6000602082019050613d6860008301846138f1565b92915050565b6000606082019050613d8360008301866138f1565b613d9060208301856138f1565b613d9d6040830184613ce6565b949350505050565b6000608082019050613dba60008301876138f1565b613dc760208301866138f1565b613dd46040830185613ce6565b8181036060830152613de6818461391e565b905095945050505050565b6000604082019050613e0660008301856138f1565b613e136020830184613ce6565b9392505050565b6000602082019050613e2f6000830184613900565b92915050565b6000602082019050613e4a600083018461390f565b92915050565b60006020820190508181036000830152613e6a8184613957565b905092915050565b60006020820190508181036000830152613e8b816139c1565b9050919050565b60006020820190508181036000830152613eab816139e4565b9050919050565b60006020820190508181036000830152613ecb81613a07565b9050919050565b60006020820190508181036000830152613eeb81613a2a565b9050919050565b60006020820190508181036000830152613f0b81613a4d565b9050919050565b60006020820190508181036000830152613f2b81613a70565b9050919050565b60006020820190508181036000830152613f4b81613a93565b9050919050565b60006020820190508181036000830152613f6b81613ab6565b9050919050565b60006020820190508181036000830152613f8b81613ad9565b9050919050565b60006020820190508181036000830152613fab81613afc565b9050919050565b60006020820190508181036000830152613fcb81613b1f565b9050919050565b60006020820190508181036000830152613feb81613b42565b9050919050565b6000602082019050818103600083015261400b81613b65565b9050919050565b6000602082019050818103600083015261402b81613b88565b9050919050565b6000602082019050818103600083015261404b81613bab565b9050919050565b6000602082019050818103600083015261406b81613bce565b9050919050565b6000602082019050818103600083015261408b81613bf1565b9050919050565b600060208201905081810360008301526140ab81613c14565b9050919050565b600060208201905081810360008301526140cb81613c37565b9050919050565b600060208201905081810360008301526140eb81613c5a565b9050919050565b6000602082019050818103600083015261410b81613cc3565b9050919050565b60006020820190506141276000830184613ce6565b92915050565b6000614137614148565b90506141438282614428565b919050565b6000604051905090565b600067ffffffffffffffff82111561416d5761416c614560565b5b6141768261458f565b9050602081019050919050565b600067ffffffffffffffff82111561419e5761419d614560565b5b6141a78261458f565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061420282614380565b915061420d83614380565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614242576142416144d3565b5b828201905092915050565b600061425882614380565b915061426383614380565b92508261427357614272614502565b5b828204905092915050565b600061428982614380565b915061429483614380565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156142cd576142cc6144d3565b5b828202905092915050565b60006142e382614380565b91506142ee83614380565b925082821015614301576143006144d3565b5b828203905092915050565b600061431782614360565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b838110156143b757808201518184015260208101905061439c565b838111156143c6576000848401525b50505050565b60006143d782614380565b915060008214156143eb576143ea6144d3565b5b600182039050919050565b6000600282049050600182168061440e57607f821691505b6020821081141561442257614421614531565b5b50919050565b6144318261458f565b810181811067ffffffffffffffff821117156144505761444f614560565b5b80604052505050565b600061446482614380565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614497576144966144d3565b5b600182019050919050565b60006144ad82614380565b91506144b883614380565b9250826144c8576144c7614502565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f52656163686564206c696d697420666f72206d696e74696e6700000000000000600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f6e6c7920666f722066656576696520636f6e74726163740000000000000000600082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a206e6f6e6578697374656e7420746f6b656e00000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b614b6c8161430c565b8114614b7757600080fd5b50565b614b838161431e565b8114614b8e57600080fd5b50565b614b9a8161432a565b8114614ba557600080fd5b50565b614bb181614334565b8114614bbc57600080fd5b50565b614bc881614380565b8114614bd357600080fd5b5056fea2646970667358221220bacfa7041516a8e83fe4b755f1b155d6ce87677642275166a1c92258861923c664736f6c63430008020033000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000e97548ead4b96c03a37b8fdadee5b51ecd08025e000000000000000000000000a6e60d40320276410537972036b42363e7fe6197000000000000000000000000e97548ead4b96c03a37b8fdadee5b51ecd08025e00000000000000000000000000000000000000000000000000000000000009c4000000000000000000000000e97548ead4b96c03a37b8fdadee5b51ecd08025e00000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000f6056e1fd4070eee2f8deadc2ea96d19733a8e360000000000000000000000000000000000000000000000000000000000000240000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000000104645455620506c6174696e756d204d43000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006464545564d430000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003068747470733a2f2f6d696e742e666565762e6d632f6170692f697066732f6d657461646174612f706c6174696e756d2f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000005dc00000000000000000000000000000000000000000000000000000000000007d000000000000000000000000000000000000000000000000000000000000009c400000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000f43fc2c04ee000000000000000000000000000000000000000000000000000010a741a462780000000000000000000000000000000000000000000000000000120a871cc0020000000000000000000000000000000000000000000000000000136dcc951d8c0000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102275760003560e01c80636352211e11610130578063a6f9dae1116100b8578063d53913931161007c578063d5391393146106ab578063d547741f146106c9578063d5abeb01146106e5578063e757223014610703578063e985e9c51461073357610227565b8063a6f9dae1146105f5578063b88d4fde14610611578063bc31c1c11461062d578063be5898901461065d578063c87b56dd1461067b57610227565b806391d14854116100ff57806391d148541461055157806395d89b4114610581578063a14481941461059f578063a217fddf146105bb578063a22cb465146105d957610227565b80636352211e146104b55780636c0360eb146104e557806370a08231146105035780638da5cb5b1461053357610227565b80632a55205a116101b357806342842e0e1161018257806342842e0e14610415578063456467e8146104315780634f6ccce71461044d57806355f804b31461047d5780635de429851461049957610227565b80632a55205a1461037c5780632f2ff15d146103ad5780632f745c59146103c957806336568abe146103f957610227565b8063095ea7b3116101fa578063095ea7b3146102c657806318160ddd146102e257806323b579281461030057806323b872dd14610330578063248a9ca31461034c57610227565b806301ffc9a71461022c57806305a0ba7e1461025c57806306fdde0314610278578063081812fc14610296575b600080fd5b610246600480360381019061024191906137bd565b610763565b6040516102539190613e1a565b60405180910390f35b61027660048036038101906102719190613850565b6107e5565b005b610280610967565b60405161028d9190613e50565b60405180910390f35b6102b060048036038101906102ab9190613850565b6109f9565b6040516102bd9190613d53565b60405180910390f35b6102e060048036038101906102db919061371c565b610a7e565b005b6102ea610b96565b6040516102f79190614112565b60405180910390f35b61031a60048036038101906103159190613850565b610ba3565b6040516103279190614112565b60405180910390f35b61034a60048036038101906103459190613616565b610bc7565b005b61036660048036038101906103619190613758565b610c68565b6040516103739190613e35565b60405180910390f35b610396600480360381019061039191906138b5565b610c87565b6040516103a4929190613df1565b60405180910390f35b6103c760048036038101906103c29190613781565b610cd9565b005b6103e360048036038101906103de919061371c565b610d02565b6040516103f09190614112565b60405180910390f35b610413600480360381019061040e9190613781565b610da7565b005b61042f600480360381019061042a9190613616565b610e2a565b005b61044b60048036038101906104469190613616565b610edb565b005b61046760048036038101906104629190613850565b610f7b565b6040516104749190614112565b60405180910390f35b6104976004803603810190610492919061380f565b611012565b005b6104b360048036038101906104ae9190613879565b611042565b005b6104cf60048036038101906104ca9190613850565b6110a4565b6040516104dc9190613d53565b60405180910390f35b6104ed611156565b6040516104fa9190613e50565b60405180910390f35b61051d600480360381019061051891906135b1565b6111e4565b60405161052a9190614112565b60405180910390f35b61053b61129c565b6040516105489190613d53565b60405180910390f35b61056b60048036038101906105669190613781565b6112c2565b6040516105789190613e1a565b60405180910390f35b61058961132c565b6040516105969190613e50565b60405180910390f35b6105b960048036038101906105b4919061371c565b6113be565b005b6105c361151f565b6040516105d09190613e35565b60405180910390f35b6105f360048036038101906105ee91906136e0565b611526565b005b61060f600480360381019061060a91906135b1565b61153c565b005b61062b60048036038101906106269190613665565b6115b0565b005b61064760048036038101906106429190613850565b611653565b6040516106549190614112565b60405180910390f35b610665611677565b6040516106729190613d53565b60405180910390f35b61069560048036038101906106909190613850565b61169d565b6040516106a29190613e50565b60405180910390f35b6106b36116f7565b6040516106c09190613e35565b60405180910390f35b6106e360048036038101906106de9190613781565b61171b565b005b6106ed611744565b6040516106fa9190614112565b60405180910390f35b61071d60048036038101906107189190613850565b61174a565b60405161072a9190614112565b60405180910390f35b61074d600480360381019061074891906135da565b611866565b60405161075a9190613e1a565b60405180910390f35b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614156107d457600190506107e0565b6107dd826118f0565b90505b919050565b6082816014546107f591906141f7565b1115610836576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082d90613e92565b60405180910390fd5b60005b8181101561089957600061084d600b61196a565b9050610859600b6118da565b610885601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682611978565b50808061089190614459565b915050610839565b50601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a1448194601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b8152600401610919929190613df1565b600060405180830381600087803b15801561093357600080fd5b505af1158015610947573d6000803e3d6000fd5b50505050806014600082825461095d91906141f7565b9250508190555050565b606060018054610976906143f6565b80601f01602080910402602001604051908101604052809291908181526020018280546109a2906143f6565b80156109ef5780601f106109c4576101008083540402835291602001916109ef565b820191906000526020600020905b8154815290600101906020018083116109d257829003601f168201915b5050505050905090565b6000610a0482611996565b610a43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3a90614032565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a89826110a4565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610afa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af190614092565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b19611a02565b73ffffffffffffffffffffffffffffffffffffffff161480610b485750610b4781610b42611a02565b611866565b5b610b87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b7e90613fb2565b60405180910390fd5b610b918383611a0a565b505050565b6000600980549050905090565b600e8181548110610bb357600080fd5b906000526020600020016000915090505481565b610bd2838383611ac3565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166375f9dcf48484846040518463ffffffff1660e01b8152600401610c3193929190613d6e565b600060405180830381600087803b158015610c4b57600080fd5b505af1158015610c5f573d6000803e3d6000fd5b50505050505050565b6000806000838152602001908152602001600020600101549050919050565b600080600061271060125485610c9d919061427e565b610ca7919061424d565b9050601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168192509250509250929050565b610ce282610c68565b610cf381610cee611a02565b611b23565b610cfd8383611bc0565b505050565b6000610d0d836111e4565b8210610d4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4590613eb2565b60405180910390fd5b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610daf611a02565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610e1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e13906140f2565b60405180910390fd5b610e268282611ca0565b5050565b610e4583838360405180602001604052806000815250611d81565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166375f9dcf48484846040518463ffffffff1660e01b8152600401610ea493929190613d6e565b600060405180830381600087803b158015610ebe57600080fd5b505af1158015610ed2573d6000803e3d6000fd5b50505050505050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610f6b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6290613ef2565b60405180910390fd5b610f76838383611de3565b505050565b6000610f85610b96565b8210610fc6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fbd906140d2565b60405180910390fd5b60098281548110611000577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b6000801b61102781611022611a02565b611b23565b81600c908051906020019061103d9291906133c0565b505050565b6000801b61105781611052611a02565b611b23565b8260128190555081601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b6000806003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561114d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114490613ff2565b60405180910390fd5b80915050919050565b600c8054611163906143f6565b80601f016020809104026020016040519081016040528092919081815260200182805461118f906143f6565b80156111dc5780601f106111b1576101008083540402835291602001916111dc565b820191906000526020600020905b8154815290600101906020018083116111bf57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611255576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161124c90613fd2565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60606002805461133b906143f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611367906143f6565b80156113b45780601f10611389576101008083540402835291602001916113b4565b820191906000526020600020905b81548152906001019060200180831161139757829003601f168201915b5050505050905090565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66113f0816113eb611a02565b611b23565b600d54826113fe600b61196a565b61140891906141f7565b1115611449576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144090613e92565b60405180910390fd5b60005b8281101561148a576000611460600b61196a565b905061146c600b6118da565b6114768582611978565b50808061148290614459565b91505061144c565b50601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a144819484846040518363ffffffff1660e01b81526004016114e8929190613df1565b600060405180830381600087803b15801561150257600080fd5b505af1158015611516573d6000803e3d6000fd5b50505050505050565b6000801b81565b611538611531611a02565b838361204a565b5050565b6000801b6115518161154c611a02565b611b23565b81601560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061159f6000801b83611bc0565b6115ac6000801b33611ca0565b5050565b6115bc84848484611d81565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166375f9dcf48585856040518463ffffffff1660e01b815260040161161b93929190613d6e565b600060405180830381600087803b15801561163557600080fd5b505af1158015611649573d6000803e3d6000fd5b5050505050505050565b600f818154811061166357600080fd5b906000526020600020016000915090505481565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60606116a882611996565b6116e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116de90614072565b60405180910390fd5b6116f0826121b7565b9050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61172482610c68565b61173581611730611a02565b611b23565b61173f8383611ca0565b505050565b600d5481565b600080611755610b96565b905060008060018361176791906141f7565b90505b848361177691906141f7565b811161185b5760005b600e8054905081101561184757600e81815481106117c6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001548211156117dd57611834565b600f8181548110611817577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001548361182d91906141f7565b9250611847565b808061183f90614459565b91505061177f565b50808061185390614459565b91505061176a565b508092505050919050565b6000601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156118c757600190506118d4565b6118d1838361225e565b90505b92915050565b6001816000016000828254019250508190555050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806119635750611962826122f2565b5b9050919050565b600081600001549050919050565b6119928282604051806020016040528060008152506123d4565b5050565b60008073ffffffffffffffffffffffffffffffffffffffff166003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611a7d836110a4565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b611ad4611ace611a02565b8261242f565b611b13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b0a906140b2565b60405180910390fd5b611b1e838383611de3565b505050565b611b2d82826112c2565b611bbc57611b528173ffffffffffffffffffffffffffffffffffffffff16601461250d565b611b608360001c602061250d565b604051602001611b71929190613d19565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bb39190613e50565b60405180910390fd5b5050565b611bca82826112c2565b611c9c57600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611c41611a02565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b611caa82826112c2565b15611d7d57600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611d22611a02565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b611d92611d8c611a02565b8361242f565b611dd1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dc8906140b2565b60405180910390fd5b611ddd84848484612807565b50505050565b8273ffffffffffffffffffffffffffffffffffffffff16611e03826110a4565b73ffffffffffffffffffffffffffffffffffffffff1614611e59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5090613f12565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611ec9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ec090613f52565b60405180910390fd5b611ed4838383612863565b611edf600082611a0a565b6001600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f2f91906142d8565b925050819055506001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f8691906141f7565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612045838383612873565b505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156120b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120b090613f72565b60405180910390fd5b80600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516121aa9190613e1a565b60405180910390a3505050565b60606121c282611996565b612201576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121f890614052565b60405180910390fd5b600061220b612878565b9050600081511161222b5760405180602001604052806000815250612256565b806122358461290a565b604051602001612246929190613cf5565b6040516020818303038152906040525b915050919050565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806123bd57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806123cd57506123cc82612ab7565b5b9050919050565b6123de8383612b31565b6123eb6000848484612d0b565b61242a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161242190613ed2565b60405180910390fd5b505050565b600061243a82611996565b612479576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161247090613f92565b60405180910390fd5b6000612484836110a4565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806124f357508373ffffffffffffffffffffffffffffffffffffffff166124db846109f9565b73ffffffffffffffffffffffffffffffffffffffff16145b8061250457506125038185611866565b5b91505092915050565b606060006002836002612520919061427e565b61252a91906141f7565b67ffffffffffffffff811115612569577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561259b5781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106125f9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612683577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026126c3919061427e565b6126cd91906141f7565b90505b60018111156127b9577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110612735577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110612772577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806127b2906143cc565b90506126d0565b50600084146127fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127f490613e72565b60405180910390fd5b8091505092915050565b612812848484611de3565b61281e84848484612d0b565b61285d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161285490613ed2565b60405180910390fd5b50505050565b61286e838383612ea2565b505050565b505050565b6060600c8054612887906143f6565b80601f01602080910402602001604051908101604052809291908181526020018280546128b3906143f6565b80156129005780601f106128d557610100808354040283529160200191612900565b820191906000526020600020905b8154815290600101906020018083116128e357829003601f168201915b5050505050905090565b60606000821415612952576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612ab2565b600082905060005b6000821461298457808061296d90614459565b915050600a8261297d919061424d565b915061295a565b60008167ffffffffffffffff8111156129c6577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156129f85781602001600182028036833780820191505090505b5090505b60008514612aab57600182612a1191906142d8565b9150600a85612a2091906144a2565b6030612a2c91906141f7565b60f81b818381518110612a68577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612aa4919061424d565b94506129fc565b8093505050505b919050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612b2a5750612b2982612fb6565b5b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612ba1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b9890614012565b60405180910390fd5b612baa81611996565b15612bea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612be190613f32565b60405180910390fd5b612bf660008383612863565b6001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612c4691906141f7565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612d0760008383612873565b5050565b6000612d2c8473ffffffffffffffffffffffffffffffffffffffff16613020565b15612e95578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612d55611a02565b8786866040518563ffffffff1660e01b8152600401612d779493929190613da5565b602060405180830381600087803b158015612d9157600080fd5b505af1925050508015612dc257506040513d601f19601f82011682018060405250810190612dbf91906137e6565b60015b612e45573d8060008114612df2576040519150601f19603f3d011682016040523d82523d6000602084013e612df7565b606091505b50600081511415612e3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e3490613ed2565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612e9a565b600190505b949350505050565b612ead838383613043565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612ef057612eeb81613048565b612f2f565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612f2e57612f2d8382613091565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612f7257612f6d816131fe565b612fb1565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612fb057612faf8282613341565b5b5b505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b505050565b600980549050600a600083815260200190815260200160002081905550600981908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161309e846111e4565b6130a891906142d8565b905060006008600084815260200190815260200160002054905081811461318d576000600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816008600083815260200190815260200160002081905550505b6008600084815260200190815260200160002060009055600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b6000600160098054905061321291906142d8565b90506000600a6000848152602001908152602001600020549050600060098381548110613268577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080600983815481106132b0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600a600083815260200190815260200160002081905550600a6000858152602001908152602001600020600090556009805480613325577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061334c836111e4565b905081600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806008600084815260200190815260200160002081905550505050565b8280546133cc906143f6565b90600052602060002090601f0160209004810192826133ee5760008555613435565b82601f1061340757805160ff1916838001178555613435565b82800160010185558215613435579182015b82811115613434578251825591602001919060010190613419565b5b5090506134429190613446565b5090565b5b8082111561345f576000816000905550600101613447565b5090565b600061347661347184614152565b61412d565b90508281526020810184848401111561348e57600080fd5b61349984828561438a565b509392505050565b60006134b46134af84614183565b61412d565b9050828152602081018484840111156134cc57600080fd5b6134d784828561438a565b509392505050565b6000813590506134ee81614b63565b92915050565b60008135905061350381614b7a565b92915050565b60008135905061351881614b91565b92915050565b60008135905061352d81614ba8565b92915050565b60008151905061354281614ba8565b92915050565b600082601f83011261355957600080fd5b8135613569848260208601613463565b91505092915050565b600082601f83011261358357600080fd5b81356135938482602086016134a1565b91505092915050565b6000813590506135ab81614bbf565b92915050565b6000602082840312156135c357600080fd5b60006135d1848285016134df565b91505092915050565b600080604083850312156135ed57600080fd5b60006135fb858286016134df565b925050602061360c858286016134df565b9150509250929050565b60008060006060848603121561362b57600080fd5b6000613639868287016134df565b935050602061364a868287016134df565b925050604061365b8682870161359c565b9150509250925092565b6000806000806080858703121561367b57600080fd5b6000613689878288016134df565b945050602061369a878288016134df565b93505060406136ab8782880161359c565b925050606085013567ffffffffffffffff8111156136c857600080fd5b6136d487828801613548565b91505092959194509250565b600080604083850312156136f357600080fd5b6000613701858286016134df565b9250506020613712858286016134f4565b9150509250929050565b6000806040838503121561372f57600080fd5b600061373d858286016134df565b925050602061374e8582860161359c565b9150509250929050565b60006020828403121561376a57600080fd5b600061377884828501613509565b91505092915050565b6000806040838503121561379457600080fd5b60006137a285828601613509565b92505060206137b3858286016134df565b9150509250929050565b6000602082840312156137cf57600080fd5b60006137dd8482850161351e565b91505092915050565b6000602082840312156137f857600080fd5b600061380684828501613533565b91505092915050565b60006020828403121561382157600080fd5b600082013567ffffffffffffffff81111561383b57600080fd5b61384784828501613572565b91505092915050565b60006020828403121561386257600080fd5b60006138708482850161359c565b91505092915050565b6000806040838503121561388c57600080fd5b600061389a8582860161359c565b92505060206138ab858286016134df565b9150509250929050565b600080604083850312156138c857600080fd5b60006138d68582860161359c565b92505060206138e78582860161359c565b9150509250929050565b6138fa8161430c565b82525050565b6139098161431e565b82525050565b6139188161432a565b82525050565b6000613929826141b4565b61393381856141ca565b9350613943818560208601614399565b61394c8161458f565b840191505092915050565b6000613962826141bf565b61396c81856141db565b935061397c818560208601614399565b6139858161458f565b840191505092915050565b600061399b826141bf565b6139a581856141ec565b93506139b5818560208601614399565b80840191505092915050565b60006139ce6020836141db565b91506139d9826145a0565b602082019050919050565b60006139f16019836141db565b91506139fc826145c9565b602082019050919050565b6000613a14602b836141db565b9150613a1f826145f2565b604082019050919050565b6000613a376032836141db565b9150613a4282614641565b604082019050919050565b6000613a5a6018836141db565b9150613a6582614690565b602082019050919050565b6000613a7d6025836141db565b9150613a88826146b9565b604082019050919050565b6000613aa0601c836141db565b9150613aab82614708565b602082019050919050565b6000613ac36024836141db565b9150613ace82614731565b604082019050919050565b6000613ae66019836141db565b9150613af182614780565b602082019050919050565b6000613b09602c836141db565b9150613b14826147a9565b604082019050919050565b6000613b2c6038836141db565b9150613b37826147f8565b604082019050919050565b6000613b4f602a836141db565b9150613b5a82614847565b604082019050919050565b6000613b726029836141db565b9150613b7d82614896565b604082019050919050565b6000613b956020836141db565b9150613ba0826148e5565b602082019050919050565b6000613bb8602c836141db565b9150613bc38261490e565b604082019050919050565b6000613bdb602f836141db565b9150613be68261495d565b604082019050919050565b6000613bfe6019836141db565b9150613c09826149ac565b602082019050919050565b6000613c216021836141db565b9150613c2c826149d5565b604082019050919050565b6000613c446031836141db565b9150613c4f82614a24565b604082019050919050565b6000613c67602c836141db565b9150613c7282614a73565b604082019050919050565b6000613c8a6017836141ec565b9150613c9582614ac2565b601782019050919050565b6000613cad6011836141ec565b9150613cb882614aeb565b601182019050919050565b6000613cd0602f836141db565b9150613cdb82614b14565b604082019050919050565b613cef81614380565b82525050565b6000613d018285613990565b9150613d0d8284613990565b91508190509392505050565b6000613d2482613c7d565b9150613d308285613990565b9150613d3b82613ca0565b9150613d478284613990565b91508190509392505050565b6000602082019050613d6860008301846138f1565b92915050565b6000606082019050613d8360008301866138f1565b613d9060208301856138f1565b613d9d6040830184613ce6565b949350505050565b6000608082019050613dba60008301876138f1565b613dc760208301866138f1565b613dd46040830185613ce6565b8181036060830152613de6818461391e565b905095945050505050565b6000604082019050613e0660008301856138f1565b613e136020830184613ce6565b9392505050565b6000602082019050613e2f6000830184613900565b92915050565b6000602082019050613e4a600083018461390f565b92915050565b60006020820190508181036000830152613e6a8184613957565b905092915050565b60006020820190508181036000830152613e8b816139c1565b9050919050565b60006020820190508181036000830152613eab816139e4565b9050919050565b60006020820190508181036000830152613ecb81613a07565b9050919050565b60006020820190508181036000830152613eeb81613a2a565b9050919050565b60006020820190508181036000830152613f0b81613a4d565b9050919050565b60006020820190508181036000830152613f2b81613a70565b9050919050565b60006020820190508181036000830152613f4b81613a93565b9050919050565b60006020820190508181036000830152613f6b81613ab6565b9050919050565b60006020820190508181036000830152613f8b81613ad9565b9050919050565b60006020820190508181036000830152613fab81613afc565b9050919050565b60006020820190508181036000830152613fcb81613b1f565b9050919050565b60006020820190508181036000830152613feb81613b42565b9050919050565b6000602082019050818103600083015261400b81613b65565b9050919050565b6000602082019050818103600083015261402b81613b88565b9050919050565b6000602082019050818103600083015261404b81613bab565b9050919050565b6000602082019050818103600083015261406b81613bce565b9050919050565b6000602082019050818103600083015261408b81613bf1565b9050919050565b600060208201905081810360008301526140ab81613c14565b9050919050565b600060208201905081810360008301526140cb81613c37565b9050919050565b600060208201905081810360008301526140eb81613c5a565b9050919050565b6000602082019050818103600083015261410b81613cc3565b9050919050565b60006020820190506141276000830184613ce6565b92915050565b6000614137614148565b90506141438282614428565b919050565b6000604051905090565b600067ffffffffffffffff82111561416d5761416c614560565b5b6141768261458f565b9050602081019050919050565b600067ffffffffffffffff82111561419e5761419d614560565b5b6141a78261458f565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061420282614380565b915061420d83614380565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614242576142416144d3565b5b828201905092915050565b600061425882614380565b915061426383614380565b92508261427357614272614502565b5b828204905092915050565b600061428982614380565b915061429483614380565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156142cd576142cc6144d3565b5b828202905092915050565b60006142e382614380565b91506142ee83614380565b925082821015614301576143006144d3565b5b828203905092915050565b600061431782614360565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b838110156143b757808201518184015260208101905061439c565b838111156143c6576000848401525b50505050565b60006143d782614380565b915060008214156143eb576143ea6144d3565b5b600182039050919050565b6000600282049050600182168061440e57607f821691505b6020821081141561442257614421614531565b5b50919050565b6144318261458f565b810181811067ffffffffffffffff821117156144505761444f614560565b5b80604052505050565b600061446482614380565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614497576144966144d3565b5b600182019050919050565b60006144ad82614380565b91506144b883614380565b9250826144c8576144c7614502565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f52656163686564206c696d697420666f72206d696e74696e6700000000000000600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f6e6c7920666f722066656576696520636f6e74726163740000000000000000600082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a206e6f6e6578697374656e7420746f6b656e00000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b614b6c8161430c565b8114614b7757600080fd5b50565b614b838161431e565b8114614b8e57600080fd5b50565b614b9a8161432a565b8114614ba557600080fd5b50565b614bb181614334565b8114614bbc57600080fd5b50565b614bc881614380565b8114614bd357600080fd5b5056fea2646970667358221220bacfa7041516a8e83fe4b755f1b155d6ce87677642275166a1c92258861923c664736f6c63430008020033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000e97548ead4b96c03a37b8fdadee5b51ecd08025e000000000000000000000000a6e60d40320276410537972036b42363e7fe6197000000000000000000000000e97548ead4b96c03a37b8fdadee5b51ecd08025e00000000000000000000000000000000000000000000000000000000000009c4000000000000000000000000e97548ead4b96c03a37b8fdadee5b51ecd08025e00000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000f6056e1fd4070eee2f8deadc2ea96d19733a8e360000000000000000000000000000000000000000000000000000000000000240000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000000104645455620506c6174696e756d204d43000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006464545564d430000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003068747470733a2f2f6d696e742e666565762e6d632f6170692f697066732f6d657461646174612f706c6174696e756d2f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000005dc00000000000000000000000000000000000000000000000000000000000007d000000000000000000000000000000000000000000000000000000000000009c400000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000f43fc2c04ee000000000000000000000000000000000000000000000000000010a741a462780000000000000000000000000000000000000000000000000000120a871cc0020000000000000000000000000000000000000000000000000000136dcc951d8c0000
-----Decoded View---------------
Arg [0] : _name (string): FEEV Platinum MC
Arg [1] : _symbol (string): FEEVMC
Arg [2] : _owner (address): 0xe97548Ead4b96c03a37B8FdaDEE5b51ecd08025e
Arg [3] : _minter (address): 0xa6E60d40320276410537972036b42363e7Fe6197
Arg [4] : _initialMintRecipient (address): 0xe97548Ead4b96c03a37B8FdaDEE5b51ecd08025e
Arg [5] : _maxSupply (uint256): 2500
Arg [6] : _royaltyReceiver (address): 0xe97548Ead4b96c03a37B8FdaDEE5b51ecd08025e
Arg [7] : _initialURI (string): https://mint.feev.mc/api/ipfs/metadata/platinum/
Arg [8] : _feevieNFT (address): 0xf6056E1FD4070Eee2f8DeADC2eA96d19733a8e36
Arg [9] : _priceRanges (uint256[]): 500,1000,1500,2000,2500
Arg [10] : _prices (uint256[]): 1000000000000000000,1100000000000000000,1200000000000000000,1300000000000000000,1400000000000000000
-----Encoded View---------------
30 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [1] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [2] : 000000000000000000000000e97548ead4b96c03a37b8fdadee5b51ecd08025e
Arg [3] : 000000000000000000000000a6e60d40320276410537972036b42363e7fe6197
Arg [4] : 000000000000000000000000e97548ead4b96c03a37b8fdadee5b51ecd08025e
Arg [5] : 00000000000000000000000000000000000000000000000000000000000009c4
Arg [6] : 000000000000000000000000e97548ead4b96c03a37b8fdadee5b51ecd08025e
Arg [7] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [8] : 000000000000000000000000f6056e1fd4070eee2f8deadc2ea96d19733a8e36
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000240
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000300
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000010
Arg [12] : 4645455620506c6174696e756d204d4300000000000000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [14] : 464545564d430000000000000000000000000000000000000000000000000000
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000030
Arg [16] : 68747470733a2f2f6d696e742e666565762e6d632f6170692f697066732f6d65
Arg [17] : 7461646174612f706c6174696e756d2f00000000000000000000000000000000
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [19] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [20] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [21] : 00000000000000000000000000000000000000000000000000000000000005dc
Arg [22] : 00000000000000000000000000000000000000000000000000000000000007d0
Arg [23] : 00000000000000000000000000000000000000000000000000000000000009c4
Arg [24] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [25] : 0000000000000000000000000000000000000000000000000de0b6b3a7640000
Arg [26] : 0000000000000000000000000000000000000000000000000f43fc2c04ee0000
Arg [27] : 00000000000000000000000000000000000000000000000010a741a462780000
Arg [28] : 000000000000000000000000000000000000000000000000120a871cc0020000
Arg [29] : 000000000000000000000000000000000000000000000000136dcc951d8c0000
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.