Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
1,840 bMICE
Holders
358
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 bMICELoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
AnonymiceResuscitator
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"; // d8888 d8b 888888b. 888 // d88888 Y8P 888 "88b 888 // d88P888 888 .88P 888 // d88P 888 88888b. .d88b. 88888b. 888 888 88888b.d88b. 888 .d8888b .d88b. 8888888K. 888 888 888d888 88888b. .d88b. .d88888 // d88P 888 888 "88b d88""88b 888 "88b 888 888 888 "888 "88b 888 d88P" d8P Y8b 888 "Y88b 888 888 888P" 888 "88b d8P Y8b d88" 888 // d88P 888 888 888 888 888 888 888 888 888 888 888 888 888 888 88888888 888 888 888 888 888 888 888 88888888 888 888 // d8888888888 888 888 Y88..88P 888 888 Y88b 888 888 888 888 888 Y88b. Y8b. 888 d88P Y88b 888 888 888 888 Y8b. Y88b 888 // d88P 888 888 888 "Y88P" 888 888 "Y88888 888 888 888 888 "Y8888P "Y8888 8888888P" "Y88888 888 888 888 "Y8888 "Y88888 // 888 // Y8b d88P // "Y88P" contract AnonymiceResuscitator 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 = .03 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 Burned", "bMICE") { } // ββββ βββββββββββ βββββββββββββββββββ βββ βββββββ βββββββββββ βββββββ βββ βββββββββββββββββββ βββββββ ββββ βββββββββββ // βββββ βββββββββββββ ββββββββββββββββββββ βββββββββββ βββββββββββ ββββββββ βββββββββββββββββββββββββββββββββββββ βββββββββββ // ββββββββββββββββββββ βββ βββ βββββββββ ββββββ ββββ ββββββ βββ βββββββββ ββββββ βββ ββββββ βββββββββ βββββββββββ // ββββββββββββββββββββββββ βββ ββββββββββββββββ βββ ββββββ βββ ββββββββββββββββ βββ ββββββ βββββββββββββββββββββ // βββ βββ βββββββββ ββββββ βββ ββββββ βββββββββββββββ βββ ββββββββββββ ββββββββββββββ βββ βββββββββββββββ ββββββββββββββ // βββ βββββββββ βββββ βββ ββββββ βββββ βββββββ βββ βββββββ βββ βββββ βββββββ βββ βββ βββββββ βββ βββββββββββββ /** * @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:#4F10FF}.c66{fill:#3D9EFD}.c67{fill:#98FFE0}.c68{fill:#45C4F8}</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 Burned is a collection of 6,450 burned mices from the Anonymice collection, with the same traits as the burned ones. Like the original collection, metadata and images are generated and stored 100% on-chain. No IPFS, no API. Just the Ethereum blockchain. And a group of resurrected mices", "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); } /** * @dev Collects the total amount in the contract * @param newAddress The new address of the anonymice contract */ function setAnonymiceOriginalContractAddress(address newAddress) public onlyOwner { anonymiceContract = newAddress; } }
// 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":"newAddress","type":"address"}],"name":"setAnonymiceOriginalContractAddress","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
600061019f556119326101a1556101f46101a255666a94d74f4300006101a3556101a480546001600160a01b03191673bad6186e92002e312078b5a1dafd5ddf63d3f73117905560016103c0818152606160f81b6103e0526080908152610400828152603160f91b6104205260a052610440828152606360f81b6104605260c052610480828152601960fa1b6104a05260e0526104c0828152606560f81b6104e05261010052610500828152603360f91b6105205261012052610540828152606760f81b6105605261014052610580828152600d60fb1b6105a052610160526105c0828152606960f81b6105e05261018052610600828152603560f91b610620526101a052610640828152606b60f81b610660526101c052610680828152601b60fa1b6106a0526101e0526106c0828152606d60f81b6106e05261020052610700828152603760f91b6107205261022052610740828152606f60f81b6107605261024052610780828152600760fc1b6107a052610260526107c0828152607160f81b6107e05261028052610800828152603960f91b610820526102a052610840828152607360f81b610860526102c052610880828152601d60fa1b6108a0526102e0526108c0828152607560f81b6108e05261030052610900828152603b60f91b6109205261032052610940828152607760f81b6109605261034052610980828152600f60fb1b6109a052610360526109c0828152607960f81b6109e05261038052610a40604052610a00918252603d60f91b610a20526103a0919091526200024e906101a590601a62000341565b503480156200025c57600080fd5b50604080518082018252601081526f105b9bdb9e5b5a58d948109d5c9b995960821b602080830191825283518085019094526005845264624d49434560d81b908401528151919291620002b291600091620003a5565b508051620002c8906001906020840190620003a5565b505050620002e5620002df620002eb60201b60201c565b620002ef565b620004e7565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805482825590600052602060002090810192821562000393579160200282015b8281111562000393578251805162000382918491602090910190620003a5565b509160200191906001019062000362565b50620003a192915062000430565b5090565b828054620003b390620004aa565b90600052602060002090601f016020900481019282620003d7576000855562000422565b82601f10620003f257805160ff191683800117855562000422565b8280016001018555821562000422579182015b828111156200042257825182559160200191906001019062000405565b50620003a192915062000451565b80821115620003a157600062000447828262000468565b5060010162000430565b5b80821115620003a1576000815560010162000452565b5080546200047690620004aa565b6000825580601f1062000487575050565b601f016020900490600052602060002090810190620004a7919062000451565b50565b600181811c90821680620004bf57607f821691505b60208210811415620004e157634e487b7160e01b600052602260045260246000fd5b50919050565b61457e80620004f76000396000f3fe6080604052600436106101c15760003560e01c8063564acc3a116100f7578063a22cb46511610095578063c87b56dd11610064578063c87b56dd146104ec578063cb697ea21461050c578063e985e9c51461052c578063f2fde38b1461057557600080fd5b8063a22cb4651461046c578063aee1bef41461048c578063b88d4fde146104ac578063b9e6cfad146104cc57600080fd5b8063715018a6116100d1578063715018a61461040457806389ce3074146104195780638da5cb5b1461043957806395d89b411461045757600080fd5b8063564acc3a146103af5780636352211e146103c457806370a08231146103e457600080fd5b806323b872dd1161016457806340c10f191161013e57806340c10f191461032f57806342842e0e14610342578063438b6300146103625780634f6ccce71461038f57600080fd5b806323b872dd146102da5780632f745c59146102fa5780633ccfd60b1461031a57600080fd5b8063081812fc116101a0578063081812fc14610241578063095ea7b3146102795780630b7fe9b51461029b57806318160ddd146102bb57600080fd5b80625ea307146101c657806301ffc9a7146101fc57806306fdde031461022c575b600080fd5b3480156101d257600080fd5b506101e66101e13660046133d0565b610595565b6040516101f3919061414b565b60405180910390f35b34801561020857600080fd5b5061021c610217366004613267565b6106ed565b60405190151581526020016101f3565b34801561023857600080fd5b506101e6610718565b34801561024d57600080fd5b5061026161025c3660046133d0565b6107aa565b6040516001600160a01b0390911681526020016101f3565b34801561028557600080fd5b5061029961029436600461317d565b610844565b005b3480156102a757600080fd5b506102996102b63660046133d0565b61095a565b3480156102c757600080fd5b506008545b6040519081526020016101f3565b3480156102e657600080fd5b506102996102f5366004613090565b610987565b34801561030657600080fd5b506102cc61031536600461317d565b6109b8565b34801561032657600080fd5b50610299610a4e565b61029961033d36600461317d565b610aab565b34801561034e57600080fd5b5061029961035d366004613090565b610b5f565b34801561036e57600080fd5b5061038261037d366004613044565b610b7a565b6040516101f39190614107565b34801561039b57600080fd5b506102cc6103aa3660046133d0565b610c37565b3480156103bb57600080fd5b50610299610cd8565b3480156103d057600080fd5b506102616103df3660046133d0565b610d84565b3480156103f057600080fd5b506102cc6103ff366004613044565b610dfb565b34801561041057600080fd5b50610299610e82565b34801561042557600080fd5b506101e661043436600461329f565b610eb8565b34801561044557600080fd5b50600a546001600160a01b0316610261565b34801561046357600080fd5b506101e6611454565b34801561047857600080fd5b50610299610487366004613143565b611463565b34801561049857600080fd5b506102996104a73660046131a6565b611528565b3480156104b857600080fd5b506102996104c73660046130cb565b6116b2565b3480156104d857600080fd5b506101e66104e736600461338e565b6116ea565b3480156104f857600080fd5b506101e66105073660046133d0565b611ba7565b34801561051857600080fd5b50610299610527366004613044565b611c4c565b34801561053857600080fd5b5061021c61054736600461305e565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561058157600080fd5b50610299610590366004613044565b611c99565b6101a4546060906001600160a01b0316600081625ea307600b8661193281106105ce57634e487b7160e01b600052603260045260246000fd5b601091828204019190066002029054906101000a900461ffff1661ffff166040518263ffffffff1660e01b815260040161060a91815260200190565b60006040518083038186803b15801561062257600080fd5b505afa158015610636573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261065e91908101906132d1565b905061066984610d84565b6001600160a01b031661dead6001600160a01b031614156106b7576106918160016009611d31565b6040516020016106a191906140b8565b60405160208183030381529060405290506106e6565b6106c48160016009611d31565b6040516020016106d491906136dd565b60405160208183030381529060405290505b9392505050565b60006001600160e01b0319821663780e9d6360e01b1480610712575061071282611e27565b92915050565b60606000805461072790614404565b80601f016020809104026020016040519081016040528092919081815260200182805461075390614404565b80156107a05780601f10610775576101008083540402835291602001916107a0565b820191906000526020600020905b81548152906001019060200180831161078357829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166108285760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061084f82610d84565b9050806001600160a01b0316836001600160a01b031614156108bd5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161081f565b336001600160a01b03821614806108d957506108d98133610547565b61094b5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161081f565b6109558383611e77565b505050565b3361096482610d84565b6001600160a01b03161461097757600080fd5b6109843361dead83611ee5565b50565b6109913382612090565b6109ad5760405162461bcd60e51b815260040161081f906141e5565b610955838383611ee5565b60006109c383610dfb565b8210610a255760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161081f565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b03163314610a785760405162461bcd60e51b815260040161081f906141b0565b6040514790339082156108fc029083906000818181858888f19350505050158015610aa7573d6000803e3d6000fd5b5050565b6000610ab660085490565b90506101a254811115610b555734826101a354610ad39190614356565b1115610b555760405162461bcd60e51b8152602060048201526044602482018190527f4e6f7420656e6f7567682065746865722073656e74202873656e6420302e3033908201527f2065746820666f722065616368206d69636520796f752077616e7420746f206d606482015263696e742960e01b608482015260a40161081f565b6109558284612187565b610955838383604051806020016040528060008152506116b2565b60606000610b8783610dfb565b90506000816001600160401b03811115610bb157634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610bda578160200160208202803683370190505b50905060005b82811015610c2f57610bf285826109b8565b828281518110610c1257634e487b7160e01b600052603260045260246000fd5b602090810291909101015280610c2781614461565b915050610be0565b509392505050565b6000610c4260085490565b8210610ca55760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161081f565b60088281548110610cc657634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b600a546001600160a01b03163314610d025760405162461bcd60e51b815260040161081f906141b0565b60005b6101a054811015610984576101a08181548110610d3257634e487b7160e01b600052603260045260246000fd5b60009182526020822060049091020190610d4c8282612dcc565b610d5a600183016000612dcc565b610d68600283016000612dcc565b5060006003919091015580610d7c81614461565b915050610d05565b6000818152600260205260408120546001600160a01b0316806107125760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161081f565b60006001600160a01b038216610e665760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161081f565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03163314610eac5760405162461bcd60e51b815260040161081f906141b0565b610eb66000612288565b565b606080610ec3612e06565b6101a4546001600160a01b031660005b60098160ff161015611429576000610f04610eff8860ff8516610ef78660016142f3565b60ff16611d31565b6122da565b9050610f316040518060800160405280606081526020016060815260200160608152602001600081525090565b60ff83166111d15760405180608001604052806101a08460ff1681548110610f6957634e487b7160e01b600052603260045260246000fd5b90600052602060002090600402016000018054610f8590614404565b80601f0160208091040260200160405190810160405280929190818152602001828054610fb190614404565b8015610ffe5780601f10610fd357610100808354040283529160200191610ffe565b820191906000526020600020905b815481529060010190602001808311610fe157829003601f168201915b505050505081526020016101a08460ff168154811061102d57634e487b7160e01b600052603260045260246000fd5b9060005260206000209060040201600101805461104990614404565b80601f016020809104026020016040519081016040528092919081815260200182805461107590614404565b80156110c25780601f10611097576101008083540402835291602001916110c2565b820191906000526020600020905b8154815290600101906020018083116110a557829003601f168201915b505050505081526020016101a08460ff16815481106110f157634e487b7160e01b600052603260045260246000fd5b9060005260206000209060040201600201805461110d90614404565b80601f016020809104026020016040519081016040528092919081815260200182805461113990614404565b80156111865780601f1061115b57610100808354040283529160200191611186565b820191906000526020600020905b81548152906001019060200180831161116957829003601f168201915b505050505081526020016101a08460ff16815481106111b557634e487b7160e01b600052603260045260246000fd5b9060005260206000209060040201600301548152509050611285565b6040516317d84c6960e11b815260ff8085166004830152831660248201526000908190819081906001600160a01b03891690632fb098d29060440160006040518083038186803b15801561122457600080fd5b505afa158015611238573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526112609190810190613303565b6040805160808101825294855260208501939093529183015260608201529450505050505b60005b81606001518161ffff1610156114135760006112d283604001518360046112af919061432c565b61ffff166112be85600461432c565b6112c99060046142b5565b61ffff16611d31565b905060006112eb6112e68360006001611d31565b6123ba565b905060006112ff6112e68460016002611d31565b9050888260ff166018811061132457634e487b7160e01b600052603260045260246000fd5b60200201518160ff166018811061134b57634e487b7160e01b600052603260045260246000fd5b60200201511561135d57505050611401565b8961136b8460026004611d31565b6113778460ff16612471565b6113838460ff16612471565b6040516020016113969493929190613489565b60405160208183030381529060405299506001898360ff16601881106113cc57634e487b7160e01b600052603260045260246000fd5b60200201518260ff16601881106113f357634e487b7160e01b600052603260045260246000fd5b911515602090920201525050505b8061140b8161443f565b915050611288565b50505080806114219061447c565b915050610ed3565b508260405160200161143b919061393b565b60408051601f1981840301815291905295945050505050565b60606001805461072790614404565b6001600160a01b0382163314156114bc5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161081f565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a546001600160a01b031633146115525760405162461bcd60e51b815260040161081f906141b0565b60005b8151811015610aa7576101a0604051806080016040528084848151811061158c57634e487b7160e01b600052603260045260246000fd5b60200260200101516000015181526020018484815181106115bd57634e487b7160e01b600052603260045260246000fd5b60200260200101516020015181526020018484815181106115ee57634e487b7160e01b600052603260045260246000fd5b602002602001015160400151815260200184848151811061161f57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516060015190915282546001810184556000938452928190208251805193946004029091019261165d9284920190612e34565b5060208281015180516116769260018501920190612e34565b5060408201518051611692916002840191602090910190612e34565b5060608201518160030155505080806116aa90614461565b915050611555565b6116bc3383612090565b6116d85760405162461bcd60e51b815260040161081f906141e5565b6116e48484848461258a565b50505050565b6101a45460609081906001600160a01b031660005b60098160ff161015611b11576000611723610eff8860ff8516610ef78660016142f3565b90506117506040518060800160405280606081526020016060815260200160608152602001600081525090565b60ff83166119f05760405180608001604052806101a08460ff168154811061178857634e487b7160e01b600052603260045260246000fd5b906000526020600020906004020160000180546117a490614404565b80601f01602080910402602001604051908101604052809291908181526020018280546117d090614404565b801561181d5780601f106117f25761010080835404028352916020019161181d565b820191906000526020600020905b81548152906001019060200180831161180057829003601f168201915b505050505081526020016101a08460ff168154811061184c57634e487b7160e01b600052603260045260246000fd5b9060005260206000209060040201600101805461186890614404565b80601f016020809104026020016040519081016040528092919081815260200182805461189490614404565b80156118e15780601f106118b6576101008083540402835291602001916118e1565b820191906000526020600020905b8154815290600101906020018083116118c457829003601f168201915b505050505081526020016101a08460ff168154811061191057634e487b7160e01b600052603260045260246000fd5b9060005260206000209060040201600201805461192c90614404565b80601f016020809104026020016040519081016040528092919081815260200182805461195890614404565b80156119a55780601f1061197a576101008083540402835291602001916119a5565b820191906000526020600020905b81548152906001019060200180831161198857829003601f168201915b505050505081526020016101a08460ff16815481106119d457634e487b7160e01b600052603260045260246000fd5b9060005260206000209060040201600301548152509050611aa4565b6040516317d84c6960e11b815260ff8085166004830152831660248201526000908190819081906001600160a01b03891690632fb098d29060440160006040518083038186803b158015611a4357600080fd5b505afa158015611a57573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611a7f9190810190613303565b6040805160808101825294855260208501939093529183015260608201529450505050505b6020808201518251604051611abd938993929101613530565b60405160208183030381529060405294508260ff16600814611afc5784604051602001611aea9190613464565b60405160208183030381529060405294505b50508080611b099061447c565b9150506116ff565b5081611b5b600b866119328110611b3857634e487b7160e01b600052603260045260246000fd5b601091828204019190066002029054906101000a900461ffff1661ffff16612471565b604051602001611b6c9291906135b6565b604051602081830303815290604052915081604051602001611b8e919061403f565b6040516020818303038152906040529250505092915050565b6000818152600260205260409020546060906001600160a01b0316611bcb57600080fd5b6000611bd683610595565b9050611c25611be484612471565b611bf5611bf084610eb8565b6125bd565b611bff84876116ea565b604051602001611c1193929190613706565b6040516020818303038152906040526125bd565b604051602001611c359190614073565b604051602081830303815290604052915050919050565b600a546001600160a01b03163314611c765760405162461bcd60e51b815260040161081f906141b0565b6101a480546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b03163314611cc35760405162461bcd60e51b815260040161081f906141b0565b6001600160a01b038116611d285760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161081f565b61098481612288565b6060836000611d40858561439e565b6001600160401b03811115611d6557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611d8f576020820181803683370190505b509050845b84811015611e1d57828181518110611dbc57634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b03191682611dd6888461439e565b81518110611df457634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535080611e1581614461565b915050611d94565b5095945050505050565b60006001600160e01b031982166380ac58cd60e01b1480611e5857506001600160e01b03198216635b5e139f60e01b145b8061071257506301ffc9a760e01b6001600160e01b0319831614610712565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611eac82610d84565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b826001600160a01b0316611ef882610d84565b6001600160a01b031614611f605760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161081f565b6001600160a01b038216611fc25760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161081f565b611fcd838383612732565b611fd8600082611e77565b6001600160a01b038316600090815260036020526040812080546001929061200190849061439e565b90915550506001600160a01b038216600090815260036020526040812080546001929061202f9084906142db565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000818152600260205260408120546001600160a01b03166121095760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161081f565b600061211483610d84565b9050806001600160a01b0316846001600160a01b0316148061214f5750836001600160a01b0316612144846107aa565b6001600160a01b0316145b8061217f57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b600061219260085490565b90506101a15481106121e65760405162461bcd60e51b815260206004820152601c60248201527f53616c6520776f756c6420657863656564206d617820737570706c7900000000604482015260640161081f565b333b156121f257600080fd5b6101a15461220082856142db565b111561221857806101a154612215919061439e565b92505b612221836127ea565b60005b838110156116e457612236838361296a565b6040518281527ff00d28232b285f24f2e38415deb2ceb31069e70d4505838b3911b4f02058502e9060200160405180910390a16122748260016142db565b91508061228081614461565b915050612224565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008181805b82518160ff161015610c2f576030838260ff168151811061231157634e487b7160e01b600052603260045260246000fd5b016020015160f81c1080159061235257506039838260ff168151811061234757634e487b7160e01b600052603260045260246000fd5b016020015160f81c11155b156123a857612362600a83614375565b91506030838260ff168151811061238957634e487b7160e01b600052603260045260246000fd5b016020015161239b919060f81c6143b5565b6123a590836142f3565b91505b806123b28161447c565b9150506122e0565b6000805b6101a55460ff8216101561246b57826040516020016123dd9190613448565b604051602081830303815290604052805190602001206101a58260ff168154811061241857634e487b7160e01b600052603260045260246000fd5b906000526020600020016040516020016124329190613642565b604051602081830303815290604052805190602001201415612459576106e68160016142f3565b806124638161447c565b9150506123be565b50600080fd5b6060816124955750506040805180820190915260018152600360fc1b602082015290565b8160005b81156124bf57806124a981614461565b91506124b89050600a83614318565b9150612499565b6000816001600160401b038111156124e757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612511576020820181803683370190505b5090505b841561217f5761252660018361439e565b9150612533600a8661449c565b61253e9060306142db565b60f81b81838151811061256157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612583600a86614318565b9450612515565b612595848484611ee5565b6125a184848484612984565b6116e45760405162461bcd60e51b815260040161081f9061415e565b60608151600014156125dd57505060408051602081019091526000815290565b6000604051806060016040528060408152602001614509604091399050600060038451600261260c91906142db565b6126169190614318565b612621906004614356565b905060006126308260206142db565b6001600160401b0381111561265557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561267f576020820181803683370190505b509050818152600183018586518101602084015b818310156126ed5760039283018051603f601282901c811687015160f890811b8552600c83901c8216880151811b6001860152600683901c8216880151811b60028601529116860151901b93820193909352600401612693565b600389510660018114612707576002811461271857612724565b613d3d60f01b600119830152612724565b603d60f81b6000198301525b509398975050505050505050565b6001600160a01b03831661278d5761278881600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6127b0565b816001600160a01b0316836001600160a01b0316146127b0576127b08382612a91565b6001600160a01b0382166127c75761095581612b2e565b826001600160a01b0316826001600160a01b031614610955576109558282612c07565b6101a15461019f5411156128405760405162461bcd60e51b815260206004820152601960248201527f416c6c20706f737369626c65206d69636573206c6f6164656400000000000000604482015260640161081f565b6101a45461019f546001600160a01b0390911690805b61286084836142db565b8110801561287057506101a15481105b1561295657604051632f745c5960e01b815261dead6004820152602481018290526000906001600160a01b03851690632f745c599060440160206040518083038186803b1580156128c057600080fd5b505afa1580156128d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128f891906133e8565b905080600b83611932811061291d57634e487b7160e01b600052603260045260246000fd5b601091828204019190066002026101000a81548161ffff021916908361ffff16021790555050808061294e90614461565b915050612856565b5061296183826142db565b61019f55505050565b610aa7828260405180602001604052806000815250612c4b565b60006001600160a01b0384163b15612a8657604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906129c89033908990889088906004016140d4565b602060405180830381600087803b1580156129e257600080fd5b505af1925050508015612a12575060408051601f3d908101601f19168201909252612a0f91810190613283565b60015b612a6c573d808015612a40576040519150601f19603f3d011682016040523d82523d6000602084013e612a45565b606091505b508051612a645760405162461bcd60e51b815260040161081f9061415e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061217f565b506001949350505050565b60006001612a9e84610dfb565b612aa8919061439e565b600083815260076020526040902054909150808214612afb576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612b409060019061439e565b60008381526009602052604081205460088054939450909284908110612b7657634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110612ba557634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612beb57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612c1283610dfb565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b612c558383612c7e565b612c626000848484612984565b6109555760405162461bcd60e51b815260040161081f9061415e565b6001600160a01b038216612cd45760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161081f565b6000818152600260205260409020546001600160a01b031615612d395760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161081f565b612d4560008383612732565b6001600160a01b0382166000908152600360205260408120805460019290612d6e9084906142db565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b508054612dd890614404565b6000825580601f10612de8575050565b601f0160209004906000526020600020908101906109849190612eb8565b6040518061030001604052806018905b612e1e612ecd565b815260200190600190039081612e165790505090565b828054612e4090614404565b90600052602060002090601f016020900481019282612e625760008555612ea8565b82601f10612e7b57805160ff1916838001178555612ea8565b82800160010185558215612ea8579182015b82811115612ea8578251825591602001919060010190612e8d565b50612eb4929150612eb8565b5090565b5b80821115612eb45760008155600101612eb9565b6040518061030001604052806018906020820280368337509192915050565b6000612eff612efa8461428e565b61425e565b9050828152838383011115612f1357600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114612f4157600080fd5b919050565b600082601f830112612f56578081fd5b6106e683833560208501612eec565b600082601f830112612f75578081fd5b8151612f83612efa8261428e565b818152846020838601011115612f97578283fd5b61217f8260208301602087016143d8565b600060808284031215612fb9578081fd5b612fc1614236565b905081356001600160401b0380821115612fda57600080fd5b612fe685838601612f46565b83526020840135915080821115612ffc57600080fd5b61300885838601612f46565b6020840152604084013591508082111561302157600080fd5b5061302e84828501612f46565b6040830152506060820135606082015292915050565b600060208284031215613055578081fd5b6106e682612f2a565b60008060408385031215613070578081fd5b61307983612f2a565b915061308760208401612f2a565b90509250929050565b6000806000606084860312156130a4578081fd5b6130ad84612f2a565b92506130bb60208501612f2a565b9150604084013590509250925092565b600080600080608085870312156130e0578081fd5b6130e985612f2a565b93506130f760208601612f2a565b92506040850135915060608501356001600160401b03811115613118578182fd5b8501601f81018713613128578182fd5b61313787823560208401612eec565b91505092959194509250565b60008060408385031215613155578182fd5b61315e83612f2a565b915060208301358015158114613172578182fd5b809150509250929050565b6000806040838503121561318f578182fd5b61319883612f2a565b946020939093013593505050565b600060208083850312156131b8578182fd5b82356001600160401b03808211156131ce578384fd5b818501915085601f8301126131e1578384fd5b8135818111156131f3576131f36144dc565b8060051b61320285820161425e565b8281528581019085870183870188018b101561321c578889fd5b8893505b848410156132595780358681111561323657898afd5b6132448c8a838b0101612fa8565b84525060019390930192918701918701613220565b509998505050505050505050565b600060208284031215613278578081fd5b81356106e6816144f2565b600060208284031215613294578081fd5b81516106e6816144f2565b6000602082840312156132b0578081fd5b81356001600160401b038111156132c5578182fd5b61217f84828501612f46565b6000602082840312156132e2578081fd5b81516001600160401b038111156132f7578182fd5b61217f84828501612f65565b60008060008060808587031215613318578182fd5b84516001600160401b038082111561332e578384fd5b61333a88838901612f65565b9550602087015191508082111561334f578384fd5b61335b88838901612f65565b94506040870151915080821115613370578384fd5b5061337d87828801612f65565b606096909601519497939650505050565b600080604083850312156133a0578182fd5b82356001600160401b038111156133b5578283fd5b6133c185828601612f46565b95602094909401359450505050565b6000602082840312156133e1578081fd5b5035919050565b6000602082840312156133f9578081fd5b5051919050565b600081518084526134188160208601602086016143d8565b601f01601f19169290920160200192915050565b6000815161343e8185602086016143d8565b9290920192915050565b6000825161345a8184602087016143d8565b9190910192915050565b600082516134768184602087016143d8565b600b60fa1b920191825250600101919050565b6000855161349b818460208a016143d8565b6d3c7265637420636c6173733d276360901b90830190815285516134c681600e840160208a016143d8565b642720783d2760d81b600e929091019182015284516134ec8160138401602089016143d8565b642720793d2760d81b6013929091019182015283516135128160188401602088016143d8565b6213979f60e91b60189290910191820152601b019695505050505050565b600084516135428184602089016143d8565b6e3d913a3930b4ba2fba3cb832911d1160891b908301908152845161356e81600f8401602089016143d8565b6a1116113b30b63ab2911d1160a91b600f9290910191820152835161359a81601a8401602088016143d8565b61227d60f01b601a9290910191820152601c0195945050505050565b600083516135c88184602088016143d8565b6e3d913a3930b4ba2fba3cb832911d1160891b9083019081527513dc9a59da5b985b08135a58d948151bdad95b88125960521b600f8201526a1116113b30b63ab2911d1160a91b602582015283516136278160308401602088016143d8565b61227d60f01b60309290910191820152603201949350505050565b600080835482600182811c91508083168061365e57607f831692505b602080841082141561367e57634e487b7160e01b87526022600452602487fd5b81801561369257600181146136a3576136cf565b60ff198616895284890196506136cf565b60008a815260209020885b868110156136c75781548b8201529085019083016136ae565b505084890196505b509498975050505050505050565b600360fc1b8152600082516136f98160018501602087016143d8565b9190910160010192915050565b747b226e616d65223a2022416e6f6e796d696365202360581b815283516000906137378160158501602089016143d8565b7f222c20226465736372697074696f6e223a2022416e6f6e796d696365204275726015918401918201527f6e6564206973206120636f6c6c656374696f6e206f6620362c3435302062757260358201527f6e6564206d696365732066726f6d2074686520416e6f6e796d69636520636f6c60558201527f6c656374696f6e2c2077697468207468652073616d652074726169747320617360758201527f20746865206275726e6564206f6e65732e204c696b6520746865206f7269676960958201527f6e616c20636f6c6c656374696f6e2c206d6574616461746120616e6420696d6160b58201527f676573206172652067656e65726174656420616e642073746f7265642031303060d58201527f25206f6e2d636861696e2e204e6f20495046532c206e6f204150492e204a757360f58201527f742074686520457468657265756d20626c6f636b636861696e2e20416e6420616101158201527f2067726f7570206f66207265737572726563746564206d69636573222c2022696101358201527f6d616765223a2022646174613a696d6167652f7376672b786d6c3b6261736536610155820152610d0b60f21b61017582015261393161392461391e61390361017785018961342c565b6e11161130ba3a3934b13aba32b9911d60891b8152600f0190565b8661342c565b607d60f81b815260010190565b9695505050505050565b7f3c7376672069643d226d6f7573652d7376672220786d6c6e733d22687474703a81527f2f2f7777772e77332e6f72672f323030302f737667222070726573657276654160208201527f7370656374526174696f3d22784d696e594d696e206d6565742220766965774260408201526f037bc1e9118101810191a10191a111f160851b6060820152600082516139d88160708501602087016143d8565b7f3c7374796c653e726563747b77696474683a3170783b6865696768743a31707860709390910192830152507f3b7d20236d6f7573652d7376677b73686170652d72656e646572696e673a206360908201527f7269737065646765733b7d202e6330307b66696c6c3a233030303030307d2e6360b08201527f30317b66696c6c3a234231414441437d2e6330327b66696c6c3a23443744374460d08201527f377d2e6330337b66696c6c3a234646413641367d2e6330347b66696c6c3a234660f08201527f46443444357d2e6330357b66696c6c3a234239414439357d2e6330367b66696c6101108201527f6c3a234532443642457d2e6330377b66696c6c3a233746363235417d2e6330386101308201527f7b66696c6c3a234135384638327d2e6330397b66696c6c3a233442314530427d6101508201527f2e6331307b66696c6c3a233644324331307d2e6331317b66696c6c3a234438446101708201527f3844387d2e6331327b66696c6c3a234635463546357d2e6331337b66696c6c3a6101908201527f233433334434427d2e6331347b66696c6c3a233844393439437d2e6331357b666101b08201527f696c6c3a233035464630307d2e6331367b66696c6c3a233031433730307d2e636101d08201527f31377b66696c6c3a233042384630387d2e6331387b66696c6c3a2334323143316101f08201527f337d2e6331397b66696c6c3a233642333932417d2e6332307b66696c6c3a23416102108201527f33354534307d2e6332317b66696c6c3a234443424439317d2e6332327b66696c6102308201527f6c3a233737373737377d2e6332337b66696c6c3a233834383438347d2e6332346102508201527f7b66696c6c3a234142414241427d2e6332357b66696c6c3a234241424142417d6102708201527f2e6332367b66696c6c3a234337433743377d2e6332377b66696c6c3a234541456102908201527f4145417d2e6332387b66696c6c3a233043373641417d2e6332397b66696c6c3a6102b08201527f233045393744427d2e6333307b66696c6c3a233130413445437d2e6333317b666102d08201527f696c6c3a233133423046467d2e6333327b66696c6c3a233245423946457d2e636102f08201527f33337b66696c6c3a233534434346467d2e6333347b66696c6c3a2335304330466103108201527f327d2e6333357b66696c6c3a233534434346467d2e6333367b66696c6c3a23376103308201527f32444146467d2e6333377b66696c6c3a234236454146467d2e6333387b66696c6103508201527f6c3a234646464646467d2e6333397b66696c6c3a233935343534367d2e6334306103708201527f7b66696c6c3a233042383746377d2e6334317b66696c6c3a234646323632367d6103908201527f2e6334327b66696c6c3a233138304630327d2e6334337b66696c6c3a233242326103b08201527f3331397d2e6334347b66696c6c3a234642444434427d2e6334357b66696c6c3a6103d08201527f234635423932337d2e6334367b66696c6c3a234343384131387d2e6334377b666103f08201527f696c6c3a233343323230337d2e6334387b66696c6c3a233533333230427d2e636104108201527f34397b66696c6c3a233742353031447d2e6335307b66696c6c3a2346464536346104308201527f367d2e6335317b66696c6c3a234646443632377d2e6335327b66696c6c3a23466104508201527f35423730307d2e6335337b66696c6c3a233234323432347d2e6335347b66696c6104708201527f6c3a233441344134417d2e6335357b66696c6c3a233637363736377d2e6335366104908201527f7b66696c6c3a234630383330367d2e6335377b66696c6c3a234643413330457d6104b08201527f2e6335387b66696c6c3a234645424330457d2e6335397b66696c6c3a234642456104d08201527f4331437d2e6336307b66696c6c3a233134323432467d2e6336317b66696c6c3a6104f08201527f234230363833377d2e6336327b66696c6c3a233846344230457d2e6336337b666105108201527f696c6c3a234438383232377d2e6336347b66696c6c3a234230363833377d2e636105308201527f36357b66696c6c3a233446313046467d2e6336367b66696c6c3a2333443945466105508201527f447d2e6336377b66696c6c3a233938464645307d2e6336387b66696c6c3a2334610570820152731aa19a231c3e9e17b9ba3cb6329f1e17b9bb339f60611b6105908201526105a401919050565b605b60f81b81526000825161405b8160018501602087016143d8565b605d60f81b6001939091019283015250600201919050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152600082516140ab81601d8501602087016143d8565b91909101601d0192915050565b603160f81b8152600082516136f98160018501602087016143d8565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061393190830184613400565b6020808252825182820181905260009190848201906040850190845b8181101561413f57835183529284019291840191600101614123565b50909695505050505050565b6020815260006106e66020830184613400565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051608081016001600160401b0381118282101715614258576142586144dc565b60405290565b604051601f8201601f191681016001600160401b0381118282101715614286576142866144dc565b604052919050565b60006001600160401b038211156142a7576142a76144dc565b50601f01601f191660200190565b600061ffff8083168185168083038211156142d2576142d26144b0565b01949350505050565b600082198211156142ee576142ee6144b0565b500190565b600060ff821660ff84168060ff03821115614310576143106144b0565b019392505050565b600082614327576143276144c6565b500490565b600061ffff8083168185168183048111821515161561434d5761434d6144b0565b02949350505050565b6000816000190483118215151615614370576143706144b0565b500290565b600060ff821660ff84168160ff0481118215151615614396576143966144b0565b029392505050565b6000828210156143b0576143b06144b0565b500390565b600060ff821660ff8416808210156143cf576143cf6144b0565b90039392505050565b60005b838110156143f35781810151838201526020016143db565b838111156116e45750506000910152565b600181811c9082168061441857607f821691505b6020821081141561443957634e487b7160e01b600052602260045260246000fd5b50919050565b600061ffff80831681811415614457576144576144b0565b6001019392505050565b6000600019821415614475576144756144b0565b5060010190565b600060ff821660ff811415614493576144936144b0565b60010192915050565b6000826144ab576144ab6144c6565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461098457600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220e3ef1f970ce523e1f105a691b717144b448de36f016d1bb56a1101ab76ad640464736f6c63430008040033
Deployed Bytecode
0x6080604052600436106101c15760003560e01c8063564acc3a116100f7578063a22cb46511610095578063c87b56dd11610064578063c87b56dd146104ec578063cb697ea21461050c578063e985e9c51461052c578063f2fde38b1461057557600080fd5b8063a22cb4651461046c578063aee1bef41461048c578063b88d4fde146104ac578063b9e6cfad146104cc57600080fd5b8063715018a6116100d1578063715018a61461040457806389ce3074146104195780638da5cb5b1461043957806395d89b411461045757600080fd5b8063564acc3a146103af5780636352211e146103c457806370a08231146103e457600080fd5b806323b872dd1161016457806340c10f191161013e57806340c10f191461032f57806342842e0e14610342578063438b6300146103625780634f6ccce71461038f57600080fd5b806323b872dd146102da5780632f745c59146102fa5780633ccfd60b1461031a57600080fd5b8063081812fc116101a0578063081812fc14610241578063095ea7b3146102795780630b7fe9b51461029b57806318160ddd146102bb57600080fd5b80625ea307146101c657806301ffc9a7146101fc57806306fdde031461022c575b600080fd5b3480156101d257600080fd5b506101e66101e13660046133d0565b610595565b6040516101f3919061414b565b60405180910390f35b34801561020857600080fd5b5061021c610217366004613267565b6106ed565b60405190151581526020016101f3565b34801561023857600080fd5b506101e6610718565b34801561024d57600080fd5b5061026161025c3660046133d0565b6107aa565b6040516001600160a01b0390911681526020016101f3565b34801561028557600080fd5b5061029961029436600461317d565b610844565b005b3480156102a757600080fd5b506102996102b63660046133d0565b61095a565b3480156102c757600080fd5b506008545b6040519081526020016101f3565b3480156102e657600080fd5b506102996102f5366004613090565b610987565b34801561030657600080fd5b506102cc61031536600461317d565b6109b8565b34801561032657600080fd5b50610299610a4e565b61029961033d36600461317d565b610aab565b34801561034e57600080fd5b5061029961035d366004613090565b610b5f565b34801561036e57600080fd5b5061038261037d366004613044565b610b7a565b6040516101f39190614107565b34801561039b57600080fd5b506102cc6103aa3660046133d0565b610c37565b3480156103bb57600080fd5b50610299610cd8565b3480156103d057600080fd5b506102616103df3660046133d0565b610d84565b3480156103f057600080fd5b506102cc6103ff366004613044565b610dfb565b34801561041057600080fd5b50610299610e82565b34801561042557600080fd5b506101e661043436600461329f565b610eb8565b34801561044557600080fd5b50600a546001600160a01b0316610261565b34801561046357600080fd5b506101e6611454565b34801561047857600080fd5b50610299610487366004613143565b611463565b34801561049857600080fd5b506102996104a73660046131a6565b611528565b3480156104b857600080fd5b506102996104c73660046130cb565b6116b2565b3480156104d857600080fd5b506101e66104e736600461338e565b6116ea565b3480156104f857600080fd5b506101e66105073660046133d0565b611ba7565b34801561051857600080fd5b50610299610527366004613044565b611c4c565b34801561053857600080fd5b5061021c61054736600461305e565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561058157600080fd5b50610299610590366004613044565b611c99565b6101a4546060906001600160a01b0316600081625ea307600b8661193281106105ce57634e487b7160e01b600052603260045260246000fd5b601091828204019190066002029054906101000a900461ffff1661ffff166040518263ffffffff1660e01b815260040161060a91815260200190565b60006040518083038186803b15801561062257600080fd5b505afa158015610636573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261065e91908101906132d1565b905061066984610d84565b6001600160a01b031661dead6001600160a01b031614156106b7576106918160016009611d31565b6040516020016106a191906140b8565b60405160208183030381529060405290506106e6565b6106c48160016009611d31565b6040516020016106d491906136dd565b60405160208183030381529060405290505b9392505050565b60006001600160e01b0319821663780e9d6360e01b1480610712575061071282611e27565b92915050565b60606000805461072790614404565b80601f016020809104026020016040519081016040528092919081815260200182805461075390614404565b80156107a05780601f10610775576101008083540402835291602001916107a0565b820191906000526020600020905b81548152906001019060200180831161078357829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166108285760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061084f82610d84565b9050806001600160a01b0316836001600160a01b031614156108bd5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161081f565b336001600160a01b03821614806108d957506108d98133610547565b61094b5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161081f565b6109558383611e77565b505050565b3361096482610d84565b6001600160a01b03161461097757600080fd5b6109843361dead83611ee5565b50565b6109913382612090565b6109ad5760405162461bcd60e51b815260040161081f906141e5565b610955838383611ee5565b60006109c383610dfb565b8210610a255760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161081f565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b03163314610a785760405162461bcd60e51b815260040161081f906141b0565b6040514790339082156108fc029083906000818181858888f19350505050158015610aa7573d6000803e3d6000fd5b5050565b6000610ab660085490565b90506101a254811115610b555734826101a354610ad39190614356565b1115610b555760405162461bcd60e51b8152602060048201526044602482018190527f4e6f7420656e6f7567682065746865722073656e74202873656e6420302e3033908201527f2065746820666f722065616368206d69636520796f752077616e7420746f206d606482015263696e742960e01b608482015260a40161081f565b6109558284612187565b610955838383604051806020016040528060008152506116b2565b60606000610b8783610dfb565b90506000816001600160401b03811115610bb157634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610bda578160200160208202803683370190505b50905060005b82811015610c2f57610bf285826109b8565b828281518110610c1257634e487b7160e01b600052603260045260246000fd5b602090810291909101015280610c2781614461565b915050610be0565b509392505050565b6000610c4260085490565b8210610ca55760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161081f565b60088281548110610cc657634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b600a546001600160a01b03163314610d025760405162461bcd60e51b815260040161081f906141b0565b60005b6101a054811015610984576101a08181548110610d3257634e487b7160e01b600052603260045260246000fd5b60009182526020822060049091020190610d4c8282612dcc565b610d5a600183016000612dcc565b610d68600283016000612dcc565b5060006003919091015580610d7c81614461565b915050610d05565b6000818152600260205260408120546001600160a01b0316806107125760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161081f565b60006001600160a01b038216610e665760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161081f565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03163314610eac5760405162461bcd60e51b815260040161081f906141b0565b610eb66000612288565b565b606080610ec3612e06565b6101a4546001600160a01b031660005b60098160ff161015611429576000610f04610eff8860ff8516610ef78660016142f3565b60ff16611d31565b6122da565b9050610f316040518060800160405280606081526020016060815260200160608152602001600081525090565b60ff83166111d15760405180608001604052806101a08460ff1681548110610f6957634e487b7160e01b600052603260045260246000fd5b90600052602060002090600402016000018054610f8590614404565b80601f0160208091040260200160405190810160405280929190818152602001828054610fb190614404565b8015610ffe5780601f10610fd357610100808354040283529160200191610ffe565b820191906000526020600020905b815481529060010190602001808311610fe157829003601f168201915b505050505081526020016101a08460ff168154811061102d57634e487b7160e01b600052603260045260246000fd5b9060005260206000209060040201600101805461104990614404565b80601f016020809104026020016040519081016040528092919081815260200182805461107590614404565b80156110c25780601f10611097576101008083540402835291602001916110c2565b820191906000526020600020905b8154815290600101906020018083116110a557829003601f168201915b505050505081526020016101a08460ff16815481106110f157634e487b7160e01b600052603260045260246000fd5b9060005260206000209060040201600201805461110d90614404565b80601f016020809104026020016040519081016040528092919081815260200182805461113990614404565b80156111865780601f1061115b57610100808354040283529160200191611186565b820191906000526020600020905b81548152906001019060200180831161116957829003601f168201915b505050505081526020016101a08460ff16815481106111b557634e487b7160e01b600052603260045260246000fd5b9060005260206000209060040201600301548152509050611285565b6040516317d84c6960e11b815260ff8085166004830152831660248201526000908190819081906001600160a01b03891690632fb098d29060440160006040518083038186803b15801561122457600080fd5b505afa158015611238573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526112609190810190613303565b6040805160808101825294855260208501939093529183015260608201529450505050505b60005b81606001518161ffff1610156114135760006112d283604001518360046112af919061432c565b61ffff166112be85600461432c565b6112c99060046142b5565b61ffff16611d31565b905060006112eb6112e68360006001611d31565b6123ba565b905060006112ff6112e68460016002611d31565b9050888260ff166018811061132457634e487b7160e01b600052603260045260246000fd5b60200201518160ff166018811061134b57634e487b7160e01b600052603260045260246000fd5b60200201511561135d57505050611401565b8961136b8460026004611d31565b6113778460ff16612471565b6113838460ff16612471565b6040516020016113969493929190613489565b60405160208183030381529060405299506001898360ff16601881106113cc57634e487b7160e01b600052603260045260246000fd5b60200201518260ff16601881106113f357634e487b7160e01b600052603260045260246000fd5b911515602090920201525050505b8061140b8161443f565b915050611288565b50505080806114219061447c565b915050610ed3565b508260405160200161143b919061393b565b60408051601f1981840301815291905295945050505050565b60606001805461072790614404565b6001600160a01b0382163314156114bc5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161081f565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a546001600160a01b031633146115525760405162461bcd60e51b815260040161081f906141b0565b60005b8151811015610aa7576101a0604051806080016040528084848151811061158c57634e487b7160e01b600052603260045260246000fd5b60200260200101516000015181526020018484815181106115bd57634e487b7160e01b600052603260045260246000fd5b60200260200101516020015181526020018484815181106115ee57634e487b7160e01b600052603260045260246000fd5b602002602001015160400151815260200184848151811061161f57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516060015190915282546001810184556000938452928190208251805193946004029091019261165d9284920190612e34565b5060208281015180516116769260018501920190612e34565b5060408201518051611692916002840191602090910190612e34565b5060608201518160030155505080806116aa90614461565b915050611555565b6116bc3383612090565b6116d85760405162461bcd60e51b815260040161081f906141e5565b6116e48484848461258a565b50505050565b6101a45460609081906001600160a01b031660005b60098160ff161015611b11576000611723610eff8860ff8516610ef78660016142f3565b90506117506040518060800160405280606081526020016060815260200160608152602001600081525090565b60ff83166119f05760405180608001604052806101a08460ff168154811061178857634e487b7160e01b600052603260045260246000fd5b906000526020600020906004020160000180546117a490614404565b80601f01602080910402602001604051908101604052809291908181526020018280546117d090614404565b801561181d5780601f106117f25761010080835404028352916020019161181d565b820191906000526020600020905b81548152906001019060200180831161180057829003601f168201915b505050505081526020016101a08460ff168154811061184c57634e487b7160e01b600052603260045260246000fd5b9060005260206000209060040201600101805461186890614404565b80601f016020809104026020016040519081016040528092919081815260200182805461189490614404565b80156118e15780601f106118b6576101008083540402835291602001916118e1565b820191906000526020600020905b8154815290600101906020018083116118c457829003601f168201915b505050505081526020016101a08460ff168154811061191057634e487b7160e01b600052603260045260246000fd5b9060005260206000209060040201600201805461192c90614404565b80601f016020809104026020016040519081016040528092919081815260200182805461195890614404565b80156119a55780601f1061197a576101008083540402835291602001916119a5565b820191906000526020600020905b81548152906001019060200180831161198857829003601f168201915b505050505081526020016101a08460ff16815481106119d457634e487b7160e01b600052603260045260246000fd5b9060005260206000209060040201600301548152509050611aa4565b6040516317d84c6960e11b815260ff8085166004830152831660248201526000908190819081906001600160a01b03891690632fb098d29060440160006040518083038186803b158015611a4357600080fd5b505afa158015611a57573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611a7f9190810190613303565b6040805160808101825294855260208501939093529183015260608201529450505050505b6020808201518251604051611abd938993929101613530565b60405160208183030381529060405294508260ff16600814611afc5784604051602001611aea9190613464565b60405160208183030381529060405294505b50508080611b099061447c565b9150506116ff565b5081611b5b600b866119328110611b3857634e487b7160e01b600052603260045260246000fd5b601091828204019190066002029054906101000a900461ffff1661ffff16612471565b604051602001611b6c9291906135b6565b604051602081830303815290604052915081604051602001611b8e919061403f565b6040516020818303038152906040529250505092915050565b6000818152600260205260409020546060906001600160a01b0316611bcb57600080fd5b6000611bd683610595565b9050611c25611be484612471565b611bf5611bf084610eb8565b6125bd565b611bff84876116ea565b604051602001611c1193929190613706565b6040516020818303038152906040526125bd565b604051602001611c359190614073565b604051602081830303815290604052915050919050565b600a546001600160a01b03163314611c765760405162461bcd60e51b815260040161081f906141b0565b6101a480546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b03163314611cc35760405162461bcd60e51b815260040161081f906141b0565b6001600160a01b038116611d285760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161081f565b61098481612288565b6060836000611d40858561439e565b6001600160401b03811115611d6557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611d8f576020820181803683370190505b509050845b84811015611e1d57828181518110611dbc57634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b03191682611dd6888461439e565b81518110611df457634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535080611e1581614461565b915050611d94565b5095945050505050565b60006001600160e01b031982166380ac58cd60e01b1480611e5857506001600160e01b03198216635b5e139f60e01b145b8061071257506301ffc9a760e01b6001600160e01b0319831614610712565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611eac82610d84565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b826001600160a01b0316611ef882610d84565b6001600160a01b031614611f605760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161081f565b6001600160a01b038216611fc25760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161081f565b611fcd838383612732565b611fd8600082611e77565b6001600160a01b038316600090815260036020526040812080546001929061200190849061439e565b90915550506001600160a01b038216600090815260036020526040812080546001929061202f9084906142db565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000818152600260205260408120546001600160a01b03166121095760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161081f565b600061211483610d84565b9050806001600160a01b0316846001600160a01b0316148061214f5750836001600160a01b0316612144846107aa565b6001600160a01b0316145b8061217f57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b600061219260085490565b90506101a15481106121e65760405162461bcd60e51b815260206004820152601c60248201527f53616c6520776f756c6420657863656564206d617820737570706c7900000000604482015260640161081f565b333b156121f257600080fd5b6101a15461220082856142db565b111561221857806101a154612215919061439e565b92505b612221836127ea565b60005b838110156116e457612236838361296a565b6040518281527ff00d28232b285f24f2e38415deb2ceb31069e70d4505838b3911b4f02058502e9060200160405180910390a16122748260016142db565b91508061228081614461565b915050612224565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008181805b82518160ff161015610c2f576030838260ff168151811061231157634e487b7160e01b600052603260045260246000fd5b016020015160f81c1080159061235257506039838260ff168151811061234757634e487b7160e01b600052603260045260246000fd5b016020015160f81c11155b156123a857612362600a83614375565b91506030838260ff168151811061238957634e487b7160e01b600052603260045260246000fd5b016020015161239b919060f81c6143b5565b6123a590836142f3565b91505b806123b28161447c565b9150506122e0565b6000805b6101a55460ff8216101561246b57826040516020016123dd9190613448565b604051602081830303815290604052805190602001206101a58260ff168154811061241857634e487b7160e01b600052603260045260246000fd5b906000526020600020016040516020016124329190613642565b604051602081830303815290604052805190602001201415612459576106e68160016142f3565b806124638161447c565b9150506123be565b50600080fd5b6060816124955750506040805180820190915260018152600360fc1b602082015290565b8160005b81156124bf57806124a981614461565b91506124b89050600a83614318565b9150612499565b6000816001600160401b038111156124e757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612511576020820181803683370190505b5090505b841561217f5761252660018361439e565b9150612533600a8661449c565b61253e9060306142db565b60f81b81838151811061256157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612583600a86614318565b9450612515565b612595848484611ee5565b6125a184848484612984565b6116e45760405162461bcd60e51b815260040161081f9061415e565b60608151600014156125dd57505060408051602081019091526000815290565b6000604051806060016040528060408152602001614509604091399050600060038451600261260c91906142db565b6126169190614318565b612621906004614356565b905060006126308260206142db565b6001600160401b0381111561265557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561267f576020820181803683370190505b509050818152600183018586518101602084015b818310156126ed5760039283018051603f601282901c811687015160f890811b8552600c83901c8216880151811b6001860152600683901c8216880151811b60028601529116860151901b93820193909352600401612693565b600389510660018114612707576002811461271857612724565b613d3d60f01b600119830152612724565b603d60f81b6000198301525b509398975050505050505050565b6001600160a01b03831661278d5761278881600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6127b0565b816001600160a01b0316836001600160a01b0316146127b0576127b08382612a91565b6001600160a01b0382166127c75761095581612b2e565b826001600160a01b0316826001600160a01b031614610955576109558282612c07565b6101a15461019f5411156128405760405162461bcd60e51b815260206004820152601960248201527f416c6c20706f737369626c65206d69636573206c6f6164656400000000000000604482015260640161081f565b6101a45461019f546001600160a01b0390911690805b61286084836142db565b8110801561287057506101a15481105b1561295657604051632f745c5960e01b815261dead6004820152602481018290526000906001600160a01b03851690632f745c599060440160206040518083038186803b1580156128c057600080fd5b505afa1580156128d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128f891906133e8565b905080600b83611932811061291d57634e487b7160e01b600052603260045260246000fd5b601091828204019190066002026101000a81548161ffff021916908361ffff16021790555050808061294e90614461565b915050612856565b5061296183826142db565b61019f55505050565b610aa7828260405180602001604052806000815250612c4b565b60006001600160a01b0384163b15612a8657604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906129c89033908990889088906004016140d4565b602060405180830381600087803b1580156129e257600080fd5b505af1925050508015612a12575060408051601f3d908101601f19168201909252612a0f91810190613283565b60015b612a6c573d808015612a40576040519150601f19603f3d011682016040523d82523d6000602084013e612a45565b606091505b508051612a645760405162461bcd60e51b815260040161081f9061415e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061217f565b506001949350505050565b60006001612a9e84610dfb565b612aa8919061439e565b600083815260076020526040902054909150808214612afb576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612b409060019061439e565b60008381526009602052604081205460088054939450909284908110612b7657634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110612ba557634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612beb57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612c1283610dfb565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b612c558383612c7e565b612c626000848484612984565b6109555760405162461bcd60e51b815260040161081f9061415e565b6001600160a01b038216612cd45760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161081f565b6000818152600260205260409020546001600160a01b031615612d395760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161081f565b612d4560008383612732565b6001600160a01b0382166000908152600360205260408120805460019290612d6e9084906142db565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b508054612dd890614404565b6000825580601f10612de8575050565b601f0160209004906000526020600020908101906109849190612eb8565b6040518061030001604052806018905b612e1e612ecd565b815260200190600190039081612e165790505090565b828054612e4090614404565b90600052602060002090601f016020900481019282612e625760008555612ea8565b82601f10612e7b57805160ff1916838001178555612ea8565b82800160010185558215612ea8579182015b82811115612ea8578251825591602001919060010190612e8d565b50612eb4929150612eb8565b5090565b5b80821115612eb45760008155600101612eb9565b6040518061030001604052806018906020820280368337509192915050565b6000612eff612efa8461428e565b61425e565b9050828152838383011115612f1357600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114612f4157600080fd5b919050565b600082601f830112612f56578081fd5b6106e683833560208501612eec565b600082601f830112612f75578081fd5b8151612f83612efa8261428e565b818152846020838601011115612f97578283fd5b61217f8260208301602087016143d8565b600060808284031215612fb9578081fd5b612fc1614236565b905081356001600160401b0380821115612fda57600080fd5b612fe685838601612f46565b83526020840135915080821115612ffc57600080fd5b61300885838601612f46565b6020840152604084013591508082111561302157600080fd5b5061302e84828501612f46565b6040830152506060820135606082015292915050565b600060208284031215613055578081fd5b6106e682612f2a565b60008060408385031215613070578081fd5b61307983612f2a565b915061308760208401612f2a565b90509250929050565b6000806000606084860312156130a4578081fd5b6130ad84612f2a565b92506130bb60208501612f2a565b9150604084013590509250925092565b600080600080608085870312156130e0578081fd5b6130e985612f2a565b93506130f760208601612f2a565b92506040850135915060608501356001600160401b03811115613118578182fd5b8501601f81018713613128578182fd5b61313787823560208401612eec565b91505092959194509250565b60008060408385031215613155578182fd5b61315e83612f2a565b915060208301358015158114613172578182fd5b809150509250929050565b6000806040838503121561318f578182fd5b61319883612f2a565b946020939093013593505050565b600060208083850312156131b8578182fd5b82356001600160401b03808211156131ce578384fd5b818501915085601f8301126131e1578384fd5b8135818111156131f3576131f36144dc565b8060051b61320285820161425e565b8281528581019085870183870188018b101561321c578889fd5b8893505b848410156132595780358681111561323657898afd5b6132448c8a838b0101612fa8565b84525060019390930192918701918701613220565b509998505050505050505050565b600060208284031215613278578081fd5b81356106e6816144f2565b600060208284031215613294578081fd5b81516106e6816144f2565b6000602082840312156132b0578081fd5b81356001600160401b038111156132c5578182fd5b61217f84828501612f46565b6000602082840312156132e2578081fd5b81516001600160401b038111156132f7578182fd5b61217f84828501612f65565b60008060008060808587031215613318578182fd5b84516001600160401b038082111561332e578384fd5b61333a88838901612f65565b9550602087015191508082111561334f578384fd5b61335b88838901612f65565b94506040870151915080821115613370578384fd5b5061337d87828801612f65565b606096909601519497939650505050565b600080604083850312156133a0578182fd5b82356001600160401b038111156133b5578283fd5b6133c185828601612f46565b95602094909401359450505050565b6000602082840312156133e1578081fd5b5035919050565b6000602082840312156133f9578081fd5b5051919050565b600081518084526134188160208601602086016143d8565b601f01601f19169290920160200192915050565b6000815161343e8185602086016143d8565b9290920192915050565b6000825161345a8184602087016143d8565b9190910192915050565b600082516134768184602087016143d8565b600b60fa1b920191825250600101919050565b6000855161349b818460208a016143d8565b6d3c7265637420636c6173733d276360901b90830190815285516134c681600e840160208a016143d8565b642720783d2760d81b600e929091019182015284516134ec8160138401602089016143d8565b642720793d2760d81b6013929091019182015283516135128160188401602088016143d8565b6213979f60e91b60189290910191820152601b019695505050505050565b600084516135428184602089016143d8565b6e3d913a3930b4ba2fba3cb832911d1160891b908301908152845161356e81600f8401602089016143d8565b6a1116113b30b63ab2911d1160a91b600f9290910191820152835161359a81601a8401602088016143d8565b61227d60f01b601a9290910191820152601c0195945050505050565b600083516135c88184602088016143d8565b6e3d913a3930b4ba2fba3cb832911d1160891b9083019081527513dc9a59da5b985b08135a58d948151bdad95b88125960521b600f8201526a1116113b30b63ab2911d1160a91b602582015283516136278160308401602088016143d8565b61227d60f01b60309290910191820152603201949350505050565b600080835482600182811c91508083168061365e57607f831692505b602080841082141561367e57634e487b7160e01b87526022600452602487fd5b81801561369257600181146136a3576136cf565b60ff198616895284890196506136cf565b60008a815260209020885b868110156136c75781548b8201529085019083016136ae565b505084890196505b509498975050505050505050565b600360fc1b8152600082516136f98160018501602087016143d8565b9190910160010192915050565b747b226e616d65223a2022416e6f6e796d696365202360581b815283516000906137378160158501602089016143d8565b7f222c20226465736372697074696f6e223a2022416e6f6e796d696365204275726015918401918201527f6e6564206973206120636f6c6c656374696f6e206f6620362c3435302062757260358201527f6e6564206d696365732066726f6d2074686520416e6f6e796d69636520636f6c60558201527f6c656374696f6e2c2077697468207468652073616d652074726169747320617360758201527f20746865206275726e6564206f6e65732e204c696b6520746865206f7269676960958201527f6e616c20636f6c6c656374696f6e2c206d6574616461746120616e6420696d6160b58201527f676573206172652067656e65726174656420616e642073746f7265642031303060d58201527f25206f6e2d636861696e2e204e6f20495046532c206e6f204150492e204a757360f58201527f742074686520457468657265756d20626c6f636b636861696e2e20416e6420616101158201527f2067726f7570206f66207265737572726563746564206d69636573222c2022696101358201527f6d616765223a2022646174613a696d6167652f7376672b786d6c3b6261736536610155820152610d0b60f21b61017582015261393161392461391e61390361017785018961342c565b6e11161130ba3a3934b13aba32b9911d60891b8152600f0190565b8661342c565b607d60f81b815260010190565b9695505050505050565b7f3c7376672069643d226d6f7573652d7376672220786d6c6e733d22687474703a81527f2f2f7777772e77332e6f72672f323030302f737667222070726573657276654160208201527f7370656374526174696f3d22784d696e594d696e206d6565742220766965774260408201526f037bc1e9118101810191a10191a111f160851b6060820152600082516139d88160708501602087016143d8565b7f3c7374796c653e726563747b77696474683a3170783b6865696768743a31707860709390910192830152507f3b7d20236d6f7573652d7376677b73686170652d72656e646572696e673a206360908201527f7269737065646765733b7d202e6330307b66696c6c3a233030303030307d2e6360b08201527f30317b66696c6c3a234231414441437d2e6330327b66696c6c3a23443744374460d08201527f377d2e6330337b66696c6c3a234646413641367d2e6330347b66696c6c3a234660f08201527f46443444357d2e6330357b66696c6c3a234239414439357d2e6330367b66696c6101108201527f6c3a234532443642457d2e6330377b66696c6c3a233746363235417d2e6330386101308201527f7b66696c6c3a234135384638327d2e6330397b66696c6c3a233442314530427d6101508201527f2e6331307b66696c6c3a233644324331307d2e6331317b66696c6c3a234438446101708201527f3844387d2e6331327b66696c6c3a234635463546357d2e6331337b66696c6c3a6101908201527f233433334434427d2e6331347b66696c6c3a233844393439437d2e6331357b666101b08201527f696c6c3a233035464630307d2e6331367b66696c6c3a233031433730307d2e636101d08201527f31377b66696c6c3a233042384630387d2e6331387b66696c6c3a2334323143316101f08201527f337d2e6331397b66696c6c3a233642333932417d2e6332307b66696c6c3a23416102108201527f33354534307d2e6332317b66696c6c3a234443424439317d2e6332327b66696c6102308201527f6c3a233737373737377d2e6332337b66696c6c3a233834383438347d2e6332346102508201527f7b66696c6c3a234142414241427d2e6332357b66696c6c3a234241424142417d6102708201527f2e6332367b66696c6c3a234337433743377d2e6332377b66696c6c3a234541456102908201527f4145417d2e6332387b66696c6c3a233043373641417d2e6332397b66696c6c3a6102b08201527f233045393744427d2e6333307b66696c6c3a233130413445437d2e6333317b666102d08201527f696c6c3a233133423046467d2e6333327b66696c6c3a233245423946457d2e636102f08201527f33337b66696c6c3a233534434346467d2e6333347b66696c6c3a2335304330466103108201527f327d2e6333357b66696c6c3a233534434346467d2e6333367b66696c6c3a23376103308201527f32444146467d2e6333377b66696c6c3a234236454146467d2e6333387b66696c6103508201527f6c3a234646464646467d2e6333397b66696c6c3a233935343534367d2e6334306103708201527f7b66696c6c3a233042383746377d2e6334317b66696c6c3a234646323632367d6103908201527f2e6334327b66696c6c3a233138304630327d2e6334337b66696c6c3a233242326103b08201527f3331397d2e6334347b66696c6c3a234642444434427d2e6334357b66696c6c3a6103d08201527f234635423932337d2e6334367b66696c6c3a234343384131387d2e6334377b666103f08201527f696c6c3a233343323230337d2e6334387b66696c6c3a233533333230427d2e636104108201527f34397b66696c6c3a233742353031447d2e6335307b66696c6c3a2346464536346104308201527f367d2e6335317b66696c6c3a234646443632377d2e6335327b66696c6c3a23466104508201527f35423730307d2e6335337b66696c6c3a233234323432347d2e6335347b66696c6104708201527f6c3a233441344134417d2e6335357b66696c6c3a233637363736377d2e6335366104908201527f7b66696c6c3a234630383330367d2e6335377b66696c6c3a234643413330457d6104b08201527f2e6335387b66696c6c3a234645424330457d2e6335397b66696c6c3a234642456104d08201527f4331437d2e6336307b66696c6c3a233134323432467d2e6336317b66696c6c3a6104f08201527f234230363833377d2e6336327b66696c6c3a233846344230457d2e6336337b666105108201527f696c6c3a234438383232377d2e6336347b66696c6c3a234230363833377d2e636105308201527f36357b66696c6c3a233446313046467d2e6336367b66696c6c3a2333443945466105508201527f447d2e6336377b66696c6c3a233938464645307d2e6336387b66696c6c3a2334610570820152731aa19a231c3e9e17b9ba3cb6329f1e17b9bb339f60611b6105908201526105a401919050565b605b60f81b81526000825161405b8160018501602087016143d8565b605d60f81b6001939091019283015250600201919050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152600082516140ab81601d8501602087016143d8565b91909101601d0192915050565b603160f81b8152600082516136f98160018501602087016143d8565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061393190830184613400565b6020808252825182820181905260009190848201906040850190845b8181101561413f57835183529284019291840191600101614123565b50909695505050505050565b6020815260006106e66020830184613400565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051608081016001600160401b0381118282101715614258576142586144dc565b60405290565b604051601f8201601f191681016001600160401b0381118282101715614286576142866144dc565b604052919050565b60006001600160401b038211156142a7576142a76144dc565b50601f01601f191660200190565b600061ffff8083168185168083038211156142d2576142d26144b0565b01949350505050565b600082198211156142ee576142ee6144b0565b500190565b600060ff821660ff84168060ff03821115614310576143106144b0565b019392505050565b600082614327576143276144c6565b500490565b600061ffff8083168185168183048111821515161561434d5761434d6144b0565b02949350505050565b6000816000190483118215151615614370576143706144b0565b500290565b600060ff821660ff84168160ff0481118215151615614396576143966144b0565b029392505050565b6000828210156143b0576143b06144b0565b500390565b600060ff821660ff8416808210156143cf576143cf6144b0565b90039392505050565b60005b838110156143f35781810151838201526020016143db565b838111156116e45750506000910152565b600181811c9082168061441857607f821691505b6020821081141561443957634e487b7160e01b600052602260045260246000fd5b50919050565b600061ffff80831681811415614457576144576144b0565b6001019392505050565b6000600019821415614475576144756144b0565b5060010190565b600060ff821660ff811415614493576144936144b0565b60010192915050565b6000826144ab576144ab6144c6565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461098457600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220e3ef1f970ce523e1f105a691b717144b448de36f016d1bb56a1101ab76ad640464736f6c63430008040033
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.