ERC-721
Overview
Max Total Supply
8,888 K
Holders
2,615
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
4 KLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
METAKAYS
Compiler Version
v0.8.0+commit.c7dfd78e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.0; import "base64-sol/base64.sol"; import "./ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import { MerkleProof } from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; interface IFeatures1 { function readMisc(uint256 _id) external view returns (string memory); } interface IFeatures2{ function readMouth(uint256 _id) external view returns (string memory); } interface IFeatures3 { function readHair(uint256 _id) external view returns (string memory); } contract METAKAYS is Ownable, ERC721 { event Kustomized(uint256 _itemID); struct Features { uint8 backgroundColor; uint8 bodyColor; uint8 skinColor; uint8 hairColor; uint8 mouthColor; uint8 hairStyle; uint8 mouthStyle; uint8 miscStyle1; uint8 miscStyle1Color; uint8 miscStyle2; uint8 miscStyle2Color; uint8 eyesColor; string customText; } IFeatures1 features1; IFeatures2 features2; IFeatures3 features3; uint256 public constant AMOUNT_FOR_METAKOUNCIL = 280; uint256 public constant price = 0.08888 ether; bytes32 public _merkleRoot; bool public _saleIsActive = false; mapping(uint256 => Features) public features; mapping (uint256 => string) public svgBackgroundColor; mapping (uint256 => bool) public finality; mapping (address => bool) public whitelistClaimed; constructor() ERC721("METAKAYS", "K", 5, 8888) { svgBackgroundColor[0] = '#2dd055"/>'; svgBackgroundColor[1] = '#09a137"/>'; svgBackgroundColor[2] = '#065535"/>'; svgBackgroundColor[3] = '#88b04b"/>'; svgBackgroundColor[4] = '#00ffff"/>'; svgBackgroundColor[5] = '#5acef3"/>'; svgBackgroundColor[6] = '#0050ff"/>'; svgBackgroundColor[7] = '#4559cc"/>'; svgBackgroundColor[8] = '#34568b"/>'; svgBackgroundColor[9] = '#8a2be2"/>'; svgBackgroundColor[10] = '#6b5b95"/>'; svgBackgroundColor[11] = '#b565a7"/>'; svgBackgroundColor[12] = '#ff80ed"/>'; svgBackgroundColor[13] = '#ffc0cb"/>'; svgBackgroundColor[14] = '#faceac"/>'; svgBackgroundColor[15] = '#dfff00"/>'; svgBackgroundColor[16] = '#fff300"/>'; svgBackgroundColor[17] = '#ffd700"/>'; svgBackgroundColor[18] = '#ffa500"/>'; svgBackgroundColor[19] = '#896258"/>'; svgBackgroundColor[20] = '#945610"/>'; svgBackgroundColor[21] = '#9b2335"/>'; svgBackgroundColor[22] = '#b14044"/>'; svgBackgroundColor[23] = '#ff0000"/>'; svgBackgroundColor[24] = '#df1b49"/>'; svgBackgroundColor[25] = '#f71863"/>'; svgBackgroundColor[26] = '#928e8e"/>'; svgBackgroundColor[27] = '#ffffff"/>'; svgBackgroundColor[28] = '#000000"/>'; } function setSaleIsActive(bool saleIsActive) external onlyOwner { _saleIsActive = saleIsActive; } function setPresaleMerkleRoot(bytes32 root) external onlyOwner { _merkleRoot = root; } //RENOUNCE/TRANSFER @ 616. function setFeaturesAddress(address[] memory addr) external onlyOwner{ features1= IFeatures1(addr[0]); features2 = IFeatures2(addr[1]); features3 = IFeatures3(addr[2]); } function kustomize(uint256 _itemID, uint8[] memory selection_, string memory _customText) public { require(msg.sender == ownerOf(_itemID), "YOU ARE NOT THE OWNER!"); require(customShirtCheck(_customText) == true, "PLEASE ONLY USE 1-8 CAPITAL LETTERS!"); require(finality[_itemID] == false, "FINALITY!"); require((selection_[0] < 29) && (selection_[1] < 29) && (selection_[2] < 29) && (selection_[3] < 29) && (selection_[4] < 29) && (selection_[5] < 29) && (selection_[6] < 29) && (selection_[7] < 29) && (selection_[8] < 29) && (selection_[9] < 29) && (selection_[10] < 29) && (selection_[11] < 29), "NO SUCH FEATURE!"); Features storage feature = features[_itemID]; feature.backgroundColor = selection_[0]; feature.bodyColor = selection_[1]; feature.skinColor = selection_[2]; feature.hairColor = selection_[3]; feature.mouthColor = selection_[4]; feature.hairStyle = selection_[5]; feature.mouthStyle = selection_[6]; feature.miscStyle1 = selection_[7]; feature.miscStyle1Color = selection_[8]; feature.miscStyle2 = selection_[9]; feature.miscStyle2Color = selection_[10]; feature.eyesColor = selection_[11]; feature.customText = _customText; emit Kustomized(_itemID); } function setFinality(uint256 _itemID) public { require(msg.sender == ownerOf(_itemID), "YOU ARE NOT THE OWNER!"); finality[_itemID] = true; } function publicClaim(uint256 quantity) external payable { require(_saleIsActive,"SALE IS NOT ACTIVE!"); require(totalSupply() + quantity <= collectionSize, "MAX SUPPLY!"); require(quantity * price <= msg.value, "INCORRECT AMOUNT SENT!"); _safeMint(msg.sender, quantity); } function whitelistClaim(uint256 _amount, bytes32[] calldata _merkleProof) external payable { require(!whitelistClaimed[msg.sender], "ADDRESS HAS ALREADY CLAIMED!"); require(totalSupply() + _amount <= collectionSize, "MAX SUPPLY!"); require(_amount * price <= msg.value, "INCORRECT AMOUNT SENT!"); bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); require(MerkleProof.verify(_merkleProof, _merkleRoot, leaf), "INVALID PROOF!"); whitelistClaimed[msg.sender] = true; _safeMint(msg.sender, _amount); } function devMint(uint256 quantity) external onlyOwner { require(totalSupply() + quantity <= AMOUNT_FOR_METAKOUNCIL, "TOO MANY ALREADY MINTED!"); require(quantity % maxBatchSize == 0, "CAN ONLY MINT A MULTIPLE OF MAXBATCHSIZE!"); uint256 numChunks = quantity / maxBatchSize; for (uint256 i = 0; i < numChunks; i++) { _safeMint(msg.sender, maxBatchSize); } } function withdrawMoney() external onlyOwner { (bool success, ) = msg.sender.call{value: address(this).balance}(""); require(success, "WITHDRAW FAILED!"); } function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { require(_exists(_tokenId), "ERC721Metadata: URI query for nonexistent token"); Features memory feature = features[_tokenId]; string memory tokenIdString = toString(_tokenId); string memory _first = concatenate( '<svg version="1.0" xmlns="http://www.w3.org/2000/svg" width="888.000000pt" height="888.000000pt" viewBox="0 0 888.000000 888.000000" preserveAspectRatio="xMidYMid meet"> <g transform="translate(0.000000,888.000000) scale(0.100000,-0.100000)"> <path d="M0 4440 l0 -4440 4440 0 4440 0 0 4440 0 4440 -4440 0 -4440 0 0 -4440z" fill="', svgBackgroundColor[feature.backgroundColor], '<path d="M3530 3270 l0 -130 -395 0 -395 0 0 -130 0 -130 -515 0 -515 0 0 -130 0 -130 -130 0 -130 0 0 -1310 0 -1310 130 0 130 0 0 1310 0 1310 515 0 515 0 0 130 0 130 395 0 395 0 0 130 0 130 910 0 910 0 0 -130 0 -130 395 0 395 0 0 -130 0 -130 515 0 515 0 0 -1310 0 -1310 130 0 130 0 0 1310 0 1310 -130 0 -130 0 0 130 0 130 -515 0 -515 0 0 130 0 130 -395 0 -395 0 0 130 0 130 -910 0 -910 0 0 -130z M2610 660 l0 -660 130 0 130 0 0 660 0 660 -130 0 -130 0 0 -660z M6010 660 l0 -660 130 0 130 0 0 660 0 660 -130 0 -130 0 0 -660z"/> <path d="M3530 3010 l0 -130 -395 0 -395 0 0 -130 0 -130 -515 0 -515 0 0 -1310 0 -1310 450 0 450 0 0 660 0 660 130 0 130 0 0 -660 0 -660 1570 0 1570 0 0 660 0 660 130 0 130 0 0 -660 0 -660 450 0 450 0 0 1310 0 1310 -515 0 -515 0 0 130 0 130 -395 0 -395 0 0 130 0 130 -910 0 -910 0 0 -130z" fill="', svgBackgroundColor[feature.bodyColor],'<g transform="translate(0.000000,888.000000) scale(0.100000,-0.100000)"><text x="44488" y="-8800" font-size="4800px" font-family="impact" font-weight="bold" dominant-baseline="middle" text-anchor="middle">', feature.customText, '</text></g><g transform="translate(0.000000,888.000000) scale(0.100000,-0.100000)"><text x="71188" y="-14488" font-size="2888px" font-family="impact" font-weight="bold" dominant-baseline="center" text-anchor="end">', tokenIdString, '</text></g><path d="M3130 5540 l0 -1600 100 0 100 0 0 -185 0 -185 195 0 195 0 0 -85 0 -85 130 0 130 0 0 215 0 215 -195 0 -195 0 0 185 0 185 -100 0 -100 0 0 1340 0 1340 1050 0 1050 0 0 -1340 0 -1340 -100 0 -100 0 0 -185 0 -185 -195 0 -195 0 0 -215 0 -215 130 0 130 0 0 85 0 85 195 0 195 0 0 185 0 185 100 0 100 0 0 1600 0 1600 -1310 0 -1310 0 0 -1600z"/> <path d="M3390 5540 l0 -1340 100 0 100 0 0 -185 0 -185 195 0 195 0 0 -215 0 -215 460 0 460 0 0 215 0 215 195 0 195 0 0 185 0 185 100 0 100 0 0 1340 0 1340 -1050 0 -1050 0 0 -1340z" fill="' ); string memory _last = concatenate(svgBackgroundColor[feature.skinColor], finality[_tokenId] == false ? '<path d="M3750 5770 l0 -120 -120 0 -120 0 0 -120 0 -120 120 0 120 0 0 -240 0 -240 120 0 120 0 0 240 0 240 120 0 120 0 0 120 0 120 -120 0 -120 0 0 120 0 120 -120 0 -120 0 0 -120z M4890 5770 l0 -120 -120 0 -120 0 0 -120 0 -120 120 0 120 0 0 -240 0 -240 120 0 120 0 0 240 0 240 120 0 120 0 0 120 0 120 -120 0 -120 0 0 120 0 120 -120 0 -120 0 0 -120z" fill="' : '<path d="M3730 5790 l0 -120 -120 0 -120 0 0 -140 0 -140 120 0 120 0 0 -240 0 -240 140 0 140 0 0 240 0 240 120 0 120 0 0 140 0 140 -120 0 -120 0 0 120 0 120 -140 0 -140 0 0 -120z m250 -30 l0 -120 120 0 120 0 0 -110 0 -110 -120 0 -120 0 0 -240 0 -240 -110 0 -110 0 0 240 0 240 -120 0 -120 0 0 110 0 110 120 0 120 0 0 120 0 120 110 0 110 0 0 -120z M3790 5730 l0 -120 -120 0 -120 0 0 -80 0 -80 120 0 120 0 0 -240 0 -240 80 0 80 0 0 240 0 240 120 0 120 0 0 80 0 80 -120 0 -120 0 0 120 0 120 -80 0 -80 0 0 -120z m130 -30 l0 -120 120 0 120 0 0 -50 0 -50 -120 0 -120 0 0 -240 0 -240 -50 0 -50 0 0 240 0 240 -120 0 -120 0 0 50 0 50 120 0 120 0 0 120 0 120 50 0 50 0 0 -120z M3850 5670 l0 -120 -120 0 c-113 0 -120 -1 -120 -20 0 -19 7 -20 120 -20 l120 0 0 -240 c0 -233 1 -240 20 -240 19 0 20 7 20 240 l0 240 120 0 c113 0 120 1 120 20 0 19 -7 20 -120 20 l-120 0 0 120 c0 113 -1 120 -20 120 -19 0 -20 -7 -20 -120z M4870 5790 l0 -120 -120 0 -120 0 0 -140 0 -140 120 0 120 0 0 -240 0 -240 140 0 140 0 0 240 0 240 120 0 120 0 0 140 0 140 -120 0 -120 0 0 120 0 120 -140 0 -140 0 0 -120z m250 -30 l0 -120 120 0 120 0 0 -110 0 -110 -120 0 -120 0 0 -240 0 -240 -110 0 -110 0 0 240 0 240 -120 0 -120 0 0 110 0 110 120 0 120 0 0 120 0 120 110 0 110 0 0 -120z M4930 5730 l0 -120 -120 0 -120 0 0 -80 0 -80 120 0 120 0 0 -240 0 -240 80 0 80 0 0 240 0 240 120 0 120 0 0 80 0 80 -120 0 -120 0 0 120 0 120 -80 0 -80 0 0 -120z m130 -30 l0 -120 120 0 120 0 0 -50 0 -50 -120 0 -120 0 0 -240 0 -240 -50 0 -50 0 0 240 0 240 -120 0 -120 0 0 50 0 50 120 0 120 0 0 120 0 120 50 0 50 0 0 -120z M4990 5670 l0 -120 -120 0 c-113 0 -120 -1 -120 -20 0 -19 7 -20 120 -20 l120 0 0 -240 c0 -233 1 -240 20 -240 19 0 20 7 20 240 l0 240 120 0 c113 0 120 1 120 20 0 19 -7 20 -120 20 l-120 0 0 120 c0 113 -1 120 -20 120 -19 0 -20 -7 -20 -120z" fill="', svgBackgroundColor[feature.eyesColor], features2.readMouth(feature.mouthStyle), svgBackgroundColor[feature.mouthColor], features1.readMisc(feature.miscStyle1), svgBackgroundColor[feature.miscStyle1Color], features1.readMisc(feature.miscStyle2),svgBackgroundColor[feature.miscStyle2Color]); string memory imageURI = string(abi.encodePacked("data:image/svg+xml;base64, ", Base64.encode(bytes(string(abi.encodePacked(_first, _last,features3.readHair(feature.hairStyle), svgBackgroundColor[feature.hairColor],'</g></svg>')))))); string memory finality_ = finality[_tokenId] == false ? 'false' : 'true'; return string( abi.encodePacked( "data:application/json;base64,", Base64.encode( bytes( abi.encodePacked( '{"name":"', "METAKAYS-", tokenIdString, '", "attributes":[{"trait_type" : "Finality", "value" : "', finality_ ,'"}], "image":"',imageURI,'"}' ) ) ) ) ); } function concatenate(string memory _one, string memory _two, string memory _three, string memory _four, string memory _five, string memory _six, string memory _seven, string memory _eight, string memory _nine) internal pure returns (string memory) { return string(abi.encodePacked(_one, _two, _three, _four, _five, _six, _seven, _eight, _nine)); } function customShirtCheck(string memory svg) internal pure returns (bool) { bytes memory b = bytes(svg); if (b.length > 8) return false; for (uint256 i=0; i<b.length; i++){ bytes1 char = b[i]; if (!(char > 0x40 && char < 0x5B)) { return false; } } return true; } function toString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } function getOwnershipData(uint256 tokenId) external view returns (TokenOwnership memory) { return ownershipOf(tokenId); } function setOwnersExplicit(uint256 quantity) external onlyOwner { _setOwnersExplicit(quantity); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0; /// @title Base64 /// @author Brecht Devos - <[email protected]> /// @notice Provides functions for encoding/decoding base64 library Base64 { string internal constant TABLE_ENCODE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; bytes internal constant TABLE_DECODE = hex"0000000000000000000000000000000000000000000000000000000000000000" hex"00000000000000000000003e0000003f3435363738393a3b3c3d000000000000" hex"00000102030405060708090a0b0c0d0e0f101112131415161718190000000000" hex"001a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132330000000000"; function encode(bytes memory data) internal pure returns (string memory) { if (data.length == 0) return ''; // load the table into memory string memory table = TABLE_ENCODE; // multiply by 4/3 rounded up uint256 encodedLen = 4 * ((data.length + 2) / 3); // add some extra buffer at the end required for the writing string memory result = new string(encodedLen + 32); assembly { // set the actual output length mstore(result, encodedLen) // prepare the lookup table let tablePtr := add(table, 1) // input ptr let dataPtr := data let endPtr := add(dataPtr, mload(data)) // result ptr, jump over length let resultPtr := add(result, 32) // run over the input, 3 bytes at a time for {} lt(dataPtr, endPtr) {} { // read 3 bytes dataPtr := add(dataPtr, 3) let input := mload(dataPtr) // write 4 characters mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F)))) resultPtr := add(resultPtr, 1) mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F)))) resultPtr := add(resultPtr, 1) mstore8(resultPtr, mload(add(tablePtr, and(shr( 6, input), 0x3F)))) resultPtr := add(resultPtr, 1) mstore8(resultPtr, mload(add(tablePtr, and( input, 0x3F)))) resultPtr := add(resultPtr, 1) } // padding with '=' switch mod(mload(data), 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } } return result; } function decode(string memory _data) internal pure returns (bytes memory) { bytes memory data = bytes(_data); if (data.length == 0) return new bytes(0); require(data.length % 4 == 0, "invalid base64 decoder input"); // load the table into memory bytes memory table = TABLE_DECODE; // every 4 characters represent 3 bytes uint256 decodedLen = (data.length / 4) * 3; // add some extra buffer at the end required for the writing bytes memory result = new bytes(decodedLen + 32); assembly { // padding with '=' let lastBytes := mload(add(data, mload(data))) if eq(and(lastBytes, 0xFF), 0x3d) { decodedLen := sub(decodedLen, 1) if eq(and(lastBytes, 0xFFFF), 0x3d3d) { decodedLen := sub(decodedLen, 1) } } // set the actual output length mstore(result, decodedLen) // prepare the lookup table let tablePtr := add(table, 1) // input ptr let dataPtr := data let endPtr := add(dataPtr, mload(data)) // result ptr, jump over length let resultPtr := add(result, 32) // run over the input, 4 characters at a time for {} lt(dataPtr, endPtr) {} { // read 4 characters dataPtr := add(dataPtr, 4) let input := mload(dataPtr) // write 3 bytes let output := add( add( shl(18, and(mload(add(tablePtr, and(shr(24, input), 0xFF))), 0xFF)), shl(12, and(mload(add(tablePtr, and(shr(16, input), 0xFF))), 0xFF))), add( shl( 6, and(mload(add(tablePtr, and(shr( 8, input), 0xFF))), 0xFF)), and(mload(add(tablePtr, and( input , 0xFF))), 0xFF) ) ) mstore(resultPtr, shl(232, output)) resultPtr := add(resultPtr, 3) } } return result; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./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 pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } // Check if the computed hash (root) is equal to the provided root return computedHash == root; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Assumes the number of issuable tokens (collection size) is capped and fits in a uint128. * * Does not support burning tokens to address(0). */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; struct TokenOwnership { address addr; uint64 startTimestamp; } struct AddressData { uint128 balance; uint128 numberMinted; } uint256 private currentIndex = 0; uint256 internal immutable collectionSize; uint256 internal immutable maxBatchSize; // Token name string private _name; // Token symbol string private _symbol; //DID NOT END UP USING. KEEPING IT HERE FOR SENTIMENTAL + SYMBOLIC REASONS. mapping(uint256 => string) private _tokenURIs; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details. mapping(uint256 => TokenOwnership) private _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // 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 * `maxBatchSize` refers to how much a minter can mint at a time. * `collectionSize_` refers to how many tokens are in the collection. */ constructor( string memory name_, string memory symbol_, uint256 maxBatchSize_, uint256 collectionSize_ ) { require( collectionSize_ > 0, "ERC721: collection must have a nonzero supply" ); require(maxBatchSize_ > 0, "ERC721: max batch size must be nonzero"); _name = name_; _symbol = symbol_; maxBatchSize = maxBatchSize_; collectionSize = collectionSize_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { return currentIndex; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { require(index < totalSupply(), "ERC721: global index out of bounds"); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(collectionSize). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { require(index < balanceOf(owner), "ERC721: owner index out of bounds"); uint256 numMintedSoFar = totalSupply(); uint256 tokenIdsIdx = 0; address currOwnershipAddr = address(0); for (uint256 i = 0; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } revert("ERC721: unable to get token of owner by index"); } /** * @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 || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { require( owner != address(0), "ERC721: number minted query for the zero address" ); return uint256(_addressData[owner].numberMinted); } function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { require(_exists(tokenId), "ERC721: owner query for nonexistent token"); uint256 lowestTokenToCheck; if (tokenId >= maxBatchSize) { lowestTokenToCheck = tokenId - maxBatchSize + 1; } for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) { TokenOwnership memory ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } revert("ERC721: unable to determine the owner of token"); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @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; } //DID NOT END UP USING. KEEPING IT HERE FOR SENTIMENTAL + SYMBOLIC REASONS. /** * @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 _tokenURI = _tokenURIs[tokenId]; return _tokenURI; } //DID NOT END UP USING. KEEPING IT HERE FOR SENTIMENTAL + SYMBOLIC REASONS. function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require( _exists(tokenId), "ERC721URIStorage: URI set of nonexistent token" ); _tokenURIs[tokenId] = _tokenURI; } /** * @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 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, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view 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 override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public override { _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`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < currentIndex; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ""); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - there must be `quantity` tokens remaining unminted in the total collection. * - `to` cannot be the zero address. * - `quantity` cannot be larger than the max batch size. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = currentIndex; require(to != address(0), "ERC721: mint to the zero address"); // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering. require(!_exists(startTokenId), "ERC721: token already minted"); require(quantity <= maxBatchSize, "ERC721: quantity to mint too high"); _beforeTokenTransfers(address(0), to, startTokenId, quantity); AddressData memory addressData = _addressData[to]; _addressData[to] = AddressData( addressData.balance + uint128(quantity), addressData.numberMinted + uint128(quantity) ); _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp)); uint256 updatedIndex = startTokenId; for (uint256 i = 0; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); require( _checkOnERC721Received(address(0), to, updatedIndex, _data), "ERC721: transfer to non ERC721Receiver implementer" ); updatedIndex++; } currentIndex = updatedIndex; _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || getApproved(tokenId) == _msgSender() || isApprovedForAll(prevOwnership.addr, _msgSender())); require( isApprovedOrOwner, "ERC721: transfer caller is not owner nor approved" ); require( prevOwnership.addr == from, "ERC721: transfer from incorrect owner" ); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp)); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { if (_exists(nextTokenId)) { _ownerships[nextTokenId] = TokenOwnership( prevOwnership.addr, prevOwnership.startTimestamp ); } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } uint256 public nextOwnerToExplicitlySet = 0; /** * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf(). */ function _setOwnersExplicit(uint256 quantity) internal { uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet; require(quantity > 0, "quantity must be nonzero"); uint256 endIndex = oldNextOwnerToSet + quantity - 1; if (endIndex > collectionSize - 1) { endIndex = collectionSize - 1; } // We know if the last one in the group exists, all in the group exist, due to serial ordering. require(_exists(endIndex), "not enough minted yet for this cleanup"); for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) { if (_ownerships[i].addr == address(0)) { TokenOwnership memory ownership = ownershipOf(i); _ownerships[i] = TokenOwnership( ownership.addr, ownership.startTimestamp ); } } nextOwnerToExplicitlySet = endIndex + 1; } /** * @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(to).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 a set of serially-ordered token ids are about to be transferred. This includes minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * 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`. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "istanbul", "libraries": {}, "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":false,"internalType":"uint256","name":"_itemID","type":"uint256"}],"name":"Kustomized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"AMOUNT_FOR_METAKOUNCIL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"features","outputs":[{"internalType":"uint8","name":"backgroundColor","type":"uint8"},{"internalType":"uint8","name":"bodyColor","type":"uint8"},{"internalType":"uint8","name":"skinColor","type":"uint8"},{"internalType":"uint8","name":"hairColor","type":"uint8"},{"internalType":"uint8","name":"mouthColor","type":"uint8"},{"internalType":"uint8","name":"hairStyle","type":"uint8"},{"internalType":"uint8","name":"mouthStyle","type":"uint8"},{"internalType":"uint8","name":"miscStyle1","type":"uint8"},{"internalType":"uint8","name":"miscStyle1Color","type":"uint8"},{"internalType":"uint8","name":"miscStyle2","type":"uint8"},{"internalType":"uint8","name":"miscStyle2Color","type":"uint8"},{"internalType":"uint8","name":"eyesColor","type":"uint8"},{"internalType":"string","name":"customText","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"finality","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getOwnershipData","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"}],"internalType":"struct ERC721.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_itemID","type":"uint256"},{"internalType":"uint8[]","name":"selection_","type":"uint8[]"},{"internalType":"string","name":"_customText","type":"string"}],"name":"kustomize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"publicClaim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addr","type":"address[]"}],"name":"setFeaturesAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_itemID","type":"uint256"}],"name":"setFinality","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"setOwnersExplicit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"setPresaleMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"saleIsActive","type":"bool"}],"name":"setSaleIsActive","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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"svgBackgroundColor","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"whitelistClaim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawMoney","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c060405260006001819055600955600e805460ff191690553480156200002557600080fd5b50604051806040016040528060088152602001674d4554414b41595360c01b815250604051806040016040528060018152602001604b60f81b81525060056122b8620000806200007a62000b9760201b60201c565b62000b9b565b60008111620000ac5760405162461bcd60e51b8152600401620000a39062000c91565b60405180910390fd5b60008211620000cf5760405162461bcd60e51b8152600401620000a39062000cde565b8351620000e490600290602087019062000beb565b508251620000fa90600390602086019062000beb565b5060a091909152608052505060408051808201909152600a81526911993232181a9a91179f60b11b60208281019182526000805260109052905162000161917f6e0956cda88cad152e89927e53611735b61a5c762d1428573c6931b0a5efcb019162000beb565b5060408051808201909152600a81526911981cb098999b91179f60b11b60208083019182526001600052601090529051620001be917f8c6065603763fec3f5742441d3833f3f43b982453612d76adb39a885e3006b5f9162000beb565b5060408051808201909152600a81526911981b1a9a999a91179f60b11b602080830191825260026000526010905290516200021b917f853b2fefe141400fef543280f93d98bd49996069f632d0d20236afeeed8e46a29162000beb565b5060408051808201909152600a815269119c1c31181a3111179f60b11b6020808301918252600360005260109052905162000278917fb3edd0d534d647cffdae9f1294f11ad21f3fcf2814bea44c92bbb8d384a57d9e9162000beb565b5060408051808201909152600a8152691198183333333311179f60b11b60208083019182526004600052601090529051620002d5917f1588ac671d87f82adc0e6ae8ab009c0de98f92a20243897597e566bc59b9c1269162000beb565b5060408051808201909152600a815269119ab0b1b2b31991179f60b11b6020808301918252600560005260109052905162000332917f61a7346ab5ebdac457db2a901eaf1b805239b6049a1b2f34bab85e2e274f39cb9162000beb565b5060408051808201909152600a8152691198181a98333311179f60b11b602080830191825260066000526010905290516200038f917f20edfb71820f6f00f6a84ccfefb91587cd9f849f8349b0a3182a4795899d9cd99162000beb565b5060408051808201909152600a815269119a1a9a9cb1b191179f60b11b60208083019182526007600052601090529051620003ec917f4ef6145e44e4298293af15ae5f84f922a836b1d6db608fd5008f32a528b312a99162000beb565b5060408051808201909152600a81526911999a1a9b1c3111179f60b11b6020808301918252600860005260109052905162000449917f5f04e77c60ed37290f5789e2e9c5d396103f3c4b14614065cbb4c8362609d5a59162000beb565b5060408051808201909152600a815269119c309931329911179f60b11b60208083019182526009600052601090529051620004a6917fa8197f9f3066d467dba941614f445cf878e0beb059ed920f6258667ed2470eb89162000beb565b5060408051808201909152600a80825269119b311ab11c9a91179f60b11b60208084019182526000929092526010909152905162000506917fbbe6df1631c6a5c37158096bc15825d83d22eaca9ac1e829be6dfcdebed1d2d79162000beb565b5060408051808201909152600a81526911b11a9b1ab09b91179f60b11b6020808301918252600b60005260109052905162000563917f222281f8a778a50c678b18290b6f1f76b73341460456cd404319acd135fca4779162000beb565b5060408051808201909152600a81526911b3331c1832b211179f60b11b6020808301918252600c600052601090529051620005c0917f1c47f412c035acfb11780222aae71bf1bbf164d6655f4eb426a4fdb92a17a3239162000beb565b5060408051808201909152600a81526911b333319831b111179f60b11b6020808301918252600d6000526010905290516200061d917fdfb340902d3967fa50e8165d4f7a13c9cb160eea8fb21544939c9a839ac4b6c49162000beb565b5060408051808201909152600a81526911b330b1b2b0b191179f60b11b6020808301918252600e6000526010905290516200067a917fd331405802b48c62503c15f58c7a0f7d4e115b3f84eaa7ece1215aeb38f6b4bf9162000beb565b5060408051808201909152600a81526911b2333333181811179f60b11b6020808301918252600f600052601090529051620006d7917fad6509bb0b6dc44cf2f1c6595da7ff5ec660b594001258d15cd32de4206f0af09162000beb565b5060408051808201909152600a81526911b3333319981811179f60b11b6020808301918252601060008190529052905162000734917f70245aa8eee00889cc059fdc11a53867c856b61f1cf8bc3ee4f4442d6b5c3c379162000beb565b5060408051808201909152600a81526911b333321b981811179f60b11b6020808301918252601160005260109052905162000791917f28f973f655c78d879d00767376b860c7f1ff781d69e5cd4aa2f5a99e2232013c9162000beb565b5060408051808201909152600a81526911b333309a981811179f60b11b60208083019182526012600052601090529051620007ee917fe397cf9706f522dafff518f3ae63b4cdcabf8a93293fcc829843d749f8151bb09162000beb565b5060408051808201909152600a815269119c1c9b191a9c11179f60b11b602080830191825260136000526010905290516200084b917fab6e88ec9844f266cae57004e7e0869495b951c20b7a4491e795bfa666c3d0299162000beb565b5060408051808201909152600a815269119c9a1a9b189811179f60b11b60208083019182526014600052601090529051620008a8917ff2ef7423a23268829f7e276c7aa619cf68f387174646eff25875ddeaf25728cf9162000beb565b5060408051808201909152600a815269119cb11919999a91179f60b11b6020808301918252601560005260109052905162000905917f8294d19f19ce9e7bf02c71dfe439d6f4bd541da5420906cfbbfddab7cb8db4089162000beb565b5060408051808201909152600a81526911b1189a181a1a11179f60b11b6020808301918252601660005260109052905162000962917f0f6fff3ea167d08663dbe8ddca80acc3c2e6f0884f88b2c3e1079c8ff594aff79162000beb565b5060408051808201909152600a81526911b3331818181811179f60b11b60208083019182526017600052601090529051620009bf917f9aa6a49c6b1dd53fa788138140c614400cb612bfc140922391a01a257aea64779162000beb565b5060408051808201909152600a81526911b23318b11a1c91179f60b11b6020808301918252601860005260109052905162000a1c917fec36b270884881497ed01a6e28428d444d4e38741ff57c7af5c65e2827f082379162000beb565b5060408051808201909152600a81526911b31b989c1b1991179f60b11b6020808301918252601960005260109052905162000a79917f2c6f29572532cd20b1a17145bd8496ebea7b1554992d0fbccbfbe0a21c14e8509162000beb565b5060408051808201909152600a815269119c991c329c3291179f60b11b6020808301918252601a60005260109052905162000ad6917fe1baf585e0825311462739c8cc41b4d7f98345f90a6ae705ba41233ec36083ff9162000beb565b5060408051808201909152600a81526911b3333333333311179f60b11b6020808301918252601b60005260109052905162000b33917f9d844845637105979080adcc6d8566882044e756551cde773c7fd318158826d89162000beb565b5060408051808201909152600a8152691198181818181811179f60b11b6020808301918252601c60005260109052905162000b90917fae0b5a910336d0d6989004957e826e0ed2103c6a9b899f946f83b68213bf45ab9162000beb565b5062000d61565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b82805462000bf99062000d24565b90600052602060002090601f01602090048101928262000c1d576000855562000c68565b82601f1062000c3857805160ff191683800117855562000c68565b8280016001018555821562000c68579182015b8281111562000c6857825182559160200191906001019062000c4b565b5062000c7692915062000c7a565b5090565b5b8082111562000c76576000815560010162000c7b565b6020808252602d908201527f4552433732313a20636f6c6c656374696f6e206d75737420686176652061206e60408201526c6f6e7a65726f20737570706c7960981b606082015260800190565b60208082526026908201527f4552433732313a206d61782062617463682073697a65206d757374206265206e6040820152656f6e7a65726f60d01b606082015260800190565b60028104600182168062000d3957607f821691505b6020821081141562000d5b57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a051615a3762000dbf60003960008181610c5b01528181610ca401528181610cdc01528181612b7f01528181612ba9015261324d0152600081816110060152818161242a015281816129e70152612a190152615a376000f3fe6080604052600436106102305760003560e01c8063715018a61161012e578063ac446002116100ab578063d7224ba01161006f578063d7224ba01461065d578063db4bec4414610672578063deb8cd3a14610692578063e985e9c5146106a7578063f2fde38b146106c757610230565b8063ac446002146105d5578063b88d4fde146105ea578063bf5de2991461060a578063c87b56dd1461062a578063d70eee5a1461064a57610230565b80639231ab2a116100f25780639231ab2a1461053e57806395d89b411461056b578063a030fd8014610580578063a035b1fe146105a0578063a22cb465146105b557610230565b8063715018a6146104a857806377ce5f69146104bd5780638da5cb5b146104dd5780638ede6f9f146104f25780638f5dac6e1461052b57610230565b80632d20fb60116101bc5780634f6ccce7116101805780634f6ccce7146104135780635d893ba0146104335780636352211e1461044857806369cd70561461046857806370a082311461048857610230565b80632d20fb601461037e5780632f745c591461039e5780632fc37ab2146103be578063375a069a146103d357806342842e0e146103f357610230565b8063095ea7b311610203578063095ea7b3146102dc5780630b0dae8c146102fc57806318160ddd1461031c57806323b872dd1461033e57806328d7b2761461035e57610230565b806301ffc9a71461023557806302c889891461026b57806306fdde031461028d578063081812fc146102af575b600080fd5b34801561024157600080fd5b506102556102503660046137c0565b6106e7565b6040516102629190613d88565b60405180910390f35b34801561027757600080fd5b5061028b61028636600461378e565b61074a565b005b34801561029957600080fd5b506102a26107a5565b6040516102629190613d9c565b3480156102bb57600080fd5b506102cf6102ca3660046137a8565b610837565b6040516102629190613d37565b3480156102e857600080fd5b5061028b6102f73660046136cf565b61087a565b34801561030857600080fd5b5061028b6103173660046136f8565b610913565b34801561032857600080fd5b50610331610a42565b6040516102629190613d93565b34801561034a57600080fd5b5061028b6103593660046135f3565b610a48565b34801561036a57600080fd5b5061028b6103793660046137a8565b610a53565b34801561038a57600080fd5b5061028b6103993660046137a8565b610a97565b3480156103aa57600080fd5b506103316103b93660046136cf565b610ae2565b3480156103ca57600080fd5b50610331610bdd565b3480156103df57600080fd5b5061028b6103ee3660046137a8565b610be3565b3480156103ff57600080fd5b5061028b61040e3660046135f3565b610d12565b34801561041f57600080fd5b5061033161042e3660046137a8565b610d2d565b34801561043f57600080fd5b50610255610d59565b34801561045457600080fd5b506102cf6104633660046137a8565b610d62565b34801561047457600080fd5b506102a26104833660046137a8565b610d74565b34801561049457600080fd5b506103316104a33660046135a7565b610e0e565b3480156104b457600080fd5b5061028b610e5b565b3480156104c957600080fd5b506102556104d83660046137a8565b610ea6565b3480156104e957600080fd5b506102cf610ebb565b3480156104fe57600080fd5b5061051261050d3660046137a8565b610eca565b6040516102629d9c9b9a99989796959493929190614624565b61028b6105393660046137a8565b610fe2565b34801561054a57600080fd5b5061055e6105593660046137a8565b611091565b60405161026291906145ed565b34801561057757600080fd5b506102a26110a2565b34801561058c57600080fd5b5061028b61059b3660046138e2565b6110b1565b3480156105ac57600080fd5b506103316117a4565b3480156105c157600080fd5b5061028b6105d03660046136a6565b6117b0565b3480156105e157600080fd5b5061028b61187e565b3480156105f657600080fd5b5061028b61060536600461362e565b611939565b34801561061657600080fd5b5061028b6106253660046137a8565b611972565b34801561063657600080fd5b506102a26106453660046137a8565b6119c6565b61028b61065836600461386a565b6123f8565b34801561066957600080fd5b50610331612557565b34801561067e57600080fd5b5061025561068d3660046135a7565b61255d565b34801561069e57600080fd5b50610331612572565b3480156106b357600080fd5b506102556106c23660046135c1565b612578565b3480156106d357600080fd5b5061028b6106e23660046135a7565b6125a6565b60006001600160e01b031982166380ac58cd60e01b148061071857506001600160e01b03198216635b5e139f60e01b145b8061073357506001600160e01b0319821663780e9d6360e01b145b80610742575061074282612614565b90505b919050565b61075261262d565b6001600160a01b0316610763610ebb565b6001600160a01b0316146107925760405162461bcd60e51b81526004016107899061431a565b60405180910390fd5b600e805460ff1916911515919091179055565b6060600280546107b490614858565b80601f01602080910402602001604051908101604052809291908181526020018280546107e090614858565b801561082d5780601f106108025761010080835404028352916020019161082d565b820191906000526020600020905b81548152906001019060200180831161081057829003601f168201915b5050505050905090565b600061084282612631565b61085e5760405162461bcd60e51b8152600401610789906142ce565b506000908152600760205260409020546001600160a01b031690565b600061088582610d62565b9050806001600160a01b0316836001600160a01b031614156108b95760405162461bcd60e51b81526004016107899061439e565b806001600160a01b03166108cb61262d565b6001600160a01b031614806108e757506108e7816106c261262d565b6109035760405162461bcd60e51b8152600401610789906140ca565b61090e838383612638565b505050565b61091b61262d565b6001600160a01b031661092c610ebb565b6001600160a01b0316146109525760405162461bcd60e51b81526004016107899061431a565b8060008151811061097357634e487b7160e01b600052603260045260246000fd5b6020026020010151600a60006101000a8154816001600160a01b0302191690836001600160a01b03160217905550806001815181106109c257634e487b7160e01b600052603260045260246000fd5b6020026020010151600b60006101000a8154816001600160a01b0302191690836001600160a01b0316021790555080600281518110610a1157634e487b7160e01b600052603260045260246000fd5b6020026020010151600c60006101000a8154816001600160a01b0302191690836001600160a01b0316021790555050565b60015490565b61090e838383612694565b610a5b61262d565b6001600160a01b0316610a6c610ebb565b6001600160a01b031614610a925760405162461bcd60e51b81526004016107899061431a565b600d55565b610a9f61262d565b6001600160a01b0316610ab0610ebb565b6001600160a01b031614610ad65760405162461bcd60e51b81526004016107899061431a565b610adf816129a6565b50565b6000610aed83610e0e565b8210610b0b5760405162461bcd60e51b815260040161078990613fe9565b6000610b15610a42565b905060008060005b83811015610bbe576000818152600560209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b03169183019190915215610b6f57805192505b876001600160a01b0316836001600160a01b03161415610bab5786841415610b9d57509350610bd792505050565b83610ba781614893565b9450505b5080610bb681614893565b915050610b1d565b5060405162461bcd60e51b815260040161078990614491565b92915050565b600d5481565b610beb61262d565b6001600160a01b0316610bfc610ebb565b6001600160a01b031614610c225760405162461bcd60e51b81526004016107899061431a565b61011881610c2e610a42565b610c38919061478b565b1115610c565760405162461bcd60e51b81526004016107899061445a565b610c807f0000000000000000000000000000000000000000000000000000000000000000826148ae565b15610c9d5760405162461bcd60e51b815260040161078990613daf565b6000610cc97f0000000000000000000000000000000000000000000000000000000000000000836147a3565b905060005b8181101561090e57610d00337f0000000000000000000000000000000000000000000000000000000000000000612b30565b80610d0a81614893565b915050610cce565b61090e83838360405180602001604052806000815250611939565b6000610d37610a42565b8210610d555760405162461bcd60e51b815260040161078990613f2b565b5090565b600e5460ff1681565b6000610d6d82612b4e565b5192915050565b60106020526000908152604090208054610d8d90614858565b80601f0160208091040260200160405190810160405280929190818152602001828054610db990614858565b8015610e065780601f10610ddb57610100808354040283529160200191610e06565b820191906000526020600020905b815481529060010190602001808311610de957829003601f168201915b505050505081565b60006001600160a01b038216610e365760405162461bcd60e51b8152600401610789906141cf565b506001600160a01b03166000908152600660205260409020546001600160801b031690565b610e6361262d565b6001600160a01b0316610e74610ebb565b6001600160a01b031614610e9a5760405162461bcd60e51b81526004016107899061431a565b610ea46000612c60565b565b60116020526000908152604090205460ff1681565b6000546001600160a01b031690565b600f602052600090815260409020805460018201805460ff808416946101008504821694620100008104831694630100000082048416946401000000008304851694650100000000008404811694600160301b8504821694600160381b8104831694600160401b8204841694600160481b8304851694600160501b8404811694600160581b90940416929190610f5f90614858565b80601f0160208091040260200160405190810160405280929190818152602001828054610f8b90614858565b8015610fd85780601f10610fad57610100808354040283529160200191610fd8565b820191906000526020600020905b815481529060010190602001808311610fbb57829003601f168201915b505050505090508d565b600e5460ff166110045760405162461bcd60e51b815260040161078990613e3c565b7f00000000000000000000000000000000000000000000000000000000000000008161102e610a42565b611038919061478b565b11156110565760405162461bcd60e51b8152600401610789906140a5565b3461106967013bc3e39ba30000836147b7565b11156110875760405162461bcd60e51b81526004016107899061457c565b610adf3382612b30565b611099613475565b61074282612b4e565b6060600380546107b490614858565b6110ba83610d62565b6001600160a01b0316336001600160a01b0316146110ea5760405162461bcd60e51b815260040161078990614524565b6110f381612cb0565b15156001146111145760405162461bcd60e51b815260040161078990613df8565b60008381526011602052604090205460ff16156111435760405162461bcd60e51b815260040161078990614127565b601d8260008151811061116657634e487b7160e01b600052603260045260246000fd5b602002602001015160ff161080156111a95750601d8260018151811061119c57634e487b7160e01b600052603260045260246000fd5b602002602001015160ff16105b80156111e05750601d826002815181106111d357634e487b7160e01b600052603260045260246000fd5b602002602001015160ff16105b80156112175750601d8260038151811061120a57634e487b7160e01b600052603260045260246000fd5b602002602001015160ff16105b801561124e5750601d8260048151811061124157634e487b7160e01b600052603260045260246000fd5b602002602001015160ff16105b80156112855750601d8260058151811061127857634e487b7160e01b600052603260045260246000fd5b602002602001015160ff16105b80156112bc5750601d826006815181106112af57634e487b7160e01b600052603260045260246000fd5b602002602001015160ff16105b80156112f35750601d826007815181106112e657634e487b7160e01b600052603260045260246000fd5b602002602001015160ff16105b801561132a5750601d8260088151811061131d57634e487b7160e01b600052603260045260246000fd5b602002602001015160ff16105b80156113615750601d8260098151811061135457634e487b7160e01b600052603260045260246000fd5b602002602001015160ff16105b80156113985750601d82600a8151811061138b57634e487b7160e01b600052603260045260246000fd5b602002602001015160ff16105b80156113cf5750601d82600b815181106113c257634e487b7160e01b600052603260045260246000fd5b602002602001015160ff16105b6113eb5760405162461bcd60e51b8152600401610789906143df565b6000838152600f6020526040812083519091849161141957634e487b7160e01b600052603260045260246000fd5b6020908102919091010151815460ff191660ff90911617815582518390600190811061145557634e487b7160e01b600052603260045260246000fd5b6020908102919091010151815460ff9091166101000261ff001990911617815582518390600290811061149857634e487b7160e01b600052603260045260246000fd5b6020908102919091010151815460ff909116620100000262ff0000199091161781558251839060039081106114dd57634e487b7160e01b600052603260045260246000fd5b6020908102919091010151815460ff90911663010000000263ff0000001990911617815582518390600490811061152457634e487b7160e01b600052603260045260246000fd5b6020908102919091010151815460ff9091166401000000000264ff000000001990911617815582518390600590811061156d57634e487b7160e01b600052603260045260246000fd5b6020908102919091010151815460ff909116650100000000000265ff0000000000199091161781558251839060069081106115b857634e487b7160e01b600052603260045260246000fd5b6020908102919091010151815460ff909116600160301b0266ff0000000000001990911617815582518390600790811061160257634e487b7160e01b600052603260045260246000fd5b6020908102919091010151815460ff909116600160381b0267ff000000000000001990911617815582518390600890811061164d57634e487b7160e01b600052603260045260246000fd5b6020908102919091010151815460ff909116600160401b0268ff00000000000000001990911617815582518390600990811061169957634e487b7160e01b600052603260045260246000fd5b6020908102919091010151815460ff909116600160481b0269ff0000000000000000001990911617815582518390600a9081106116e657634e487b7160e01b600052603260045260246000fd5b6020908102919091010151815460ff909116600160501b0260ff60501b1990911617815582518390600b90811061172d57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151825460ff909116600160581b0260ff60581b1990911617825582516117669160018401919085019061348c565b507f5820ce350c548d23c59482217bea16392feb28eb78e4ffcc4736e0c889a4ae81846040516117969190613d93565b60405180910390a150505050565b67013bc3e39ba3000081565b6117b861262d565b6001600160a01b0316826001600160a01b031614156117e95760405162461bcd60e51b81526004016107899061406e565b80600860006117f661262d565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561183a61262d565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516118729190613d88565b60405180910390a35050565b61188661262d565b6001600160a01b0316611897610ebb565b6001600160a01b0316146118bd5760405162461bcd60e51b81526004016107899061431a565b6000336001600160a01b0316476040516118d690613d34565b60006040518083038185875af1925050503d8060008114611913576040519150601f19603f3d011682016040523d82523d6000602084013e611918565b606091505b5050905080610adf5760405162461bcd60e51b815260040161078990613f01565b611944848484612694565b61195084848484612d56565b61196c5760405162461bcd60e51b815260040161078990613e69565b50505050565b61197b81610d62565b6001600160a01b0316336001600160a01b0316146119ab5760405162461bcd60e51b815260040161078990614524565b6000908152601160205260409020805460ff19166001179055565b60606119d182612631565b6119ed5760405162461bcd60e51b81526004016107899061434f565b6000828152600f6020908152604080832081516101a081018352815460ff80821683526101008083048216968401969096526201000082048116948301949094526301000000810484166060830152640100000000810484166080830152650100000000008104841660a0830152600160301b8104841660c0830152600160381b8104841660e0830152600160401b8104841694820194909452600160481b84048316610120820152600160501b84048316610140820152600160581b90930490911661016083015260018101805461018084019190611acc90614858565b80601f0160208091040260200160405190810160405280929190818152602001828054611af890614858565b8015611b455780601f10611b1a57610100808354040283529160200191611b45565b820191906000526020600020905b815481529060010190602001808311611b2857829003601f168201915b50505050508152505090506000611b5b84612e72565b90506000611d3260405180610180016040528061014981526020016158b96101499139845160ff1660009081526010602052604090208054611b9c90614858565b80601f0160208091040260200160405190810160405280929190818152602001828054611bc890614858565b8015611c155780601f10611bea57610100808354040283529160200191611c15565b820191906000526020600020905b815481529060010190602001808311611bf857829003601f168201915b50505050506040518061036001604052806103348152602001614b4a610334913960208088015160ff1660009081526010909152604090208054611c5890614858565b80601f0160208091040260200160405190810160405280929190818152602001828054611c8490614858565b8015611cd15780601f10611ca657610100808354040283529160200191611cd1565b820191906000526020600020905b815481529060010190602001808311611cb457829003601f168201915b505050505060405180610100016040528060cd8152602001614a7d60cd913988610180015160405180610100016040528060d681526020016157e360d691398960405180610240016040528061021d81526020016155c661021d9139612f8c565b9050600061226160106000866040015160ff1681526020019081526020016000208054611d5e90614858565b80601f0160208091040260200160405190810160405280929190818152602001828054611d8a90614858565b8015611dd75780601f10611dac57610100808354040283529160200191611dd7565b820191906000526020600020905b815481529060010190602001808311611dba57829003601f168201915b50505060008a81526011602052604090205460ff16159150611e169050576040518061074001604052806107088152602001614ebe6107089139611e33565b604051806101a00160405280610162815260200161491b61016291395b61016087015160ff1660009081526010602052604090208054611e5590614858565b80601f0160208091040260200160405190810160405280929190818152602001828054611e8190614858565b8015611ece5780601f10611ea357610100808354040283529160200191611ece565b820191906000526020600020905b815481529060010190602001808311611eb157829003601f168201915b5050600b5460c08c0151604051630f748bab60e31b81526001600160a01b039092169450637ba45d589350611f07925090600401614616565b60006040518083038186803b158015611f1f57600080fd5b505afa158015611f33573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611f5b91908101906137f8565b608089015160ff1660009081526010602052604090208054611f7c90614858565b80601f0160208091040260200160405190810160405280929190818152602001828054611fa890614858565b8015611ff55780601f10611fca57610100808354040283529160200191611ff5565b820191906000526020600020905b815481529060010190602001808311611fd857829003601f168201915b5050600a5460e08e0151604051631411ac3160e31b81526001600160a01b03909216945063a08d6188935061202e925090600401614616565b60006040518083038186803b15801561204657600080fd5b505afa15801561205a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261208291908101906137f8565b6101008b015160ff16600090815260106020526040902080546120a490614858565b80601f01602080910402602001604051908101604052809291908181526020018280546120d090614858565b801561211d5780601f106120f25761010080835404028352916020019161211d565b820191906000526020600020905b81548152906001019060200180831161210057829003601f168201915b5050505050600a60009054906101000a90046001600160a01b03166001600160a01b031663a08d61888d61012001516040518263ffffffff1660e01b81526004016121689190614616565b60006040518083038186803b15801561218057600080fd5b505afa158015612194573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526121bc91908101906137f8565b6101408d015160ff16600090815260106020526040902080546121de90614858565b80601f016020809104026020016040519081016040528092919081815260200182805461220a90614858565b80156122575780601f1061222c57610100808354040283529160200191612257565b820191906000526020600020905b81548152906001019060200180831161223a57829003601f168201915b5050505050612f8c565b600c5460a086015160405163db82c22960e01b815292935060009261233792869286926001600160a01b039092169163db82c229916122a291600401614616565b60006040518083038186803b1580156122ba57600080fd5b505afa1580156122ce573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526122f691908101906137f8565b601060008a6060015160ff1681526020019081526020016000206040516020016123239493929190613ae7565b604051602081830303815290604052612fcd565b6040516020016123479190613caa565b60408051601f1981840301815291815260008981526011602052908120549192509060ff161561239357604051806040016040528060048152602001637472756560e01b8152506123b2565b6040518060400160405280600581526020016466616c736560d81b8152505b90506123cc85828460405160200161232393929190613bc5565b6040516020016123dc9190613cef565b6040516020818303038152906040529650505050505050919050565b3360009081526012602052604090205460ff16156124285760405162461bcd60e51b815260040161078990614297565b7f000000000000000000000000000000000000000000000000000000000000000083612452610a42565b61245c919061478b565b111561247a5760405162461bcd60e51b8152600401610789906140a5565b3461248d67013bc3e39ba30000856147b7565b11156124ab5760405162461bcd60e51b81526004016107899061457c565b6000336040516020016124be91906139fa565b60405160208183030381529060405280519060200120905061251783838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600d549150849050613141565b6125335760405162461bcd60e51b815260040161078990614554565b336000818152601260205260409020805460ff1916600117905561196c9085612b30565b60095481565b60126020526000908152604090205460ff1681565b61011881565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b6125ae61262d565b6001600160a01b03166125bf610ebb565b6001600160a01b0316146125e55760405162461bcd60e51b81526004016107899061431a565b6001600160a01b03811661260b5760405162461bcd60e51b815260040161078990613ebb565b610adf81612c60565b6001600160e01b031981166301ffc9a760e01b14919050565b3390565b6001541190565b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061269f82612b4e565b9050600081600001516001600160a01b03166126b961262d565b6001600160a01b031614806126ee57506126d161262d565b6001600160a01b03166126e384610837565b6001600160a01b0316145b8061270257508151612702906106c261262d565b9050806127215760405162461bcd60e51b815260040161078990614409565b846001600160a01b031682600001516001600160a01b0316146127565760405162461bcd60e51b815260040161078990613f6d565b6001600160a01b03841661277c5760405162461bcd60e51b81526004016107899061402a565b612789858585600161196c565b6127996000848460000151612638565b6001600160a01b03851660009081526006602052604081208054600192906127cb9084906001600160801b03166147d6565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b0386166000908152600660205260408120805460019450909261281791859116614760565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b0380871682526001600160401b03428116602080850191825260008981526005909152948520935184549151909216600160a01b0267ffffffffffffffff60a01b19929093166001600160a01b031990911617161790556128ac84600161478b565b6000818152600560205260409020549091506001600160a01b0316612950576128d481612631565b156129505760408051808201825284516001600160a01b0390811682526020808701516001600160401b0390811682850190815260008781526005909352949091209251835494516001600160a01b031990951692169190911767ffffffffffffffff60a01b1916600160a01b93909116929092029190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461299e868686600161196c565b505050505050565b600954816129c65760405162461bcd60e51b815260040161078990614198565b600060016129d4848461478b565b6129de91906147fe565b9050612a0b60017f00000000000000000000000000000000000000000000000000000000000000006147fe565b811115612a4057612a3d60017f00000000000000000000000000000000000000000000000000000000000000006147fe565b90505b612a4981612631565b612a655760405162461bcd60e51b8152600401610789906144de565b815b818111612b1c576000818152600560205260409020546001600160a01b0316612b0a576000612a9582612b4e565b60408051808201825282516001600160a01b0390811682526020938401516001600160401b0390811685840190815260008881526005909652939094209151825493516001600160a01b031990941691161767ffffffffffffffff60a01b1916600160a01b9290931691909102919091179055505b80612b1481614893565b915050612a67565b50612b2881600161478b565b600955505050565b612b4a8282604051806020016040528060008152506131fc565b5050565b612b56613475565b612b5f82612631565b612b7b5760405162461bcd60e51b815260040161078990614219565b60007f00000000000000000000000000000000000000000000000000000000000000008310612bdc57612bce7f0000000000000000000000000000000000000000000000000000000000000000846147fe565b612bd990600161478b565b90505b825b818110612c47576000818152600560209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b03169183019190915215612c34579250610745915050565b5080612c3f81614841565b915050612bde565b5060405162461bcd60e51b81526004016107899061414a565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080829050600881511115612cca576000915050610745565b60005b8151811015612d4c576000828281518110612cf857634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b0319169050600160fe1b81118015612d295750605b60f81b6001600160f81b03198216105b612d395760009350505050610745565b5080612d4481614893565b915050612ccd565b5060019392505050565b6000612d6a846001600160a01b031661346f565b15612e6657836001600160a01b031663150b7a02612d8661262d565b8786866040518563ffffffff1660e01b8152600401612da89493929190613d4b565b602060405180830381600087803b158015612dc257600080fd5b505af1925050508015612df2575060408051601f3d908101601f19168201909252612def918101906137dc565b60015b612e4c573d808015612e20576040519150601f19603f3d011682016040523d82523d6000602084013e612e25565b606091505b508051612e445760405162461bcd60e51b815260040161078990613e69565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612e6a565b5060015b949350505050565b606081612e9757506040805180820190915260018152600360fc1b6020820152610745565b8160005b8115612ec15780612eab81614893565b9150612eba9050600a836147a3565b9150612e9b565b6000816001600160401b03811115612ee957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612f13576020820181803683370190505b5090505b8415612e6a57612f286001836147fe565b9150612f35600a866148ae565b612f4090603061478b565b60f81b818381518110612f6357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612f85600a866147a3565b9450612f17565b6060898989898989898989604051602001612faf99989796959493929190613a25565b60405160208183030381529060405290509998505050505050505050565b6060815160001415612fee5750604080516020810190915260008152610745565b6000604051806060016040528060408152602001614e7e604091399050600060038451600261301d919061478b565b61302791906147a3565b6130329060046147b7565b9050600061304182602061478b565b6001600160401b0381111561306657634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613090576020820181803683370190505b509050818152600183018586518101602084015b818310156130fc576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f81168501518253506001016130a4565b600389510660018114613116576002811461312757613133565b613d3d60f01b600119830152613133565b603d60f81b6000198301525b509398975050505050505050565b600081815b85518110156131f157600086828151811061317157634e487b7160e01b600052603260045260246000fd5b602002602001015190508083116131b2578281604051602001613195929190613a17565b6040516020818303038152906040528051906020012092506131de565b80836040516020016131c5929190613a17565b6040516020818303038152906040528051906020012092505b50806131e981614893565b915050613146565b509092149392505050565b6001546001600160a01b0384166132255760405162461bcd60e51b815260040161078990614262565b61322e81612631565b1561324b5760405162461bcd60e51b815260040161078990613fb2565b7f000000000000000000000000000000000000000000000000000000000000000083111561328b5760405162461bcd60e51b8152600401610789906145ac565b613298600085838661196c565b6001600160a01b0384166000908152600660209081526040918290208251808401845290546001600160801b038082168352600160801b90910416918101919091528151808301909252805190919081906132f4908790614760565b6001600160801b031681526020018583602001516133129190614760565b6001600160801b039081169091526001600160a01b03808816600081815260066020908152604080832087518154988401518816600160801b029088166fffffffffffffffffffffffffffffffff199099169890981790961696909617909455845180860186529182526001600160401b034281168386019081528883526005909552948120915182549451909516600160a01b0267ffffffffffffffff60a01b19959093166001600160a01b031990941693909317939093161790915582905b8581101561345c5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46134206000888488612d56565b61343c5760405162461bcd60e51b815260040161078990613e69565b8161344681614893565b925050808061345490614893565b9150506133d3565b50600181905561299e600087858861196c565b3b151590565b604080518082019091526000808252602082015290565b82805461349890614858565b90600052602060002090601f0160209004810192826134ba5760008555613500565b82601f106134d357805160ff1916838001178555613500565b82800160010185558215613500579182015b828111156135005782518255916020019190600101906134e5565b50610d559291505b80821115610d555760008155600101613508565b600061352f61352a8461472d565b6146e1565b905082815283838301111561354357600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461074557600080fd5b8035801515811461074557600080fd5b600082601f830112613591578081fd5b6135a08383356020850161351c565b9392505050565b6000602082840312156135b8578081fd5b6135a08261355a565b600080604083850312156135d3578081fd5b6135dc8361355a565b91506135ea6020840161355a565b90509250929050565b600080600060608486031215613607578081fd5b6136108461355a565b925061361e6020850161355a565b9150604084013590509250925092565b60008060008060808587031215613643578081fd5b61364c8561355a565b935061365a6020860161355a565b92506040850135915060608501356001600160401b0381111561367b578182fd5b8501601f8101871361368b578182fd5b61369a8782356020840161351c565b91505092959194509250565b600080604083850312156136b8578182fd5b6136c18361355a565b91506135ea60208401613571565b600080604083850312156136e1578182fd5b6136ea8361355a565b946020939093013593505050565b6000602080838503121561370a578182fd5b82356001600160401b0381111561371f578283fd5b8301601f8101851361372f578283fd5b803561373d61352a8261470a565b8181528381019083850185840285018601891015613759578687fd5b8694505b838510156137825761376e8161355a565b83526001949094019391850191850161375d565b50979650505050505050565b60006020828403121561379f578081fd5b6135a082613571565b6000602082840312156137b9578081fd5b5035919050565b6000602082840312156137d1578081fd5b81356135a081614904565b6000602082840312156137ed578081fd5b81516135a081614904565b600060208284031215613809578081fd5b81516001600160401b0381111561381e578182fd5b8201601f8101841361382e578182fd5b805161383c61352a8261472d565b818152856020838501011115613850578384fd5b613861826020830160208601614815565b95945050505050565b60008060006040848603121561387e578081fd5b8335925060208401356001600160401b038082111561389b578283fd5b818601915086601f8301126138ae578283fd5b8135818111156138bc578384fd5b87602080830285010111156138cf578384fd5b6020830194508093505050509250925092565b6000806000606084860312156138f6578081fd5b833592506020808501356001600160401b0380821115613914578384fd5b818701915087601f830112613927578384fd5b813561393561352a8261470a565b81815284810190848601868402860187018c1015613951578788fd5b8795505b8386101561398157803560ff8116811461396d578889fd5b835260019590950194918601918601613955565b50965050506040870135925080831115613999578384fd5b50506139a786828701613581565b9150509250925092565b600081518084526139c9816020860160208601614815565b601f01601f19169290920160200192915050565b691e17b39f1e17b9bb339f60b11b8152600a0190565b60ff169052565b60609190911b6bffffffffffffffffffffffff1916815260140190565b918252602082015260400190565b60008a51613a37818460208f01614815565b8a5190830190613a4b818360208f01614815565b8a51613a5d8183850160208f01614815565b8a51929091010190613a73818360208d01614815565b8851613a858183850160208d01614815565b8851929091010190613a9b818360208b01614815565b8651613aad8183850160208b01614815565b8651929091010190613ac3818360208901614815565b8451613ad58183850160208901614815565b9101019b9a5050505050505050505050565b600085516020613afa8285838b01614815565b865191840191613b0d8184848b01614815565b8651920191613b1f8184848a01614815565b8554920191839060028104600180831680613b3b57607f831692505b858310811415613b5957634e487b7160e01b88526022600452602488fd5b808015613b6d5760018114613b7e57613baa565b60ff19851688528388019550613baa565b613b878b614754565b895b85811015613ba25781548a820152908401908801613b89565b505083880195505b5050505050613bb8816139dd565b9998505050505050505050565b683d913730b6b2911d1160b91b8152684d4554414b4159532d60b81b60098201528351600090613bfc816012850160208901614815565b7f222c202261747472696275746573223a5b7b2274726169745f7479706522203a6012918401918201527f202246696e616c697479222c202276616c756522203a2022000000000000000060328201528451613c5f81604a840160208901614815565b6d113eae96101134b6b0b3b2911d1160911b604a92909101918201528351613c8e816058840160208801614815565b61227d60f01b60589290910191820152605a0195945050505050565b60007f646174613a696d6167652f7376672b786d6c3b6261736536342c20000000000082528251613ce281601b850160208701614815565b91909101601b0192915050565b60007f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000082528251613d2781601d850160208701614815565b91909101601d0192915050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613d7e908301846139b1565b9695505050505050565b901515815260200190565b90815260200190565b6000602082526135a060208301846139b1565b60208082526029908201527f43414e204f4e4c59204d494e542041204d554c5449504c45204f46204d4158426040820152684154434853495a452160b81b606082015260800190565b60208082526024908201527f504c45415345204f4e4c592055534520312d38204341504954414c204c4554546040820152634552532160e01b606082015260800190565b60208082526013908201527253414c45204953204e4f54204143544956452160681b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526010908201526f5749544844524157204641494c45442160801b604082015260600190565b60208082526022908201527f4552433732313a20676c6f62616c20696e646578206f7574206f6620626f756e604082015261647360f01b606082015260800190565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526021908201527f4552433732313a206f776e657220696e646578206f7574206f6620626f756e646040820152607360f81b606082015260800190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252600b908201526a4d415820535550504c592160a81b604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b60208082526009908201526846494e414c4954592160b81b604082015260600190565b6020808252602e908201527f4552433732313a20756e61626c6520746f2064657465726d696e65207468652060408201526d37bbb732b91037b3103a37b5b2b760911b606082015260800190565b60208082526018908201527f7175616e74697479206d757374206265206e6f6e7a65726f0000000000000000604082015260600190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252601c908201527f414444524553532048415320414c524541445920434c41494d45442100000000604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526010908201526f4e4f205355434820464541545552452160801b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526018908201527f544f4f204d414e5920414c5245414459204d494e544544210000000000000000604082015260600190565b6020808252602d908201527f4552433732313a20756e61626c6520746f2067657420746f6b656e206f66206f60408201526c0eedccae440c4f240d2dcc8caf609b1b606082015260800190565b60208082526026908201527f6e6f7420656e6f756768206d696e7465642079657420666f722074686973206360408201526506c65616e75760d41b606082015260800190565b602080825260169082015275594f5520415245204e4f5420544845204f574e45522160501b604082015260600190565b6020808252600e908201526d494e56414c49442050524f4f462160901b604082015260600190565b602080825260169082015275494e434f525245435420414d4f554e542053454e542160501b604082015260600190565b60208082526021908201527f4552433732313a207175616e7469747920746f206d696e7420746f6f206869676040820152600d60fb1b606082015260800190565b81516001600160a01b031681526020918201516001600160401b03169181019190915260400190565b60ff91909116815260200190565b600060ff8f16825260ff8e16602083015260ff8d16604083015261464b606083018d6139f3565b614658608083018c6139f3565b61466560a083018b6139f3565b61467260c083018a6139f3565b61467f60e08301896139f3565b61468d6101008301886139f3565b61469b6101208301876139f3565b6146a96101408301866139f3565b6146b76101608301856139f3565b6101a06101808301526146ce6101a08301846139b1565b9f9e505050505050505050505050505050565b6040518181016001600160401b0381118282101715614702576147026148ee565b604052919050565b60006001600160401b03821115614723576147236148ee565b5060209081020190565b60006001600160401b03821115614746576147466148ee565b50601f01601f191660200190565b60009081526020902090565b60006001600160801b03808316818516808303821115614782576147826148c2565b01949350505050565b6000821982111561479e5761479e6148c2565b500190565b6000826147b2576147b26148d8565b500490565b60008160001904831182151516156147d1576147d16148c2565b500290565b60006001600160801b03838116908316818110156147f6576147f66148c2565b039392505050565b600082821015614810576148106148c2565b500390565b60005b83811015614830578181015183820152602001614818565b8381111561196c5750506000910152565b600081614850576148506148c2565b506000190190565b60028104600182168061486c57607f821691505b6020821081141561488d57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156148a7576148a76148c2565b5060010190565b6000826148bd576148bd6148d8565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610adf57600080fdfe3c7061746820643d224d333735302035373730206c30202d313230202d3132302030202d31323020302030202d3132302030202d3132302031323020302031323020302030202d3234302030202d323430203132302030203132302030203020323430203020323430203132302030203132302030203020313230203020313230202d3132302030202d3132302030203020313230203020313230202d3132302030202d31323020302030202d3132307a204d343839302035373730206c30202d313230202d3132302030202d31323020302030202d3132302030202d3132302031323020302031323020302030202d3234302030202d323430203132302030203132302030203020323430203020323430203132302030203132302030203020313230203020313230202d3132302030202d3132302030203020313230203020313230202d3132302030202d31323020302030202d3132307a222066696c6c3d223c67207472616e73666f726d3d227472616e736c61746528302e3030303030302c3838382e30303030303029207363616c6528302e3130303030302c2d302e31303030303029223e3c7465787420783d2234343438382220793d222d383830302220666f6e742d73697a653d223438303070782220666f6e742d66616d696c793d22696d706163742220666f6e742d7765696768743d22626f6c642220646f6d696e616e742d626173656c696e653d226d6964646c652220746578742d616e63686f723d226d6964646c65223e3c7061746820643d224d333533302033323730206c30202d313330202d3339352030202d33393520302030202d3133302030202d313330202d3531352030202d35313520302030202d3133302030202d313330202d3133302030202d31333020302030202d313331302030202d3133313020313330203020313330203020302031333130203020313331302035313520302035313520302030203133302030203133302033393520302033393520302030203133302030203133302039313020302039313020302030202d3133302030202d3133302033393520302033393520302030202d3133302030202d3133302035313520302035313520302030202d313331302030202d313331302031333020302031333020302030203133313020302031333130202d3133302030202d3133302030203020313330203020313330202d3531352030202d3531352030203020313330203020313330202d3339352030202d3339352030203020313330203020313330202d3931302030202d39313020302030202d3133307a204d3236313020363630206c30202d363630203133302030203133302030203020363630203020363630202d3133302030202d31333020302030202d3636307a204d3630313020363630206c30202d363630203133302030203133302030203020363630203020363630202d3133302030202d31333020302030202d3636307a222f3e203c7061746820643d224d333533302033303130206c30202d313330202d3339352030202d33393520302030202d3133302030202d313330202d3531352030202d35313520302030202d313331302030202d313331302034353020302034353020302030203636302030203636302031333020302031333020302030202d3636302030202d36363020313537302030203135373020302030203636302030203636302031333020302031333020302030202d3636302030202d3636302034353020302034353020302030203133313020302031333130202d3531352030202d3531352030203020313330203020313330202d3339352030202d3339352030203020313330203020313330202d3931302030202d39313020302030202d3133307a222066696c6c3d224142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c7061746820643d224d333733302035373930206c30202d313230202d3132302030202d31323020302030202d3134302030202d3134302031323020302031323020302030202d3234302030202d323430203134302030203134302030203020323430203020323430203132302030203132302030203020313430203020313430202d3132302030202d3132302030203020313230203020313230202d3134302030202d31343020302030202d3132307a206d323530202d3330206c30202d3132302031323020302031323020302030202d3131302030202d313130202d3132302030202d31323020302030202d3234302030202d323430202d3131302030202d3131302030203020323430203020323430202d3132302030202d31323020302030203131302030203131302031323020302031323020302030203132302030203132302031313020302031313020302030202d3132307a204d333739302035373330206c30202d313230202d3132302030202d31323020302030202d38302030202d38302031323020302031323020302030202d3234302030202d3234302038302030203830203020302032343020302032343020313230203020313230203020302038302030203830202d3132302030202d3132302030203020313230203020313230202d38302030202d383020302030202d3132307a206d313330202d3330206c30202d3132302031323020302031323020302030202d35302030202d3530202d3132302030202d31323020302030202d3234302030202d323430202d35302030202d35302030203020323430203020323430202d3132302030202d313230203020302035302030203530203132302030203132302030203020313230203020313230203530203020353020302030202d3132307a204d333835302035363730206c30202d313230202d313230203020632d3131332030202d313230202d31202d313230202d32302030202d31392037202d323020313230202d3230206c31323020302030202d323430206330202d3233332031202d323430203230202d3234302031392030203230203720323020323430206c302032343020313230203020633131332030203132302031203132302032302030203139202d37203230202d313230203230206c2d313230203020302031323020633020313133202d3120313230202d323020313230202d31392030202d3230202d37202d3230202d3132307a204d343837302035373930206c30202d313230202d3132302030202d31323020302030202d3134302030202d3134302031323020302031323020302030202d3234302030202d323430203134302030203134302030203020323430203020323430203132302030203132302030203020313430203020313430202d3132302030202d3132302030203020313230203020313230202d3134302030202d31343020302030202d3132307a206d323530202d3330206c30202d3132302031323020302031323020302030202d3131302030202d313130202d3132302030202d31323020302030202d3234302030202d323430202d3131302030202d3131302030203020323430203020323430202d3132302030202d31323020302030203131302030203131302031323020302031323020302030203132302030203132302031313020302031313020302030202d3132307a204d343933302035373330206c30202d313230202d3132302030202d31323020302030202d38302030202d38302031323020302031323020302030202d3234302030202d3234302038302030203830203020302032343020302032343020313230203020313230203020302038302030203830202d3132302030202d3132302030203020313230203020313230202d38302030202d383020302030202d3132307a206d313330202d3330206c30202d3132302031323020302031323020302030202d35302030202d3530202d3132302030202d31323020302030202d3234302030202d323430202d35302030202d35302030203020323430203020323430202d3132302030202d313230203020302035302030203530203132302030203132302030203020313230203020313230203530203020353020302030202d3132307a204d343939302035363730206c30202d313230202d313230203020632d3131332030202d313230202d31202d313230202d32302030202d31392037202d323020313230202d3230206c31323020302030202d323430206330202d3233332031202d323430203230202d3234302031392030203230203720323020323430206c302032343020313230203020633131332030203132302031203132302032302030203139202d37203230202d313230203230206c2d313230203020302031323020633020313133202d3120313230202d323020313230202d31392030202d3230202d37202d3230202d3132307a222066696c6c3d223c2f746578743e3c2f673e3c7061746820643d224d333133302035353430206c30202d313630302031303020302031303020302030202d3138352030202d3138352031393520302031393520302030202d38352030202d3835203133302030203133302030203020323135203020323135202d3139352030202d3139352030203020313835203020313835202d3130302030202d3130302030203020313334302030203133343020313035302030203130353020302030202d313334302030202d31333430202d3130302030202d31303020302030202d3138352030202d313835202d3139352030202d31393520302030202d3231352030202d323135203133302030203133302030203020383520302038352031393520302031393520302030203138352030203138352031303020302031303020302030203136303020302031363030202d313331302030202d3133313020302030202d313630307a222f3e203c7061746820643d224d333339302035353430206c30202d313334302031303020302031303020302030202d3138352030202d3138352031393520302031393520302030202d3231352030202d3231352034363020302034363020302030203231352030203231352031393520302031393520302030203138352030203138352031303020302031303020302030203133343020302031333430202d313035302030202d3130353020302030202d313334307a222066696c6c3d223c2f746578743e3c2f673e3c67207472616e73666f726d3d227472616e736c61746528302e3030303030302c3838382e30303030303029207363616c6528302e3130303030302c2d302e31303030303029223e3c7465787420783d2237313138382220793d222d31343438382220666f6e742d73697a653d223238383870782220666f6e742d66616d696c793d22696d706163742220666f6e742d7765696768743d22626f6c642220646f6d696e616e742d626173656c696e653d2263656e7465722220746578742d616e63686f723d22656e64223e3c7376672076657273696f6e3d22312e302220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667222077696474683d223838382e303030303030707422206865696768743d223838382e3030303030307074222076696577426f783d22302030203838382e303030303030203838382e30303030303022207072657365727665417370656374526174696f3d22784d6964594d6964206d656574223e203c67207472616e73666f726d3d227472616e736c61746528302e3030303030302c3838382e30303030303029207363616c6528302e3130303030302c2d302e31303030303029223e203c7061746820643d224d302034343430206c30202d3434343020343434302030203434343020302030203434343020302034343430202d343434302030202d3434343020302030202d343434307a222066696c6c3d22a2646970667358221220d0f5ecb86dc1ead3bc36f2de628cfd11a0a0e16ae5634bd1926d5c517bf38e9c64736f6c63430008000033
Deployed Bytecode
0x6080604052600436106102305760003560e01c8063715018a61161012e578063ac446002116100ab578063d7224ba01161006f578063d7224ba01461065d578063db4bec4414610672578063deb8cd3a14610692578063e985e9c5146106a7578063f2fde38b146106c757610230565b8063ac446002146105d5578063b88d4fde146105ea578063bf5de2991461060a578063c87b56dd1461062a578063d70eee5a1461064a57610230565b80639231ab2a116100f25780639231ab2a1461053e57806395d89b411461056b578063a030fd8014610580578063a035b1fe146105a0578063a22cb465146105b557610230565b8063715018a6146104a857806377ce5f69146104bd5780638da5cb5b146104dd5780638ede6f9f146104f25780638f5dac6e1461052b57610230565b80632d20fb60116101bc5780634f6ccce7116101805780634f6ccce7146104135780635d893ba0146104335780636352211e1461044857806369cd70561461046857806370a082311461048857610230565b80632d20fb601461037e5780632f745c591461039e5780632fc37ab2146103be578063375a069a146103d357806342842e0e146103f357610230565b8063095ea7b311610203578063095ea7b3146102dc5780630b0dae8c146102fc57806318160ddd1461031c57806323b872dd1461033e57806328d7b2761461035e57610230565b806301ffc9a71461023557806302c889891461026b57806306fdde031461028d578063081812fc146102af575b600080fd5b34801561024157600080fd5b506102556102503660046137c0565b6106e7565b6040516102629190613d88565b60405180910390f35b34801561027757600080fd5b5061028b61028636600461378e565b61074a565b005b34801561029957600080fd5b506102a26107a5565b6040516102629190613d9c565b3480156102bb57600080fd5b506102cf6102ca3660046137a8565b610837565b6040516102629190613d37565b3480156102e857600080fd5b5061028b6102f73660046136cf565b61087a565b34801561030857600080fd5b5061028b6103173660046136f8565b610913565b34801561032857600080fd5b50610331610a42565b6040516102629190613d93565b34801561034a57600080fd5b5061028b6103593660046135f3565b610a48565b34801561036a57600080fd5b5061028b6103793660046137a8565b610a53565b34801561038a57600080fd5b5061028b6103993660046137a8565b610a97565b3480156103aa57600080fd5b506103316103b93660046136cf565b610ae2565b3480156103ca57600080fd5b50610331610bdd565b3480156103df57600080fd5b5061028b6103ee3660046137a8565b610be3565b3480156103ff57600080fd5b5061028b61040e3660046135f3565b610d12565b34801561041f57600080fd5b5061033161042e3660046137a8565b610d2d565b34801561043f57600080fd5b50610255610d59565b34801561045457600080fd5b506102cf6104633660046137a8565b610d62565b34801561047457600080fd5b506102a26104833660046137a8565b610d74565b34801561049457600080fd5b506103316104a33660046135a7565b610e0e565b3480156104b457600080fd5b5061028b610e5b565b3480156104c957600080fd5b506102556104d83660046137a8565b610ea6565b3480156104e957600080fd5b506102cf610ebb565b3480156104fe57600080fd5b5061051261050d3660046137a8565b610eca565b6040516102629d9c9b9a99989796959493929190614624565b61028b6105393660046137a8565b610fe2565b34801561054a57600080fd5b5061055e6105593660046137a8565b611091565b60405161026291906145ed565b34801561057757600080fd5b506102a26110a2565b34801561058c57600080fd5b5061028b61059b3660046138e2565b6110b1565b3480156105ac57600080fd5b506103316117a4565b3480156105c157600080fd5b5061028b6105d03660046136a6565b6117b0565b3480156105e157600080fd5b5061028b61187e565b3480156105f657600080fd5b5061028b61060536600461362e565b611939565b34801561061657600080fd5b5061028b6106253660046137a8565b611972565b34801561063657600080fd5b506102a26106453660046137a8565b6119c6565b61028b61065836600461386a565b6123f8565b34801561066957600080fd5b50610331612557565b34801561067e57600080fd5b5061025561068d3660046135a7565b61255d565b34801561069e57600080fd5b50610331612572565b3480156106b357600080fd5b506102556106c23660046135c1565b612578565b3480156106d357600080fd5b5061028b6106e23660046135a7565b6125a6565b60006001600160e01b031982166380ac58cd60e01b148061071857506001600160e01b03198216635b5e139f60e01b145b8061073357506001600160e01b0319821663780e9d6360e01b145b80610742575061074282612614565b90505b919050565b61075261262d565b6001600160a01b0316610763610ebb565b6001600160a01b0316146107925760405162461bcd60e51b81526004016107899061431a565b60405180910390fd5b600e805460ff1916911515919091179055565b6060600280546107b490614858565b80601f01602080910402602001604051908101604052809291908181526020018280546107e090614858565b801561082d5780601f106108025761010080835404028352916020019161082d565b820191906000526020600020905b81548152906001019060200180831161081057829003601f168201915b5050505050905090565b600061084282612631565b61085e5760405162461bcd60e51b8152600401610789906142ce565b506000908152600760205260409020546001600160a01b031690565b600061088582610d62565b9050806001600160a01b0316836001600160a01b031614156108b95760405162461bcd60e51b81526004016107899061439e565b806001600160a01b03166108cb61262d565b6001600160a01b031614806108e757506108e7816106c261262d565b6109035760405162461bcd60e51b8152600401610789906140ca565b61090e838383612638565b505050565b61091b61262d565b6001600160a01b031661092c610ebb565b6001600160a01b0316146109525760405162461bcd60e51b81526004016107899061431a565b8060008151811061097357634e487b7160e01b600052603260045260246000fd5b6020026020010151600a60006101000a8154816001600160a01b0302191690836001600160a01b03160217905550806001815181106109c257634e487b7160e01b600052603260045260246000fd5b6020026020010151600b60006101000a8154816001600160a01b0302191690836001600160a01b0316021790555080600281518110610a1157634e487b7160e01b600052603260045260246000fd5b6020026020010151600c60006101000a8154816001600160a01b0302191690836001600160a01b0316021790555050565b60015490565b61090e838383612694565b610a5b61262d565b6001600160a01b0316610a6c610ebb565b6001600160a01b031614610a925760405162461bcd60e51b81526004016107899061431a565b600d55565b610a9f61262d565b6001600160a01b0316610ab0610ebb565b6001600160a01b031614610ad65760405162461bcd60e51b81526004016107899061431a565b610adf816129a6565b50565b6000610aed83610e0e565b8210610b0b5760405162461bcd60e51b815260040161078990613fe9565b6000610b15610a42565b905060008060005b83811015610bbe576000818152600560209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b03169183019190915215610b6f57805192505b876001600160a01b0316836001600160a01b03161415610bab5786841415610b9d57509350610bd792505050565b83610ba781614893565b9450505b5080610bb681614893565b915050610b1d565b5060405162461bcd60e51b815260040161078990614491565b92915050565b600d5481565b610beb61262d565b6001600160a01b0316610bfc610ebb565b6001600160a01b031614610c225760405162461bcd60e51b81526004016107899061431a565b61011881610c2e610a42565b610c38919061478b565b1115610c565760405162461bcd60e51b81526004016107899061445a565b610c807f0000000000000000000000000000000000000000000000000000000000000005826148ae565b15610c9d5760405162461bcd60e51b815260040161078990613daf565b6000610cc97f0000000000000000000000000000000000000000000000000000000000000005836147a3565b905060005b8181101561090e57610d00337f0000000000000000000000000000000000000000000000000000000000000005612b30565b80610d0a81614893565b915050610cce565b61090e83838360405180602001604052806000815250611939565b6000610d37610a42565b8210610d555760405162461bcd60e51b815260040161078990613f2b565b5090565b600e5460ff1681565b6000610d6d82612b4e565b5192915050565b60106020526000908152604090208054610d8d90614858565b80601f0160208091040260200160405190810160405280929190818152602001828054610db990614858565b8015610e065780601f10610ddb57610100808354040283529160200191610e06565b820191906000526020600020905b815481529060010190602001808311610de957829003601f168201915b505050505081565b60006001600160a01b038216610e365760405162461bcd60e51b8152600401610789906141cf565b506001600160a01b03166000908152600660205260409020546001600160801b031690565b610e6361262d565b6001600160a01b0316610e74610ebb565b6001600160a01b031614610e9a5760405162461bcd60e51b81526004016107899061431a565b610ea46000612c60565b565b60116020526000908152604090205460ff1681565b6000546001600160a01b031690565b600f602052600090815260409020805460018201805460ff808416946101008504821694620100008104831694630100000082048416946401000000008304851694650100000000008404811694600160301b8504821694600160381b8104831694600160401b8204841694600160481b8304851694600160501b8404811694600160581b90940416929190610f5f90614858565b80601f0160208091040260200160405190810160405280929190818152602001828054610f8b90614858565b8015610fd85780601f10610fad57610100808354040283529160200191610fd8565b820191906000526020600020905b815481529060010190602001808311610fbb57829003601f168201915b505050505090508d565b600e5460ff166110045760405162461bcd60e51b815260040161078990613e3c565b7f00000000000000000000000000000000000000000000000000000000000022b88161102e610a42565b611038919061478b565b11156110565760405162461bcd60e51b8152600401610789906140a5565b3461106967013bc3e39ba30000836147b7565b11156110875760405162461bcd60e51b81526004016107899061457c565b610adf3382612b30565b611099613475565b61074282612b4e565b6060600380546107b490614858565b6110ba83610d62565b6001600160a01b0316336001600160a01b0316146110ea5760405162461bcd60e51b815260040161078990614524565b6110f381612cb0565b15156001146111145760405162461bcd60e51b815260040161078990613df8565b60008381526011602052604090205460ff16156111435760405162461bcd60e51b815260040161078990614127565b601d8260008151811061116657634e487b7160e01b600052603260045260246000fd5b602002602001015160ff161080156111a95750601d8260018151811061119c57634e487b7160e01b600052603260045260246000fd5b602002602001015160ff16105b80156111e05750601d826002815181106111d357634e487b7160e01b600052603260045260246000fd5b602002602001015160ff16105b80156112175750601d8260038151811061120a57634e487b7160e01b600052603260045260246000fd5b602002602001015160ff16105b801561124e5750601d8260048151811061124157634e487b7160e01b600052603260045260246000fd5b602002602001015160ff16105b80156112855750601d8260058151811061127857634e487b7160e01b600052603260045260246000fd5b602002602001015160ff16105b80156112bc5750601d826006815181106112af57634e487b7160e01b600052603260045260246000fd5b602002602001015160ff16105b80156112f35750601d826007815181106112e657634e487b7160e01b600052603260045260246000fd5b602002602001015160ff16105b801561132a5750601d8260088151811061131d57634e487b7160e01b600052603260045260246000fd5b602002602001015160ff16105b80156113615750601d8260098151811061135457634e487b7160e01b600052603260045260246000fd5b602002602001015160ff16105b80156113985750601d82600a8151811061138b57634e487b7160e01b600052603260045260246000fd5b602002602001015160ff16105b80156113cf5750601d82600b815181106113c257634e487b7160e01b600052603260045260246000fd5b602002602001015160ff16105b6113eb5760405162461bcd60e51b8152600401610789906143df565b6000838152600f6020526040812083519091849161141957634e487b7160e01b600052603260045260246000fd5b6020908102919091010151815460ff191660ff90911617815582518390600190811061145557634e487b7160e01b600052603260045260246000fd5b6020908102919091010151815460ff9091166101000261ff001990911617815582518390600290811061149857634e487b7160e01b600052603260045260246000fd5b6020908102919091010151815460ff909116620100000262ff0000199091161781558251839060039081106114dd57634e487b7160e01b600052603260045260246000fd5b6020908102919091010151815460ff90911663010000000263ff0000001990911617815582518390600490811061152457634e487b7160e01b600052603260045260246000fd5b6020908102919091010151815460ff9091166401000000000264ff000000001990911617815582518390600590811061156d57634e487b7160e01b600052603260045260246000fd5b6020908102919091010151815460ff909116650100000000000265ff0000000000199091161781558251839060069081106115b857634e487b7160e01b600052603260045260246000fd5b6020908102919091010151815460ff909116600160301b0266ff0000000000001990911617815582518390600790811061160257634e487b7160e01b600052603260045260246000fd5b6020908102919091010151815460ff909116600160381b0267ff000000000000001990911617815582518390600890811061164d57634e487b7160e01b600052603260045260246000fd5b6020908102919091010151815460ff909116600160401b0268ff00000000000000001990911617815582518390600990811061169957634e487b7160e01b600052603260045260246000fd5b6020908102919091010151815460ff909116600160481b0269ff0000000000000000001990911617815582518390600a9081106116e657634e487b7160e01b600052603260045260246000fd5b6020908102919091010151815460ff909116600160501b0260ff60501b1990911617815582518390600b90811061172d57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151825460ff909116600160581b0260ff60581b1990911617825582516117669160018401919085019061348c565b507f5820ce350c548d23c59482217bea16392feb28eb78e4ffcc4736e0c889a4ae81846040516117969190613d93565b60405180910390a150505050565b67013bc3e39ba3000081565b6117b861262d565b6001600160a01b0316826001600160a01b031614156117e95760405162461bcd60e51b81526004016107899061406e565b80600860006117f661262d565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561183a61262d565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516118729190613d88565b60405180910390a35050565b61188661262d565b6001600160a01b0316611897610ebb565b6001600160a01b0316146118bd5760405162461bcd60e51b81526004016107899061431a565b6000336001600160a01b0316476040516118d690613d34565b60006040518083038185875af1925050503d8060008114611913576040519150601f19603f3d011682016040523d82523d6000602084013e611918565b606091505b5050905080610adf5760405162461bcd60e51b815260040161078990613f01565b611944848484612694565b61195084848484612d56565b61196c5760405162461bcd60e51b815260040161078990613e69565b50505050565b61197b81610d62565b6001600160a01b0316336001600160a01b0316146119ab5760405162461bcd60e51b815260040161078990614524565b6000908152601160205260409020805460ff19166001179055565b60606119d182612631565b6119ed5760405162461bcd60e51b81526004016107899061434f565b6000828152600f6020908152604080832081516101a081018352815460ff80821683526101008083048216968401969096526201000082048116948301949094526301000000810484166060830152640100000000810484166080830152650100000000008104841660a0830152600160301b8104841660c0830152600160381b8104841660e0830152600160401b8104841694820194909452600160481b84048316610120820152600160501b84048316610140820152600160581b90930490911661016083015260018101805461018084019190611acc90614858565b80601f0160208091040260200160405190810160405280929190818152602001828054611af890614858565b8015611b455780601f10611b1a57610100808354040283529160200191611b45565b820191906000526020600020905b815481529060010190602001808311611b2857829003601f168201915b50505050508152505090506000611b5b84612e72565b90506000611d3260405180610180016040528061014981526020016158b96101499139845160ff1660009081526010602052604090208054611b9c90614858565b80601f0160208091040260200160405190810160405280929190818152602001828054611bc890614858565b8015611c155780601f10611bea57610100808354040283529160200191611c15565b820191906000526020600020905b815481529060010190602001808311611bf857829003601f168201915b50505050506040518061036001604052806103348152602001614b4a610334913960208088015160ff1660009081526010909152604090208054611c5890614858565b80601f0160208091040260200160405190810160405280929190818152602001828054611c8490614858565b8015611cd15780601f10611ca657610100808354040283529160200191611cd1565b820191906000526020600020905b815481529060010190602001808311611cb457829003601f168201915b505050505060405180610100016040528060cd8152602001614a7d60cd913988610180015160405180610100016040528060d681526020016157e360d691398960405180610240016040528061021d81526020016155c661021d9139612f8c565b9050600061226160106000866040015160ff1681526020019081526020016000208054611d5e90614858565b80601f0160208091040260200160405190810160405280929190818152602001828054611d8a90614858565b8015611dd75780601f10611dac57610100808354040283529160200191611dd7565b820191906000526020600020905b815481529060010190602001808311611dba57829003601f168201915b50505060008a81526011602052604090205460ff16159150611e169050576040518061074001604052806107088152602001614ebe6107089139611e33565b604051806101a00160405280610162815260200161491b61016291395b61016087015160ff1660009081526010602052604090208054611e5590614858565b80601f0160208091040260200160405190810160405280929190818152602001828054611e8190614858565b8015611ece5780601f10611ea357610100808354040283529160200191611ece565b820191906000526020600020905b815481529060010190602001808311611eb157829003601f168201915b5050600b5460c08c0151604051630f748bab60e31b81526001600160a01b039092169450637ba45d589350611f07925090600401614616565b60006040518083038186803b158015611f1f57600080fd5b505afa158015611f33573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611f5b91908101906137f8565b608089015160ff1660009081526010602052604090208054611f7c90614858565b80601f0160208091040260200160405190810160405280929190818152602001828054611fa890614858565b8015611ff55780601f10611fca57610100808354040283529160200191611ff5565b820191906000526020600020905b815481529060010190602001808311611fd857829003601f168201915b5050600a5460e08e0151604051631411ac3160e31b81526001600160a01b03909216945063a08d6188935061202e925090600401614616565b60006040518083038186803b15801561204657600080fd5b505afa15801561205a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261208291908101906137f8565b6101008b015160ff16600090815260106020526040902080546120a490614858565b80601f01602080910402602001604051908101604052809291908181526020018280546120d090614858565b801561211d5780601f106120f25761010080835404028352916020019161211d565b820191906000526020600020905b81548152906001019060200180831161210057829003601f168201915b5050505050600a60009054906101000a90046001600160a01b03166001600160a01b031663a08d61888d61012001516040518263ffffffff1660e01b81526004016121689190614616565b60006040518083038186803b15801561218057600080fd5b505afa158015612194573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526121bc91908101906137f8565b6101408d015160ff16600090815260106020526040902080546121de90614858565b80601f016020809104026020016040519081016040528092919081815260200182805461220a90614858565b80156122575780601f1061222c57610100808354040283529160200191612257565b820191906000526020600020905b81548152906001019060200180831161223a57829003601f168201915b5050505050612f8c565b600c5460a086015160405163db82c22960e01b815292935060009261233792869286926001600160a01b039092169163db82c229916122a291600401614616565b60006040518083038186803b1580156122ba57600080fd5b505afa1580156122ce573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526122f691908101906137f8565b601060008a6060015160ff1681526020019081526020016000206040516020016123239493929190613ae7565b604051602081830303815290604052612fcd565b6040516020016123479190613caa565b60408051601f1981840301815291815260008981526011602052908120549192509060ff161561239357604051806040016040528060048152602001637472756560e01b8152506123b2565b6040518060400160405280600581526020016466616c736560d81b8152505b90506123cc85828460405160200161232393929190613bc5565b6040516020016123dc9190613cef565b6040516020818303038152906040529650505050505050919050565b3360009081526012602052604090205460ff16156124285760405162461bcd60e51b815260040161078990614297565b7f00000000000000000000000000000000000000000000000000000000000022b883612452610a42565b61245c919061478b565b111561247a5760405162461bcd60e51b8152600401610789906140a5565b3461248d67013bc3e39ba30000856147b7565b11156124ab5760405162461bcd60e51b81526004016107899061457c565b6000336040516020016124be91906139fa565b60405160208183030381529060405280519060200120905061251783838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600d549150849050613141565b6125335760405162461bcd60e51b815260040161078990614554565b336000818152601260205260409020805460ff1916600117905561196c9085612b30565b60095481565b60126020526000908152604090205460ff1681565b61011881565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b6125ae61262d565b6001600160a01b03166125bf610ebb565b6001600160a01b0316146125e55760405162461bcd60e51b81526004016107899061431a565b6001600160a01b03811661260b5760405162461bcd60e51b815260040161078990613ebb565b610adf81612c60565b6001600160e01b031981166301ffc9a760e01b14919050565b3390565b6001541190565b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061269f82612b4e565b9050600081600001516001600160a01b03166126b961262d565b6001600160a01b031614806126ee57506126d161262d565b6001600160a01b03166126e384610837565b6001600160a01b0316145b8061270257508151612702906106c261262d565b9050806127215760405162461bcd60e51b815260040161078990614409565b846001600160a01b031682600001516001600160a01b0316146127565760405162461bcd60e51b815260040161078990613f6d565b6001600160a01b03841661277c5760405162461bcd60e51b81526004016107899061402a565b612789858585600161196c565b6127996000848460000151612638565b6001600160a01b03851660009081526006602052604081208054600192906127cb9084906001600160801b03166147d6565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b0386166000908152600660205260408120805460019450909261281791859116614760565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b0380871682526001600160401b03428116602080850191825260008981526005909152948520935184549151909216600160a01b0267ffffffffffffffff60a01b19929093166001600160a01b031990911617161790556128ac84600161478b565b6000818152600560205260409020549091506001600160a01b0316612950576128d481612631565b156129505760408051808201825284516001600160a01b0390811682526020808701516001600160401b0390811682850190815260008781526005909352949091209251835494516001600160a01b031990951692169190911767ffffffffffffffff60a01b1916600160a01b93909116929092029190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461299e868686600161196c565b505050505050565b600954816129c65760405162461bcd60e51b815260040161078990614198565b600060016129d4848461478b565b6129de91906147fe565b9050612a0b60017f00000000000000000000000000000000000000000000000000000000000022b86147fe565b811115612a4057612a3d60017f00000000000000000000000000000000000000000000000000000000000022b86147fe565b90505b612a4981612631565b612a655760405162461bcd60e51b8152600401610789906144de565b815b818111612b1c576000818152600560205260409020546001600160a01b0316612b0a576000612a9582612b4e565b60408051808201825282516001600160a01b0390811682526020938401516001600160401b0390811685840190815260008881526005909652939094209151825493516001600160a01b031990941691161767ffffffffffffffff60a01b1916600160a01b9290931691909102919091179055505b80612b1481614893565b915050612a67565b50612b2881600161478b565b600955505050565b612b4a8282604051806020016040528060008152506131fc565b5050565b612b56613475565b612b5f82612631565b612b7b5760405162461bcd60e51b815260040161078990614219565b60007f00000000000000000000000000000000000000000000000000000000000000058310612bdc57612bce7f0000000000000000000000000000000000000000000000000000000000000005846147fe565b612bd990600161478b565b90505b825b818110612c47576000818152600560209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b03169183019190915215612c34579250610745915050565b5080612c3f81614841565b915050612bde565b5060405162461bcd60e51b81526004016107899061414a565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080829050600881511115612cca576000915050610745565b60005b8151811015612d4c576000828281518110612cf857634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b0319169050600160fe1b81118015612d295750605b60f81b6001600160f81b03198216105b612d395760009350505050610745565b5080612d4481614893565b915050612ccd565b5060019392505050565b6000612d6a846001600160a01b031661346f565b15612e6657836001600160a01b031663150b7a02612d8661262d565b8786866040518563ffffffff1660e01b8152600401612da89493929190613d4b565b602060405180830381600087803b158015612dc257600080fd5b505af1925050508015612df2575060408051601f3d908101601f19168201909252612def918101906137dc565b60015b612e4c573d808015612e20576040519150601f19603f3d011682016040523d82523d6000602084013e612e25565b606091505b508051612e445760405162461bcd60e51b815260040161078990613e69565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612e6a565b5060015b949350505050565b606081612e9757506040805180820190915260018152600360fc1b6020820152610745565b8160005b8115612ec15780612eab81614893565b9150612eba9050600a836147a3565b9150612e9b565b6000816001600160401b03811115612ee957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612f13576020820181803683370190505b5090505b8415612e6a57612f286001836147fe565b9150612f35600a866148ae565b612f4090603061478b565b60f81b818381518110612f6357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612f85600a866147a3565b9450612f17565b6060898989898989898989604051602001612faf99989796959493929190613a25565b60405160208183030381529060405290509998505050505050505050565b6060815160001415612fee5750604080516020810190915260008152610745565b6000604051806060016040528060408152602001614e7e604091399050600060038451600261301d919061478b565b61302791906147a3565b6130329060046147b7565b9050600061304182602061478b565b6001600160401b0381111561306657634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613090576020820181803683370190505b509050818152600183018586518101602084015b818310156130fc576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f81168501518253506001016130a4565b600389510660018114613116576002811461312757613133565b613d3d60f01b600119830152613133565b603d60f81b6000198301525b509398975050505050505050565b600081815b85518110156131f157600086828151811061317157634e487b7160e01b600052603260045260246000fd5b602002602001015190508083116131b2578281604051602001613195929190613a17565b6040516020818303038152906040528051906020012092506131de565b80836040516020016131c5929190613a17565b6040516020818303038152906040528051906020012092505b50806131e981614893565b915050613146565b509092149392505050565b6001546001600160a01b0384166132255760405162461bcd60e51b815260040161078990614262565b61322e81612631565b1561324b5760405162461bcd60e51b815260040161078990613fb2565b7f000000000000000000000000000000000000000000000000000000000000000583111561328b5760405162461bcd60e51b8152600401610789906145ac565b613298600085838661196c565b6001600160a01b0384166000908152600660209081526040918290208251808401845290546001600160801b038082168352600160801b90910416918101919091528151808301909252805190919081906132f4908790614760565b6001600160801b031681526020018583602001516133129190614760565b6001600160801b039081169091526001600160a01b03808816600081815260066020908152604080832087518154988401518816600160801b029088166fffffffffffffffffffffffffffffffff199099169890981790961696909617909455845180860186529182526001600160401b034281168386019081528883526005909552948120915182549451909516600160a01b0267ffffffffffffffff60a01b19959093166001600160a01b031990941693909317939093161790915582905b8581101561345c5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46134206000888488612d56565b61343c5760405162461bcd60e51b815260040161078990613e69565b8161344681614893565b925050808061345490614893565b9150506133d3565b50600181905561299e600087858861196c565b3b151590565b604080518082019091526000808252602082015290565b82805461349890614858565b90600052602060002090601f0160209004810192826134ba5760008555613500565b82601f106134d357805160ff1916838001178555613500565b82800160010185558215613500579182015b828111156135005782518255916020019190600101906134e5565b50610d559291505b80821115610d555760008155600101613508565b600061352f61352a8461472d565b6146e1565b905082815283838301111561354357600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461074557600080fd5b8035801515811461074557600080fd5b600082601f830112613591578081fd5b6135a08383356020850161351c565b9392505050565b6000602082840312156135b8578081fd5b6135a08261355a565b600080604083850312156135d3578081fd5b6135dc8361355a565b91506135ea6020840161355a565b90509250929050565b600080600060608486031215613607578081fd5b6136108461355a565b925061361e6020850161355a565b9150604084013590509250925092565b60008060008060808587031215613643578081fd5b61364c8561355a565b935061365a6020860161355a565b92506040850135915060608501356001600160401b0381111561367b578182fd5b8501601f8101871361368b578182fd5b61369a8782356020840161351c565b91505092959194509250565b600080604083850312156136b8578182fd5b6136c18361355a565b91506135ea60208401613571565b600080604083850312156136e1578182fd5b6136ea8361355a565b946020939093013593505050565b6000602080838503121561370a578182fd5b82356001600160401b0381111561371f578283fd5b8301601f8101851361372f578283fd5b803561373d61352a8261470a565b8181528381019083850185840285018601891015613759578687fd5b8694505b838510156137825761376e8161355a565b83526001949094019391850191850161375d565b50979650505050505050565b60006020828403121561379f578081fd5b6135a082613571565b6000602082840312156137b9578081fd5b5035919050565b6000602082840312156137d1578081fd5b81356135a081614904565b6000602082840312156137ed578081fd5b81516135a081614904565b600060208284031215613809578081fd5b81516001600160401b0381111561381e578182fd5b8201601f8101841361382e578182fd5b805161383c61352a8261472d565b818152856020838501011115613850578384fd5b613861826020830160208601614815565b95945050505050565b60008060006040848603121561387e578081fd5b8335925060208401356001600160401b038082111561389b578283fd5b818601915086601f8301126138ae578283fd5b8135818111156138bc578384fd5b87602080830285010111156138cf578384fd5b6020830194508093505050509250925092565b6000806000606084860312156138f6578081fd5b833592506020808501356001600160401b0380821115613914578384fd5b818701915087601f830112613927578384fd5b813561393561352a8261470a565b81815284810190848601868402860187018c1015613951578788fd5b8795505b8386101561398157803560ff8116811461396d578889fd5b835260019590950194918601918601613955565b50965050506040870135925080831115613999578384fd5b50506139a786828701613581565b9150509250925092565b600081518084526139c9816020860160208601614815565b601f01601f19169290920160200192915050565b691e17b39f1e17b9bb339f60b11b8152600a0190565b60ff169052565b60609190911b6bffffffffffffffffffffffff1916815260140190565b918252602082015260400190565b60008a51613a37818460208f01614815565b8a5190830190613a4b818360208f01614815565b8a51613a5d8183850160208f01614815565b8a51929091010190613a73818360208d01614815565b8851613a858183850160208d01614815565b8851929091010190613a9b818360208b01614815565b8651613aad8183850160208b01614815565b8651929091010190613ac3818360208901614815565b8451613ad58183850160208901614815565b9101019b9a5050505050505050505050565b600085516020613afa8285838b01614815565b865191840191613b0d8184848b01614815565b8651920191613b1f8184848a01614815565b8554920191839060028104600180831680613b3b57607f831692505b858310811415613b5957634e487b7160e01b88526022600452602488fd5b808015613b6d5760018114613b7e57613baa565b60ff19851688528388019550613baa565b613b878b614754565b895b85811015613ba25781548a820152908401908801613b89565b505083880195505b5050505050613bb8816139dd565b9998505050505050505050565b683d913730b6b2911d1160b91b8152684d4554414b4159532d60b81b60098201528351600090613bfc816012850160208901614815565b7f222c202261747472696275746573223a5b7b2274726169745f7479706522203a6012918401918201527f202246696e616c697479222c202276616c756522203a2022000000000000000060328201528451613c5f81604a840160208901614815565b6d113eae96101134b6b0b3b2911d1160911b604a92909101918201528351613c8e816058840160208801614815565b61227d60f01b60589290910191820152605a0195945050505050565b60007f646174613a696d6167652f7376672b786d6c3b6261736536342c20000000000082528251613ce281601b850160208701614815565b91909101601b0192915050565b60007f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000082528251613d2781601d850160208701614815565b91909101601d0192915050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613d7e908301846139b1565b9695505050505050565b901515815260200190565b90815260200190565b6000602082526135a060208301846139b1565b60208082526029908201527f43414e204f4e4c59204d494e542041204d554c5449504c45204f46204d4158426040820152684154434853495a452160b81b606082015260800190565b60208082526024908201527f504c45415345204f4e4c592055534520312d38204341504954414c204c4554546040820152634552532160e01b606082015260800190565b60208082526013908201527253414c45204953204e4f54204143544956452160681b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526010908201526f5749544844524157204641494c45442160801b604082015260600190565b60208082526022908201527f4552433732313a20676c6f62616c20696e646578206f7574206f6620626f756e604082015261647360f01b606082015260800190565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526021908201527f4552433732313a206f776e657220696e646578206f7574206f6620626f756e646040820152607360f81b606082015260800190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252600b908201526a4d415820535550504c592160a81b604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b60208082526009908201526846494e414c4954592160b81b604082015260600190565b6020808252602e908201527f4552433732313a20756e61626c6520746f2064657465726d696e65207468652060408201526d37bbb732b91037b3103a37b5b2b760911b606082015260800190565b60208082526018908201527f7175616e74697479206d757374206265206e6f6e7a65726f0000000000000000604082015260600190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252601c908201527f414444524553532048415320414c524541445920434c41494d45442100000000604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526010908201526f4e4f205355434820464541545552452160801b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526018908201527f544f4f204d414e5920414c5245414459204d494e544544210000000000000000604082015260600190565b6020808252602d908201527f4552433732313a20756e61626c6520746f2067657420746f6b656e206f66206f60408201526c0eedccae440c4f240d2dcc8caf609b1b606082015260800190565b60208082526026908201527f6e6f7420656e6f756768206d696e7465642079657420666f722074686973206360408201526506c65616e75760d41b606082015260800190565b602080825260169082015275594f5520415245204e4f5420544845204f574e45522160501b604082015260600190565b6020808252600e908201526d494e56414c49442050524f4f462160901b604082015260600190565b602080825260169082015275494e434f525245435420414d4f554e542053454e542160501b604082015260600190565b60208082526021908201527f4552433732313a207175616e7469747920746f206d696e7420746f6f206869676040820152600d60fb1b606082015260800190565b81516001600160a01b031681526020918201516001600160401b03169181019190915260400190565b60ff91909116815260200190565b600060ff8f16825260ff8e16602083015260ff8d16604083015261464b606083018d6139f3565b614658608083018c6139f3565b61466560a083018b6139f3565b61467260c083018a6139f3565b61467f60e08301896139f3565b61468d6101008301886139f3565b61469b6101208301876139f3565b6146a96101408301866139f3565b6146b76101608301856139f3565b6101a06101808301526146ce6101a08301846139b1565b9f9e505050505050505050505050505050565b6040518181016001600160401b0381118282101715614702576147026148ee565b604052919050565b60006001600160401b03821115614723576147236148ee565b5060209081020190565b60006001600160401b03821115614746576147466148ee565b50601f01601f191660200190565b60009081526020902090565b60006001600160801b03808316818516808303821115614782576147826148c2565b01949350505050565b6000821982111561479e5761479e6148c2565b500190565b6000826147b2576147b26148d8565b500490565b60008160001904831182151516156147d1576147d16148c2565b500290565b60006001600160801b03838116908316818110156147f6576147f66148c2565b039392505050565b600082821015614810576148106148c2565b500390565b60005b83811015614830578181015183820152602001614818565b8381111561196c5750506000910152565b600081614850576148506148c2565b506000190190565b60028104600182168061486c57607f821691505b6020821081141561488d57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156148a7576148a76148c2565b5060010190565b6000826148bd576148bd6148d8565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610adf57600080fdfe3c7061746820643d224d333735302035373730206c30202d313230202d3132302030202d31323020302030202d3132302030202d3132302031323020302031323020302030202d3234302030202d323430203132302030203132302030203020323430203020323430203132302030203132302030203020313230203020313230202d3132302030202d3132302030203020313230203020313230202d3132302030202d31323020302030202d3132307a204d343839302035373730206c30202d313230202d3132302030202d31323020302030202d3132302030202d3132302031323020302031323020302030202d3234302030202d323430203132302030203132302030203020323430203020323430203132302030203132302030203020313230203020313230202d3132302030202d3132302030203020313230203020313230202d3132302030202d31323020302030202d3132307a222066696c6c3d223c67207472616e73666f726d3d227472616e736c61746528302e3030303030302c3838382e30303030303029207363616c6528302e3130303030302c2d302e31303030303029223e3c7465787420783d2234343438382220793d222d383830302220666f6e742d73697a653d223438303070782220666f6e742d66616d696c793d22696d706163742220666f6e742d7765696768743d22626f6c642220646f6d696e616e742d626173656c696e653d226d6964646c652220746578742d616e63686f723d226d6964646c65223e3c7061746820643d224d333533302033323730206c30202d313330202d3339352030202d33393520302030202d3133302030202d313330202d3531352030202d35313520302030202d3133302030202d313330202d3133302030202d31333020302030202d313331302030202d3133313020313330203020313330203020302031333130203020313331302035313520302035313520302030203133302030203133302033393520302033393520302030203133302030203133302039313020302039313020302030202d3133302030202d3133302033393520302033393520302030202d3133302030202d3133302035313520302035313520302030202d313331302030202d313331302031333020302031333020302030203133313020302031333130202d3133302030202d3133302030203020313330203020313330202d3531352030202d3531352030203020313330203020313330202d3339352030202d3339352030203020313330203020313330202d3931302030202d39313020302030202d3133307a204d3236313020363630206c30202d363630203133302030203133302030203020363630203020363630202d3133302030202d31333020302030202d3636307a204d3630313020363630206c30202d363630203133302030203133302030203020363630203020363630202d3133302030202d31333020302030202d3636307a222f3e203c7061746820643d224d333533302033303130206c30202d313330202d3339352030202d33393520302030202d3133302030202d313330202d3531352030202d35313520302030202d313331302030202d313331302034353020302034353020302030203636302030203636302031333020302031333020302030202d3636302030202d36363020313537302030203135373020302030203636302030203636302031333020302031333020302030202d3636302030202d3636302034353020302034353020302030203133313020302031333130202d3531352030202d3531352030203020313330203020313330202d3339352030202d3339352030203020313330203020313330202d3931302030202d39313020302030202d3133307a222066696c6c3d224142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c7061746820643d224d333733302035373930206c30202d313230202d3132302030202d31323020302030202d3134302030202d3134302031323020302031323020302030202d3234302030202d323430203134302030203134302030203020323430203020323430203132302030203132302030203020313430203020313430202d3132302030202d3132302030203020313230203020313230202d3134302030202d31343020302030202d3132307a206d323530202d3330206c30202d3132302031323020302031323020302030202d3131302030202d313130202d3132302030202d31323020302030202d3234302030202d323430202d3131302030202d3131302030203020323430203020323430202d3132302030202d31323020302030203131302030203131302031323020302031323020302030203132302030203132302031313020302031313020302030202d3132307a204d333739302035373330206c30202d313230202d3132302030202d31323020302030202d38302030202d38302031323020302031323020302030202d3234302030202d3234302038302030203830203020302032343020302032343020313230203020313230203020302038302030203830202d3132302030202d3132302030203020313230203020313230202d38302030202d383020302030202d3132307a206d313330202d3330206c30202d3132302031323020302031323020302030202d35302030202d3530202d3132302030202d31323020302030202d3234302030202d323430202d35302030202d35302030203020323430203020323430202d3132302030202d313230203020302035302030203530203132302030203132302030203020313230203020313230203530203020353020302030202d3132307a204d333835302035363730206c30202d313230202d313230203020632d3131332030202d313230202d31202d313230202d32302030202d31392037202d323020313230202d3230206c31323020302030202d323430206330202d3233332031202d323430203230202d3234302031392030203230203720323020323430206c302032343020313230203020633131332030203132302031203132302032302030203139202d37203230202d313230203230206c2d313230203020302031323020633020313133202d3120313230202d323020313230202d31392030202d3230202d37202d3230202d3132307a204d343837302035373930206c30202d313230202d3132302030202d31323020302030202d3134302030202d3134302031323020302031323020302030202d3234302030202d323430203134302030203134302030203020323430203020323430203132302030203132302030203020313430203020313430202d3132302030202d3132302030203020313230203020313230202d3134302030202d31343020302030202d3132307a206d323530202d3330206c30202d3132302031323020302031323020302030202d3131302030202d313130202d3132302030202d31323020302030202d3234302030202d323430202d3131302030202d3131302030203020323430203020323430202d3132302030202d31323020302030203131302030203131302031323020302031323020302030203132302030203132302031313020302031313020302030202d3132307a204d343933302035373330206c30202d313230202d3132302030202d31323020302030202d38302030202d38302031323020302031323020302030202d3234302030202d3234302038302030203830203020302032343020302032343020313230203020313230203020302038302030203830202d3132302030202d3132302030203020313230203020313230202d38302030202d383020302030202d3132307a206d313330202d3330206c30202d3132302031323020302031323020302030202d35302030202d3530202d3132302030202d31323020302030202d3234302030202d323430202d35302030202d35302030203020323430203020323430202d3132302030202d313230203020302035302030203530203132302030203132302030203020313230203020313230203530203020353020302030202d3132307a204d343939302035363730206c30202d313230202d313230203020632d3131332030202d313230202d31202d313230202d32302030202d31392037202d323020313230202d3230206c31323020302030202d323430206330202d3233332031202d323430203230202d3234302031392030203230203720323020323430206c302032343020313230203020633131332030203132302031203132302032302030203139202d37203230202d313230203230206c2d313230203020302031323020633020313133202d3120313230202d323020313230202d31392030202d3230202d37202d3230202d3132307a222066696c6c3d223c2f746578743e3c2f673e3c7061746820643d224d333133302035353430206c30202d313630302031303020302031303020302030202d3138352030202d3138352031393520302031393520302030202d38352030202d3835203133302030203133302030203020323135203020323135202d3139352030202d3139352030203020313835203020313835202d3130302030202d3130302030203020313334302030203133343020313035302030203130353020302030202d313334302030202d31333430202d3130302030202d31303020302030202d3138352030202d313835202d3139352030202d31393520302030202d3231352030202d323135203133302030203133302030203020383520302038352031393520302031393520302030203138352030203138352031303020302031303020302030203136303020302031363030202d313331302030202d3133313020302030202d313630307a222f3e203c7061746820643d224d333339302035353430206c30202d313334302031303020302031303020302030202d3138352030202d3138352031393520302031393520302030202d3231352030202d3231352034363020302034363020302030203231352030203231352031393520302031393520302030203138352030203138352031303020302031303020302030203133343020302031333430202d313035302030202d3130353020302030202d313334307a222066696c6c3d223c2f746578743e3c2f673e3c67207472616e73666f726d3d227472616e736c61746528302e3030303030302c3838382e30303030303029207363616c6528302e3130303030302c2d302e31303030303029223e3c7465787420783d2237313138382220793d222d31343438382220666f6e742d73697a653d223238383870782220666f6e742d66616d696c793d22696d706163742220666f6e742d7765696768743d22626f6c642220646f6d696e616e742d626173656c696e653d2263656e7465722220746578742d616e63686f723d22656e64223e3c7376672076657273696f6e3d22312e302220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667222077696474683d223838382e303030303030707422206865696768743d223838382e3030303030307074222076696577426f783d22302030203838382e303030303030203838382e30303030303022207072657365727665417370656374526174696f3d22784d6964594d6964206d656574223e203c67207472616e73666f726d3d227472616e736c61746528302e3030303030302c3838382e30303030303029207363616c6528302e3130303030302c2d302e31303030303029223e203c7061746820643d224d302034343430206c30202d3434343020343434302030203434343020302030203434343020302034343430202d343434302030202d3434343020302030202d343434307a222066696c6c3d22a2646970667358221220d0f5ecb86dc1ead3bc36f2de628cfd11a0a0e16ae5634bd1926d5c517bf38e9c64736f6c63430008000033
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.