Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
180 Imitations
Holders
109
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 ImitationsLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Imitation
Compiler Version
v0.8.12+commit.f00d7308
Optimization Enabled:
Yes with 2000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.12; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v4.8/contracts/utils/cryptography/ECDSA.sol"; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v4.8/contracts/token/ERC721/ERC721.sol"; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v4.8/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v4.8/contracts/utils/Strings.sol"; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v4.8/contracts/security/ReentrancyGuard.sol"; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v4.8/contracts/access/Ownable.sol"; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v4.8/contracts/utils/math/SafeMath.sol"; //import "./Base64.sol"; // @title Base64 /// @author Brecht Devos - <[email protected]> /// @notice Provides functions for encoding/decoding base64 library Base64 { string internal constant TABLE_ENCODE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; bytes internal constant TABLE_DECODE = hex"0000000000000000000000000000000000000000000000000000000000000000" hex"00000000000000000000003e0000003f3435363738393a3b3c3d000000000000" hex"00000102030405060708090a0b0c0d0e0f101112131415161718190000000000" hex"001a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132330000000000"; function encode(bytes memory data) internal pure returns (string memory) { if (data.length == 0) return ''; // load the table into memory string memory table = TABLE_ENCODE; // 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) {} { // read 3 bytes dataPtr := add(dataPtr, 3) let input := mload(dataPtr) // write 4 characters mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F)))) resultPtr := add(resultPtr, 1) mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F)))) resultPtr := add(resultPtr, 1) mstore8(resultPtr, mload(add(tablePtr, and(shr( 6, input), 0x3F)))) resultPtr := add(resultPtr, 1) mstore8(resultPtr, 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; } function decode(string memory _data) internal pure returns (bytes memory) { bytes memory data = bytes(_data); if (data.length == 0) return new bytes(0); require(data.length % 4 == 0, "invalid base64 decoder input"); // load the table into memory bytes memory table = TABLE_DECODE; // every 4 characters represent 3 bytes uint256 decodedLen = (data.length / 4) * 3; // add some extra buffer at the end required for the writing bytes memory result = new bytes(decodedLen + 32); assembly { // padding with '=' let lastBytes := mload(add(data, mload(data))) if eq(and(lastBytes, 0xFF), 0x3d) { decodedLen := sub(decodedLen, 1) if eq(and(lastBytes, 0xFFFF), 0x3d3d) { decodedLen := sub(decodedLen, 1) } } // set the actual output length mstore(result, decodedLen) // 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, 4 characters at a time for {} lt(dataPtr, endPtr) {} { // read 4 characters dataPtr := add(dataPtr, 4) let input := mload(dataPtr) // write 3 bytes let output := add( add( shl(18, and(mload(add(tablePtr, and(shr(24, input), 0xFF))), 0xFF)), shl(12, and(mload(add(tablePtr, and(shr(16, input), 0xFF))), 0xFF))), add( shl( 6, and(mload(add(tablePtr, and(shr( 8, input), 0xFF))), 0xFF)), and(mload(add(tablePtr, and( input , 0xFF))), 0xFF) ) ) mstore(resultPtr, shl(232, output)) resultPtr := add(resultPtr, 3) } } return result; } } // ---------------------------------------------------------------------------- // DateTime Library v2.0 // // A gas-efficient Solidity date and time library // // https://github.com/bokkypoobah/BokkyPooBahsDateTimeLibrary // // Tested date range 1970/01/01 to 2345/12/31 // // Conventions: // Unit | Range | Notes // :-------- |:-------------:|:----- // timestamp | >= 0 | Unix timestamp, number of seconds since 1970/01/01 00:00:00 UTC // year | 1970 ... 2345 | // month | 1 ... 12 | // day | 1 ... 31 | // hour | 0 ... 23 | // minute | 0 ... 59 | // second | 0 ... 59 | // dayOfWeek | 1 ... 7 | 1 = Monday, ..., 7 = Sunday // // // Enjoy. (c) BokkyPooBah / Bok Consulting Pty Ltd 2018-2019. The MIT Licence. // ---------------------------------------------------------------------------- library DateTime { uint256 constant SECONDS_PER_DAY = 24 * 60 * 60; uint256 constant SECONDS_PER_HOUR = 60 * 60; uint256 constant SECONDS_PER_MINUTE = 60; int256 constant OFFSET19700101 = 2440588; uint256 constant DOW_MON = 1; uint256 constant DOW_TUE = 2; uint256 constant DOW_WED = 3; uint256 constant DOW_THU = 4; uint256 constant DOW_FRI = 5; uint256 constant DOW_SAT = 6; uint256 constant DOW_SUN = 7; // ------------------------------------------------------------------------ // Calculate the number of days from 1970/01/01 to year/month/day using // the date conversion algorithm from // http://aa.usno.navy.mil/faq/docs/JD_Formula.php // and subtracting the offset 2440588 so that 1970/01/01 is day 0 // // days = day // - 32075 // + 1461 * (year + 4800 + (month - 14) / 12) / 4 // + 367 * (month - 2 - (month - 14) / 12 * 12) / 12 // - 3 * ((year + 4900 + (month - 14) / 12) / 100) / 4 // - offset // ------------------------------------------------------------------------ // ------------------------------------------------------------------------ // Calculate year/month/day from the number of days since 1970/01/01 using // the date conversion algorithm from // http://aa.usno.navy.mil/faq/docs/JD_Formula.php // and adding the offset 2440588 so that 1970/01/01 is day 0 // // int L = days + 68569 + offset // int N = 4 * L / 146097 // L = L - (146097 * N + 3) / 4 // year = 4000 * (L + 1) / 1461001 // L = L - 1461 * year / 4 + 31 // month = 80 * L / 2447 // dd = L - 2447 * month / 80 // L = month / 11 // month = month + 2 - 12 * L // year = 100 * (N - 49) + year + L // ------------------------------------------------------------------------ function _daysToDate(uint256 _days) internal pure returns (uint256 year, uint256 month, uint256 day) { unchecked { int256 __days = int256(_days); int256 L = __days + 68569 + OFFSET19700101; int256 N = (4 * L) / 146097; L = L - (146097 * N + 3) / 4; int256 _year = (4000 * (L + 1)) / 1461001; L = L - (1461 * _year) / 4 + 31; int256 _month = (80 * L) / 2447; int256 _day = L - (2447 * _month) / 80; L = _month / 11; _month = _month + 2 - 12 * L; _year = 100 * (N - 49) + _year + L; year = uint256(_year); month = uint256(_month); day = uint256(_day); } } function timestampToDateTime(uint256 timestamp) internal pure returns (uint256 year, uint256 month, uint256 day, uint256 hour) { unchecked { (year, month, day) = _daysToDate(timestamp / SECONDS_PER_DAY); uint256 secs = timestamp % SECONDS_PER_DAY; hour = secs / SECONDS_PER_HOUR; secs = secs % SECONDS_PER_HOUR; } } } /* ///// */ contract Imitation is ERC721Enumerable, Ownable, ReentrancyGuard { using SafeMath for uint256; using ECDSA for bytes32; address public adminAddress = 0x5D30e3eB3d8Cda028D43D3b70d3285dE20FD4a2F; uint256 public cost = 0.12 ether; uint256 public PerfectOnSell = 1; uint256 public MAX = 251; uint256 public token_id = 1; bool public freeze = false; bool public startWhitelistSale = false; bool public startOpenSale = false; mapping (uint256 => uint256) private times; mapping (uint256 => uint256) private genOrder; mapping(address => uint256) public whitelistMints; uint256[] Attributes = [3,10,10,10,10,10,10,10,10]; uint256[] allVariants = [1,2,3]; bool public isMaxSupply = true; bool public decentralized = false; string dataURLbase = "https://arweave.net/nxpkWgxAoOdyZDOUEuy2atvm9OE1_QV2s-1_lmRjOQE/"; string dataURL = string.concat(dataURLbase, "layers"); string dataURLplaceholder = string.concat(dataURLbase, "placeholder.JPG"); string dataURLplaceholderGen = string.concat(dataURLbase, "placeholder.html"); string baseHTML = '<html><meta name="viewport" content="width=device-width, initial-scale=1"><head><link href="'; string loadStyles = "https://arweave.net/5zgxA9cz19qu0wdyKL8CVKHvvZE1A2tFNjGFWv3PLtU/stt.css"; string preloader = string.concat('" rel="stylesheet"></head><body style="background-color: #000;"> <div class="cen"><canvas id="canvas" width="1800px" height="2500px"></canvas></div><script> const seed = "'); string renderScript = string.concat('; </script> <script src="', dataURLbase, 'render.js"></script> <script> const ctx=document.getElementById("canvas").getContext("2d");let im=new Image;function p(){ctx.drawImage(im,canvas.width/2.2,canvas.height/2.2)}im.src=document.images[0].src,im.onload=()=>{p()},p();let d=[],n=0,dr=[];function draw(){ctx.clearRect(0, 0, canvas.width, canvas.height); n++,n>d.length-1&&dr.forEach((e=>{ctx.drawImage(e,0,0)}))}for(let e=0;e<document.images.length;e++)e>0&&d.push(document.images[e].src);d.forEach((e=>{let n=new Image;n.src=e,n.onload=()=>{draw()},dr.push(n)}));</script>'); string preloadURL = 'https://soulgenesis.art/projectx/loadmeta.php'; constructor() ERC721 ("PI", "Imitations") { } function ActivationTime(uint256 _tokenId)public view returns(uint256 year, uint256 month, uint256 day, uint256 hour) { require( _exists(_tokenId), "ERC721Metadata: URI query for nonexistent token" ); require(genOrder[_tokenId] > 0, "not active"); uint256 timestamp = times[_tokenId]; (year, month, day, hour) = DateTime.timestampToDateTime(timestamp); } function whitlistSale(uint256 numberOfTokens, bytes memory signature) public payable nonReentrant{ require(startWhitelistSale, "Sale is stoped"); bytes32 sender = keccak256(abi.encodePacked(msg.sender)); bytes32 message = ECDSA.toEthSignedMessageHash(sender); address signer = ECDSA.recover(message, signature); require(signer==adminAddress, "Sign not verified"); require(whitelistMints[msg.sender] + numberOfTokens <= PerfectOnSell, "mint limit exceeded"); require(numberOfTokens <= PerfectOnSell, "Purchase would exceed max supply"); require(totalSupply().add(numberOfTokens) < MAX, "Purchase would exceed max supply of Perfects"); require(msg.value >= cost * numberOfTokens, "Ether value sent is not correct"); whitelistMints[msg.sender] += numberOfTokens; for(uint i = 0; i < numberOfTokens; i++) { _safeMint(msg.sender, token_id); token_id++; } } function openSale(uint256 numberOfTokens) public payable nonReentrant{ require(startOpenSale, "Sale is stoped"); require(numberOfTokens <= PerfectOnSell, "Purchase would exceed max supply"); require(totalSupply().add(numberOfTokens) < MAX, "Purchase would exceed max supply of Perfects"); require(msg.value >= cost * numberOfTokens, "Ether value sent is not correct"); whitelistMints[msg.sender] += numberOfTokens; for(uint i = 0; i < numberOfTokens; i++) { _safeMint(msg.sender, token_id); token_id++; } } function teamMint( address user, uint numberOfTokens) public payable nonReentrant onlyOwner{ require(totalSupply().add(numberOfTokens) < MAX, "Purchase would exceed max supply of Harmonies"); for(uint i = 0; i < numberOfTokens; i++) { _safeMint(user, token_id); token_id++; } } function checkBalance(address user) public view returns(uint256){ return whitelistMints[user]; } function setCost(uint256 _newCost) public onlyOwner { cost = _newCost; } function setSource(string memory _url) public onlyOwner { require(!freeze, "data is frozen"); dataURLbase = _url; } function setSourceGraphics(string memory _url) public onlyOwner { require(!freeze, "data is frozen"); dataURL = _url; } function setSourceGraphicsPlaceholder(string memory _url) public onlyOwner { require(!freeze, "data is frozen"); dataURLplaceholder = _url; } function setSourceGraphicsPlaceholderHtml(string memory _url) public onlyOwner { require(!freeze, "data is frozen"); dataURLplaceholderGen = _url; } function setStyles(string memory _url) public onlyOwner { require(!freeze, "data is frozen"); loadStyles = _url; } function setFreeze() public onlyOwner { freeze = true; } function setDecentralized() public onlyOwner { decentralized = !decentralized; } function setScriptURL(string memory _url) public onlyOwner { require(!freeze, "data is frozen"); renderScript = _url; } function setPreloaderURL(string memory _url) public onlyOwner { require(!freeze, "data is frozen"); preloader = _url; } function setPreviewURL(string memory _url) public onlyOwner { require(!freeze, "data is frozen"); preloadURL = _url; } function setAdminAddress(address adress) public onlyOwner { adminAddress = adress; } function toogleSale() public onlyOwner { startWhitelistSale = !startWhitelistSale; } function toogleOpenSale() public onlyOwner { startOpenSale = !startOpenSale; } function setLimit(uint256 _newLimit) public onlyOwner { PerfectOnSell = _newLimit; } function closeSale() public onlyOwner { require(!isMaxSupply, "Allready Set!!"); isMaxSupply = true; MAX = totalSupply(); } function isActiveToken(uint256 _tokenId) public view returns(uint256) { return times[_tokenId]; } address t1 = 0x91C744fa5D176e8c8c2243a952b75De90A5186bc; address t2 = 0xE0D80FC054BC859b74546477344b152941902CB6; address t3 = 0xae87B3506C1F48259705BA64DcB662Ed047575Bb; function withdraw() public payable nonReentrant onlyOwner { uint256 _u1 = address(this).balance * 34/100; uint256 _u2 = address(this).balance * 33/100; uint256 _u3 = address(this).balance * 33/100; require(payable(t1).send(_u1)); require(payable(t2).send(_u2)); require(payable(t3).send(_u3)); } function NewPainting(uint256 _tokenId) public { require( _exists(_tokenId), "ERC721Metadata: URI query for nonexistent token" ); require(ownerOf(_tokenId) == msg.sender, "Can only from owner!!"); if(genOrder[_tokenId] > 0){ uint256 alldays = ((((block.timestamp / 1 days) - (times[_tokenId]) / 1 days)) + 1); require(alldays > 7, "wait"); if(genOrder[_tokenId] == 4){ genOrder[_tokenId] = 2; }else{ genOrder[_tokenId] = genOrder[_tokenId] + 1; } }else{ require(genOrder[_tokenId] == 0, "Already activated!!"); genOrder[_tokenId] = 1; } times[_tokenId] = block.timestamp; } function genPlaceholder(uint256 _tokenId) internal view returns(string memory ) { string memory json = Base64.encode( bytes( string( abi.encodePacked( abi.encodePacked( '{"name": "Perfect Imitation #', Strings.toString(_tokenId), '", "description": "Just run the algorithm and observe the deep process of creating a new painting in seven days. Admire the finished work indefinitely, or erase it and create something new.", "image": "',dataURLplaceholder, '", "animation_url": "', dataURLplaceholderGen, '"}' ) ) ) ) ); string memory tokenUri = string(abi.encodePacked("data:application/json;base64,", json)); return tokenUri; } function generator(uint256 _tokenId) public view returns(string memory ) { if(!_exists(_tokenId)||genOrder[_tokenId] < 1){ string memory tokenUri = genPlaceholder(_tokenId); return tokenUri; }else{ uint256 alldays = ((((block.timestamp / 1 days) - (times[_tokenId]) / 1 days)) + 1); if(alldays>7){ alldays = 7; } string memory finalHTML; string memory allSeed; for (uint256 l = 1; l < alldays+1; l++) { allSeed = string.concat(allSeed, '-', Strings.toString( ((uint256(keccak256(abi.encodePacked( ((times[_tokenId]+_tokenId)*l) ))))))); } finalHTML = string(abi.encodePacked(baseHTML, loadStyles, preloader, allSeed, '"; const dataURL = "', dataURL, '"', '; const tokenId = "', Strings.toString(_tokenId), '"' , '; const order="', Strings.toString(genOrder[_tokenId]), '"', renderScript, '</body></html>')); return finalHTML; } } function genJson(uint256 _tokenId, string memory html) internal view returns(string memory ) { string memory dataHtml; string memory dataImage; if(decentralized){ dataHtml = string.concat('data:text/html;base64,', Base64.encode(bytes(html))); dataImage = string.concat(dataURLbase, 'thimb.jpg'); }else{ dataHtml = string.concat(preloadURL, '?nft=', Strings.toString(_tokenId)); dataImage = string.concat(preloadURL, '?id=', Strings.toString(_tokenId)); } string memory json = Base64.encode( bytes( string( abi.encodePacked( '{"name": "Perfect Imitation #', Strings.toString(_tokenId), '", "description": "Just run the algorithm and observe the deep process of creating a new painting in seven days. Admire the finished work indefinitely, or erase it and create something new.", "image": "',dataImage, '", "animation_url": "',dataHtml, '"}' ) ) ) ); string memory tokenUri = string(abi.encodePacked("data:application/json;base64,", json)); return tokenUri; } function tokenURI(uint256 _tokenId) override public view returns(string memory ) { require( _exists(_tokenId), "ERC721Metadata: URI query for nonexistent token" ); if(genOrder[_tokenId] < 1){ string memory tokenUri = genPlaceholder(_tokenId); return tokenUri; }else{ string memory finalHTML; if(decentralized){ string memory allSeed; uint256 alldays = ((((block.timestamp / 1 days) - (times[_tokenId]) / 1 days)) + 1); if(alldays>7){ alldays = 7; } for (uint256 l = 1; l < alldays+1; l++) { allSeed = string.concat(allSeed, '-', Strings.toString( ((uint256(keccak256(abi.encodePacked( ((times[_tokenId]+_tokenId)*l) )))) ))); } finalHTML = string(abi.encodePacked(baseHTML, loadStyles, preloader, allSeed, '"; const dataURL = "', dataURL, '"', '; const tokenId = "', Strings.toString(_tokenId), '"' , '; const order="', Strings.toString(genOrder[_tokenId]), '"', renderScript, '</body></html>')); string memory tokenUri = genJson(_tokenId, finalHTML); return tokenUri; }else{ string memory tokenUri = genJson(_tokenId, '0'); return tokenUri; } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) 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 generally not needed starting with Solidity 0.8, since 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 subtraction 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 // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @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] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev See {ERC721-_beforeTokenTransfer}. */ function _beforeTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual override { super._beforeTokenTransfer(from, to, firstTokenId, batchSize); if (batchSize > 1) { // Will only trigger during construction. Batch transferring (minting) is not available afterwards. revert("ERC721Enumerable: consecutive transfers not supported"); } uint256 tokenId = firstTokenId; if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.2) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _ownerOf(tokenId); require(owner != address(0), "ERC721: invalid token ID"); 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) { _requireMinted(tokenId); 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 overridden 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 token owner or approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or 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: caller is not token owner or 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 the owner of the `tokenId`. Does NOT revert if token doesn't exist */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @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 _ownerOf(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) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == 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, 1); // Check that tokenId was not minted by `_beforeTokenTransfer` hook require(!_exists(tokenId), "ERC721: token already minted"); unchecked { // Will not overflow unless all 2**256 token ids are minted to the same owner. // Given that tokens are minted one by one, it is impossible in practice that // this ever happens. Might change if we allow batch minting. // The ERC fails to describe this case. _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId, 1); // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook owner = ERC721.ownerOf(tokenId); // Clear approvals delete _tokenApprovals[tokenId]; unchecked { // Cannot overflow, as that would require more tokens to be burned/transferred // out than the owner initially received through minting and transferring in. _balances[owner] -= 1; } delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId, 1); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId, 1); // Check that tokenId was not transferred by `_beforeTokenTransfer` hook require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; unchecked { // `_balances[from]` cannot overflow for the same reason as described in `_burn`: // `from`'s balance is the number of token held, which is at least one before the current // transfer. // `_balances[to]` could overflow in the conditions described in `_mint`. That would require // all 2**256 token ids to be minted, which in practice is impossible. _balances[from] -= 1; _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @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 { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`. * - When `from` is zero, the tokens will be minted for `to`. * - When `to` is zero, ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual {} /** * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`. * - When `from` is zero, the tokens were minted for `to`. * - When `to` is zero, ``from``'s tokens were burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual {} /** * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override. * * WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant * being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such * that `ownerOf(tokenId)` is `a`. */ // solhint-disable-next-line func-name-mixedcase function __unsafe_increaseBalance(address account, uint256 amount) internal { _balances[account] += amount; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV // Deprecated in v4.8 } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 2000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
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":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":"ActivationTime","outputs":[{"internalType":"uint256","name":"year","type":"uint256"},{"internalType":"uint256","name":"month","type":"uint256"},{"internalType":"uint256","name":"day","type":"uint256"},{"internalType":"uint256","name":"hour","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"NewPainting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"PerfectOnSell","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"adminAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"checkBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"closeSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decentralized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeze","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"generator","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"isActiveToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMaxSupply","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"openSale","outputs":[],"stateMutability":"payable","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":"adress","type":"address"}],"name":"setAdminAddress","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":"uint256","name":"_newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setDecentralized","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setFreeze","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newLimit","type":"uint256"}],"name":"setLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_url","type":"string"}],"name":"setPreloaderURL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_url","type":"string"}],"name":"setPreviewURL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_url","type":"string"}],"name":"setScriptURL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_url","type":"string"}],"name":"setSource","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_url","type":"string"}],"name":"setSourceGraphics","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_url","type":"string"}],"name":"setSourceGraphicsPlaceholder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_url","type":"string"}],"name":"setSourceGraphicsPlaceholderHtml","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_url","type":"string"}],"name":"setStyles","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startOpenSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startWhitelistSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"address","name":"user","type":"address"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"teamMint","outputs":[],"stateMutability":"payable","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":"token_id","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toogleOpenSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toogleSale","outputs":[],"stateMutability":"nonpayable","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":"","type":"address"}],"name":"whitelistMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"whitlistSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
600c80546001600160a01b031916735d30e3eb3d8cda028d43d3b70d3285de20fd4a2f1790556701aa535d3d0c0000600d556001600e81905560fb600f556010556011805462ffffff191690556101a060405260036080908152600a60a081905260c081905260e08190526101008190526101208190526101408190526101608190526101805262000096906015906009620004d8565b506040805160608101825260018152600260208201526003918101829052620000c39160169190620004d8565b506017805461ffff191660011790556040805160608101825281815290620051f060208301398051620000ff916018916020909101906200052d565b506018604051602001620001149190620006a0565b604051602081830303815290604052601990805190602001906200013a9291906200052d565b5060186040516020016200014f9190620006c4565b604051602081830303815290604052601a9080519060200190620001759291906200052d565b5060186040516020016200018a9190620006f1565b604051602081830303815290604052601b9080519060200190620001b09291906200052d565b506040518060800160405280605c815260200162005194605c91398051620001e191601c916020909101906200052d565b50604051806080016040528060478152602001620051206047913980516200021291601d916020909101906200052d565b50604051602001620002f3907f222072656c3d227374796c657368656574223e3c2f686561643e3c626f64792081527f7374796c653d226261636b67726f756e642d636f6c6f723a20233030303b223e60208201527f203c64697620636c6173733d2263656e223e3c63616e7661732069643d22636160408201527f6e766173222077696474683d2231383030707822206865696768743d2232353060608201527f307078223e3c2f63616e7661733e3c2f6469763e3c7363726970743e20636f6e60808201526a39ba1039b2b2b2101e901160a91b60a082015260ab0190565b604051602081830303815290604052601e9080519060200190620003199291906200052d565b5060186040516020016200032e91906200071f565b604051602081830303815290604052601f9080519060200190620003549291906200052d565b506040518060600160405280602d815260200162005167602d913980516200038391602091908201906200052d565b50602180546001600160a01b03199081167391c744fa5d176e8c8c2243a952b75de90a5186bc1790915560228054821673e0d80fc054bc859b74546477344b152941902cb61790556023805490911673ae87b3506c1f48259705ba64dcb662ed047575bb179055348015620003f757600080fd5b506040805180820182526002815261504960f01b60208083019182528351808501909452600a845269496d69746174696f6e7360b01b90840152815191929162000444916000916200052d565b5080516200045a9060019060208401906200052d565b50505062000477620004716200048260201b60201c565b62000486565b6001600b55620009ea565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280548282559060005260206000209081019282156200051b579160200282015b828111156200051b578251829060ff16905591602001919060010190620004f9565b5062000529929150620005aa565b5090565b8280546200053b90620005c1565b90600052602060002090601f0160209004810192826200055f57600085556200051b565b82601f106200057a57805160ff19168380011785556200051b565b828001600101855582156200051b579182015b828111156200051b5782518255916020019190600101906200058d565b5b80821115620005295760008155600101620005ab565b600181811c90821680620005d657607f821691505b60208210811415620005f857634e487b7160e01b600052602260045260246000fd5b50919050565b8054600090600181811c90808316806200061957607f831692505b60208084108214156200063c57634e487b7160e01b600052602260045260246000fd5b818015620006535760018114620006655762000694565b60ff1986168952848901965062000694565b60008881526020902060005b868110156200068c5781548b82015290850190830162000671565b505084890196505b50505050505092915050565b6000620006ae8284620005fe565b656c617965727360d01b81526006019392505050565b6000620006d28284620005fe565b6e706c616365686f6c6465722e4a504760881b8152600f019392505050565b6000620006ff8284620005fe565b6f1c1b1858d95a1bdb19195c8b9a1d1b5b60821b81526010019392505050565b7f3b203c2f7363726970743e203c736372697074207372633d220000000000000081526000620007536019830184620005fe565b7f72656e6465722e6a73223e3c2f7363726970743e202020203c7363726970743e81527f20636f6e7374206374783d646f63756d656e742e676574456c656d656e74427960208201527f4964282263616e76617322292e676574436f6e746578742822326422293b6c6560408201527f7420696d3d6e657720496d6167653b66756e6374696f6e207028297b6374782e60608201527f64726177496d61676528696d2c63616e7661732e77696474682f322e322c636160808201527f6e7661732e6865696768742f322e32297d696d2e7372633d646f63756d656e7460a08201527f2e696d616765735b305d2e7372632c696d2e6f6e6c6f61643d28293d3e7b702860c08201527f297d2c7028293b6c657420643d5b5d2c6e3d302c64723d5b5d3b66756e63746960e08201527f6f6e206472617728297b6374782e636c6561725265637428302c20302c2063616101008201527f6e7661732e77696474682c2063616e7661732e686569676874293b206e2b2b2c6101208201527f6e3e642e6c656e6774682d31262664722e666f72456163682828653d3e7b63746101408201527f782e64726177496d61676528652c302c30297d29297d666f72286c657420653d6101608201527f303b653c646f63756d656e742e696d616765732e6c656e6774683b652b2b29656101808201527f3e302626642e7075736828646f63756d656e742e696d616765735b655d2e73726101a08201527f63293b642e666f72456163682828653d3e7b6c6574206e3d6e657720496d61676101c08201527f653b6e2e7372633d652c6e2e6f6e6c6f61643d28293d3e7b6472617728297d2c6101e08201527f64722e70757368286e297d29293b3c2f7363726970743e000000000000000000610200820152610217019392505050565b61472680620009fa6000396000f3fe60806040526004361061035f5760003560e01c806362a5af3b116101c6578063add5a4fa116100f7578063d49d518111610095578063ee55efee1161006f578063ee55efee146109b9578063f2fde38b146109ce578063fc6f9468146109ee578063ff44e91514610a0e57600080fd5b8063d49d518114610944578063d56681311461095a578063e985e9c51461097057600080fd5b8063c87b56dd116100d1578063c87b56dd146108c4578063ccc2af67146108e4578063cf486a4c146108f7578063d0f506d91461092457600080fd5b8063add5a4fa14610871578063b6da972c14610884578063b88d4fde146108a457600080fd5b80638a41f2d81161016457806395d89b411161013e57806395d89b411461080757806396c919f71461081c57806399d2545514610831578063a22cb4651461085157600080fd5b80638a41f2d8146107a95780638da5cb5b146107c957806390774532146107e757600080fd5b806370a08231116101a057806370a0823114610749578063715018a61461076957806373ed5e2e1461077e578063814c36341461079457600080fd5b806362a5af3b146106f55780636352211e1461070f5780636b2357c21461072f57600080fd5b80632f745c59116102a057806344a0d68a1161023e578063515d2b9411610218578063515d2b941461066b57806355752934146106805780635b410881146106a05780635f515226146106bf57600080fd5b806344a0d68a1461060b5780634abfc6b91461062b5780634f6ccce71461064b57600080fd5b80633eca5d381161027a5780633eca5d381461056b5780634162f3401461058b5780634251f14c146105cb57806342842e0e146105eb57600080fd5b80632f745c591461053057806334ec740a146105505780633ccfd60b1461056357600080fd5b806313faede61161030d5780632583ed03116102e75780632583ed03146104bb57806327ea6f2b146104db5780632c1e816d146104fb5780632c8cbe401461051b57600080fd5b806313faede61461047057806318160ddd1461048657806323b872dd1461049b57600080fd5b806307544b7c1161033e57806307544b7c146103f6578063081812fc14610418578063095ea7b31461045057600080fd5b80628af2e61461036457806301ffc9a7146103a457806306fdde03146103d4575b600080fd5b34801561037057600080fd5b5061039161037f366004613a8d565b60146020526000908152604090205481565b6040519081526020015b60405180910390f35b3480156103b057600080fd5b506103c46103bf366004613ad6565b610a2d565b604051901515815260200161039b565b3480156103e057600080fd5b506103e9610a89565b60405161039b9190613b4b565b34801561040257600080fd5b50610416610411366004613bea565b610b1b565b005b34801561042457600080fd5b50610438610433366004613c33565b610b83565b6040516001600160a01b03909116815260200161039b565b34801561045c57600080fd5b5061041661046b366004613c4c565b610baa565b34801561047c57600080fd5b50610391600d5481565b34801561049257600080fd5b50600854610391565b3480156104a757600080fd5b506104166104b6366004613c76565b610cdc565b3480156104c757600080fd5b506104166104d6366004613c33565b610d63565b3480156104e757600080fd5b506104166104f6366004613c33565b610fd4565b34801561050757600080fd5b50610416610516366004613a8d565b610fe1565b34801561052757600080fd5b50610416611018565b34801561053c57600080fd5b5061039161054b366004613c4c565b61102f565b61041661055e366004613c33565b6110d7565b6104166112e1565b34801561057757600080fd5b506103e9610586366004613c33565b6113e6565b34801561059757600080fd5b506105ab6105a6366004613c33565b61158b565b60408051948552602085019390935291830152606082015260800161039b565b3480156105d757600080fd5b506104166105e6366004613bea565b6116a7565b3480156105f757600080fd5b50610416610606366004613c76565b611706565b34801561061757600080fd5b50610416610626366004613c33565b611721565b34801561063757600080fd5b506011546103c49062010000900460ff1681565b34801561065757600080fd5b50610391610666366004613c33565b61172e565b34801561067757600080fd5b506104166117d2565b34801561068c57600080fd5b5061041661069b366004613bea565b611815565b3480156106ac57600080fd5b506017546103c490610100900460ff1681565b3480156106cb57600080fd5b506103916106da366004613a8d565b6001600160a01b031660009081526014602052604090205490565b34801561070157600080fd5b506011546103c49060ff1681565b34801561071b57600080fd5b5061043861072a366004613c33565b611874565b34801561073b57600080fd5b506017546103c49060ff1681565b34801561075557600080fd5b50610391610764366004613a8d565b6118d9565b34801561077557600080fd5b50610416611973565b34801561078a57600080fd5b50610391600e5481565b3480156107a057600080fd5b50610416611985565b3480156107b557600080fd5b506104166107c4366004613bea565b6119aa565b3480156107d557600080fd5b50600a546001600160a01b0316610438565b3480156107f357600080fd5b50610416610802366004613bea565b611a09565b34801561081357600080fd5b506103e9611a67565b34801561082857600080fd5b50610416611a76565b34801561083d57600080fd5b5061041661084c366004613bea565b611a9b565b34801561085d57600080fd5b5061041661086c366004613cb2565b611afa565b61041661087f366004613c4c565b611b05565b34801561089057600080fd5b5061041661089f366004613bea565b611be2565b3480156108b057600080fd5b506104166108bf366004613d0e565b611c41565b3480156108d057600080fd5b506103e96108df366004613c33565b611ccf565b6104166108f2366004613d76565b611f09565b34801561090357600080fd5b50610391610912366004613c33565b60009081526012602052604090205490565b34801561093057600080fd5b5061041661093f366004613bea565b612272565b34801561095057600080fd5b50610391600f5481565b34801561096657600080fd5b5061039160105481565b34801561097c57600080fd5b506103c461098b366004613dbd565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156109c557600080fd5b506104166122d1565b3480156109da57600080fd5b506104166109e9366004613a8d565b612347565b3480156109fa57600080fd5b50600c54610438906001600160a01b031681565b348015610a1a57600080fd5b506011546103c490610100900460ff1681565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610a835750610a83826123d4565b92915050565b606060008054610a9890613df0565b80601f0160208091040260200160405190810160405280929190818152602001828054610ac490613df0565b8015610b115780601f10610ae657610100808354040283529160200191610b11565b820191906000526020600020905b815481529060010190602001808311610af457829003601f168201915b5050505050905090565b610b236124b7565b60115460ff1615610b6c5760405162461bcd60e51b815260206004820152600e60248201526d3230ba309034b990333937bd32b760911b60448201526064015b60405180910390fd5b8051610b7f90601a9060208401906139dd565b5050565b6000610b8e82612511565b506000908152600460205260409020546001600160a01b031690565b6000610bb582611874565b9050806001600160a01b0316836001600160a01b03161415610c3f5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610b63565b336001600160a01b0382161480610c5b5750610c5b813361098b565b610ccd5760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610b63565b610cd78383612575565b505050565b610ce633826125f0565b610d585760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f766564000000000000000000000000000000000000006064820152608401610b63565b610cd783838361266e565b6000818152600260205260409020546001600160a01b0316610ded5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610b63565b33610df782611874565b6001600160a01b031614610e4d5760405162461bcd60e51b815260206004820152601560248201527f43616e206f6e6c792066726f6d206f776e6572212100000000000000000000006044820152606401610b63565b60008181526013602052604090205415610f5257600081815260126020526040812054610e7e906201518090613e51565b610e8b6201518042613e51565b610e959190613e73565b610ea0906001613e8a565b905060078111610ef45760405162461bcd60e51b8152600401610b639060208082526004908201527f7761697400000000000000000000000000000000000000000000000000000000604082015260600190565b60008281526013602052604090205460041415610f2257600082815260136020526040902060029055610f4c565b600082815260136020526040902054610f3c906001613e8a565b6000838152601360205260409020555b50610fc1565b60008181526013602052604090205415610fae5760405162461bcd60e51b815260206004820152601360248201527f416c7265616479206163746976617465642121000000000000000000000000006044820152606401610b63565b6000818152601360205260409020600190555b6000908152601260205260409020429055565b610fdc6124b7565b600e55565b610fe96124b7565b600c805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6110206124b7565b6011805460ff19166001179055565b600061103a836118d9565b82106110ae5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610b63565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6110df6128b1565b60115462010000900460ff166111375760405162461bcd60e51b815260206004820152600e60248201527f53616c652069732073746f7065640000000000000000000000000000000000006044820152606401610b63565b600e548111156111895760405162461bcd60e51b815260206004820181905260248201527f507572636861736520776f756c6420657863656564206d617820737570706c796044820152606401610b63565b600f5461119f8261119960085490565b9061290b565b106112125760405162461bcd60e51b815260206004820152602c60248201527f507572636861736520776f756c6420657863656564206d617820737570706c7960448201527f206f6620506572666563747300000000000000000000000000000000000000006064820152608401610b63565b80600d546112209190613ea2565b34101561126f5760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610b63565b336000908152601460205260408120805483929061128e908490613e8a565b90915550600090505b818110156112d3576112ab33601054612917565b601080549060006112bb83613ec1565b919050555080806112cb90613ec1565b915050611297565b506112de6001600b55565b50565b6112e96128b1565b6112f16124b7565b60006064611300476022613ea2565b61130a9190613e51565b90506000606461131b476021613ea2565b6113259190613e51565b905060006064611336476021613ea2565b6113409190613e51565b6021546040519192506001600160a01b03169084156108fc029085906000818181858888f1935050505061137357600080fd5b6022546040516001600160a01b039091169083156108fc029084906000818181858888f193505050506113a557600080fd5b6023546040516001600160a01b039091169082156108fc029083906000818181858888f193505050506113d757600080fd5b5050506113e46001600b55565b565b6000818152600260205260409020546060906001600160a01b0316158061141b57506000828152601360205260409020546001115b1561143257600061142b83612931565b9392505050565b60008281526012602052604081205461144f906201518090613e51565b61145c6201518042613e51565b6114669190613e73565b611471906001613e8a565b90506007811115611480575060075b60608060015b611491846001613e8a565b8110156115295760008681526012602052604090205482906114f49083906114ba908a90613e8a565b6114c49190613ea2565b6040516020016114d691815260200190565b6040516020818303038152906040528051906020012060001c6129b5565b604051602001611505929190613edc565b6040516020818303038152906040529150808061152190613ec1565b915050611486565b50601c601d601e83601961153c8a6129b5565b60008b815260136020526040902054611554906129b5565b601f60405160200161156d989796959493929190613fce565b60408051601f1981840301815291905295945050505050565b919050565b6000806000806115b2856000908152600260205260409020546001600160a01b0316151590565b6116245760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610b63565b60008581526013602052604090205461167f5760405162461bcd60e51b815260206004820152600a60248201527f6e6f7420616374697665000000000000000000000000000000000000000000006044820152606401610b63565b60008581526012602052604090205461169781612a5f565b9299919850965090945092505050565b6116af6124b7565b60115460ff16156116f35760405162461bcd60e51b815260206004820152600e60248201526d3230ba309034b990333937bd32b760911b6044820152606401610b63565b8051610b7f90601b9060208401906139dd565b610cd783838360405180602001604052806000815250611c41565b6117296124b7565b600d55565b600061173960085490565b82106117ad5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610b63565b600882815481106117c0576117c061411b565b90600052602060002001549050919050565b6117da6124b7565b601180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff8116620100009182900460ff1615909102179055565b61181d6124b7565b60115460ff16156118615760405162461bcd60e51b815260206004820152600e60248201526d3230ba309034b990333937bd32b760911b6044820152606401610b63565b8051610b7f90601e9060208401906139dd565b6000818152600260205260408120546001600160a01b031680610a835760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610b63565b60006001600160a01b0382166119575760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152608401610b63565b506001600160a01b031660009081526003602052604090205490565b61197b6124b7565b6113e46000612a8e565b61198d6124b7565b6011805461ff001981166101009182900460ff1615909102179055565b6119b26124b7565b60115460ff16156119f65760405162461bcd60e51b815260206004820152600e60248201526d3230ba309034b990333937bd32b760911b6044820152606401610b63565b8051610b7f90601d9060208401906139dd565b611a116124b7565b60115460ff1615611a555760405162461bcd60e51b815260206004820152600e60248201526d3230ba309034b990333937bd32b760911b6044820152606401610b63565b8051610b7f90602090818401906139dd565b606060018054610a9890613df0565b611a7e6124b7565b6017805461ff001981166101009182900460ff1615909102179055565b611aa36124b7565b60115460ff1615611ae75760405162461bcd60e51b815260206004820152600e60248201526d3230ba309034b990333937bd32b760911b6044820152606401610b63565b8051610b7f9060189060208401906139dd565b610b7f338383612aed565b611b0d6128b1565b611b156124b7565b600f54611b258261119960085490565b10611b985760405162461bcd60e51b815260206004820152602d60248201527f507572636861736520776f756c6420657863656564206d617820737570706c7960448201527f206f66204861726d6f6e696573000000000000000000000000000000000000006064820152608401610b63565b60005b81811015611bd757611baf83601054612917565b60108054906000611bbf83613ec1565b91905055508080611bcf90613ec1565b915050611b9b565b50610b7f6001600b55565b611bea6124b7565b60115460ff1615611c2e5760405162461bcd60e51b815260206004820152600e60248201526d3230ba309034b990333937bd32b760911b6044820152606401610b63565b8051610b7f9060199060208401906139dd565b611c4b33836125f0565b611cbd5760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f766564000000000000000000000000000000000000006064820152608401610b63565b611cc984848484612bbc565b50505050565b6000818152600260205260409020546060906001600160a01b0316611d5c5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610b63565b60008281526013602052604090205460011115611d7e57600061142b83612931565b601754606090610100900460ff1615611eba5760008381526012602052604081205460609190611db2906201518090613e51565b611dbf6201518042613e51565b611dc99190613e73565b611dd4906001613e8a565b90506007811115611de3575060075b60015b611df1826001613e8a565b811015611e4f576000868152601260205260409020548390611e1a9083906114ba908a90613e8a565b604051602001611e2b929190613edc565b60405160208183030381529060405292508080611e4790613ec1565b915050611de6565b50601c601d601e846019611e628a6129b5565b60008b815260136020526040902054611e7a906129b5565b601f604051602001611e93989796959493929190613fce565b60405160208183030381529060405292506000611eb08685612c45565b9695505050505050565b6000611efb846040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250612c45565b949350505050565b50919050565b611f116128b1565b601154610100900460ff16611f685760405162461bcd60e51b815260206004820152600e60248201527f53616c652069732073746f7065640000000000000000000000000000000000006044820152606401610b63565b604080513360601b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016602080830191909152825160148184030181526034830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000060548401526070808401829052845180850390910181526090909301909352815191012060006120028285612d5e565b600c549091506001600160a01b038083169116146120625760405162461bcd60e51b815260206004820152601160248201527f5369676e206e6f742076657269666965640000000000000000000000000000006044820152606401610b63565b600e5433600090815260146020526040902054612080908790613e8a565b11156120ce5760405162461bcd60e51b815260206004820152601360248201527f6d696e74206c696d6974206578636565646564000000000000000000000000006044820152606401610b63565b600e548511156121205760405162461bcd60e51b815260206004820181905260248201527f507572636861736520776f756c6420657863656564206d617820737570706c796044820152606401610b63565b600f546121308661119960085490565b106121a35760405162461bcd60e51b815260206004820152602c60248201527f507572636861736520776f756c6420657863656564206d617820737570706c7960448201527f206f6620506572666563747300000000000000000000000000000000000000006064820152608401610b63565b84600d546121b19190613ea2565b3410156122005760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610b63565b336000908152601460205260408120805487929061221f908490613e8a565b90915550600090505b858110156122645761223c33601054612917565b6010805490600061224c83613ec1565b9190505550808061225c90613ec1565b915050612228565b50505050610b7f6001600b55565b61227a6124b7565b60115460ff16156122be5760405162461bcd60e51b815260206004820152600e60248201526d3230ba309034b990333937bd32b760911b6044820152606401610b63565b8051610b7f90601f9060208401906139dd565b6122d96124b7565b60175460ff161561232c5760405162461bcd60e51b815260206004820152600e60248201527f416c6c72656164792053657421210000000000000000000000000000000000006044820152606401610b63565b6017805460ff1916600117905561234260085490565b600f55565b61234f6124b7565b6001600160a01b0381166123cb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b63565b6112de81612a8e565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061246757507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610a8357507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610a83565b600a546001600160a01b031633146113e45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b63565b6000818152600260205260409020546001600160a01b03166112de5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610b63565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03841690811790915581906125b782611874565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806125fc83611874565b9050806001600160a01b0316846001600160a01b0316148061264357506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80611efb5750836001600160a01b031661265c84610b83565b6001600160a01b031614949350505050565b826001600160a01b031661268182611874565b6001600160a01b0316146126fd5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610b63565b6001600160a01b0382166127785760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610b63565b6127858383836001612d7a565b826001600160a01b031661279882611874565b6001600160a01b0316146128145760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610b63565b6000818152600460209081526040808320805473ffffffffffffffffffffffffffffffffffffffff199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6002600b5414156129045760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b63565b6002600b55565b600061142b8284613e8a565b610b7f828260405180602001604052806000815250612eb6565b60606000612988612941846129b5565b601a601b60405160200161295793929190614131565b60408051601f1981840301815290829052612974916020016142ea565b604051602081830303815290604052612f3f565b905060008160405160200161299d9190614306565b60408051601f19818403018152919052949350505050565b606060006129c2836130fa565b600101905060008167ffffffffffffffff8111156129e2576129e2613b5e565b6040519080825280601f01601f191660200182016040528015612a0c576020820181803683370190505b5090508181016020015b600019017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8504945084612a5257612a57565b612a16565b509392505050565b6000808080612a726201518086046131dc565b91979096919550610e1062015180909206919091049350915050565b600a80546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415612b4f5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b63565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612bc784848461266e565b612bd384848484613296565b611cc95760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610b63565b6060806060601760019054906101000a900460ff1615612cb157612c6884612f3f565b604051602001612c78919061434b565b60405160208183030381529060405291506018604051602001612c9b9190614390565b6040516020818303038152906040529050612d0c565b6020612cbc866129b5565b604051602001612ccd9291906143c9565b60405160208183030381529060405291506020612ce9866129b5565b604051602001612cfa929190614417565b60405160208183030381529060405290505b6000612d2e612d1a876129b5565b838560405160200161297493929190614465565b9050600081604051602001612d439190614306565b60408051808303601f19018152919052979650505050505050565b6000806000612d6d8585613434565b91509150612a578161347a565b6001811115612df15760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e736563757469766520747260448201527f616e7366657273206e6f7420737570706f7274656400000000000000000000006064820152608401610b63565b816001600160a01b038516612e4d57612e4881600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612e70565b836001600160a01b0316856001600160a01b031614612e7057612e7085826135e3565b6001600160a01b038416612e8c57612e8781613680565b612eaf565b846001600160a01b0316846001600160a01b031614612eaf57612eaf848261372f565b5050505050565b612ec08383613773565b612ecd6000848484613296565b610cd75760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610b63565b6060815160001415612f5f57505060408051602081019091526000815290565b60006040518060600160405280604081526020016146b16040913990506000600384516002612f8e9190613e8a565b612f989190613e51565b612fa3906004613ea2565b90506000612fb2826020613e8a565b67ffffffffffffffff811115612fca57612fca613b5e565b6040519080825280601f01601f191660200182016040528015612ff4576020820181803683370190505b509050818152600183018586518101602084015b81831015613060576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f8116850151825350600101613008565b60038951066001811461307a57600281146130c4576130ec565b7f3d3d0000000000000000000000000000000000000000000000000000000000007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe8301526130ec565b7f3d000000000000000000000000000000000000000000000000000000000000006000198301525b509398975050505050505050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613143577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef8100000000831061316f576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061318d57662386f26fc10000830492506010015b6305f5e10083106131a5576305f5e100830492506008015b61271083106131b957612710830492506004015b606483106131cb576064830492506002015b600a8310610a835760010192915050565b60008080836226496581018262023ab1600483020590506004600362023ab18302010590910390600062164b09610fa0600185010205905060046105b58202058303601f019250600061098f846050028161323957613239613e25565b0590506000605061098f83020585039050600b82057fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcf94909401606402929092018301996002600c90940290910392909201975095509350505050565b60006001600160a01b0384163b15613429576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a02906132f3903390899088908890600401614635565b6020604051808303816000875af192505050801561332e575060408051601f3d908101601f1916820190925261332b91810190614667565b60015b6133de573d80801561335c576040519150601f19603f3d011682016040523d82523d6000602084013e613361565b606091505b5080516133d65760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610b63565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050611efb565b506001949350505050565b60008082516041141561346b5760208301516040840151606085015160001a61345f87828585613919565b94509450505050613473565b506000905060025b9250929050565b600081600481111561348e5761348e614684565b14156134975750565b60018160048111156134ab576134ab614684565b14156134f95760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610b63565b600281600481111561350d5761350d614684565b141561355b5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610b63565b600381600481111561356f5761356f614684565b14156112de5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610b63565b600060016135f0846118d9565b6135fa9190613e73565b60008381526007602052604090205490915080821461364d576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061369290600190613e73565b600083815260096020526040812054600880549394509092849081106136ba576136ba61411b565b9060005260206000200154905080600883815481106136db576136db61411b565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806137135761371361469a565b6001900381819060005260206000200160009055905550505050565b600061373a836118d9565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166137c95760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b63565b6000818152600260205260409020546001600160a01b03161561382e5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b63565b61383c600083836001612d7a565b6000818152600260205260409020546001600160a01b0316156138a15760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b63565b6001600160a01b0382166000818152600360209081526040808320805460010190558483526002909152808220805473ffffffffffffffffffffffffffffffffffffffff19168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561395057506000905060036139d4565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156139a4573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166139cd576000600192509250506139d4565b9150600090505b94509492505050565b8280546139e990613df0565b90600052602060002090601f016020900481019282613a0b5760008555613a51565b82601f10613a2457805160ff1916838001178555613a51565b82800160010185558215613a51579182015b82811115613a51578251825591602001919060010190613a36565b50613a5d929150613a61565b5090565b5b80821115613a5d5760008155600101613a62565b80356001600160a01b038116811461158657600080fd5b600060208284031215613a9f57600080fd5b61142b82613a76565b7fffffffff00000000000000000000000000000000000000000000000000000000811681146112de57600080fd5b600060208284031215613ae857600080fd5b813561142b81613aa8565b60005b83811015613b0e578181015183820152602001613af6565b83811115611cc95750506000910152565b60008151808452613b37816020860160208601613af3565b601f01601f19169290920160200192915050565b60208152600061142b6020830184613b1f565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115613b8f57613b8f613b5e565b604051601f8501601f19908116603f01168101908282118183101715613bb757613bb7613b5e565b81604052809350858152868686011115613bd057600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215613bfc57600080fd5b813567ffffffffffffffff811115613c1357600080fd5b8201601f81018413613c2457600080fd5b611efb84823560208401613b74565b600060208284031215613c4557600080fd5b5035919050565b60008060408385031215613c5f57600080fd5b613c6883613a76565b946020939093013593505050565b600080600060608486031215613c8b57600080fd5b613c9484613a76565b9250613ca260208501613a76565b9150604084013590509250925092565b60008060408385031215613cc557600080fd5b613cce83613a76565b915060208301358015158114613ce357600080fd5b809150509250929050565b600082601f830112613cff57600080fd5b61142b83833560208501613b74565b60008060008060808587031215613d2457600080fd5b613d2d85613a76565b9350613d3b60208601613a76565b925060408501359150606085013567ffffffffffffffff811115613d5e57600080fd5b613d6a87828801613cee565b91505092959194509250565b60008060408385031215613d8957600080fd5b82359150602083013567ffffffffffffffff811115613da757600080fd5b613db385828601613cee565b9150509250929050565b60008060408385031215613dd057600080fd5b613dd983613a76565b9150613de760208401613a76565b90509250929050565b600181811c90821680613e0457607f821691505b60208210811415611f0357634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082613e6e57634e487b7160e01b600052601260045260246000fd5b500490565b600082821015613e8557613e85613e3b565b500390565b60008219821115613e9d57613e9d613e3b565b500190565b6000816000190483118215151615613ebc57613ebc613e3b565b500290565b6000600019821415613ed557613ed5613e3b565b5060010190565b60008351613eee818460208801613af3565b7f2d000000000000000000000000000000000000000000000000000000000000009083019081528351613f28816001840160208801613af3565b01600101949350505050565b8054600090600181811c9080831680613f4e57607f831692505b6020808410821415613f7057634e487b7160e01b600052602260045260246000fd5b818015613f845760018114613f9557613fc2565b60ff19861689528489019650613fc2565b60008881526020902060005b86811015613fba5781548b820152908501908301613fa1565b505084890196505b50505050505092915050565b6000613fec613fe6613fe0848d613f34565b8b613f34565b89613f34565b8751613ffc818360208c01613af3565b7f223b20636f6e7374206461746155524c203d2022000000000000000000000000910190815261402f6014820188613f34565b90507f22000000000000000000000000000000000000000000000000000000000000008082527f3b20636f6e737420746f6b656e4964203d2022000000000000000000000000006001830152865161408e816014850160208b01613af3565b601492019182018190527f3b20636f6e7374206f726465723d220000000000000000000000000000000000601583015285516140d1816024850160208a01613af3565b60249201918201526140e66025820185613f34565b7f3c2f626f64793e3c2f68746d6c3e0000000000000000000000000000000000008152600e019b9a5050505050505050505050565b634e487b7160e01b600052603260045260246000fd5b7f7b226e616d65223a20225065726665637420496d69746174696f6e202300000081526000845161416981601d850160208901613af3565b614288614282601d838601017f222c20226465736372697074696f6e223a20224a7573742072756e207468652081527f616c676f726974686d20616e64206f627365727665207468652064656570207060208201527f726f63657373206f66206372656174696e672061206e6577207061696e74696e60408201527f6720696e20736576656e20646179732e2041646d697265207468652066696e6960608201527f7368656420776f726b20696e646566696e6974656c792c206f7220657261736560808201527f20697420616e642063726561746520736f6d657468696e67206e65772e222c2060a08201527f22696d616765223a20220000000000000000000000000000000000000000000060c082015260ca0190565b86613f34565b90507f222c2022616e696d6174696f6e5f75726c223a2022000000000000000000000081526142ba6015820185613f34565b7f227d00000000000000000000000000000000000000000000000000000000000081526002019695505050505050565b600082516142fc818460208701613af3565b9190910192915050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161433e81601d850160208701613af3565b91909101601d0192915050565b7f646174613a746578742f68746d6c3b6261736536342c00000000000000000000815260008251614383816016850160208701613af3565b9190910160160192915050565b600061439c8284613f34565b7f7468696d622e6a7067000000000000000000000000000000000000000000000081526009019392505050565b60006143d58285613f34565b7f3f6e66743d0000000000000000000000000000000000000000000000000000008152835161440b816005840160208801613af3565b01600501949350505050565b60006144238285613f34565b7f3f69643d0000000000000000000000000000000000000000000000000000000081528351614459816004840160208801613af3565b01600401949350505050565b7f7b226e616d65223a20225065726665637420496d69746174696f6e202300000081526000845161449d81601d850160208901613af3565b6145b3601d828501017f222c20226465736372697074696f6e223a20224a7573742072756e207468652081527f616c676f726974686d20616e64206f627365727665207468652064656570207060208201527f726f63657373206f66206372656174696e672061206e6577207061696e74696e60408201527f6720696e20736576656e20646179732e2041646d697265207468652066696e6960608201527f7368656420776f726b20696e646566696e6974656c792c206f7220657261736560808201527f20697420616e642063726561746520736f6d657468696e67206e65772e222c2060a08201527f22696d616765223a20220000000000000000000000000000000000000000000060c082015260ca0190565b905084516145c5818360208901613af3565b7f222c2022616e696d6174696f6e5f75726c223a20220000000000000000000000910190815283516145fe816015840160208801613af3565b7f227d0000000000000000000000000000000000000000000000000000000000006015929091019182015260170195945050505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152611eb06080830184613b1f565b60006020828403121561467957600080fd5b815161142b81613aa8565b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603160045260246000fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212208854ef588e2e040e6b974466f2216a71d5250665dfb2fdee898dbb5ea06cae0764736f6c634300080c003368747470733a2f2f617277656176652e6e65742f357a67784139637a31397175307764794b4c3843564b4876765a4531413274464e6a4746577633504c74552f7374742e63737368747470733a2f2f736f756c67656e657369732e6172742f70726f6a656374782f6c6f61646d6574612e7068703c68746d6c3e3c6d657461206e616d653d2276696577706f72742220636f6e74656e743d2277696474683d6465766963652d77696474682c20696e697469616c2d7363616c653d31223e3c686561643e3c6c696e6b20687265663d2268747470733a2f2f617277656176652e6e65742f6e78706b576778416f4f64795a444f55457579326174766d394f45315f515632732d315f6c6d526a4f51452f
Deployed Bytecode
0x60806040526004361061035f5760003560e01c806362a5af3b116101c6578063add5a4fa116100f7578063d49d518111610095578063ee55efee1161006f578063ee55efee146109b9578063f2fde38b146109ce578063fc6f9468146109ee578063ff44e91514610a0e57600080fd5b8063d49d518114610944578063d56681311461095a578063e985e9c51461097057600080fd5b8063c87b56dd116100d1578063c87b56dd146108c4578063ccc2af67146108e4578063cf486a4c146108f7578063d0f506d91461092457600080fd5b8063add5a4fa14610871578063b6da972c14610884578063b88d4fde146108a457600080fd5b80638a41f2d81161016457806395d89b411161013e57806395d89b411461080757806396c919f71461081c57806399d2545514610831578063a22cb4651461085157600080fd5b80638a41f2d8146107a95780638da5cb5b146107c957806390774532146107e757600080fd5b806370a08231116101a057806370a0823114610749578063715018a61461076957806373ed5e2e1461077e578063814c36341461079457600080fd5b806362a5af3b146106f55780636352211e1461070f5780636b2357c21461072f57600080fd5b80632f745c59116102a057806344a0d68a1161023e578063515d2b9411610218578063515d2b941461066b57806355752934146106805780635b410881146106a05780635f515226146106bf57600080fd5b806344a0d68a1461060b5780634abfc6b91461062b5780634f6ccce71461064b57600080fd5b80633eca5d381161027a5780633eca5d381461056b5780634162f3401461058b5780634251f14c146105cb57806342842e0e146105eb57600080fd5b80632f745c591461053057806334ec740a146105505780633ccfd60b1461056357600080fd5b806313faede61161030d5780632583ed03116102e75780632583ed03146104bb57806327ea6f2b146104db5780632c1e816d146104fb5780632c8cbe401461051b57600080fd5b806313faede61461047057806318160ddd1461048657806323b872dd1461049b57600080fd5b806307544b7c1161033e57806307544b7c146103f6578063081812fc14610418578063095ea7b31461045057600080fd5b80628af2e61461036457806301ffc9a7146103a457806306fdde03146103d4575b600080fd5b34801561037057600080fd5b5061039161037f366004613a8d565b60146020526000908152604090205481565b6040519081526020015b60405180910390f35b3480156103b057600080fd5b506103c46103bf366004613ad6565b610a2d565b604051901515815260200161039b565b3480156103e057600080fd5b506103e9610a89565b60405161039b9190613b4b565b34801561040257600080fd5b50610416610411366004613bea565b610b1b565b005b34801561042457600080fd5b50610438610433366004613c33565b610b83565b6040516001600160a01b03909116815260200161039b565b34801561045c57600080fd5b5061041661046b366004613c4c565b610baa565b34801561047c57600080fd5b50610391600d5481565b34801561049257600080fd5b50600854610391565b3480156104a757600080fd5b506104166104b6366004613c76565b610cdc565b3480156104c757600080fd5b506104166104d6366004613c33565b610d63565b3480156104e757600080fd5b506104166104f6366004613c33565b610fd4565b34801561050757600080fd5b50610416610516366004613a8d565b610fe1565b34801561052757600080fd5b50610416611018565b34801561053c57600080fd5b5061039161054b366004613c4c565b61102f565b61041661055e366004613c33565b6110d7565b6104166112e1565b34801561057757600080fd5b506103e9610586366004613c33565b6113e6565b34801561059757600080fd5b506105ab6105a6366004613c33565b61158b565b60408051948552602085019390935291830152606082015260800161039b565b3480156105d757600080fd5b506104166105e6366004613bea565b6116a7565b3480156105f757600080fd5b50610416610606366004613c76565b611706565b34801561061757600080fd5b50610416610626366004613c33565b611721565b34801561063757600080fd5b506011546103c49062010000900460ff1681565b34801561065757600080fd5b50610391610666366004613c33565b61172e565b34801561067757600080fd5b506104166117d2565b34801561068c57600080fd5b5061041661069b366004613bea565b611815565b3480156106ac57600080fd5b506017546103c490610100900460ff1681565b3480156106cb57600080fd5b506103916106da366004613a8d565b6001600160a01b031660009081526014602052604090205490565b34801561070157600080fd5b506011546103c49060ff1681565b34801561071b57600080fd5b5061043861072a366004613c33565b611874565b34801561073b57600080fd5b506017546103c49060ff1681565b34801561075557600080fd5b50610391610764366004613a8d565b6118d9565b34801561077557600080fd5b50610416611973565b34801561078a57600080fd5b50610391600e5481565b3480156107a057600080fd5b50610416611985565b3480156107b557600080fd5b506104166107c4366004613bea565b6119aa565b3480156107d557600080fd5b50600a546001600160a01b0316610438565b3480156107f357600080fd5b50610416610802366004613bea565b611a09565b34801561081357600080fd5b506103e9611a67565b34801561082857600080fd5b50610416611a76565b34801561083d57600080fd5b5061041661084c366004613bea565b611a9b565b34801561085d57600080fd5b5061041661086c366004613cb2565b611afa565b61041661087f366004613c4c565b611b05565b34801561089057600080fd5b5061041661089f366004613bea565b611be2565b3480156108b057600080fd5b506104166108bf366004613d0e565b611c41565b3480156108d057600080fd5b506103e96108df366004613c33565b611ccf565b6104166108f2366004613d76565b611f09565b34801561090357600080fd5b50610391610912366004613c33565b60009081526012602052604090205490565b34801561093057600080fd5b5061041661093f366004613bea565b612272565b34801561095057600080fd5b50610391600f5481565b34801561096657600080fd5b5061039160105481565b34801561097c57600080fd5b506103c461098b366004613dbd565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156109c557600080fd5b506104166122d1565b3480156109da57600080fd5b506104166109e9366004613a8d565b612347565b3480156109fa57600080fd5b50600c54610438906001600160a01b031681565b348015610a1a57600080fd5b506011546103c490610100900460ff1681565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610a835750610a83826123d4565b92915050565b606060008054610a9890613df0565b80601f0160208091040260200160405190810160405280929190818152602001828054610ac490613df0565b8015610b115780601f10610ae657610100808354040283529160200191610b11565b820191906000526020600020905b815481529060010190602001808311610af457829003601f168201915b5050505050905090565b610b236124b7565b60115460ff1615610b6c5760405162461bcd60e51b815260206004820152600e60248201526d3230ba309034b990333937bd32b760911b60448201526064015b60405180910390fd5b8051610b7f90601a9060208401906139dd565b5050565b6000610b8e82612511565b506000908152600460205260409020546001600160a01b031690565b6000610bb582611874565b9050806001600160a01b0316836001600160a01b03161415610c3f5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610b63565b336001600160a01b0382161480610c5b5750610c5b813361098b565b610ccd5760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610b63565b610cd78383612575565b505050565b610ce633826125f0565b610d585760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f766564000000000000000000000000000000000000006064820152608401610b63565b610cd783838361266e565b6000818152600260205260409020546001600160a01b0316610ded5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610b63565b33610df782611874565b6001600160a01b031614610e4d5760405162461bcd60e51b815260206004820152601560248201527f43616e206f6e6c792066726f6d206f776e6572212100000000000000000000006044820152606401610b63565b60008181526013602052604090205415610f5257600081815260126020526040812054610e7e906201518090613e51565b610e8b6201518042613e51565b610e959190613e73565b610ea0906001613e8a565b905060078111610ef45760405162461bcd60e51b8152600401610b639060208082526004908201527f7761697400000000000000000000000000000000000000000000000000000000604082015260600190565b60008281526013602052604090205460041415610f2257600082815260136020526040902060029055610f4c565b600082815260136020526040902054610f3c906001613e8a565b6000838152601360205260409020555b50610fc1565b60008181526013602052604090205415610fae5760405162461bcd60e51b815260206004820152601360248201527f416c7265616479206163746976617465642121000000000000000000000000006044820152606401610b63565b6000818152601360205260409020600190555b6000908152601260205260409020429055565b610fdc6124b7565b600e55565b610fe96124b7565b600c805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6110206124b7565b6011805460ff19166001179055565b600061103a836118d9565b82106110ae5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610b63565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6110df6128b1565b60115462010000900460ff166111375760405162461bcd60e51b815260206004820152600e60248201527f53616c652069732073746f7065640000000000000000000000000000000000006044820152606401610b63565b600e548111156111895760405162461bcd60e51b815260206004820181905260248201527f507572636861736520776f756c6420657863656564206d617820737570706c796044820152606401610b63565b600f5461119f8261119960085490565b9061290b565b106112125760405162461bcd60e51b815260206004820152602c60248201527f507572636861736520776f756c6420657863656564206d617820737570706c7960448201527f206f6620506572666563747300000000000000000000000000000000000000006064820152608401610b63565b80600d546112209190613ea2565b34101561126f5760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610b63565b336000908152601460205260408120805483929061128e908490613e8a565b90915550600090505b818110156112d3576112ab33601054612917565b601080549060006112bb83613ec1565b919050555080806112cb90613ec1565b915050611297565b506112de6001600b55565b50565b6112e96128b1565b6112f16124b7565b60006064611300476022613ea2565b61130a9190613e51565b90506000606461131b476021613ea2565b6113259190613e51565b905060006064611336476021613ea2565b6113409190613e51565b6021546040519192506001600160a01b03169084156108fc029085906000818181858888f1935050505061137357600080fd5b6022546040516001600160a01b039091169083156108fc029084906000818181858888f193505050506113a557600080fd5b6023546040516001600160a01b039091169082156108fc029083906000818181858888f193505050506113d757600080fd5b5050506113e46001600b55565b565b6000818152600260205260409020546060906001600160a01b0316158061141b57506000828152601360205260409020546001115b1561143257600061142b83612931565b9392505050565b60008281526012602052604081205461144f906201518090613e51565b61145c6201518042613e51565b6114669190613e73565b611471906001613e8a565b90506007811115611480575060075b60608060015b611491846001613e8a565b8110156115295760008681526012602052604090205482906114f49083906114ba908a90613e8a565b6114c49190613ea2565b6040516020016114d691815260200190565b6040516020818303038152906040528051906020012060001c6129b5565b604051602001611505929190613edc565b6040516020818303038152906040529150808061152190613ec1565b915050611486565b50601c601d601e83601961153c8a6129b5565b60008b815260136020526040902054611554906129b5565b601f60405160200161156d989796959493929190613fce565b60408051601f1981840301815291905295945050505050565b919050565b6000806000806115b2856000908152600260205260409020546001600160a01b0316151590565b6116245760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610b63565b60008581526013602052604090205461167f5760405162461bcd60e51b815260206004820152600a60248201527f6e6f7420616374697665000000000000000000000000000000000000000000006044820152606401610b63565b60008581526012602052604090205461169781612a5f565b9299919850965090945092505050565b6116af6124b7565b60115460ff16156116f35760405162461bcd60e51b815260206004820152600e60248201526d3230ba309034b990333937bd32b760911b6044820152606401610b63565b8051610b7f90601b9060208401906139dd565b610cd783838360405180602001604052806000815250611c41565b6117296124b7565b600d55565b600061173960085490565b82106117ad5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610b63565b600882815481106117c0576117c061411b565b90600052602060002001549050919050565b6117da6124b7565b601180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff8116620100009182900460ff1615909102179055565b61181d6124b7565b60115460ff16156118615760405162461bcd60e51b815260206004820152600e60248201526d3230ba309034b990333937bd32b760911b6044820152606401610b63565b8051610b7f90601e9060208401906139dd565b6000818152600260205260408120546001600160a01b031680610a835760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610b63565b60006001600160a01b0382166119575760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152608401610b63565b506001600160a01b031660009081526003602052604090205490565b61197b6124b7565b6113e46000612a8e565b61198d6124b7565b6011805461ff001981166101009182900460ff1615909102179055565b6119b26124b7565b60115460ff16156119f65760405162461bcd60e51b815260206004820152600e60248201526d3230ba309034b990333937bd32b760911b6044820152606401610b63565b8051610b7f90601d9060208401906139dd565b611a116124b7565b60115460ff1615611a555760405162461bcd60e51b815260206004820152600e60248201526d3230ba309034b990333937bd32b760911b6044820152606401610b63565b8051610b7f90602090818401906139dd565b606060018054610a9890613df0565b611a7e6124b7565b6017805461ff001981166101009182900460ff1615909102179055565b611aa36124b7565b60115460ff1615611ae75760405162461bcd60e51b815260206004820152600e60248201526d3230ba309034b990333937bd32b760911b6044820152606401610b63565b8051610b7f9060189060208401906139dd565b610b7f338383612aed565b611b0d6128b1565b611b156124b7565b600f54611b258261119960085490565b10611b985760405162461bcd60e51b815260206004820152602d60248201527f507572636861736520776f756c6420657863656564206d617820737570706c7960448201527f206f66204861726d6f6e696573000000000000000000000000000000000000006064820152608401610b63565b60005b81811015611bd757611baf83601054612917565b60108054906000611bbf83613ec1565b91905055508080611bcf90613ec1565b915050611b9b565b50610b7f6001600b55565b611bea6124b7565b60115460ff1615611c2e5760405162461bcd60e51b815260206004820152600e60248201526d3230ba309034b990333937bd32b760911b6044820152606401610b63565b8051610b7f9060199060208401906139dd565b611c4b33836125f0565b611cbd5760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f766564000000000000000000000000000000000000006064820152608401610b63565b611cc984848484612bbc565b50505050565b6000818152600260205260409020546060906001600160a01b0316611d5c5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610b63565b60008281526013602052604090205460011115611d7e57600061142b83612931565b601754606090610100900460ff1615611eba5760008381526012602052604081205460609190611db2906201518090613e51565b611dbf6201518042613e51565b611dc99190613e73565b611dd4906001613e8a565b90506007811115611de3575060075b60015b611df1826001613e8a565b811015611e4f576000868152601260205260409020548390611e1a9083906114ba908a90613e8a565b604051602001611e2b929190613edc565b60405160208183030381529060405292508080611e4790613ec1565b915050611de6565b50601c601d601e846019611e628a6129b5565b60008b815260136020526040902054611e7a906129b5565b601f604051602001611e93989796959493929190613fce565b60405160208183030381529060405292506000611eb08685612c45565b9695505050505050565b6000611efb846040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250612c45565b949350505050565b50919050565b611f116128b1565b601154610100900460ff16611f685760405162461bcd60e51b815260206004820152600e60248201527f53616c652069732073746f7065640000000000000000000000000000000000006044820152606401610b63565b604080513360601b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016602080830191909152825160148184030181526034830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000060548401526070808401829052845180850390910181526090909301909352815191012060006120028285612d5e565b600c549091506001600160a01b038083169116146120625760405162461bcd60e51b815260206004820152601160248201527f5369676e206e6f742076657269666965640000000000000000000000000000006044820152606401610b63565b600e5433600090815260146020526040902054612080908790613e8a565b11156120ce5760405162461bcd60e51b815260206004820152601360248201527f6d696e74206c696d6974206578636565646564000000000000000000000000006044820152606401610b63565b600e548511156121205760405162461bcd60e51b815260206004820181905260248201527f507572636861736520776f756c6420657863656564206d617820737570706c796044820152606401610b63565b600f546121308661119960085490565b106121a35760405162461bcd60e51b815260206004820152602c60248201527f507572636861736520776f756c6420657863656564206d617820737570706c7960448201527f206f6620506572666563747300000000000000000000000000000000000000006064820152608401610b63565b84600d546121b19190613ea2565b3410156122005760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610b63565b336000908152601460205260408120805487929061221f908490613e8a565b90915550600090505b858110156122645761223c33601054612917565b6010805490600061224c83613ec1565b9190505550808061225c90613ec1565b915050612228565b50505050610b7f6001600b55565b61227a6124b7565b60115460ff16156122be5760405162461bcd60e51b815260206004820152600e60248201526d3230ba309034b990333937bd32b760911b6044820152606401610b63565b8051610b7f90601f9060208401906139dd565b6122d96124b7565b60175460ff161561232c5760405162461bcd60e51b815260206004820152600e60248201527f416c6c72656164792053657421210000000000000000000000000000000000006044820152606401610b63565b6017805460ff1916600117905561234260085490565b600f55565b61234f6124b7565b6001600160a01b0381166123cb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b63565b6112de81612a8e565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061246757507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610a8357507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610a83565b600a546001600160a01b031633146113e45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b63565b6000818152600260205260409020546001600160a01b03166112de5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610b63565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03841690811790915581906125b782611874565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806125fc83611874565b9050806001600160a01b0316846001600160a01b0316148061264357506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80611efb5750836001600160a01b031661265c84610b83565b6001600160a01b031614949350505050565b826001600160a01b031661268182611874565b6001600160a01b0316146126fd5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610b63565b6001600160a01b0382166127785760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610b63565b6127858383836001612d7a565b826001600160a01b031661279882611874565b6001600160a01b0316146128145760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610b63565b6000818152600460209081526040808320805473ffffffffffffffffffffffffffffffffffffffff199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6002600b5414156129045760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b63565b6002600b55565b600061142b8284613e8a565b610b7f828260405180602001604052806000815250612eb6565b60606000612988612941846129b5565b601a601b60405160200161295793929190614131565b60408051601f1981840301815290829052612974916020016142ea565b604051602081830303815290604052612f3f565b905060008160405160200161299d9190614306565b60408051601f19818403018152919052949350505050565b606060006129c2836130fa565b600101905060008167ffffffffffffffff8111156129e2576129e2613b5e565b6040519080825280601f01601f191660200182016040528015612a0c576020820181803683370190505b5090508181016020015b600019017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8504945084612a5257612a57565b612a16565b509392505050565b6000808080612a726201518086046131dc565b91979096919550610e1062015180909206919091049350915050565b600a80546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415612b4f5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b63565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612bc784848461266e565b612bd384848484613296565b611cc95760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610b63565b6060806060601760019054906101000a900460ff1615612cb157612c6884612f3f565b604051602001612c78919061434b565b60405160208183030381529060405291506018604051602001612c9b9190614390565b6040516020818303038152906040529050612d0c565b6020612cbc866129b5565b604051602001612ccd9291906143c9565b60405160208183030381529060405291506020612ce9866129b5565b604051602001612cfa929190614417565b60405160208183030381529060405290505b6000612d2e612d1a876129b5565b838560405160200161297493929190614465565b9050600081604051602001612d439190614306565b60408051808303601f19018152919052979650505050505050565b6000806000612d6d8585613434565b91509150612a578161347a565b6001811115612df15760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e736563757469766520747260448201527f616e7366657273206e6f7420737570706f7274656400000000000000000000006064820152608401610b63565b816001600160a01b038516612e4d57612e4881600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612e70565b836001600160a01b0316856001600160a01b031614612e7057612e7085826135e3565b6001600160a01b038416612e8c57612e8781613680565b612eaf565b846001600160a01b0316846001600160a01b031614612eaf57612eaf848261372f565b5050505050565b612ec08383613773565b612ecd6000848484613296565b610cd75760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610b63565b6060815160001415612f5f57505060408051602081019091526000815290565b60006040518060600160405280604081526020016146b16040913990506000600384516002612f8e9190613e8a565b612f989190613e51565b612fa3906004613ea2565b90506000612fb2826020613e8a565b67ffffffffffffffff811115612fca57612fca613b5e565b6040519080825280601f01601f191660200182016040528015612ff4576020820181803683370190505b509050818152600183018586518101602084015b81831015613060576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f8116850151825350600101613008565b60038951066001811461307a57600281146130c4576130ec565b7f3d3d0000000000000000000000000000000000000000000000000000000000007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe8301526130ec565b7f3d000000000000000000000000000000000000000000000000000000000000006000198301525b509398975050505050505050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613143577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef8100000000831061316f576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061318d57662386f26fc10000830492506010015b6305f5e10083106131a5576305f5e100830492506008015b61271083106131b957612710830492506004015b606483106131cb576064830492506002015b600a8310610a835760010192915050565b60008080836226496581018262023ab1600483020590506004600362023ab18302010590910390600062164b09610fa0600185010205905060046105b58202058303601f019250600061098f846050028161323957613239613e25565b0590506000605061098f83020585039050600b82057fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcf94909401606402929092018301996002600c90940290910392909201975095509350505050565b60006001600160a01b0384163b15613429576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a02906132f3903390899088908890600401614635565b6020604051808303816000875af192505050801561332e575060408051601f3d908101601f1916820190925261332b91810190614667565b60015b6133de573d80801561335c576040519150601f19603f3d011682016040523d82523d6000602084013e613361565b606091505b5080516133d65760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610b63565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050611efb565b506001949350505050565b60008082516041141561346b5760208301516040840151606085015160001a61345f87828585613919565b94509450505050613473565b506000905060025b9250929050565b600081600481111561348e5761348e614684565b14156134975750565b60018160048111156134ab576134ab614684565b14156134f95760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610b63565b600281600481111561350d5761350d614684565b141561355b5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610b63565b600381600481111561356f5761356f614684565b14156112de5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610b63565b600060016135f0846118d9565b6135fa9190613e73565b60008381526007602052604090205490915080821461364d576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061369290600190613e73565b600083815260096020526040812054600880549394509092849081106136ba576136ba61411b565b9060005260206000200154905080600883815481106136db576136db61411b565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806137135761371361469a565b6001900381819060005260206000200160009055905550505050565b600061373a836118d9565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166137c95760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b63565b6000818152600260205260409020546001600160a01b03161561382e5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b63565b61383c600083836001612d7a565b6000818152600260205260409020546001600160a01b0316156138a15760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b63565b6001600160a01b0382166000818152600360209081526040808320805460010190558483526002909152808220805473ffffffffffffffffffffffffffffffffffffffff19168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561395057506000905060036139d4565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156139a4573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166139cd576000600192509250506139d4565b9150600090505b94509492505050565b8280546139e990613df0565b90600052602060002090601f016020900481019282613a0b5760008555613a51565b82601f10613a2457805160ff1916838001178555613a51565b82800160010185558215613a51579182015b82811115613a51578251825591602001919060010190613a36565b50613a5d929150613a61565b5090565b5b80821115613a5d5760008155600101613a62565b80356001600160a01b038116811461158657600080fd5b600060208284031215613a9f57600080fd5b61142b82613a76565b7fffffffff00000000000000000000000000000000000000000000000000000000811681146112de57600080fd5b600060208284031215613ae857600080fd5b813561142b81613aa8565b60005b83811015613b0e578181015183820152602001613af6565b83811115611cc95750506000910152565b60008151808452613b37816020860160208601613af3565b601f01601f19169290920160200192915050565b60208152600061142b6020830184613b1f565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115613b8f57613b8f613b5e565b604051601f8501601f19908116603f01168101908282118183101715613bb757613bb7613b5e565b81604052809350858152868686011115613bd057600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215613bfc57600080fd5b813567ffffffffffffffff811115613c1357600080fd5b8201601f81018413613c2457600080fd5b611efb84823560208401613b74565b600060208284031215613c4557600080fd5b5035919050565b60008060408385031215613c5f57600080fd5b613c6883613a76565b946020939093013593505050565b600080600060608486031215613c8b57600080fd5b613c9484613a76565b9250613ca260208501613a76565b9150604084013590509250925092565b60008060408385031215613cc557600080fd5b613cce83613a76565b915060208301358015158114613ce357600080fd5b809150509250929050565b600082601f830112613cff57600080fd5b61142b83833560208501613b74565b60008060008060808587031215613d2457600080fd5b613d2d85613a76565b9350613d3b60208601613a76565b925060408501359150606085013567ffffffffffffffff811115613d5e57600080fd5b613d6a87828801613cee565b91505092959194509250565b60008060408385031215613d8957600080fd5b82359150602083013567ffffffffffffffff811115613da757600080fd5b613db385828601613cee565b9150509250929050565b60008060408385031215613dd057600080fd5b613dd983613a76565b9150613de760208401613a76565b90509250929050565b600181811c90821680613e0457607f821691505b60208210811415611f0357634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082613e6e57634e487b7160e01b600052601260045260246000fd5b500490565b600082821015613e8557613e85613e3b565b500390565b60008219821115613e9d57613e9d613e3b565b500190565b6000816000190483118215151615613ebc57613ebc613e3b565b500290565b6000600019821415613ed557613ed5613e3b565b5060010190565b60008351613eee818460208801613af3565b7f2d000000000000000000000000000000000000000000000000000000000000009083019081528351613f28816001840160208801613af3565b01600101949350505050565b8054600090600181811c9080831680613f4e57607f831692505b6020808410821415613f7057634e487b7160e01b600052602260045260246000fd5b818015613f845760018114613f9557613fc2565b60ff19861689528489019650613fc2565b60008881526020902060005b86811015613fba5781548b820152908501908301613fa1565b505084890196505b50505050505092915050565b6000613fec613fe6613fe0848d613f34565b8b613f34565b89613f34565b8751613ffc818360208c01613af3565b7f223b20636f6e7374206461746155524c203d2022000000000000000000000000910190815261402f6014820188613f34565b90507f22000000000000000000000000000000000000000000000000000000000000008082527f3b20636f6e737420746f6b656e4964203d2022000000000000000000000000006001830152865161408e816014850160208b01613af3565b601492019182018190527f3b20636f6e7374206f726465723d220000000000000000000000000000000000601583015285516140d1816024850160208a01613af3565b60249201918201526140e66025820185613f34565b7f3c2f626f64793e3c2f68746d6c3e0000000000000000000000000000000000008152600e019b9a5050505050505050505050565b634e487b7160e01b600052603260045260246000fd5b7f7b226e616d65223a20225065726665637420496d69746174696f6e202300000081526000845161416981601d850160208901613af3565b614288614282601d838601017f222c20226465736372697074696f6e223a20224a7573742072756e207468652081527f616c676f726974686d20616e64206f627365727665207468652064656570207060208201527f726f63657373206f66206372656174696e672061206e6577207061696e74696e60408201527f6720696e20736576656e20646179732e2041646d697265207468652066696e6960608201527f7368656420776f726b20696e646566696e6974656c792c206f7220657261736560808201527f20697420616e642063726561746520736f6d657468696e67206e65772e222c2060a08201527f22696d616765223a20220000000000000000000000000000000000000000000060c082015260ca0190565b86613f34565b90507f222c2022616e696d6174696f6e5f75726c223a2022000000000000000000000081526142ba6015820185613f34565b7f227d00000000000000000000000000000000000000000000000000000000000081526002019695505050505050565b600082516142fc818460208701613af3565b9190910192915050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161433e81601d850160208701613af3565b91909101601d0192915050565b7f646174613a746578742f68746d6c3b6261736536342c00000000000000000000815260008251614383816016850160208701613af3565b9190910160160192915050565b600061439c8284613f34565b7f7468696d622e6a7067000000000000000000000000000000000000000000000081526009019392505050565b60006143d58285613f34565b7f3f6e66743d0000000000000000000000000000000000000000000000000000008152835161440b816005840160208801613af3565b01600501949350505050565b60006144238285613f34565b7f3f69643d0000000000000000000000000000000000000000000000000000000081528351614459816004840160208801613af3565b01600401949350505050565b7f7b226e616d65223a20225065726665637420496d69746174696f6e202300000081526000845161449d81601d850160208901613af3565b6145b3601d828501017f222c20226465736372697074696f6e223a20224a7573742072756e207468652081527f616c676f726974686d20616e64206f627365727665207468652064656570207060208201527f726f63657373206f66206372656174696e672061206e6577207061696e74696e60408201527f6720696e20736576656e20646179732e2041646d697265207468652066696e6960608201527f7368656420776f726b20696e646566696e6974656c792c206f7220657261736560808201527f20697420616e642063726561746520736f6d657468696e67206e65772e222c2060a08201527f22696d616765223a20220000000000000000000000000000000000000000000060c082015260ca0190565b905084516145c5818360208901613af3565b7f222c2022616e696d6174696f6e5f75726c223a20220000000000000000000000910190815283516145fe816015840160208801613af3565b7f227d0000000000000000000000000000000000000000000000000000000000006015929091019182015260170195945050505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152611eb06080830184613b1f565b60006020828403121561467957600080fd5b815161142b81613aa8565b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603160045260246000fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212208854ef588e2e040e6b974466f2216a71d5250665dfb2fdee898dbb5ea06cae0764736f6c634300080c0033
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.