Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
NFT
Overview
Max Total Supply
55,555 VF2
Holders
20,159
Market
Volume (24H)
2.0022 ETH
Min Price (24H)
$91.40 @ 0.029200 ETH
Max Price (24H)
$716.78 @ 0.229000 ETH
Other Info
Token Contract
Balance
0 VF2Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
VeeFriendsV2
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
/* KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKkx0KKKKKOdlkXKKKKKKKKKKKKKKKKKKKKKKKKKKKKK KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKd..,oxdxd, 'kKKKKKKKKKKKKKKKKKKKKKKKKKKKKK KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKXO, .... cKKKKKKKKKKKKKKKKKKKKKKKKKKKKK KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK0: .,'..,;'. cKKKKKKKKKKKKKKKKKKKKKKKKKKKKK KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK0: 'xKO;,OXO; ,kXKKKKKKKKKKKKKKKKKKKKKKKKKKK KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKXk' .lxl..;ol. .lKKKKKKKKKKKKKKKKKKKKKKKKKKKK KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKO:. . . .lxxOKKKKKKKKKKKKKKKKKKKKKKKKK KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK0d;'. .....;oxkkk0KKKKKKKKKKKKKKKKKK KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK0x' ..''.,dKKKKKKKKKKKKKKKKK KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK0: ,xO:.:0KKKKKKKKKKKKKKKK KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKc .;' .;. .:' .cdc.:0KKKKKKKKKKKKKKKK KKKKKKKKKKKKK00000000000000KKKKKKKKKKKKKKK00000000000000KK0KKd'..;. ':. ck;.......l0KKKKKKKKKKKKKKKK KKKKKKKKKKKKKo,''''''''''',xKKKKKKKKKKKKKd,''''''''''''ckdodoc;;::;,:c;;lo:;;cl:;cddddx0KKKKKKKKKKKK KKKKKKKKKKKKXx'............c0KKKKKKKKKKK0:.............oOollllllllllllllooooooooooooood0XKKKKKKKKKKK KKKKKKKKKKKKKKc........... ,OXKKKKKKKKKXk' ...........:00olllllllllllllllloooooooooooox0KKKKKKKKKKKK KKKKKKKKKKKKKXk, ...........dXKKKKKKKKKKo........... 'xX0ollllllllllllllloooooooooooookKKKKKKKKKKKKK KKKKKKKKKKKKKKKl............:0XKKKKKKKK0;............lKK0dllllllllllllloloooooooooooookKKKKKKKKKKKKK KKKKKKKKKKKKKKXO,...........'kXKKKKKKKKd. ..........,kKK0dclllllllllllxOkOOOkkkkkkkkkk0KKKKKKKKKKKKK KKKKKKKKKKKKKKKKo. ........ .lKKKKKKKX0;......... .oKKK0dcllllllllllokKKKKKKKKKKKKKKKKKKKKKKKKKKKKK KKKKKKKKKKKKKKKKO;...........,OXKKKKKKo............:0XKK0dlllllllllllokKKKKKKKKKKKKKKKKKKKKKKKKKKKKK KKKKKKKKKKKKKKKKKd. ..........oKKKKKXO;..........':xKKKK0dlllllllllllokKKKKKKKKKKKKKKKKKKKKKKKKKKKKK KKKKKKKKKKKKKKKKK0:...........:0XKKKKo...........lOKKKKK0dlllllllllllodxxxxxxxxxxxxOKKKKKKKKKKKKKKKK KKKKKKKKKKKKKKKKKKx.......... .xKKKXO,..........,OXXKKKKKxlllllllllllllllllooooooookKKKKKKKKKKKKKKKK KKKKKKKKKKKKKKKKKK0c...........c0KKKo. ....... .dKKKKKKKKxlllllllllllllloloooooooooOKKKKKKKKKKKKKKKK KKKKKKKKKKKKKKKKKKKk' ........ ,kKKk,........ .:0KKKKKKKKxlllllllllllllloooooooooodOKKKKKKKKKKKKKKKK KKKKKKKKKKKKKKKKKKKKl...........oKKl......... 'xXKKKKKKKKkllllllllllllllllloooooood0XKKKKKKKKKKKKKKK KKKKKKKKKKKKKKKKKKKKk, .........;Ok, .........lKKKKKKKKKKklllllllllllodxxxxxxxxxxxkKXKKKKKKKKKKKKKKK KKKKKKKKKKKKKKKKKKKKKo...........ol..........;OKKKKKKKKKKkllllllllllloOKKKKKKKKKKKKKKKKKKKKKKKKKKKKK KKKKKKKKKKKKKKKKKKKKXO;......................dKKKKKKKKKKKxllllllllllloOKKKKKKKKKKKKKKKKKKKKKKKKKKKKK KKKKKKKKKKKKKKKKKKKKKKo.....................c0KKKKKKKKKKKxllllllllllloOKKKKKKKKKKKKKKKKKKKKKKKKKKKKK KKKKKKKKKKKKKKKKKKKKKKO;.................. 'kXKKKKKKKKKK0dllllllllllloOKKKKKKKKKKKKKKKKKKKKKKKKKKKKK KKKKKKKKKKKKKKKKKKKKKKKd. .................oKKKKKKKKKKKK0dlllllllllllokKKKKKKKKKKKKKKKKKKKKKKKKKKKKK KKKKKKKKKKKKKKKKKKKKKKK0:.................;OKKKKKKKKKKKK0dllllllllllllkKKKKKKKKKKKKKKKKKKKKKKKKKKKKK KKKKKKKKKKKKKKKKKKKKKKKXx'...............'dKKKKKKKKKKKKKOolllllllllollkKKKKKKKKKKKKKKKKKKKKKKKKKKKKK KKKKKKKKKKKKKKKKKKKKKKKKKkxxxxxxxxxxxxxxxkKKKKKKKKKKKKKKKOOOOOOOOOOOOO0KKKKKKKKKKKKKKKKKKKKKKKKKKKKK KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./AccessControlV.sol"; contract VeeFriendsV2 is ERC721, IERC721Enumerable, ReentrancyGuard, AccessControlV { string private baseUri; uint256 private currentIndex; struct InventoryTypeConfig { uint256 price; uint256 firstId; uint256 numTokens; uint256 numMinted; bool isActive; } mapping(string => InventoryTypeConfig) public inventoryTypeConfig; mapping(uint256 => uint256) internal indexTokenMap; uint256 constant MAX_TOKEN_SUPPLY = 55555; address payable public royaltyAddress; uint256 public royaltyBps; constructor( string memory initialBaseUri, string memory contractName, string memory contractSymbol ) ERC721(contractName, contractSymbol) { setBaseURI(initialBaseUri); royaltyAddress = payable(msg.sender); royaltyBps = 655; } function setInventoryTypeConfig( string memory inventoryType, uint256 price, uint256 firstId, uint256 numTokens ) public onlyRole(DEFAULT_ADMIN_ROLE) { require(currentIndex < MAX_TOKEN_SUPPLY, "All minted"); require( inventoryTypeConfig[inventoryType].numMinted == 0, "Inv type minting" ); inventoryTypeConfig[inventoryType] = InventoryTypeConfig( price, firstId, numTokens, 0, false ); } function setInventoryTypeNumTokens( string memory inventoryType, uint256 numTokens ) public onlyRole(DEFAULT_ADMIN_ROLE) { require(currentIndex < MAX_TOKEN_SUPPLY, "All minted"); require( inventoryTypeConfig[inventoryType].numMinted < inventoryTypeConfig[inventoryType].numTokens, "Inv type sold out" ); require( inventoryTypeConfig[inventoryType].numMinted <= numTokens, "Minted must be less then or equal total" ); inventoryTypeConfig[inventoryType].numTokens = numTokens; } function setInventoryTypeActiveFlag( string memory inventoryType, bool isActive ) public onlyRole(DEFAULT_ADMIN_ROLE) { inventoryTypeConfig[inventoryType].isActive = isActive; } function submitOrder( string memory orderId, string memory inventoryType, uint256 quantity ) public payable nonReentrant { require( inventoryTypeConfig[inventoryType].isActive, "Inv type is not active" ); require( inventoryTypeConfig[inventoryType].price * quantity < msg.value, "Incorrect price" ); address payable nextMinter = _selectNextMinter(); addressMintCount[nextMinter]++; nextMinter.transfer(msg.value); emit OrderSubmitted( orderId, inventoryType, quantity, _msgSender(), msg.value, nextMinter, _msgData() ); } function setBaseURI(string memory newBaseUri) public onlyRole(DEFAULT_ADMIN_ROLE) returns (string memory) { require(bytes(newBaseUri).length > 0, "Invalid baseUrl"); baseUri = newBaseUri; return baseUri; } function _baseURI() internal view override returns (string memory) { return baseUri; } function setDropRoyalties( address payable newRoyaltyAddress, uint256 newRoyaltyBps ) public onlyRole(DEFAULT_ADMIN_ROLE) { royaltyAddress = newRoyaltyAddress; royaltyBps = newRoyaltyBps; } function getFeeRecipients(uint256) public view returns (address payable[] memory) { address payable[] memory result = new address payable[](1); result[0] = royaltyAddress; return result; } function getFeeBps(uint256) public view returns (uint256[] memory) { uint256[] memory result = new uint256[](1); result[0] = royaltyBps; return result; } function mintBatch( address buyer, string memory orderId, string memory inventoryType, uint256[] memory tokenIds ) public onlyRole(MINTER_ROLE) nonReentrant { uint256 updatedIndex = currentIndex; require( updatedIndex + tokenIds.length <= MAX_TOKEN_SUPPLY, "None left to mint batch" ); require( inventoryTypeConfig[inventoryType].isActive, "Inv type is not active" ); require( inventoryTypeConfig[inventoryType].numMinted + tokenIds.length <= inventoryTypeConfig[inventoryType].numTokens, "None left in inv to mint batch" ); uint256 index; for (index = 0; index < tokenIds.length; index++) { uint256 tokenId = tokenIds[index]; require( inventoryTypeConfig[inventoryType].firstId <= tokenId, "Token id is not in inv" ); require( tokenId < inventoryTypeConfig[inventoryType].firstId + inventoryTypeConfig[inventoryType].numTokens, "Token id is not in inv" ); require(!_exists(tokenId), "Token already minted"); _safeMint(buyer, tokenId); } for (index = 0; index < tokenIds.length; index++) { updatedIndex++; uint256 tokenId = tokenIds[index]; indexTokenMap[updatedIndex - 1] = tokenId; inventoryTypeConfig[inventoryType].numMinted++; } currentIndex = updatedIndex; } function totalSupply() public view returns (uint256) { return currentIndex; } function tokenOfOwnerByIndex(address _owner, uint256 index) external view returns (uint256) { uint256 balance = balanceOf(_owner); require(index < balance, "Owner index out of bounds"); uint256[] memory ownerTokens = _tokensOfOwner(_owner); require( balance == ownerTokens.length, "Unable to get token of owner by index" ); return ownerTokens[index]; } function tokenByIndex(uint256 index) external view returns (uint256) { require(index < totalSupply(), "Global index out of bounds"); return indexTokenMap[index]; } function tokensOfOwner(address _owner) external view returns (uint256[] memory ownerTokens) { return _tokensOfOwner(_owner); } function _tokensOfOwner(address _owner) internal view returns (uint256[] memory ownerTokens) { uint256 tokenCount = balanceOf(_owner); if (tokenCount == 0) { return new uint256[](0); } else { uint256[] memory result = new uint256[](tokenCount); uint256 resultIndex = 0; uint256 total = totalSupply(); uint256 index; for (index = 0; index < total; index++) { uint256 tokenId = indexTokenMap[index]; if (ownerOf(tokenId) == _owner) { result[resultIndex] = tokenId; resultIndex++; } } return result; } } function supportsInterface(bytes4 interfaceId) public view override(ERC721, IERC165, AccessControl) returns (bool) { return super.supportsInterface(interfaceId); } function withdraw() public onlyRole(DEFAULT_ADMIN_ROLE) nonReentrant { uint256 amount = address(this).balance; require(amount > 0, "no balance"); Address.sendValue(payable(msg.sender), amount); } event OrderSubmitted( string indexed orderId, string inventoryType, uint256 quantity, address buyer, uint256 price, address minter, bytes data ); }
// 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 (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 (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 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/access/AccessControl.sol"; contract AccessControlV is AccessControl { bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); address[] public minterAddresses; mapping(address => uint256) internal addressMintCount; constructor() { _grantRole(DEFAULT_ADMIN_ROLE, msg.sender); grantMinterRole(msg.sender); } function _selectNextMinter() internal view returns (address payable) { address nextMinter; uint256 lowestMintCount = 0; for (uint256 index = 0; index < minterAddresses.length; index++) { address tempAddress = minterAddresses[index]; uint256 tempCount = addressMintCount[minterAddresses[index]]; if (index == 0) { nextMinter = tempAddress; lowestMintCount = tempCount; } else if (tempCount < lowestMintCount) { nextMinter = tempAddress; lowestMintCount = tempCount; } } return payable(nextMinter); } function grantMinterRole(address minter) public onlyRole(DEFAULT_ADMIN_ROLE) { _grantRole(MINTER_ROLE, minter); minterAddresses.push(minter); _resetMinterCount(); } function revokeMinterRole(address minter) public onlyRole(DEFAULT_ADMIN_ROLE) { _revokeRole(MINTER_ROLE, minter); uint256 index; for (index = 0; index < minterAddresses.length; index++) { if (minter == minterAddresses[index]) { minterAddresses[index] = minterAddresses[ minterAddresses.length - 1 ]; break; } } minterAddresses.pop(); _resetMinterCount(); } function _resetMinterCount() internal { for (uint256 index = 0; index < minterAddresses.length; index++) { address minter = minterAddresses[index]; addressMintCount[minter] = 0; } } }
// 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 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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/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) (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 (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; }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"initialBaseUri","type":"string"},{"internalType":"string","name":"contractName","type":"string"},{"internalType":"string","name":"contractSymbol","type":"string"}],"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":"string","name":"orderId","type":"string"},{"indexed":false,"internalType":"string","name":"inventoryType","type":"string"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"},{"indexed":false,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"OrderSubmitted","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getFeeBps","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getFeeRecipients","outputs":[{"internalType":"address payable[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"grantMinterRole","outputs":[],"stateMutability":"nonpayable","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":"string","name":"","type":"string"}],"name":"inventoryTypeConfig","outputs":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"firstId","type":"uint256"},{"internalType":"uint256","name":"numTokens","type":"uint256"},{"internalType":"uint256","name":"numMinted","type":"uint256"},{"internalType":"bool","name":"isActive","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"buyer","type":"address"},{"internalType":"string","name":"orderId","type":"string"},{"internalType":"string","name":"inventoryType","type":"string"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"minterAddresses","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"address","name":"minter","type":"address"}],"name":"revokeMinterRole","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":[],"name":"royaltyAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyBps","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":"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":"newBaseUri","type":"string"}],"name":"setBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"newRoyaltyAddress","type":"address"},{"internalType":"uint256","name":"newRoyaltyBps","type":"uint256"}],"name":"setDropRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"inventoryType","type":"string"},{"internalType":"bool","name":"isActive","type":"bool"}],"name":"setInventoryTypeActiveFlag","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"inventoryType","type":"string"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"firstId","type":"uint256"},{"internalType":"uint256","name":"numTokens","type":"uint256"}],"name":"setInventoryTypeConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"inventoryType","type":"string"},{"internalType":"uint256","name":"numTokens","type":"uint256"}],"name":"setInventoryTypeNumTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"orderId","type":"string"},{"internalType":"string","name":"inventoryType","type":"string"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"submitOrder","outputs":[],"stateMutability":"payable","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":[{"internalType":"address","name":"_owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"ownerTokens","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162006f3a38038062006f3a833981810160405281019062000037919062000a77565b81818160009080519060200190620000519291906200082a565b5080600190805190602001906200006a9291906200082a565b50505060016006819055506200008a6000801b336200010060201b60201c565b6200009b33620001f260201b60201c565b620000ac83620002c060201b60201c565b5033600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061028f600f8190555050505062000fc1565b620001128282620003e260201b60201c565b620001ee5760016007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620001936200044d60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6000801b62000217816200020b6200044d60201b60201c565b6200045560201b60201c565b620002497f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6836200010060201b60201c565b6008829080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620002bc6200051960201b60201c565b5050565b60606000801b620002e781620002db6200044d60201b60201c565b6200045560201b60201c565b60008351116200032e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003259062000b91565b60405180910390fd5b82600a9080519060200190620003469291906200082a565b50600a8054620003569062000be2565b80601f0160208091040260200160405190810160405280929190818152602001828054620003849062000be2565b8015620003d55780601f10620003a957610100808354040283529160200191620003d5565b820191906000526020600020905b815481529060010190602001808311620003b757829003601f168201915b5050505050915050919050565b60006007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b620004678282620003e260201b60201c565b62000515576200049a8173ffffffffffffffffffffffffffffffffffffffff166014620005cf60201b620023551760201c565b620004b58360001c6020620005cf60201b620023551760201c565b604051602001620004c892919062000d05565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200050c919062000d88565b60405180910390fd5b5050565b60005b600880549050811015620005cc5760006008828154811062000543576200054262000dac565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550508080620005c39062000e14565b9150506200051c565b50565b606060006002836002620005e4919062000e62565b620005f0919062000ec3565b67ffffffffffffffff8111156200060c576200060b62000909565b5b6040519080825280601f01601f1916602001820160405280156200063f5781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106200067a576200067962000dac565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110620006e157620006e062000dac565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000600184600262000723919062000e62565b6200072f919062000ec3565b90505b6001811115620007d9577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811062000775576200077462000dac565b5b1a60f81b8282815181106200078f576200078e62000dac565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080620007d19062000f20565b905062000732565b506000841462000820576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620008179062000f9f565b60405180910390fd5b8091505092915050565b828054620008389062000be2565b90600052602060002090601f0160209004810192826200085c5760008555620008a8565b82601f106200087757805160ff1916838001178555620008a8565b82800160010185558215620008a8579182015b82811115620008a75782518255916020019190600101906200088a565b5b509050620008b79190620008bb565b5090565b5b80821115620008d6576000816000905550600101620008bc565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200094382620008f8565b810181811067ffffffffffffffff8211171562000965576200096462000909565b5b80604052505050565b60006200097a620008da565b905062000988828262000938565b919050565b600067ffffffffffffffff821115620009ab57620009aa62000909565b5b620009b682620008f8565b9050602081019050919050565b60005b83811015620009e3578082015181840152602081019050620009c6565b83811115620009f3576000848401525b50505050565b600062000a1062000a0a846200098d565b6200096e565b90508281526020810184848401111562000a2f5762000a2e620008f3565b5b62000a3c848285620009c3565b509392505050565b600082601f83011262000a5c5762000a5b620008ee565b5b815162000a6e848260208601620009f9565b91505092915050565b60008060006060848603121562000a935762000a92620008e4565b5b600084015167ffffffffffffffff81111562000ab45762000ab3620008e9565b5b62000ac28682870162000a44565b935050602084015167ffffffffffffffff81111562000ae65762000ae5620008e9565b5b62000af48682870162000a44565b925050604084015167ffffffffffffffff81111562000b185762000b17620008e9565b5b62000b268682870162000a44565b9150509250925092565b600082825260208201905092915050565b7f496e76616c6964206261736555726c0000000000000000000000000000000000600082015250565b600062000b79600f8362000b30565b915062000b868262000b41565b602082019050919050565b6000602082019050818103600083015262000bac8162000b6a565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168062000bfb57607f821691505b6020821081141562000c125762000c1162000bb3565b5b50919050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b600062000c5b60178362000c18565b915062000c688262000c23565b601782019050919050565b600081519050919050565b600062000c8b8262000c73565b62000c97818562000c18565b935062000ca9818560208601620009c3565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b600062000ced60118362000c18565b915062000cfa8262000cb5565b601182019050919050565b600062000d128262000c4c565b915062000d20828562000c7e565b915062000d2d8262000cde565b915062000d3b828462000c7e565b91508190509392505050565b600062000d548262000c73565b62000d60818562000b30565b935062000d72818560208601620009c3565b62000d7d81620008f8565b840191505092915050565b6000602082019050818103600083015262000da4818462000d47565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000819050919050565b600062000e218262000e0a565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141562000e575762000e5662000ddb565b5b600182019050919050565b600062000e6f8262000e0a565b915062000e7c8362000e0a565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161562000eb85762000eb762000ddb565b5b828202905092915050565b600062000ed08262000e0a565b915062000edd8362000e0a565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111562000f155762000f1462000ddb565b5b828201905092915050565b600062000f2d8262000e0a565b9150600082141562000f445762000f4362000ddb565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b600062000f8760208362000b30565b915062000f948262000f4f565b602082019050919050565b6000602082019050818103600083015262000fba8162000f78565b9050919050565b615f698062000fd16000396000f3fe60806040526004361061023b5760003560e01c80636d4380e71161012e578063ad2f852a116100ab578063d53913931161006f578063d539139314610905578063d547741f14610930578063d5f667cb14610959578063e2135cdf14610982578063e985e9c51461099e5761023b565b8063ad2f852a1461080c578063b88d4fde14610837578063b9c4d9fb14610860578063c63adb2b1461089d578063c87b56dd146108c85761023b565b806395d89b41116100f257806395d89b4114610723578063a217fddf1461074e578063a22cb46514610779578063a9ce799a146107a2578063abff2d4a146107cb5761023b565b80636d4380e71461061a57806370a08231146106435780638462151c14610680578063855a8db8146106bd57806391d14854146106e65761023b565b80632f745c59116101bc5780634f6ccce7116101805780634f6ccce71461051157806355f804b31461054e5780636352211e1461058b57806369e2f0fb146105c85780636bce809a146105f15761023b565b80632f745c591461044257806336568abe1461047f5780633ccfd60b146104a85780633dd1eb61146104bf57806342842e0e146104e85761023b565b80630ebd4c7f116102035780630ebd4c7f1461034b57806318160ddd1461038857806323b872dd146103b3578063248a9ca3146103dc5780632f2ff15d146104195761023b565b806301ffc9a714610240578063028850971461027d57806306fdde03146102ba578063081812fc146102e5578063095ea7b314610322575b600080fd5b34801561024c57600080fd5b5061026760048036038101906102629190613b4a565b6109db565b6040516102749190613b92565b60405180910390f35b34801561028957600080fd5b506102a4600480360381019061029f9190613be3565b6109ed565b6040516102b19190613c51565b60405180910390f35b3480156102c657600080fd5b506102cf610a2c565b6040516102dc9190613d05565b60405180910390f35b3480156102f157600080fd5b5061030c60048036038101906103079190613be3565b610abe565b6040516103199190613c51565b60405180910390f35b34801561032e57600080fd5b5061034960048036038101906103449190613d53565b610b43565b005b34801561035757600080fd5b50610372600480360381019061036d9190613be3565b610c5b565b60405161037f9190613e51565b60405180910390f35b34801561039457600080fd5b5061039d610cd7565b6040516103aa9190613e82565b60405180910390f35b3480156103bf57600080fd5b506103da60048036038101906103d59190613e9d565b610ce1565b005b3480156103e857600080fd5b5061040360048036038101906103fe9190613f26565b610d41565b6040516104109190613f62565b60405180910390f35b34801561042557600080fd5b50610440600480360381019061043b9190613f7d565b610d61565b005b34801561044e57600080fd5b5061046960048036038101906104649190613d53565b610d8a565b6040516104769190613e82565b60405180910390f35b34801561048b57600080fd5b506104a660048036038101906104a19190613f7d565b610e4f565b005b3480156104b457600080fd5b506104bd610ed2565b005b3480156104cb57600080fd5b506104e660048036038101906104e19190613fbd565b610f93565b005b3480156104f457600080fd5b5061050f600480360381019061050a9190613e9d565b611041565b005b34801561051d57600080fd5b5061053860048036038101906105339190613be3565b611061565b6040516105459190613e82565b60405180910390f35b34801561055a57600080fd5b506105756004803603810190610570919061411f565b6110c7565b6040516105829190613d05565b60405180910390f35b34801561059757600080fd5b506105b260048036038101906105ad9190613be3565b6111cc565b6040516105bf9190613c51565b60405180910390f35b3480156105d457600080fd5b506105ef60048036038101906105ea9190613fbd565b61127e565b005b3480156105fd57600080fd5b50610618600480360381019061061391906141a6565b611457565b005b34801561062657600080fd5b50610641600480360381019061063c9190614212565b6114b9565b005b34801561064f57600080fd5b5061066a60048036038101906106659190613fbd565b61150c565b6040516106779190613e82565b60405180910390f35b34801561068c57600080fd5b506106a760048036038101906106a29190613fbd565b6115c4565b6040516106b49190613e51565b60405180910390f35b3480156106c957600080fd5b506106e460048036038101906106df919061426e565b6115d6565b005b3480156106f257600080fd5b5061070d60048036038101906107089190613f7d565b611730565b60405161071a9190613b92565b60405180910390f35b34801561072f57600080fd5b5061073861179b565b6040516107459190613d05565b60405180910390f35b34801561075a57600080fd5b5061076361182d565b6040516107709190613f62565b60405180910390f35b34801561078557600080fd5b506107a0600480360381019061079b91906142f1565b611834565b005b3480156107ae57600080fd5b506107c960048036038101906107c49190614331565b61184a565b005b3480156107d757600080fd5b506107f260048036038101906107ed919061411f565b6119b8565b60405161080395949392919061438d565b60405180910390f35b34801561081857600080fd5b50610821611a11565b60405161082e91906143ef565b60405180910390f35b34801561084357600080fd5b5061085e600480360381019061085991906144ab565b611a37565b005b34801561086c57600080fd5b5061088760048036038101906108829190613be3565b611a99565b60405161089491906145ec565b60405180910390f35b3480156108a957600080fd5b506108b2611b63565b6040516108bf9190613e82565b60405180910390f35b3480156108d457600080fd5b506108ef60048036038101906108ea9190613be3565b611b69565b6040516108fc9190613d05565b60405180910390f35b34801561091157600080fd5b5061091a611c10565b6040516109279190613f62565b60405180910390f35b34801561093c57600080fd5b5061095760048036038101906109529190613f7d565b611c34565b005b34801561096557600080fd5b50610980600480360381019061097b91906146d6565b611c5d565b005b61099c60048036038101906109979190614791565b61207b565b005b3480156109aa57600080fd5b506109c560048036038101906109c0919061481c565b6122c1565b6040516109d29190613b92565b60405180910390f35b60006109e682612591565b9050919050565b600881815481106109fd57600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606060008054610a3b9061488b565b80601f0160208091040260200160405190810160405280929190818152602001828054610a679061488b565b8015610ab45780601f10610a8957610100808354040283529160200191610ab4565b820191906000526020600020905b815481529060010190602001808311610a9757829003601f168201915b5050505050905090565b6000610ac98261260b565b610b08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aff9061492f565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b4e826111cc565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610bbf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb6906149c1565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610bde612677565b73ffffffffffffffffffffffffffffffffffffffff161480610c0d5750610c0c81610c07612677565b6122c1565b5b610c4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c4390614a53565b60405180910390fd5b610c56838361267f565b505050565b60606000600167ffffffffffffffff811115610c7a57610c79613ff4565b5b604051908082528060200260200182016040528015610ca85781602001602082028036833780820191505090505b509050600f5481600081518110610cc257610cc1614a73565b5b60200260200101818152505080915050919050565b6000600b54905090565b610cf2610cec612677565b82612738565b610d31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2890614b14565b60405180910390fd5b610d3c838383612816565b505050565b600060076000838152602001908152602001600020600101549050919050565b610d6a82610d41565b610d7b81610d76612677565b612a7d565b610d858383612b1a565b505050565b600080610d968461150c565b9050808310610dda576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dd190614b80565b60405180910390fd5b6000610de585612bfb565b905080518214610e2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2190614c12565b60405180910390fd5b808481518110610e3d57610e3c614a73565b5b60200260200101519250505092915050565b610e57612677565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ec4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ebb90614ca4565b60405180910390fd5b610ece8282612d6f565b5050565b6000801b610ee781610ee2612677565b612a7d565b60026006541415610f2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f2490614d10565b60405180910390fd5b6002600681905550600047905060008111610f7d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7490614d7c565b60405180910390fd5b610f873382612e51565b50600160068190555050565b6000801b610fa881610fa3612677565b612a7d565b610fd27f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a683612b1a565b6008829080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061103d612f45565b5050565b61105c83838360405180602001604052806000815250611a37565b505050565b600061106b610cd7565b82106110ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110a390614de8565b60405180910390fd5b600d6000838152602001908152602001600020549050919050565b60606000801b6110de816110d9612677565b612a7d565b6000835111611122576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111990614e54565b60405180910390fd5b82600a9080519060200190611138929190613a3b565b50600a80546111469061488b565b80601f01602080910402602001604051908101604052809291908181526020018280546111729061488b565b80156111bf5780601f10611194576101008083540402835291602001916111bf565b820191906000526020600020905b8154815290600101906020018083116111a257829003601f168201915b5050505050915050919050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611275576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126c90614ee6565b60405180910390fd5b80915050919050565b6000801b6112938161128e612677565b612a7d565b6112bd7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a683612d6f565b60005b60088054905081101561140357600881815481106112e1576112e0614a73565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156113f057600860016008805490506113539190614f35565b8154811061136457611363614a73565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600882815481106113a3576113a2614a73565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550611403565b80806113fb90614f69565b9150506112c0565b600880548061141557611414614fb2565b5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690559055611452612f45565b505050565b6000801b61146c81611467612677565b612a7d565b82600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600f81905550505050565b6000801b6114ce816114c9612677565b612a7d565b81600c846040516114df919061501d565b908152602001604051809103902060040160006101000a81548160ff021916908315150217905550505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561157d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611574906150a6565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60606115cf82612bfb565b9050919050565b6000801b6115eb816115e6612677565b612a7d565b61d903600b5410611631576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162890615112565b60405180910390fd5b6000600c86604051611643919061501d565b90815260200160405180910390206003015414611695576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168c9061517e565b60405180910390fd5b6040518060a001604052808581526020018481526020018381526020016000815260200160001515815250600c866040516116d0919061501d565b90815260200160405180910390206000820151816000015560208201518160010155604082015181600201556060820151816003015560808201518160040160006101000a81548160ff0219169083151502179055509050505050505050565b60006007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060600180546117aa9061488b565b80601f01602080910402602001604051908101604052809291908181526020018280546117d69061488b565b80156118235780601f106117f857610100808354040283529160200191611823565b820191906000526020600020905b81548152906001019060200180831161180657829003601f168201915b5050505050905090565b6000801b81565b61184661183f612677565b8383612ff4565b5050565b6000801b61185f8161185a612677565b612a7d565b61d903600b54106118a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189c90615112565b60405180910390fd5b600c836040516118b5919061501d565b908152602001604051809103902060020154600c846040516118d7919061501d565b90815260200160405180910390206003015410611929576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611920906151ea565b60405180910390fd5b81600c8460405161193a919061501d565b908152602001604051809103902060030154111561198d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119849061527c565b60405180910390fd5b81600c8460405161199e919061501d565b908152602001604051809103902060020181905550505050565b600c818051602081018201805184825260208301602085012081835280955050505050506000915090508060000154908060010154908060020154908060030154908060040160009054906101000a900460ff16905085565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611a48611a42612677565b83612738565b611a87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7e90614b14565b60405180910390fd5b611a9384848484613161565b50505050565b60606000600167ffffffffffffffff811115611ab857611ab7613ff4565b5b604051908082528060200260200182016040528015611ae65781602001602082028036833780820191505090505b509050600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681600081518110611b2057611b1f614a73565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505080915050919050565b600f5481565b6060611b748261260b565b611bb3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611baa9061530e565b60405180910390fd5b6000611bbd6131bd565b90506000815111611bdd5760405180602001604052806000815250611c08565b80611be78461324f565b604051602001611bf892919061532e565b6040516020818303038152906040525b915050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b611c3d82610d41565b611c4e81611c49612677565b612a7d565b611c588383612d6f565b505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6611c8f81611c8a612677565b612a7d565b60026006541415611cd5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ccc90614d10565b60405180910390fd5b60026006819055506000600b54905061d903835182611cf49190615352565b1115611d35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d2c906153f4565b60405180910390fd5b600c84604051611d45919061501d565b908152602001604051809103902060040160009054906101000a900460ff16611da3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9a90615460565b60405180910390fd5b600c84604051611db3919061501d565b9081526020016040518091039020600201548351600c86604051611dd7919061501d565b908152602001604051809103902060030154611df39190615352565b1115611e34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2b906154cc565b60405180910390fd5b60005b8351811015611fb9576000848281518110611e5557611e54614a73565b5b6020026020010151905080600c87604051611e70919061501d565b9081526020016040518091039020600101541115611ec3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eba90615538565b60405180910390fd5b600c86604051611ed3919061501d565b908152602001604051809103902060020154600c87604051611ef5919061501d565b908152602001604051809103902060010154611f119190615352565b8110611f52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f4990615538565b60405180910390fd5b611f5b8161260b565b15611f9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f92906155a4565b60405180910390fd5b611fa588826133b0565b508080611fb190614f69565b915050611e37565b600090505b8351811015612063578180611fd290614f69565b9250506000848281518110611fea57611fe9614a73565b5b6020026020010151905080600d60006001866120069190614f35565b815260200190815260200160002081905550600c86604051612028919061501d565b9081526020016040518091039020600301600081548092919061204a90614f69565b919050555050808061205b90614f69565b915050611fbe565b81600b81905550505060016006819055505050505050565b600260065414156120c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120b890614d10565b60405180910390fd5b6002600681905550600c826040516120d9919061501d565b908152602001604051809103902060040160009054906101000a900460ff16612137576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161212e90615460565b60405180910390fd5b3481600c84604051612149919061501d565b90815260200160405180910390206000015461216591906155c4565b106121a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161219c9061566a565b60405180910390fd5b60006121af6133ce565b9050600960008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081548092919061220190614f69565b91905055508073ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f1935050505015801561224c573d6000803e3d6000fd5b508360405161225b919061501d565b60405180910390207fb1e15271f598f039b2be984bbc913ecdf3465613cd0096593eac2a84d6605c26848461228e612677565b34866122986134e9565b6040516122ab9796959493929190615727565b60405180910390a2506001600681905550505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60606000600283600261236891906155c4565b6123729190615352565b67ffffffffffffffff81111561238b5761238a613ff4565b5b6040519080825280601f01601f1916602001820160405280156123bd5781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106123f5576123f4614a73565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061245957612458614a73565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000600184600261249991906155c4565b6124a39190615352565b90505b6001811115612543577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106124e5576124e4614a73565b5b1a60f81b8282815181106124fc576124fb614a73565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061253c90615798565b90506124a6565b5060008414612587576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161257e9061580e565b60405180910390fd5b8091505092915050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806126045750612603826134f6565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166126f2836111cc565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006127438261260b565b612782576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612779906158a0565b60405180910390fd5b600061278d836111cc565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806127fc57508373ffffffffffffffffffffffffffffffffffffffff166127e484610abe565b73ffffffffffffffffffffffffffffffffffffffff16145b8061280d575061280c81856122c1565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612836826111cc565b73ffffffffffffffffffffffffffffffffffffffff161461288c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161288390615932565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156128fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128f3906159c4565b60405180910390fd5b6129078383836135d8565b61291260008261267f565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546129629190614f35565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546129b99190615352565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612a788383836135dd565b505050565b612a878282611730565b612b1657612aac8173ffffffffffffffffffffffffffffffffffffffff166014612355565b612aba8360001c6020612355565b604051602001612acb929190615a7c565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b0d9190613d05565b60405180910390fd5b5050565b612b248282611730565b612bf75760016007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612b9c612677565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60606000612c088361150c565b90506000811415612c6557600067ffffffffffffffff811115612c2e57612c2d613ff4565b5b604051908082528060200260200182016040528015612c5c5781602001602082028036833780820191505090505b50915050612d6a565b60008167ffffffffffffffff811115612c8157612c80613ff4565b5b604051908082528060200260200182016040528015612caf5781602001602082028036833780820191505090505b509050600080612cbd610cd7565b905060005b81811015612d61576000600d60008381526020019081526020016000205490508773ffffffffffffffffffffffffffffffffffffffff16612d02826111cc565b73ffffffffffffffffffffffffffffffffffffffff161415612d4d5780858581518110612d3257612d31614a73565b5b6020026020010181815250508380612d4990614f69565b9450505b508080612d5990614f69565b915050612cc2565b83955050505050505b919050565b612d798282611730565b15612e4d5760006007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612df2612677565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b80471015612e94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e8b90615b02565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051612eba90615b53565b60006040518083038185875af1925050503d8060008114612ef7576040519150601f19603f3d011682016040523d82523d6000602084013e612efc565b606091505b5050905080612f40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f3790615bda565b60405180910390fd5b505050565b60005b600880549050811015612ff157600060088281548110612f6b57612f6a614a73565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550508080612fe990614f69565b915050612f48565b50565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613063576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161305a90615c46565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516131549190613b92565b60405180910390a3505050565b61316c848484612816565b613178848484846135e2565b6131b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131ae90615cd8565b60405180910390fd5b50505050565b6060600a80546131cc9061488b565b80601f01602080910402602001604051908101604052809291908181526020018280546131f89061488b565b80156132455780601f1061321a57610100808354040283529160200191613245565b820191906000526020600020905b81548152906001019060200180831161322857829003601f168201915b5050505050905090565b60606000821415613297576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506133ab565b600082905060005b600082146132c95780806132b290614f69565b915050600a826132c29190615d27565b915061329f565b60008167ffffffffffffffff8111156132e5576132e4613ff4565b5b6040519080825280601f01601f1916602001820160405280156133175781602001600182028036833780820191505090505b5090505b600085146133a4576001826133309190614f35565b9150600a8561333f9190615d58565b603061334b9190615352565b60f81b81838151811061336157613360614a73565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561339d9190615d27565b945061331b565b8093505050505b919050565b6133ca828260405180602001604052806000815250613779565b5050565b6000806000805b6008805490508110156134e0576000600882815481106133f8576133f7614a73565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000600960006008858154811061343f5761343e614a73565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060008314156134bb578194508093506134cb565b838110156134ca578194508093505b5b505080806134d890614f69565b9150506133d5565b50819250505090565b3660008036915091509091565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806135c157507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806135d157506135d0826137d4565b5b9050919050565b505050565b505050565b60006136038473ffffffffffffffffffffffffffffffffffffffff1661383e565b1561376c578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261362c612677565b8786866040518563ffffffff1660e01b815260040161364e9493929190615dcd565b602060405180830381600087803b15801561366857600080fd5b505af192505050801561369957506040513d601f19601f820116820180604052508101906136969190615e2e565b60015b61371c573d80600081146136c9576040519150601f19603f3d011682016040523d82523d6000602084013e6136ce565b606091505b50600081511415613714576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161370b90615cd8565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613771565b600190505b949350505050565b6137838383613861565b61379060008484846135e2565b6137cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137c690615cd8565b60405180910390fd5b505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156138d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138c890615ea7565b60405180910390fd5b6138da8161260b565b1561391a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161391190615f13565b60405180910390fd5b613926600083836135d8565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546139769190615352565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613a37600083836135dd565b5050565b828054613a479061488b565b90600052602060002090601f016020900481019282613a695760008555613ab0565b82601f10613a8257805160ff1916838001178555613ab0565b82800160010185558215613ab0579182015b82811115613aaf578251825591602001919060010190613a94565b5b509050613abd9190613ac1565b5090565b5b80821115613ada576000816000905550600101613ac2565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613b2781613af2565b8114613b3257600080fd5b50565b600081359050613b4481613b1e565b92915050565b600060208284031215613b6057613b5f613ae8565b5b6000613b6e84828501613b35565b91505092915050565b60008115159050919050565b613b8c81613b77565b82525050565b6000602082019050613ba76000830184613b83565b92915050565b6000819050919050565b613bc081613bad565b8114613bcb57600080fd5b50565b600081359050613bdd81613bb7565b92915050565b600060208284031215613bf957613bf8613ae8565b5b6000613c0784828501613bce565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613c3b82613c10565b9050919050565b613c4b81613c30565b82525050565b6000602082019050613c666000830184613c42565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613ca6578082015181840152602081019050613c8b565b83811115613cb5576000848401525b50505050565b6000601f19601f8301169050919050565b6000613cd782613c6c565b613ce18185613c77565b9350613cf1818560208601613c88565b613cfa81613cbb565b840191505092915050565b60006020820190508181036000830152613d1f8184613ccc565b905092915050565b613d3081613c30565b8114613d3b57600080fd5b50565b600081359050613d4d81613d27565b92915050565b60008060408385031215613d6a57613d69613ae8565b5b6000613d7885828601613d3e565b9250506020613d8985828601613bce565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613dc881613bad565b82525050565b6000613dda8383613dbf565b60208301905092915050565b6000602082019050919050565b6000613dfe82613d93565b613e088185613d9e565b9350613e1383613daf565b8060005b83811015613e44578151613e2b8882613dce565b9750613e3683613de6565b925050600181019050613e17565b5085935050505092915050565b60006020820190508181036000830152613e6b8184613df3565b905092915050565b613e7c81613bad565b82525050565b6000602082019050613e976000830184613e73565b92915050565b600080600060608486031215613eb657613eb5613ae8565b5b6000613ec486828701613d3e565b9350506020613ed586828701613d3e565b9250506040613ee686828701613bce565b9150509250925092565b6000819050919050565b613f0381613ef0565b8114613f0e57600080fd5b50565b600081359050613f2081613efa565b92915050565b600060208284031215613f3c57613f3b613ae8565b5b6000613f4a84828501613f11565b91505092915050565b613f5c81613ef0565b82525050565b6000602082019050613f776000830184613f53565b92915050565b60008060408385031215613f9457613f93613ae8565b5b6000613fa285828601613f11565b9250506020613fb385828601613d3e565b9150509250929050565b600060208284031215613fd357613fd2613ae8565b5b6000613fe184828501613d3e565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61402c82613cbb565b810181811067ffffffffffffffff8211171561404b5761404a613ff4565b5b80604052505050565b600061405e613ade565b905061406a8282614023565b919050565b600067ffffffffffffffff82111561408a57614089613ff4565b5b61409382613cbb565b9050602081019050919050565b82818337600083830152505050565b60006140c26140bd8461406f565b614054565b9050828152602081018484840111156140de576140dd613fef565b5b6140e98482856140a0565b509392505050565b600082601f83011261410657614105613fea565b5b81356141168482602086016140af565b91505092915050565b60006020828403121561413557614134613ae8565b5b600082013567ffffffffffffffff81111561415357614152613aed565b5b61415f848285016140f1565b91505092915050565b600061417382613c10565b9050919050565b61418381614168565b811461418e57600080fd5b50565b6000813590506141a08161417a565b92915050565b600080604083850312156141bd576141bc613ae8565b5b60006141cb85828601614191565b92505060206141dc85828601613bce565b9150509250929050565b6141ef81613b77565b81146141fa57600080fd5b50565b60008135905061420c816141e6565b92915050565b6000806040838503121561422957614228613ae8565b5b600083013567ffffffffffffffff81111561424757614246613aed565b5b614253858286016140f1565b9250506020614264858286016141fd565b9150509250929050565b6000806000806080858703121561428857614287613ae8565b5b600085013567ffffffffffffffff8111156142a6576142a5613aed565b5b6142b2878288016140f1565b94505060206142c387828801613bce565b93505060406142d487828801613bce565b92505060606142e587828801613bce565b91505092959194509250565b6000806040838503121561430857614307613ae8565b5b600061431685828601613d3e565b9250506020614327858286016141fd565b9150509250929050565b6000806040838503121561434857614347613ae8565b5b600083013567ffffffffffffffff81111561436657614365613aed565b5b614372858286016140f1565b925050602061438385828601613bce565b9150509250929050565b600060a0820190506143a26000830188613e73565b6143af6020830187613e73565b6143bc6040830186613e73565b6143c96060830185613e73565b6143d66080830184613b83565b9695505050505050565b6143e981614168565b82525050565b600060208201905061440460008301846143e0565b92915050565b600067ffffffffffffffff82111561442557614424613ff4565b5b61442e82613cbb565b9050602081019050919050565b600061444e6144498461440a565b614054565b90508281526020810184848401111561446a57614469613fef565b5b6144758482856140a0565b509392505050565b600082601f83011261449257614491613fea565b5b81356144a284826020860161443b565b91505092915050565b600080600080608085870312156144c5576144c4613ae8565b5b60006144d387828801613d3e565b94505060206144e487828801613d3e565b93505060406144f587828801613bce565b925050606085013567ffffffffffffffff81111561451657614515613aed565b5b6145228782880161447d565b91505092959194509250565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61456381614168565b82525050565b6000614575838361455a565b60208301905092915050565b6000602082019050919050565b60006145998261452e565b6145a38185614539565b93506145ae8361454a565b8060005b838110156145df5781516145c68882614569565b97506145d183614581565b9250506001810190506145b2565b5085935050505092915050565b60006020820190508181036000830152614606818461458e565b905092915050565b600067ffffffffffffffff82111561462957614628613ff4565b5b602082029050602081019050919050565b600080fd5b600061465261464d8461460e565b614054565b905080838252602082019050602084028301858111156146755761467461463a565b5b835b8181101561469e578061468a8882613bce565b845260208401935050602081019050614677565b5050509392505050565b600082601f8301126146bd576146bc613fea565b5b81356146cd84826020860161463f565b91505092915050565b600080600080608085870312156146f0576146ef613ae8565b5b60006146fe87828801613d3e565b945050602085013567ffffffffffffffff81111561471f5761471e613aed565b5b61472b878288016140f1565b935050604085013567ffffffffffffffff81111561474c5761474b613aed565b5b614758878288016140f1565b925050606085013567ffffffffffffffff81111561477957614778613aed565b5b614785878288016146a8565b91505092959194509250565b6000806000606084860312156147aa576147a9613ae8565b5b600084013567ffffffffffffffff8111156147c8576147c7613aed565b5b6147d4868287016140f1565b935050602084013567ffffffffffffffff8111156147f5576147f4613aed565b5b614801868287016140f1565b925050604061481286828701613bce565b9150509250925092565b6000806040838503121561483357614832613ae8565b5b600061484185828601613d3e565b925050602061485285828601613d3e565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806148a357607f821691505b602082108114156148b7576148b661485c565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000614919602c83613c77565b9150614924826148bd565b604082019050919050565b600060208201905081810360008301526149488161490c565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006149ab602183613c77565b91506149b68261494f565b604082019050919050565b600060208201905081810360008301526149da8161499e565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b6000614a3d603883613c77565b9150614a48826149e1565b604082019050919050565b60006020820190508181036000830152614a6c81614a30565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b6000614afe603183613c77565b9150614b0982614aa2565b604082019050919050565b60006020820190508181036000830152614b2d81614af1565b9050919050565b7f4f776e657220696e646578206f7574206f6620626f756e647300000000000000600082015250565b6000614b6a601983613c77565b9150614b7582614b34565b602082019050919050565b60006020820190508181036000830152614b9981614b5d565b9050919050565b7f556e61626c6520746f2067657420746f6b656e206f66206f776e65722062792060008201527f696e646578000000000000000000000000000000000000000000000000000000602082015250565b6000614bfc602583613c77565b9150614c0782614ba0565b604082019050919050565b60006020820190508181036000830152614c2b81614bef565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000614c8e602f83613c77565b9150614c9982614c32565b604082019050919050565b60006020820190508181036000830152614cbd81614c81565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614cfa601f83613c77565b9150614d0582614cc4565b602082019050919050565b60006020820190508181036000830152614d2981614ced565b9050919050565b7f6e6f2062616c616e636500000000000000000000000000000000000000000000600082015250565b6000614d66600a83613c77565b9150614d7182614d30565b602082019050919050565b60006020820190508181036000830152614d9581614d59565b9050919050565b7f476c6f62616c20696e646578206f7574206f6620626f756e6473000000000000600082015250565b6000614dd2601a83613c77565b9150614ddd82614d9c565b602082019050919050565b60006020820190508181036000830152614e0181614dc5565b9050919050565b7f496e76616c6964206261736555726c0000000000000000000000000000000000600082015250565b6000614e3e600f83613c77565b9150614e4982614e08565b602082019050919050565b60006020820190508181036000830152614e6d81614e31565b9050919050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000614ed0602983613c77565b9150614edb82614e74565b604082019050919050565b60006020820190508181036000830152614eff81614ec3565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614f4082613bad565b9150614f4b83613bad565b925082821015614f5e57614f5d614f06565b5b828203905092915050565b6000614f7482613bad565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614fa757614fa6614f06565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600081905092915050565b6000614ff782613c6c565b6150018185614fe1565b9350615011818560208601613c88565b80840191505092915050565b60006150298284614fec565b915081905092915050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b6000615090602a83613c77565b915061509b82615034565b604082019050919050565b600060208201905081810360008301526150bf81615083565b9050919050565b7f416c6c206d696e74656400000000000000000000000000000000000000000000600082015250565b60006150fc600a83613c77565b9150615107826150c6565b602082019050919050565b6000602082019050818103600083015261512b816150ef565b9050919050565b7f496e762074797065206d696e74696e6700000000000000000000000000000000600082015250565b6000615168601083613c77565b915061517382615132565b602082019050919050565b600060208201905081810360008301526151978161515b565b9050919050565b7f496e76207479706520736f6c64206f7574000000000000000000000000000000600082015250565b60006151d4601183613c77565b91506151df8261519e565b602082019050919050565b60006020820190508181036000830152615203816151c7565b9050919050565b7f4d696e746564206d757374206265206c657373207468656e206f72206571756160008201527f6c20746f74616c00000000000000000000000000000000000000000000000000602082015250565b6000615266602783613c77565b91506152718261520a565b604082019050919050565b6000602082019050818103600083015261529581615259565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b60006152f8602f83613c77565b91506153038261529c565b604082019050919050565b60006020820190508181036000830152615327816152eb565b9050919050565b600061533a8285614fec565b91506153468284614fec565b91508190509392505050565b600061535d82613bad565b915061536883613bad565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561539d5761539c614f06565b5b828201905092915050565b7f4e6f6e65206c65667420746f206d696e74206261746368000000000000000000600082015250565b60006153de601783613c77565b91506153e9826153a8565b602082019050919050565b6000602082019050818103600083015261540d816153d1565b9050919050565b7f496e762074797065206973206e6f742061637469766500000000000000000000600082015250565b600061544a601683613c77565b915061545582615414565b602082019050919050565b600060208201905081810360008301526154798161543d565b9050919050565b7f4e6f6e65206c65667420696e20696e7620746f206d696e742062617463680000600082015250565b60006154b6601e83613c77565b91506154c182615480565b602082019050919050565b600060208201905081810360008301526154e5816154a9565b9050919050565b7f546f6b656e206964206973206e6f7420696e20696e7600000000000000000000600082015250565b6000615522601683613c77565b915061552d826154ec565b602082019050919050565b6000602082019050818103600083015261555181615515565b9050919050565b7f546f6b656e20616c7265616479206d696e746564000000000000000000000000600082015250565b600061558e601483613c77565b915061559982615558565b602082019050919050565b600060208201905081810360008301526155bd81615581565b9050919050565b60006155cf82613bad565b91506155da83613bad565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561561357615612614f06565b5b828202905092915050565b7f496e636f72726563742070726963650000000000000000000000000000000000600082015250565b6000615654600f83613c77565b915061565f8261561e565b602082019050919050565b6000602082019050818103600083015261568381615647565b9050919050565b6000819050919050565b60006156af6156aa6156a584613c10565b61568a565b613c10565b9050919050565b60006156c182615694565b9050919050565b60006156d3826156b6565b9050919050565b6156e3816156c8565b82525050565b600082825260208201905092915050565b600061570683856156e9565b93506157138385846140a0565b61571c83613cbb565b840190509392505050565b600060c0820190508181036000830152615741818a613ccc565b90506157506020830189613e73565b61575d6040830188613c42565b61576a6060830187613e73565b61577760808301866156da565b81810360a083015261578a8184866156fa565b905098975050505050505050565b60006157a382613bad565b915060008214156157b7576157b6614f06565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b60006157f8602083613c77565b9150615803826157c2565b602082019050919050565b60006020820190508181036000830152615827816157eb565b9050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b600061588a602c83613c77565b91506158958261582e565b604082019050919050565b600060208201905081810360008301526158b98161587d565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b600061591c602583613c77565b9150615927826158c0565b604082019050919050565b6000602082019050818103600083015261594b8161590f565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006159ae602483613c77565b91506159b982615952565b604082019050919050565b600060208201905081810360008301526159dd816159a1565b9050919050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000615a1a601783614fe1565b9150615a25826159e4565b601782019050919050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000615a66601183614fe1565b9150615a7182615a30565b601182019050919050565b6000615a8782615a0d565b9150615a938285614fec565b9150615a9e82615a59565b9150615aaa8284614fec565b91508190509392505050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000615aec601d83613c77565b9150615af782615ab6565b602082019050919050565b60006020820190508181036000830152615b1b81615adf565b9050919050565b600081905092915050565b50565b6000615b3d600083615b22565b9150615b4882615b2d565b600082019050919050565b6000615b5e82615b30565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000615bc4603a83613c77565b9150615bcf82615b68565b604082019050919050565b60006020820190508181036000830152615bf381615bb7565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000615c30601983613c77565b9150615c3b82615bfa565b602082019050919050565b60006020820190508181036000830152615c5f81615c23565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000615cc2603283613c77565b9150615ccd82615c66565b604082019050919050565b60006020820190508181036000830152615cf181615cb5565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000615d3282613bad565b9150615d3d83613bad565b925082615d4d57615d4c615cf8565b5b828204905092915050565b6000615d6382613bad565b9150615d6e83613bad565b925082615d7e57615d7d615cf8565b5b828206905092915050565b600081519050919050565b6000615d9f82615d89565b615da981856156e9565b9350615db9818560208601613c88565b615dc281613cbb565b840191505092915050565b6000608082019050615de26000830187613c42565b615def6020830186613c42565b615dfc6040830185613e73565b8181036060830152615e0e8184615d94565b905095945050505050565b600081519050615e2881613b1e565b92915050565b600060208284031215615e4457615e43613ae8565b5b6000615e5284828501615e19565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615e91602083613c77565b9150615e9c82615e5b565b602082019050919050565b60006020820190508181036000830152615ec081615e84565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615efd601c83613c77565b9150615f0882615ec7565b602082019050919050565b60006020820190508181036000830152615f2c81615ef0565b905091905056fea26469706673582212202eb13c8a607ff42976fa06ad32eb0ac52c1d5fc5559c1f4316bddf0b9d41031764736f6c63430008090033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000003b68747470733a2f2f6d657461646174612e766565667269656e64732e636f6d2f636f6c6c656374696f6e732f736572696573322f746f6b656e732f00000000000000000000000000000000000000000000000000000000000000000000000013566565467269656e64732053657269657320320000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035646320000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x60806040526004361061023b5760003560e01c80636d4380e71161012e578063ad2f852a116100ab578063d53913931161006f578063d539139314610905578063d547741f14610930578063d5f667cb14610959578063e2135cdf14610982578063e985e9c51461099e5761023b565b8063ad2f852a1461080c578063b88d4fde14610837578063b9c4d9fb14610860578063c63adb2b1461089d578063c87b56dd146108c85761023b565b806395d89b41116100f257806395d89b4114610723578063a217fddf1461074e578063a22cb46514610779578063a9ce799a146107a2578063abff2d4a146107cb5761023b565b80636d4380e71461061a57806370a08231146106435780638462151c14610680578063855a8db8146106bd57806391d14854146106e65761023b565b80632f745c59116101bc5780634f6ccce7116101805780634f6ccce71461051157806355f804b31461054e5780636352211e1461058b57806369e2f0fb146105c85780636bce809a146105f15761023b565b80632f745c591461044257806336568abe1461047f5780633ccfd60b146104a85780633dd1eb61146104bf57806342842e0e146104e85761023b565b80630ebd4c7f116102035780630ebd4c7f1461034b57806318160ddd1461038857806323b872dd146103b3578063248a9ca3146103dc5780632f2ff15d146104195761023b565b806301ffc9a714610240578063028850971461027d57806306fdde03146102ba578063081812fc146102e5578063095ea7b314610322575b600080fd5b34801561024c57600080fd5b5061026760048036038101906102629190613b4a565b6109db565b6040516102749190613b92565b60405180910390f35b34801561028957600080fd5b506102a4600480360381019061029f9190613be3565b6109ed565b6040516102b19190613c51565b60405180910390f35b3480156102c657600080fd5b506102cf610a2c565b6040516102dc9190613d05565b60405180910390f35b3480156102f157600080fd5b5061030c60048036038101906103079190613be3565b610abe565b6040516103199190613c51565b60405180910390f35b34801561032e57600080fd5b5061034960048036038101906103449190613d53565b610b43565b005b34801561035757600080fd5b50610372600480360381019061036d9190613be3565b610c5b565b60405161037f9190613e51565b60405180910390f35b34801561039457600080fd5b5061039d610cd7565b6040516103aa9190613e82565b60405180910390f35b3480156103bf57600080fd5b506103da60048036038101906103d59190613e9d565b610ce1565b005b3480156103e857600080fd5b5061040360048036038101906103fe9190613f26565b610d41565b6040516104109190613f62565b60405180910390f35b34801561042557600080fd5b50610440600480360381019061043b9190613f7d565b610d61565b005b34801561044e57600080fd5b5061046960048036038101906104649190613d53565b610d8a565b6040516104769190613e82565b60405180910390f35b34801561048b57600080fd5b506104a660048036038101906104a19190613f7d565b610e4f565b005b3480156104b457600080fd5b506104bd610ed2565b005b3480156104cb57600080fd5b506104e660048036038101906104e19190613fbd565b610f93565b005b3480156104f457600080fd5b5061050f600480360381019061050a9190613e9d565b611041565b005b34801561051d57600080fd5b5061053860048036038101906105339190613be3565b611061565b6040516105459190613e82565b60405180910390f35b34801561055a57600080fd5b506105756004803603810190610570919061411f565b6110c7565b6040516105829190613d05565b60405180910390f35b34801561059757600080fd5b506105b260048036038101906105ad9190613be3565b6111cc565b6040516105bf9190613c51565b60405180910390f35b3480156105d457600080fd5b506105ef60048036038101906105ea9190613fbd565b61127e565b005b3480156105fd57600080fd5b50610618600480360381019061061391906141a6565b611457565b005b34801561062657600080fd5b50610641600480360381019061063c9190614212565b6114b9565b005b34801561064f57600080fd5b5061066a60048036038101906106659190613fbd565b61150c565b6040516106779190613e82565b60405180910390f35b34801561068c57600080fd5b506106a760048036038101906106a29190613fbd565b6115c4565b6040516106b49190613e51565b60405180910390f35b3480156106c957600080fd5b506106e460048036038101906106df919061426e565b6115d6565b005b3480156106f257600080fd5b5061070d60048036038101906107089190613f7d565b611730565b60405161071a9190613b92565b60405180910390f35b34801561072f57600080fd5b5061073861179b565b6040516107459190613d05565b60405180910390f35b34801561075a57600080fd5b5061076361182d565b6040516107709190613f62565b60405180910390f35b34801561078557600080fd5b506107a0600480360381019061079b91906142f1565b611834565b005b3480156107ae57600080fd5b506107c960048036038101906107c49190614331565b61184a565b005b3480156107d757600080fd5b506107f260048036038101906107ed919061411f565b6119b8565b60405161080395949392919061438d565b60405180910390f35b34801561081857600080fd5b50610821611a11565b60405161082e91906143ef565b60405180910390f35b34801561084357600080fd5b5061085e600480360381019061085991906144ab565b611a37565b005b34801561086c57600080fd5b5061088760048036038101906108829190613be3565b611a99565b60405161089491906145ec565b60405180910390f35b3480156108a957600080fd5b506108b2611b63565b6040516108bf9190613e82565b60405180910390f35b3480156108d457600080fd5b506108ef60048036038101906108ea9190613be3565b611b69565b6040516108fc9190613d05565b60405180910390f35b34801561091157600080fd5b5061091a611c10565b6040516109279190613f62565b60405180910390f35b34801561093c57600080fd5b5061095760048036038101906109529190613f7d565b611c34565b005b34801561096557600080fd5b50610980600480360381019061097b91906146d6565b611c5d565b005b61099c60048036038101906109979190614791565b61207b565b005b3480156109aa57600080fd5b506109c560048036038101906109c0919061481c565b6122c1565b6040516109d29190613b92565b60405180910390f35b60006109e682612591565b9050919050565b600881815481106109fd57600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606060008054610a3b9061488b565b80601f0160208091040260200160405190810160405280929190818152602001828054610a679061488b565b8015610ab45780601f10610a8957610100808354040283529160200191610ab4565b820191906000526020600020905b815481529060010190602001808311610a9757829003601f168201915b5050505050905090565b6000610ac98261260b565b610b08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aff9061492f565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b4e826111cc565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610bbf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb6906149c1565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610bde612677565b73ffffffffffffffffffffffffffffffffffffffff161480610c0d5750610c0c81610c07612677565b6122c1565b5b610c4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c4390614a53565b60405180910390fd5b610c56838361267f565b505050565b60606000600167ffffffffffffffff811115610c7a57610c79613ff4565b5b604051908082528060200260200182016040528015610ca85781602001602082028036833780820191505090505b509050600f5481600081518110610cc257610cc1614a73565b5b60200260200101818152505080915050919050565b6000600b54905090565b610cf2610cec612677565b82612738565b610d31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2890614b14565b60405180910390fd5b610d3c838383612816565b505050565b600060076000838152602001908152602001600020600101549050919050565b610d6a82610d41565b610d7b81610d76612677565b612a7d565b610d858383612b1a565b505050565b600080610d968461150c565b9050808310610dda576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dd190614b80565b60405180910390fd5b6000610de585612bfb565b905080518214610e2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2190614c12565b60405180910390fd5b808481518110610e3d57610e3c614a73565b5b60200260200101519250505092915050565b610e57612677565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ec4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ebb90614ca4565b60405180910390fd5b610ece8282612d6f565b5050565b6000801b610ee781610ee2612677565b612a7d565b60026006541415610f2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f2490614d10565b60405180910390fd5b6002600681905550600047905060008111610f7d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7490614d7c565b60405180910390fd5b610f873382612e51565b50600160068190555050565b6000801b610fa881610fa3612677565b612a7d565b610fd27f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a683612b1a565b6008829080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061103d612f45565b5050565b61105c83838360405180602001604052806000815250611a37565b505050565b600061106b610cd7565b82106110ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110a390614de8565b60405180910390fd5b600d6000838152602001908152602001600020549050919050565b60606000801b6110de816110d9612677565b612a7d565b6000835111611122576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111990614e54565b60405180910390fd5b82600a9080519060200190611138929190613a3b565b50600a80546111469061488b565b80601f01602080910402602001604051908101604052809291908181526020018280546111729061488b565b80156111bf5780601f10611194576101008083540402835291602001916111bf565b820191906000526020600020905b8154815290600101906020018083116111a257829003601f168201915b5050505050915050919050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611275576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126c90614ee6565b60405180910390fd5b80915050919050565b6000801b6112938161128e612677565b612a7d565b6112bd7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a683612d6f565b60005b60088054905081101561140357600881815481106112e1576112e0614a73565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156113f057600860016008805490506113539190614f35565b8154811061136457611363614a73565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600882815481106113a3576113a2614a73565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550611403565b80806113fb90614f69565b9150506112c0565b600880548061141557611414614fb2565b5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690559055611452612f45565b505050565b6000801b61146c81611467612677565b612a7d565b82600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600f81905550505050565b6000801b6114ce816114c9612677565b612a7d565b81600c846040516114df919061501d565b908152602001604051809103902060040160006101000a81548160ff021916908315150217905550505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561157d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611574906150a6565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60606115cf82612bfb565b9050919050565b6000801b6115eb816115e6612677565b612a7d565b61d903600b5410611631576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162890615112565b60405180910390fd5b6000600c86604051611643919061501d565b90815260200160405180910390206003015414611695576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168c9061517e565b60405180910390fd5b6040518060a001604052808581526020018481526020018381526020016000815260200160001515815250600c866040516116d0919061501d565b90815260200160405180910390206000820151816000015560208201518160010155604082015181600201556060820151816003015560808201518160040160006101000a81548160ff0219169083151502179055509050505050505050565b60006007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060600180546117aa9061488b565b80601f01602080910402602001604051908101604052809291908181526020018280546117d69061488b565b80156118235780601f106117f857610100808354040283529160200191611823565b820191906000526020600020905b81548152906001019060200180831161180657829003601f168201915b5050505050905090565b6000801b81565b61184661183f612677565b8383612ff4565b5050565b6000801b61185f8161185a612677565b612a7d565b61d903600b54106118a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189c90615112565b60405180910390fd5b600c836040516118b5919061501d565b908152602001604051809103902060020154600c846040516118d7919061501d565b90815260200160405180910390206003015410611929576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611920906151ea565b60405180910390fd5b81600c8460405161193a919061501d565b908152602001604051809103902060030154111561198d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119849061527c565b60405180910390fd5b81600c8460405161199e919061501d565b908152602001604051809103902060020181905550505050565b600c818051602081018201805184825260208301602085012081835280955050505050506000915090508060000154908060010154908060020154908060030154908060040160009054906101000a900460ff16905085565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611a48611a42612677565b83612738565b611a87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7e90614b14565b60405180910390fd5b611a9384848484613161565b50505050565b60606000600167ffffffffffffffff811115611ab857611ab7613ff4565b5b604051908082528060200260200182016040528015611ae65781602001602082028036833780820191505090505b509050600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681600081518110611b2057611b1f614a73565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505080915050919050565b600f5481565b6060611b748261260b565b611bb3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611baa9061530e565b60405180910390fd5b6000611bbd6131bd565b90506000815111611bdd5760405180602001604052806000815250611c08565b80611be78461324f565b604051602001611bf892919061532e565b6040516020818303038152906040525b915050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b611c3d82610d41565b611c4e81611c49612677565b612a7d565b611c588383612d6f565b505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6611c8f81611c8a612677565b612a7d565b60026006541415611cd5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ccc90614d10565b60405180910390fd5b60026006819055506000600b54905061d903835182611cf49190615352565b1115611d35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d2c906153f4565b60405180910390fd5b600c84604051611d45919061501d565b908152602001604051809103902060040160009054906101000a900460ff16611da3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9a90615460565b60405180910390fd5b600c84604051611db3919061501d565b9081526020016040518091039020600201548351600c86604051611dd7919061501d565b908152602001604051809103902060030154611df39190615352565b1115611e34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2b906154cc565b60405180910390fd5b60005b8351811015611fb9576000848281518110611e5557611e54614a73565b5b6020026020010151905080600c87604051611e70919061501d565b9081526020016040518091039020600101541115611ec3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eba90615538565b60405180910390fd5b600c86604051611ed3919061501d565b908152602001604051809103902060020154600c87604051611ef5919061501d565b908152602001604051809103902060010154611f119190615352565b8110611f52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f4990615538565b60405180910390fd5b611f5b8161260b565b15611f9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f92906155a4565b60405180910390fd5b611fa588826133b0565b508080611fb190614f69565b915050611e37565b600090505b8351811015612063578180611fd290614f69565b9250506000848281518110611fea57611fe9614a73565b5b6020026020010151905080600d60006001866120069190614f35565b815260200190815260200160002081905550600c86604051612028919061501d565b9081526020016040518091039020600301600081548092919061204a90614f69565b919050555050808061205b90614f69565b915050611fbe565b81600b81905550505060016006819055505050505050565b600260065414156120c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120b890614d10565b60405180910390fd5b6002600681905550600c826040516120d9919061501d565b908152602001604051809103902060040160009054906101000a900460ff16612137576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161212e90615460565b60405180910390fd5b3481600c84604051612149919061501d565b90815260200160405180910390206000015461216591906155c4565b106121a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161219c9061566a565b60405180910390fd5b60006121af6133ce565b9050600960008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081548092919061220190614f69565b91905055508073ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f1935050505015801561224c573d6000803e3d6000fd5b508360405161225b919061501d565b60405180910390207fb1e15271f598f039b2be984bbc913ecdf3465613cd0096593eac2a84d6605c26848461228e612677565b34866122986134e9565b6040516122ab9796959493929190615727565b60405180910390a2506001600681905550505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60606000600283600261236891906155c4565b6123729190615352565b67ffffffffffffffff81111561238b5761238a613ff4565b5b6040519080825280601f01601f1916602001820160405280156123bd5781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106123f5576123f4614a73565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061245957612458614a73565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000600184600261249991906155c4565b6124a39190615352565b90505b6001811115612543577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106124e5576124e4614a73565b5b1a60f81b8282815181106124fc576124fb614a73565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061253c90615798565b90506124a6565b5060008414612587576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161257e9061580e565b60405180910390fd5b8091505092915050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806126045750612603826134f6565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166126f2836111cc565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006127438261260b565b612782576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612779906158a0565b60405180910390fd5b600061278d836111cc565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806127fc57508373ffffffffffffffffffffffffffffffffffffffff166127e484610abe565b73ffffffffffffffffffffffffffffffffffffffff16145b8061280d575061280c81856122c1565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612836826111cc565b73ffffffffffffffffffffffffffffffffffffffff161461288c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161288390615932565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156128fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128f3906159c4565b60405180910390fd5b6129078383836135d8565b61291260008261267f565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546129629190614f35565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546129b99190615352565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612a788383836135dd565b505050565b612a878282611730565b612b1657612aac8173ffffffffffffffffffffffffffffffffffffffff166014612355565b612aba8360001c6020612355565b604051602001612acb929190615a7c565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b0d9190613d05565b60405180910390fd5b5050565b612b248282611730565b612bf75760016007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612b9c612677565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60606000612c088361150c565b90506000811415612c6557600067ffffffffffffffff811115612c2e57612c2d613ff4565b5b604051908082528060200260200182016040528015612c5c5781602001602082028036833780820191505090505b50915050612d6a565b60008167ffffffffffffffff811115612c8157612c80613ff4565b5b604051908082528060200260200182016040528015612caf5781602001602082028036833780820191505090505b509050600080612cbd610cd7565b905060005b81811015612d61576000600d60008381526020019081526020016000205490508773ffffffffffffffffffffffffffffffffffffffff16612d02826111cc565b73ffffffffffffffffffffffffffffffffffffffff161415612d4d5780858581518110612d3257612d31614a73565b5b6020026020010181815250508380612d4990614f69565b9450505b508080612d5990614f69565b915050612cc2565b83955050505050505b919050565b612d798282611730565b15612e4d5760006007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612df2612677565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b80471015612e94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e8b90615b02565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051612eba90615b53565b60006040518083038185875af1925050503d8060008114612ef7576040519150601f19603f3d011682016040523d82523d6000602084013e612efc565b606091505b5050905080612f40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f3790615bda565b60405180910390fd5b505050565b60005b600880549050811015612ff157600060088281548110612f6b57612f6a614a73565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550508080612fe990614f69565b915050612f48565b50565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613063576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161305a90615c46565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516131549190613b92565b60405180910390a3505050565b61316c848484612816565b613178848484846135e2565b6131b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131ae90615cd8565b60405180910390fd5b50505050565b6060600a80546131cc9061488b565b80601f01602080910402602001604051908101604052809291908181526020018280546131f89061488b565b80156132455780601f1061321a57610100808354040283529160200191613245565b820191906000526020600020905b81548152906001019060200180831161322857829003601f168201915b5050505050905090565b60606000821415613297576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506133ab565b600082905060005b600082146132c95780806132b290614f69565b915050600a826132c29190615d27565b915061329f565b60008167ffffffffffffffff8111156132e5576132e4613ff4565b5b6040519080825280601f01601f1916602001820160405280156133175781602001600182028036833780820191505090505b5090505b600085146133a4576001826133309190614f35565b9150600a8561333f9190615d58565b603061334b9190615352565b60f81b81838151811061336157613360614a73565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561339d9190615d27565b945061331b565b8093505050505b919050565b6133ca828260405180602001604052806000815250613779565b5050565b6000806000805b6008805490508110156134e0576000600882815481106133f8576133f7614a73565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000600960006008858154811061343f5761343e614a73565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060008314156134bb578194508093506134cb565b838110156134ca578194508093505b5b505080806134d890614f69565b9150506133d5565b50819250505090565b3660008036915091509091565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806135c157507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806135d157506135d0826137d4565b5b9050919050565b505050565b505050565b60006136038473ffffffffffffffffffffffffffffffffffffffff1661383e565b1561376c578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261362c612677565b8786866040518563ffffffff1660e01b815260040161364e9493929190615dcd565b602060405180830381600087803b15801561366857600080fd5b505af192505050801561369957506040513d601f19601f820116820180604052508101906136969190615e2e565b60015b61371c573d80600081146136c9576040519150601f19603f3d011682016040523d82523d6000602084013e6136ce565b606091505b50600081511415613714576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161370b90615cd8565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613771565b600190505b949350505050565b6137838383613861565b61379060008484846135e2565b6137cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137c690615cd8565b60405180910390fd5b505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156138d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138c890615ea7565b60405180910390fd5b6138da8161260b565b1561391a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161391190615f13565b60405180910390fd5b613926600083836135d8565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546139769190615352565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613a37600083836135dd565b5050565b828054613a479061488b565b90600052602060002090601f016020900481019282613a695760008555613ab0565b82601f10613a8257805160ff1916838001178555613ab0565b82800160010185558215613ab0579182015b82811115613aaf578251825591602001919060010190613a94565b5b509050613abd9190613ac1565b5090565b5b80821115613ada576000816000905550600101613ac2565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613b2781613af2565b8114613b3257600080fd5b50565b600081359050613b4481613b1e565b92915050565b600060208284031215613b6057613b5f613ae8565b5b6000613b6e84828501613b35565b91505092915050565b60008115159050919050565b613b8c81613b77565b82525050565b6000602082019050613ba76000830184613b83565b92915050565b6000819050919050565b613bc081613bad565b8114613bcb57600080fd5b50565b600081359050613bdd81613bb7565b92915050565b600060208284031215613bf957613bf8613ae8565b5b6000613c0784828501613bce565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613c3b82613c10565b9050919050565b613c4b81613c30565b82525050565b6000602082019050613c666000830184613c42565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613ca6578082015181840152602081019050613c8b565b83811115613cb5576000848401525b50505050565b6000601f19601f8301169050919050565b6000613cd782613c6c565b613ce18185613c77565b9350613cf1818560208601613c88565b613cfa81613cbb565b840191505092915050565b60006020820190508181036000830152613d1f8184613ccc565b905092915050565b613d3081613c30565b8114613d3b57600080fd5b50565b600081359050613d4d81613d27565b92915050565b60008060408385031215613d6a57613d69613ae8565b5b6000613d7885828601613d3e565b9250506020613d8985828601613bce565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613dc881613bad565b82525050565b6000613dda8383613dbf565b60208301905092915050565b6000602082019050919050565b6000613dfe82613d93565b613e088185613d9e565b9350613e1383613daf565b8060005b83811015613e44578151613e2b8882613dce565b9750613e3683613de6565b925050600181019050613e17565b5085935050505092915050565b60006020820190508181036000830152613e6b8184613df3565b905092915050565b613e7c81613bad565b82525050565b6000602082019050613e976000830184613e73565b92915050565b600080600060608486031215613eb657613eb5613ae8565b5b6000613ec486828701613d3e565b9350506020613ed586828701613d3e565b9250506040613ee686828701613bce565b9150509250925092565b6000819050919050565b613f0381613ef0565b8114613f0e57600080fd5b50565b600081359050613f2081613efa565b92915050565b600060208284031215613f3c57613f3b613ae8565b5b6000613f4a84828501613f11565b91505092915050565b613f5c81613ef0565b82525050565b6000602082019050613f776000830184613f53565b92915050565b60008060408385031215613f9457613f93613ae8565b5b6000613fa285828601613f11565b9250506020613fb385828601613d3e565b9150509250929050565b600060208284031215613fd357613fd2613ae8565b5b6000613fe184828501613d3e565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61402c82613cbb565b810181811067ffffffffffffffff8211171561404b5761404a613ff4565b5b80604052505050565b600061405e613ade565b905061406a8282614023565b919050565b600067ffffffffffffffff82111561408a57614089613ff4565b5b61409382613cbb565b9050602081019050919050565b82818337600083830152505050565b60006140c26140bd8461406f565b614054565b9050828152602081018484840111156140de576140dd613fef565b5b6140e98482856140a0565b509392505050565b600082601f83011261410657614105613fea565b5b81356141168482602086016140af565b91505092915050565b60006020828403121561413557614134613ae8565b5b600082013567ffffffffffffffff81111561415357614152613aed565b5b61415f848285016140f1565b91505092915050565b600061417382613c10565b9050919050565b61418381614168565b811461418e57600080fd5b50565b6000813590506141a08161417a565b92915050565b600080604083850312156141bd576141bc613ae8565b5b60006141cb85828601614191565b92505060206141dc85828601613bce565b9150509250929050565b6141ef81613b77565b81146141fa57600080fd5b50565b60008135905061420c816141e6565b92915050565b6000806040838503121561422957614228613ae8565b5b600083013567ffffffffffffffff81111561424757614246613aed565b5b614253858286016140f1565b9250506020614264858286016141fd565b9150509250929050565b6000806000806080858703121561428857614287613ae8565b5b600085013567ffffffffffffffff8111156142a6576142a5613aed565b5b6142b2878288016140f1565b94505060206142c387828801613bce565b93505060406142d487828801613bce565b92505060606142e587828801613bce565b91505092959194509250565b6000806040838503121561430857614307613ae8565b5b600061431685828601613d3e565b9250506020614327858286016141fd565b9150509250929050565b6000806040838503121561434857614347613ae8565b5b600083013567ffffffffffffffff81111561436657614365613aed565b5b614372858286016140f1565b925050602061438385828601613bce565b9150509250929050565b600060a0820190506143a26000830188613e73565b6143af6020830187613e73565b6143bc6040830186613e73565b6143c96060830185613e73565b6143d66080830184613b83565b9695505050505050565b6143e981614168565b82525050565b600060208201905061440460008301846143e0565b92915050565b600067ffffffffffffffff82111561442557614424613ff4565b5b61442e82613cbb565b9050602081019050919050565b600061444e6144498461440a565b614054565b90508281526020810184848401111561446a57614469613fef565b5b6144758482856140a0565b509392505050565b600082601f83011261449257614491613fea565b5b81356144a284826020860161443b565b91505092915050565b600080600080608085870312156144c5576144c4613ae8565b5b60006144d387828801613d3e565b94505060206144e487828801613d3e565b93505060406144f587828801613bce565b925050606085013567ffffffffffffffff81111561451657614515613aed565b5b6145228782880161447d565b91505092959194509250565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61456381614168565b82525050565b6000614575838361455a565b60208301905092915050565b6000602082019050919050565b60006145998261452e565b6145a38185614539565b93506145ae8361454a565b8060005b838110156145df5781516145c68882614569565b97506145d183614581565b9250506001810190506145b2565b5085935050505092915050565b60006020820190508181036000830152614606818461458e565b905092915050565b600067ffffffffffffffff82111561462957614628613ff4565b5b602082029050602081019050919050565b600080fd5b600061465261464d8461460e565b614054565b905080838252602082019050602084028301858111156146755761467461463a565b5b835b8181101561469e578061468a8882613bce565b845260208401935050602081019050614677565b5050509392505050565b600082601f8301126146bd576146bc613fea565b5b81356146cd84826020860161463f565b91505092915050565b600080600080608085870312156146f0576146ef613ae8565b5b60006146fe87828801613d3e565b945050602085013567ffffffffffffffff81111561471f5761471e613aed565b5b61472b878288016140f1565b935050604085013567ffffffffffffffff81111561474c5761474b613aed565b5b614758878288016140f1565b925050606085013567ffffffffffffffff81111561477957614778613aed565b5b614785878288016146a8565b91505092959194509250565b6000806000606084860312156147aa576147a9613ae8565b5b600084013567ffffffffffffffff8111156147c8576147c7613aed565b5b6147d4868287016140f1565b935050602084013567ffffffffffffffff8111156147f5576147f4613aed565b5b614801868287016140f1565b925050604061481286828701613bce565b9150509250925092565b6000806040838503121561483357614832613ae8565b5b600061484185828601613d3e565b925050602061485285828601613d3e565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806148a357607f821691505b602082108114156148b7576148b661485c565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000614919602c83613c77565b9150614924826148bd565b604082019050919050565b600060208201905081810360008301526149488161490c565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006149ab602183613c77565b91506149b68261494f565b604082019050919050565b600060208201905081810360008301526149da8161499e565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b6000614a3d603883613c77565b9150614a48826149e1565b604082019050919050565b60006020820190508181036000830152614a6c81614a30565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b6000614afe603183613c77565b9150614b0982614aa2565b604082019050919050565b60006020820190508181036000830152614b2d81614af1565b9050919050565b7f4f776e657220696e646578206f7574206f6620626f756e647300000000000000600082015250565b6000614b6a601983613c77565b9150614b7582614b34565b602082019050919050565b60006020820190508181036000830152614b9981614b5d565b9050919050565b7f556e61626c6520746f2067657420746f6b656e206f66206f776e65722062792060008201527f696e646578000000000000000000000000000000000000000000000000000000602082015250565b6000614bfc602583613c77565b9150614c0782614ba0565b604082019050919050565b60006020820190508181036000830152614c2b81614bef565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000614c8e602f83613c77565b9150614c9982614c32565b604082019050919050565b60006020820190508181036000830152614cbd81614c81565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614cfa601f83613c77565b9150614d0582614cc4565b602082019050919050565b60006020820190508181036000830152614d2981614ced565b9050919050565b7f6e6f2062616c616e636500000000000000000000000000000000000000000000600082015250565b6000614d66600a83613c77565b9150614d7182614d30565b602082019050919050565b60006020820190508181036000830152614d9581614d59565b9050919050565b7f476c6f62616c20696e646578206f7574206f6620626f756e6473000000000000600082015250565b6000614dd2601a83613c77565b9150614ddd82614d9c565b602082019050919050565b60006020820190508181036000830152614e0181614dc5565b9050919050565b7f496e76616c6964206261736555726c0000000000000000000000000000000000600082015250565b6000614e3e600f83613c77565b9150614e4982614e08565b602082019050919050565b60006020820190508181036000830152614e6d81614e31565b9050919050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000614ed0602983613c77565b9150614edb82614e74565b604082019050919050565b60006020820190508181036000830152614eff81614ec3565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614f4082613bad565b9150614f4b83613bad565b925082821015614f5e57614f5d614f06565b5b828203905092915050565b6000614f7482613bad565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614fa757614fa6614f06565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600081905092915050565b6000614ff782613c6c565b6150018185614fe1565b9350615011818560208601613c88565b80840191505092915050565b60006150298284614fec565b915081905092915050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b6000615090602a83613c77565b915061509b82615034565b604082019050919050565b600060208201905081810360008301526150bf81615083565b9050919050565b7f416c6c206d696e74656400000000000000000000000000000000000000000000600082015250565b60006150fc600a83613c77565b9150615107826150c6565b602082019050919050565b6000602082019050818103600083015261512b816150ef565b9050919050565b7f496e762074797065206d696e74696e6700000000000000000000000000000000600082015250565b6000615168601083613c77565b915061517382615132565b602082019050919050565b600060208201905081810360008301526151978161515b565b9050919050565b7f496e76207479706520736f6c64206f7574000000000000000000000000000000600082015250565b60006151d4601183613c77565b91506151df8261519e565b602082019050919050565b60006020820190508181036000830152615203816151c7565b9050919050565b7f4d696e746564206d757374206265206c657373207468656e206f72206571756160008201527f6c20746f74616c00000000000000000000000000000000000000000000000000602082015250565b6000615266602783613c77565b91506152718261520a565b604082019050919050565b6000602082019050818103600083015261529581615259565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b60006152f8602f83613c77565b91506153038261529c565b604082019050919050565b60006020820190508181036000830152615327816152eb565b9050919050565b600061533a8285614fec565b91506153468284614fec565b91508190509392505050565b600061535d82613bad565b915061536883613bad565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561539d5761539c614f06565b5b828201905092915050565b7f4e6f6e65206c65667420746f206d696e74206261746368000000000000000000600082015250565b60006153de601783613c77565b91506153e9826153a8565b602082019050919050565b6000602082019050818103600083015261540d816153d1565b9050919050565b7f496e762074797065206973206e6f742061637469766500000000000000000000600082015250565b600061544a601683613c77565b915061545582615414565b602082019050919050565b600060208201905081810360008301526154798161543d565b9050919050565b7f4e6f6e65206c65667420696e20696e7620746f206d696e742062617463680000600082015250565b60006154b6601e83613c77565b91506154c182615480565b602082019050919050565b600060208201905081810360008301526154e5816154a9565b9050919050565b7f546f6b656e206964206973206e6f7420696e20696e7600000000000000000000600082015250565b6000615522601683613c77565b915061552d826154ec565b602082019050919050565b6000602082019050818103600083015261555181615515565b9050919050565b7f546f6b656e20616c7265616479206d696e746564000000000000000000000000600082015250565b600061558e601483613c77565b915061559982615558565b602082019050919050565b600060208201905081810360008301526155bd81615581565b9050919050565b60006155cf82613bad565b91506155da83613bad565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561561357615612614f06565b5b828202905092915050565b7f496e636f72726563742070726963650000000000000000000000000000000000600082015250565b6000615654600f83613c77565b915061565f8261561e565b602082019050919050565b6000602082019050818103600083015261568381615647565b9050919050565b6000819050919050565b60006156af6156aa6156a584613c10565b61568a565b613c10565b9050919050565b60006156c182615694565b9050919050565b60006156d3826156b6565b9050919050565b6156e3816156c8565b82525050565b600082825260208201905092915050565b600061570683856156e9565b93506157138385846140a0565b61571c83613cbb565b840190509392505050565b600060c0820190508181036000830152615741818a613ccc565b90506157506020830189613e73565b61575d6040830188613c42565b61576a6060830187613e73565b61577760808301866156da565b81810360a083015261578a8184866156fa565b905098975050505050505050565b60006157a382613bad565b915060008214156157b7576157b6614f06565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b60006157f8602083613c77565b9150615803826157c2565b602082019050919050565b60006020820190508181036000830152615827816157eb565b9050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b600061588a602c83613c77565b91506158958261582e565b604082019050919050565b600060208201905081810360008301526158b98161587d565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b600061591c602583613c77565b9150615927826158c0565b604082019050919050565b6000602082019050818103600083015261594b8161590f565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006159ae602483613c77565b91506159b982615952565b604082019050919050565b600060208201905081810360008301526159dd816159a1565b9050919050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000615a1a601783614fe1565b9150615a25826159e4565b601782019050919050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000615a66601183614fe1565b9150615a7182615a30565b601182019050919050565b6000615a8782615a0d565b9150615a938285614fec565b9150615a9e82615a59565b9150615aaa8284614fec565b91508190509392505050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000615aec601d83613c77565b9150615af782615ab6565b602082019050919050565b60006020820190508181036000830152615b1b81615adf565b9050919050565b600081905092915050565b50565b6000615b3d600083615b22565b9150615b4882615b2d565b600082019050919050565b6000615b5e82615b30565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000615bc4603a83613c77565b9150615bcf82615b68565b604082019050919050565b60006020820190508181036000830152615bf381615bb7565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000615c30601983613c77565b9150615c3b82615bfa565b602082019050919050565b60006020820190508181036000830152615c5f81615c23565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000615cc2603283613c77565b9150615ccd82615c66565b604082019050919050565b60006020820190508181036000830152615cf181615cb5565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000615d3282613bad565b9150615d3d83613bad565b925082615d4d57615d4c615cf8565b5b828204905092915050565b6000615d6382613bad565b9150615d6e83613bad565b925082615d7e57615d7d615cf8565b5b828206905092915050565b600081519050919050565b6000615d9f82615d89565b615da981856156e9565b9350615db9818560208601613c88565b615dc281613cbb565b840191505092915050565b6000608082019050615de26000830187613c42565b615def6020830186613c42565b615dfc6040830185613e73565b8181036060830152615e0e8184615d94565b905095945050505050565b600081519050615e2881613b1e565b92915050565b600060208284031215615e4457615e43613ae8565b5b6000615e5284828501615e19565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615e91602083613c77565b9150615e9c82615e5b565b602082019050919050565b60006020820190508181036000830152615ec081615e84565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615efd601c83613c77565b9150615f0882615ec7565b602082019050919050565b60006020820190508181036000830152615f2c81615ef0565b905091905056fea26469706673582212202eb13c8a607ff42976fa06ad32eb0ac52c1d5fc5559c1f4316bddf0b9d41031764736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000003b68747470733a2f2f6d657461646174612e766565667269656e64732e636f6d2f636f6c6c656374696f6e732f736572696573322f746f6b656e732f00000000000000000000000000000000000000000000000000000000000000000000000013566565467269656e64732053657269657320320000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035646320000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : initialBaseUri (string): https://metadata.veefriends.com/collections/series2/tokens/
Arg [1] : contractName (string): VeeFriends Series 2
Arg [2] : contractSymbol (string): VF2
-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [3] : 000000000000000000000000000000000000000000000000000000000000003b
Arg [4] : 68747470733a2f2f6d657461646174612e766565667269656e64732e636f6d2f
Arg [5] : 636f6c6c656374696f6e732f736572696573322f746f6b656e732f0000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000013
Arg [7] : 566565467269656e647320536572696573203200000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [9] : 5646320000000000000000000000000000000000000000000000000000000000
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.