Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
574 MICE-CHEESE-CLUB
Holders
86
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
5 MICE-CHEESE-CLUBLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
AnonymiceCheeseClub
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity ^0.8.4; import "@openzeppelin/contracts/access/Ownable.sol"; import '@openzeppelin/contracts/utils/math/SafeMath.sol'; import '@openzeppelin/contracts/interfaces/IERC721.sol'; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "./AnonymiceLibrary.sol"; import "./OriginalAnonymiceInterface.sol"; // // ╔═╗┌┐┌┌─┐┌┐┌┬ ┬┌┬┐┬┌─┐┌─┐ ╔═╗┬ ┬┌─┐┌─┐┌─┐┌─┐ ╔═╗┬ ┬ ┬┌┐ // ╠═╣││││ ││││└┬┘│││││ ├┤ ║ ├─┤├┤ ├┤ └─┐├┤ ║ │ │ │├┴┐ // ╩ ╩┘└┘└─┘┘└┘ ┴ ┴ ┴┴└─┘└─┘ ╚═╝┴ ┴└─┘└─┘└─┘└─┘ ╚═╝┴─┘└─┘└─┘ // // Own Burned Anonymice and create an exclusive Cheese Club! // Minting dApp on anonymicecheese.club // // We know other projects tried to do this before and failed. So we fixed all their issues and // we're ready to let you own those mice. // Cheese club will be the heart of those 6,450 burned mice. // contract AnonymiceCheeseClub is ERC721Enumerable, Ownable { using AnonymiceLibrary for uint8; //Mappings uint16[6450] internal tokenToOriginalMiceId; uint256 internal nextOriginalMiceToLoad = 0; OriginalAnonymiceInterface.Trait[] internal burnedTraitType; //uint256s uint256 MAX_SUPPLY = 6450; uint256 FREE_MINTS = 500; uint256 PRICE = .02 ether; //addresses address anonymiceContract = 0xbad6186E92002E312078b5a1dAfd5ddf63d3f731; //string arrays string[] LETTERS = [ "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z" ]; //events event TokenMinted(uint256 supply); constructor() ERC721("Anonymice Cheese Club", "MICE-CHEESE-CLUB") { } // ███╗ ███╗██╗███╗ ██╗████████╗██╗███╗ ██╗ ██████╗ // ████╗ ████║██║████╗ ██║╚══██╔══╝██║████╗ ██║██╔════╝ // ██╔████╔██║██║██╔██╗ ██║ ██║ ██║██╔██╗ ██║██║ ███╗ // ██║╚██╔╝██║██║██║╚██╗██║ ██║ ██║██║╚██╗██║██║ ██║ // ██║ ╚═╝ ██║██║██║ ╚████║ ██║ ██║██║ ╚████║╚██████╔╝ // ╚═╝ ╚═╝╚═╝╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝ /** * @dev Loads the IDs of burned mices * @param _howMany The number of mices to load. Starts from the last loaded */ function _loadOriginalMices(uint256 _howMany) internal { require(nextOriginalMiceToLoad <= MAX_SUPPLY, "All possible mices loaded"); ERC721Enumerable originalMiceCollection = ERC721Enumerable(anonymiceContract); uint start = nextOriginalMiceToLoad; for (uint i=start; (i<start+_howMany && i<MAX_SUPPLY); i++) { uint id = originalMiceCollection.tokenOfOwnerByIndex(0x000000000000000000000000000000000000dEaD, i); tokenToOriginalMiceId[i] = uint16(id); } nextOriginalMiceToLoad = start + _howMany; } /** * @dev Mint internal, this is to avoid code duplication. */ function mintInternal(uint256 num_tokens, address to) internal { uint256 _totalSupply = totalSupply(); require(_totalSupply < MAX_SUPPLY, 'Sale would exceed max supply'); require(!AnonymiceLibrary.isContract(msg.sender)); if ((num_tokens + _totalSupply) > MAX_SUPPLY) { num_tokens = MAX_SUPPLY - _totalSupply; } _loadOriginalMices(num_tokens); for (uint i=0; i < num_tokens; i++) { _safeMint(to, _totalSupply); emit TokenMinted(_totalSupply); _totalSupply = _totalSupply + 1; } } /** * @dev Mints new tokens. */ function mint(address _to, uint _count) public payable { uint _totalSupply = totalSupply(); if (_totalSupply > FREE_MINTS) { require(PRICE*_count <= msg.value, 'Not enough ether sent (send 0.03 eth for each mice you want to mint)'); } return mintInternal(_count, _to); } /** * @dev Kills the mice again, this time forever. * @param _tokenId The token to burn. */ function killForever(uint256 _tokenId) public { require(ownerOf(_tokenId) == msg.sender); //Burn token _transfer( msg.sender, 0x000000000000000000000000000000000000dEaD, _tokenId ); } // ██████╗ ███████╗ █████╗ ██████╗ // ██╔══██╗██╔════╝██╔══██╗██╔══██╗ // ██████╔╝█████╗ ███████║██║ ██║ // ██╔══██╗██╔══╝ ██╔══██║██║ ██║ // ██║ ██║███████╗██║ ██║██████╔╝ // ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ /** * @dev Helper function to reduce pixel size within contract */ function letterToNumber(string memory _inputLetter) internal view returns (uint8) { for (uint8 i = 0; i < LETTERS.length; i++) { if ( keccak256(abi.encodePacked((LETTERS[i]))) == keccak256(abi.encodePacked((_inputLetter))) ) return (i + 1); } revert(); } /** * @dev Hash to SVG function */ function hashToSVG(string memory _hash) public view returns (string memory) { string memory svgString; bool[24][24] memory placedPixels; OriginalAnonymiceInterface originalMiceCollection = OriginalAnonymiceInterface(anonymiceContract); for (uint8 i = 0; i < 9; i++) { uint8 thisTraitIndex = AnonymiceLibrary.parseInt( AnonymiceLibrary.substring(_hash, i, i + 1) ); OriginalAnonymiceInterface.Trait memory trait; if (i == 0) { trait = OriginalAnonymiceInterface.Trait( burnedTraitType[thisTraitIndex].traitName, burnedTraitType[thisTraitIndex].traitType, burnedTraitType[thisTraitIndex].pixels, burnedTraitType[thisTraitIndex].pixelCount ); } else { (string memory traitName, string memory traitType, string memory pixels, uint pixelCount) = originalMiceCollection.traitTypes(i, thisTraitIndex); trait = OriginalAnonymiceInterface.Trait( traitName, traitType, pixels, pixelCount ); } for ( uint16 j = 0; j < trait.pixelCount; j++ ) { string memory thisPixel = AnonymiceLibrary.substring( trait.pixels, j * 4, j * 4 + 4 ); uint8 x = letterToNumber( AnonymiceLibrary.substring(thisPixel, 0, 1) ); uint8 y = letterToNumber( AnonymiceLibrary.substring(thisPixel, 1, 2) ); if (placedPixels[x][y]) continue; svgString = string( abi.encodePacked( svgString, "<rect class='c", AnonymiceLibrary.substring(thisPixel, 2, 4), "' x='", x.toString(), "' y='", y.toString(), "'/>" ) ); placedPixels[x][y] = true; } } svgString = string( abi.encodePacked( '<svg id="mouse-svg" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMinYMin meet" viewBox="0 0 24 24"> ', svgString, "<style>rect{width:1px;height:1px;} #mouse-svg{shape-rendering: crispedges;} .c00{fill:#000000}.c01{fill:#B1ADAC}.c02{fill:#D7D7D7}.c03{fill:#FFA6A6}.c04{fill:#FFD4D5}.c05{fill:#B9AD95}.c06{fill:#E2D6BE}.c07{fill:#7F625A}.c08{fill:#A58F82}.c09{fill:#4B1E0B}.c10{fill:#6D2C10}.c11{fill:#D8D8D8}.c12{fill:#F5F5F5}.c13{fill:#433D4B}.c14{fill:#8D949C}.c15{fill:#05FF00}.c16{fill:#01C700}.c17{fill:#0B8F08}.c18{fill:#421C13}.c19{fill:#6B392A}.c20{fill:#A35E40}.c21{fill:#DCBD91}.c22{fill:#777777}.c23{fill:#848484}.c24{fill:#ABABAB}.c25{fill:#BABABA}.c26{fill:#C7C7C7}.c27{fill:#EAEAEA}.c28{fill:#0C76AA}.c29{fill:#0E97DB}.c30{fill:#10A4EC}.c31{fill:#13B0FF}.c32{fill:#2EB9FE}.c33{fill:#54CCFF}.c34{fill:#50C0F2}.c35{fill:#54CCFF}.c36{fill:#72DAFF}.c37{fill:#B6EAFF}.c38{fill:#FFFFFF}.c39{fill:#954546}.c40{fill:#0B87F7}.c41{fill:#FF2626}.c42{fill:#180F02}.c43{fill:#2B2319}.c44{fill:#FBDD4B}.c45{fill:#F5B923}.c46{fill:#CC8A18}.c47{fill:#3C2203}.c48{fill:#53320B}.c49{fill:#7B501D}.c50{fill:#FFE646}.c51{fill:#FFD627}.c52{fill:#F5B700}.c53{fill:#242424}.c54{fill:#4A4A4A}.c55{fill:#676767}.c56{fill:#F08306}.c57{fill:#FCA30E}.c58{fill:#FEBC0E}.c59{fill:#FBEC1C}.c60{fill:#14242F}.c61{fill:#B06837}.c62{fill:#8F4B0E}.c63{fill:#D88227}.c64{fill:#B06837}.c65{fill:#FFEB3B}.c66{fill:#FFC107}</style></svg>" ) ); return svgString; } /** * @dev Hash to metadata function */ function hashToMetadata(string memory _hash, uint _tokenId) public view returns (string memory) { string memory metadataString; OriginalAnonymiceInterface originalMiceCollection = OriginalAnonymiceInterface(anonymiceContract); for (uint8 i = 0; i < 9; i++) { uint8 thisTraitIndex = AnonymiceLibrary.parseInt( AnonymiceLibrary.substring(_hash, i, i + 1) ); OriginalAnonymiceInterface.Trait memory trait; if (i == 0) { trait = OriginalAnonymiceInterface.Trait( burnedTraitType[thisTraitIndex].traitName, burnedTraitType[thisTraitIndex].traitType, burnedTraitType[thisTraitIndex].pixels, burnedTraitType[thisTraitIndex].pixelCount ); } else { (string memory traitName, string memory traitType, string memory pixels, uint pixelCount) = originalMiceCollection.traitTypes(i, thisTraitIndex); trait = OriginalAnonymiceInterface.Trait( traitName, traitType, pixels, pixelCount ); } metadataString = string( abi.encodePacked( metadataString, '{"trait_type":"', trait.traitType, '","value":"', trait.traitName, '"}' ) ); if (i != 8) metadataString = string(abi.encodePacked(metadataString, ",")); } // add the property of original token id number metadataString = string( abi.encodePacked( metadataString, ',{"trait_type":"', 'Original Mice Token Id', '","value":"', AnonymiceLibrary.toString(tokenToOriginalMiceId[_tokenId]), '"}' ) ); return string(abi.encodePacked("[", metadataString, "]")); } /** * @dev Returns the SVG and metadata for a token Id * @param _tokenId The tokenId to return the SVG and metadata for. */ function tokenURI(uint256 _tokenId) public view override returns (string memory) { require(_exists(_tokenId)); string memory tokenHash = _tokenIdToHash(_tokenId); return string( abi.encodePacked( "data:application/json;base64,", AnonymiceLibrary.encode( bytes( string( abi.encodePacked( '{"name": "Anonymice #', AnonymiceLibrary.toString(_tokenId), '", "description": "Anonymice Cheese Club is a collection of 6,450 mice burned in the original Anonymice collection. They preserve the same traits of the burned ones, with metadata and images generated and stored 100% on-chain. No IPFS, no API. Just the Ethereum blockchain.", "image": "data:image/svg+xml;base64,', AnonymiceLibrary.encode( bytes(hashToSVG(tokenHash)) ), '","attributes":', hashToMetadata(tokenHash, _tokenId), "}" ) ) ) ) ) ); } /** * @dev Returns a hash for a given tokenId * @param _tokenId The tokenId to return the hash for. */ function _tokenIdToHash(uint256 _tokenId) public view returns (string memory) { OriginalAnonymiceInterface originalMiceCollection = OriginalAnonymiceInterface(anonymiceContract); string memory tokenHash = originalMiceCollection._tokenIdToHash(uint256(tokenToOriginalMiceId[_tokenId])); //If this is a burned token, override the previous hash if (ownerOf(_tokenId) == 0x000000000000000000000000000000000000dEaD) { tokenHash = string( abi.encodePacked( "1", AnonymiceLibrary.substring(tokenHash, 1, 9) ) ); } else { tokenHash = string( abi.encodePacked( "0", AnonymiceLibrary.substring(tokenHash, 1, 9) ) ); } return tokenHash; } /** * @dev Returns the wallet of a given wallet. Mainly for ease for frontend devs. * @param _wallet The wallet to get the tokens of. */ function walletOfOwner(address _wallet) public view returns (uint256[] memory) { uint256 tokenCount = balanceOf(_wallet); uint256[] memory tokensId = new uint256[](tokenCount); for (uint256 i; i < tokenCount; i++) { tokensId[i] = tokenOfOwnerByIndex(_wallet, i); } return tokensId; } // ██████╗ ██╗ ██╗███╗ ██╗███████╗██████╗ // ██╔═══██╗██║ ██║████╗ ██║██╔════╝██╔══██╗ // ██║ ██║██║ █╗ ██║██╔██╗ ██║█████╗ ██████╔╝ // ██║ ██║██║███╗██║██║╚██╗██║██╔══╝ ██╔══██╗ // ╚██████╔╝╚███╔███╔╝██║ ╚████║███████╗██║ ██║ // ╚═════╝ ╚══╝╚══╝ ╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝ /** * @dev Clears the traits. */ function clearBurnedTraits() public onlyOwner { for (uint256 i = 0; i < burnedTraitType.length; i++) { delete burnedTraitType[i]; } } /** * @dev Add trait types of burned * @param traits Array of traits to add */ function addBurnedTraitType(OriginalAnonymiceInterface.Trait[] memory traits) public onlyOwner { for (uint256 i = 0; i < traits.length; i++) { burnedTraitType.push( OriginalAnonymiceInterface.Trait( traits[i].traitName, traits[i].traitType, traits[i].pixels, traits[i].pixelCount ) ); } return; } /** * @dev Collects the total amount in the contract */ function withdraw() public onlyOwner { uint256 balance = address(this).balance; payable(msg.sender).transfer(balance); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../token/ERC721/IERC721.sol";
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.4; library AnonymiceLibrary { string internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; function encode(bytes memory data) internal pure returns (string memory) { if (data.length == 0) return ""; // load the table into memory string memory table = TABLE; // multiply by 4/3 rounded up uint256 encodedLen = 4 * ((data.length + 2) / 3); // add some extra buffer at the end required for the writing string memory result = new string(encodedLen + 32); assembly { // set the actual output length mstore(result, encodedLen) // prepare the lookup table let tablePtr := add(table, 1) // input ptr let dataPtr := data let endPtr := add(dataPtr, mload(data)) // result ptr, jump over length let resultPtr := add(result, 32) // run over the input, 3 bytes at a time for { } lt(dataPtr, endPtr) { } { dataPtr := add(dataPtr, 3) // read 3 bytes let input := mload(dataPtr) // write 4 characters mstore( resultPtr, shl(248, mload(add(tablePtr, and(shr(18, input), 0x3F)))) ) resultPtr := add(resultPtr, 1) mstore( resultPtr, shl(248, mload(add(tablePtr, and(shr(12, input), 0x3F)))) ) resultPtr := add(resultPtr, 1) mstore( resultPtr, shl(248, mload(add(tablePtr, and(shr(6, input), 0x3F)))) ) resultPtr := add(resultPtr, 1) mstore( resultPtr, shl(248, mload(add(tablePtr, and(input, 0x3F)))) ) resultPtr := add(resultPtr, 1) } // padding with '=' switch mod(mload(data), 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } } return result; } /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { 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); } function parseInt(string memory _a) internal pure returns (uint8 _parsedInt) { bytes memory bresult = bytes(_a); uint8 mint = 0; for (uint8 i = 0; i < bresult.length; i++) { if ( (uint8(uint8(bresult[i])) >= 48) && (uint8(uint8(bresult[i])) <= 57) ) { mint *= 10; mint += uint8(bresult[i]) - 48; } } return mint; } function substring( string memory str, uint256 startIndex, uint256 endIndex ) internal pure returns (string memory) { bytes memory strBytes = bytes(str); bytes memory result = new bytes(endIndex - startIndex); for (uint256 i = startIndex; i < endIndex; i++) { result[i - startIndex] = strBytes[i]; } return string(result); } function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } }
pragma solidity ^0.8.4; interface OriginalAnonymiceInterface { struct Trait { string traitName; string traitType; string pixels; uint256 pixelCount; } function _tokenIdToHash(uint _tokenId) external view returns (string memory); function traitTypes(uint a, uint b) external view returns (string memory, string memory, string memory, uint); }
// SPDX-License-Identifier: MIT 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 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 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 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 { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //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); } /** * @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); } /** * @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 of token that is not own"); 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); } /** * @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 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 {} }
// SPDX-License-Identifier: MIT 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 tokenId); /** * @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 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 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 pragma solidity ^0.8.0; /** * @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 * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 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 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 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; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"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":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"supply","type":"uint256"}],"name":"TokenMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"_tokenIdToHash","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"string","name":"traitName","type":"string"},{"internalType":"string","name":"traitType","type":"string"},{"internalType":"string","name":"pixels","type":"string"},{"internalType":"uint256","name":"pixelCount","type":"uint256"}],"internalType":"struct OriginalAnonymiceInterface.Trait[]","name":"traits","type":"tuple[]"}],"name":"addBurnedTraitType","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"clearBurnedTraits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_hash","type":"string"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"hashToMetadata","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_hash","type":"string"}],"name":"hashToSVG","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"uint256","name":"_tokenId","type":"uint256"}],"name":"killForever","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
600061019f556119326101a1556101f46101a25566470de4df8200006101a3556101a480546001600160a01b03191673bad6186e92002e312078b5a1dafd5ddf63d3f73117905560016103c0818152606160f81b6103e0526080908152610400828152603160f91b6104205260a052610440828152606360f81b6104605260c052610480828152601960fa1b6104a05260e0526104c0828152606560f81b6104e05261010052610500828152603360f91b6105205261012052610540828152606760f81b6105605261014052610580828152600d60fb1b6105a052610160526105c0828152606960f81b6105e05261018052610600828152603560f91b610620526101a052610640828152606b60f81b610660526101c052610680828152601b60fa1b6106a0526101e0526106c0828152606d60f81b6106e05261020052610700828152603760f91b6107205261022052610740828152606f60f81b6107605261024052610780828152600760fc1b6107a052610260526107c0828152607160f81b6107e05261028052610800828152603960f91b610820526102a052610840828152607360f81b610860526102c052610880828152601d60fa1b6108a0526102e0526108c0828152607560f81b6108e05261030052610900828152603b60f91b6109205261032052610940828152607760f81b6109605261034052610980828152600f60fb1b6109a052610360526109c0828152607960f81b6109e05261038052610a40604052610a00918252603d60f91b610a20526103a0919091526200024e906101a590601a62000359565b503480156200025c57600080fd5b50604080518082018252601581527f416e6f6e796d6963652043686565736520436c7562000000000000000000000060208083019182528351808501909452601084526f26a4a1a296a1a422a2a9a296a1a62aa160811b908401528151919291620002ca91600091620003bd565b508051620002e0906001906020840190620003bd565b505050620002fd620002f76200030360201b60201c565b62000307565b620004ff565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054828255906000526020600020908101928215620003ab579160200282015b82811115620003ab57825180516200039a918491602090910190620003bd565b50916020019190600101906200037a565b50620003b992915062000448565b5090565b828054620003cb90620004c2565b90600052602060002090601f016020900481019282620003ef57600085556200043a565b82601f106200040a57805160ff19168380011785556200043a565b828001600101855582156200043a579182015b828111156200043a5782518255916020019190600101906200041d565b50620003b992915062000469565b80821115620003b95760006200045f828262000480565b5060010162000448565b5b80821115620003b957600081556001016200046a565b5080546200048e90620004c2565b6000825580601f106200049f575050565b601f016020900490600052602060002090810190620004bf919062000469565b50565b600181811c90821680620004d757607f821691505b60208210811415620004f957634e487b7160e01b600052602260045260246000fd5b50919050565b6144a9806200050f6000396000f3fe6080604052600436106101b65760003560e01c8063564acc3a116100ec578063a22cb4651161008a578063b9e6cfad11610064578063b9e6cfad146104c1578063c87b56dd146104e1578063e985e9c514610501578063f2fde38b1461054a57600080fd5b8063a22cb46514610461578063aee1bef414610481578063b88d4fde146104a157600080fd5b8063715018a6116100c6578063715018a6146103f957806389ce30741461040e5780638da5cb5b1461042e57806395d89b411461044c57600080fd5b8063564acc3a146103a45780636352211e146103b957806370a08231146103d957600080fd5b806323b872dd1161015957806340c10f191161013357806340c10f191461032457806342842e0e14610337578063438b6300146103575780634f6ccce71461038457600080fd5b806323b872dd146102cf5780632f745c59146102ef5780633ccfd60b1461030f57600080fd5b8063081812fc11610195578063081812fc14610236578063095ea7b31461026e5780630b7fe9b51461029057806318160ddd146102b057600080fd5b80625ea307146101bb57806301ffc9a7146101f157806306fdde0314610221575b600080fd5b3480156101c757600080fd5b506101db6101d6366004613358565b61056a565b6040516101e89190614076565b60405180910390f35b3480156101fd57600080fd5b5061021161020c3660046131ef565b6106c2565b60405190151581526020016101e8565b34801561022d57600080fd5b506101db6106ed565b34801561024257600080fd5b50610256610251366004613358565b61077f565b6040516001600160a01b0390911681526020016101e8565b34801561027a57600080fd5b5061028e610289366004613105565b610819565b005b34801561029c57600080fd5b5061028e6102ab366004613358565b61092f565b3480156102bc57600080fd5b506008545b6040519081526020016101e8565b3480156102db57600080fd5b5061028e6102ea366004613018565b61095c565b3480156102fb57600080fd5b506102c161030a366004613105565b61098d565b34801561031b57600080fd5b5061028e610a23565b61028e610332366004613105565b610a80565b34801561034357600080fd5b5061028e610352366004613018565b610b34565b34801561036357600080fd5b50610377610372366004612fcc565b610b4f565b6040516101e89190614032565b34801561039057600080fd5b506102c161039f366004613358565b610c0c565b3480156103b057600080fd5b5061028e610cad565b3480156103c557600080fd5b506102566103d4366004613358565b610d59565b3480156103e557600080fd5b506102c16103f4366004612fcc565b610dd0565b34801561040557600080fd5b5061028e610e57565b34801561041a57600080fd5b506101db610429366004613227565b610e8d565b34801561043a57600080fd5b50600a546001600160a01b0316610256565b34801561045857600080fd5b506101db611429565b34801561046d57600080fd5b5061028e61047c3660046130cb565b611438565b34801561048d57600080fd5b5061028e61049c36600461312e565b6114fd565b3480156104ad57600080fd5b5061028e6104bc366004613053565b611687565b3480156104cd57600080fd5b506101db6104dc366004613316565b6116bf565b3480156104ed57600080fd5b506101db6104fc366004613358565b611b7c565b34801561050d57600080fd5b5061021161051c366004612fe6565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561055657600080fd5b5061028e610565366004612fcc565b611c21565b6101a4546060906001600160a01b0316600081625ea307600b8661193281106105a357634e487b7160e01b600052603260045260246000fd5b601091828204019190066002029054906101000a900461ffff1661ffff166040518263ffffffff1660e01b81526004016105df91815260200190565b60006040518083038186803b1580156105f757600080fd5b505afa15801561060b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526106339190810190613259565b905061063e84610d59565b6001600160a01b031661dead6001600160a01b0316141561068c576106668160016009611cb9565b6040516020016106769190613fe3565b60405160208183030381529060405290506106bb565b6106998160016009611cb9565b6040516020016106a99190613666565b60405160208183030381529060405290505b9392505050565b60006001600160e01b0319821663780e9d6360e01b14806106e757506106e782611daf565b92915050565b6060600080546106fc9061432f565b80601f01602080910402602001604051908101604052809291908181526020018280546107289061432f565b80156107755780601f1061074a57610100808354040283529160200191610775565b820191906000526020600020905b81548152906001019060200180831161075857829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166107fd5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061082482610d59565b9050806001600160a01b0316836001600160a01b031614156108925760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107f4565b336001600160a01b03821614806108ae57506108ae813361051c565b6109205760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107f4565b61092a8383611dff565b505050565b3361093982610d59565b6001600160a01b03161461094c57600080fd5b6109593361dead83611e6d565b50565b6109663382612018565b6109825760405162461bcd60e51b81526004016107f490614110565b61092a838383611e6d565b600061099883610dd0565b82106109fa5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016107f4565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b03163314610a4d5760405162461bcd60e51b81526004016107f4906140db565b6040514790339082156108fc029083906000818181858888f19350505050158015610a7c573d6000803e3d6000fd5b5050565b6000610a8b60085490565b90506101a254811115610b2a5734826101a354610aa89190614281565b1115610b2a5760405162461bcd60e51b8152602060048201526044602482018190527f4e6f7420656e6f7567682065746865722073656e74202873656e6420302e3033908201527f2065746820666f722065616368206d69636520796f752077616e7420746f206d606482015263696e742960e01b608482015260a4016107f4565b61092a828461210f565b61092a83838360405180602001604052806000815250611687565b60606000610b5c83610dd0565b90506000816001600160401b03811115610b8657634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610baf578160200160208202803683370190505b50905060005b82811015610c0457610bc7858261098d565b828281518110610be757634e487b7160e01b600052603260045260246000fd5b602090810291909101015280610bfc8161438c565b915050610bb5565b509392505050565b6000610c1760085490565b8210610c7a5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016107f4565b60088281548110610c9b57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b600a546001600160a01b03163314610cd75760405162461bcd60e51b81526004016107f4906140db565b60005b6101a054811015610959576101a08181548110610d0757634e487b7160e01b600052603260045260246000fd5b60009182526020822060049091020190610d218282612d54565b610d2f600183016000612d54565b610d3d600283016000612d54565b5060006003919091015580610d518161438c565b915050610cda565b6000818152600260205260408120546001600160a01b0316806106e75760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016107f4565b60006001600160a01b038216610e3b5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016107f4565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03163314610e815760405162461bcd60e51b81526004016107f4906140db565b610e8b6000612210565b565b606080610e98612d8e565b6101a4546001600160a01b031660005b60098160ff1610156113fe576000610ed9610ed48860ff8516610ecc86600161421e565b60ff16611cb9565b612262565b9050610f066040518060800160405280606081526020016060815260200160608152602001600081525090565b60ff83166111a65760405180608001604052806101a08460ff1681548110610f3e57634e487b7160e01b600052603260045260246000fd5b90600052602060002090600402016000018054610f5a9061432f565b80601f0160208091040260200160405190810160405280929190818152602001828054610f869061432f565b8015610fd35780601f10610fa857610100808354040283529160200191610fd3565b820191906000526020600020905b815481529060010190602001808311610fb657829003601f168201915b505050505081526020016101a08460ff168154811061100257634e487b7160e01b600052603260045260246000fd5b9060005260206000209060040201600101805461101e9061432f565b80601f016020809104026020016040519081016040528092919081815260200182805461104a9061432f565b80156110975780601f1061106c57610100808354040283529160200191611097565b820191906000526020600020905b81548152906001019060200180831161107a57829003601f168201915b505050505081526020016101a08460ff16815481106110c657634e487b7160e01b600052603260045260246000fd5b906000526020600020906004020160020180546110e29061432f565b80601f016020809104026020016040519081016040528092919081815260200182805461110e9061432f565b801561115b5780601f106111305761010080835404028352916020019161115b565b820191906000526020600020905b81548152906001019060200180831161113e57829003601f168201915b505050505081526020016101a08460ff168154811061118a57634e487b7160e01b600052603260045260246000fd5b906000526020600020906004020160030154815250905061125a565b6040516317d84c6960e11b815260ff8085166004830152831660248201526000908190819081906001600160a01b03891690632fb098d29060440160006040518083038186803b1580156111f957600080fd5b505afa15801561120d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611235919081019061328b565b6040805160808101825294855260208501939093529183015260608201529450505050505b60005b81606001518161ffff1610156113e85760006112a783604001518360046112849190614257565b61ffff16611293856004614257565b61129e9060046141e0565b61ffff16611cb9565b905060006112c06112bb8360006001611cb9565b612342565b905060006112d46112bb8460016002611cb9565b9050888260ff16601881106112f957634e487b7160e01b600052603260045260246000fd5b60200201518160ff166018811061132057634e487b7160e01b600052603260045260246000fd5b602002015115611332575050506113d6565b896113408460026004611cb9565b61134c8460ff166123f9565b6113588460ff166123f9565b60405160200161136b9493929190613411565b60405160208183030381529060405299506001898360ff16601881106113a157634e487b7160e01b600052603260045260246000fd5b60200201518260ff16601881106113c857634e487b7160e01b600052603260045260246000fd5b911515602090920201525050505b806113e08161436a565b91505061125d565b50505080806113f6906143a7565b915050610ea8565b50826040516020016114109190613891565b60408051601f1981840301815291905295945050505050565b6060600180546106fc9061432f565b6001600160a01b0382163314156114915760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107f4565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a546001600160a01b031633146115275760405162461bcd60e51b81526004016107f4906140db565b60005b8151811015610a7c576101a0604051806080016040528084848151811061156157634e487b7160e01b600052603260045260246000fd5b602002602001015160000151815260200184848151811061159257634e487b7160e01b600052603260045260246000fd5b60200260200101516020015181526020018484815181106115c357634e487b7160e01b600052603260045260246000fd5b60200260200101516040015181526020018484815181106115f457634e487b7160e01b600052603260045260246000fd5b602090810291909101810151606001519091528254600181018455600093845292819020825180519394600402909101926116329284920190612dbc565b50602082810151805161164b9260018501920190612dbc565b5060408201518051611667916002840191602090910190612dbc565b50606082015181600301555050808061167f9061438c565b91505061152a565b6116913383612018565b6116ad5760405162461bcd60e51b81526004016107f490614110565b6116b984848484612512565b50505050565b6101a45460609081906001600160a01b031660005b60098160ff161015611ae65760006116f8610ed48860ff8516610ecc86600161421e565b90506117256040518060800160405280606081526020016060815260200160608152602001600081525090565b60ff83166119c55760405180608001604052806101a08460ff168154811061175d57634e487b7160e01b600052603260045260246000fd5b906000526020600020906004020160000180546117799061432f565b80601f01602080910402602001604051908101604052809291908181526020018280546117a59061432f565b80156117f25780601f106117c7576101008083540402835291602001916117f2565b820191906000526020600020905b8154815290600101906020018083116117d557829003601f168201915b505050505081526020016101a08460ff168154811061182157634e487b7160e01b600052603260045260246000fd5b9060005260206000209060040201600101805461183d9061432f565b80601f01602080910402602001604051908101604052809291908181526020018280546118699061432f565b80156118b65780601f1061188b576101008083540402835291602001916118b6565b820191906000526020600020905b81548152906001019060200180831161189957829003601f168201915b505050505081526020016101a08460ff16815481106118e557634e487b7160e01b600052603260045260246000fd5b906000526020600020906004020160020180546119019061432f565b80601f016020809104026020016040519081016040528092919081815260200182805461192d9061432f565b801561197a5780601f1061194f5761010080835404028352916020019161197a565b820191906000526020600020905b81548152906001019060200180831161195d57829003601f168201915b505050505081526020016101a08460ff16815481106119a957634e487b7160e01b600052603260045260246000fd5b9060005260206000209060040201600301548152509050611a79565b6040516317d84c6960e11b815260ff8085166004830152831660248201526000908190819081906001600160a01b03891690632fb098d29060440160006040518083038186803b158015611a1857600080fd5b505afa158015611a2c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611a54919081019061328b565b6040805160808101825294855260208501939093529183015260608201529450505050505b6020808201518251604051611a929389939291016134b8565b60405160208183030381529060405294508260ff16600814611ad15784604051602001611abf91906133ec565b60405160208183030381529060405294505b50508080611ade906143a7565b9150506116d4565b5081611b30600b866119328110611b0d57634e487b7160e01b600052603260045260246000fd5b601091828204019190066002029054906101000a900461ffff1661ffff166123f9565b604051602001611b4192919061353e565b604051602081830303815290604052915081604051602001611b639190613f6a565b6040516020818303038152906040529250505092915050565b6000818152600260205260409020546060906001600160a01b0316611ba057600080fd5b6000611bab8361056a565b9050611bfa611bb9846123f9565b611bca611bc584610e8d565b612545565b611bd484876116bf565b604051602001611be69392919061368f565b604051602081830303815290604052612545565b604051602001611c0a9190613f9e565b604051602081830303815290604052915050919050565b600a546001600160a01b03163314611c4b5760405162461bcd60e51b81526004016107f4906140db565b6001600160a01b038116611cb05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107f4565b61095981612210565b6060836000611cc885856142c9565b6001600160401b03811115611ced57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611d17576020820181803683370190505b509050845b84811015611da557828181518110611d4457634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b03191682611d5e88846142c9565b81518110611d7c57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535080611d9d8161438c565b915050611d1c565b5095945050505050565b60006001600160e01b031982166380ac58cd60e01b1480611de057506001600160e01b03198216635b5e139f60e01b145b806106e757506301ffc9a760e01b6001600160e01b03198316146106e7565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611e3482610d59565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b826001600160a01b0316611e8082610d59565b6001600160a01b031614611ee85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016107f4565b6001600160a01b038216611f4a5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107f4565b611f558383836126ba565b611f60600082611dff565b6001600160a01b0383166000908152600360205260408120805460019290611f899084906142c9565b90915550506001600160a01b0382166000908152600360205260408120805460019290611fb7908490614206565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000818152600260205260408120546001600160a01b03166120915760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107f4565b600061209c83610d59565b9050806001600160a01b0316846001600160a01b031614806120d75750836001600160a01b03166120cc8461077f565b6001600160a01b0316145b8061210757506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b600061211a60085490565b90506101a154811061216e5760405162461bcd60e51b815260206004820152601c60248201527f53616c6520776f756c6420657863656564206d617820737570706c790000000060448201526064016107f4565b333b1561217a57600080fd5b6101a1546121888285614206565b11156121a057806101a15461219d91906142c9565b92505b6121a983612772565b60005b838110156116b9576121be83836128f2565b6040518281527ff00d28232b285f24f2e38415deb2ceb31069e70d4505838b3911b4f02058502e9060200160405180910390a16121fc826001614206565b9150806122088161438c565b9150506121ac565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008181805b82518160ff161015610c04576030838260ff168151811061229957634e487b7160e01b600052603260045260246000fd5b016020015160f81c108015906122da57506039838260ff16815181106122cf57634e487b7160e01b600052603260045260246000fd5b016020015160f81c11155b15612330576122ea600a836142a0565b91506030838260ff168151811061231157634e487b7160e01b600052603260045260246000fd5b0160200151612323919060f81c6142e0565b61232d908361421e565b91505b8061233a816143a7565b915050612268565b6000805b6101a55460ff821610156123f3578260405160200161236591906133d0565b604051602081830303815290604052805190602001206101a58260ff16815481106123a057634e487b7160e01b600052603260045260246000fd5b906000526020600020016040516020016123ba91906135cb565b6040516020818303038152906040528051906020012014156123e1576106bb81600161421e565b806123eb816143a7565b915050612346565b50600080fd5b60608161241d5750506040805180820190915260018152600360fc1b602082015290565b8160005b811561244757806124318161438c565b91506124409050600a83614243565b9150612421565b6000816001600160401b0381111561246f57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612499576020820181803683370190505b5090505b8415612107576124ae6001836142c9565b91506124bb600a866143c7565b6124c6906030614206565b60f81b8183815181106124e957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061250b600a86614243565b945061249d565b61251d848484611e6d565b6125298484848461290c565b6116b95760405162461bcd60e51b81526004016107f490614089565b606081516000141561256557505060408051602081019091526000815290565b600060405180606001604052806040815260200161443460409139905060006003845160026125949190614206565b61259e9190614243565b6125a9906004614281565b905060006125b8826020614206565b6001600160401b038111156125dd57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612607576020820181803683370190505b509050818152600183018586518101602084015b818310156126755760039283018051603f601282901c811687015160f890811b8552600c83901c8216880151811b6001860152600683901c8216880151811b60028601529116860151901b9382019390935260040161261b565b60038951066001811461268f57600281146126a0576126ac565b613d3d60f01b6001198301526126ac565b603d60f81b6000198301525b509398975050505050505050565b6001600160a01b0383166127155761271081600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612738565b816001600160a01b0316836001600160a01b031614612738576127388382612a19565b6001600160a01b03821661274f5761092a81612ab6565b826001600160a01b0316826001600160a01b03161461092a5761092a8282612b8f565b6101a15461019f5411156127c85760405162461bcd60e51b815260206004820152601960248201527f416c6c20706f737369626c65206d69636573206c6f616465640000000000000060448201526064016107f4565b6101a45461019f546001600160a01b0390911690805b6127e88483614206565b811080156127f857506101a15481105b156128de57604051632f745c5960e01b815261dead6004820152602481018290526000906001600160a01b03851690632f745c599060440160206040518083038186803b15801561284857600080fd5b505afa15801561285c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128809190613370565b905080600b8361193281106128a557634e487b7160e01b600052603260045260246000fd5b601091828204019190066002026101000a81548161ffff021916908361ffff1602179055505080806128d69061438c565b9150506127de565b506128e98382614206565b61019f55505050565b610a7c828260405180602001604052806000815250612bd3565b60006001600160a01b0384163b15612a0e57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612950903390899088908890600401613fff565b602060405180830381600087803b15801561296a57600080fd5b505af192505050801561299a575060408051601f3d908101601f191682019092526129979181019061320b565b60015b6129f4573d8080156129c8576040519150601f19603f3d011682016040523d82523d6000602084013e6129cd565b606091505b5080516129ec5760405162461bcd60e51b81526004016107f490614089565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612107565b506001949350505050565b60006001612a2684610dd0565b612a3091906142c9565b600083815260076020526040902054909150808214612a83576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612ac8906001906142c9565b60008381526009602052604081205460088054939450909284908110612afe57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110612b2d57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612b7357634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612b9a83610dd0565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b612bdd8383612c06565b612bea600084848461290c565b61092a5760405162461bcd60e51b81526004016107f490614089565b6001600160a01b038216612c5c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107f4565b6000818152600260205260409020546001600160a01b031615612cc15760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107f4565b612ccd600083836126ba565b6001600160a01b0382166000908152600360205260408120805460019290612cf6908490614206565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b508054612d609061432f565b6000825580601f10612d70575050565b601f0160209004906000526020600020908101906109599190612e40565b6040518061030001604052806018905b612da6612e55565b815260200190600190039081612d9e5790505090565b828054612dc89061432f565b90600052602060002090601f016020900481019282612dea5760008555612e30565b82601f10612e0357805160ff1916838001178555612e30565b82800160010185558215612e30579182015b82811115612e30578251825591602001919060010190612e15565b50612e3c929150612e40565b5090565b5b80821115612e3c5760008155600101612e41565b6040518061030001604052806018906020820280368337509192915050565b6000612e87612e82846141b9565b614189565b9050828152838383011115612e9b57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114612ec957600080fd5b919050565b600082601f830112612ede578081fd5b6106bb83833560208501612e74565b600082601f830112612efd578081fd5b8151612f0b612e82826141b9565b818152846020838601011115612f1f578283fd5b612107826020830160208701614303565b600060808284031215612f41578081fd5b612f49614161565b905081356001600160401b0380821115612f6257600080fd5b612f6e85838601612ece565b83526020840135915080821115612f8457600080fd5b612f9085838601612ece565b60208401526040840135915080821115612fa957600080fd5b50612fb684828501612ece565b6040830152506060820135606082015292915050565b600060208284031215612fdd578081fd5b6106bb82612eb2565b60008060408385031215612ff8578081fd5b61300183612eb2565b915061300f60208401612eb2565b90509250929050565b60008060006060848603121561302c578081fd5b61303584612eb2565b925061304360208501612eb2565b9150604084013590509250925092565b60008060008060808587031215613068578081fd5b61307185612eb2565b935061307f60208601612eb2565b92506040850135915060608501356001600160401b038111156130a0578182fd5b8501601f810187136130b0578182fd5b6130bf87823560208401612e74565b91505092959194509250565b600080604083850312156130dd578182fd5b6130e683612eb2565b9150602083013580151581146130fa578182fd5b809150509250929050565b60008060408385031215613117578182fd5b61312083612eb2565b946020939093013593505050565b60006020808385031215613140578182fd5b82356001600160401b0380821115613156578384fd5b818501915085601f830112613169578384fd5b81358181111561317b5761317b614407565b8060051b61318a858201614189565b8281528581019085870183870188018b10156131a4578889fd5b8893505b848410156131e1578035868111156131be57898afd5b6131cc8c8a838b0101612f30565b845250600193909301929187019187016131a8565b509998505050505050505050565b600060208284031215613200578081fd5b81356106bb8161441d565b60006020828403121561321c578081fd5b81516106bb8161441d565b600060208284031215613238578081fd5b81356001600160401b0381111561324d578182fd5b61210784828501612ece565b60006020828403121561326a578081fd5b81516001600160401b0381111561327f578182fd5b61210784828501612eed565b600080600080608085870312156132a0578182fd5b84516001600160401b03808211156132b6578384fd5b6132c288838901612eed565b955060208701519150808211156132d7578384fd5b6132e388838901612eed565b945060408701519150808211156132f8578384fd5b5061330587828801612eed565b606096909601519497939650505050565b60008060408385031215613328578182fd5b82356001600160401b0381111561333d578283fd5b61334985828601612ece565b95602094909401359450505050565b600060208284031215613369578081fd5b5035919050565b600060208284031215613381578081fd5b5051919050565b600081518084526133a0816020860160208601614303565b601f01601f19169290920160200192915050565b600081516133c6818560208601614303565b9290920192915050565b600082516133e2818460208701614303565b9190910192915050565b600082516133fe818460208701614303565b600b60fa1b920191825250600101919050565b60008551613423818460208a01614303565b6d3c7265637420636c6173733d276360901b908301908152855161344e81600e840160208a01614303565b642720783d2760d81b600e92909101918201528451613474816013840160208901614303565b642720793d2760d81b60139290910191820152835161349a816018840160208801614303565b6213979f60e91b60189290910191820152601b019695505050505050565b600084516134ca818460208901614303565b6e3d913a3930b4ba2fba3cb832911d1160891b90830190815284516134f681600f840160208901614303565b6a1116113b30b63ab2911d1160a91b600f9290910191820152835161352281601a840160208801614303565b61227d60f01b601a9290910191820152601c0195945050505050565b60008351613550818460208801614303565b6f163d913a3930b4ba2fba3cb832911d1160811b9083019081527513dc9a59da5b985b08135a58d948151bdad95b88125960521b60108201526a1116113b30b63ab2911d1160a91b602682015283516135b0816031840160208801614303565b61227d60f01b60319290910191820152603301949350505050565b600080835482600182811c9150808316806135e757607f831692505b602080841082141561360757634e487b7160e01b87526022600452602487fd5b81801561361b576001811461362c57613658565b60ff19861689528489019650613658565b60008a815260209020885b868110156136505781548b820152908501908301613637565b505084890196505b509498975050505050505050565b600360fc1b815260008251613682816001850160208701614303565b9190910160010192915050565b747b226e616d65223a2022416e6f6e796d696365202360581b815283516000906136c0816015850160208901614303565b7f222c20226465736372697074696f6e223a2022416e6f6e796d696365204368656015918401918201527f65736520436c7562206973206120636f6c6c656374696f6e206f6620362c343560358201527f30206d696365206275726e656420696e20746865206f726967696e616c20416e60558201527f6f6e796d69636520636f6c6c656374696f6e2e2054686579207072657365727660758201527f65207468652073616d6520747261697473206f6620746865206275726e65642060958201527f6f6e65732c2077697468206d6574616461746120616e6420696d61676573206760b58201527f656e65726174656420616e642073746f7265642031303025206f6e2d6368616960d58201527f6e2e204e6f20495046532c206e6f204150492e204a757374207468652045746860f58201527f657265756d20626c6f636b636861696e2e222c2022696d616765223a202264616101158201527f74613a696d6167652f7376672b786d6c3b6261736536342c000000000000000061013582015261388761387a61387461385961014d8501896133b4565b6e11161130ba3a3934b13aba32b9911d60891b8152600f0190565b866133b4565b607d60f81b815260010190565b9695505050505050565b7f3c7376672069643d226d6f7573652d7376672220786d6c6e733d22687474703a81527f2f2f7777772e77332e6f72672f323030302f737667222070726573657276654160208201527f7370656374526174696f3d22784d696e594d696e206d6565742220766965774260408201526f037bc1e9118101810191a10191a111f160851b60608201526000825161392e816070850160208701614303565b7f3c7374796c653e726563747b77696474683a3170783b6865696768743a31707860709390910192830152507f3b7d20236d6f7573652d7376677b73686170652d72656e646572696e673a206360908201527f7269737065646765733b7d202e6330307b66696c6c3a233030303030307d2e6360b08201527f30317b66696c6c3a234231414441437d2e6330327b66696c6c3a23443744374460d08201527f377d2e6330337b66696c6c3a234646413641367d2e6330347b66696c6c3a234660f08201527f46443444357d2e6330357b66696c6c3a234239414439357d2e6330367b66696c6101108201527f6c3a234532443642457d2e6330377b66696c6c3a233746363235417d2e6330386101308201527f7b66696c6c3a234135384638327d2e6330397b66696c6c3a233442314530427d6101508201527f2e6331307b66696c6c3a233644324331307d2e6331317b66696c6c3a234438446101708201527f3844387d2e6331327b66696c6c3a234635463546357d2e6331337b66696c6c3a6101908201527f233433334434427d2e6331347b66696c6c3a233844393439437d2e6331357b666101b08201527f696c6c3a233035464630307d2e6331367b66696c6c3a233031433730307d2e636101d08201527f31377b66696c6c3a233042384630387d2e6331387b66696c6c3a2334323143316101f08201527f337d2e6331397b66696c6c3a233642333932417d2e6332307b66696c6c3a23416102108201527f33354534307d2e6332317b66696c6c3a234443424439317d2e6332327b66696c6102308201527f6c3a233737373737377d2e6332337b66696c6c3a233834383438347d2e6332346102508201527f7b66696c6c3a234142414241427d2e6332357b66696c6c3a234241424142417d6102708201527f2e6332367b66696c6c3a234337433743377d2e6332377b66696c6c3a234541456102908201527f4145417d2e6332387b66696c6c3a233043373641417d2e6332397b66696c6c3a6102b08201527f233045393744427d2e6333307b66696c6c3a233130413445437d2e6333317b666102d08201527f696c6c3a233133423046467d2e6333327b66696c6c3a233245423946457d2e636102f08201527f33337b66696c6c3a233534434346467d2e6333347b66696c6c3a2335304330466103108201527f327d2e6333357b66696c6c3a233534434346467d2e6333367b66696c6c3a23376103308201527f32444146467d2e6333377b66696c6c3a234236454146467d2e6333387b66696c6103508201527f6c3a234646464646467d2e6333397b66696c6c3a233935343534367d2e6334306103708201527f7b66696c6c3a233042383746377d2e6334317b66696c6c3a234646323632367d6103908201527f2e6334327b66696c6c3a233138304630327d2e6334337b66696c6c3a233242326103b08201527f3331397d2e6334347b66696c6c3a234642444434427d2e6334357b66696c6c3a6103d08201527f234635423932337d2e6334367b66696c6c3a234343384131387d2e6334377b666103f08201527f696c6c3a233343323230337d2e6334387b66696c6c3a233533333230427d2e636104108201527f34397b66696c6c3a233742353031447d2e6335307b66696c6c3a2346464536346104308201527f367d2e6335317b66696c6c3a234646443632377d2e6335327b66696c6c3a23466104508201527f35423730307d2e6335337b66696c6c3a233234323432347d2e6335347b66696c6104708201527f6c3a233441344134417d2e6335357b66696c6c3a233637363736377d2e6335366104908201527f7b66696c6c3a234630383330367d2e6335377b66696c6c3a234643413330457d6104b08201527f2e6335387b66696c6c3a234645424330457d2e6335397b66696c6c3a234642456104d08201527f4331437d2e6336307b66696c6c3a233134323432467d2e6336317b66696c6c3a6104f08201527f234230363833377d2e6336327b66696c6c3a233846344230457d2e6336337b666105108201527f696c6c3a234438383232377d2e6336347b66696c6c3a234230363833377d2e636105308201527f36357b66696c6c3a234646454233427d2e6336367b66696c6c3a2346464331306105508201526f1bbe9e17b9ba3cb6329f1e17b9bb339f60811b61057082015261058001919050565b605b60f81b815260008251613f86816001850160208701614303565b605d60f81b6001939091019283015250600201919050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251613fd681601d850160208701614303565b91909101601d0192915050565b603160f81b815260008251613682816001850160208701614303565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061388790830184613388565b6020808252825182820181905260009190848201906040850190845b8181101561406a5783518352928401929184019160010161404e565b50909695505050505050565b6020815260006106bb6020830184613388565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051608081016001600160401b038111828210171561418357614183614407565b60405290565b604051601f8201601f191681016001600160401b03811182821017156141b1576141b1614407565b604052919050565b60006001600160401b038211156141d2576141d2614407565b50601f01601f191660200190565b600061ffff8083168185168083038211156141fd576141fd6143db565b01949350505050565b60008219821115614219576142196143db565b500190565b600060ff821660ff84168060ff0382111561423b5761423b6143db565b019392505050565b600082614252576142526143f1565b500490565b600061ffff80831681851681830481118215151615614278576142786143db565b02949350505050565b600081600019048311821515161561429b5761429b6143db565b500290565b600060ff821660ff84168160ff04811182151516156142c1576142c16143db565b029392505050565b6000828210156142db576142db6143db565b500390565b600060ff821660ff8416808210156142fa576142fa6143db565b90039392505050565b60005b8381101561431e578181015183820152602001614306565b838111156116b95750506000910152565b600181811c9082168061434357607f821691505b6020821081141561436457634e487b7160e01b600052602260045260246000fd5b50919050565b600061ffff80831681811415614382576143826143db565b6001019392505050565b60006000198214156143a0576143a06143db565b5060010190565b600060ff821660ff8114156143be576143be6143db565b60010192915050565b6000826143d6576143d66143f1565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461095957600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212203103de0bc69d080a7f72858e3aa25f956e594b6802230ecb23f9c2ac566f717364736f6c63430008040033
Deployed Bytecode
0x6080604052600436106101b65760003560e01c8063564acc3a116100ec578063a22cb4651161008a578063b9e6cfad11610064578063b9e6cfad146104c1578063c87b56dd146104e1578063e985e9c514610501578063f2fde38b1461054a57600080fd5b8063a22cb46514610461578063aee1bef414610481578063b88d4fde146104a157600080fd5b8063715018a6116100c6578063715018a6146103f957806389ce30741461040e5780638da5cb5b1461042e57806395d89b411461044c57600080fd5b8063564acc3a146103a45780636352211e146103b957806370a08231146103d957600080fd5b806323b872dd1161015957806340c10f191161013357806340c10f191461032457806342842e0e14610337578063438b6300146103575780634f6ccce71461038457600080fd5b806323b872dd146102cf5780632f745c59146102ef5780633ccfd60b1461030f57600080fd5b8063081812fc11610195578063081812fc14610236578063095ea7b31461026e5780630b7fe9b51461029057806318160ddd146102b057600080fd5b80625ea307146101bb57806301ffc9a7146101f157806306fdde0314610221575b600080fd5b3480156101c757600080fd5b506101db6101d6366004613358565b61056a565b6040516101e89190614076565b60405180910390f35b3480156101fd57600080fd5b5061021161020c3660046131ef565b6106c2565b60405190151581526020016101e8565b34801561022d57600080fd5b506101db6106ed565b34801561024257600080fd5b50610256610251366004613358565b61077f565b6040516001600160a01b0390911681526020016101e8565b34801561027a57600080fd5b5061028e610289366004613105565b610819565b005b34801561029c57600080fd5b5061028e6102ab366004613358565b61092f565b3480156102bc57600080fd5b506008545b6040519081526020016101e8565b3480156102db57600080fd5b5061028e6102ea366004613018565b61095c565b3480156102fb57600080fd5b506102c161030a366004613105565b61098d565b34801561031b57600080fd5b5061028e610a23565b61028e610332366004613105565b610a80565b34801561034357600080fd5b5061028e610352366004613018565b610b34565b34801561036357600080fd5b50610377610372366004612fcc565b610b4f565b6040516101e89190614032565b34801561039057600080fd5b506102c161039f366004613358565b610c0c565b3480156103b057600080fd5b5061028e610cad565b3480156103c557600080fd5b506102566103d4366004613358565b610d59565b3480156103e557600080fd5b506102c16103f4366004612fcc565b610dd0565b34801561040557600080fd5b5061028e610e57565b34801561041a57600080fd5b506101db610429366004613227565b610e8d565b34801561043a57600080fd5b50600a546001600160a01b0316610256565b34801561045857600080fd5b506101db611429565b34801561046d57600080fd5b5061028e61047c3660046130cb565b611438565b34801561048d57600080fd5b5061028e61049c36600461312e565b6114fd565b3480156104ad57600080fd5b5061028e6104bc366004613053565b611687565b3480156104cd57600080fd5b506101db6104dc366004613316565b6116bf565b3480156104ed57600080fd5b506101db6104fc366004613358565b611b7c565b34801561050d57600080fd5b5061021161051c366004612fe6565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561055657600080fd5b5061028e610565366004612fcc565b611c21565b6101a4546060906001600160a01b0316600081625ea307600b8661193281106105a357634e487b7160e01b600052603260045260246000fd5b601091828204019190066002029054906101000a900461ffff1661ffff166040518263ffffffff1660e01b81526004016105df91815260200190565b60006040518083038186803b1580156105f757600080fd5b505afa15801561060b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526106339190810190613259565b905061063e84610d59565b6001600160a01b031661dead6001600160a01b0316141561068c576106668160016009611cb9565b6040516020016106769190613fe3565b60405160208183030381529060405290506106bb565b6106998160016009611cb9565b6040516020016106a99190613666565b60405160208183030381529060405290505b9392505050565b60006001600160e01b0319821663780e9d6360e01b14806106e757506106e782611daf565b92915050565b6060600080546106fc9061432f565b80601f01602080910402602001604051908101604052809291908181526020018280546107289061432f565b80156107755780601f1061074a57610100808354040283529160200191610775565b820191906000526020600020905b81548152906001019060200180831161075857829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166107fd5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061082482610d59565b9050806001600160a01b0316836001600160a01b031614156108925760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107f4565b336001600160a01b03821614806108ae57506108ae813361051c565b6109205760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107f4565b61092a8383611dff565b505050565b3361093982610d59565b6001600160a01b03161461094c57600080fd5b6109593361dead83611e6d565b50565b6109663382612018565b6109825760405162461bcd60e51b81526004016107f490614110565b61092a838383611e6d565b600061099883610dd0565b82106109fa5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016107f4565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b03163314610a4d5760405162461bcd60e51b81526004016107f4906140db565b6040514790339082156108fc029083906000818181858888f19350505050158015610a7c573d6000803e3d6000fd5b5050565b6000610a8b60085490565b90506101a254811115610b2a5734826101a354610aa89190614281565b1115610b2a5760405162461bcd60e51b8152602060048201526044602482018190527f4e6f7420656e6f7567682065746865722073656e74202873656e6420302e3033908201527f2065746820666f722065616368206d69636520796f752077616e7420746f206d606482015263696e742960e01b608482015260a4016107f4565b61092a828461210f565b61092a83838360405180602001604052806000815250611687565b60606000610b5c83610dd0565b90506000816001600160401b03811115610b8657634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610baf578160200160208202803683370190505b50905060005b82811015610c0457610bc7858261098d565b828281518110610be757634e487b7160e01b600052603260045260246000fd5b602090810291909101015280610bfc8161438c565b915050610bb5565b509392505050565b6000610c1760085490565b8210610c7a5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016107f4565b60088281548110610c9b57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b600a546001600160a01b03163314610cd75760405162461bcd60e51b81526004016107f4906140db565b60005b6101a054811015610959576101a08181548110610d0757634e487b7160e01b600052603260045260246000fd5b60009182526020822060049091020190610d218282612d54565b610d2f600183016000612d54565b610d3d600283016000612d54565b5060006003919091015580610d518161438c565b915050610cda565b6000818152600260205260408120546001600160a01b0316806106e75760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016107f4565b60006001600160a01b038216610e3b5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016107f4565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03163314610e815760405162461bcd60e51b81526004016107f4906140db565b610e8b6000612210565b565b606080610e98612d8e565b6101a4546001600160a01b031660005b60098160ff1610156113fe576000610ed9610ed48860ff8516610ecc86600161421e565b60ff16611cb9565b612262565b9050610f066040518060800160405280606081526020016060815260200160608152602001600081525090565b60ff83166111a65760405180608001604052806101a08460ff1681548110610f3e57634e487b7160e01b600052603260045260246000fd5b90600052602060002090600402016000018054610f5a9061432f565b80601f0160208091040260200160405190810160405280929190818152602001828054610f869061432f565b8015610fd35780601f10610fa857610100808354040283529160200191610fd3565b820191906000526020600020905b815481529060010190602001808311610fb657829003601f168201915b505050505081526020016101a08460ff168154811061100257634e487b7160e01b600052603260045260246000fd5b9060005260206000209060040201600101805461101e9061432f565b80601f016020809104026020016040519081016040528092919081815260200182805461104a9061432f565b80156110975780601f1061106c57610100808354040283529160200191611097565b820191906000526020600020905b81548152906001019060200180831161107a57829003601f168201915b505050505081526020016101a08460ff16815481106110c657634e487b7160e01b600052603260045260246000fd5b906000526020600020906004020160020180546110e29061432f565b80601f016020809104026020016040519081016040528092919081815260200182805461110e9061432f565b801561115b5780601f106111305761010080835404028352916020019161115b565b820191906000526020600020905b81548152906001019060200180831161113e57829003601f168201915b505050505081526020016101a08460ff168154811061118a57634e487b7160e01b600052603260045260246000fd5b906000526020600020906004020160030154815250905061125a565b6040516317d84c6960e11b815260ff8085166004830152831660248201526000908190819081906001600160a01b03891690632fb098d29060440160006040518083038186803b1580156111f957600080fd5b505afa15801561120d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611235919081019061328b565b6040805160808101825294855260208501939093529183015260608201529450505050505b60005b81606001518161ffff1610156113e85760006112a783604001518360046112849190614257565b61ffff16611293856004614257565b61129e9060046141e0565b61ffff16611cb9565b905060006112c06112bb8360006001611cb9565b612342565b905060006112d46112bb8460016002611cb9565b9050888260ff16601881106112f957634e487b7160e01b600052603260045260246000fd5b60200201518160ff166018811061132057634e487b7160e01b600052603260045260246000fd5b602002015115611332575050506113d6565b896113408460026004611cb9565b61134c8460ff166123f9565b6113588460ff166123f9565b60405160200161136b9493929190613411565b60405160208183030381529060405299506001898360ff16601881106113a157634e487b7160e01b600052603260045260246000fd5b60200201518260ff16601881106113c857634e487b7160e01b600052603260045260246000fd5b911515602090920201525050505b806113e08161436a565b91505061125d565b50505080806113f6906143a7565b915050610ea8565b50826040516020016114109190613891565b60408051601f1981840301815291905295945050505050565b6060600180546106fc9061432f565b6001600160a01b0382163314156114915760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107f4565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a546001600160a01b031633146115275760405162461bcd60e51b81526004016107f4906140db565b60005b8151811015610a7c576101a0604051806080016040528084848151811061156157634e487b7160e01b600052603260045260246000fd5b602002602001015160000151815260200184848151811061159257634e487b7160e01b600052603260045260246000fd5b60200260200101516020015181526020018484815181106115c357634e487b7160e01b600052603260045260246000fd5b60200260200101516040015181526020018484815181106115f457634e487b7160e01b600052603260045260246000fd5b602090810291909101810151606001519091528254600181018455600093845292819020825180519394600402909101926116329284920190612dbc565b50602082810151805161164b9260018501920190612dbc565b5060408201518051611667916002840191602090910190612dbc565b50606082015181600301555050808061167f9061438c565b91505061152a565b6116913383612018565b6116ad5760405162461bcd60e51b81526004016107f490614110565b6116b984848484612512565b50505050565b6101a45460609081906001600160a01b031660005b60098160ff161015611ae65760006116f8610ed48860ff8516610ecc86600161421e565b90506117256040518060800160405280606081526020016060815260200160608152602001600081525090565b60ff83166119c55760405180608001604052806101a08460ff168154811061175d57634e487b7160e01b600052603260045260246000fd5b906000526020600020906004020160000180546117799061432f565b80601f01602080910402602001604051908101604052809291908181526020018280546117a59061432f565b80156117f25780601f106117c7576101008083540402835291602001916117f2565b820191906000526020600020905b8154815290600101906020018083116117d557829003601f168201915b505050505081526020016101a08460ff168154811061182157634e487b7160e01b600052603260045260246000fd5b9060005260206000209060040201600101805461183d9061432f565b80601f01602080910402602001604051908101604052809291908181526020018280546118699061432f565b80156118b65780601f1061188b576101008083540402835291602001916118b6565b820191906000526020600020905b81548152906001019060200180831161189957829003601f168201915b505050505081526020016101a08460ff16815481106118e557634e487b7160e01b600052603260045260246000fd5b906000526020600020906004020160020180546119019061432f565b80601f016020809104026020016040519081016040528092919081815260200182805461192d9061432f565b801561197a5780601f1061194f5761010080835404028352916020019161197a565b820191906000526020600020905b81548152906001019060200180831161195d57829003601f168201915b505050505081526020016101a08460ff16815481106119a957634e487b7160e01b600052603260045260246000fd5b9060005260206000209060040201600301548152509050611a79565b6040516317d84c6960e11b815260ff8085166004830152831660248201526000908190819081906001600160a01b03891690632fb098d29060440160006040518083038186803b158015611a1857600080fd5b505afa158015611a2c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611a54919081019061328b565b6040805160808101825294855260208501939093529183015260608201529450505050505b6020808201518251604051611a929389939291016134b8565b60405160208183030381529060405294508260ff16600814611ad15784604051602001611abf91906133ec565b60405160208183030381529060405294505b50508080611ade906143a7565b9150506116d4565b5081611b30600b866119328110611b0d57634e487b7160e01b600052603260045260246000fd5b601091828204019190066002029054906101000a900461ffff1661ffff166123f9565b604051602001611b4192919061353e565b604051602081830303815290604052915081604051602001611b639190613f6a565b6040516020818303038152906040529250505092915050565b6000818152600260205260409020546060906001600160a01b0316611ba057600080fd5b6000611bab8361056a565b9050611bfa611bb9846123f9565b611bca611bc584610e8d565b612545565b611bd484876116bf565b604051602001611be69392919061368f565b604051602081830303815290604052612545565b604051602001611c0a9190613f9e565b604051602081830303815290604052915050919050565b600a546001600160a01b03163314611c4b5760405162461bcd60e51b81526004016107f4906140db565b6001600160a01b038116611cb05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107f4565b61095981612210565b6060836000611cc885856142c9565b6001600160401b03811115611ced57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611d17576020820181803683370190505b509050845b84811015611da557828181518110611d4457634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b03191682611d5e88846142c9565b81518110611d7c57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535080611d9d8161438c565b915050611d1c565b5095945050505050565b60006001600160e01b031982166380ac58cd60e01b1480611de057506001600160e01b03198216635b5e139f60e01b145b806106e757506301ffc9a760e01b6001600160e01b03198316146106e7565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611e3482610d59565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b826001600160a01b0316611e8082610d59565b6001600160a01b031614611ee85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016107f4565b6001600160a01b038216611f4a5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107f4565b611f558383836126ba565b611f60600082611dff565b6001600160a01b0383166000908152600360205260408120805460019290611f899084906142c9565b90915550506001600160a01b0382166000908152600360205260408120805460019290611fb7908490614206565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000818152600260205260408120546001600160a01b03166120915760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107f4565b600061209c83610d59565b9050806001600160a01b0316846001600160a01b031614806120d75750836001600160a01b03166120cc8461077f565b6001600160a01b0316145b8061210757506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b600061211a60085490565b90506101a154811061216e5760405162461bcd60e51b815260206004820152601c60248201527f53616c6520776f756c6420657863656564206d617820737570706c790000000060448201526064016107f4565b333b1561217a57600080fd5b6101a1546121888285614206565b11156121a057806101a15461219d91906142c9565b92505b6121a983612772565b60005b838110156116b9576121be83836128f2565b6040518281527ff00d28232b285f24f2e38415deb2ceb31069e70d4505838b3911b4f02058502e9060200160405180910390a16121fc826001614206565b9150806122088161438c565b9150506121ac565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008181805b82518160ff161015610c04576030838260ff168151811061229957634e487b7160e01b600052603260045260246000fd5b016020015160f81c108015906122da57506039838260ff16815181106122cf57634e487b7160e01b600052603260045260246000fd5b016020015160f81c11155b15612330576122ea600a836142a0565b91506030838260ff168151811061231157634e487b7160e01b600052603260045260246000fd5b0160200151612323919060f81c6142e0565b61232d908361421e565b91505b8061233a816143a7565b915050612268565b6000805b6101a55460ff821610156123f3578260405160200161236591906133d0565b604051602081830303815290604052805190602001206101a58260ff16815481106123a057634e487b7160e01b600052603260045260246000fd5b906000526020600020016040516020016123ba91906135cb565b6040516020818303038152906040528051906020012014156123e1576106bb81600161421e565b806123eb816143a7565b915050612346565b50600080fd5b60608161241d5750506040805180820190915260018152600360fc1b602082015290565b8160005b811561244757806124318161438c565b91506124409050600a83614243565b9150612421565b6000816001600160401b0381111561246f57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612499576020820181803683370190505b5090505b8415612107576124ae6001836142c9565b91506124bb600a866143c7565b6124c6906030614206565b60f81b8183815181106124e957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061250b600a86614243565b945061249d565b61251d848484611e6d565b6125298484848461290c565b6116b95760405162461bcd60e51b81526004016107f490614089565b606081516000141561256557505060408051602081019091526000815290565b600060405180606001604052806040815260200161443460409139905060006003845160026125949190614206565b61259e9190614243565b6125a9906004614281565b905060006125b8826020614206565b6001600160401b038111156125dd57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612607576020820181803683370190505b509050818152600183018586518101602084015b818310156126755760039283018051603f601282901c811687015160f890811b8552600c83901c8216880151811b6001860152600683901c8216880151811b60028601529116860151901b9382019390935260040161261b565b60038951066001811461268f57600281146126a0576126ac565b613d3d60f01b6001198301526126ac565b603d60f81b6000198301525b509398975050505050505050565b6001600160a01b0383166127155761271081600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612738565b816001600160a01b0316836001600160a01b031614612738576127388382612a19565b6001600160a01b03821661274f5761092a81612ab6565b826001600160a01b0316826001600160a01b03161461092a5761092a8282612b8f565b6101a15461019f5411156127c85760405162461bcd60e51b815260206004820152601960248201527f416c6c20706f737369626c65206d69636573206c6f616465640000000000000060448201526064016107f4565b6101a45461019f546001600160a01b0390911690805b6127e88483614206565b811080156127f857506101a15481105b156128de57604051632f745c5960e01b815261dead6004820152602481018290526000906001600160a01b03851690632f745c599060440160206040518083038186803b15801561284857600080fd5b505afa15801561285c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128809190613370565b905080600b8361193281106128a557634e487b7160e01b600052603260045260246000fd5b601091828204019190066002026101000a81548161ffff021916908361ffff1602179055505080806128d69061438c565b9150506127de565b506128e98382614206565b61019f55505050565b610a7c828260405180602001604052806000815250612bd3565b60006001600160a01b0384163b15612a0e57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612950903390899088908890600401613fff565b602060405180830381600087803b15801561296a57600080fd5b505af192505050801561299a575060408051601f3d908101601f191682019092526129979181019061320b565b60015b6129f4573d8080156129c8576040519150601f19603f3d011682016040523d82523d6000602084013e6129cd565b606091505b5080516129ec5760405162461bcd60e51b81526004016107f490614089565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612107565b506001949350505050565b60006001612a2684610dd0565b612a3091906142c9565b600083815260076020526040902054909150808214612a83576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612ac8906001906142c9565b60008381526009602052604081205460088054939450909284908110612afe57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110612b2d57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612b7357634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612b9a83610dd0565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b612bdd8383612c06565b612bea600084848461290c565b61092a5760405162461bcd60e51b81526004016107f490614089565b6001600160a01b038216612c5c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107f4565b6000818152600260205260409020546001600160a01b031615612cc15760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107f4565b612ccd600083836126ba565b6001600160a01b0382166000908152600360205260408120805460019290612cf6908490614206565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b508054612d609061432f565b6000825580601f10612d70575050565b601f0160209004906000526020600020908101906109599190612e40565b6040518061030001604052806018905b612da6612e55565b815260200190600190039081612d9e5790505090565b828054612dc89061432f565b90600052602060002090601f016020900481019282612dea5760008555612e30565b82601f10612e0357805160ff1916838001178555612e30565b82800160010185558215612e30579182015b82811115612e30578251825591602001919060010190612e15565b50612e3c929150612e40565b5090565b5b80821115612e3c5760008155600101612e41565b6040518061030001604052806018906020820280368337509192915050565b6000612e87612e82846141b9565b614189565b9050828152838383011115612e9b57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114612ec957600080fd5b919050565b600082601f830112612ede578081fd5b6106bb83833560208501612e74565b600082601f830112612efd578081fd5b8151612f0b612e82826141b9565b818152846020838601011115612f1f578283fd5b612107826020830160208701614303565b600060808284031215612f41578081fd5b612f49614161565b905081356001600160401b0380821115612f6257600080fd5b612f6e85838601612ece565b83526020840135915080821115612f8457600080fd5b612f9085838601612ece565b60208401526040840135915080821115612fa957600080fd5b50612fb684828501612ece565b6040830152506060820135606082015292915050565b600060208284031215612fdd578081fd5b6106bb82612eb2565b60008060408385031215612ff8578081fd5b61300183612eb2565b915061300f60208401612eb2565b90509250929050565b60008060006060848603121561302c578081fd5b61303584612eb2565b925061304360208501612eb2565b9150604084013590509250925092565b60008060008060808587031215613068578081fd5b61307185612eb2565b935061307f60208601612eb2565b92506040850135915060608501356001600160401b038111156130a0578182fd5b8501601f810187136130b0578182fd5b6130bf87823560208401612e74565b91505092959194509250565b600080604083850312156130dd578182fd5b6130e683612eb2565b9150602083013580151581146130fa578182fd5b809150509250929050565b60008060408385031215613117578182fd5b61312083612eb2565b946020939093013593505050565b60006020808385031215613140578182fd5b82356001600160401b0380821115613156578384fd5b818501915085601f830112613169578384fd5b81358181111561317b5761317b614407565b8060051b61318a858201614189565b8281528581019085870183870188018b10156131a4578889fd5b8893505b848410156131e1578035868111156131be57898afd5b6131cc8c8a838b0101612f30565b845250600193909301929187019187016131a8565b509998505050505050505050565b600060208284031215613200578081fd5b81356106bb8161441d565b60006020828403121561321c578081fd5b81516106bb8161441d565b600060208284031215613238578081fd5b81356001600160401b0381111561324d578182fd5b61210784828501612ece565b60006020828403121561326a578081fd5b81516001600160401b0381111561327f578182fd5b61210784828501612eed565b600080600080608085870312156132a0578182fd5b84516001600160401b03808211156132b6578384fd5b6132c288838901612eed565b955060208701519150808211156132d7578384fd5b6132e388838901612eed565b945060408701519150808211156132f8578384fd5b5061330587828801612eed565b606096909601519497939650505050565b60008060408385031215613328578182fd5b82356001600160401b0381111561333d578283fd5b61334985828601612ece565b95602094909401359450505050565b600060208284031215613369578081fd5b5035919050565b600060208284031215613381578081fd5b5051919050565b600081518084526133a0816020860160208601614303565b601f01601f19169290920160200192915050565b600081516133c6818560208601614303565b9290920192915050565b600082516133e2818460208701614303565b9190910192915050565b600082516133fe818460208701614303565b600b60fa1b920191825250600101919050565b60008551613423818460208a01614303565b6d3c7265637420636c6173733d276360901b908301908152855161344e81600e840160208a01614303565b642720783d2760d81b600e92909101918201528451613474816013840160208901614303565b642720793d2760d81b60139290910191820152835161349a816018840160208801614303565b6213979f60e91b60189290910191820152601b019695505050505050565b600084516134ca818460208901614303565b6e3d913a3930b4ba2fba3cb832911d1160891b90830190815284516134f681600f840160208901614303565b6a1116113b30b63ab2911d1160a91b600f9290910191820152835161352281601a840160208801614303565b61227d60f01b601a9290910191820152601c0195945050505050565b60008351613550818460208801614303565b6f163d913a3930b4ba2fba3cb832911d1160811b9083019081527513dc9a59da5b985b08135a58d948151bdad95b88125960521b60108201526a1116113b30b63ab2911d1160a91b602682015283516135b0816031840160208801614303565b61227d60f01b60319290910191820152603301949350505050565b600080835482600182811c9150808316806135e757607f831692505b602080841082141561360757634e487b7160e01b87526022600452602487fd5b81801561361b576001811461362c57613658565b60ff19861689528489019650613658565b60008a815260209020885b868110156136505781548b820152908501908301613637565b505084890196505b509498975050505050505050565b600360fc1b815260008251613682816001850160208701614303565b9190910160010192915050565b747b226e616d65223a2022416e6f6e796d696365202360581b815283516000906136c0816015850160208901614303565b7f222c20226465736372697074696f6e223a2022416e6f6e796d696365204368656015918401918201527f65736520436c7562206973206120636f6c6c656374696f6e206f6620362c343560358201527f30206d696365206275726e656420696e20746865206f726967696e616c20416e60558201527f6f6e796d69636520636f6c6c656374696f6e2e2054686579207072657365727660758201527f65207468652073616d6520747261697473206f6620746865206275726e65642060958201527f6f6e65732c2077697468206d6574616461746120616e6420696d61676573206760b58201527f656e65726174656420616e642073746f7265642031303025206f6e2d6368616960d58201527f6e2e204e6f20495046532c206e6f204150492e204a757374207468652045746860f58201527f657265756d20626c6f636b636861696e2e222c2022696d616765223a202264616101158201527f74613a696d6167652f7376672b786d6c3b6261736536342c000000000000000061013582015261388761387a61387461385961014d8501896133b4565b6e11161130ba3a3934b13aba32b9911d60891b8152600f0190565b866133b4565b607d60f81b815260010190565b9695505050505050565b7f3c7376672069643d226d6f7573652d7376672220786d6c6e733d22687474703a81527f2f2f7777772e77332e6f72672f323030302f737667222070726573657276654160208201527f7370656374526174696f3d22784d696e594d696e206d6565742220766965774260408201526f037bc1e9118101810191a10191a111f160851b60608201526000825161392e816070850160208701614303565b7f3c7374796c653e726563747b77696474683a3170783b6865696768743a31707860709390910192830152507f3b7d20236d6f7573652d7376677b73686170652d72656e646572696e673a206360908201527f7269737065646765733b7d202e6330307b66696c6c3a233030303030307d2e6360b08201527f30317b66696c6c3a234231414441437d2e6330327b66696c6c3a23443744374460d08201527f377d2e6330337b66696c6c3a234646413641367d2e6330347b66696c6c3a234660f08201527f46443444357d2e6330357b66696c6c3a234239414439357d2e6330367b66696c6101108201527f6c3a234532443642457d2e6330377b66696c6c3a233746363235417d2e6330386101308201527f7b66696c6c3a234135384638327d2e6330397b66696c6c3a233442314530427d6101508201527f2e6331307b66696c6c3a233644324331307d2e6331317b66696c6c3a234438446101708201527f3844387d2e6331327b66696c6c3a234635463546357d2e6331337b66696c6c3a6101908201527f233433334434427d2e6331347b66696c6c3a233844393439437d2e6331357b666101b08201527f696c6c3a233035464630307d2e6331367b66696c6c3a233031433730307d2e636101d08201527f31377b66696c6c3a233042384630387d2e6331387b66696c6c3a2334323143316101f08201527f337d2e6331397b66696c6c3a233642333932417d2e6332307b66696c6c3a23416102108201527f33354534307d2e6332317b66696c6c3a234443424439317d2e6332327b66696c6102308201527f6c3a233737373737377d2e6332337b66696c6c3a233834383438347d2e6332346102508201527f7b66696c6c3a234142414241427d2e6332357b66696c6c3a234241424142417d6102708201527f2e6332367b66696c6c3a234337433743377d2e6332377b66696c6c3a234541456102908201527f4145417d2e6332387b66696c6c3a233043373641417d2e6332397b66696c6c3a6102b08201527f233045393744427d2e6333307b66696c6c3a233130413445437d2e6333317b666102d08201527f696c6c3a233133423046467d2e6333327b66696c6c3a233245423946457d2e636102f08201527f33337b66696c6c3a233534434346467d2e6333347b66696c6c3a2335304330466103108201527f327d2e6333357b66696c6c3a233534434346467d2e6333367b66696c6c3a23376103308201527f32444146467d2e6333377b66696c6c3a234236454146467d2e6333387b66696c6103508201527f6c3a234646464646467d2e6333397b66696c6c3a233935343534367d2e6334306103708201527f7b66696c6c3a233042383746377d2e6334317b66696c6c3a234646323632367d6103908201527f2e6334327b66696c6c3a233138304630327d2e6334337b66696c6c3a233242326103b08201527f3331397d2e6334347b66696c6c3a234642444434427d2e6334357b66696c6c3a6103d08201527f234635423932337d2e6334367b66696c6c3a234343384131387d2e6334377b666103f08201527f696c6c3a233343323230337d2e6334387b66696c6c3a233533333230427d2e636104108201527f34397b66696c6c3a233742353031447d2e6335307b66696c6c3a2346464536346104308201527f367d2e6335317b66696c6c3a234646443632377d2e6335327b66696c6c3a23466104508201527f35423730307d2e6335337b66696c6c3a233234323432347d2e6335347b66696c6104708201527f6c3a233441344134417d2e6335357b66696c6c3a233637363736377d2e6335366104908201527f7b66696c6c3a234630383330367d2e6335377b66696c6c3a234643413330457d6104b08201527f2e6335387b66696c6c3a234645424330457d2e6335397b66696c6c3a234642456104d08201527f4331437d2e6336307b66696c6c3a233134323432467d2e6336317b66696c6c3a6104f08201527f234230363833377d2e6336327b66696c6c3a233846344230457d2e6336337b666105108201527f696c6c3a234438383232377d2e6336347b66696c6c3a234230363833377d2e636105308201527f36357b66696c6c3a234646454233427d2e6336367b66696c6c3a2346464331306105508201526f1bbe9e17b9ba3cb6329f1e17b9bb339f60811b61057082015261058001919050565b605b60f81b815260008251613f86816001850160208701614303565b605d60f81b6001939091019283015250600201919050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251613fd681601d850160208701614303565b91909101601d0192915050565b603160f81b815260008251613682816001850160208701614303565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061388790830184613388565b6020808252825182820181905260009190848201906040850190845b8181101561406a5783518352928401929184019160010161404e565b50909695505050505050565b6020815260006106bb6020830184613388565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051608081016001600160401b038111828210171561418357614183614407565b60405290565b604051601f8201601f191681016001600160401b03811182821017156141b1576141b1614407565b604052919050565b60006001600160401b038211156141d2576141d2614407565b50601f01601f191660200190565b600061ffff8083168185168083038211156141fd576141fd6143db565b01949350505050565b60008219821115614219576142196143db565b500190565b600060ff821660ff84168060ff0382111561423b5761423b6143db565b019392505050565b600082614252576142526143f1565b500490565b600061ffff80831681851681830481118215151615614278576142786143db565b02949350505050565b600081600019048311821515161561429b5761429b6143db565b500290565b600060ff821660ff84168160ff04811182151516156142c1576142c16143db565b029392505050565b6000828210156142db576142db6143db565b500390565b600060ff821660ff8416808210156142fa576142fa6143db565b90039392505050565b60005b8381101561431e578181015183820152602001614306565b838111156116b95750506000910152565b600181811c9082168061434357607f821691505b6020821081141561436457634e487b7160e01b600052602260045260246000fd5b50919050565b600061ffff80831681811415614382576143826143db565b6001019392505050565b60006000198214156143a0576143a06143db565b5060010190565b600060ff821660ff8114156143be576143be6143db565b60010192915050565b6000826143d6576143d66143f1565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461095957600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212203103de0bc69d080a7f72858e3aa25f956e594b6802230ecb23f9c2ac566f717364736f6c63430008040033
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.