Overview
TokenID
794
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
SyncXColors
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 5 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; pragma abicoder v2; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol'; import 'base64-sol/base64.sol'; import './legacy_colors/TheColors.sol'; import './legacy_colors/INFTOwner.sol'; /** * @title Sync x Colors contract * @dev Extends ERC721 Non-Fungible Token Standard basic implementation */ contract SyncXColors is ERC721Enumerable, Ownable { using Strings for uint256; using Strings for uint16; using Strings for uint8; uint256 public constant TotalReservedAmount = 17; // Amount reserved for promotions (giveaways, team) uint256 public constant MAX_SUPPLY = 4317 - TotalReservedAmount; // Declare Public address public constant THE_COLORS = address(0x9fdb31F8CE3cB8400C7cCb2299492F2A498330a4); uint256 public constant mintPrice = 0.05 ether; // Price per mint uint256 public constant resyncPrice = 0.005 ether; // Price per color resync uint256 public constant maxMintAmount = 10; // Max amount of mints per transaction uint256 public MintedReserves = 0; // Total Promotional Reserves Minted // Declare Private address private constant TREASURY = address(0x48aE900E9Df45441B2001dB4dA92CE0E7C08c6d2); address private constant TEAM = address(0x263853ef2C3Dd98a986799aB72E3b78334EB88cb); mapping(uint256 => uint16[]) private _colorTokenIds; mapping(uint256 => uint256) private _seed; // Trait seed is generated at time of mint and stored on-chain mapping(uint256 => uint8) private _resync_count; //Store count of color resyncs applied // Struct for NFT traits struct SyncTraitsStruct { uint8[] shape_color; uint8[] shape_type; uint16[] shape_x; uint16[] shape_y; uint16[] shape_sizey; uint16[] shape_sizex; uint16[] shape_r; uint16 rarity_roll; bytes[] baseColors; bytes[] bgColors; bytes[] infColors; bytes logoColors; bytes driftColors; bytes theme; bytes7 sigil; } // Constructor constructor() ERC721('Sync x Colors', 'SyncXColors') {} /** * Returns NFT tokenURI JSON */ function tokenURI(uint256 tokenId) public view virtual override(ERC721) returns (string memory) { require(_exists(tokenId), 'ERC721: operator query for nonexistent token'); SyncTraitsStruct memory syncTraits = generateTraits(tokenId); string memory svgData = generateSVGImage(tokenId, syncTraits); string memory image = Base64.encode(bytes(svgData)); return string( abi.encodePacked( 'data:application/json;base64,', Base64.encode( bytes( abi.encodePacked( '{', '"image":"', 'data:image/svg+xml;base64,', image, '",', generateNameDescription(), ',', generateAttributes(tokenId, syncTraits), '}' ) ) ) ) ); } /** * Withdraw accrued funds from contract. 50% treasury, 10% to each team member */ function withdraw() internal { bool sent; uint256 balance = address(this).balance; (sent, ) = payable(TEAM).call{value: (balance * 50) / 100}(''); require(sent); (sent, ) = payable(TREASURY).call{value: (balance * 50) / 100}(''); require(sent); } /** * Withdraw by owner */ function withdrawOwner() external onlyOwner { withdraw(); } /** * Withdraw by team */ function withdrawTeam() external { require(msg.sender == TEAM, 'Only team can withdraw'); withdraw(); } /** * Mint 1 or multiple NFTs */ function mint(uint256 _mintAmount, uint16[] calldata colorTokenIds) external payable { // Requires uint256 _mintIndex = totalSupply(); require( _mintAmount > 0 && _mintAmount <= maxMintAmount, 'Max mint 10 per tx' ); require(colorTokenIds.length <= 3, '# COLORS tokenIds must be <=3'); if (msg.sender == TEAM) { require( MintedReserves + _mintAmount <= TotalReservedAmount, 'Not enough reserve tokens' ); // Update reserve count MintedReserves += _mintAmount; } else { require(_mintIndex + _mintAmount <= MAX_SUPPLY, 'Exceeds supply'); require(msg.value == (mintPrice * _mintAmount), 'Insufficient funds'); // Validate colorTokenIds require(isHolder(colorTokenIds), 'COLORS not owned by sender.'); } for (uint256 i = _mintIndex; i < (_mintIndex + _mintAmount); i++) { // Update states _colorTokenIds[i] = colorTokenIds; _seed[i] = _rng(i); // Mint _safeMint(msg.sender, i); } } /** * Store mapping between tokenId and applied tokenIdColors */ function updateColors(uint256 tokenId, uint16[] calldata colorTokenIds) external payable { require(msg.sender == ownerOf(tokenId), 'Only NFT holder can updateColors'); require(colorTokenIds.length <= 3, '# COLORS tokenIds must be <=3'); require(msg.value >= resyncPrice, 'Insufficient funds'); // Validate colorTokenIds require(isHolder(colorTokenIds), 'COLORS not owned by sender.'); // Update state _colorTokenIds[tokenId] = colorTokenIds; _resync_count[tokenId] += 1; } /** * Verify that sender holds supplied colorTokenIds */ function isHolder(uint16[] calldata colorTokenIds) private view returns (bool) { address colors_address = THE_COLORS; for (uint256 i = 0; i < colorTokenIds.length; i++) { if ( msg.sender != INFTOwner(colors_address).ownerOf(uint256(colorTokenIds[i])) ) { return false; } } return true; } /** * Return NFT description */ function generateNameDescription() internal pure returns (string memory) { return string( abi.encodePacked( '"external_url":"https://syncxcolors.xyz",', unicode'"description":"Sync X Colors is a unique, on-chain generative collection of Syncs on Ethereum. Each Sync can be re-colored with new Colors at any time."' ) ); } /** * Generate attributes json */ function generateAttributes( uint256 tokenId, SyncTraitsStruct memory syncTraits ) internal view returns (string memory) { uint16[] memory colorTokenIds = _colorTokenIds[tokenId]; uint256 length = colorTokenIds.length; bytes[] memory colorArray = new bytes[](3); for (uint256 i = 0; i < length; i++) { colorArray[i] = bytes( TheColors(THE_COLORS).getHexColor(uint256(colorTokenIds[i])) ); } // fixing assembly overflow error, too much params string memory attributes = string( abi.encodePacked( '"attributes":[', '{"trait_type":"Rarity","value":"', syncTraits.theme, '"},', '{"trait_type":"Sigil","value":"', syncTraits.sigil, '"},' ) ); attributes = string( abi.encodePacked( attributes, '{"trait_type":"Color 1","value":"', colorArray[0], '"},', '{"trait_type":"Color 2","value":"', colorArray[1], '"},', '{"trait_type":"Color 3","value":"', colorArray[2], '"},', '{"trait_type":"Resyncs","value":', _resync_count[tokenId].toString(), '}]' ) ); return attributes; } /** * Returns hex strings representing colorTokenIDs as an array */ function getColorsHexStrings(uint256 tokenId) internal view returns (bytes[] memory) { uint16[] memory colorTokenIds = _colorTokenIds[tokenId]; uint256 length = _colorTokenIds[tokenId].length; bytes[] memory hexColors = new bytes[](3); hexColors[0] = '#222222'; // Defaults (grayscale) hexColors[1] = '#777777'; hexColors[2] = '#AAAAAA'; for (uint256 i = 0; i < length; i++) { hexColors[i] = bytes( TheColors(THE_COLORS).getHexColor(uint256(colorTokenIds[i])) ); } return hexColors; } /** * Generates the SVG */ function generateSVGImage(uint256 tokenId, SyncTraitsStruct memory syncTraits) private pure returns (string memory) { bytes memory svgBG = generateSVGBG(syncTraits); bytes memory svgInfinity = generateSVGInfinity(syncTraits.infColors); bytes memory svgLogo = generateSVGLogo( syncTraits.baseColors, syncTraits.logoColors, syncTraits.rarity_roll, tokenId.toString() ); bytes memory svgDrift = generateSVGDrift( syncTraits.baseColors, syncTraits.driftColors, syncTraits.rarity_roll, syncTraits.sigil, tokenId.toString() ); return string( abi.encodePacked( '<svg xmlns="http://www.w3.org/2000/svg" width="500" height="500" viewbox="0 0 500 500" style="background-color:#111111">', svgBG, svgInfinity, svgLogo, svgDrift, '</svg>' ) ); } /** * Generates the SVG Background */ function generateSVGBG(SyncTraitsStruct memory syncTraits) private pure returns (bytes memory) { bytes memory newShape; bytes memory svgBG = '<g fill-opacity="0.3">'; for (uint256 i = 0; i < 15; i++) { if (syncTraits.shape_type[i] == 0) { newShape = abi.encodePacked( '<circle fill="', syncTraits.bgColors[syncTraits.shape_color[i]], '" cx="', syncTraits.shape_x[i].toString(), '" cy="', syncTraits.shape_y[i].toString(), '" r="', syncTraits.shape_sizex[i].toString(), '"' ); } else if (syncTraits.shape_type[i] == 1) { newShape = abi.encodePacked( '<rect fill="', syncTraits.bgColors[syncTraits.shape_color[i]], '" x="', (syncTraits.shape_x[i] / 2).toString(), '" y="', (syncTraits.shape_y[i] / 2).toString(), '" width="', (syncTraits.shape_sizex[i] * 2).toString(), '" height="', (syncTraits.shape_sizey[i] * 2).toString(), '" transform="rotate(', syncTraits.shape_r[i].toString(), ')"' ); } if ( (syncTraits.rarity_roll % 19 == 0 && syncTraits.rarity_roll % 95 != 0) || (syncTraits.rarity_roll % 13 == 0) ) { // Silver or Mosaic // Add strokes to background elements newShape = abi.encodePacked( newShape, ' stroke="', syncTraits.infColors[syncTraits.shape_color[i]], '"/>' ); } else { newShape = abi.encodePacked(newShape, '/>'); } svgBG = abi.encodePacked(svgBG, newShape); } return abi.encodePacked(svgBG, '</g>'); } /** * Generates the infinity */ function generateSVGInfinity(bytes[] memory infColors) private pure returns (bytes memory) { bytes memory infinity1 = abi.encodePacked( '<g><path stroke-dasharray="0" stroke-dashoffset="0" stroke-width="16" ', 'd="M195.5 248c0 30 37.5 30 52.5 0s 52.5-30 52.5 0s-37.5 30-52.5 0s-52.5-30-52.5 0" fill="none">', '<animate begin="s.begin" attributeType="XML" attributeName="stroke" values="', infColors[0], ';', infColors[1], ';', infColors[0], '" dur="4s" fill="freeze"/>' ); bytes memory infinity2 = abi.encodePacked( '<animate begin="s.begin" attributeType="XML" attributeName="stroke-dasharray" values="0;50;0" dur="6s" fill="freeze"/>', '<animate begin="a.begin" attributeType="XML" attributeName="stroke-width" values="16;20;16" dur="1s" fill="freeze"/>', '</path><path stroke-dasharray="300" stroke-dashoffset="300" stroke-width="16" ', 'd="M195.5 248c0 30 37.5 30 52.5 0s 52.5-30 52.5 0s-37.5 30-52.5 0s-52.5-30-52.5 0" fill="none">' ); bytes memory infinity3 = abi.encodePacked( '<animate begin="s.begin" attributeType="XML" attributeName="stroke" values="', infColors[2], ';', infColors[0], ';', infColors[2], '" dur="4s" fill="freeze"/>', '<animate id="a" begin="s.begin;a.end" attributeType="XML" attributeName="stroke-width" values="16;20;16" dur="1s" fill="freeze"/>', '<animate id="s" attributeType="XML" attributeName="stroke-dashoffset" begin="0s;s.end" to= "-1800" dur="6s"/></path></g>' ); return abi.encodePacked(infinity1, infinity2, infinity3); } /** * Generates the logo */ function generateSVGLogo( bytes[] memory baseColors, bytes memory logoColors, uint16 rarity_roll, string memory tokenId ) private pure returns (bytes memory) { bytes memory logo = abi.encodePacked( '<g id="',tokenId,'b">', '<path d="M194 179H131c-34 65 0 143 0 143h63C132 251 194 179 194 179Zm-26 128H144s-25-35 0-111h23S126 245 168 307Z" ', 'stroke="black" fill-opacity="0.9" stroke-width="0.7">' ); if ( rarity_roll % 333 == 0 || rarity_roll % 241 == 0 || rarity_roll % 19 == 0 ) { //Shimmer logo = abi.encodePacked( logo, '<set attributeName="stroke-dasharray" to="20"/>', '<set attributeName="stroke-width" to="2"/>', '<set attributeName="fill" to="', logoColors, '"/>', '<animate begin="s.begin" attributeType="XML" attributeName="stroke-dashoffset" from="0" to="280" dur="6s" fill="freeze"/>', '<animate begin="s.begin" attributeType="XML" attributeName="stroke" values="', baseColors[0], ';', baseColors[1], ';', baseColors[2], ';', baseColors[0], '" dur="6s" fill="freeze"/>' ); } else { logo = abi.encodePacked( logo, '<animate begin="s.begin" attributeName="fill" dur="6s" ' 'values="black;', baseColors[0], ';black;', baseColors[1], ';black;', baseColors[2], ';black"/>' ); } return logo; } /** * Generates the drift */ function generateSVGDrift( bytes[] memory baseColors, bytes memory driftColors, uint16 rarity_roll, bytes7 sigil, string memory tokenId ) private pure returns (bytes memory) { if (rarity_roll % 11 != 0) { // Drift is colored as a single color unless Tokyo Drift trait baseColors[0] = driftColors; baseColors[1] = driftColors; baseColors[2] = driftColors; } bytes memory borders1 = abi.encodePacked( '</path><text x="2" y="40" font-size="3em" fill-opacity="0.3" fill="', 'black">', sigil, '</text>', '<path d="M90 203c-21 41 0 91 0 91h11c0 0-16-42 0-91z" stroke-opacity="0.7" fill-opacity="0.7" fill="transparent">' '<animate id="w" attributeName="fill" values="transparent;', baseColors[0], ';transparent" begin="s.begin+.17s;s.begin+2.17s;s.begin+4.17s" dur="1s"/>', '<animate begin="w.begin" attributeName="stroke" values="transparent;black;transparent" dur="1s"/>', '</path>' ); bytes memory borders2 = abi.encodePacked( '<path d="M60 212c-17 34 0 74 0 74h9c0-1-13-34 0-74z" stroke-opacity="0.5" fill-opacity="0.5" fill="transparent">', '<animate attributeName="fill" values="transparent;', baseColors[1], ';transparent" begin="w.begin+0.2s" dur="1s"/>', '<animate attributeName="stroke" values="transparent;black;transparent" begin="w.begin+0.2s" dur="1s"/>', '</path>' ); bytes memory borders3 = abi.encodePacked( '<path d="M37 221c-13 26 0 57 0 57h7c0 0-10-26 0-57z" stroke-opacity="0.3" fill-opacity="0.3" fill="transparent">', '<animate attributeName="fill" values="transparent;', baseColors[2], ';transparent" begin="w.begin+0.4s" dur="1s"/>', '<animate attributeName="stroke" values="transparent;black;transparent" begin="w.begin+0.4s" dur="1s"/>', '</path></g><use href="#',tokenId,'b" x="-500" y="-500" transform="rotate(180)"/>' ); return abi.encodePacked(borders1, borders2, borders3); } /** * Generates the NFT traits by stored seed (note: seed generated and stored at mint) */ function generateTraits(uint256 tokenId) private view returns (SyncTraitsStruct memory) { // Initialize struct arrays SyncTraitsStruct memory syncTraits; syncTraits.shape_x = new uint16[](15); syncTraits.shape_y = new uint16[](15); syncTraits.shape_sizex = new uint16[](15); syncTraits.shape_sizey = new uint16[](15); syncTraits.shape_r = new uint16[](15); syncTraits.shape_type = new uint8[](15); syncTraits.shape_color = new uint8[](15); syncTraits.bgColors = new bytes[](3); syncTraits.infColors = new bytes[](3); // Retrieve seed from storage uint256 seed = _seed[tokenId]; syncTraits.rarity_roll = uint16( 1 + ((seed & 0x3FF) % 1000) // range 1 to 2047 % 1000 - ~ slightly bottom heavy but round numbers nicer ); // Calculate traits syncTraits.baseColors = getColorsHexStrings(tokenId); if (syncTraits.rarity_roll % 333 == 0) { // 0.3% probability (3 in 1000) syncTraits.theme = 'Concave'; syncTraits.sigil = '\xE2\x9D\xAA\x20\xE2\x9D\xAB'; //( ) syncTraits.bgColors[0] = '#214F70'; //Light Blue syncTraits.bgColors[1] = '#2E2E3F'; //Dark Blue syncTraits.bgColors[2] = '#2E2E3F'; //Dark Blue syncTraits.infColors[0] = '#FAF7C0'; //Con-yellow syncTraits.infColors[1] = '#214F70'; //Light Blue syncTraits.infColors[2] = '#FAF7C0'; //Con-yellow syncTraits.logoColors = '#FAF7C0'; //Con-yellow syncTraits.driftColors = '#FAF7C0'; } else if (syncTraits.rarity_roll % 241 == 0) { // 0.4% probability (4 in 1000) syncTraits.theme = 'Olympus'; syncTraits.sigil = '\xF0\x9D\x9B\x80\x20\x20\x20'; // OMEGA syncTraits.bgColors[0] = '#80A6AF'; // Oly Blue syncTraits.bgColors[1] = '#3A424F'; // Dark Blue syncTraits.bgColors[2] = '#80A6AF'; // Oly Blue syncTraits.infColors[0] = '#FFC768'; // Oly yellow syncTraits.infColors[1] = '#3A424F'; // Dark Blue syncTraits.infColors[2] = '#FFC768'; // Oly yellow syncTraits.logoColors = '#FFC768'; // Oly-yellow syncTraits.driftColors = '#FFC768'; } else if (syncTraits.rarity_roll % 19 == 0) { // ~4% probability (50-10 in 1000) syncTraits.theme = 'Silver'; syncTraits.sigil = '\xE2\x98\x86\x20\x20\x20\x20'; // Empty Star syncTraits.bgColors[0] = '#c0c0c0'; // Silver syncTraits.bgColors[1] = '#e5e4e2'; // Platinum syncTraits.bgColors[2] = '#c0c0c0'; // Silver syncTraits.infColors[0] = 'white'; syncTraits.infColors[1] = '#C0C0C0'; // silver syncTraits.infColors[2] = '#CD7F32'; // Gold syncTraits.logoColors = 'black'; syncTraits.driftColors = 'black'; // Silver has 1 in 4 chance of upgrading to gold // (contract memory usage happened to be more efficient this way) if (syncTraits.rarity_roll % 95 == 0) { // `~1% probability (10 in 1000) syncTraits.theme = 'Gold'; // Gold syncTraits.sigil = '\xE2\x98\x85\x20\x20\x20\x20'; // Full star syncTraits.bgColors[0] = '#CD7F32'; // Gold syncTraits.bgColors[2] = '#725d18'; // Darker Gold syncTraits.infColors[0] = 'black'; syncTraits.infColors[2] = '#E5E4E2'; // Platinum } } else { syncTraits.theme = 'Common'; // Common syncTraits.sigil = '\xE2\x97\x8F\x20\x20\x20\x20'; // Circle syncTraits.driftColors = 'white'; syncTraits.bgColors = syncTraits.baseColors; syncTraits.infColors = syncTraits.baseColors; bytes[] memory upgrades = new bytes[](3); upgrades[0] = '#214F70'; upgrades[1] = '#FAF7C0'; upgrades[2] = '#222222'; if (syncTraits.rarity_roll % 13 == 0) { // 7.7% probability ((77 in 1000) syncTraits.theme = 'Mosaic'; syncTraits.sigil = '\xE2\x9C\xA6\x20\x20\x20\x20'; // Full Diamond upgrades[2] = '#3A424F'; } else if (syncTraits.rarity_roll % 11 == 0) { // 9% probability (91 in 1000) syncTraits.theme = 'Tokyo Drift'; syncTraits.sigil = '\xE2\x9C\xA7\x20\x20\x20\x20'; //Empty Diamond upgrades[2] = '#3A424F'; } if (_colorTokenIds[tokenId].length == 0){ syncTraits.baseColors[0] = upgrades[syncTraits.rarity_roll % 3]; } } //Background generation for (uint256 i = 0; i < 15; i++) { syncTraits.shape_x[i] = uint16(1 + ((seed & 0x3FF) % 500)); syncTraits.shape_y[i] = uint16(1 + (((seed & 0x3FF0000) / 2**4) % 500)); syncTraits.shape_sizex[i] = uint16( 250 + (((seed & 0x1FF00000000) / 2**5) % 151) ); syncTraits.shape_sizey[i] = uint16( 250 + (((seed & 0x1FF000000000000) >> 48) % 151) ); syncTraits.shape_r[i] = uint16( 1 + (((seed & 0x1FF0000000000000000) / 2**6) % 360) ); syncTraits.shape_type[i] = uint8( ((seed & 0x1FF00000000000000000000) >> 80) % 2 ); syncTraits.shape_color[i] = uint8( ((seed & 0x1FF000000000000000000000000) >> 96) % 3 ); seed = seed >> 2; } return syncTraits; } /** * Produce a PRNG uint256 as hash of several inputs */ function _rng(uint256 tokenId) private view returns (uint256) { uint256 _tokenId = tokenId + 1; uint256 seed = uint256(uint160(THE_COLORS)); return uint256( keccak256( abi.encodePacked( _tokenId.toString(), block.timestamp, block.difficulty, seed ) ) ) + uint256(_tokenId * seed); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.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; pragma abicoder v2; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol'; import 'base64-sol/base64.sol'; import './INFTOwner.sol'; /** * @title TheColors contract * @dev Extends ERC721 Non-Fungible Token Standard basic implementation */ contract TheColors is ERC721Enumerable, Ownable { using Strings for uint256; using Strings for uint32; string public PROVENANCE_HASH = ''; /*address constant public THE_COLORS_LEGACY = address(0xc22f6c6f04c24Fac546A43Eb2E2eB10b1D2953DA);*/ uint256 public constant MAX_COLORS = 4317; mapping(uint256 => uint32) private _hexColors; mapping(uint32 => bool) public existingHexColors; constructor() ERC721('The Colors (thecolors.art)', 'COLORS') {} function tokenURI(uint256 tokenId) public view virtual override(ERC721) returns (string memory) { require( _hexColors[tokenId] > 0, 'ERC721Metadata: URI query for nonexistent token' ); uint32 hexColor = _hexColors[tokenId]; string memory hexString = uintToHexString(hexColor); string memory image = Base64.encode(bytes(generateSVGImage(hexString))); return string( abi.encodePacked( 'data:application/json;base64,', Base64.encode( bytes( abi.encodePacked( '{', '"image":"', 'data:image/svg+xml;base64,', image, '",', '"image_data":"', escapeQuotes(generateSVGImage(hexString)), '",', generateNameDescription(tokenId, hexString), generateAttributes(hexColor, hexString), '}' ) ) ) ) ); } function getTokenMetadata(uint256 tokenId) public view returns (string memory) { uint32 hexColor = _hexColors[tokenId]; string memory hexString = uintToHexString(hexColor); string memory image = Base64.encode(bytes(generateSVGImage(hexString))); return string( abi.encodePacked( 'data:application/json', '{', '"image":"', 'data:image/svg+xml;base64,', image, '",', '"image_data":"', escapeQuotes(generateSVGImage(hexString)), '",', generateNameDescription(tokenId, hexString), generateAttributes(hexColor, hexString), '}' ) ); } function getTokenSVG(uint256 tokenId) public view returns (string memory) { uint32 hexColor = _hexColors[tokenId]; string memory hexString = uintToHexString(hexColor); return generateSVGImage(hexString); } function getBase64TokenSVG(uint256 tokenId) public view returns (string memory) { uint32 hexColor = _hexColors[tokenId]; string memory hexString = uintToHexString(hexColor); string memory image = Base64.encode(bytes(generateSVGImage(hexString))); return string(abi.encodePacked('data:application/json;base64', image)); } function getHexColor(uint256 tokenId) public view returns (string memory) { uint32 hexColor = _hexColors[tokenId]; string memory hexString = uintToHexString(hexColor); return string(abi.encodePacked('#', hexString)); } function getRGB(uint256 tokenId) public view returns (string memory) { string memory r = getRed(tokenId).toString(); string memory g = getGreen(tokenId).toString(); string memory b = getBlue(tokenId).toString(); return string(abi.encodePacked('rgb(', r, ',', g, ',', b, ')')); } function getRed(uint256 tokenId) public view returns (uint32) { uint32 hexColor = _hexColors[tokenId]; return ((hexColor >> 16) & 0xFF); // Extract the RR byte } function getGreen(uint256 tokenId) public view returns (uint32) { uint32 hexColor = _hexColors[tokenId]; return ((hexColor >> 8) & 0xFF); // Extract the GG byte } function getBlue(uint256 tokenId) public view returns (uint32) { uint32 hexColor = _hexColors[tokenId]; return ((hexColor) & 0xFF); // Extract the BB byte } /* * Set provenance once it's calculated */ function setProvenanceHash(string memory provenanceHash) public onlyOwner { PROVENANCE_HASH = provenanceHash; } /** * Mints The Colors to The Colors Legacy holders */ function mintNextColors(uint256 numberOfTokens) public { require( totalSupply() + numberOfTokens <= MAX_COLORS, 'Purchase would exceed max supply of Colors' ); uint256 mintIndex; /*address tokenOwner;*/ for (uint256 i = 0; i < numberOfTokens; i++) { mintIndex = totalSupply(); if (totalSupply() < MAX_COLORS) { /*tokenOwner = INFTOwner(THE_COLORS_LEGACY).ownerOf(mintIndex);*/ _safeMint(msg.sender, mintIndex); generateRandomHexColor(mintIndex); } } } function generateNameDescription(uint256 tokenId, string memory hexString) internal pure returns (string memory) { return string( abi.encodePacked( '"external_url":"https://thecolors.art",', unicode'"description":"The Colors are a set of 8,888 iconic shades generated and stored entirely on-chain to be used as a primitive and for color field vibes. ~ A Color is Forever ∞', '\\nHex: #', hexString, '\\n\\nToken id: #', tokenId.toString(), '",', '"name":"#', hexString, '",' ) ); } function generateAttributes(uint32 hexColor, string memory hexString) internal pure returns (string memory) { string memory r = ((hexColor >> 16) & 0xFF).toString(); // Extract the RR byte string memory g = ((hexColor >> 8) & 0xFF).toString(); // Extract the GG byte string memory b = ((hexColor) & 0xFF).toString(); // Extract the BB byte string memory rgb = string( abi.encodePacked('rgb(', r, ',', g, ',', b, ')') ); return string( abi.encodePacked( '"attributes":[', '{"trait_type":"Hex code","value":"#', hexString, '"},' '{"trait_type":"RGB","value":"', rgb, '"},', '{"trait_type":"Red","value":"', r, '"},', '{"trait_type":"Green","value":"', g, '"},', '{"trait_type":"Blue","value":"', b, '"}', ']' ) ); } function generateSVGImage(string memory hexString) internal pure returns (string memory) { return string( abi.encodePacked( '<svg width="690" height="690" xmlns="http://www.w3.org/2000/svg" style="background-color:#', hexString, '">', '</svg>' ) ); } function generateRandomHexColor(uint256 tokenId) internal returns (uint32) { uint32 hexColor = uint32(_rng() % 16777215); while (existingHexColors[hexColor]) { hexColor = uint32( uint256(hexColor + block.timestamp * tokenId) % 16777215 ); } existingHexColors[hexColor] = true; _hexColors[tokenId] = hexColor; return hexColor; } function uintToHexString(uint256 number) public pure returns (string memory) { bytes32 value = bytes32(number); bytes memory alphabet = '0123456789abcdef'; bytes memory str = new bytes(6); for (uint256 i = 0; i < 3; i++) { str[i * 2] = alphabet[uint256(uint8(value[i + 29] >> 4))]; str[1 + i * 2] = alphabet[uint256(uint8(value[i + 29] & 0x0f))]; } return string(str); } function escapeQuotes(string memory symbol) internal pure returns (string memory) { bytes memory symbolBytes = bytes(symbol); uint256 quotesCount = 0; for (uint256 i = 0; i < symbolBytes.length; i++) { if (symbolBytes[i] == '"') { quotesCount++; } } if (quotesCount > 0) { bytes memory escapedBytes = new bytes(symbolBytes.length + (quotesCount)); uint256 index; for (uint256 i = 0; i < symbolBytes.length; i++) { if (symbolBytes[i] == '"') { escapedBytes[index++] = '\\'; } escapedBytes[index++] = symbolBytes[i]; } return string(escapedBytes); } return symbol; } function _rng() internal view returns (uint256) { return uint256(keccak256(abi.encodePacked(block.timestamp + block.difficulty))); } }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; interface INFTOwner { function ownerOf(uint256 tokenId) external view returns (address); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 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 // OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Address.sol) 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 // OpenZeppelin Contracts v4.4.0 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 5 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":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":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MintedReserves","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"THE_COLORS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TotalReservedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"uint16[]","name":"colorTokenIds","type":"uint16[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"resyncPrice","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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint16[]","name":"colorTokenIds","type":"uint16[]"}],"name":"updateColors","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdrawOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawTeam","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526000600b553480156200001657600080fd5b50604080518082018252600d81526c53796e63207820436f6c6f727360981b60208083019182528351808501909452600b84526a53796e6358436f6c6f727360a81b9084015281519192916200006f91600091620000fe565b50805162000085906001906020840190620000fe565b505050620000a26200009c620000a860201b60201c565b620000ac565b620001e1565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200010c90620001a4565b90600052602060002090601f0160209004810192826200013057600085556200017b565b82601f106200014b57805160ff19168380011785556200017b565b828001600101855582156200017b579182015b828111156200017b5782518255916020019190600101906200015e565b50620001899291506200018d565b5090565b5b808211156200018957600081556001016200018e565b600181811c90821680620001b957607f821691505b60208210811415620001db57634e487b7160e01b600052602260045260246000fd5b50919050565b615ea480620001f16000396000f3fe60806040526004361061015d5760003560e01c806301ffc9a7146101625780630427f6921461019757806306fdde03146101ba578063081812fc146101dc578063095ea7b31461021457806318160ddd146102365780631b1e9b241461024b578063239c70ae1461026157806323b872dd146102765780632f745c591461029657806332cb6b0c146102b657806342842e0e146102cb5780634f6ccce7146102eb5780636352211e1461030b5780636817c76c1461032b5780636dcb0f961461034657806370a0823114610361578063715018a6146103815780638da5cb5b1461039657806395d89b41146103ab578063a22cb465146103c0578063b88d4fde146103e0578063bb51f32d14610400578063be4bc0b514610415578063c87b56dd14610428578063c8f8b61314610448578063deba081314610470578063e8cc00ad14610483578063e985e9c514610498578063f2fde38b146104b8575b600080fd5b34801561016e57600080fd5b5061018261017d36600461429c565b6104d8565b60405190151581526020015b60405180910390f35b3480156101a357600080fd5b506101ac601181565b60405190815260200161018e565b3480156101c657600080fd5b506101cf610503565b60405161018e9190615972565b3480156101e857600080fd5b506101fc6101f736600461435f565b610595565b6040516001600160a01b03909116815260200161018e565b34801561022057600080fd5b5061023461022f366004614271565b610622565b005b34801561024257600080fd5b506008546101ac565b34801561025757600080fd5b506101ac600b5481565b34801561026d57600080fd5b506101ac600a81565b34801561028257600080fd5b5061023461029136600461415a565b610733565b3480156102a257600080fd5b506101ac6102b1366004614271565b610764565b3480156102c257600080fd5b506101ac6107fa565b3480156102d757600080fd5b506102346102e636600461415a565b61080a565b3480156102f757600080fd5b506101ac61030636600461435f565b610825565b34801561031757600080fd5b506101fc61032636600461435f565b6108c6565b34801561033757600080fd5b506101ac66b1a2bc2ec5000081565b34801561035257600080fd5b506101ac6611c37937e0800081565b34801561036d57600080fd5b506101ac61037c3660046140e3565b61093d565b34801561038d57600080fd5b506102346109c4565b3480156103a257600080fd5b506101fc6109ff565b3480156103b757600080fd5b506101cf610a0e565b3480156103cc57600080fd5b506102346103db366004614240565b610a1d565b3480156103ec57600080fd5b506102346103fb36600461419a565b610a2c565b34801561040c57600080fd5b50610234610a64565b610234610423366004614377565b610ac8565b34801561043457600080fd5b506101cf61044336600461435f565b610cee565b34801561045457600080fd5b506101fc739fdb31f8ce3cb8400c7ccb2299492f2a498330a481565b61023461047e366004614377565b610da2565b34801561048f57600080fd5b50610234610ed2565b3480156104a457600080fd5b506101826104b3366004614122565b610f01565b3480156104c457600080fd5b506102346104d33660046140e3565b610f2f565b60006001600160e01b0319821663780e9d6360e01b14806104fd57506104fd82610fcf565b92915050565b60606000805461051290615c96565b80601f016020809104026020016040519081016040528092919081815260200182805461053e90615c96565b801561058b5780601f106105605761010080835404028352916020019161058b565b820191906000526020600020905b81548152906001019060200180831161056e57829003601f168201915b5050505050905090565b60006105a08261101f565b6106065760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061062d826108c6565b9050806001600160a01b0316836001600160a01b0316141561069b5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016105fd565b336001600160a01b03821614806106b757506106b78133610f01565b6107245760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b60648201526084016105fd565b61072e838361103c565b505050565b61073d33826110aa565b6107595760405162461bcd60e51b81526004016105fd90615a84565b61072e83838361112f565b600061076f8361093d565b82106107d15760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016105fd565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b61080760116110dd615c53565b81565b61072e83838360405180602001604052806000815250610a2c565b600061083060085490565b82106108935760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016105fd565b600882815481106108b457634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806104fd5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016105fd565b60006001600160a01b0382166109a85760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016105fd565b506001600160a01b031660009081526003602052604090205490565b336109cd6109ff565b6001600160a01b0316146109f35760405162461bcd60e51b81526004016105fd90615a4f565b6109fd60006112c8565b565b600a546001600160a01b031690565b60606001805461051290615c96565b610a2833838361131a565b5050565b610a3633836110aa565b610a525760405162461bcd60e51b81526004016105fd90615a84565b610a5e848484846113e5565b50505050565b3373263853ef2c3dd98a986799ab72e3b78334eb88cb14610ac05760405162461bcd60e51b81526020600482015260166024820152754f6e6c79207465616d2063616e20776974686472617760501b60448201526064016105fd565b6109fd611418565b6000610ad360085490565b9050600084118015610ae65750600a8411155b610b275760405162461bcd60e51b815260206004820152601260248201527109ac2f040dad2dce840626040e0cae440e8f60731b60448201526064016105fd565b6003821115610b485760405162461bcd60e51b81526004016105fd90615ad5565b3373263853ef2c3dd98a986799ab72e3b78334eb88cb1415610bdb57601184600b54610b749190615b98565b1115610bbe5760405162461bcd60e51b81526020600482015260196024820152784e6f7420656e6f756768207265736572766520746f6b656e7360381b60448201526064016105fd565b83600b6000828254610bd09190615b98565b90915550610c869050565b610be860116110dd615c53565b610bf28583615b98565b1115610c315760405162461bcd60e51b815260206004820152600e60248201526d4578636565647320737570706c7960901b60448201526064016105fd565b610c428466b1a2bc2ec50000615c34565b3414610c605760405162461bcd60e51b81526004016105fd90615a23565b610c6a8383611515565b610c865760405162461bcd60e51b81526004016105fd90615b0c565b805b610c928583615b98565b811015610ce7576000818152600c60205260409020610cb2908585613f9d565b50610cbc8161162c565b6000828152600d6020526040902055610cd5338261169d565b80610cdf81615cd1565b915050610c88565b5050505050565b6060610cf98261101f565b610d155760405162461bcd60e51b81526004016105fd906159d7565b6000610d20836116b7565b90506000610d2e848361275c565b90506000610d3b82612801565b9050610d7981610d49612974565b610d538887612a88565b604051602001610d65939291906151f7565b604051602081830303815290604052612801565b604051602001610d899190615395565b6040516020818303038152906040529350505050919050565b610dab836108c6565b6001600160a01b0316336001600160a01b031614610e0b5760405162461bcd60e51b815260206004820181905260248201527f4f6e6c79204e465420686f6c6465722063616e20757064617465436f6c6f727360448201526064016105fd565b6003811115610e2c5760405162461bcd60e51b81526004016105fd90615ad5565b6611c37937e08000341015610e535760405162461bcd60e51b81526004016105fd90615a23565b610e5d8282611515565b610e795760405162461bcd60e51b81526004016105fd90615b0c565b6000838152600c60205260409020610e92908383613f9d565b506000838152600e60205260408120805460019290610eb590849060ff16615bb0565b92506101000a81548160ff021916908360ff160217905550505050565b33610edb6109ff565b6001600160a01b031614610ac05760405162461bcd60e51b81526004016105fd90615a4f565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b33610f386109ff565b6001600160a01b031614610f5e5760405162461bcd60e51b81526004016105fd90615a4f565b6001600160a01b038116610fc35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105fd565b610fcc816112c8565b50565b60006001600160e01b031982166380ac58cd60e01b148061100057506001600160e01b03198216635b5e139f60e01b145b806104fd57506301ffc9a760e01b6001600160e01b03198316146104fd565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611071826108c6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006110b58261101f565b6110d15760405162461bcd60e51b81526004016105fd906159d7565b60006110dc836108c6565b9050806001600160a01b0316846001600160a01b031614806111175750836001600160a01b031661110c84610595565b6001600160a01b0316145b8061112757506111278185610f01565b949350505050565b826001600160a01b0316611142826108c6565b6001600160a01b0316146111aa5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016105fd565b6001600160a01b03821661120c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016105fd565b611217838383612d57565b61122260008261103c565b6001600160a01b038316600090815260036020526040812080546001929061124b908490615c53565b90915550506001600160a01b0382166000908152600360205260408120805460019290611279908490615b98565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b038681169182179092559151849391871691600080516020615e2f83398151915291a4505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156113785760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b60448201526064016105fd565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6113f084848461112f565b6113fc84848484612e0f565b610a5e5760405162461bcd60e51b81526004016105fd90615985565b60004773263853ef2c3dd98a986799ab72e3b78334eb88cb606461143d836032615c34565b6114479190615bf6565b604051600081818185875af1925050503d8060008114611483576040519150601f19603f3d011682016040523d82523d6000602084013e611488565b606091505b5050809250508161149857600080fd5b7348ae900e9df45441b2001db4da92ce0e7c08c6d260646114ba836032615c34565b6114c49190615bf6565b604051600081818185875af1925050503d8060008114611500576040519150601f19603f3d011682016040523d82523d6000602084013e611505565b606091505b50508092505081610a2857600080fd5b6000739fdb31f8ce3cb8400c7ccb2299492f2a498330a4815b8381101561162157816001600160a01b0316636352211e86868481811061156557634e487b7160e01b600052603260045260246000fd5b905060200201602081019061157a919061433d565b61ffff166040518263ffffffff1660e01b815260040161159c91815260200190565b60206040518083038186803b1580156115b457600080fd5b505afa1580156115c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115ec9190614106565b6001600160a01b0316336001600160a01b03161461160f576000925050506104fd565b8061161981615cd1565b91505061152e565b506001949350505050565b60008061163a836001615b98565b9050739fdb31f8ce3cb8400c7ccb2299492f2a498330a461165b8183615c34565b61166483612f11565b42448460405160200161167a9493929190614a23565b6040516020818303038152906040528051906020012060001c6111279190615b98565b610a2882826040518060200160405280600081525061302a565b6116bf61404a565b6116c761404a565b60408051600f808252610200820190925290602082016101e0803683375050506040828101919091528051600f808252610200820190925290602082016101e080368337505050606082015260408051600f808252610200820190925290602082016101e08036833750505060a082015260408051600f808252610200820190925290602082016101e080368337505050608082015260408051600f808252610200820190925290602082016101e08036833750505060c082015260408051600f808252610200820190925290602082016101e08036833701905050602082015260408051600f80825261020082019092529081602001602082028036833750505081526040805160038082526080820190925290602082015b60608152602001906001900390816117e15750506101208201526040805160038082526080820190925290602082015b60608152602001906001900390816118115750506101408201526000838152600d602052604090205461184a6103e86103ff8316615d0d565b611855906001615b98565b61ffff1660e08301526118678461305d565b61010083015260e082015161187f9061014d90615cec565b61ffff16611af857604080518082018252600780825266436f6e6361766560c81b6020808401919091526101a086019290925266e29daa20e29dab60c81b6101c086015282518084019093528252660233231344637360cc1b90820152610120830151805160009061190157634e487b7160e01b600052603260045260246000fd5b602002602001018190525060405180604001604052806007815260200166119922992299a360c91b81525082610120015160018151811061195257634e487b7160e01b600052603260045260246000fd5b602002602001018190525060405180604001604052806007815260200166119922992299a360c91b8152508261012001516002815181106119a357634e487b7160e01b600052603260045260246000fd5b6020026020010181905250604051806040016040528060078152602001660234641463743360cc1b8152508261014001516000815181106119f457634e487b7160e01b600052603260045260246000fd5b6020026020010181905250604051806040016040528060078152602001660233231344637360cc1b815250826101400151600181518110611a4557634e487b7160e01b600052603260045260246000fd5b6020026020010181905250604051806040016040528060078152602001660234641463743360cc1b815250826101400151600281518110611a9657634e487b7160e01b600052603260045260246000fd5b6020026020010181905250604051806040016040528060078152602001660234641463743360cc1b815250826101600181905250604051806040016040528060078152602001660234641463743360cc1b8152508261018001819052506124d7565b60f18260e00151611b099190615cec565b61ffff16611d82576040805180820182526007808252664f6c796d70757360c81b6020808401919091526101a0860192909252660784ecdc01010160cd1b6101c08601528251808401909352825266119c18209b20a360c91b908201526101208301518051600090611b8b57634e487b7160e01b600052603260045260246000fd5b6020026020010181905250604051806040016040528060078152602001661199a09a191a2360c91b815250826101200151600181518110611bdc57634e487b7160e01b600052603260045260246000fd5b602002602001018190525060405180604001604052806007815260200166119c18209b20a360c91b815250826101200151600281518110611c2d57634e487b7160e01b600052603260045260246000fd5b6020026020010181905250604051806040016040528060078152602001660468c8c866e6c760cb1b815250826101400151600081518110611c7e57634e487b7160e01b600052603260045260246000fd5b6020026020010181905250604051806040016040528060078152602001661199a09a191a2360c91b815250826101400151600181518110611ccf57634e487b7160e01b600052603260045260246000fd5b6020026020010181905250604051806040016040528060078152602001660468c8c866e6c760cb1b815250826101400151600281518110611d2057634e487b7160e01b600052603260045260246000fd5b6020026020010181905250604051806040016040528060078152602001660468c8c866e6c760cb1b815250826101600181905250604051806040016040528060078152602001660468c8c866e6c760cb1b8152508261018001819052506124d7565b60138260e00151611d939190615cec565b61ffff1661219457604080518082018252600681526529b4b63b32b960d11b6020808301919091526101a0850191909152660714c43101010160cd1b6101c0850152815180830190925260078252660236330633063360cc1b908201526101208301518051600090611e1557634e487b7160e01b600052603260045260246000fd5b60200260200101819052506040518060400160405280600781526020016611b29ab29a329960c91b815250826101200151600181518110611e6657634e487b7160e01b600052603260045260246000fd5b6020026020010181905250604051806040016040528060078152602001660236330633063360cc1b815250826101200151600281518110611eb757634e487b7160e01b600052603260045260246000fd5b602002602001018190525060405180604001604052806005815260200164776869746560d81b815250826101400151600081518110611f0657634e487b7160e01b600052603260045260246000fd5b6020026020010181905250604051806040016040528060078152602001660234330433043360cc1b815250826101400151600181518110611f5757634e487b7160e01b600052603260045260246000fd5b60200260200101819052506040518060400160405280600781526020016611a1a21ba3199960c91b815250826101400151600281518110611fa857634e487b7160e01b600052603260045260246000fd5b602002602001018190525060405180604001604052806005815260200164626c61636b60d81b81525082610160018190525060405180604001604052806005815260200164626c61636b60d81b815250826101800181905250605f8260e001516120129190615cec565b61ffff1661218f57604080518082018252600481526311dbdb1960e21b6020808301919091526101a0850191909152660714c42901010160cd1b6101c08501528151808301909252600782526611a1a21ba3199960c91b90820152610120830151805160009061209257634e487b7160e01b600052603260045260246000fd5b6020026020010181905250604051806040016040528060078152602001660466e646ac862760cb1b8152508261012001516002815181106120e357634e487b7160e01b600052603260045260246000fd5b602002602001018190525060405180604001604052806005815260200164626c61636b60d81b81525082610140015160008151811061213257634e487b7160e01b600052603260045260246000fd5b60200260200101819052506040518060400160405280600781526020016611a29aa29a229960c91b81525082610140015160028151811061218357634e487b7160e01b600052603260045260246000fd5b60200260200101819052505b6124d7565b604080518082018252600681526521b7b6b6b7b760d11b6020808301919091526101a0850191909152660714bc7901010160cd1b6101c0850152815180830183526005815264776869746560d81b8183015261018085015261010084015161012085018190526101408501528151600380825260808201909352600092909182015b6060815260200190600190039081612216579050509050604051806040016040528060078152602001660233231344637360cc1b8152508160008151811061226e57634e487b7160e01b600052603260045260246000fd5b6020026020010181905250604051806040016040528060078152602001660234641463743360cc1b815250816001815181106122ba57634e487b7160e01b600052603260045260246000fd5b6020026020010181905250604051806040016040528060078152602001661199191919191960c91b8152508160028151811061230657634e487b7160e01b600052603260045260246000fd5b6020026020010181905250600d8360e001516123229190615cec565b61ffff166123b25760408051808201825260068152654d6f7361696360d01b6020808301919091526101a0860191909152660714e53101010160cd1b6101c0860152815180830190925260078252661199a09a191a2360c91b908201528151829060029081106123a257634e487b7160e01b600052603260045260246000fd5b6020026020010181905250612454565b600b8360e001516123c39190615cec565b61ffff1661245457604080518082018252600b81526a151bdade5bc8111c9a599d60aa1b6020808301919091526101a0860191909152660714e53901010160cd1b6101c0860152815180830190925260078252661199a09a191a2360c91b9082015281518290600290811061244857634e487b7160e01b600052603260045260246000fd5b60200260200101819052505b6000858152600c60205260409020546124d5578060038460e001516124799190615cec565b61ffff168151811061249b57634e487b7160e01b600052603260045260246000fd5b60200260200101518361010001516000815181106124c957634e487b7160e01b600052603260045260246000fd5b60200260200101819052505b505b60005b600f811015612753576124f36101f46103ff8416615d0d565b6124fe906001615b98565b8360400151828151811061252257634e487b7160e01b600052603260045260246000fd5b61ffff909216602092830291909101909101526101f461254960106303ff00008516615bf6565b6125539190615d0d565b61255e906001615b98565b8360600151828151811061258257634e487b7160e01b600052603260045260246000fd5b61ffff9092166020928302919091018201526097906125a8906101ff60201b8516615bf6565b6125b29190615d0d565b6125bd9060fa615b98565b8360a0015182815181106125e157634e487b7160e01b600052603260045260246000fd5b61ffff9092166020928302919091019091015261260760976101ff603085901c16615d0d565b6126129060fa615b98565b8360800151828151811061263657634e487b7160e01b600052603260045260246000fd5b61ffff9092166020928302919091019091015261016861265e60406101ff60401b8516615bf6565b6126689190615d0d565b612673906001615b98565b8360c00151828151811061269757634e487b7160e01b600052603260045260246000fd5b61ffff909216602092830291909101909101526126bd60026101ff605085901c16615d0d565b836020015182815181106126e157634e487b7160e01b600052603260045260246000fd5b60ff9092166020928302919091019091015261270660036101ff606085901c16615d0d565b835180518390811061272857634e487b7160e01b600052603260045260246000fd5b60ff9092166020928302919091019091015260029190911c908061274b81615cd1565b9150506124da565b50909392505050565b6060600061276983613318565b9050600061277b8461014001516137a0565b905060006127a18561010001518661016001518760e0015161279c8a612f11565b613919565b905060006127cd8661010001518761018001518860e00151896101c001516127c88c612f11565b613aff565b9050838383836040516020016127e69493929190615035565b60405160208183030381529060405294505050505092915050565b606081516000141561282157505060408051602081019091526000815290565b6000604051806060016040528060408152602001615def60409139905060006003845160026128509190615b98565b61285a9190615bf6565b612865906004615c34565b90506000612874826020615b98565b6001600160401b0381111561289957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156128c3576020820181803683370190505b509050818152600183018586518101602084015b8183101561292f576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f81168501518253506001016128d7565b600389510660018114612949576002811461295a57612966565b613d3d60f01b600119830152612966565b603d60f81b6000198301525b509398975050505050505050565b6060604051602001612a74907f2265787465726e616c5f75726c223a2268747470733a2f2f73796e6378636f6c8152681bdc9ccb9e1e5e888b60ba1b60208201527f226465736372697074696f6e223a2253796e63205820436f6c6f72732069732060298201527f6120756e697175652c206f6e2d636861696e2067656e6572617469766520636f60498201527f6c6c656374696f6e206f662053796e6373206f6e20457468657265756d2e204560698201527f6163682053796e632063616e2062652072652d636f6c6f7265642077697468206089820152773732bb9021b7b637b9399030ba1030b73c903a34b6b2971160411b60a982015260c10190565b604051602081830303815290604052905090565b6000828152600c60209081526040808320805482518185028101850190935280835260609493830182828015612b0557602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff1681526020019060020190602082600101049283019260010382029150808411612acc5790505b505083519394506000925060039150612b1b9050565b604051908082528060200260200182016040528015612b4e57816020015b6060815260200190600190039081612b395790505b50905060005b82811015612c5b57739fdb31f8ce3cb8400c7ccb2299492f2a498330a46001600160a01b031663e01c8fa1858381518110612b9f57634e487b7160e01b600052603260045260246000fd5b602002602001015161ffff166040518263ffffffff1660e01b8152600401612bc991815260200190565b60006040518083038186803b158015612be157600080fd5b505afa158015612bf5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612c1d91908101906142d4565b828281518110612c3d57634e487b7160e01b600052603260045260246000fd5b60200260200101819052508080612c5390615cd1565b915050612b54565b506000856101a00151866101c00151604051602001612c7b929190615899565b60405160208183030381529060405290508082600081518110612cae57634e487b7160e01b600052603260045260246000fd5b602002602001015183600181518110612cd757634e487b7160e01b600052603260045260246000fd5b602002602001015184600281518110612d0057634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160008c8152600e909252604090912054612d289060ff16612f11565b604051602001612d3c9594939291906148da565b60408051808303601f19018152919052979650505050505050565b6001600160a01b038316612db257612dad81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612dd5565b816001600160a01b0316836001600160a01b031614612dd557612dd58382613cb7565b6001600160a01b038216612dec5761072e81613d54565b826001600160a01b0316826001600160a01b03161461072e5761072e8282613e2d565b60006001600160a01b0384163b1561162157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612e5390339089908890889060040161593f565b602060405180830381600087803b158015612e6d57600080fd5b505af1925050508015612e9d575060408051601f3d908101601f19168201909252612e9a918101906142b8565b60015b612ef7573d808015612ecb576040519150601f19603f3d011682016040523d82523d6000602084013e612ed0565b606091505b508051612eef5760405162461bcd60e51b81526004016105fd90615985565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611127565b606081612f355750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612f5f5780612f4981615cd1565b9150612f589050600a83615bf6565b9150612f39565b6000816001600160401b03811115612f8757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612fb1576020820181803683370190505b5090505b841561112757612fc6600183615c53565b9150612fd3600a86615d0d565b612fde906030615b98565b60f81b81838151811061300157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350613023600a86615bf6565b9450612fb5565b6130348383613e71565b6130416000848484612e0f565b61072e5760405162461bcd60e51b81526004016105fd90615985565b6000818152600c602090815260408083208054825181850281018501909352808352606094938301828280156130da57602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff16815260200190600201906020826001010492830192600103820291508084116130a15790505b5050506000868152600c602052604080822054815160038082526080820190935295965094919350909150816020015b606081526020019060019003908161310a579050509050604051806040016040528060078152602001661199191919191960c91b8152508160008151811061316257634e487b7160e01b600052603260045260246000fd5b6020026020010181905250604051806040016040528060078152602001662337373737373760c81b815250816001815181106131ae57634e487b7160e01b600052603260045260246000fd5b6020026020010181905250604051806040016040528060078152602001662341414141414160c81b815250816002815181106131fa57634e487b7160e01b600052603260045260246000fd5b602002602001018190525060005b8281101561330f57739fdb31f8ce3cb8400c7ccb2299492f2a498330a46001600160a01b031663e01c8fa185838151811061325357634e487b7160e01b600052603260045260246000fd5b602002602001015161ffff166040518263ffffffff1660e01b815260040161327d91815260200190565b60006040518083038186803b15801561329557600080fd5b505afa1580156132a9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526132d191908101906142d4565b8282815181106132f157634e487b7160e01b600052603260045260246000fd5b6020026020010181905250808061330790615cd1565b915050613208565b50949350505050565b6040805180820190915260168152751e33903334b63616b7b830b1b4ba3c9e91181719911f60511b6020820152606090819060005b600f811015613776578460200151818151811061337a57634e487b7160e01b600052603260045260246000fd5b602002602001015160ff16600014156134955761012085015185518051839081106133b557634e487b7160e01b600052603260045260246000fd5b602002602001015160ff16815181106133de57634e487b7160e01b600052603260045260246000fd5b602002602001015161341e8660400151838151811061340d57634e487b7160e01b600052603260045260246000fd5b602002602001015161ffff16612f11565b6134458760600151848151811061340d57634e487b7160e01b600052603260045260246000fd5b61346c8860a00151858151811061340d57634e487b7160e01b600052603260045260246000fd5b60405160200161347f949392919061513e565b6040516020818303038152906040529250613642565b846020015181815181106134b957634e487b7160e01b600052603260045260246000fd5b602002602001015160ff16600114156136425761012085015185518051839081106134f457634e487b7160e01b600052603260045260246000fd5b602002602001015160ff168151811061351d57634e487b7160e01b600052603260045260246000fd5b602002602001015161356960028760400151848151811061354e57634e487b7160e01b600052603260045260246000fd5b60200260200101516135609190615bd5565b61ffff16612f11565b61359260028860600151858151811061354e57634e487b7160e01b600052603260045260246000fd5b6135cd8860a0015185815181106135b957634e487b7160e01b600052603260045260246000fd5b602002602001015160026135609190615c0a565b6135f4896080015186815181106135b957634e487b7160e01b600052603260045260246000fd5b61361b8a60c00151878151811061340d57634e487b7160e01b600052603260045260246000fd5b60405160200161363096959493929190614f1c565b60405160208183030381529060405292505b60138560e001516136539190615cec565b61ffff161580156136775750605f8560e001516136709190615cec565b61ffff1615155b806136945750600d8560e0015161368e9190615cec565b61ffff16155b1561371c5782856101400151866000015183815181106136c457634e487b7160e01b600052603260045260246000fd5b602002602001015160ff16815181106136ed57634e487b7160e01b600052603260045260246000fd5b60200260200101516040516020016137069291906146a3565b604051602081830303815290604052925061373f565b8260405160200161372d91906146f7565b60405160208183030381529060405292505b8183604051602001613752929190614531565b6040516020818303038152906040529150808061376e90615cd1565b91505061334d565b5080604051602001613788919061467b565b60405160208183030381529060405292505050919050565b60606000826000815181106137c557634e487b7160e01b600052603260045260246000fd5b6020026020010151836001815181106137ee57634e487b7160e01b600052603260045260246000fd5b60200260200101518460008151811061381757634e487b7160e01b600052603260045260246000fd5b6020026020010151604051602001613831939291906152a8565b60405160208183030381529060405290506000604051602001613853906153da565b604051602081830303815290604052905060008460028151811061388757634e487b7160e01b600052603260045260246000fd5b6020026020010151856000815181106138b057634e487b7160e01b600052603260045260246000fd5b6020026020010151866002815181106138d957634e487b7160e01b600052603260045260246000fd5b60200260200101516040516020016138f393929190615528565b6040516020818303038152906040529050828282604051602001610d8993929190614560565b606060008260405160200161392e9190614e0d565b60408051601f19818403018152919052905061394c61014d85615cec565b61ffff161580613968575061396260f185615cec565b61ffff16155b8061397f5750613979601385615cec565b61ffff16155b15613a55578085876000815181106139a757634e487b7160e01b600052603260045260246000fd5b6020026020010151886001815181106139d057634e487b7160e01b600052603260045260246000fd5b6020026020010151896002815181106139f957634e487b7160e01b600052603260045260246000fd5b60200260200101518a600081518110613a2257634e487b7160e01b600052603260045260246000fd5b6020026020010151604051602001613a3f9695949392919061471d565b6040516020818303038152906040529050613af6565b8086600081518110613a7757634e487b7160e01b600052603260045260246000fd5b602002602001015187600181518110613aa057634e487b7160e01b600052603260045260246000fd5b602002602001015188600281518110613ac957634e487b7160e01b600052603260045260246000fd5b6020026020010151604051602001613ae494939291906145a3565b60405160208183030381529060405290505b95945050505050565b6060613b0c600b85615cec565b61ffff1615613b9d578486600081518110613b3757634e487b7160e01b600052603260045260246000fd5b60200260200101819052508486600181518110613b6457634e487b7160e01b600052603260045260246000fd5b60200260200101819052508486600281518110613b9157634e487b7160e01b600052603260045260246000fd5b60200260200101819052505b60008387600081518110613bc157634e487b7160e01b600052603260045260246000fd5b6020026020010151604051602001613bda929190614bab565b6040516020818303038152906040529050600087600181518110613c0e57634e487b7160e01b600052603260045260246000fd5b6020026020010151604051602001613c269190614a52565b6040516020818303038152906040529050600088600281518110613c5a57634e487b7160e01b600052603260045260246000fd5b602002602001015185604051602001613c749291906156eb565b6040516020818303038152906040529050828282604051602001613c9a93929190614560565b604051602081830303815290604052935050505095945050505050565b60006001613cc48461093d565b613cce9190615c53565b600083815260076020526040902054909150808214613d21576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090613d6690600190615c53565b60008381526009602052604081205460088054939450909284908110613d9c57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110613dcb57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480613e1157634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000613e388361093d565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b038216613ec75760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016105fd565b613ed08161101f565b15613f1c5760405162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b60448201526064016105fd565b613f2860008383612d57565b6001600160a01b0382166000908152600360205260408120805460019290613f51908490615b98565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386169081179091559051839290600080516020615e2f833981519152908290a45050565b82805482825590600052602060002090600f0160109004810192821561403a5791602002820160005b8382111561400a57833561ffff1683826101000a81548161ffff021916908361ffff1602179055509260200192600201602081600101049283019260010302613fc6565b80156140385782816101000a81549061ffff021916905560020160208160010104928301926001030261400a565b505b506140469291506140ce565b5090565b604051806101e0016040528060608152602001606081526020016060815260200160608152602001606081526020016060815260200160608152602001600061ffff16815260200160608152602001606081526020016060815260200160608152602001606081526020016060815260200160006001600160c81b03191681525090565b5b8082111561404657600081556001016140cf565b6000602082840312156140f4578081fd5b81356140ff81615d63565b9392505050565b600060208284031215614117578081fd5b81516140ff81615d63565b60008060408385031215614134578081fd5b823561413f81615d63565b9150602083013561414f81615d63565b809150509250929050565b60008060006060848603121561416e578081fd5b833561417981615d63565b9250602084013561418981615d63565b929592945050506040919091013590565b600080600080608085870312156141af578081fd5b84356141ba81615d63565b935060208501356141ca81615d63565b92506040850135915060608501356001600160401b038111156141eb578182fd5b8501601f810187136141fb578182fd5b803561420e61420982615b71565b615b41565b818152886020838501011115614222578384fd5b81602084016020830137908101602001929092525092959194509250565b60008060408385031215614252578182fd5b823561425d81615d63565b91506020830135801515811461414f578182fd5b60008060408385031215614283578182fd5b823561428e81615d63565b946020939093013593505050565b6000602082840312156142ad578081fd5b81356140ff81615d78565b6000602082840312156142c9578081fd5b81516140ff81615d78565b6000602082840312156142e5578081fd5b81516001600160401b038111156142fa578182fd5b8201601f8101841361430a578182fd5b805161431861420982615b71565b81815285602083850101111561432c578384fd5b613af6826020830160208601615c6a565b60006020828403121561434e578081fd5b813561ffff811681146140ff578182fd5b600060208284031215614370578081fd5b5035919050565b60008060006040848603121561438b578283fd5b8335925060208401356001600160401b03808211156143a8578384fd5b818601915086601f8301126143bb578384fd5b8135818111156143c9578485fd5b8760208260051b85010111156143dd578485fd5b6020830194508093505050509250925092565b60008151808452614408816020860160208601615c6a565b601f01601f19169290920160200192915050565b6000815161442e818560208601615c6a565b9290920192915050565b7f643d224d3139352e352032343863302033302033372e352033302035322e352081527f30732035322e352d33302035322e352030732d33372e352033302d35322e352060208201527f30732d35322e352d33302d35322e352030222066696c6c3d226e6f6e65223e006040820152605f0190565b7f3c616e696d617465206174747269627574654e616d653d2266696c6c222076618152716c7565733d227472616e73706172656e743b60701b602082015260320190565b600080516020615d8f8339815191528152600080516020615dcf83398151915260208201526b35b291103b30b63ab2b99e9160a11b6040820152604c0190565b60008351614543818460208801615c6a565b835190830190614557818360208801615c6a565b01949350505050565b60008451614572818460208901615c6a565b845190830190614586818360208901615c6a565b8451910190614599818360208801615c6a565b0195945050505050565b600085516145b5818460208a01615c6a565b8083019050600080516020615d8f83398151915281527f74654e616d653d2266696c6c22206475723d223673222076616c7565733d22626020820152646c61636b3b60d81b60408201528551614612816045840160208a01615c6a565b808201915050663b626c61636b3b60c81b806045830152855161463c81604c850160208a01615c6a565b604c9201918201528351614657816053840160208801615c6a565b681db13630b1b591179f60b91b60539290910191820152605c019695505050505050565b6000825161468d818460208701615c6a565b631e17b39f60e11b920191825250600401919050565b600083516146b5818460208801615c6a565b681039ba3937b5b29e9160b91b90830190815283516146db816009840160208801615c6a565b6211179f60e91b60099290910191820152600c01949350505050565b60008251614709818460208701615c6a565b61179f60f11b920191825250600201919050565b6000875161472f818460208c01615c6a565b80830190507f3c736574206174747269627574654e616d653d227374726f6b652d646173686181526e393930bc91103a379e91191811179f60891b60208201527f3c736574206174747269627574654e616d653d227374726f6b652d7769647468602f8201526911103a379e911911179f60b11b604f8201527f3c736574206174747269627574654e616d653d2266696c6c2220746f3d220000605982015287516147e1816077840160208c01615c6a565b6211179f60e91b60779290910191820152600080516020615d8f833981519152607a820152600080516020615dcf833981519152609a8201527f6b652d646173686f6666736574222066726f6d3d22302220746f3d223238302260ba8201527810323ab91e911b3991103334b6361e91333932b2bd3291179f60391b60da8201526148cd6148a76148a161488861489b816148958161488260f38a016144f1565b8f61441c565b603b60f81b815260010190565b8c61441c565b8961441c565b8661441c565b791110323ab91e911b3991103334b6361e91333932b2bd3291179f60311b8152601a0190565b9998505050505050505050565b600086516148ec818460208b01615c6a565b80830190507f7b2274726169745f74797065223a22436f6c6f722031222c2276616c7565223a8152601160f91b8060208301528751614932816021850160208c01615c6a565b62089f4b60ea1b6021939091019283018190527f7b2274726169745f74797065223a22436f6c6f722032222c2276616c7565223a6024840152604483018290528751614985816045860160208c01615c6a565b60459301928301527f7b2274726169745f74797065223a22436f6c6f722033222c2276616c7565223a60488301526068820152614a17614a096148a16149e06149d1606986018a61441c565b62089f4b60ea1b815260030190565b7f7b2274726169745f74797065223a22526573796e6373222c2276616c7565223a815260200190565b617d5d60f01b815260020190565b98975050505050505050565b60008551614a35818460208a01615c6a565b919091019384525060208301919091526040820152606001919050565b7f3c7061746820643d224d363020323132632d313720333420302037342030203781527f34683963302d312d31332d333420302d37347a22207374726f6b652d6f70616360208201527f6974793d22302e35222066696c6c2d6f7061636974793d22302e35222066696c60408201526f361e913a3930b739b830b932b73a111f60811b60608201526000614ae8607083016144ad565b8351614af8818360208801615c6a565b7f3b7472616e73706172656e742220626567696e3d22772e626567696e2b302e3291019081526c399110323ab91e9118b991179f60991b6020820152600080516020615daf833981519152602d820152600080516020615e4f833981519152604d8201527f6172656e742220626567696e3d22772e626567696e2b302e327322206475723d606d820152651118b991179f60d11b608d820152661e17b830ba341f60c91b6093820152609a019392505050565b7f3c2f706174683e3c7465787420783d22322220793d2234302220666f6e742d7381527f697a653d2233656d222066696c6c2d6f7061636974793d22302e33222066696c602082015262361e9160e91b604082015266313630b1b5911f60c91b60438201526001600160c81b03198316604a820152661e17ba32bc3a1f60c91b60518201527f3c7061746820643d224d393020323033632d323120343120302039312030203960588201527f31683131633020302d31362d343220302d39317a22207374726f6b652d6f706160788201527f636974793d22302e37222066696c6c2d6f7061636974793d22302e372220666960988201527f6c6c3d227472616e73706172656e74223e3c616e696d6174652069643d22772260b88201527f206174747269627574654e616d653d2266696c6c222076616c7565733d22747260d882015269616e73706172656e743b60b01b60f88201526000611127614dfa614d7b614d1a61010286018761441c565b7f3b7472616e73706172656e742220626567696e3d22732e626567696e2b2e313781527f733b732e626567696e2b322e3137733b732e626567696e2b342e3137732220646020820152683ab91e9118b991179f60b91b604082015260490190565b7f3c616e696d61746520626567696e3d22772e626567696e22206174747269627581527f74654e616d653d227374726f6b65222076616c7565733d227472616e7370617260208201527f656e743b626c61636b3b7472616e73706172656e7422206475723d223173222f6040820152601f60f91b606082015260610190565b661e17b830ba341f60c91b815260070190565b661e339034b21e9160c91b81528151600090614e30816007850160208701615c6a565b6231111f60e91b60079390910192830152507f3c7061746820643d224d3139342031373948313331632d333420363520302031600a8201527f3433203020313433683633433133322032353120313934203137392031393420602a8201527f3137395a6d2d32362031323848313434732d32352d333520302d313131683233604a8201527202998991b10191a1a90189b1c1019981bad111606d1b606a8201527f7374726f6b653d22626c61636b222066696c6c2d6f7061636974793d22302e39607d82015274111039ba3937b5b296bbb4b23a341e9118171b911f60591b609d82015260b201919050565b6b1e3932b1ba103334b6361e9160a11b81528651600090614f4481600c850160208c01615c6a565b6411103c1e9160d91b600c918401918201528751614f69816011840160208c01615c6a565b6411103c9e9160d91b601192909101918201528651614f8f816016840160208b01615c6a565b6811103bb4b23a341e9160b91b601692909101918201528551614fb981601f840160208a01615c6a565b6911103432b4b3b43a1e9160b11b601f92909101918201528451614fe4816029840160208901615c6a565b6150276150196150136029848601017304440e8e4c2dce6ccdee4da7a44e4dee8c2e8ca560631b815260140190565b8761441c565b61149160f11b815260020190565b9a9950505050505050505050565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f737667222077696474683d2235303022206865696768743d223530302260208201527f2076696577626f783d22302030203530302035303022207374796c653d22626160408201527731b5b3b937bab73216b1b7b637b91d11989898989898911f60411b6060820152600085516150da816078850160208a01615c6a565b8551908301906150f1816078840160208a01615c6a565b8551910190615107816078840160208901615c6a565b845191019061511d816078840160208801615c6a565b651e17b9bb339f60d11b60789290910191820152607e019695505050505050565b6d1e31b4b931b632903334b6361e9160911b8152845160009061516881600e850160208a01615c6a565b65111031bc1e9160d11b600e91840191820152855161518e816014840160208a01615c6a565b65111031bc9e9160d11b6014929091019182015284516151b581601a840160208901615c6a565b641110391e9160d91b601a929091019182015283516151db81601f840160208801615c6a565b601160f91b601f92909101918201526020019695505050505050565b607b60f81b8152681134b6b0b3b2911d1160b91b60018201527919185d184e9a5b5859d94bdcdd99cade1b5b0ed8985cd94d8d0b60321b600a8201528351600090615249816024850160208901615c6a565b61088b60f21b602491840191820152845161526b816026840160208901615c6a565b600b60fa1b60269290910191820152835161528d816027840160208801615c6a565b607d60f81b6027929091019182015260280195945050505050565b7f3c673e3c70617468207374726f6b652d6461736861727261793d22302220737481527f726f6b652d646173686f66667365743d223022207374726f6b652d776964746860208201526501e91189b11160d51b6040820152600061531661531160468401614438565b6144f1565b8551615326818360208a01615c6a565b603b60f81b91018181528551909190615346816001850160208a01615c6a565b60019201918201528351615361816002840160208801615c6a565b791110323ab91e911a3991103334b6361e91333932b2bd3291179f60311b60029290910191820152601c0195945050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152600082516153cd81601d850160208701615c6a565b91909101601d0192915050565b600080516020615d8f8339815191528152600080516020615dcf833981519152602082018190527f6b652d646173686172726179222076616c7565733d22303b35303b3022206475604083015275391e911b3991103334b6361e91333932b2bd3291179f60511b60608301527f3c616e696d61746520626567696e3d22612e626567696e222061747472696275607683015260968201527f6b652d7769647468222076616c7565733d2231363b32303b313622206475723d60b6820152731118b991103334b6361e91333932b2bd3291179f60611b60d68201527f3c2f706174683e3c70617468207374726f6b652d6461736861727261793d223360ea8201527f303022207374726f6b652d646173686f66667365743d2233303022207374726f61010a8201526d035b296bbb4b23a341e91189b11160951b61012a82015260006104fd6101388301614438565b6000615533826144f1565b8551615543818360208a01615c6a565b603b60f81b91018181528551909190615563816001850160208a01615c6a565b6001920191820152835161557e816002840160208801615c6a565b791110323ab91e911a3991103334b6361e91333932b2bd3291179f60311b910160028101919091527f3c616e696d6174652069643d22612220626567696e3d22732e626567696e3b61601c8201527f2e656e642220617474726962757465547970653d22584d4c2220617474726962603c8201527f7574654e616d653d227374726f6b652d7769647468222076616c7565733d2231605c8201527f363b32303b313622206475723d223173222066696c6c3d22667265657a65222f607c820152601f60f91b609c8201527f3c616e696d6174652069643d22732220617474726962757465547970653d2258609d8201527f4d4c22206174747269627574654e616d653d227374726f6b652d646173686f6660bd8201527f667365742220626567696e3d2230733b732e656e642220746f3d20222d31383060dd82015277181110323ab91e911b3991179f1e17b830ba341f1e17b39f60411b60fd82015261011581015b9695505050505050565b7f3c7061746820643d224d333720323231632d313320323620302035372030203581527f376837633020302d31302d323620302d35377a22207374726f6b652d6f70616360208201527f6974793d22302e33222066696c6c2d6f7061636974793d22302e33222066696c60408201526f361e913a3930b739b830b932b73a111f60811b60608201526000615781607083016144ad565b8451615791818360208901615c6a565b7f3b7472616e73706172656e742220626567696e3d22772e626567696e2b302e3491019081526c399110323ab91e9118b991179f60991b6020820152600080516020615daf833981519152602d820152600080516020615e4f833981519152604d8201527f6172656e742220626567696e3d22772e626567696e2b302e347322206475723d606d820152651118b991179f60d11b608d820152763c2f706174683e3c2f673e3c75736520687265663d222360481b6093820152613af661585960aa83016148a1565b7f622220783d222d3530302220793d222d35303022207472616e73666f726d3d2281526d3937ba30ba3294189c181491179f60911b6020820152602e0190565b6d2261747472696275746573223a5b60901b81527f7b2274726169745f74797065223a22526172697479222c2276616c7565223a22600e82015282516000906158e981602e850160208801615c6a565b62089f4b60ea1b9201602e81018390527f7b2274726169745f74797065223a22536967696c222c2276616c7565223a220060318201526001600160c81b0319939093166050840152506057820152605a01919050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906156e1908301846143f0565b6020815260006140ff60208301846143f0565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b602080825260129082015271496e73756666696369656e742066756e647360701b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601d908201527f2320434f4c4f525320746f6b656e496473206d757374206265203c3d33000000604082015260600190565b6020808252601b908201527a21a7a627a929903737ba1037bbb732b210313c9039b2b73232b91760291b604082015260600190565b604051601f8201601f191681016001600160401b0381118282101715615b6957615b69615d4d565b604052919050565b60006001600160401b03821115615b8a57615b8a615d4d565b50601f01601f191660200190565b60008219821115615bab57615bab615d21565b500190565b600060ff821660ff84168060ff03821115615bcd57615bcd615d21565b019392505050565b600061ffff80841680615bea57615bea615d37565b92169190910492915050565b600082615c0557615c05615d37565b500490565b600061ffff80831681851681830481118215151615615c2b57615c2b615d21565b02949350505050565b6000816000190483118215151615615c4e57615c4e615d21565b500290565b600082821015615c6557615c65615d21565b500390565b60005b83811015615c85578181015183820152602001615c6d565b83811115610a5e5750506000910152565b600181811c90821680615caa57607f821691505b60208210811415615ccb57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415615ce557615ce5615d21565b5060010190565b600061ffff80841680615d0157615d01615d37565b92169190910692915050565b600082615d1c57615d1c615d37565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610fcc57600080fd5b6001600160e01b031981168114610fcc57600080fdfe3c616e696d61746520626567696e3d22732e626567696e2220617474726962753c616e696d617465206174747269627574654e616d653d227374726f6b6522207465547970653d22584d4c22206174747269627574654e616d653d227374726f4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef76616c7565733d227472616e73706172656e743b626c61636b3b7472616e7370a2646970667358221220b5566fd8dd289dd6904c9486ff94aaae38b984f0ddfd029b1f3ee95dd1af7d5264736f6c63430008040033
Deployed Bytecode
0x60806040526004361061015d5760003560e01c806301ffc9a7146101625780630427f6921461019757806306fdde03146101ba578063081812fc146101dc578063095ea7b31461021457806318160ddd146102365780631b1e9b241461024b578063239c70ae1461026157806323b872dd146102765780632f745c591461029657806332cb6b0c146102b657806342842e0e146102cb5780634f6ccce7146102eb5780636352211e1461030b5780636817c76c1461032b5780636dcb0f961461034657806370a0823114610361578063715018a6146103815780638da5cb5b1461039657806395d89b41146103ab578063a22cb465146103c0578063b88d4fde146103e0578063bb51f32d14610400578063be4bc0b514610415578063c87b56dd14610428578063c8f8b61314610448578063deba081314610470578063e8cc00ad14610483578063e985e9c514610498578063f2fde38b146104b8575b600080fd5b34801561016e57600080fd5b5061018261017d36600461429c565b6104d8565b60405190151581526020015b60405180910390f35b3480156101a357600080fd5b506101ac601181565b60405190815260200161018e565b3480156101c657600080fd5b506101cf610503565b60405161018e9190615972565b3480156101e857600080fd5b506101fc6101f736600461435f565b610595565b6040516001600160a01b03909116815260200161018e565b34801561022057600080fd5b5061023461022f366004614271565b610622565b005b34801561024257600080fd5b506008546101ac565b34801561025757600080fd5b506101ac600b5481565b34801561026d57600080fd5b506101ac600a81565b34801561028257600080fd5b5061023461029136600461415a565b610733565b3480156102a257600080fd5b506101ac6102b1366004614271565b610764565b3480156102c257600080fd5b506101ac6107fa565b3480156102d757600080fd5b506102346102e636600461415a565b61080a565b3480156102f757600080fd5b506101ac61030636600461435f565b610825565b34801561031757600080fd5b506101fc61032636600461435f565b6108c6565b34801561033757600080fd5b506101ac66b1a2bc2ec5000081565b34801561035257600080fd5b506101ac6611c37937e0800081565b34801561036d57600080fd5b506101ac61037c3660046140e3565b61093d565b34801561038d57600080fd5b506102346109c4565b3480156103a257600080fd5b506101fc6109ff565b3480156103b757600080fd5b506101cf610a0e565b3480156103cc57600080fd5b506102346103db366004614240565b610a1d565b3480156103ec57600080fd5b506102346103fb36600461419a565b610a2c565b34801561040c57600080fd5b50610234610a64565b610234610423366004614377565b610ac8565b34801561043457600080fd5b506101cf61044336600461435f565b610cee565b34801561045457600080fd5b506101fc739fdb31f8ce3cb8400c7ccb2299492f2a498330a481565b61023461047e366004614377565b610da2565b34801561048f57600080fd5b50610234610ed2565b3480156104a457600080fd5b506101826104b3366004614122565b610f01565b3480156104c457600080fd5b506102346104d33660046140e3565b610f2f565b60006001600160e01b0319821663780e9d6360e01b14806104fd57506104fd82610fcf565b92915050565b60606000805461051290615c96565b80601f016020809104026020016040519081016040528092919081815260200182805461053e90615c96565b801561058b5780601f106105605761010080835404028352916020019161058b565b820191906000526020600020905b81548152906001019060200180831161056e57829003601f168201915b5050505050905090565b60006105a08261101f565b6106065760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061062d826108c6565b9050806001600160a01b0316836001600160a01b0316141561069b5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016105fd565b336001600160a01b03821614806106b757506106b78133610f01565b6107245760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b60648201526084016105fd565b61072e838361103c565b505050565b61073d33826110aa565b6107595760405162461bcd60e51b81526004016105fd90615a84565b61072e83838361112f565b600061076f8361093d565b82106107d15760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016105fd565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b61080760116110dd615c53565b81565b61072e83838360405180602001604052806000815250610a2c565b600061083060085490565b82106108935760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016105fd565b600882815481106108b457634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806104fd5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016105fd565b60006001600160a01b0382166109a85760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016105fd565b506001600160a01b031660009081526003602052604090205490565b336109cd6109ff565b6001600160a01b0316146109f35760405162461bcd60e51b81526004016105fd90615a4f565b6109fd60006112c8565b565b600a546001600160a01b031690565b60606001805461051290615c96565b610a2833838361131a565b5050565b610a3633836110aa565b610a525760405162461bcd60e51b81526004016105fd90615a84565b610a5e848484846113e5565b50505050565b3373263853ef2c3dd98a986799ab72e3b78334eb88cb14610ac05760405162461bcd60e51b81526020600482015260166024820152754f6e6c79207465616d2063616e20776974686472617760501b60448201526064016105fd565b6109fd611418565b6000610ad360085490565b9050600084118015610ae65750600a8411155b610b275760405162461bcd60e51b815260206004820152601260248201527109ac2f040dad2dce840626040e0cae440e8f60731b60448201526064016105fd565b6003821115610b485760405162461bcd60e51b81526004016105fd90615ad5565b3373263853ef2c3dd98a986799ab72e3b78334eb88cb1415610bdb57601184600b54610b749190615b98565b1115610bbe5760405162461bcd60e51b81526020600482015260196024820152784e6f7420656e6f756768207265736572766520746f6b656e7360381b60448201526064016105fd565b83600b6000828254610bd09190615b98565b90915550610c869050565b610be860116110dd615c53565b610bf28583615b98565b1115610c315760405162461bcd60e51b815260206004820152600e60248201526d4578636565647320737570706c7960901b60448201526064016105fd565b610c428466b1a2bc2ec50000615c34565b3414610c605760405162461bcd60e51b81526004016105fd90615a23565b610c6a8383611515565b610c865760405162461bcd60e51b81526004016105fd90615b0c565b805b610c928583615b98565b811015610ce7576000818152600c60205260409020610cb2908585613f9d565b50610cbc8161162c565b6000828152600d6020526040902055610cd5338261169d565b80610cdf81615cd1565b915050610c88565b5050505050565b6060610cf98261101f565b610d155760405162461bcd60e51b81526004016105fd906159d7565b6000610d20836116b7565b90506000610d2e848361275c565b90506000610d3b82612801565b9050610d7981610d49612974565b610d538887612a88565b604051602001610d65939291906151f7565b604051602081830303815290604052612801565b604051602001610d899190615395565b6040516020818303038152906040529350505050919050565b610dab836108c6565b6001600160a01b0316336001600160a01b031614610e0b5760405162461bcd60e51b815260206004820181905260248201527f4f6e6c79204e465420686f6c6465722063616e20757064617465436f6c6f727360448201526064016105fd565b6003811115610e2c5760405162461bcd60e51b81526004016105fd90615ad5565b6611c37937e08000341015610e535760405162461bcd60e51b81526004016105fd90615a23565b610e5d8282611515565b610e795760405162461bcd60e51b81526004016105fd90615b0c565b6000838152600c60205260409020610e92908383613f9d565b506000838152600e60205260408120805460019290610eb590849060ff16615bb0565b92506101000a81548160ff021916908360ff160217905550505050565b33610edb6109ff565b6001600160a01b031614610ac05760405162461bcd60e51b81526004016105fd90615a4f565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b33610f386109ff565b6001600160a01b031614610f5e5760405162461bcd60e51b81526004016105fd90615a4f565b6001600160a01b038116610fc35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105fd565b610fcc816112c8565b50565b60006001600160e01b031982166380ac58cd60e01b148061100057506001600160e01b03198216635b5e139f60e01b145b806104fd57506301ffc9a760e01b6001600160e01b03198316146104fd565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611071826108c6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006110b58261101f565b6110d15760405162461bcd60e51b81526004016105fd906159d7565b60006110dc836108c6565b9050806001600160a01b0316846001600160a01b031614806111175750836001600160a01b031661110c84610595565b6001600160a01b0316145b8061112757506111278185610f01565b949350505050565b826001600160a01b0316611142826108c6565b6001600160a01b0316146111aa5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016105fd565b6001600160a01b03821661120c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016105fd565b611217838383612d57565b61122260008261103c565b6001600160a01b038316600090815260036020526040812080546001929061124b908490615c53565b90915550506001600160a01b0382166000908152600360205260408120805460019290611279908490615b98565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b038681169182179092559151849391871691600080516020615e2f83398151915291a4505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156113785760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b60448201526064016105fd565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6113f084848461112f565b6113fc84848484612e0f565b610a5e5760405162461bcd60e51b81526004016105fd90615985565b60004773263853ef2c3dd98a986799ab72e3b78334eb88cb606461143d836032615c34565b6114479190615bf6565b604051600081818185875af1925050503d8060008114611483576040519150601f19603f3d011682016040523d82523d6000602084013e611488565b606091505b5050809250508161149857600080fd5b7348ae900e9df45441b2001db4da92ce0e7c08c6d260646114ba836032615c34565b6114c49190615bf6565b604051600081818185875af1925050503d8060008114611500576040519150601f19603f3d011682016040523d82523d6000602084013e611505565b606091505b50508092505081610a2857600080fd5b6000739fdb31f8ce3cb8400c7ccb2299492f2a498330a4815b8381101561162157816001600160a01b0316636352211e86868481811061156557634e487b7160e01b600052603260045260246000fd5b905060200201602081019061157a919061433d565b61ffff166040518263ffffffff1660e01b815260040161159c91815260200190565b60206040518083038186803b1580156115b457600080fd5b505afa1580156115c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115ec9190614106565b6001600160a01b0316336001600160a01b03161461160f576000925050506104fd565b8061161981615cd1565b91505061152e565b506001949350505050565b60008061163a836001615b98565b9050739fdb31f8ce3cb8400c7ccb2299492f2a498330a461165b8183615c34565b61166483612f11565b42448460405160200161167a9493929190614a23565b6040516020818303038152906040528051906020012060001c6111279190615b98565b610a2882826040518060200160405280600081525061302a565b6116bf61404a565b6116c761404a565b60408051600f808252610200820190925290602082016101e0803683375050506040828101919091528051600f808252610200820190925290602082016101e080368337505050606082015260408051600f808252610200820190925290602082016101e08036833750505060a082015260408051600f808252610200820190925290602082016101e080368337505050608082015260408051600f808252610200820190925290602082016101e08036833750505060c082015260408051600f808252610200820190925290602082016101e08036833701905050602082015260408051600f80825261020082019092529081602001602082028036833750505081526040805160038082526080820190925290602082015b60608152602001906001900390816117e15750506101208201526040805160038082526080820190925290602082015b60608152602001906001900390816118115750506101408201526000838152600d602052604090205461184a6103e86103ff8316615d0d565b611855906001615b98565b61ffff1660e08301526118678461305d565b61010083015260e082015161187f9061014d90615cec565b61ffff16611af857604080518082018252600780825266436f6e6361766560c81b6020808401919091526101a086019290925266e29daa20e29dab60c81b6101c086015282518084019093528252660233231344637360cc1b90820152610120830151805160009061190157634e487b7160e01b600052603260045260246000fd5b602002602001018190525060405180604001604052806007815260200166119922992299a360c91b81525082610120015160018151811061195257634e487b7160e01b600052603260045260246000fd5b602002602001018190525060405180604001604052806007815260200166119922992299a360c91b8152508261012001516002815181106119a357634e487b7160e01b600052603260045260246000fd5b6020026020010181905250604051806040016040528060078152602001660234641463743360cc1b8152508261014001516000815181106119f457634e487b7160e01b600052603260045260246000fd5b6020026020010181905250604051806040016040528060078152602001660233231344637360cc1b815250826101400151600181518110611a4557634e487b7160e01b600052603260045260246000fd5b6020026020010181905250604051806040016040528060078152602001660234641463743360cc1b815250826101400151600281518110611a9657634e487b7160e01b600052603260045260246000fd5b6020026020010181905250604051806040016040528060078152602001660234641463743360cc1b815250826101600181905250604051806040016040528060078152602001660234641463743360cc1b8152508261018001819052506124d7565b60f18260e00151611b099190615cec565b61ffff16611d82576040805180820182526007808252664f6c796d70757360c81b6020808401919091526101a0860192909252660784ecdc01010160cd1b6101c08601528251808401909352825266119c18209b20a360c91b908201526101208301518051600090611b8b57634e487b7160e01b600052603260045260246000fd5b6020026020010181905250604051806040016040528060078152602001661199a09a191a2360c91b815250826101200151600181518110611bdc57634e487b7160e01b600052603260045260246000fd5b602002602001018190525060405180604001604052806007815260200166119c18209b20a360c91b815250826101200151600281518110611c2d57634e487b7160e01b600052603260045260246000fd5b6020026020010181905250604051806040016040528060078152602001660468c8c866e6c760cb1b815250826101400151600081518110611c7e57634e487b7160e01b600052603260045260246000fd5b6020026020010181905250604051806040016040528060078152602001661199a09a191a2360c91b815250826101400151600181518110611ccf57634e487b7160e01b600052603260045260246000fd5b6020026020010181905250604051806040016040528060078152602001660468c8c866e6c760cb1b815250826101400151600281518110611d2057634e487b7160e01b600052603260045260246000fd5b6020026020010181905250604051806040016040528060078152602001660468c8c866e6c760cb1b815250826101600181905250604051806040016040528060078152602001660468c8c866e6c760cb1b8152508261018001819052506124d7565b60138260e00151611d939190615cec565b61ffff1661219457604080518082018252600681526529b4b63b32b960d11b6020808301919091526101a0850191909152660714c43101010160cd1b6101c0850152815180830190925260078252660236330633063360cc1b908201526101208301518051600090611e1557634e487b7160e01b600052603260045260246000fd5b60200260200101819052506040518060400160405280600781526020016611b29ab29a329960c91b815250826101200151600181518110611e6657634e487b7160e01b600052603260045260246000fd5b6020026020010181905250604051806040016040528060078152602001660236330633063360cc1b815250826101200151600281518110611eb757634e487b7160e01b600052603260045260246000fd5b602002602001018190525060405180604001604052806005815260200164776869746560d81b815250826101400151600081518110611f0657634e487b7160e01b600052603260045260246000fd5b6020026020010181905250604051806040016040528060078152602001660234330433043360cc1b815250826101400151600181518110611f5757634e487b7160e01b600052603260045260246000fd5b60200260200101819052506040518060400160405280600781526020016611a1a21ba3199960c91b815250826101400151600281518110611fa857634e487b7160e01b600052603260045260246000fd5b602002602001018190525060405180604001604052806005815260200164626c61636b60d81b81525082610160018190525060405180604001604052806005815260200164626c61636b60d81b815250826101800181905250605f8260e001516120129190615cec565b61ffff1661218f57604080518082018252600481526311dbdb1960e21b6020808301919091526101a0850191909152660714c42901010160cd1b6101c08501528151808301909252600782526611a1a21ba3199960c91b90820152610120830151805160009061209257634e487b7160e01b600052603260045260246000fd5b6020026020010181905250604051806040016040528060078152602001660466e646ac862760cb1b8152508261012001516002815181106120e357634e487b7160e01b600052603260045260246000fd5b602002602001018190525060405180604001604052806005815260200164626c61636b60d81b81525082610140015160008151811061213257634e487b7160e01b600052603260045260246000fd5b60200260200101819052506040518060400160405280600781526020016611a29aa29a229960c91b81525082610140015160028151811061218357634e487b7160e01b600052603260045260246000fd5b60200260200101819052505b6124d7565b604080518082018252600681526521b7b6b6b7b760d11b6020808301919091526101a0850191909152660714bc7901010160cd1b6101c0850152815180830183526005815264776869746560d81b8183015261018085015261010084015161012085018190526101408501528151600380825260808201909352600092909182015b6060815260200190600190039081612216579050509050604051806040016040528060078152602001660233231344637360cc1b8152508160008151811061226e57634e487b7160e01b600052603260045260246000fd5b6020026020010181905250604051806040016040528060078152602001660234641463743360cc1b815250816001815181106122ba57634e487b7160e01b600052603260045260246000fd5b6020026020010181905250604051806040016040528060078152602001661199191919191960c91b8152508160028151811061230657634e487b7160e01b600052603260045260246000fd5b6020026020010181905250600d8360e001516123229190615cec565b61ffff166123b25760408051808201825260068152654d6f7361696360d01b6020808301919091526101a0860191909152660714e53101010160cd1b6101c0860152815180830190925260078252661199a09a191a2360c91b908201528151829060029081106123a257634e487b7160e01b600052603260045260246000fd5b6020026020010181905250612454565b600b8360e001516123c39190615cec565b61ffff1661245457604080518082018252600b81526a151bdade5bc8111c9a599d60aa1b6020808301919091526101a0860191909152660714e53901010160cd1b6101c0860152815180830190925260078252661199a09a191a2360c91b9082015281518290600290811061244857634e487b7160e01b600052603260045260246000fd5b60200260200101819052505b6000858152600c60205260409020546124d5578060038460e001516124799190615cec565b61ffff168151811061249b57634e487b7160e01b600052603260045260246000fd5b60200260200101518361010001516000815181106124c957634e487b7160e01b600052603260045260246000fd5b60200260200101819052505b505b60005b600f811015612753576124f36101f46103ff8416615d0d565b6124fe906001615b98565b8360400151828151811061252257634e487b7160e01b600052603260045260246000fd5b61ffff909216602092830291909101909101526101f461254960106303ff00008516615bf6565b6125539190615d0d565b61255e906001615b98565b8360600151828151811061258257634e487b7160e01b600052603260045260246000fd5b61ffff9092166020928302919091018201526097906125a8906101ff60201b8516615bf6565b6125b29190615d0d565b6125bd9060fa615b98565b8360a0015182815181106125e157634e487b7160e01b600052603260045260246000fd5b61ffff9092166020928302919091019091015261260760976101ff603085901c16615d0d565b6126129060fa615b98565b8360800151828151811061263657634e487b7160e01b600052603260045260246000fd5b61ffff9092166020928302919091019091015261016861265e60406101ff60401b8516615bf6565b6126689190615d0d565b612673906001615b98565b8360c00151828151811061269757634e487b7160e01b600052603260045260246000fd5b61ffff909216602092830291909101909101526126bd60026101ff605085901c16615d0d565b836020015182815181106126e157634e487b7160e01b600052603260045260246000fd5b60ff9092166020928302919091019091015261270660036101ff606085901c16615d0d565b835180518390811061272857634e487b7160e01b600052603260045260246000fd5b60ff9092166020928302919091019091015260029190911c908061274b81615cd1565b9150506124da565b50909392505050565b6060600061276983613318565b9050600061277b8461014001516137a0565b905060006127a18561010001518661016001518760e0015161279c8a612f11565b613919565b905060006127cd8661010001518761018001518860e00151896101c001516127c88c612f11565b613aff565b9050838383836040516020016127e69493929190615035565b60405160208183030381529060405294505050505092915050565b606081516000141561282157505060408051602081019091526000815290565b6000604051806060016040528060408152602001615def60409139905060006003845160026128509190615b98565b61285a9190615bf6565b612865906004615c34565b90506000612874826020615b98565b6001600160401b0381111561289957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156128c3576020820181803683370190505b509050818152600183018586518101602084015b8183101561292f576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f81168501518253506001016128d7565b600389510660018114612949576002811461295a57612966565b613d3d60f01b600119830152612966565b603d60f81b6000198301525b509398975050505050505050565b6060604051602001612a74907f2265787465726e616c5f75726c223a2268747470733a2f2f73796e6378636f6c8152681bdc9ccb9e1e5e888b60ba1b60208201527f226465736372697074696f6e223a2253796e63205820436f6c6f72732069732060298201527f6120756e697175652c206f6e2d636861696e2067656e6572617469766520636f60498201527f6c6c656374696f6e206f662053796e6373206f6e20457468657265756d2e204560698201527f6163682053796e632063616e2062652072652d636f6c6f7265642077697468206089820152773732bb9021b7b637b9399030ba1030b73c903a34b6b2971160411b60a982015260c10190565b604051602081830303815290604052905090565b6000828152600c60209081526040808320805482518185028101850190935280835260609493830182828015612b0557602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff1681526020019060020190602082600101049283019260010382029150808411612acc5790505b505083519394506000925060039150612b1b9050565b604051908082528060200260200182016040528015612b4e57816020015b6060815260200190600190039081612b395790505b50905060005b82811015612c5b57739fdb31f8ce3cb8400c7ccb2299492f2a498330a46001600160a01b031663e01c8fa1858381518110612b9f57634e487b7160e01b600052603260045260246000fd5b602002602001015161ffff166040518263ffffffff1660e01b8152600401612bc991815260200190565b60006040518083038186803b158015612be157600080fd5b505afa158015612bf5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612c1d91908101906142d4565b828281518110612c3d57634e487b7160e01b600052603260045260246000fd5b60200260200101819052508080612c5390615cd1565b915050612b54565b506000856101a00151866101c00151604051602001612c7b929190615899565b60405160208183030381529060405290508082600081518110612cae57634e487b7160e01b600052603260045260246000fd5b602002602001015183600181518110612cd757634e487b7160e01b600052603260045260246000fd5b602002602001015184600281518110612d0057634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160008c8152600e909252604090912054612d289060ff16612f11565b604051602001612d3c9594939291906148da565b60408051808303601f19018152919052979650505050505050565b6001600160a01b038316612db257612dad81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612dd5565b816001600160a01b0316836001600160a01b031614612dd557612dd58382613cb7565b6001600160a01b038216612dec5761072e81613d54565b826001600160a01b0316826001600160a01b03161461072e5761072e8282613e2d565b60006001600160a01b0384163b1561162157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612e5390339089908890889060040161593f565b602060405180830381600087803b158015612e6d57600080fd5b505af1925050508015612e9d575060408051601f3d908101601f19168201909252612e9a918101906142b8565b60015b612ef7573d808015612ecb576040519150601f19603f3d011682016040523d82523d6000602084013e612ed0565b606091505b508051612eef5760405162461bcd60e51b81526004016105fd90615985565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611127565b606081612f355750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612f5f5780612f4981615cd1565b9150612f589050600a83615bf6565b9150612f39565b6000816001600160401b03811115612f8757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612fb1576020820181803683370190505b5090505b841561112757612fc6600183615c53565b9150612fd3600a86615d0d565b612fde906030615b98565b60f81b81838151811061300157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350613023600a86615bf6565b9450612fb5565b6130348383613e71565b6130416000848484612e0f565b61072e5760405162461bcd60e51b81526004016105fd90615985565b6000818152600c602090815260408083208054825181850281018501909352808352606094938301828280156130da57602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff16815260200190600201906020826001010492830192600103820291508084116130a15790505b5050506000868152600c602052604080822054815160038082526080820190935295965094919350909150816020015b606081526020019060019003908161310a579050509050604051806040016040528060078152602001661199191919191960c91b8152508160008151811061316257634e487b7160e01b600052603260045260246000fd5b6020026020010181905250604051806040016040528060078152602001662337373737373760c81b815250816001815181106131ae57634e487b7160e01b600052603260045260246000fd5b6020026020010181905250604051806040016040528060078152602001662341414141414160c81b815250816002815181106131fa57634e487b7160e01b600052603260045260246000fd5b602002602001018190525060005b8281101561330f57739fdb31f8ce3cb8400c7ccb2299492f2a498330a46001600160a01b031663e01c8fa185838151811061325357634e487b7160e01b600052603260045260246000fd5b602002602001015161ffff166040518263ffffffff1660e01b815260040161327d91815260200190565b60006040518083038186803b15801561329557600080fd5b505afa1580156132a9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526132d191908101906142d4565b8282815181106132f157634e487b7160e01b600052603260045260246000fd5b6020026020010181905250808061330790615cd1565b915050613208565b50949350505050565b6040805180820190915260168152751e33903334b63616b7b830b1b4ba3c9e91181719911f60511b6020820152606090819060005b600f811015613776578460200151818151811061337a57634e487b7160e01b600052603260045260246000fd5b602002602001015160ff16600014156134955761012085015185518051839081106133b557634e487b7160e01b600052603260045260246000fd5b602002602001015160ff16815181106133de57634e487b7160e01b600052603260045260246000fd5b602002602001015161341e8660400151838151811061340d57634e487b7160e01b600052603260045260246000fd5b602002602001015161ffff16612f11565b6134458760600151848151811061340d57634e487b7160e01b600052603260045260246000fd5b61346c8860a00151858151811061340d57634e487b7160e01b600052603260045260246000fd5b60405160200161347f949392919061513e565b6040516020818303038152906040529250613642565b846020015181815181106134b957634e487b7160e01b600052603260045260246000fd5b602002602001015160ff16600114156136425761012085015185518051839081106134f457634e487b7160e01b600052603260045260246000fd5b602002602001015160ff168151811061351d57634e487b7160e01b600052603260045260246000fd5b602002602001015161356960028760400151848151811061354e57634e487b7160e01b600052603260045260246000fd5b60200260200101516135609190615bd5565b61ffff16612f11565b61359260028860600151858151811061354e57634e487b7160e01b600052603260045260246000fd5b6135cd8860a0015185815181106135b957634e487b7160e01b600052603260045260246000fd5b602002602001015160026135609190615c0a565b6135f4896080015186815181106135b957634e487b7160e01b600052603260045260246000fd5b61361b8a60c00151878151811061340d57634e487b7160e01b600052603260045260246000fd5b60405160200161363096959493929190614f1c565b60405160208183030381529060405292505b60138560e001516136539190615cec565b61ffff161580156136775750605f8560e001516136709190615cec565b61ffff1615155b806136945750600d8560e0015161368e9190615cec565b61ffff16155b1561371c5782856101400151866000015183815181106136c457634e487b7160e01b600052603260045260246000fd5b602002602001015160ff16815181106136ed57634e487b7160e01b600052603260045260246000fd5b60200260200101516040516020016137069291906146a3565b604051602081830303815290604052925061373f565b8260405160200161372d91906146f7565b60405160208183030381529060405292505b8183604051602001613752929190614531565b6040516020818303038152906040529150808061376e90615cd1565b91505061334d565b5080604051602001613788919061467b565b60405160208183030381529060405292505050919050565b60606000826000815181106137c557634e487b7160e01b600052603260045260246000fd5b6020026020010151836001815181106137ee57634e487b7160e01b600052603260045260246000fd5b60200260200101518460008151811061381757634e487b7160e01b600052603260045260246000fd5b6020026020010151604051602001613831939291906152a8565b60405160208183030381529060405290506000604051602001613853906153da565b604051602081830303815290604052905060008460028151811061388757634e487b7160e01b600052603260045260246000fd5b6020026020010151856000815181106138b057634e487b7160e01b600052603260045260246000fd5b6020026020010151866002815181106138d957634e487b7160e01b600052603260045260246000fd5b60200260200101516040516020016138f393929190615528565b6040516020818303038152906040529050828282604051602001610d8993929190614560565b606060008260405160200161392e9190614e0d565b60408051601f19818403018152919052905061394c61014d85615cec565b61ffff161580613968575061396260f185615cec565b61ffff16155b8061397f5750613979601385615cec565b61ffff16155b15613a55578085876000815181106139a757634e487b7160e01b600052603260045260246000fd5b6020026020010151886001815181106139d057634e487b7160e01b600052603260045260246000fd5b6020026020010151896002815181106139f957634e487b7160e01b600052603260045260246000fd5b60200260200101518a600081518110613a2257634e487b7160e01b600052603260045260246000fd5b6020026020010151604051602001613a3f9695949392919061471d565b6040516020818303038152906040529050613af6565b8086600081518110613a7757634e487b7160e01b600052603260045260246000fd5b602002602001015187600181518110613aa057634e487b7160e01b600052603260045260246000fd5b602002602001015188600281518110613ac957634e487b7160e01b600052603260045260246000fd5b6020026020010151604051602001613ae494939291906145a3565b60405160208183030381529060405290505b95945050505050565b6060613b0c600b85615cec565b61ffff1615613b9d578486600081518110613b3757634e487b7160e01b600052603260045260246000fd5b60200260200101819052508486600181518110613b6457634e487b7160e01b600052603260045260246000fd5b60200260200101819052508486600281518110613b9157634e487b7160e01b600052603260045260246000fd5b60200260200101819052505b60008387600081518110613bc157634e487b7160e01b600052603260045260246000fd5b6020026020010151604051602001613bda929190614bab565b6040516020818303038152906040529050600087600181518110613c0e57634e487b7160e01b600052603260045260246000fd5b6020026020010151604051602001613c269190614a52565b6040516020818303038152906040529050600088600281518110613c5a57634e487b7160e01b600052603260045260246000fd5b602002602001015185604051602001613c749291906156eb565b6040516020818303038152906040529050828282604051602001613c9a93929190614560565b604051602081830303815290604052935050505095945050505050565b60006001613cc48461093d565b613cce9190615c53565b600083815260076020526040902054909150808214613d21576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090613d6690600190615c53565b60008381526009602052604081205460088054939450909284908110613d9c57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110613dcb57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480613e1157634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000613e388361093d565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b038216613ec75760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016105fd565b613ed08161101f565b15613f1c5760405162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b60448201526064016105fd565b613f2860008383612d57565b6001600160a01b0382166000908152600360205260408120805460019290613f51908490615b98565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386169081179091559051839290600080516020615e2f833981519152908290a45050565b82805482825590600052602060002090600f0160109004810192821561403a5791602002820160005b8382111561400a57833561ffff1683826101000a81548161ffff021916908361ffff1602179055509260200192600201602081600101049283019260010302613fc6565b80156140385782816101000a81549061ffff021916905560020160208160010104928301926001030261400a565b505b506140469291506140ce565b5090565b604051806101e0016040528060608152602001606081526020016060815260200160608152602001606081526020016060815260200160608152602001600061ffff16815260200160608152602001606081526020016060815260200160608152602001606081526020016060815260200160006001600160c81b03191681525090565b5b8082111561404657600081556001016140cf565b6000602082840312156140f4578081fd5b81356140ff81615d63565b9392505050565b600060208284031215614117578081fd5b81516140ff81615d63565b60008060408385031215614134578081fd5b823561413f81615d63565b9150602083013561414f81615d63565b809150509250929050565b60008060006060848603121561416e578081fd5b833561417981615d63565b9250602084013561418981615d63565b929592945050506040919091013590565b600080600080608085870312156141af578081fd5b84356141ba81615d63565b935060208501356141ca81615d63565b92506040850135915060608501356001600160401b038111156141eb578182fd5b8501601f810187136141fb578182fd5b803561420e61420982615b71565b615b41565b818152886020838501011115614222578384fd5b81602084016020830137908101602001929092525092959194509250565b60008060408385031215614252578182fd5b823561425d81615d63565b91506020830135801515811461414f578182fd5b60008060408385031215614283578182fd5b823561428e81615d63565b946020939093013593505050565b6000602082840312156142ad578081fd5b81356140ff81615d78565b6000602082840312156142c9578081fd5b81516140ff81615d78565b6000602082840312156142e5578081fd5b81516001600160401b038111156142fa578182fd5b8201601f8101841361430a578182fd5b805161431861420982615b71565b81815285602083850101111561432c578384fd5b613af6826020830160208601615c6a565b60006020828403121561434e578081fd5b813561ffff811681146140ff578182fd5b600060208284031215614370578081fd5b5035919050565b60008060006040848603121561438b578283fd5b8335925060208401356001600160401b03808211156143a8578384fd5b818601915086601f8301126143bb578384fd5b8135818111156143c9578485fd5b8760208260051b85010111156143dd578485fd5b6020830194508093505050509250925092565b60008151808452614408816020860160208601615c6a565b601f01601f19169290920160200192915050565b6000815161442e818560208601615c6a565b9290920192915050565b7f643d224d3139352e352032343863302033302033372e352033302035322e352081527f30732035322e352d33302035322e352030732d33372e352033302d35322e352060208201527f30732d35322e352d33302d35322e352030222066696c6c3d226e6f6e65223e006040820152605f0190565b7f3c616e696d617465206174747269627574654e616d653d2266696c6c222076618152716c7565733d227472616e73706172656e743b60701b602082015260320190565b600080516020615d8f8339815191528152600080516020615dcf83398151915260208201526b35b291103b30b63ab2b99e9160a11b6040820152604c0190565b60008351614543818460208801615c6a565b835190830190614557818360208801615c6a565b01949350505050565b60008451614572818460208901615c6a565b845190830190614586818360208901615c6a565b8451910190614599818360208801615c6a565b0195945050505050565b600085516145b5818460208a01615c6a565b8083019050600080516020615d8f83398151915281527f74654e616d653d2266696c6c22206475723d223673222076616c7565733d22626020820152646c61636b3b60d81b60408201528551614612816045840160208a01615c6a565b808201915050663b626c61636b3b60c81b806045830152855161463c81604c850160208a01615c6a565b604c9201918201528351614657816053840160208801615c6a565b681db13630b1b591179f60b91b60539290910191820152605c019695505050505050565b6000825161468d818460208701615c6a565b631e17b39f60e11b920191825250600401919050565b600083516146b5818460208801615c6a565b681039ba3937b5b29e9160b91b90830190815283516146db816009840160208801615c6a565b6211179f60e91b60099290910191820152600c01949350505050565b60008251614709818460208701615c6a565b61179f60f11b920191825250600201919050565b6000875161472f818460208c01615c6a565b80830190507f3c736574206174747269627574654e616d653d227374726f6b652d646173686181526e393930bc91103a379e91191811179f60891b60208201527f3c736574206174747269627574654e616d653d227374726f6b652d7769647468602f8201526911103a379e911911179f60b11b604f8201527f3c736574206174747269627574654e616d653d2266696c6c2220746f3d220000605982015287516147e1816077840160208c01615c6a565b6211179f60e91b60779290910191820152600080516020615d8f833981519152607a820152600080516020615dcf833981519152609a8201527f6b652d646173686f6666736574222066726f6d3d22302220746f3d223238302260ba8201527810323ab91e911b3991103334b6361e91333932b2bd3291179f60391b60da8201526148cd6148a76148a161488861489b816148958161488260f38a016144f1565b8f61441c565b603b60f81b815260010190565b8c61441c565b8961441c565b8661441c565b791110323ab91e911b3991103334b6361e91333932b2bd3291179f60311b8152601a0190565b9998505050505050505050565b600086516148ec818460208b01615c6a565b80830190507f7b2274726169745f74797065223a22436f6c6f722031222c2276616c7565223a8152601160f91b8060208301528751614932816021850160208c01615c6a565b62089f4b60ea1b6021939091019283018190527f7b2274726169745f74797065223a22436f6c6f722032222c2276616c7565223a6024840152604483018290528751614985816045860160208c01615c6a565b60459301928301527f7b2274726169745f74797065223a22436f6c6f722033222c2276616c7565223a60488301526068820152614a17614a096148a16149e06149d1606986018a61441c565b62089f4b60ea1b815260030190565b7f7b2274726169745f74797065223a22526573796e6373222c2276616c7565223a815260200190565b617d5d60f01b815260020190565b98975050505050505050565b60008551614a35818460208a01615c6a565b919091019384525060208301919091526040820152606001919050565b7f3c7061746820643d224d363020323132632d313720333420302037342030203781527f34683963302d312d31332d333420302d37347a22207374726f6b652d6f70616360208201527f6974793d22302e35222066696c6c2d6f7061636974793d22302e35222066696c60408201526f361e913a3930b739b830b932b73a111f60811b60608201526000614ae8607083016144ad565b8351614af8818360208801615c6a565b7f3b7472616e73706172656e742220626567696e3d22772e626567696e2b302e3291019081526c399110323ab91e9118b991179f60991b6020820152600080516020615daf833981519152602d820152600080516020615e4f833981519152604d8201527f6172656e742220626567696e3d22772e626567696e2b302e327322206475723d606d820152651118b991179f60d11b608d820152661e17b830ba341f60c91b6093820152609a019392505050565b7f3c2f706174683e3c7465787420783d22322220793d2234302220666f6e742d7381527f697a653d2233656d222066696c6c2d6f7061636974793d22302e33222066696c602082015262361e9160e91b604082015266313630b1b5911f60c91b60438201526001600160c81b03198316604a820152661e17ba32bc3a1f60c91b60518201527f3c7061746820643d224d393020323033632d323120343120302039312030203960588201527f31683131633020302d31362d343220302d39317a22207374726f6b652d6f706160788201527f636974793d22302e37222066696c6c2d6f7061636974793d22302e372220666960988201527f6c6c3d227472616e73706172656e74223e3c616e696d6174652069643d22772260b88201527f206174747269627574654e616d653d2266696c6c222076616c7565733d22747260d882015269616e73706172656e743b60b01b60f88201526000611127614dfa614d7b614d1a61010286018761441c565b7f3b7472616e73706172656e742220626567696e3d22732e626567696e2b2e313781527f733b732e626567696e2b322e3137733b732e626567696e2b342e3137732220646020820152683ab91e9118b991179f60b91b604082015260490190565b7f3c616e696d61746520626567696e3d22772e626567696e22206174747269627581527f74654e616d653d227374726f6b65222076616c7565733d227472616e7370617260208201527f656e743b626c61636b3b7472616e73706172656e7422206475723d223173222f6040820152601f60f91b606082015260610190565b661e17b830ba341f60c91b815260070190565b661e339034b21e9160c91b81528151600090614e30816007850160208701615c6a565b6231111f60e91b60079390910192830152507f3c7061746820643d224d3139342031373948313331632d333420363520302031600a8201527f3433203020313433683633433133322032353120313934203137392031393420602a8201527f3137395a6d2d32362031323848313434732d32352d333520302d313131683233604a8201527202998991b10191a1a90189b1c1019981bad111606d1b606a8201527f7374726f6b653d22626c61636b222066696c6c2d6f7061636974793d22302e39607d82015274111039ba3937b5b296bbb4b23a341e9118171b911f60591b609d82015260b201919050565b6b1e3932b1ba103334b6361e9160a11b81528651600090614f4481600c850160208c01615c6a565b6411103c1e9160d91b600c918401918201528751614f69816011840160208c01615c6a565b6411103c9e9160d91b601192909101918201528651614f8f816016840160208b01615c6a565b6811103bb4b23a341e9160b91b601692909101918201528551614fb981601f840160208a01615c6a565b6911103432b4b3b43a1e9160b11b601f92909101918201528451614fe4816029840160208901615c6a565b6150276150196150136029848601017304440e8e4c2dce6ccdee4da7a44e4dee8c2e8ca560631b815260140190565b8761441c565b61149160f11b815260020190565b9a9950505050505050505050565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f737667222077696474683d2235303022206865696768743d223530302260208201527f2076696577626f783d22302030203530302035303022207374796c653d22626160408201527731b5b3b937bab73216b1b7b637b91d11989898989898911f60411b6060820152600085516150da816078850160208a01615c6a565b8551908301906150f1816078840160208a01615c6a565b8551910190615107816078840160208901615c6a565b845191019061511d816078840160208801615c6a565b651e17b9bb339f60d11b60789290910191820152607e019695505050505050565b6d1e31b4b931b632903334b6361e9160911b8152845160009061516881600e850160208a01615c6a565b65111031bc1e9160d11b600e91840191820152855161518e816014840160208a01615c6a565b65111031bc9e9160d11b6014929091019182015284516151b581601a840160208901615c6a565b641110391e9160d91b601a929091019182015283516151db81601f840160208801615c6a565b601160f91b601f92909101918201526020019695505050505050565b607b60f81b8152681134b6b0b3b2911d1160b91b60018201527919185d184e9a5b5859d94bdcdd99cade1b5b0ed8985cd94d8d0b60321b600a8201528351600090615249816024850160208901615c6a565b61088b60f21b602491840191820152845161526b816026840160208901615c6a565b600b60fa1b60269290910191820152835161528d816027840160208801615c6a565b607d60f81b6027929091019182015260280195945050505050565b7f3c673e3c70617468207374726f6b652d6461736861727261793d22302220737481527f726f6b652d646173686f66667365743d223022207374726f6b652d776964746860208201526501e91189b11160d51b6040820152600061531661531160468401614438565b6144f1565b8551615326818360208a01615c6a565b603b60f81b91018181528551909190615346816001850160208a01615c6a565b60019201918201528351615361816002840160208801615c6a565b791110323ab91e911a3991103334b6361e91333932b2bd3291179f60311b60029290910191820152601c0195945050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152600082516153cd81601d850160208701615c6a565b91909101601d0192915050565b600080516020615d8f8339815191528152600080516020615dcf833981519152602082018190527f6b652d646173686172726179222076616c7565733d22303b35303b3022206475604083015275391e911b3991103334b6361e91333932b2bd3291179f60511b60608301527f3c616e696d61746520626567696e3d22612e626567696e222061747472696275607683015260968201527f6b652d7769647468222076616c7565733d2231363b32303b313622206475723d60b6820152731118b991103334b6361e91333932b2bd3291179f60611b60d68201527f3c2f706174683e3c70617468207374726f6b652d6461736861727261793d223360ea8201527f303022207374726f6b652d646173686f66667365743d2233303022207374726f61010a8201526d035b296bbb4b23a341e91189b11160951b61012a82015260006104fd6101388301614438565b6000615533826144f1565b8551615543818360208a01615c6a565b603b60f81b91018181528551909190615563816001850160208a01615c6a565b6001920191820152835161557e816002840160208801615c6a565b791110323ab91e911a3991103334b6361e91333932b2bd3291179f60311b910160028101919091527f3c616e696d6174652069643d22612220626567696e3d22732e626567696e3b61601c8201527f2e656e642220617474726962757465547970653d22584d4c2220617474726962603c8201527f7574654e616d653d227374726f6b652d7769647468222076616c7565733d2231605c8201527f363b32303b313622206475723d223173222066696c6c3d22667265657a65222f607c820152601f60f91b609c8201527f3c616e696d6174652069643d22732220617474726962757465547970653d2258609d8201527f4d4c22206174747269627574654e616d653d227374726f6b652d646173686f6660bd8201527f667365742220626567696e3d2230733b732e656e642220746f3d20222d31383060dd82015277181110323ab91e911b3991179f1e17b830ba341f1e17b39f60411b60fd82015261011581015b9695505050505050565b7f3c7061746820643d224d333720323231632d313320323620302035372030203581527f376837633020302d31302d323620302d35377a22207374726f6b652d6f70616360208201527f6974793d22302e33222066696c6c2d6f7061636974793d22302e33222066696c60408201526f361e913a3930b739b830b932b73a111f60811b60608201526000615781607083016144ad565b8451615791818360208901615c6a565b7f3b7472616e73706172656e742220626567696e3d22772e626567696e2b302e3491019081526c399110323ab91e9118b991179f60991b6020820152600080516020615daf833981519152602d820152600080516020615e4f833981519152604d8201527f6172656e742220626567696e3d22772e626567696e2b302e347322206475723d606d820152651118b991179f60d11b608d820152763c2f706174683e3c2f673e3c75736520687265663d222360481b6093820152613af661585960aa83016148a1565b7f622220783d222d3530302220793d222d35303022207472616e73666f726d3d2281526d3937ba30ba3294189c181491179f60911b6020820152602e0190565b6d2261747472696275746573223a5b60901b81527f7b2274726169745f74797065223a22526172697479222c2276616c7565223a22600e82015282516000906158e981602e850160208801615c6a565b62089f4b60ea1b9201602e81018390527f7b2274726169745f74797065223a22536967696c222c2276616c7565223a220060318201526001600160c81b0319939093166050840152506057820152605a01919050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906156e1908301846143f0565b6020815260006140ff60208301846143f0565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b602080825260129082015271496e73756666696369656e742066756e647360701b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601d908201527f2320434f4c4f525320746f6b656e496473206d757374206265203c3d33000000604082015260600190565b6020808252601b908201527a21a7a627a929903737ba1037bbb732b210313c9039b2b73232b91760291b604082015260600190565b604051601f8201601f191681016001600160401b0381118282101715615b6957615b69615d4d565b604052919050565b60006001600160401b03821115615b8a57615b8a615d4d565b50601f01601f191660200190565b60008219821115615bab57615bab615d21565b500190565b600060ff821660ff84168060ff03821115615bcd57615bcd615d21565b019392505050565b600061ffff80841680615bea57615bea615d37565b92169190910492915050565b600082615c0557615c05615d37565b500490565b600061ffff80831681851681830481118215151615615c2b57615c2b615d21565b02949350505050565b6000816000190483118215151615615c4e57615c4e615d21565b500290565b600082821015615c6557615c65615d21565b500390565b60005b83811015615c85578181015183820152602001615c6d565b83811115610a5e5750506000910152565b600181811c90821680615caa57607f821691505b60208210811415615ccb57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415615ce557615ce5615d21565b5060010190565b600061ffff80841680615d0157615d01615d37565b92169190910692915050565b600082615d1c57615d1c615d37565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610fcc57600080fd5b6001600160e01b031981168114610fcc57600080fdfe3c616e696d61746520626567696e3d22732e626567696e2220617474726962753c616e696d617465206174747269627574654e616d653d227374726f6b6522207465547970653d22584d4c22206174747269627574654e616d653d227374726f4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef76616c7565733d227472616e73706172656e743b626c61636b3b7472616e7370a2646970667358221220b5566fd8dd289dd6904c9486ff94aaae38b984f0ddfd029b1f3ee95dd1af7d5264736f6c63430008040033
Loading...
Loading
Loading...
Loading
[ 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.