Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
25 CALC
Holders
16
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 CALCLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
Calculator
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// _____ _ _ _ // | __ \ | | | | | | // | / \/ __ _| | ___ _ _| | __ _| |_ ___ _ __ // | | / _` | |/ __| | | | |/ _` | __/ _ \| '__| // | \__/| (_| | | (__| |_| | | (_| | || (_) | | _ // \____/\__,_|_|\___|\__,_|_|\__,_|\__\___/|_| |_| // // Fully working, completely on chain calculators. // // █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█ // █░█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█░█ // █░█░░░░░░░░░░░░░░░░░░░█░█ // █░█▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█░█ // █░▄▄▄▄░▄▄▄▄░▄▄▄▄░▄▄▄▄▄▄░█ // █░█░░█░█░░█░█░░█░█░░░░█░█ // █░▀▀▀▀░▀▀▀▀░▀▀▀▀░▀▀▀▀▀▀░█ // █░█▀▀█░█▀▀█░█▀▀█░█▀▀▀▀█░█ // █░█▄▄█░█▄▄█░█▄▄█░█▄▄▄▄█░█ // █░▄▄▄▄░▄▄▄▄░▄▄▄▄░▄▄▄▄▄▄░█ // █░█░░█░█░░█░█░░█░█░░░░█░█ // █░▀▀▀▀░▀▀▀▀░▀▀▀▀░▀▀▀▀▀▀░█ // █░█▀▀█░█▀▀█░█▀▀█░█▀▀▀▀█░█ // █░█▄▄█░█▄▄█░█▄▄█░█▄▄▄▄█░█ // █░▄▄▄▄░▄▄▄▄░▄▄▄▄▄▄▄▄▄▄▄░█ // █░█░░█░█░░█░█░░░░░░░░░█░█ // █░▀▀▀▀░▀▀▀▀░▀▀▀▀▀▀▀▀▀▀▀░█ // ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ // // SPDX-License-Identifier: MIT pragma solidity 0.8.7; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./CalcLib.sol"; contract Calculator is ERC721Enumerable, ERC2981, Ownable { uint public price; uint public maxSupply; uint96 public royaltyPercentage = 400; // 4% in basis points string public officialFrontEnd; CalcLib.ColorScheme[] internal colorSchemes; mapping(uint => uint) internal idToSchemeIndex; event TokenMint(address purchaser); constructor() ERC721("Calculator", "CALC") { maxSupply = 10_000; price = 0.04 ether; _setDefaultRoyalty(address(this), royaltyPercentage); colorSchemes.push(CalcLib.ColorScheme( ["f07167", "ff8b6d"], ["0081a7", "00afb9"], ["f07167", "ff8b6d"], ["fdfcdc", "fbffdd"], "fed9b7", "7b323a", "d8e1e0", "1e1e1e", "fdfcdc", "303133" )); colorSchemes.push(CalcLib.ColorScheme( ["353226","817a5c"], ["2c2c2c","525252"], ["e98151","ffaf5c"], ["292929","373737"], "beb087", "7b323a", "d8e1e0", "d8e1e0", "88897b", "d8e1e0" )); colorSchemes.push(CalcLib.ColorScheme( ["22333b","4e7587"], ["0a0908","564d44"], ["22333b","4e7587"], ["5e503f","847058"], "c6ac8f", "c6ac8f", "eae0d5", "2b241c", "eae0d5", "eae0d5" )); colorSchemes.push(CalcLib.ColorScheme( ["9e2a2b","9e2a2b"], ["9e2a2b","9e2a2b"], ["9e2a2b","9e2a2b"], ["fff3b0","fff3b0"], "fff3b0", "7b323a", "f0f0c9", "3c241c", "f0f0c9", "3c241c" )); colorSchemes.push(CalcLib.ColorScheme( ["ffadad","ffadad"], ["fdffb6","fdffb6"], ["ffd6a5","ffd6a5"], ["caffbf","caffbf"], "9bf6ff", "f5cac3", "bdb2ff", "bdb2ff", "fffffc", "bdb2ff" )); } function setFrontEnd(string memory url) public onlyOwner { officialFrontEnd = url; } function mint(uint[] memory schemeIds) public payable { //takes an array of numbers from 0-4 require(schemeIds.length > 0); uint totalMints = schemeIds.length; require(msg.value == totalMints * price, "send correct amount"); require(totalMints <= 5, "too many mints :("); require(totalSupply() + totalMints <= maxSupply, "at limit"); for(uint i=0; i<totalMints; i++) { require(schemeIds[i] > 0 && schemeIds[i]<=5, "color doesn't exist"); uint256 newItemId = totalSupply() + 1; idToSchemeIndex[newItemId] = schemeIds[i] -1; _safeMint(msg.sender, newItemId); } emit TokenMint(msg.sender); } function withdrawFunds() public onlyOwner { uint amount = address(this).balance; Address.sendValue(payable(owner()), amount); } function tokenURI(uint id) public view override returns(string memory) { address owner = ownerOf(id); require(_exists(id), "not exist"); uint schemeIndex = idToSchemeIndex[id]; CalcLib.ColorScheme memory scheme = colorSchemes[schemeIndex]; return CalcLib.generateTokenURI(owner, id, schemeIndex + 1, scheme, officialFrontEnd); } function tokenIdsByOwner(address owner) public view returns(uint[] memory) { uint arrLength = balanceOf(owner); uint[] memory arr = new uint[](arrLength); for (uint i=0;i<arrLength; i++) { arr[i] = tokenOfOwnerByIndex(owner, i); } return arr; } // // REQUIRED OVERRIDES: function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override(ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); } function supportsInterface(bytes4 interfaceId) public view override(ERC721Enumerable, ERC2981) returns (bool) { return super.supportsInterface(interfaceId); } function _burn(uint256 tokenId) internal virtual override { super._burn(tokenId); _resetTokenRoyalty(tokenId); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.7; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/Base64.sol"; library CalcLib { struct ColorScheme { string[2] gradient1; string[2] gradient2; string[2] gradient3; string[2] gradient4; string buttonBackground; string borderStrip; string buttonText; string screenText; string screen; string ownerText; } string internal constant svgStart = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 550 760">'; string internal constant svgButtons = ' <g stroke="#303133" stroke-width="5" fill="url(#Gradient2)" > <rect onclick="handleNumber(1)" rx="7" x="50" y="530" width="80" height="80"/> <rect onclick="handleNumber(2)" rx="7" x="150" y="530" width="80" height="80"/> <rect onclick="handleNumber(3)" rx="7" x="250" y="530" width="80" height="80"/> <rect onclick="handleNumber(4)" rx="7" x="50" y="430" width="80" height="80"/> <rect onclick="handleNumber(5)" rx="7" x="150" y="430" width="80" height="80"/> <rect onclick="handleNumber(6)" rx="7" x="250" y="430" width="80" height="80"/> <rect onclick="handleNumber(7)" rx="7" x="50" y="330" width="80" height="80"/> <rect onclick="handleNumber(8)" rx="7" x="150" y="330" width="80" height="80"/> <rect onclick="handleNumber(9)" rx="7" x="250" y="330" width="80" height="80"/> <rect onclick="handleNumber(0)" rx="7" x="50" y="630" width="80" height="80"/> <rect onclick="handleNumber(symbols.dec)" rx="7" x="150" y="630" width="80" height="80"/> //. <rect onclick="handleOp(add, symbols.add)" rx="7" x="350" y="530" width="150" height="80"/> //+ <rect onclick="handleOp(sub, symbols.sub)" rx="7" x="350" y="430" width="150" height="80"/> //- <rect onclick="handleOp(mul, symbols.mul)" rx="7" x="350" y="330" width="150" height="80"/> //x <rect onclick="handleOp(div, symbols.div)" rx="7" x="350" y="230" width="150" height="80"/> // / <rect onclick="handleOp(mod, symbols.mod)" rx="7" x="150" y="230" width="80" height="80"/> <rect onclick="handleOp(pow, symbols.pow)" rx="7" x="250" y="230" width="80" height="80"/> <rect onclick="clearScreen()" fill="url(#Gradient3)" rx="7" x="50" y="230" width="80" height="80"/> <rect onclick="equals()" fill="url(#Gradient1)" rx="7" x="250" y="630" width="250" height="80"/> </g >'; string internal constant svgButtonText = '<g class="button"> <text onclick="equals()" stroke="none" x="360" y="685">=</text> <text onclick="clearScreen()" x="71" y="285">C</text> <text onclick="handleNumber(1)" x="75" y="585">1</text> <text onclick="handleNumber(2)" x="175" y="585">2</text> <text onclick="handleNumber(3)" x="275" y="585">3</text> <text onclick="handleNumber(4)" x="75" y="485">4</text> <text onclick="handleNumber(5)" x="175" y="485">5</text> <text onclick="handleNumber(6)" x="275" y="485">6</text> <text onclick="handleNumber(7)" x="75" y="385">7</text> <text onclick="handleNumber(8)" x="175" y="385">8</text> <text onclick="handleNumber(9)" x="275" y="385">9</text> <text onclick="handleNumber(0)" x="75" y="685">0</text> <text onclick="handleNumber(symbols.dec)" x="183" y="674">.</text> <text onclick="handleOp(add, symbols.add)" x="408" y="585">+</text> <text onclick="handleOp(sub, symbols.sub)" x="415" y="481">-</text> <text onclick="handleOp(mul, symbols.mul)" x="410" y="380">x</text> <text onclick="handleOp(div, symbols.div)" x="410" y="286">/</text> <text onclick="handleOp(mod, symbols.mod)" x="165" y="285">%</text> <text onclick="handleOp(pow, symbols.pow)" x="275" y="293">^</text> </g>'; string internal constant svgEnd = '<script type="text/javascript"><![CDATA[ var symbols={mul:"x",div:"/",mod:"%",sub:"-",add:"+",dec:".",pow:"^"},screenLarge=document.getElementById("screenLarge"),screenTop=document.getElementById("screenTop"),screenTiny=document.getElementById("screenTiny");function add(e,t){var n=e+t;return sizeResult(n),n}function sub(e,t){var n=e-t;return sizeResult(n),n}function mul(e,t){var n=e*t;return sizeResult(n),n}function div(e,t){var n=e/t;return sizeResult(n),n}function mod(e,t){var n=e%t;return sizeResult(n),n}function pow(e,t){var n=e**t;return sizeResult(n),n}function equals(){if(0==Number(secondNum)&&operationSym==symbols.div)return screenLarge.textContent="error",void(readyToClear=!0);firstNum.length+secondNum.length<19?screenTop.textContent=firstNum+" "+operationSym+" "+secondNum+" =":firstNum.length<19?(secondNum=secondNum.slice(0,19-firstNum.length),screenTop.textContent=firstNum+" "+operationSym+" "+secondNum+"... ="):screenTop.textContent=firstNum.slice(0,20)+"... =",firstNum=operation(Number(firstNum),Number(secondNum)).toString(),readyToClear=!0}function sizeResult(e){if(e.toString().length<13)screenLarge.setAttribute("class","large"),screenLarge.textContent=e.toString();else{if(!(e.toString().length<24))return screenLarge.textContent=e.toString().slice(0,24)+"...",void(screenTiny.textContent="too large");screenLarge.setAttribute("class","small"),screenLarge.textContent=e.toString()}}function clearScreen(){screenLarge.textContent="",screenTop.textContent="",numCounter=1,firstNum="",secondNum="",operation=null,operationSym="",screenTiny.textContent="",readyToClear=!1}function handleNumber(e){if(readyToClear&&clearScreen(),1==numCounter)if(firstNum.length<13)screenLarge.setAttribute("class","large"),screenLarge.textContent=firstNum+e.toString(),firstNum+=e.toString();else{if(!(firstNum.length<24))return void(screenTiny.textContent="too large");screenLarge.setAttribute("class","small"),screenLarge.textContent=firstNum+e.toString(),firstNum+=e.toString()}else if(secondNum.length<13)screenLarge.setAttribute("class","large"),screenLarge.textContent=secondNum+e.toString(),secondNum+=e.toString();else{if(!(secondNum.length<24))return void(screenTiny.textContent="too large");screenLarge.setAttribute("class","small"),screenLarge.textContent=secondNum+e.toString(),secondNum+=e.toString()}}function handleOp(e,t){secondNum="",screenLarge.textContent="",operationSym=t.toString(),firstNum.length<19?screenTop.textContent=firstNum+" "+operationSym:screenTop.textContent=firstNum.slice(0,20)+"... =",operation=e,numCounter=2}numCounter=1,firstNum="",secondNum="",operation=null,operationSym="",readyToClear=!1; ]]></script> </svg>'; function generateTokenURI(address owner, uint id, uint schemeIndex, ColorScheme memory scheme, string memory frontEnd) public pure returns(string memory) { string memory imageUrl = base64ImageUrl(owner, id, scheme); return string( abi.encodePacked( 'data:application/json;base64,', Base64.encode( bytes( abi.encodePacked( '{"name":"', "Calculator #", Strings.toString(id), '", "description":', '"A Fully working, completely on chain calculator. To use, simply copy the image url and paste it in a web browser. Or, visit our [Official Website](', frontEnd, ")", '", "external_url":"', frontEnd, '", "attributes": [{"trait_type": "Color Scheme", "value":"', Strings.toString(schemeIndex), '"}], "owner":"', Strings.toHexString(uint160(owner), 20), '", "image": "', imageUrl, '"}' ) ) ) ) ); } function base64ImageUrl(address owner, uint id, ColorScheme memory scheme) public pure returns (string memory) { string memory ownerId = OwnerandIdText(owner, id, scheme.ownerText); string memory gradients = getGradients(scheme); string memory background = getBackground(scheme); string memory screenText = getScreenText(scheme); string memory styles = getStyle(scheme); string memory svgBase64 = Base64.encode(abi.encodePacked(svgStart, styles, gradients, background, svgButtons, screenText, svgButtonText, ownerId, svgEnd)); return string(abi.encodePacked("data:image/svg+xml;base64,",svgBase64)); } function OwnerandIdText(address owner, uint id, string memory color) public pure returns (string memory){ string memory _owner = Strings.toHexString(uint160(owner), 20); string memory _id = Strings.toString(id); return string(abi.encodePacked('<text fill="#', color, '" x="190" y="743" class="metadata">', "Owner: ", _owner, '</text> <text fill="#d8e1e0" x="30" y="743" class="metadata">', _id, "/10000", "</text>")); } function getGradients(ColorScheme memory scheme) public pure returns (string memory) { string memory first = '<linearGradient id="'; string memory second = '" x1="1" x2="0" y1="0" y2="0"> <stop offset="0%" stop-color="#'; string memory third = '"/> <stop offset="100%" stop-color="#'; string memory fourth = '" /> </linearGradient>'; string memory grad1 = string(abi.encodePacked( first, "Gradient1", second, scheme.gradient1[0], third, scheme.gradient1[1], fourth )); string memory grad2 = string(abi.encodePacked( first, "Gradient2", second, scheme.gradient2[0], third, scheme.gradient2[1], fourth )); string memory grad3 = string(abi.encodePacked( first, "Gradient3", second, scheme.gradient3[0], third, scheme.gradient3[1], fourth )); string memory grad4 = string(abi.encodePacked( first, "Gradient4", second, scheme.gradient4[0], third, scheme.gradient4[1], fourth )); return string(abi.encodePacked(grad1, grad2, grad3, grad4)); } function getBackground(ColorScheme memory scheme) public pure returns (string memory) { string memory first = '<g stroke="#'; string memory second = '" stroke-width="3" > <rect id="border" fill="url(#Gradient4)" rx="7" x="0" y="0" width="550" height="760"/> <rect class="buttonBackground" rx="7" x="30" y="30" width="490" height="700"/> <rect id="screenBorder" rx="7" fill="url(#Gradient2)" x="45" y="50" width="460" height="150"/> <rect class="screen" rx="7" x="65" y="70" width="420" height="110"/> <rect rx="7" stroke-width="5" fill="none" x="10" y="10" width="530" height="740"/> </g>'; return string(abi.encodePacked( first, scheme.borderStrip, second )); } function getScreenText(ColorScheme memory scheme) public pure returns(string memory) { string memory first = '<g fill= "#'; string memory second = '"> <text id="screenLarge" x="70" y="160"></text> <text id="screenTop" x="70" y="105" class="light"></text> <text id="screenTiny" x="430" y="170" class="tiny"></text> </g >'; return string(abi.encodePacked(first, scheme.screenText, second)); } function getStyle(ColorScheme memory scheme) public pure returns(string memory ) { return string(abi.encodePacked( '<style> .light { font: italic 30px sans-serif; } .tiny { font: 8px sans-serif; } .large { font: bold 50px sans-serif; } .small { font: bold 30px sans-serif; } .button { font: bold 50px sans-serif; fill: #', scheme.buttonText, '} .metadata{ font: bold 12px sans-serif; fill: #', scheme.ownerText, ' } .buttonBackground{fill: #', scheme.buttonBackground, '} .screen{fill: #', scheme.screen, '} .borderStrip{stroke: #', scheme.borderStrip, '} </style>' )); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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.5.0) (utils/Base64.sol) pragma solidity ^0.8.0; /** * @dev Provides a set of functions to operate with Base64 strings. * * _Available since v4.5._ */ library Base64 { /** * @dev Base64 Encoding/Decoding Table */ string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /** * @dev Converts a `bytes` to its Bytes64 `string` representation. */ function encode(bytes memory data) internal pure returns (string memory) { /** * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol */ if (data.length == 0) return ""; // Loads the table into memory string memory table = _TABLE; // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter // and split into 4 numbers of 6 bits. // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up // - `data.length + 2` -> Round up // - `/ 3` -> Number of 3-bytes chunks // - `4 *` -> 4 characters for each chunk string memory result = new string(4 * ((data.length + 2) / 3)); assembly { // Prepare the lookup table (skip the first "length" byte) let tablePtr := add(table, 1) // Prepare result pointer, jump over length let resultPtr := add(result, 32) // Run over the input, 3 bytes at a time for { let dataPtr := data let endPtr := add(data, mload(data)) } lt(dataPtr, endPtr) { } { // Advance 3 bytes dataPtr := add(dataPtr, 3) let input := mload(dataPtr) // To write each character, shift the 3 bytes (18 bits) chunk // 4 times in blocks of 6 bits for each character (18, 12, 6, 0) // and apply logical AND with 0x3F which is the number of // the previous character in the ASCII table prior to the Base64 Table // The result is then added to the table to get the character to write, // and finally write it in the result pointer but with a left shift // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F)))) resultPtr := add(resultPtr, 1) // Advance } // When data `bytes` is not exactly 3 bytes long // it is padded with `=` characters at the end switch mod(mload(data), 3) case 1 { mstore8(sub(resultPtr, 1), 0x3d) mstore8(sub(resultPtr, 2), 0x3d) } case 2 { mstore8(sub(resultPtr, 1), 0x3d) } } return result; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `tokenId` must be already minted. * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be payed in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
{ "remappings": [], "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "london", "libraries": { "/contracts/CalcLib.sol": { "CalcLib": "0x404AbecB31D88201Eca16A7D58F6aB66155213eB" } }, "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":false,"internalType":"address","name":"purchaser","type":"address"}],"name":"TokenMint","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":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"schemeIds","type":"uint256[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"officialFrontEnd","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyPercentage","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"url","type":"string"}],"name":"setFrontEnd","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokenIdsByOwner","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":"id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawFunds","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052610190600f60006101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055503480156200004457600080fd5b506040518060400160405280600a81526020017f43616c63756c61746f72000000000000000000000000000000000000000000008152506040518060400160405280600481526020017f43414c43000000000000000000000000000000000000000000000000000000008152508160009080519060200190620000c992919062001bcb565b508060019080519060200190620000e292919062001bcb565b50505062000105620000f96200194f60201b60201c565b6200195760201b60201c565b612710600e81905550668e1bc9bf040000600d819055506200014830600f60009054906101000a90046bffffffffffffffffffffffff1662001a1d60201b60201c565b601160405180610140016040528060405180604001604052806040518060400160405280600681526020017f663037313637000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f6666386236640000000000000000000000000000000000000000000000000000815250815250815260200160405180604001604052806040518060400160405280600681526020017f303038316137000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f3030616662390000000000000000000000000000000000000000000000000000815250815250815260200160405180604001604052806040518060400160405280600681526020017f663037313637000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f6666386236640000000000000000000000000000000000000000000000000000815250815250815260200160405180604001604052806040518060400160405280600681526020017f666466636463000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f666266666464000000000000000000000000000000000000000000000000000081525081525081526020016040518060400160405280600681526020017f666564396237000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f376233323361000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f643865316530000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f316531653165000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f666466636463000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f333033313333000000000000000000000000000000000000000000000000000081525081525090806001815401808255809150506001900390600052602060002090600e02016000909190919091506000820151816000019060026200050892919062001c5c565b506020820151816002019060026200052292919062001c5c565b506040820151816004019060026200053c92919062001c5c565b506060820151816006019060026200055692919062001c5c565b5060808201518160080190805190602001906200057592919062001bcb565b5060a08201518160090190805190602001906200059492919062001bcb565b5060c082015181600a019080519060200190620005b392919062001bcb565b5060e082015181600b019080519060200190620005d292919062001bcb565b5061010082015181600c019080519060200190620005f292919062001bcb565b5061012082015181600d0190805190602001906200061292919062001bcb565b505050601160405180610140016040528060405180604001604052806040518060400160405280600681526020017f333533323236000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f3831376135630000000000000000000000000000000000000000000000000000815250815250815260200160405180604001604052806040518060400160405280600681526020017f326332633263000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f3532353235320000000000000000000000000000000000000000000000000000815250815250815260200160405180604001604052806040518060400160405280600681526020017f653938313531000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f6666616635630000000000000000000000000000000000000000000000000000815250815250815260200160405180604001604052806040518060400160405280600681526020017f323932393239000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f333733373337000000000000000000000000000000000000000000000000000081525081525081526020016040518060400160405280600681526020017f626562303837000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f376233323361000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f643865316530000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f643865316530000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f383838393762000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f643865316530000000000000000000000000000000000000000000000000000081525081525090806001815401808255809150506001900390600052602060002090600e0201600090919091909150600082015181600001906002620009d592919062001c5c565b50602082015181600201906002620009ef92919062001c5c565b5060408201518160040190600262000a0992919062001c5c565b5060608201518160060190600262000a2392919062001c5c565b50608082015181600801908051906020019062000a4292919062001bcb565b5060a082015181600901908051906020019062000a6192919062001bcb565b5060c082015181600a01908051906020019062000a8092919062001bcb565b5060e082015181600b01908051906020019062000a9f92919062001bcb565b5061010082015181600c01908051906020019062000abf92919062001bcb565b5061012082015181600d01908051906020019062000adf92919062001bcb565b505050601160405180610140016040528060405180604001604052806040518060400160405280600681526020017f323233333362000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f3465373538370000000000000000000000000000000000000000000000000000815250815250815260200160405180604001604052806040518060400160405280600681526020017f306130393038000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f3536346434340000000000000000000000000000000000000000000000000000815250815250815260200160405180604001604052806040518060400160405280600681526020017f323233333362000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f3465373538370000000000000000000000000000000000000000000000000000815250815250815260200160405180604001604052806040518060400160405280600681526020017f356535303366000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f383437303538000000000000000000000000000000000000000000000000000081525081525081526020016040518060400160405280600681526020017f633661633866000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f633661633866000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f656165306435000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f326232343163000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f656165306435000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f656165306435000000000000000000000000000000000000000000000000000081525081525090806001815401808255809150506001900390600052602060002090600e020160009091909190915060008201518160000190600262000ea292919062001c5c565b5060208201518160020190600262000ebc92919062001c5c565b5060408201518160040190600262000ed692919062001c5c565b5060608201518160060190600262000ef092919062001c5c565b50608082015181600801908051906020019062000f0f92919062001bcb565b5060a082015181600901908051906020019062000f2e92919062001bcb565b5060c082015181600a01908051906020019062000f4d92919062001bcb565b5060e082015181600b01908051906020019062000f6c92919062001bcb565b5061010082015181600c01908051906020019062000f8c92919062001bcb565b5061012082015181600d01908051906020019062000fac92919062001bcb565b505050601160405180610140016040528060405180604001604052806040518060400160405280600681526020017f396532613262000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f3965326132620000000000000000000000000000000000000000000000000000815250815250815260200160405180604001604052806040518060400160405280600681526020017f396532613262000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f3965326132620000000000000000000000000000000000000000000000000000815250815250815260200160405180604001604052806040518060400160405280600681526020017f396532613262000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f3965326132620000000000000000000000000000000000000000000000000000815250815250815260200160405180604001604052806040518060400160405280600681526020017f666666336230000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f666666336230000000000000000000000000000000000000000000000000000081525081525081526020016040518060400160405280600681526020017f666666336230000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f376233323361000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f663066306339000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f336332343163000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f663066306339000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f336332343163000000000000000000000000000000000000000000000000000081525081525090806001815401808255809150506001900390600052602060002090600e02016000909190919091506000820151816000019060026200136f92919062001c5c565b506020820151816002019060026200138992919062001c5c565b50604082015181600401906002620013a392919062001c5c565b50606082015181600601906002620013bd92919062001c5c565b506080820151816008019080519060200190620013dc92919062001bcb565b5060a0820151816009019080519060200190620013fb92919062001bcb565b5060c082015181600a0190805190602001906200141a92919062001bcb565b5060e082015181600b0190805190602001906200143992919062001bcb565b5061010082015181600c0190805190602001906200145992919062001bcb565b5061012082015181600d0190805190602001906200147992919062001bcb565b505050601160405180610140016040528060405180604001604052806040518060400160405280600681526020017f666661646164000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f6666616461640000000000000000000000000000000000000000000000000000815250815250815260200160405180604001604052806040518060400160405280600681526020017f666466666236000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f6664666662360000000000000000000000000000000000000000000000000000815250815250815260200160405180604001604052806040518060400160405280600681526020017f666664366135000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f6666643661350000000000000000000000000000000000000000000000000000815250815250815260200160405180604001604052806040518060400160405280600681526020017f636166666266000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f636166666266000000000000000000000000000000000000000000000000000081525081525081526020016040518060400160405280600681526020017f396266366666000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f663563616333000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f626462326666000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f626462326666000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f666666666663000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f626462326666000000000000000000000000000000000000000000000000000081525081525090806001815401808255809150506001900390600052602060002090600e02016000909190919091506000820151816000019060026200183c92919062001c5c565b506020820151816002019060026200185692919062001c5c565b506040820151816004019060026200187092919062001c5c565b506060820151816006019060026200188a92919062001c5c565b506080820151816008019080519060200190620018a992919062001bcb565b5060a0820151816009019080519060200190620018c892919062001bcb565b5060c082015181600a019080519060200190620018e792919062001bcb565b5060e082015181600b0190805190602001906200190692919062001bcb565b5061010082015181600c0190805190602001906200192692919062001bcb565b5061012082015181600d0190805190602001906200194692919062001bcb565b50505062001ec3565b600033905090565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b62001a2d62001bc160201b60201c565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff16111562001a8e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162001a859062001d91565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141562001b01576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162001af89062001db3565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600a60008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6000612710905090565b82805462001bd99062001de6565b90600052602060002090601f01602090048101928262001bfd576000855562001c49565b82601f1062001c1857805160ff191683800117855562001c49565b8280016001018555821562001c49579182015b8281111562001c4857825182559160200191906001019062001c2b565b5b50905062001c58919062001cb6565b5090565b826002810192821562001ca3579160200282015b8281111562001ca257825182908051906020019062001c9192919062001bcb565b509160200191906001019062001c70565b5b50905062001cb2919062001cd5565b5090565b5b8082111562001cd157600081600090555060010162001cb7565b5090565b5b8082111562001cf9576000818162001cef919062001cfd565b5060010162001cd6565b5090565b50805462001d0b9062001de6565b6000825580601f1062001d1f575062001d40565b601f01602090049060005260206000209081019062001d3f919062001cb6565b5b50565b600062001d52602a8362001dd5565b915062001d5f8262001e4b565b604082019050919050565b600062001d7960198362001dd5565b915062001d868262001e9a565b602082019050919050565b6000602082019050818103600083015262001dac8162001d43565b9050919050565b6000602082019050818103600083015262001dce8162001d6a565b9050919050565b600082825260208201905092915050565b6000600282049050600182168062001dff57607f821691505b6020821081141562001e165762001e1562001e1c565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b614e7b8062001ed36000396000f3fe6080604052600436106101b75760003560e01c806370a08231116100ec578063a22cb4651161008a578063d5abeb0111610064578063d5abeb0114610633578063e985e9c51461065e578063f2fde38b1461069b578063f8e93ef9146106c4576101b7565b8063a22cb465146105a4578063b88d4fde146105cd578063c87b56dd146105f6576101b7565b80638da5cb5b116100c65780638da5cb5b146104e65780638f85fa941461051157806395d89b411461054e578063a035b1fe14610579576101b7565b806370a0823114610467578063715018a6146104a45780638a71bb2d146104bb576101b7565b80632a55205a1161015957806342842e0e1161013357806342842e0e1461039b5780634f6ccce7146103c45780635593152c146104015780636352211e1461042a576101b7565b80632a55205a146102f55780632f745c59146103335780633f88b59214610370576101b7565b8063095ea7b311610195578063095ea7b31461026157806318160ddd1461028a57806323b872dd146102b557806324600fc3146102de576101b7565b806301ffc9a7146101bc57806306fdde03146101f9578063081812fc14610224575b600080fd5b3480156101c857600080fd5b506101e360048036038101906101de9190613589565b6106e0565b6040516101f09190613f21565b60405180910390f35b34801561020557600080fd5b5061020e6106f2565b60405161021b9190613f3c565b60405180910390f35b34801561023057600080fd5b5061024b60048036038101906102469190613675565b610784565b6040516102589190613e0e565b60405180910390f35b34801561026d57600080fd5b5061028860048036038101906102839190613500565b610809565b005b34801561029657600080fd5b5061029f610921565b6040516102ac919061425e565b60405180910390f35b3480156102c157600080fd5b506102dc60048036038101906102d791906133ea565b61092e565b005b3480156102ea57600080fd5b506102f361098e565b005b34801561030157600080fd5b5061031c600480360381019061031791906136a2565b610a23565b60405161032a929190613e75565b60405180910390f35b34801561033f57600080fd5b5061035a60048036038101906103559190613500565b610c0e565b604051610367919061425e565b60405180910390f35b34801561037c57600080fd5b50610385610cb3565b6040516103929190613f3c565b60405180910390f35b3480156103a757600080fd5b506103c260048036038101906103bd91906133ea565b610d41565b005b3480156103d057600080fd5b506103eb60048036038101906103e69190613675565b610d61565b6040516103f8919061425e565b60405180910390f35b34801561040d57600080fd5b50610428600480360381019061042391906135e3565b610dd2565b005b34801561043657600080fd5b50610451600480360381019061044c9190613675565b610e68565b60405161045e9190613e0e565b60405180910390f35b34801561047357600080fd5b5061048e6004803603810190610489919061337d565b610f1a565b60405161049b919061425e565b60405180910390f35b3480156104b057600080fd5b506104b9610fd2565b005b3480156104c757600080fd5b506104d061105a565b6040516104dd9190614279565b60405180910390f35b3480156104f257600080fd5b506104fb611078565b6040516105089190613e0e565b60405180910390f35b34801561051d57600080fd5b506105386004803603810190610533919061337d565b6110a2565b6040516105459190613eff565b60405180910390f35b34801561055a57600080fd5b50610563611150565b6040516105709190613f3c565b60405180910390f35b34801561058557600080fd5b5061058e6111e2565b60405161059b919061425e565b60405180910390f35b3480156105b057600080fd5b506105cb60048036038101906105c691906134c0565b6111e8565b005b3480156105d957600080fd5b506105f460048036038101906105ef919061343d565b6111fe565b005b34801561060257600080fd5b5061061d60048036038101906106189190613675565b611260565b60405161062a9190613f3c565b60405180910390f35b34801561063f57600080fd5b50610648611a34565b604051610655919061425e565b60405180910390f35b34801561066a57600080fd5b50610685600480360381019061068091906133aa565b611a3a565b6040516106929190613f21565b60405180910390f35b3480156106a757600080fd5b506106c260048036038101906106bd919061337d565b611ace565b005b6106de60048036038101906106d99190613540565b611bc6565b005b60006106eb82611e03565b9050919050565b6060600080546107019061460a565b80601f016020809104026020016040519081016040528092919081815260200182805461072d9061460a565b801561077a5780601f1061074f5761010080835404028352916020019161077a565b820191906000526020600020905b81548152906001019060200180831161075d57829003601f168201915b5050505050905090565b600061078f82611e7d565b6107ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107c5906141be565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061081482610e68565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610885576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161087c906141fe565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166108a4611ee9565b73ffffffffffffffffffffffffffffffffffffffff1614806108d357506108d2816108cd611ee9565b611a3a565b5b610912576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610909906140fe565b60405180910390fd5b61091c8383611ef1565b505050565b6000600880549050905090565b61093f610939611ee9565b82611faa565b61097e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109759061421e565b60405180910390fd5b610989838383612088565b505050565b610996611ee9565b73ffffffffffffffffffffffffffffffffffffffff166109b4611078565b73ffffffffffffffffffffffffffffffffffffffff1614610a0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a01906141de565b60405180910390fd5b6000479050610a20610a1a611078565b826122ef565b50565b6000806000600b60008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161415610bb957600a6040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610bc36123e3565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610bef91906144ae565b610bf9919061447d565b90508160000151819350935050509250929050565b6000610c1983610f1a565b8210610c5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5190613f7e565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b60108054610cc09061460a565b80601f0160208091040260200160405190810160405280929190818152602001828054610cec9061460a565b8015610d395780601f10610d0e57610100808354040283529160200191610d39565b820191906000526020600020905b815481529060010190602001808311610d1c57829003601f168201915b505050505081565b610d5c838383604051806020016040528060008152506111fe565b505050565b6000610d6b610921565b8210610dac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da39061423e565b60405180910390fd5b60088281548110610dc057610dbf614772565b5b90600052602060002001549050919050565b610dda611ee9565b73ffffffffffffffffffffffffffffffffffffffff16610df8611078565b73ffffffffffffffffffffffffffffffffffffffff1614610e4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e45906141de565b60405180910390fd5b8060109080519060200190610e64929190613083565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610f11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f089061415e565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610f8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f829061413e565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610fda611ee9565b73ffffffffffffffffffffffffffffffffffffffff16610ff8611078565b73ffffffffffffffffffffffffffffffffffffffff161461104e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611045906141de565b60405180910390fd5b61105860006123ed565b565b600f60009054906101000a90046bffffffffffffffffffffffff1681565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060006110af83610f1a565b905060008167ffffffffffffffff8111156110cd576110cc6147a1565b5b6040519080825280602002602001820160405280156110fb5781602001602082028036833780820191505090505b50905060005b82811015611145576111138582610c0e565b82828151811061112657611125614772565b5b602002602001018181525050808061113d9061466d565b915050611101565b508092505050919050565b60606001805461115f9061460a565b80601f016020809104026020016040519081016040528092919081815260200182805461118b9061460a565b80156111d85780601f106111ad576101008083540402835291602001916111d8565b820191906000526020600020905b8154815290600101906020018083116111bb57829003601f168201915b5050505050905090565b600d5481565b6111fa6111f3611ee9565b83836124b3565b5050565b61120f611209611ee9565b83611faa565b61124e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112459061421e565b60405180910390fd5b61125a84848484612620565b50505050565b6060600061126d83610e68565b905061127883611e7d565b6112b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ae906140de565b60405180910390fd5b6000601260008581526020019081526020016000205490506000601182815481106112e5576112e4614772565b5b90600052602060002090600e02016040518061014001604052908160008201600280602002604051908101604052809291906000905b828210156113be5783820180546113319061460a565b80601f016020809104026020016040519081016040528092919081815260200182805461135d9061460a565b80156113aa5780601f1061137f576101008083540402835291602001916113aa565b820191906000526020600020905b81548152906001019060200180831161138d57829003601f168201915b50505050508152602001906001019061131b565b50505050815260200160028201600280602002604051908101604052809291906000905b828210156114855783820180546113f89061460a565b80601f01602080910402602001604051908101604052809291908181526020018280546114249061460a565b80156114715780601f1061144657610100808354040283529160200191611471565b820191906000526020600020905b81548152906001019060200180831161145457829003601f168201915b5050505050815260200190600101906113e2565b50505050815260200160048201600280602002604051908101604052809291906000905b8282101561154c5783820180546114bf9061460a565b80601f01602080910402602001604051908101604052809291908181526020018280546114eb9061460a565b80156115385780601f1061150d57610100808354040283529160200191611538565b820191906000526020600020905b81548152906001019060200180831161151b57829003601f168201915b5050505050815260200190600101906114a9565b50505050815260200160068201600280602002604051908101604052809291906000905b828210156116135783820180546115869061460a565b80601f01602080910402602001604051908101604052809291908181526020018280546115b29061460a565b80156115ff5780601f106115d4576101008083540402835291602001916115ff565b820191906000526020600020905b8154815290600101906020018083116115e257829003601f168201915b505050505081526020019060010190611570565b50505050815260200160088201805461162b9061460a565b80601f01602080910402602001604051908101604052809291908181526020018280546116579061460a565b80156116a45780601f10611679576101008083540402835291602001916116a4565b820191906000526020600020905b81548152906001019060200180831161168757829003601f168201915b505050505081526020016009820180546116bd9061460a565b80601f01602080910402602001604051908101604052809291908181526020018280546116e99061460a565b80156117365780601f1061170b57610100808354040283529160200191611736565b820191906000526020600020905b81548152906001019060200180831161171957829003601f168201915b50505050508152602001600a8201805461174f9061460a565b80601f016020809104026020016040519081016040528092919081815260200182805461177b9061460a565b80156117c85780601f1061179d576101008083540402835291602001916117c8565b820191906000526020600020905b8154815290600101906020018083116117ab57829003601f168201915b50505050508152602001600b820180546117e19061460a565b80601f016020809104026020016040519081016040528092919081815260200182805461180d9061460a565b801561185a5780601f1061182f5761010080835404028352916020019161185a565b820191906000526020600020905b81548152906001019060200180831161183d57829003601f168201915b50505050508152602001600c820180546118739061460a565b80601f016020809104026020016040519081016040528092919081815260200182805461189f9061460a565b80156118ec5780601f106118c1576101008083540402835291602001916118ec565b820191906000526020600020905b8154815290600101906020018083116118cf57829003601f168201915b50505050508152602001600d820180546119059061460a565b80601f01602080910402602001604051908101604052809291908181526020018280546119319061460a565b801561197e5780601f106119535761010080835404028352916020019161197e565b820191906000526020600020905b81548152906001019060200180831161196157829003601f168201915b505050505081525050905073404abecb31d88201eca16a7d58f6ab66155213eb630478bd9184876001866119b29190614427565b8560106040518663ffffffff1660e01b81526004016119d5959493929190613e9e565b60006040518083038186803b1580156119ed57600080fd5b505af4158015611a01573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611a2a919061362c565b9350505050919050565b600e5481565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611ad6611ee9565b73ffffffffffffffffffffffffffffffffffffffff16611af4611078565b73ffffffffffffffffffffffffffffffffffffffff1614611b4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b41906141de565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611bba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bb190613fbe565b60405180910390fd5b611bc3816123ed565b50565b6000815111611bd457600080fd5b600081519050600d5481611be891906144ae565b3414611c29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c2090613f5e565b60405180910390fd5b6005811115611c6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c649061417e565b60405180910390fd5b600e5481611c79610921565b611c839190614427565b1115611cc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cbb9061411e565b60405180910390fd5b60005b81811015611dc7576000838281518110611ce457611ce3614772565b5b6020026020010151118015611d1457506005838281518110611d0957611d08614772565b5b602002602001015111155b611d53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4a9061407e565b60405180910390fd5b60006001611d5f610921565b611d699190614427565b90506001848381518110611d8057611d7f614772565b5b6020026020010151611d929190614508565b6012600083815260200190815260200160002081905550611db3338261267c565b508080611dbf9061466d565b915050611cc7565b507f7cc45df6c966bb3aa6d7fc06cd1a3ff223761069d4d81e28180723c65c5ad0a033604051611df79190613e0e565b60405180910390a15050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611e765750611e758261269a565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611f6483610e68565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611fb582611e7d565b611ff4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611feb906140be565b60405180910390fd5b6000611fff83610e68565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061206e57508373ffffffffffffffffffffffffffffffffffffffff1661205684610784565b73ffffffffffffffffffffffffffffffffffffffff16145b8061207f575061207e8185611a3a565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166120a882610e68565b73ffffffffffffffffffffffffffffffffffffffff16146120fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120f590613fde565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561216e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121659061401e565b60405180910390fd5b612179838383612714565b612184600082611ef1565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546121d49190614508565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461222b9190614427565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46122ea838383612724565b505050565b80471015612332576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123299061409e565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161235890613df9565b60006040518083038185875af1925050503d8060008114612395576040519150601f19603f3d011682016040523d82523d6000602084013e61239a565b606091505b50509050806123de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123d59061405e565b60405180910390fd5b505050565b6000612710905090565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612522576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125199061403e565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516126139190613f21565b60405180910390a3505050565b61262b848484612088565b61263784848484612729565b612676576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161266d90613f9e565b60405180910390fd5b50505050565b6126968282604051806020016040528060008152506128c0565b5050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061270d575061270c8261291b565b5b9050919050565b61271f8383836129fd565b505050565b505050565b600061274a8473ffffffffffffffffffffffffffffffffffffffff16612b11565b156128b3578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612773611ee9565b8786866040518563ffffffff1660e01b81526004016127959493929190613e29565b602060405180830381600087803b1580156127af57600080fd5b505af19250505080156127e057506040513d601f19601f820116820180604052508101906127dd91906135b6565b60015b612863573d8060008114612810576040519150601f19603f3d011682016040523d82523d6000602084013e612815565b606091505b5060008151141561285b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161285290613f9e565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506128b8565b600190505b949350505050565b6128ca8383612b34565b6128d76000848484612729565b612916576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161290d90613f9e565b60405180910390fd5b505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806129e657507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806129f657506129f582612d0e565b5b9050919050565b612a08838383612d78565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612a4b57612a4681612d7d565b612a8a565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612a8957612a888382612dc6565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612acd57612ac881612f33565b612b0c565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612b0b57612b0a8282613004565b5b5b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612ba4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b9b9061419e565b60405180910390fd5b612bad81611e7d565b15612bed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612be490613ffe565b60405180910390fd5b612bf960008383612714565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612c499190614427565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612d0a60008383612724565b5050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001612dd384610f1a565b612ddd9190614508565b9050600060076000848152602001908152602001600020549050818114612ec2576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050612f479190614508565b9050600060096000848152602001908152602001600020549050600060088381548110612f7757612f76614772565b5b906000526020600020015490508060088381548110612f9957612f98614772565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480612fe857612fe7614743565b5b6001900381819060005260206000200160009055905550505050565b600061300f83610f1a565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b82805461308f9061460a565b90600052602060002090601f0160209004810192826130b157600085556130f8565b82601f106130ca57805160ff19168380011785556130f8565b828001600101855582156130f8579182015b828111156130f75782518255916020019190600101906130dc565b5b5090506131059190613109565b5090565b5b8082111561312257600081600090555060010161310a565b5090565b6000613139613134846142b9565b614294565b9050808382526020820190508285602086028201111561315c5761315b6147d5565b5b60005b8581101561318c57816131728882613368565b84526020840193506020830192505060018101905061315f565b5050509392505050565b60006131a96131a4846142e5565b614294565b9050828152602081018484840111156131c5576131c46147da565b5b6131d08482856145c8565b509392505050565b60006131eb6131e684614316565b614294565b905082815260208101848484011115613207576132066147da565b5b6132128482856145c8565b509392505050565b600061322d61322884614316565b614294565b905082815260208101848484011115613249576132486147da565b5b6132548482856145d7565b509392505050565b60008135905061326b81614de9565b92915050565b600082601f830112613286576132856147d0565b5b8135613296848260208601613126565b91505092915050565b6000813590506132ae81614e00565b92915050565b6000813590506132c381614e17565b92915050565b6000815190506132d881614e17565b92915050565b600082601f8301126132f3576132f26147d0565b5b8135613303848260208601613196565b91505092915050565b600082601f830112613321576133206147d0565b5b81356133318482602086016131d8565b91505092915050565b600082601f83011261334f5761334e6147d0565b5b815161335f84826020860161321a565b91505092915050565b60008135905061337781614e2e565b92915050565b600060208284031215613393576133926147e4565b5b60006133a18482850161325c565b91505092915050565b600080604083850312156133c1576133c06147e4565b5b60006133cf8582860161325c565b92505060206133e08582860161325c565b9150509250929050565b600080600060608486031215613403576134026147e4565b5b60006134118682870161325c565b93505060206134228682870161325c565b925050604061343386828701613368565b9150509250925092565b60008060008060808587031215613457576134566147e4565b5b60006134658782880161325c565b94505060206134768782880161325c565b935050604061348787828801613368565b925050606085013567ffffffffffffffff8111156134a8576134a76147df565b5b6134b4878288016132de565b91505092959194509250565b600080604083850312156134d7576134d66147e4565b5b60006134e58582860161325c565b92505060206134f68582860161329f565b9150509250929050565b60008060408385031215613517576135166147e4565b5b60006135258582860161325c565b925050602061353685828601613368565b9150509250929050565b600060208284031215613556576135556147e4565b5b600082013567ffffffffffffffff811115613574576135736147df565b5b61358084828501613271565b91505092915050565b60006020828403121561359f5761359e6147e4565b5b60006135ad848285016132b4565b91505092915050565b6000602082840312156135cc576135cb6147e4565b5b60006135da848285016132c9565b91505092915050565b6000602082840312156135f9576135f86147e4565b5b600082013567ffffffffffffffff811115613617576136166147df565b5b6136238482850161330c565b91505092915050565b600060208284031215613642576136416147e4565b5b600082015167ffffffffffffffff8111156136605761365f6147df565b5b61366c8482850161333a565b91505092915050565b60006020828403121561368b5761368a6147e4565b5b600061369984828501613368565b91505092915050565b600080604083850312156136b9576136b86147e4565b5b60006136c785828601613368565b92505060206136d885828601613368565b9150509250929050565b60006136ee8383613880565b905092915050565b60006137028383613dbd565b60208301905092915050565b6137178161453c565b82525050565b6137268161453c565b82525050565b600061373782614376565b61374181856143bc565b93508360208202850161375385614347565b8060005b8581101561378f578484038952815161377085826136e2565b945061377b836143a2565b925060208a01995050600181019050613757565b50829750879550505050505092915050565b60006137ac82614381565b6137b681856143c7565b93506137c183614351565b8060005b838110156137f25781516137d988826136f6565b97506137e4836143af565b9250506001810190506137c5565b5085935050505092915050565b6138088161454e565b82525050565b60006138198261438c565b61382381856143d8565b93506138338185602086016145d7565b61383c816147e9565b840191505092915050565b600061385282614397565b61385c81856143f4565b935061386c8185602086016145d7565b613875816147e9565b840191505092915050565b600061388b82614397565b6138958185614416565b93506138a58185602086016145d7565b6138ae816147e9565b840191505092915050565b600081546138c68161460a565b6138d08186614405565b945060018216600081146138eb57600181146138fd57613930565b60ff1983168652602086019350613930565b61390685614361565b60005b8381101561392857815481890152600182019150602081019050613909565b808801955050505b50505092915050565b60006139466013836143f4565b9150613951826147fa565b602082019050919050565b6000613969602b836143f4565b915061397482614823565b604082019050919050565b600061398c6032836143f4565b915061399782614872565b604082019050919050565b60006139af6026836143f4565b91506139ba826148c1565b604082019050919050565b60006139d26025836143f4565b91506139dd82614910565b604082019050919050565b60006139f5601c836143f4565b9150613a008261495f565b602082019050919050565b6000613a186024836143f4565b9150613a2382614988565b604082019050919050565b6000613a3b6019836143f4565b9150613a46826149d7565b602082019050919050565b6000613a5e603a836143f4565b9150613a6982614a00565b604082019050919050565b6000613a816013836143f4565b9150613a8c82614a4f565b602082019050919050565b6000613aa4601d836143f4565b9150613aaf82614a78565b602082019050919050565b6000613ac7602c836143f4565b9150613ad282614aa1565b604082019050919050565b6000613aea6009836143f4565b9150613af582614af0565b602082019050919050565b6000613b0d6038836143f4565b9150613b1882614b19565b604082019050919050565b6000613b306008836143f4565b9150613b3b82614b68565b602082019050919050565b6000613b53602a836143f4565b9150613b5e82614b91565b604082019050919050565b6000613b766029836143f4565b9150613b8182614be0565b604082019050919050565b6000613b996011836143f4565b9150613ba482614c2f565b602082019050919050565b6000613bbc6020836143f4565b9150613bc782614c58565b602082019050919050565b6000613bdf602c836143f4565b9150613bea82614c81565b604082019050919050565b6000613c026020836143f4565b9150613c0d82614cd0565b602082019050919050565b6000613c256021836143f4565b9150613c3082614cf9565b604082019050919050565b6000613c486000836143e9565b9150613c5382614d48565b600082019050919050565b6000613c6b6031836143f4565b9150613c7682614d4b565b604082019050919050565b6000613c8e602c836143f4565b9150613c9982614d9a565b604082019050919050565b6000610140830160008301518482036000860152613cc2828261372c565b91505060208301518482036020860152613cdc828261372c565b91505060408301518482036040860152613cf6828261372c565b91505060608301518482036060860152613d10828261372c565b91505060808301518482036080860152613d2a8282613880565b91505060a083015184820360a0860152613d448282613880565b91505060c083015184820360c0860152613d5e8282613880565b91505060e083015184820360e0860152613d788282613880565b915050610100830151848203610100860152613d948282613880565b915050610120830151848203610120860152613db08282613880565b9150508091505092915050565b613dc6816145a6565b82525050565b613dd5816145a6565b82525050565b613de4816145a6565b82525050565b613df3816145b0565b82525050565b6000613e0482613c3b565b9150819050919050565b6000602082019050613e23600083018461370e565b92915050565b6000608082019050613e3e600083018761370e565b613e4b602083018661370e565b613e586040830185613dcc565b8181036060830152613e6a818461380e565b905095945050505050565b6000604082019050613e8a600083018561370e565b613e976020830184613dcc565b9392505050565b600060a082019050613eb3600083018861371d565b613ec06020830187613ddb565b613ecd6040830186613ddb565b8181036060830152613edf8185613ca4565b90508181036080830152613ef381846138b9565b90509695505050505050565b60006020820190508181036000830152613f1981846137a1565b905092915050565b6000602082019050613f3660008301846137ff565b92915050565b60006020820190508181036000830152613f568184613847565b905092915050565b60006020820190508181036000830152613f7781613939565b9050919050565b60006020820190508181036000830152613f978161395c565b9050919050565b60006020820190508181036000830152613fb78161397f565b9050919050565b60006020820190508181036000830152613fd7816139a2565b9050919050565b60006020820190508181036000830152613ff7816139c5565b9050919050565b60006020820190508181036000830152614017816139e8565b9050919050565b6000602082019050818103600083015261403781613a0b565b9050919050565b6000602082019050818103600083015261405781613a2e565b9050919050565b6000602082019050818103600083015261407781613a51565b9050919050565b6000602082019050818103600083015261409781613a74565b9050919050565b600060208201905081810360008301526140b781613a97565b9050919050565b600060208201905081810360008301526140d781613aba565b9050919050565b600060208201905081810360008301526140f781613add565b9050919050565b6000602082019050818103600083015261411781613b00565b9050919050565b6000602082019050818103600083015261413781613b23565b9050919050565b6000602082019050818103600083015261415781613b46565b9050919050565b6000602082019050818103600083015261417781613b69565b9050919050565b6000602082019050818103600083015261419781613b8c565b9050919050565b600060208201905081810360008301526141b781613baf565b9050919050565b600060208201905081810360008301526141d781613bd2565b9050919050565b600060208201905081810360008301526141f781613bf5565b9050919050565b6000602082019050818103600083015261421781613c18565b9050919050565b6000602082019050818103600083015261423781613c5e565b9050919050565b6000602082019050818103600083015261425781613c81565b9050919050565b60006020820190506142736000830184613dcc565b92915050565b600060208201905061428e6000830184613dea565b92915050565b600061429e6142af565b90506142aa828261463c565b919050565b6000604051905090565b600067ffffffffffffffff8211156142d4576142d36147a1565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614300576142ff6147a1565b5b614309826147e9565b9050602081019050919050565b600067ffffffffffffffff821115614331576143306147a1565b5b61433a826147e9565b9050602081019050919050565b6000819050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600060029050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b600081905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b6000614432826145a6565b915061443d836145a6565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614472576144716146b6565b5b828201905092915050565b6000614488826145a6565b9150614493836145a6565b9250826144a3576144a26146e5565b5b828204905092915050565b60006144b9826145a6565b91506144c4836145a6565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156144fd576144fc6146b6565b5b828202905092915050565b6000614513826145a6565b915061451e836145a6565b925082821015614531576145306146b6565b5b828203905092915050565b600061454782614586565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006bffffffffffffffffffffffff82169050919050565b82818337600083830152505050565b60005b838110156145f55780820151818401526020810190506145da565b83811115614604576000848401525b50505050565b6000600282049050600182168061462257607f821691505b6020821081141561463657614635614714565b5b50919050565b614645826147e9565b810181811067ffffffffffffffff82111715614664576146636147a1565b5b80604052505050565b6000614678826145a6565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156146ab576146aa6146b6565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f73656e6420636f727265637420616d6f756e7400000000000000000000000000600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b7f636f6c6f7220646f65736e277420657869737400000000000000000000000000600082015250565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f6e6f742065786973740000000000000000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f6174206c696d6974000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f746f6f206d616e79206d696e7473203a28000000000000000000000000000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b614df28161453c565b8114614dfd57600080fd5b50565b614e098161454e565b8114614e1457600080fd5b50565b614e208161455a565b8114614e2b57600080fd5b50565b614e37816145a6565b8114614e4257600080fd5b5056fea2646970667358221220c253ed0c25a4d252621de4e6fece595644af0f84463ce4e9af6e7c6b74fedf9464736f6c63430008070033
Deployed Bytecode
0x6080604052600436106101b75760003560e01c806370a08231116100ec578063a22cb4651161008a578063d5abeb0111610064578063d5abeb0114610633578063e985e9c51461065e578063f2fde38b1461069b578063f8e93ef9146106c4576101b7565b8063a22cb465146105a4578063b88d4fde146105cd578063c87b56dd146105f6576101b7565b80638da5cb5b116100c65780638da5cb5b146104e65780638f85fa941461051157806395d89b411461054e578063a035b1fe14610579576101b7565b806370a0823114610467578063715018a6146104a45780638a71bb2d146104bb576101b7565b80632a55205a1161015957806342842e0e1161013357806342842e0e1461039b5780634f6ccce7146103c45780635593152c146104015780636352211e1461042a576101b7565b80632a55205a146102f55780632f745c59146103335780633f88b59214610370576101b7565b8063095ea7b311610195578063095ea7b31461026157806318160ddd1461028a57806323b872dd146102b557806324600fc3146102de576101b7565b806301ffc9a7146101bc57806306fdde03146101f9578063081812fc14610224575b600080fd5b3480156101c857600080fd5b506101e360048036038101906101de9190613589565b6106e0565b6040516101f09190613f21565b60405180910390f35b34801561020557600080fd5b5061020e6106f2565b60405161021b9190613f3c565b60405180910390f35b34801561023057600080fd5b5061024b60048036038101906102469190613675565b610784565b6040516102589190613e0e565b60405180910390f35b34801561026d57600080fd5b5061028860048036038101906102839190613500565b610809565b005b34801561029657600080fd5b5061029f610921565b6040516102ac919061425e565b60405180910390f35b3480156102c157600080fd5b506102dc60048036038101906102d791906133ea565b61092e565b005b3480156102ea57600080fd5b506102f361098e565b005b34801561030157600080fd5b5061031c600480360381019061031791906136a2565b610a23565b60405161032a929190613e75565b60405180910390f35b34801561033f57600080fd5b5061035a60048036038101906103559190613500565b610c0e565b604051610367919061425e565b60405180910390f35b34801561037c57600080fd5b50610385610cb3565b6040516103929190613f3c565b60405180910390f35b3480156103a757600080fd5b506103c260048036038101906103bd91906133ea565b610d41565b005b3480156103d057600080fd5b506103eb60048036038101906103e69190613675565b610d61565b6040516103f8919061425e565b60405180910390f35b34801561040d57600080fd5b50610428600480360381019061042391906135e3565b610dd2565b005b34801561043657600080fd5b50610451600480360381019061044c9190613675565b610e68565b60405161045e9190613e0e565b60405180910390f35b34801561047357600080fd5b5061048e6004803603810190610489919061337d565b610f1a565b60405161049b919061425e565b60405180910390f35b3480156104b057600080fd5b506104b9610fd2565b005b3480156104c757600080fd5b506104d061105a565b6040516104dd9190614279565b60405180910390f35b3480156104f257600080fd5b506104fb611078565b6040516105089190613e0e565b60405180910390f35b34801561051d57600080fd5b506105386004803603810190610533919061337d565b6110a2565b6040516105459190613eff565b60405180910390f35b34801561055a57600080fd5b50610563611150565b6040516105709190613f3c565b60405180910390f35b34801561058557600080fd5b5061058e6111e2565b60405161059b919061425e565b60405180910390f35b3480156105b057600080fd5b506105cb60048036038101906105c691906134c0565b6111e8565b005b3480156105d957600080fd5b506105f460048036038101906105ef919061343d565b6111fe565b005b34801561060257600080fd5b5061061d60048036038101906106189190613675565b611260565b60405161062a9190613f3c565b60405180910390f35b34801561063f57600080fd5b50610648611a34565b604051610655919061425e565b60405180910390f35b34801561066a57600080fd5b50610685600480360381019061068091906133aa565b611a3a565b6040516106929190613f21565b60405180910390f35b3480156106a757600080fd5b506106c260048036038101906106bd919061337d565b611ace565b005b6106de60048036038101906106d99190613540565b611bc6565b005b60006106eb82611e03565b9050919050565b6060600080546107019061460a565b80601f016020809104026020016040519081016040528092919081815260200182805461072d9061460a565b801561077a5780601f1061074f5761010080835404028352916020019161077a565b820191906000526020600020905b81548152906001019060200180831161075d57829003601f168201915b5050505050905090565b600061078f82611e7d565b6107ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107c5906141be565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061081482610e68565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610885576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161087c906141fe565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166108a4611ee9565b73ffffffffffffffffffffffffffffffffffffffff1614806108d357506108d2816108cd611ee9565b611a3a565b5b610912576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610909906140fe565b60405180910390fd5b61091c8383611ef1565b505050565b6000600880549050905090565b61093f610939611ee9565b82611faa565b61097e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109759061421e565b60405180910390fd5b610989838383612088565b505050565b610996611ee9565b73ffffffffffffffffffffffffffffffffffffffff166109b4611078565b73ffffffffffffffffffffffffffffffffffffffff1614610a0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a01906141de565b60405180910390fd5b6000479050610a20610a1a611078565b826122ef565b50565b6000806000600b60008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161415610bb957600a6040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610bc36123e3565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610bef91906144ae565b610bf9919061447d565b90508160000151819350935050509250929050565b6000610c1983610f1a565b8210610c5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5190613f7e565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b60108054610cc09061460a565b80601f0160208091040260200160405190810160405280929190818152602001828054610cec9061460a565b8015610d395780601f10610d0e57610100808354040283529160200191610d39565b820191906000526020600020905b815481529060010190602001808311610d1c57829003601f168201915b505050505081565b610d5c838383604051806020016040528060008152506111fe565b505050565b6000610d6b610921565b8210610dac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da39061423e565b60405180910390fd5b60088281548110610dc057610dbf614772565b5b90600052602060002001549050919050565b610dda611ee9565b73ffffffffffffffffffffffffffffffffffffffff16610df8611078565b73ffffffffffffffffffffffffffffffffffffffff1614610e4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e45906141de565b60405180910390fd5b8060109080519060200190610e64929190613083565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610f11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f089061415e565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610f8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f829061413e565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610fda611ee9565b73ffffffffffffffffffffffffffffffffffffffff16610ff8611078565b73ffffffffffffffffffffffffffffffffffffffff161461104e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611045906141de565b60405180910390fd5b61105860006123ed565b565b600f60009054906101000a90046bffffffffffffffffffffffff1681565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060006110af83610f1a565b905060008167ffffffffffffffff8111156110cd576110cc6147a1565b5b6040519080825280602002602001820160405280156110fb5781602001602082028036833780820191505090505b50905060005b82811015611145576111138582610c0e565b82828151811061112657611125614772565b5b602002602001018181525050808061113d9061466d565b915050611101565b508092505050919050565b60606001805461115f9061460a565b80601f016020809104026020016040519081016040528092919081815260200182805461118b9061460a565b80156111d85780601f106111ad576101008083540402835291602001916111d8565b820191906000526020600020905b8154815290600101906020018083116111bb57829003601f168201915b5050505050905090565b600d5481565b6111fa6111f3611ee9565b83836124b3565b5050565b61120f611209611ee9565b83611faa565b61124e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112459061421e565b60405180910390fd5b61125a84848484612620565b50505050565b6060600061126d83610e68565b905061127883611e7d565b6112b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ae906140de565b60405180910390fd5b6000601260008581526020019081526020016000205490506000601182815481106112e5576112e4614772565b5b90600052602060002090600e02016040518061014001604052908160008201600280602002604051908101604052809291906000905b828210156113be5783820180546113319061460a565b80601f016020809104026020016040519081016040528092919081815260200182805461135d9061460a565b80156113aa5780601f1061137f576101008083540402835291602001916113aa565b820191906000526020600020905b81548152906001019060200180831161138d57829003601f168201915b50505050508152602001906001019061131b565b50505050815260200160028201600280602002604051908101604052809291906000905b828210156114855783820180546113f89061460a565b80601f01602080910402602001604051908101604052809291908181526020018280546114249061460a565b80156114715780601f1061144657610100808354040283529160200191611471565b820191906000526020600020905b81548152906001019060200180831161145457829003601f168201915b5050505050815260200190600101906113e2565b50505050815260200160048201600280602002604051908101604052809291906000905b8282101561154c5783820180546114bf9061460a565b80601f01602080910402602001604051908101604052809291908181526020018280546114eb9061460a565b80156115385780601f1061150d57610100808354040283529160200191611538565b820191906000526020600020905b81548152906001019060200180831161151b57829003601f168201915b5050505050815260200190600101906114a9565b50505050815260200160068201600280602002604051908101604052809291906000905b828210156116135783820180546115869061460a565b80601f01602080910402602001604051908101604052809291908181526020018280546115b29061460a565b80156115ff5780601f106115d4576101008083540402835291602001916115ff565b820191906000526020600020905b8154815290600101906020018083116115e257829003601f168201915b505050505081526020019060010190611570565b50505050815260200160088201805461162b9061460a565b80601f01602080910402602001604051908101604052809291908181526020018280546116579061460a565b80156116a45780601f10611679576101008083540402835291602001916116a4565b820191906000526020600020905b81548152906001019060200180831161168757829003601f168201915b505050505081526020016009820180546116bd9061460a565b80601f01602080910402602001604051908101604052809291908181526020018280546116e99061460a565b80156117365780601f1061170b57610100808354040283529160200191611736565b820191906000526020600020905b81548152906001019060200180831161171957829003601f168201915b50505050508152602001600a8201805461174f9061460a565b80601f016020809104026020016040519081016040528092919081815260200182805461177b9061460a565b80156117c85780601f1061179d576101008083540402835291602001916117c8565b820191906000526020600020905b8154815290600101906020018083116117ab57829003601f168201915b50505050508152602001600b820180546117e19061460a565b80601f016020809104026020016040519081016040528092919081815260200182805461180d9061460a565b801561185a5780601f1061182f5761010080835404028352916020019161185a565b820191906000526020600020905b81548152906001019060200180831161183d57829003601f168201915b50505050508152602001600c820180546118739061460a565b80601f016020809104026020016040519081016040528092919081815260200182805461189f9061460a565b80156118ec5780601f106118c1576101008083540402835291602001916118ec565b820191906000526020600020905b8154815290600101906020018083116118cf57829003601f168201915b50505050508152602001600d820180546119059061460a565b80601f01602080910402602001604051908101604052809291908181526020018280546119319061460a565b801561197e5780601f106119535761010080835404028352916020019161197e565b820191906000526020600020905b81548152906001019060200180831161196157829003601f168201915b505050505081525050905073404abecb31d88201eca16a7d58f6ab66155213eb630478bd9184876001866119b29190614427565b8560106040518663ffffffff1660e01b81526004016119d5959493929190613e9e565b60006040518083038186803b1580156119ed57600080fd5b505af4158015611a01573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611a2a919061362c565b9350505050919050565b600e5481565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611ad6611ee9565b73ffffffffffffffffffffffffffffffffffffffff16611af4611078565b73ffffffffffffffffffffffffffffffffffffffff1614611b4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b41906141de565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611bba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bb190613fbe565b60405180910390fd5b611bc3816123ed565b50565b6000815111611bd457600080fd5b600081519050600d5481611be891906144ae565b3414611c29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c2090613f5e565b60405180910390fd5b6005811115611c6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c649061417e565b60405180910390fd5b600e5481611c79610921565b611c839190614427565b1115611cc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cbb9061411e565b60405180910390fd5b60005b81811015611dc7576000838281518110611ce457611ce3614772565b5b6020026020010151118015611d1457506005838281518110611d0957611d08614772565b5b602002602001015111155b611d53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4a9061407e565b60405180910390fd5b60006001611d5f610921565b611d699190614427565b90506001848381518110611d8057611d7f614772565b5b6020026020010151611d929190614508565b6012600083815260200190815260200160002081905550611db3338261267c565b508080611dbf9061466d565b915050611cc7565b507f7cc45df6c966bb3aa6d7fc06cd1a3ff223761069d4d81e28180723c65c5ad0a033604051611df79190613e0e565b60405180910390a15050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611e765750611e758261269a565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611f6483610e68565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611fb582611e7d565b611ff4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611feb906140be565b60405180910390fd5b6000611fff83610e68565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061206e57508373ffffffffffffffffffffffffffffffffffffffff1661205684610784565b73ffffffffffffffffffffffffffffffffffffffff16145b8061207f575061207e8185611a3a565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166120a882610e68565b73ffffffffffffffffffffffffffffffffffffffff16146120fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120f590613fde565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561216e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121659061401e565b60405180910390fd5b612179838383612714565b612184600082611ef1565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546121d49190614508565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461222b9190614427565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46122ea838383612724565b505050565b80471015612332576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123299061409e565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161235890613df9565b60006040518083038185875af1925050503d8060008114612395576040519150601f19603f3d011682016040523d82523d6000602084013e61239a565b606091505b50509050806123de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123d59061405e565b60405180910390fd5b505050565b6000612710905090565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612522576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125199061403e565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516126139190613f21565b60405180910390a3505050565b61262b848484612088565b61263784848484612729565b612676576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161266d90613f9e565b60405180910390fd5b50505050565b6126968282604051806020016040528060008152506128c0565b5050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061270d575061270c8261291b565b5b9050919050565b61271f8383836129fd565b505050565b505050565b600061274a8473ffffffffffffffffffffffffffffffffffffffff16612b11565b156128b3578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612773611ee9565b8786866040518563ffffffff1660e01b81526004016127959493929190613e29565b602060405180830381600087803b1580156127af57600080fd5b505af19250505080156127e057506040513d601f19601f820116820180604052508101906127dd91906135b6565b60015b612863573d8060008114612810576040519150601f19603f3d011682016040523d82523d6000602084013e612815565b606091505b5060008151141561285b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161285290613f9e565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506128b8565b600190505b949350505050565b6128ca8383612b34565b6128d76000848484612729565b612916576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161290d90613f9e565b60405180910390fd5b505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806129e657507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806129f657506129f582612d0e565b5b9050919050565b612a08838383612d78565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612a4b57612a4681612d7d565b612a8a565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612a8957612a888382612dc6565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612acd57612ac881612f33565b612b0c565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612b0b57612b0a8282613004565b5b5b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612ba4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b9b9061419e565b60405180910390fd5b612bad81611e7d565b15612bed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612be490613ffe565b60405180910390fd5b612bf960008383612714565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612c499190614427565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612d0a60008383612724565b5050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001612dd384610f1a565b612ddd9190614508565b9050600060076000848152602001908152602001600020549050818114612ec2576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050612f479190614508565b9050600060096000848152602001908152602001600020549050600060088381548110612f7757612f76614772565b5b906000526020600020015490508060088381548110612f9957612f98614772565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480612fe857612fe7614743565b5b6001900381819060005260206000200160009055905550505050565b600061300f83610f1a565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b82805461308f9061460a565b90600052602060002090601f0160209004810192826130b157600085556130f8565b82601f106130ca57805160ff19168380011785556130f8565b828001600101855582156130f8579182015b828111156130f75782518255916020019190600101906130dc565b5b5090506131059190613109565b5090565b5b8082111561312257600081600090555060010161310a565b5090565b6000613139613134846142b9565b614294565b9050808382526020820190508285602086028201111561315c5761315b6147d5565b5b60005b8581101561318c57816131728882613368565b84526020840193506020830192505060018101905061315f565b5050509392505050565b60006131a96131a4846142e5565b614294565b9050828152602081018484840111156131c5576131c46147da565b5b6131d08482856145c8565b509392505050565b60006131eb6131e684614316565b614294565b905082815260208101848484011115613207576132066147da565b5b6132128482856145c8565b509392505050565b600061322d61322884614316565b614294565b905082815260208101848484011115613249576132486147da565b5b6132548482856145d7565b509392505050565b60008135905061326b81614de9565b92915050565b600082601f830112613286576132856147d0565b5b8135613296848260208601613126565b91505092915050565b6000813590506132ae81614e00565b92915050565b6000813590506132c381614e17565b92915050565b6000815190506132d881614e17565b92915050565b600082601f8301126132f3576132f26147d0565b5b8135613303848260208601613196565b91505092915050565b600082601f830112613321576133206147d0565b5b81356133318482602086016131d8565b91505092915050565b600082601f83011261334f5761334e6147d0565b5b815161335f84826020860161321a565b91505092915050565b60008135905061337781614e2e565b92915050565b600060208284031215613393576133926147e4565b5b60006133a18482850161325c565b91505092915050565b600080604083850312156133c1576133c06147e4565b5b60006133cf8582860161325c565b92505060206133e08582860161325c565b9150509250929050565b600080600060608486031215613403576134026147e4565b5b60006134118682870161325c565b93505060206134228682870161325c565b925050604061343386828701613368565b9150509250925092565b60008060008060808587031215613457576134566147e4565b5b60006134658782880161325c565b94505060206134768782880161325c565b935050604061348787828801613368565b925050606085013567ffffffffffffffff8111156134a8576134a76147df565b5b6134b4878288016132de565b91505092959194509250565b600080604083850312156134d7576134d66147e4565b5b60006134e58582860161325c565b92505060206134f68582860161329f565b9150509250929050565b60008060408385031215613517576135166147e4565b5b60006135258582860161325c565b925050602061353685828601613368565b9150509250929050565b600060208284031215613556576135556147e4565b5b600082013567ffffffffffffffff811115613574576135736147df565b5b61358084828501613271565b91505092915050565b60006020828403121561359f5761359e6147e4565b5b60006135ad848285016132b4565b91505092915050565b6000602082840312156135cc576135cb6147e4565b5b60006135da848285016132c9565b91505092915050565b6000602082840312156135f9576135f86147e4565b5b600082013567ffffffffffffffff811115613617576136166147df565b5b6136238482850161330c565b91505092915050565b600060208284031215613642576136416147e4565b5b600082015167ffffffffffffffff8111156136605761365f6147df565b5b61366c8482850161333a565b91505092915050565b60006020828403121561368b5761368a6147e4565b5b600061369984828501613368565b91505092915050565b600080604083850312156136b9576136b86147e4565b5b60006136c785828601613368565b92505060206136d885828601613368565b9150509250929050565b60006136ee8383613880565b905092915050565b60006137028383613dbd565b60208301905092915050565b6137178161453c565b82525050565b6137268161453c565b82525050565b600061373782614376565b61374181856143bc565b93508360208202850161375385614347565b8060005b8581101561378f578484038952815161377085826136e2565b945061377b836143a2565b925060208a01995050600181019050613757565b50829750879550505050505092915050565b60006137ac82614381565b6137b681856143c7565b93506137c183614351565b8060005b838110156137f25781516137d988826136f6565b97506137e4836143af565b9250506001810190506137c5565b5085935050505092915050565b6138088161454e565b82525050565b60006138198261438c565b61382381856143d8565b93506138338185602086016145d7565b61383c816147e9565b840191505092915050565b600061385282614397565b61385c81856143f4565b935061386c8185602086016145d7565b613875816147e9565b840191505092915050565b600061388b82614397565b6138958185614416565b93506138a58185602086016145d7565b6138ae816147e9565b840191505092915050565b600081546138c68161460a565b6138d08186614405565b945060018216600081146138eb57600181146138fd57613930565b60ff1983168652602086019350613930565b61390685614361565b60005b8381101561392857815481890152600182019150602081019050613909565b808801955050505b50505092915050565b60006139466013836143f4565b9150613951826147fa565b602082019050919050565b6000613969602b836143f4565b915061397482614823565b604082019050919050565b600061398c6032836143f4565b915061399782614872565b604082019050919050565b60006139af6026836143f4565b91506139ba826148c1565b604082019050919050565b60006139d26025836143f4565b91506139dd82614910565b604082019050919050565b60006139f5601c836143f4565b9150613a008261495f565b602082019050919050565b6000613a186024836143f4565b9150613a2382614988565b604082019050919050565b6000613a3b6019836143f4565b9150613a46826149d7565b602082019050919050565b6000613a5e603a836143f4565b9150613a6982614a00565b604082019050919050565b6000613a816013836143f4565b9150613a8c82614a4f565b602082019050919050565b6000613aa4601d836143f4565b9150613aaf82614a78565b602082019050919050565b6000613ac7602c836143f4565b9150613ad282614aa1565b604082019050919050565b6000613aea6009836143f4565b9150613af582614af0565b602082019050919050565b6000613b0d6038836143f4565b9150613b1882614b19565b604082019050919050565b6000613b306008836143f4565b9150613b3b82614b68565b602082019050919050565b6000613b53602a836143f4565b9150613b5e82614b91565b604082019050919050565b6000613b766029836143f4565b9150613b8182614be0565b604082019050919050565b6000613b996011836143f4565b9150613ba482614c2f565b602082019050919050565b6000613bbc6020836143f4565b9150613bc782614c58565b602082019050919050565b6000613bdf602c836143f4565b9150613bea82614c81565b604082019050919050565b6000613c026020836143f4565b9150613c0d82614cd0565b602082019050919050565b6000613c256021836143f4565b9150613c3082614cf9565b604082019050919050565b6000613c486000836143e9565b9150613c5382614d48565b600082019050919050565b6000613c6b6031836143f4565b9150613c7682614d4b565b604082019050919050565b6000613c8e602c836143f4565b9150613c9982614d9a565b604082019050919050565b6000610140830160008301518482036000860152613cc2828261372c565b91505060208301518482036020860152613cdc828261372c565b91505060408301518482036040860152613cf6828261372c565b91505060608301518482036060860152613d10828261372c565b91505060808301518482036080860152613d2a8282613880565b91505060a083015184820360a0860152613d448282613880565b91505060c083015184820360c0860152613d5e8282613880565b91505060e083015184820360e0860152613d788282613880565b915050610100830151848203610100860152613d948282613880565b915050610120830151848203610120860152613db08282613880565b9150508091505092915050565b613dc6816145a6565b82525050565b613dd5816145a6565b82525050565b613de4816145a6565b82525050565b613df3816145b0565b82525050565b6000613e0482613c3b565b9150819050919050565b6000602082019050613e23600083018461370e565b92915050565b6000608082019050613e3e600083018761370e565b613e4b602083018661370e565b613e586040830185613dcc565b8181036060830152613e6a818461380e565b905095945050505050565b6000604082019050613e8a600083018561370e565b613e976020830184613dcc565b9392505050565b600060a082019050613eb3600083018861371d565b613ec06020830187613ddb565b613ecd6040830186613ddb565b8181036060830152613edf8185613ca4565b90508181036080830152613ef381846138b9565b90509695505050505050565b60006020820190508181036000830152613f1981846137a1565b905092915050565b6000602082019050613f3660008301846137ff565b92915050565b60006020820190508181036000830152613f568184613847565b905092915050565b60006020820190508181036000830152613f7781613939565b9050919050565b60006020820190508181036000830152613f978161395c565b9050919050565b60006020820190508181036000830152613fb78161397f565b9050919050565b60006020820190508181036000830152613fd7816139a2565b9050919050565b60006020820190508181036000830152613ff7816139c5565b9050919050565b60006020820190508181036000830152614017816139e8565b9050919050565b6000602082019050818103600083015261403781613a0b565b9050919050565b6000602082019050818103600083015261405781613a2e565b9050919050565b6000602082019050818103600083015261407781613a51565b9050919050565b6000602082019050818103600083015261409781613a74565b9050919050565b600060208201905081810360008301526140b781613a97565b9050919050565b600060208201905081810360008301526140d781613aba565b9050919050565b600060208201905081810360008301526140f781613add565b9050919050565b6000602082019050818103600083015261411781613b00565b9050919050565b6000602082019050818103600083015261413781613b23565b9050919050565b6000602082019050818103600083015261415781613b46565b9050919050565b6000602082019050818103600083015261417781613b69565b9050919050565b6000602082019050818103600083015261419781613b8c565b9050919050565b600060208201905081810360008301526141b781613baf565b9050919050565b600060208201905081810360008301526141d781613bd2565b9050919050565b600060208201905081810360008301526141f781613bf5565b9050919050565b6000602082019050818103600083015261421781613c18565b9050919050565b6000602082019050818103600083015261423781613c5e565b9050919050565b6000602082019050818103600083015261425781613c81565b9050919050565b60006020820190506142736000830184613dcc565b92915050565b600060208201905061428e6000830184613dea565b92915050565b600061429e6142af565b90506142aa828261463c565b919050565b6000604051905090565b600067ffffffffffffffff8211156142d4576142d36147a1565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614300576142ff6147a1565b5b614309826147e9565b9050602081019050919050565b600067ffffffffffffffff821115614331576143306147a1565b5b61433a826147e9565b9050602081019050919050565b6000819050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600060029050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b600081905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b6000614432826145a6565b915061443d836145a6565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614472576144716146b6565b5b828201905092915050565b6000614488826145a6565b9150614493836145a6565b9250826144a3576144a26146e5565b5b828204905092915050565b60006144b9826145a6565b91506144c4836145a6565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156144fd576144fc6146b6565b5b828202905092915050565b6000614513826145a6565b915061451e836145a6565b925082821015614531576145306146b6565b5b828203905092915050565b600061454782614586565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006bffffffffffffffffffffffff82169050919050565b82818337600083830152505050565b60005b838110156145f55780820151818401526020810190506145da565b83811115614604576000848401525b50505050565b6000600282049050600182168061462257607f821691505b6020821081141561463657614635614714565b5b50919050565b614645826147e9565b810181811067ffffffffffffffff82111715614664576146636147a1565b5b80604052505050565b6000614678826145a6565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156146ab576146aa6146b6565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f73656e6420636f727265637420616d6f756e7400000000000000000000000000600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b7f636f6c6f7220646f65736e277420657869737400000000000000000000000000600082015250565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f6e6f742065786973740000000000000000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f6174206c696d6974000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f746f6f206d616e79206d696e7473203a28000000000000000000000000000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b614df28161453c565b8114614dfd57600080fd5b50565b614e098161454e565b8114614e1457600080fd5b50565b614e208161455a565b8114614e2b57600080fd5b50565b614e37816145a6565b8114614e4257600080fd5b5056fea2646970667358221220c253ed0c25a4d252621de4e6fece595644af0f84463ce4e9af6e7c6b74fedf9464736f6c63430008070033
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.