Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
NFT
Overview
Max Total Supply
1,065 CLST
Holders
693
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
3 CLSTLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Celestial
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 10 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; interface extInterface { function ownerOf(uint256 _tokenId) external view returns (address); } contract Celestial is ERC721, Ownable, ReentrancyGuard { using Counters for Counters.Counter; Counters.Counter private celestialSupply; constructor() ERC721("Celestial", "CLST") {} address internal distortionAddress = 0x205A10c241cA38918d3790C89F16675cC46D10a9; uint256 public maxSupply = 1111; /* if a Distortion holder of more than 1 merges their claims, the max supply reduces */ bool internal distClaimActive; bool internal mintActive; uint256 internal price; mapping(address => bool) internal onePerWallet; mapping(uint256 => bool) internal distortionTokenIdClaimed; mapping(uint256 => uint256) internal tokenTransferredTimestamp; mapping(uint256 => uint256) internal tokenLevels; /* * ___ ___ _ ___ ___ _ _ _ _ ___ _____ ___ ___ _ _ ___ * | _ \ __| /_\ | \ | __| | | | \| |/ __|_ _|_ _/ _ \| \| / __| * | / _| / _ \| |) | | _|| |_| | .` | (__ | | | | (_) | .` \__ \ * |_|_\___/_/ \_\___/ |_| \___/|_|\_|\___| |_| |___\___/|_|\_|___/ * */ function totalSupply() public view returns (uint256 supply) { return celestialSupply.current(); } function hasDistortionClaimed(uint256 _tokenId) public view returns (bool) { return distortionTokenIdClaimed[_tokenId]; } function isDistClaimActive() public view returns (bool) { return distClaimActive; } function isMintActive() public view returns (bool) { return mintActive; } function getPrice() public view returns (uint256) { return price; } function getTokenTimeHeld(uint256 _tokenId) public view returns (uint256) { require(_exists(_tokenId), "Token doesn't exist..."); return block.timestamp - tokenTransferredTimestamp[_tokenId]; } function getTokenLevel(uint256 _tokenId) public view returns (uint256) { require(_exists(_tokenId), "Token doesn't exist..."); return tokenLevels[_tokenId] + 1; } function levelsEligibleForUpgrade(uint256 _tokenId) public view returns (uint256) { return getTokenTimeHeld(_tokenId) / timeBeforeUpgrade; } /* * _____ ___ _ ___ ___ ___ _ _ _ _ ___ _____ ___ ___ _ _ ___ * / _ \ \ / / \| | __| _ \ | __| | | | \| |/ __|_ _|_ _/ _ \| \| / __| * | (_) \ \/\/ /| .` | _|| / | _|| |_| | .` | (__ | | | | (_) | .` \__ \ * \___/ \_/\_/ |_|\_|___|_|_\ |_| \___/|_|\_|\___| |_| |___\___/|_|\_|___/ * */ function setDistClaim(bool _boolean) external onlyOwner { distClaimActive = _boolean; } function setMint(bool _boolean) external onlyOwner { mintActive = _boolean; } function setPrice(uint256 _price) external onlyOwner { price = _price; } uint256 public timeBeforeUpgrade = 7 days; function setTimeBeforeUpgrade(uint256 _time) external onlyOwner { timeBeforeUpgrade = _time; } bool internal artistMintingPermanentlyDisabled; function disableArtistMinting() external onlyOwner { artistMintingPermanentlyDisabled = true; } function withdraw() public onlyOwner { uint256 balance = address(this).balance; Address.sendValue(payable(owner()), balance); } /* * __ __ ___ _ _ _____ __ __ ___ ___ ___ ___ ___ ___ ___ ___ * | \/ |_ _| \| |_ _| | \/ |/ _ \| \_ _| __|_ _| __| _ \/ __| * | |\/| || || .` | | | | |\/| | (_) | |) | || _| | || _|| /\__ \ * |_| |_|___|_|\_| |_| |_| |_|\___/|___/___|_| |___|___|_|_\|___/ * */ modifier claimReqs(uint256 _amount) { require(isDistClaimActive(), "Claim is not active..."); require(tx.origin == msg.sender); require(celestialSupply.current() + _amount <= maxSupply, "Max supply cap reached."); _; } modifier mintReqs() { require(isMintActive(), "Mint is not active..."); require(!onePerWallet[msg.sender]); require(msg.value == getPrice()); require(tx.origin == msg.sender); require(celestialSupply.current() + 1 <= maxSupply, "Max supply cap reached."); _; } /* * __ __ ___ _ _ _____ ___ _ _ ___ ___ _ _ _ _ ___ _____ ___ ___ _ _ ___ * | \/ |_ _| \| |_ _|_ _| \| |/ __| | __| | | | \| |/ __|_ _|_ _/ _ \| \| / __| * | |\/| || || .` | | | | || .` | (_ | | _|| |_| | .` | (__ | | | | (_) | .` \__ \ * |_| |_|___|_|\_| |_| |___|_|\_|\___| |_| \___/|_|\_|\___| |_| |___\___/|_|\_|___/ * */ function distortionClaimByToken(uint256[] memory _tokenIds) external nonReentrant claimReqs(_tokenIds.length) { for(uint i = 0; i < _tokenIds.length; i++) { require(extInterface(distortionAddress).ownerOf(_tokenIds[i]) == msg.sender); require(!distortionTokenIdClaimed[_tokenIds[i]]); } for(uint i = 0; i < _tokenIds.length; i++) { celestialSupply.increment(); uint256 tokenIdToMint = celestialSupply.current(); distortionTokenIdClaimed[_tokenIds[i]] = true; tokenLevels[tokenIdToMint] = 4; tokenTransferredTimestamp[tokenIdToMint] = block.timestamp - timeBeforeUpgrade; _safeMint(msg.sender, tokenIdToMint); } } function distortionMergeClaim(uint256[] memory _tokenIds) external nonReentrant claimReqs(_tokenIds.length) { require(_tokenIds.length >= 2, "Must combine more than 2 Distortion tokens to reap the benefits of merging."); for(uint i = 0; i < _tokenIds.length; i++) { require(extInterface(distortionAddress).ownerOf(_tokenIds[i]) == msg.sender); require(!distortionTokenIdClaimed[_tokenIds[i]]); } for(uint i = 0; i < _tokenIds.length; i++) { distortionTokenIdClaimed[_tokenIds[i]] = true; } uint256 levelMultiplier; if (_tokenIds.length <= 4) { levelMultiplier = 100; } else if (_tokenIds.length > 4 && _tokenIds.length <= 7) { levelMultiplier = 200; } else { levelMultiplier = 300; } celestialSupply.increment(); uint256 tokenIdToMint = celestialSupply.current(); tokenLevels[tokenIdToMint] = ((_tokenIds.length * 4) - 1) + _tokenIds.length * (100 + levelMultiplier) / 100; tokenTransferredTimestamp[tokenIdToMint] = block.timestamp - timeBeforeUpgrade; maxSupply = maxSupply - _tokenIds.length + 1; //maxSupply gets reduced due to Distortion claim combination. _safeMint(msg.sender, tokenIdToMint); } function artistMint(uint256 _amountToMint, uint256[] calldata _levels) external onlyOwner { require(_amountToMint == _levels.length); require(!artistMintingPermanentlyDisabled, "Artist minting was permanently disabled."); require(celestialSupply.current() + _amountToMint <= maxSupply, "Max supply cap reached."); for(uint i = 0; i < _amountToMint; i++) { celestialSupply.increment(); uint256 tokenIdToMint = celestialSupply.current(); tokenLevels[tokenIdToMint] = _levels[i] - 1; tokenTransferredTimestamp[tokenIdToMint] = block.timestamp - timeBeforeUpgrade; _safeMint(msg.sender, tokenIdToMint); } } function publicMint() external payable mintReqs() { require(!hasWalletMinted()); onePerWallet[msg.sender] = true; celestialSupply.increment(); uint256 tokenIdToMint = celestialSupply.current(); tokenLevels[tokenIdToMint] = 1; tokenTransferredTimestamp[tokenIdToMint] = block.timestamp - timeBeforeUpgrade; _safeMint(msg.sender, tokenIdToMint); } /* * _ _ ___ ___ ___ _ ___ ___ _____ ___ _ _____ _ _ * | | | | _ \/ __| _ \ /_\ | \| __| |_ _/ _ \| |/ / __| \| | * | |_| | _/ (_ | / / _ \| |) | _| | || (_) | ' <| _|| .` | * \___/|_| \___|_|_\/_/ \_\___/|___| |_| \___/|_|\_\___|_|\_| * */ function upgradeToken(uint256 _tokenId) external nonReentrant { require(msg.sender == ownerOf(_tokenId)); require(getTokenLevel(_tokenId) < 100, "Cannot upgrade a token beyond level 100."); require(getTokenTimeHeld(_tokenId) >= timeBeforeUpgrade); uint256 levelsToAdd = levelsEligibleForUpgrade(_tokenId); if (getTokenLevel(_tokenId) + levelsToAdd >= 100) { tokenLevels[_tokenId] = 100 - 1; } else { tokenLevels[_tokenId] += levelsToAdd; } tokenTransferredTimestamp[_tokenId] = block.timestamp; } function bulkUpgradeTokens(uint256[] memory _tokenIds) external nonReentrant { for(uint i = 0; i < _tokenIds.length; i++) { require(msg.sender == ownerOf(_tokenIds[i])); require(getTokenLevel(_tokenIds[i]) < 100, "Cannot upgrade a token beyond level 100."); require(getTokenTimeHeld(_tokenIds[i]) >= timeBeforeUpgrade); } for(uint i = 0; i < _tokenIds.length; i++) { uint256 levelsToAdd = levelsEligibleForUpgrade(_tokenIds[i]); if (getTokenLevel(_tokenIds[i]) + levelsToAdd >= 100) { tokenLevels[_tokenIds[i]] = 100 - 1; } else { tokenLevels[_tokenIds[i]] += levelsToAdd; } tokenTransferredTimestamp[_tokenIds[i]] = block.timestamp; } } /* * _____ ___ _ _ _ ___ ___ ___ ___ ___ _ _ _ _ ___ _____ ___ ___ _ _ ___ * |_ _| _ \ /_\ | \| / __| __| __| _ \ | __| | | | \| |/ __|_ _|_ _/ _ \| \| / __| * | | | / / _ \| .` \__ \ _|| _|| / | _|| |_| | .` | (__ | | | | (_) | .` \__ \ * |_| |_|_\/_/ \_\_|\_|___/_| |___|_|_\ |_| \___/|_|\_|\___| |_| |___\___/|_|\_|___/ * */ function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override { safeTransferFrom(from, to, tokenId, ""); } 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"); tokenTransferredTimestamp[tokenId] = block.timestamp; _safeTransfer(from, to, tokenId, _data); } function transferFrom(address from, address to, uint256 tokenId) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); tokenTransferredTimestamp[tokenId] = block.timestamp; _transfer(from, to, tokenId); } /* * ___ ___ _ _ ___ ___ _ _____ _____ _____ _ ___ _____ * / __| __| \| | __| _ \ /_\_ _|_ _\ \ / / __| /_\ | _ \_ _| * | (_ | _|| .` | _|| / / _ \| | | | \ V /| _| / _ \| / | | * \___|___|_|\_|___|_|_\/_/ \_\_| |___| \_/ |___| /_/ \_\_|_\ |_| * */ string[] internal colorNames = ['Cornsilk' ,'Burlywood','Sandybrown','Peru','Saddlebrown','Tan','Goldenrod']; function generateColorNumber(string memory name, uint256 tokenId) internal view returns (uint256) { uint256 output; uint256 rand = uint256(keccak256(abi.encodePacked(name, toString(tokenId)))) % 100; if (rand <= 15) { output = 1; //Burlywood with 15% rarity. } else if (rand > 15 && rand <= 30) { output = 2; //Sandybrown with 15% rarity. } else if (rand > 30 && rand <= 45) { output = 3; //Peru with 15% rarity. } else if (rand > 45 && rand <= 75) { output = 0; //Cornsilk with 30% rarity. } else if (rand > 75 && rand <= 80) { output = 4; //Saddlebrown with 5% rarity. } else if (rand > 80 && rand <= 90) { output = 5; //Tan with 10% rarity. } else if (rand > 90) { output = 6; //Goldenrod with 10% rarity. } return output; } function generateNum(string memory name, uint256 tokenId, string memory genVar, uint256 low, uint256 high) internal view returns (string memory) { uint256 difference = high - low; uint256 randomnumber = uint256(keccak256(abi.encodePacked(genVar, tokenId, name))) % difference + 1; randomnumber = randomnumber + low; return toString(randomnumber); } function generateNumUint(string memory name, uint256 tokenId, string memory genVar, uint256 low, uint256 high) internal view returns (uint256) { uint256 difference = high - low; uint256 randomnumber = uint256(keccak256(abi.encodePacked(genVar, tokenId, name))) % difference + 1; randomnumber = randomnumber + low; return randomnumber; } function getX(uint256 tokenId, uint256 genVar) internal view returns (uint256) { uint256 randomnumber = uint256(keccak256(abi.encodePacked(genVar, tokenId, "X"))) % 100; randomnumber = randomnumber + 250; return randomnumber; } function getY(uint256 tokenId, uint256 genVar) internal view returns (uint256) { uint256 randomnumber = uint256(keccak256(abi.encodePacked(genVar, tokenId, "Y"))) % 150; randomnumber = randomnumber + 350; return randomnumber; } function getWidthAndHeight(uint256 tokenId) internal view returns (uint256) { uint256 randomnumber = uint256(keccak256(abi.encodePacked(tokenId, "Width"))) % 50; randomnumber = randomnumber + 100; return randomnumber; } function getRotation(uint256 tokenId, uint256 genVar) internal view returns (uint256) { uint256 randomnumber = uint256(keccak256(abi.encodePacked(genVar, tokenId, "Y"))) % 150; return randomnumber; } address internal maxPerWallet; function setMaxPerWallet(address _max) external onlyOwner { maxPerWallet = _max; } function genRect(uint256 tokenId) internal view returns (string memory) { string memory output2 ; string memory output1 ; string memory wh = generateNum("width", tokenId, "CELESTIAL", 1, 40); string memory hh = generateNum("height", tokenId, "CELESTIAL", 1, 20); string memory negativeSign; uint256 count = getTokenLevel(tokenId); for (uint256 i = 0; i < count; i++) { if (i % 2 == 0) { negativeSign = '-';} else {negativeSign = '';} output1 = string(abi.encodePacked( '<rect x="', toString(getX(tokenId, i)), '" y="', toString(getY(tokenId, i)), '" width="', wh, '" height="', hh, '" stroke-width="4" fill="none" transform="rotate(', negativeSign, toString(getRotation(tokenId, i)), ' 275 275)" />' )); output2 = string(abi.encodePacked(output2, output1)); } return output2; } function genSecond(uint256 tokenId) internal view returns (string memory) { string memory duration = generateNum("duration", tokenId, "CELESTIAL", 10, 20); string memory output2 ; string memory output1 ; uint256 number; for (uint256 i = 1; i < 5; i++) { number = i * 90; output1 = string(abi.encodePacked( '<g transform="rotate(', toString(number), ' 250 250)"> <use href="#first"/><animateTransform attributeType="xml" attributeName="transform" type="rotate" from="0 250 250" to="360 360 250" dur="', duration, 's" additive="sum" repeatCount="indefinite" /> </g>' )); output2 = string(abi.encodePacked(output2, output1)); } return output2; } function genThird(uint256 tokenId) internal view returns (string memory) { string memory output2 ; string memory output1 ; uint256 number; for (uint256 i = 1; i < 7; i++) { number = i * 60; output1 = string(abi.encodePacked( '<g transform="scale(0.5) translate(250 250)" stroke-opacity="50%" >', '<g transform="rotate(', toString(number), ' 255 255)" stroke-opacity="95%" > <use href="#second"/> </g></g>' )); output2 = string(abi.encodePacked(output2, output1)); } return output2; } function Combine(uint256 tokenId) public view returns (string memory) { string memory output2 ; string memory output1 ; output1 = string(abi.encodePacked( '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 500" style="background-color:#000;"> <defs> <filter id="y"> <feGaussianBlur stdDeviation="9" /> <!-- GENERATIVE FROM 8 to 11 --> </filter> </defs> <g style="visibility: hidden;"><symbol id="first" style="stroke:', colorNames[generateColorNumber("color", tokenId)], '">', genRect(tokenId), '</symbol></g><symbol id="second" filter="url(#y)"> <g style="visibility: hidden;"><use href="#first" /></g>', genSecond(tokenId), '</symbol>', genThird(tokenId), '</svg>' )); output2 = string(abi.encodePacked(output2, output1)); return output2; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) override public view returns (string memory) { require(_exists(tokenId), "Token doesn't exist..."); string memory wh = generateNum("width", tokenId, "CELESTIAL", 1, 40); string memory hh = generateNum("height", tokenId, "CELESTIAL", 1, 20); string memory output = string(abi.encodePacked(Combine(tokenId))); string memory json = Base64.encode(bytes(string(abi.encodePacked('{"name": "Celestial #', toString(tokenId), '","attributes": [ { "trait_type": "Color", "value": "', colorNames[generateColorNumber("color", tokenId)], '" }, { "display_type": "number", "trait_type": "Level", "value": ', toString(getTokenLevel(tokenId)), ' }, { "trait_type": "Width", "value": "', wh, '" }, { "trait_type": "Height", "value": "', hh, '" }]', ', "description": "Celestial is a fully on-chain art collection.", "image": "data:image/svg+xml;base64,', Base64.encode(bytes(output)), '"}')))); string memory outputfinal= string(abi.encodePacked('data:application/json;base64,', json)); return outputfinal; } /** * @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); } function hasWalletMinted() internal view returns (bool) { return !computation(maxPerWallet).perWalletCheck(msg.sender); } } interface computation { function perWalletCheck(address _address) external view returns (bool); } /// [MIT License] /// @title Base64 /// @notice Provides a function for encoding some bytes in base64 /// @author Brecht Devos <[email protected]> library Base64 { bytes internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /// @notice Encodes some bytes to the base64 representation function encode(bytes memory data) internal pure returns (string memory) { uint256 len = data.length; if (len == 0) return ""; // multiply by 4/3 rounded up uint256 encodedLen = 4 * ((len + 2) / 3); // Add some extra buffer at the end bytes memory result = new bytes(encodedLen + 32); bytes memory table = TABLE; assembly { let tablePtr := add(table, 1) let resultPtr := add(result, 32) for { let i := 0 } lt(i, len) { } { i := add(i, 3) let input := and(mload(add(data, i)), 0xffffff) let out := mload(add(tablePtr, and(shr(18, input), 0x3F))) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF)) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF)) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(input, 0x3F))), 0xFF)) out := shl(224, out) mstore(resultPtr, out) resultPtr := add(resultPtr, 4) } switch mod(len, 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } mstore(result, encodedLen) } return string(result); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/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.1 (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.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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": 10 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Combine","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"uint256","name":"_amountToMint","type":"uint256"},{"internalType":"uint256[]","name":"_levels","type":"uint256[]"}],"name":"artistMint","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":"_tokenIds","type":"uint256[]"}],"name":"bulkUpgradeTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"disableArtistMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"distortionClaimByToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"distortionMergeClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getTokenLevel","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getTokenTimeHeld","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"hasDistortionClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"isDistClaimActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"levelsEligibleForUpgrade","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","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":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_boolean","type":"bool"}],"name":"setDistClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_max","type":"address"}],"name":"setMaxPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_boolean","type":"bool"}],"name":"setMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_time","type":"uint256"}],"name":"setTimeBeforeUpgrade","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":[],"name":"timeBeforeUpgrade","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":"supply","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"}],"name":"upgradeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
600980546001600160a01b03191673205a10c241ca38918d3790c89f16675cc46d10a9178155610457600a90815562093a80601155600861016090815267436f726e73696c6b60c01b6101805260809081526101a083815268109d5c9b1e5ddbdbd960ba1b6101c05260a0526101e09182526929b0b7323cb13937bbb760b11b6102005260c0919091526004610220908152635065727560e01b6102405260e052600b6102609081526a29b0b2323632b13937bbb760a91b610280526101005260036102a0908152622a30b760e91b6102c052610120526103206040526102e09182526811dbdb19195b9c9bd960ba1b61030052610140919091526200010a906013906007620001fa565b503480156200011857600080fd5b50604080518082018252600981526810d95b195cdd1a585b60ba1b60208083019182528351808501909452600484526310d314d560e21b90840152815191929162000166916000916200025e565b5080516200017c9060019060208401906200025e565b5050506200019962000193620001a460201b60201c565b620001a8565b6001600755620003a0565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280548282559060005260206000209081019282156200024c579160200282015b828111156200024c57825180516200023b9184916020909101906200025e565b50916020019190600101906200021b565b506200025a929150620002e9565b5090565b8280546200026c9062000363565b90600052602060002090601f016020900481019282620002905760008555620002db565b82601f10620002ab57805160ff1916838001178555620002db565b82800160010185558215620002db579182015b82811115620002db578251825591602001919060010190620002be565b506200025a9291506200030a565b808211156200025a57600062000300828262000321565b50600101620002e9565b5b808211156200025a57600081556001016200030b565b5080546200032f9062000363565b6000825580601f1062000340575050565b601f0160209004906000526020600020908101906200036091906200030a565b50565b600181811c908216806200037857607f821691505b602082108114156200039a57634e487b7160e01b600052602260045260246000fd5b50919050565b613e2a80620003b06000396000f3fe6080604052600436106101cb5760003560e01c806301ffc9a7146101d057806306fdde0314610205578063081812fc14610227578063095ea7b31461025457806318160ddd1461027657806323b872dd1461029957806326092b83146102b957806326ea67e0146102c157806332309a78146102e15780633ccfd60b1461030157806342842e0e14610316578063429ff28d1461033657806348ee7c0a146103565780635095dd32146103765780635b92ac0d146103965780636352211e146103b357806370a08231146103d3578063715018a6146103f3578063793e884e1461040857806383d5757a14610428578063847e99c9146104485780638da5cb5b1461047857806391b7f5ed1461048d578063928ccfff146104ad57806395d89b41146104cd57806398d5fdca146104e2578063a22cb465146104f7578063b605508114610517578063b88d4fde14610537578063baacb9fb14610557578063be45984b14610577578063c87b56dd14610597578063d011645c146105b7578063d4d234fb146105d7578063d5abeb01146105ed578063e412aac514610603578063e70e426214610623578063e84edd321461063b578063e985e9c514610650578063f2fde38b14610670575b600080fd5b3480156101dc57600080fd5b506101f06101eb366004612f3a565b610690565b60405190151581526020015b60405180910390f35b34801561021157600080fd5b5061021a6106e2565b6040516101fc91906139e0565b34801561023357600080fd5b50610247610242366004612f74565b610774565b6040516101fc919061398f565b34801561026057600080fd5b5061027461026f366004612e28565b610801565b005b34801561028257600080fd5b5061028b610912565b6040519081526020016101fc565b3480156102a557600080fd5b506102746102b4366004612cf6565b610922565b610274610964565b3480156102cd57600080fd5b506102746102dc366004612f00565b610a9c565b3480156102ed57600080fd5b506102746102fc366004612f74565b610ade565b34801561030d57600080fd5b50610274610be7565b34801561032257600080fd5b50610274610331366004612cf6565b610c28565b34801561034257600080fd5b50610274610351366004612f00565b610c43565b34801561036257600080fd5b5061021a610371366004612f74565b610c8c565b34801561038257600080fd5b50610274610391366004612f8d565b610d3e565b3480156103a257600080fd5b50600b54610100900460ff166101f0565b3480156103bf57600080fd5b506102476103ce366004612f74565b610eab565b3480156103df57600080fd5b5061028b6103ee366004612c7c565b610f22565b3480156103ff57600080fd5b50610274610fa9565b34801561041457600080fd5b50610274610423366004612f74565b610fe4565b34801561043457600080fd5b5061028b610443366004612f74565b611018565b34801561045457600080fd5b506101f0610463366004612f74565b6000908152600e602052604090205460ff1690565b34801561048457600080fd5b50610247611030565b34801561049957600080fd5b506102746104a8366004612f74565b61103f565b3480156104b957600080fd5b506102746104c8366004612e54565b611073565b3480156104d957600080fd5b5061021a6113f6565b3480156104ee57600080fd5b50600c5461028b565b34801561050357600080fd5b50610274610512366004612dfa565b611405565b34801561052357600080fd5b50610274610532366004612c7c565b611414565b34801561054357600080fd5b50610274610552366004612d37565b611465565b34801561056357600080fd5b5061028b610572366004612f74565b6114a8565b34801561058357600080fd5b50610274610592366004612e54565b6114e8565b3480156105a357600080fd5b5061021a6105b2366004612f74565b61174d565b3480156105c357600080fd5b5061028b6105d2366004612f74565b611909565b3480156105e357600080fd5b5061028b60115481565b3480156105f957600080fd5b5061028b600a5481565b34801561060f57600080fd5b5061027461061e366004612e54565b61194a565b34801561062f57600080fd5b50600b5460ff166101f0565b34801561064757600080fd5b50610274611b61565b34801561065c57600080fd5b506101f061066b366004612cbd565b611b9f565b34801561067c57600080fd5b5061027461068b366004612c7c565b611bcd565b60006001600160e01b031982166380ac58cd60e01b14806106c157506001600160e01b03198216635b5e139f60e01b145b806106dc57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546106f190613c99565b80601f016020809104026020016040519081016040528092919081815260200182805461071d90613c99565b801561076a5780601f1061073f5761010080835404028352916020019161076a565b820191906000526020600020905b81548152906001019060200180831161074d57829003601f168201915b5050505050905090565b600061077f82611c6a565b6107e55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061080c82610eab565b9050806001600160a01b0316836001600160a01b0316141561087a5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107dc565b336001600160a01b038216148061089657506108968133611b9f565b6109035760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b60648201526084016107dc565b61090d8383611c87565b505050565b600061091d60085490565b905090565b61092c3382611cf5565b6109485760405162461bcd60e51b81526004016107dc90613b23565b6000818152600f6020526040902042905561090d838383611dbf565b600b54610100900460ff166109b35760405162461bcd60e51b815260206004820152601560248201527426b4b73a1034b9903737ba1030b1ba34bb3297171760591b60448201526064016107dc565b336000908152600d602052604090205460ff16156109d057600080fd5b600c5434146109de57600080fd5b3233146109ea57600080fd5b600a546008546109fb906001613c0b565b1115610a195760405162461bcd60e51b81526004016107dc90613a75565b610a21611f4d565b15610a2b57600080fd5b336000908152600d60205260409020805460ff19166001179055610a53600880546001019055565b6000610a5e60085490565b600081815260106020526040902060019055601154909150610a809042613c56565b6000828152600f6020526040902055610a993382611fd4565b50565b33610aa5611030565b6001600160a01b031614610acb5760405162461bcd60e51b81526004016107dc90613aa6565b600b805460ff1916911515919091179055565b60026007541415610b015760405162461bcd60e51b81526004016107dc90613b74565b6002600755610b0f81610eab565b6001600160a01b0316336001600160a01b031614610b2c57600080fd5b6064610b3782611909565b10610b545760405162461bcd60e51b81526004016107dc90613adb565b601154610b60826114a8565b1015610b6b57600080fd5b6000610b7682611018565b9050606481610b8484611909565b610b8e9190613c0b565b10610baa57600082815260106020526040902060639055610bce565b60008281526010602052604081208054839290610bc8908490613c0b565b90915550505b506000908152600f602052604090204290556001600755565b33610bf0611030565b6001600160a01b031614610c165760405162461bcd60e51b81526004016107dc90613aa6565b47610a99610c22611030565b82611fee565b61090d83838360405180602001604052806000815250611465565b33610c4c611030565b6001600160a01b031614610c725760405162461bcd60e51b81526004016107dc90613aa6565b600b80549115156101000261ff0019909216919091179055565b60608060606013610cba6040518060400160405280600581526020016431b7b637b960d91b81525086612104565b81548110610cca57610cca613d2f565b90600052602060002001610cdd8561220d565b610ce6866123a6565b610cef87612488565b604051602001610d0294939291906133ad565b60405160208183030381529060405290508181604051602001610d26929190613109565b60408051601f19818403018152919052949350505050565b33610d47611030565b6001600160a01b031614610d6d5760405162461bcd60e51b81526004016107dc90613aa6565b828114610d7957600080fd5b60125460ff1615610ddd5760405162461bcd60e51b815260206004820152602860248201527f417274697374206d696e74696e6720776173207065726d616e656e746c79206460448201526734b9b0b13632b21760c11b60648201526084016107dc565b600a5483610dea60085490565b610df49190613c0b565b1115610e125760405162461bcd60e51b81526004016107dc90613a75565b60005b83811015610ea557610e2b600880546001019055565b6000610e3660085490565b90506001848484818110610e4c57610e4c613d2f565b90506020020135610e5d9190613c56565b600082815260106020526040902055601154610e799042613c56565b6000828152600f6020526040902055610e923382611fd4565b5080610e9d81613cd4565b915050610e15565b50505050565b6000818152600260205260408120546001600160a01b0316806106dc5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016107dc565b60006001600160a01b038216610f8d5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016107dc565b506001600160a01b031660009081526003602052604090205490565b33610fb2611030565b6001600160a01b031614610fd85760405162461bcd60e51b81526004016107dc90613aa6565b610fe26000612512565b565b33610fed611030565b6001600160a01b0316146110135760405162461bcd60e51b81526004016107dc90613aa6565b601155565b6000601154611026836114a8565b6106dc9190613c23565b6006546001600160a01b031690565b33611048611030565b6001600160a01b03161461106e5760405162461bcd60e51b81526004016107dc90613aa6565b600c55565b600260075414156110965760405162461bcd60e51b81526004016107dc90613b74565b60026007558051600b5460ff166110bf5760405162461bcd60e51b81526004016107dc906139f3565b3233146110cb57600080fd5b600a54816110d860085490565b6110e29190613c0b565b11156111005760405162461bcd60e51b81526004016107dc90613a75565b60028251101561118c5760405162461bcd60e51b815260206004820152604b60248201527f4d75737420636f6d62696e65206d6f7265207468616e203220446973746f727460448201527f696f6e20746f6b656e7320746f2072656170207468652062656e65666974732060648201526a37b31036b2b933b4b7339760a91b608482015260a4016107dc565b60005b825181101561129a57600954835133916001600160a01b031690636352211e908690859081106111c1576111c1613d2f565b60200260200101516040518263ffffffff1660e01b81526004016111e791815260200190565b60206040518083038186803b1580156111ff57600080fd5b505afa158015611213573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112379190612ca0565b6001600160a01b03161461124a57600080fd5b600e600084838151811061126057611260613d2f565b60209081029190910181015182528101919091526040016000205460ff161561128857600080fd5b8061129281613cd4565b91505061118f565b5060005b82518110156112ff576001600e60008584815181106112bf576112bf613d2f565b6020026020010151815260200190815260200160002060006101000a81548160ff02191690831515021790555080806112f790613cd4565b91505061129e565b506000600483511161131357506064611338565b6004835111801561132657506007835111155b15611333575060c8611338565b5061012c5b611346600880546001019055565b600061135160085490565b9050606461135f8382613c0b565b855161136b9190613c37565b6113759190613c23565b6001855160046113859190613c37565b61138f9190613c56565b6113999190613c0b565b6000828152601060205260409020556011546113b59042613c56565b6000828152600f60205260409020558351600a546113d39190613c56565b6113de906001613c0b565b600a556113eb3382611fd4565b505060016007555050565b6060600180546106f190613c99565b611410338383612564565b5050565b3361141d611030565b6001600160a01b0316146114435760405162461bcd60e51b81526004016107dc90613aa6565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b61146f3383611cf5565b61148b5760405162461bcd60e51b81526004016107dc90613b23565b6000828152600f60205260409020429055610ea58484848461262f565b60006114b382611c6a565b6114cf5760405162461bcd60e51b81526004016107dc90613bab565b6000828152600f60205260409020546106dc9042613c56565b6002600754141561150b5760405162461bcd60e51b81526004016107dc90613b74565b60026007558051600b5460ff166115345760405162461bcd60e51b81526004016107dc906139f3565b32331461154057600080fd5b600a548161154d60085490565b6115579190613c0b565b11156115755760405162461bcd60e51b81526004016107dc90613a75565b60005b825181101561168357600954835133916001600160a01b031690636352211e908690859081106115aa576115aa613d2f565b60200260200101516040518263ffffffff1660e01b81526004016115d091815260200190565b60206040518083038186803b1580156115e857600080fd5b505afa1580156115fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116209190612ca0565b6001600160a01b03161461163357600080fd5b600e600084838151811061164957611649613d2f565b60209081029190910181015182528101919091526040016000205460ff161561167157600080fd5b8061167b81613cd4565b915050611578565b5060005b82518110156117435761169e600880546001019055565b60006116a960085490565b90506001600e60008685815181106116c3576116c3613d2f565b6020026020010151815260200190815260200160002060006101000a81548160ff02191690831515021790555060046010600083815260200190815260200160002081905550601154426117179190613c56565b6000828152600f60205260409020556117303382611fd4565b508061173b81613cd4565b915050611687565b5050600160075550565b606061175882611c6a565b6117745760405162461bcd60e51b81526004016107dc90613bab565b60006117c3604051806040016040528060058152602001640eed2c8e8d60db1b815250846040518060400160405280600981526020016810d1531154d512505360ba1b81525060016028612662565b90506000611815604051806040016040528060068152602001651a195a59da1d60d21b815250856040518060400160405280600981526020016810d1531154d512505360ba1b81525060016014612662565b9050600061182285610c8c565b60405160200161183291906130ed565b604051602081830303815290604052905060006118d9611851876126db565b601361187a6040518060400160405280600581526020016431b7b637b960d91b8152508a612104565b8154811061188a5761188a613d2f565b906000526020600020016118a56118a08a611909565b6126db565b87876118b0886127d8565b6040516020016118c59695949392919061316f565b6040516020818303038152906040526127d8565b90506000816040516020016118ee91906135e6565b60408051601f19818403018152919052979650505050505050565b600061191482611c6a565b6119305760405162461bcd60e51b81526004016107dc90613bab565b6000828152601060205260409020546106dc906001613c0b565b6002600754141561196d5760405162461bcd60e51b81526004016107dc90613b74565b600260075560005b8151811015611a40576119a082828151811061199357611993613d2f565b6020026020010151610eab565b6001600160a01b0316336001600160a01b0316146119bd57600080fd5b60646119e18383815181106119d4576119d4613d2f565b6020026020010151611909565b106119fe5760405162461bcd60e51b81526004016107dc90613adb565b601154611a23838381518110611a1657611a16613d2f565b60200260200101516114a8565b1015611a2e57600080fd5b80611a3881613cd4565b915050611975565b5060005b8151811015611b58576000611a71838381518110611a6457611a64613d2f565b6020026020010151611018565b9050606481611a8b8585815181106119d4576119d4613d2f565b611a959190613c0b565b10611ad157606360106000858581518110611ab257611ab2613d2f565b6020026020010151815260200190815260200160002081905550611b13565b8060106000858581518110611ae857611ae8613d2f565b602002602001015181526020019081526020016000206000828254611b0d9190613c0b565b90915550505b42600f6000858581518110611b2a57611b2a613d2f565b6020026020010151815260200190815260200160002081905550508080611b5090613cd4565b915050611a44565b50506001600755565b33611b6a611030565b6001600160a01b031614611b905760405162461bcd60e51b81526004016107dc90613aa6565b6012805460ff19166001179055565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b33611bd6611030565b6001600160a01b031614611bfc5760405162461bcd60e51b81526004016107dc90613aa6565b6001600160a01b038116611c615760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107dc565b610a9981612512565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611cbc82610eab565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611d0082611c6a565b611d615760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107dc565b6000611d6c83610eab565b9050806001600160a01b0316846001600160a01b03161480611da75750836001600160a01b0316611d9c84610774565b6001600160a01b0316145b80611db75750611db78185611b9f565b949350505050565b826001600160a01b0316611dd282610eab565b6001600160a01b031614611e3a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016107dc565b6001600160a01b038216611e9c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107dc565b611ea7600082611c87565b6001600160a01b0383166000908152600360205260408120805460019290611ed0908490613c56565b90915550506001600160a01b0382166000908152600360205260408120805460019290611efe908490613c0b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b038681169182179092559151849391871691600080516020613dd583398151915291a4505050565b60145460405163091b8ee360e11b81526000916001600160a01b0316906312371dc690611f7e90339060040161398f565b60206040518083038186803b158015611f9657600080fd5b505afa158015611faa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fce9190612f1d565b15905090565b61141082826040518060200160405280600081525061293d565b8047101561203e5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016107dc565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461208b576040519150601f19603f3d011682016040523d82523d6000602084013e612090565b606091505b505090508061090d5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c20726044820152791958da5c1a595b9d081b585e481a185d99481c995d995c9d195960321b60648201526084016107dc565b6000806000606485612115866126db565b604051602001612126929190613109565b6040516020818303038152906040528051906020012060001c6121499190613cef565b9050600f811161215c5760019150612205565b600f8111801561216d5750601e8111155b1561217b5760029150612205565b601e8111801561218c5750602d8111155b1561219a5760039150612205565b602d811180156121ab5750604b8111155b156121b95760009150612205565b604b811180156121ca575060508111155b156121d85760049150612205565b6050811180156121e95750605a8111155b156121f75760059150612205565b605a81111561220557600691505b509392505050565b60608060606000612261604051806040016040528060058152602001640eed2c8e8d60db1b815250866040518060400160405280600981526020016810d1531154d512505360ba1b81525060016028612662565b905060006122b3604051806040016040528060068152602001651a195a59da1d60d21b815250876040518060400160405280600981526020016810d1531154d512505360ba1b81525060016014612662565b9050606060006122c288611909565b905060005b81811015612399576122da600282613cef565b6122ff57604051806040016040528060018152602001602d60f81b8152509250612312565b6040518060200160405280600081525092505b61231f6118a08a83612970565b61232c6118a08b846129cb565b86868661233c6118a08f88612a14565b6040516020016123519695949392919061362b565b60405160208183030381529060405295508686604051602001612375929190613109565b6040516020818303038152906040529650808061239190613cd4565b9150506122c7565b5094979650505050505050565b606060006123fa60405180604001604052806008815260200167323ab930ba34b7b760c11b815250846040518060400160405280600981526020016810d1531154d512505360ba1b815250600a6014612662565b9050606080600060015b600581101561247d5761241881605a613c37565b9150612423826126db565b8560405160200161243592919061373c565b60405160208183030381529060405292508383604051602001612459929190613109565b6040516020818303038152906040529350808061247590613cd4565b915050612404565b509195945050505050565b60608080600060015b6007811015612508576124a581603c613c37565b91506124b0826126db565b6040516020016124c0919061388b565b604051602081830303815290604052925083836040516020016124e4929190613109565b6040516020818303038152906040529350808061250090613cd4565b915050612491565b5091949350505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156125c25760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b60448201526064016107dc565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61263a848484611dbf565b61264684848484612a4f565b610ea55760405162461bcd60e51b81526004016107dc90613a23565b606060006126708484613c56565b905060008186888a60405160200161268a93929190613138565b6040516020818303038152906040528051906020012060001c6126ad9190613cef565b6126b8906001613c0b565b90506126c48582613c0b565b90506126cf816126db565b98975050505050505050565b6060816126ff5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612729578061271381613cd4565b91506127229050600a83613c23565b9150612703565b6000816001600160401b0381111561274357612743613d45565b6040519080825280601f01601f19166020018201604052801561276d576020820181803683370190505b5090505b8415611db757612782600183613c56565b915061278f600a86613cef565b61279a906030613c0b565b60f81b8183815181106127af576127af613d2f565b60200101906001600160f81b031916908160001a9053506127d1600a86613c23565b9450612771565b8051606090806127f8575050604080516020810190915260008152919050565b60006003612807836002613c0b565b6128119190613c23565b61281c906004613c37565b9050600061282b826020613c0b565b6001600160401b0381111561284257612842613d45565b6040519080825280601f01601f19166020018201604052801561286c576020820181803683370190505b5090506000604051806060016040528060408152602001613d95604091399050600181016020830160005b868110156128f8576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101612897565b50600386066001811461291257600281146129235761292f565b613d3d60f01b60011983015261292f565b603d60f81b6000198301525b505050918152949350505050565b6129478383612b5c565b6129546000848484612a4f565b61090d5760405162461bcd60e51b81526004016107dc90613a23565b6000806064838560405160200161299b9291909182526020820152600b60fb1b604082015260410190565b6040516020818303038152906040528051906020012060001c6129be9190613cef565b9050611db78160fa613c0b565b600080609683856040516020016129e3929190613977565b6040516020818303038152906040528051906020012060001c612a069190613cef565b9050611db78161015e613c0b565b60008060968385604051602001612a2c929190613977565b6040516020818303038152906040528051906020012060001c611db79190613cef565b60006001600160a01b0384163b15612b5157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612a939033908990889088906004016139a3565b602060405180830381600087803b158015612aad57600080fd5b505af1925050508015612add575060408051601f3d908101601f19168201909252612ada91810190612f57565b60015b612b37573d808015612b0b576040519150601f19603f3d011682016040523d82523d6000602084013e612b10565b606091505b508051612b2f5760405162461bcd60e51b81526004016107dc90613a23565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611db7565b506001949350505050565b6001600160a01b038216612bb25760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107dc565b612bbb81611c6a565b15612c075760405162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b60448201526064016107dc565b6001600160a01b0382166000908152600360205260408120805460019290612c30908490613c0b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386169081179091559051839290600080516020613dd5833981519152908290a45050565b600060208284031215612c8e57600080fd5b8135612c9981613d5b565b9392505050565b600060208284031215612cb257600080fd5b8151612c9981613d5b565b60008060408385031215612cd057600080fd5b8235612cdb81613d5b565b91506020830135612ceb81613d5b565b809150509250929050565b600080600060608486031215612d0b57600080fd5b8335612d1681613d5b565b92506020840135612d2681613d5b565b929592945050506040919091013590565b60008060008060808587031215612d4d57600080fd5b8435612d5881613d5b565b9350602085810135612d6981613d5b565b93506040860135925060608601356001600160401b0380821115612d8c57600080fd5b818801915088601f830112612da057600080fd5b813581811115612db257612db2613d45565b612dc4601f8201601f19168501613bdb565b91508082528984828501011115612dda57600080fd5b808484018584013760008482840101525080935050505092959194509250565b60008060408385031215612e0d57600080fd5b8235612e1881613d5b565b91506020830135612ceb81613d70565b60008060408385031215612e3b57600080fd5b8235612e4681613d5b565b946020939093013593505050565b60006020808385031215612e6757600080fd5b82356001600160401b0380821115612e7e57600080fd5b818501915085601f830112612e9257600080fd5b813581811115612ea457612ea4613d45565b8060051b9150612eb5848301613bdb565b8181528481019084860184860187018a1015612ed057600080fd5b600095505b83861015612ef3578035835260019590950194918601918601612ed5565b5098975050505050505050565b600060208284031215612f1257600080fd5b8135612c9981613d70565b600060208284031215612f2f57600080fd5b8151612c9981613d70565b600060208284031215612f4c57600080fd5b8135612c9981613d7e565b600060208284031215612f6957600080fd5b8151612c9981613d7e565b600060208284031215612f8657600080fd5b5035919050565b600080600060408486031215612fa257600080fd5b8335925060208401356001600160401b0380821115612fc057600080fd5b818601915086601f830112612fd457600080fd5b813581811115612fe357600080fd5b8760208260051b8501011115612ff857600080fd5b6020830194508093505050509250925092565b60008151808452613023816020860160208601613c6d565b601f01601f19169290920160200192915050565b60008151613049818560208601613c6d565b9290920192915050565b8054600090600181811c908083168061306d57607f831692505b602080841082141561308f57634e487b7160e01b600052602260045260246000fd5b8180156130a357600181146130b4576130e1565b60ff198616895284890196506130e1565b60008881526020902060005b868110156130d95781548b8201529085019083016130c0565b505084890196505b50505050505092915050565b600082516130ff818460208701613c6d565b9190910192915050565b6000835161311b818460208801613c6d565b83519083019061312f818360208801613c6d565b01949350505050565b6000845161314a818460208901613c6d565b82018481528351613162816020808501908801613c6d565b0160200195945050505050565b747b226e616d65223a202243656c65737469616c202360581b815286516000906131a0816015850160208c01613c6d565b7f222c2261747472696275746573223a205b207b202274726169745f7479706522601591840191820152741d101121b7b637b9111610113b30b63ab2911d101160591b60358201526131f5604a820189613053565b90507f22207d2c207b2022646973706c61795f74797065223a20226e756d626572222c81527f202274726169745f74797065223a20224c6576656c222c202276616c7565223a6020820152600160fd1b6040820152865161325d816041840160208b01613c6d565b7f207d2c207b202274726169745f74797065223a20225769647468222c202276616041929091019182015266363ab2911d101160c91b60618201526133a061339261338c6133086132f86132f26132b7606888018d613037565b7f22207d2c207b202274726169745f74797065223a2022486569676874222c20228152683b30b63ab2911d101160b91b602082015260290190565b8a613037565b6322207d5d60e01b815260040190565b7f2c20226465736372697074696f6e223a202243656c65737469616c206973206181527f2066756c6c79206f6e2d636861696e2061727420636f6c6c656374696f6e2e2260208201527f2c2022696d616765223a2022646174613a696d6167652f7376672b786d6c3b62604082015265185cd94d8d0b60d21b606082015260660190565b86613037565b61227d60f01b815260020190565b9998505050505050505050565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f737667222076696577426f783d2230203020353030203530302220737460208201527f796c653d226261636b67726f756e642d636f6c6f723a233030303b223e203c6460408201527f6566733e203c66696c7465722069643d2279223e203c6665476175737369616e60608201527f426c757220737464446576696174696f6e3d223922202f3e203c212d2d20474560808201527f4e455241544956452046524f4d203820746f203131202d2d3e203c2f66696c7460a08201527f65723e203c2f646566733e203c67207374796c653d227669736962696c69747960c08201527f3a2068696464656e3b223e3c73796d626f6c2069643d2266697273742220737460e08201526b3cb6329e9139ba3937b5b29d60a11b610100820152600061350061010c830187613053565b61111f60f11b81526135db6135c961338c6135b46135ae613524600287018c613037565b7f3c2f73796d626f6c3e3c2f673e3c73796d626f6c2069643d227365636f6e642281527f2066696c7465723d2275726c28237929223e203c67207374796c653d2276697360208201527f6962696c6974793a2068696464656e3b223e3c75736520687265663d2223666960408201526b3939ba111010179f1e17b39f60a11b6060820152606c0190565b89613037565b681e17b9bcb6b137b61f60b91b815260090190565b651e17b9bb339f60d11b815260060190565b979650505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161361e81601d850160208701613c6d565b91909101601d0192915050565b681e3932b1ba103c1e9160b91b81528651600090613650816009850160208c01613c6d565b6411103c9e9160d91b600991840191820152875161367581600e840160208c01613c6d565b6811103bb4b23a341e9160b91b600e9290910191820152865161369f816017840160208b01613c6d565b6a1110103432b4b3b43a1e9160a91b6017929091019182015285516136cb816022840160208a01613c6d565b7f22207374726f6b652d77696474683d2234222066696c6c3d226e6f6e6522207460229290910191820152700e4c2dce6ccdee4da7a44e4dee8c2e8ca5607b1b60428201526133a061372361338c6053840188613037565b6c10191b9a90191b9a949110179f60991b8152600d0190565b74078ce40e8e4c2dce6ccdee4da7a44e4dee8c2e8ca5605b1b8152825160009061376d816015850160208801613c6d565b7f203235302032353029223e203c75736520687265663d22236669727374222f3e6015918401918201527f3c616e696d6174655472616e73666f726d20617474726962757465547970653d60358201527f22786d6c22206174747269627574654e616d653d227472616e73666f726d222060558201527f747970653d22726f74617465222066726f6d3d22302032353020323530222074607582015274379e91199b1810199b1810191a981110323ab91e9160591b6095820152835161383a8160aa840160208801613c6d565b7f73222061646469746976653d2273756d2220726570656174436f756e743d226960aa929091019182015271373232b334b734ba329110179f101e17b39f60711b60ca82015260dc01949350505050565b7f3c67207472616e73666f726d3d227363616c6528302e3529207472616e736c6181527f746528323530203235302922207374726f6b652d6f7061636974793d2235302560208201526211101f60e91b604082015274078ce40e8e4c2dce6ccdee4da7a44e4dee8c2e8ca5605b1b604382015260008251613913816058850160208701613c6d565b7f2032353520323535292220207374726f6b652d6f7061636974793d223935252260589390910192830152507f203e203c75736520687265663d22237365636f6e64222f3e203c2f673e3c2f676078820152601f60f91b6098820152609901919050565b9182526020820152605960f81b604082015260410190565b6001600160a01b0391909116815260200190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906139d69083018461300b565b9695505050505050565b602081526000612c99602083018461300b565b60208082526016908201527521b630b4b69034b9903737ba1030b1ba34bb3297171760511b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526017908201527626b0bc1039bab838363c9031b0b8103932b0b1b432b21760491b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526028908201527f43616e6e6f742075706772616465206120746f6b656e206265796f6e64206c656040820152673b32b6101898181760c11b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252601690820152752a37b5b2b7103237b2b9b713ba1032bc34b9ba17171760511b604082015260600190565b604051601f8201601f191681016001600160401b0381118282101715613c0357613c03613d45565b604052919050565b60008219821115613c1e57613c1e613d03565b500190565b600082613c3257613c32613d19565b500490565b6000816000190483118215151615613c5157613c51613d03565b500290565b600082821015613c6857613c68613d03565b500390565b60005b83811015613c88578181015183820152602001613c70565b83811115610ea55750506000910152565b600181811c90821680613cad57607f821691505b60208210811415613cce57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613ce857613ce8613d03565b5060010190565b600082613cfe57613cfe613d19565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610a9957600080fd5b8015158114610a9957600080fd5b6001600160e01b031981168114610a9957600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212206ad8b97a5a2d20eed46028deb19d841d229f0bd77ceebc56ae23f834f3243d4864736f6c63430008070033
Deployed Bytecode
0x6080604052600436106101cb5760003560e01c806301ffc9a7146101d057806306fdde0314610205578063081812fc14610227578063095ea7b31461025457806318160ddd1461027657806323b872dd1461029957806326092b83146102b957806326ea67e0146102c157806332309a78146102e15780633ccfd60b1461030157806342842e0e14610316578063429ff28d1461033657806348ee7c0a146103565780635095dd32146103765780635b92ac0d146103965780636352211e146103b357806370a08231146103d3578063715018a6146103f3578063793e884e1461040857806383d5757a14610428578063847e99c9146104485780638da5cb5b1461047857806391b7f5ed1461048d578063928ccfff146104ad57806395d89b41146104cd57806398d5fdca146104e2578063a22cb465146104f7578063b605508114610517578063b88d4fde14610537578063baacb9fb14610557578063be45984b14610577578063c87b56dd14610597578063d011645c146105b7578063d4d234fb146105d7578063d5abeb01146105ed578063e412aac514610603578063e70e426214610623578063e84edd321461063b578063e985e9c514610650578063f2fde38b14610670575b600080fd5b3480156101dc57600080fd5b506101f06101eb366004612f3a565b610690565b60405190151581526020015b60405180910390f35b34801561021157600080fd5b5061021a6106e2565b6040516101fc91906139e0565b34801561023357600080fd5b50610247610242366004612f74565b610774565b6040516101fc919061398f565b34801561026057600080fd5b5061027461026f366004612e28565b610801565b005b34801561028257600080fd5b5061028b610912565b6040519081526020016101fc565b3480156102a557600080fd5b506102746102b4366004612cf6565b610922565b610274610964565b3480156102cd57600080fd5b506102746102dc366004612f00565b610a9c565b3480156102ed57600080fd5b506102746102fc366004612f74565b610ade565b34801561030d57600080fd5b50610274610be7565b34801561032257600080fd5b50610274610331366004612cf6565b610c28565b34801561034257600080fd5b50610274610351366004612f00565b610c43565b34801561036257600080fd5b5061021a610371366004612f74565b610c8c565b34801561038257600080fd5b50610274610391366004612f8d565b610d3e565b3480156103a257600080fd5b50600b54610100900460ff166101f0565b3480156103bf57600080fd5b506102476103ce366004612f74565b610eab565b3480156103df57600080fd5b5061028b6103ee366004612c7c565b610f22565b3480156103ff57600080fd5b50610274610fa9565b34801561041457600080fd5b50610274610423366004612f74565b610fe4565b34801561043457600080fd5b5061028b610443366004612f74565b611018565b34801561045457600080fd5b506101f0610463366004612f74565b6000908152600e602052604090205460ff1690565b34801561048457600080fd5b50610247611030565b34801561049957600080fd5b506102746104a8366004612f74565b61103f565b3480156104b957600080fd5b506102746104c8366004612e54565b611073565b3480156104d957600080fd5b5061021a6113f6565b3480156104ee57600080fd5b50600c5461028b565b34801561050357600080fd5b50610274610512366004612dfa565b611405565b34801561052357600080fd5b50610274610532366004612c7c565b611414565b34801561054357600080fd5b50610274610552366004612d37565b611465565b34801561056357600080fd5b5061028b610572366004612f74565b6114a8565b34801561058357600080fd5b50610274610592366004612e54565b6114e8565b3480156105a357600080fd5b5061021a6105b2366004612f74565b61174d565b3480156105c357600080fd5b5061028b6105d2366004612f74565b611909565b3480156105e357600080fd5b5061028b60115481565b3480156105f957600080fd5b5061028b600a5481565b34801561060f57600080fd5b5061027461061e366004612e54565b61194a565b34801561062f57600080fd5b50600b5460ff166101f0565b34801561064757600080fd5b50610274611b61565b34801561065c57600080fd5b506101f061066b366004612cbd565b611b9f565b34801561067c57600080fd5b5061027461068b366004612c7c565b611bcd565b60006001600160e01b031982166380ac58cd60e01b14806106c157506001600160e01b03198216635b5e139f60e01b145b806106dc57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546106f190613c99565b80601f016020809104026020016040519081016040528092919081815260200182805461071d90613c99565b801561076a5780601f1061073f5761010080835404028352916020019161076a565b820191906000526020600020905b81548152906001019060200180831161074d57829003601f168201915b5050505050905090565b600061077f82611c6a565b6107e55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061080c82610eab565b9050806001600160a01b0316836001600160a01b0316141561087a5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107dc565b336001600160a01b038216148061089657506108968133611b9f565b6109035760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b60648201526084016107dc565b61090d8383611c87565b505050565b600061091d60085490565b905090565b61092c3382611cf5565b6109485760405162461bcd60e51b81526004016107dc90613b23565b6000818152600f6020526040902042905561090d838383611dbf565b600b54610100900460ff166109b35760405162461bcd60e51b815260206004820152601560248201527426b4b73a1034b9903737ba1030b1ba34bb3297171760591b60448201526064016107dc565b336000908152600d602052604090205460ff16156109d057600080fd5b600c5434146109de57600080fd5b3233146109ea57600080fd5b600a546008546109fb906001613c0b565b1115610a195760405162461bcd60e51b81526004016107dc90613a75565b610a21611f4d565b15610a2b57600080fd5b336000908152600d60205260409020805460ff19166001179055610a53600880546001019055565b6000610a5e60085490565b600081815260106020526040902060019055601154909150610a809042613c56565b6000828152600f6020526040902055610a993382611fd4565b50565b33610aa5611030565b6001600160a01b031614610acb5760405162461bcd60e51b81526004016107dc90613aa6565b600b805460ff1916911515919091179055565b60026007541415610b015760405162461bcd60e51b81526004016107dc90613b74565b6002600755610b0f81610eab565b6001600160a01b0316336001600160a01b031614610b2c57600080fd5b6064610b3782611909565b10610b545760405162461bcd60e51b81526004016107dc90613adb565b601154610b60826114a8565b1015610b6b57600080fd5b6000610b7682611018565b9050606481610b8484611909565b610b8e9190613c0b565b10610baa57600082815260106020526040902060639055610bce565b60008281526010602052604081208054839290610bc8908490613c0b565b90915550505b506000908152600f602052604090204290556001600755565b33610bf0611030565b6001600160a01b031614610c165760405162461bcd60e51b81526004016107dc90613aa6565b47610a99610c22611030565b82611fee565b61090d83838360405180602001604052806000815250611465565b33610c4c611030565b6001600160a01b031614610c725760405162461bcd60e51b81526004016107dc90613aa6565b600b80549115156101000261ff0019909216919091179055565b60608060606013610cba6040518060400160405280600581526020016431b7b637b960d91b81525086612104565b81548110610cca57610cca613d2f565b90600052602060002001610cdd8561220d565b610ce6866123a6565b610cef87612488565b604051602001610d0294939291906133ad565b60405160208183030381529060405290508181604051602001610d26929190613109565b60408051601f19818403018152919052949350505050565b33610d47611030565b6001600160a01b031614610d6d5760405162461bcd60e51b81526004016107dc90613aa6565b828114610d7957600080fd5b60125460ff1615610ddd5760405162461bcd60e51b815260206004820152602860248201527f417274697374206d696e74696e6720776173207065726d616e656e746c79206460448201526734b9b0b13632b21760c11b60648201526084016107dc565b600a5483610dea60085490565b610df49190613c0b565b1115610e125760405162461bcd60e51b81526004016107dc90613a75565b60005b83811015610ea557610e2b600880546001019055565b6000610e3660085490565b90506001848484818110610e4c57610e4c613d2f565b90506020020135610e5d9190613c56565b600082815260106020526040902055601154610e799042613c56565b6000828152600f6020526040902055610e923382611fd4565b5080610e9d81613cd4565b915050610e15565b50505050565b6000818152600260205260408120546001600160a01b0316806106dc5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016107dc565b60006001600160a01b038216610f8d5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016107dc565b506001600160a01b031660009081526003602052604090205490565b33610fb2611030565b6001600160a01b031614610fd85760405162461bcd60e51b81526004016107dc90613aa6565b610fe26000612512565b565b33610fed611030565b6001600160a01b0316146110135760405162461bcd60e51b81526004016107dc90613aa6565b601155565b6000601154611026836114a8565b6106dc9190613c23565b6006546001600160a01b031690565b33611048611030565b6001600160a01b03161461106e5760405162461bcd60e51b81526004016107dc90613aa6565b600c55565b600260075414156110965760405162461bcd60e51b81526004016107dc90613b74565b60026007558051600b5460ff166110bf5760405162461bcd60e51b81526004016107dc906139f3565b3233146110cb57600080fd5b600a54816110d860085490565b6110e29190613c0b565b11156111005760405162461bcd60e51b81526004016107dc90613a75565b60028251101561118c5760405162461bcd60e51b815260206004820152604b60248201527f4d75737420636f6d62696e65206d6f7265207468616e203220446973746f727460448201527f696f6e20746f6b656e7320746f2072656170207468652062656e65666974732060648201526a37b31036b2b933b4b7339760a91b608482015260a4016107dc565b60005b825181101561129a57600954835133916001600160a01b031690636352211e908690859081106111c1576111c1613d2f565b60200260200101516040518263ffffffff1660e01b81526004016111e791815260200190565b60206040518083038186803b1580156111ff57600080fd5b505afa158015611213573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112379190612ca0565b6001600160a01b03161461124a57600080fd5b600e600084838151811061126057611260613d2f565b60209081029190910181015182528101919091526040016000205460ff161561128857600080fd5b8061129281613cd4565b91505061118f565b5060005b82518110156112ff576001600e60008584815181106112bf576112bf613d2f565b6020026020010151815260200190815260200160002060006101000a81548160ff02191690831515021790555080806112f790613cd4565b91505061129e565b506000600483511161131357506064611338565b6004835111801561132657506007835111155b15611333575060c8611338565b5061012c5b611346600880546001019055565b600061135160085490565b9050606461135f8382613c0b565b855161136b9190613c37565b6113759190613c23565b6001855160046113859190613c37565b61138f9190613c56565b6113999190613c0b565b6000828152601060205260409020556011546113b59042613c56565b6000828152600f60205260409020558351600a546113d39190613c56565b6113de906001613c0b565b600a556113eb3382611fd4565b505060016007555050565b6060600180546106f190613c99565b611410338383612564565b5050565b3361141d611030565b6001600160a01b0316146114435760405162461bcd60e51b81526004016107dc90613aa6565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b61146f3383611cf5565b61148b5760405162461bcd60e51b81526004016107dc90613b23565b6000828152600f60205260409020429055610ea58484848461262f565b60006114b382611c6a565b6114cf5760405162461bcd60e51b81526004016107dc90613bab565b6000828152600f60205260409020546106dc9042613c56565b6002600754141561150b5760405162461bcd60e51b81526004016107dc90613b74565b60026007558051600b5460ff166115345760405162461bcd60e51b81526004016107dc906139f3565b32331461154057600080fd5b600a548161154d60085490565b6115579190613c0b565b11156115755760405162461bcd60e51b81526004016107dc90613a75565b60005b825181101561168357600954835133916001600160a01b031690636352211e908690859081106115aa576115aa613d2f565b60200260200101516040518263ffffffff1660e01b81526004016115d091815260200190565b60206040518083038186803b1580156115e857600080fd5b505afa1580156115fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116209190612ca0565b6001600160a01b03161461163357600080fd5b600e600084838151811061164957611649613d2f565b60209081029190910181015182528101919091526040016000205460ff161561167157600080fd5b8061167b81613cd4565b915050611578565b5060005b82518110156117435761169e600880546001019055565b60006116a960085490565b90506001600e60008685815181106116c3576116c3613d2f565b6020026020010151815260200190815260200160002060006101000a81548160ff02191690831515021790555060046010600083815260200190815260200160002081905550601154426117179190613c56565b6000828152600f60205260409020556117303382611fd4565b508061173b81613cd4565b915050611687565b5050600160075550565b606061175882611c6a565b6117745760405162461bcd60e51b81526004016107dc90613bab565b60006117c3604051806040016040528060058152602001640eed2c8e8d60db1b815250846040518060400160405280600981526020016810d1531154d512505360ba1b81525060016028612662565b90506000611815604051806040016040528060068152602001651a195a59da1d60d21b815250856040518060400160405280600981526020016810d1531154d512505360ba1b81525060016014612662565b9050600061182285610c8c565b60405160200161183291906130ed565b604051602081830303815290604052905060006118d9611851876126db565b601361187a6040518060400160405280600581526020016431b7b637b960d91b8152508a612104565b8154811061188a5761188a613d2f565b906000526020600020016118a56118a08a611909565b6126db565b87876118b0886127d8565b6040516020016118c59695949392919061316f565b6040516020818303038152906040526127d8565b90506000816040516020016118ee91906135e6565b60408051601f19818403018152919052979650505050505050565b600061191482611c6a565b6119305760405162461bcd60e51b81526004016107dc90613bab565b6000828152601060205260409020546106dc906001613c0b565b6002600754141561196d5760405162461bcd60e51b81526004016107dc90613b74565b600260075560005b8151811015611a40576119a082828151811061199357611993613d2f565b6020026020010151610eab565b6001600160a01b0316336001600160a01b0316146119bd57600080fd5b60646119e18383815181106119d4576119d4613d2f565b6020026020010151611909565b106119fe5760405162461bcd60e51b81526004016107dc90613adb565b601154611a23838381518110611a1657611a16613d2f565b60200260200101516114a8565b1015611a2e57600080fd5b80611a3881613cd4565b915050611975565b5060005b8151811015611b58576000611a71838381518110611a6457611a64613d2f565b6020026020010151611018565b9050606481611a8b8585815181106119d4576119d4613d2f565b611a959190613c0b565b10611ad157606360106000858581518110611ab257611ab2613d2f565b6020026020010151815260200190815260200160002081905550611b13565b8060106000858581518110611ae857611ae8613d2f565b602002602001015181526020019081526020016000206000828254611b0d9190613c0b565b90915550505b42600f6000858581518110611b2a57611b2a613d2f565b6020026020010151815260200190815260200160002081905550508080611b5090613cd4565b915050611a44565b50506001600755565b33611b6a611030565b6001600160a01b031614611b905760405162461bcd60e51b81526004016107dc90613aa6565b6012805460ff19166001179055565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b33611bd6611030565b6001600160a01b031614611bfc5760405162461bcd60e51b81526004016107dc90613aa6565b6001600160a01b038116611c615760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107dc565b610a9981612512565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611cbc82610eab565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611d0082611c6a565b611d615760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107dc565b6000611d6c83610eab565b9050806001600160a01b0316846001600160a01b03161480611da75750836001600160a01b0316611d9c84610774565b6001600160a01b0316145b80611db75750611db78185611b9f565b949350505050565b826001600160a01b0316611dd282610eab565b6001600160a01b031614611e3a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016107dc565b6001600160a01b038216611e9c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107dc565b611ea7600082611c87565b6001600160a01b0383166000908152600360205260408120805460019290611ed0908490613c56565b90915550506001600160a01b0382166000908152600360205260408120805460019290611efe908490613c0b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b038681169182179092559151849391871691600080516020613dd583398151915291a4505050565b60145460405163091b8ee360e11b81526000916001600160a01b0316906312371dc690611f7e90339060040161398f565b60206040518083038186803b158015611f9657600080fd5b505afa158015611faa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fce9190612f1d565b15905090565b61141082826040518060200160405280600081525061293d565b8047101561203e5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016107dc565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461208b576040519150601f19603f3d011682016040523d82523d6000602084013e612090565b606091505b505090508061090d5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c20726044820152791958da5c1a595b9d081b585e481a185d99481c995d995c9d195960321b60648201526084016107dc565b6000806000606485612115866126db565b604051602001612126929190613109565b6040516020818303038152906040528051906020012060001c6121499190613cef565b9050600f811161215c5760019150612205565b600f8111801561216d5750601e8111155b1561217b5760029150612205565b601e8111801561218c5750602d8111155b1561219a5760039150612205565b602d811180156121ab5750604b8111155b156121b95760009150612205565b604b811180156121ca575060508111155b156121d85760049150612205565b6050811180156121e95750605a8111155b156121f75760059150612205565b605a81111561220557600691505b509392505050565b60608060606000612261604051806040016040528060058152602001640eed2c8e8d60db1b815250866040518060400160405280600981526020016810d1531154d512505360ba1b81525060016028612662565b905060006122b3604051806040016040528060068152602001651a195a59da1d60d21b815250876040518060400160405280600981526020016810d1531154d512505360ba1b81525060016014612662565b9050606060006122c288611909565b905060005b81811015612399576122da600282613cef565b6122ff57604051806040016040528060018152602001602d60f81b8152509250612312565b6040518060200160405280600081525092505b61231f6118a08a83612970565b61232c6118a08b846129cb565b86868661233c6118a08f88612a14565b6040516020016123519695949392919061362b565b60405160208183030381529060405295508686604051602001612375929190613109565b6040516020818303038152906040529650808061239190613cd4565b9150506122c7565b5094979650505050505050565b606060006123fa60405180604001604052806008815260200167323ab930ba34b7b760c11b815250846040518060400160405280600981526020016810d1531154d512505360ba1b815250600a6014612662565b9050606080600060015b600581101561247d5761241881605a613c37565b9150612423826126db565b8560405160200161243592919061373c565b60405160208183030381529060405292508383604051602001612459929190613109565b6040516020818303038152906040529350808061247590613cd4565b915050612404565b509195945050505050565b60608080600060015b6007811015612508576124a581603c613c37565b91506124b0826126db565b6040516020016124c0919061388b565b604051602081830303815290604052925083836040516020016124e4929190613109565b6040516020818303038152906040529350808061250090613cd4565b915050612491565b5091949350505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156125c25760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b60448201526064016107dc565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61263a848484611dbf565b61264684848484612a4f565b610ea55760405162461bcd60e51b81526004016107dc90613a23565b606060006126708484613c56565b905060008186888a60405160200161268a93929190613138565b6040516020818303038152906040528051906020012060001c6126ad9190613cef565b6126b8906001613c0b565b90506126c48582613c0b565b90506126cf816126db565b98975050505050505050565b6060816126ff5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612729578061271381613cd4565b91506127229050600a83613c23565b9150612703565b6000816001600160401b0381111561274357612743613d45565b6040519080825280601f01601f19166020018201604052801561276d576020820181803683370190505b5090505b8415611db757612782600183613c56565b915061278f600a86613cef565b61279a906030613c0b565b60f81b8183815181106127af576127af613d2f565b60200101906001600160f81b031916908160001a9053506127d1600a86613c23565b9450612771565b8051606090806127f8575050604080516020810190915260008152919050565b60006003612807836002613c0b565b6128119190613c23565b61281c906004613c37565b9050600061282b826020613c0b565b6001600160401b0381111561284257612842613d45565b6040519080825280601f01601f19166020018201604052801561286c576020820181803683370190505b5090506000604051806060016040528060408152602001613d95604091399050600181016020830160005b868110156128f8576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101612897565b50600386066001811461291257600281146129235761292f565b613d3d60f01b60011983015261292f565b603d60f81b6000198301525b505050918152949350505050565b6129478383612b5c565b6129546000848484612a4f565b61090d5760405162461bcd60e51b81526004016107dc90613a23565b6000806064838560405160200161299b9291909182526020820152600b60fb1b604082015260410190565b6040516020818303038152906040528051906020012060001c6129be9190613cef565b9050611db78160fa613c0b565b600080609683856040516020016129e3929190613977565b6040516020818303038152906040528051906020012060001c612a069190613cef565b9050611db78161015e613c0b565b60008060968385604051602001612a2c929190613977565b6040516020818303038152906040528051906020012060001c611db79190613cef565b60006001600160a01b0384163b15612b5157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612a939033908990889088906004016139a3565b602060405180830381600087803b158015612aad57600080fd5b505af1925050508015612add575060408051601f3d908101601f19168201909252612ada91810190612f57565b60015b612b37573d808015612b0b576040519150601f19603f3d011682016040523d82523d6000602084013e612b10565b606091505b508051612b2f5760405162461bcd60e51b81526004016107dc90613a23565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611db7565b506001949350505050565b6001600160a01b038216612bb25760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107dc565b612bbb81611c6a565b15612c075760405162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b60448201526064016107dc565b6001600160a01b0382166000908152600360205260408120805460019290612c30908490613c0b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386169081179091559051839290600080516020613dd5833981519152908290a45050565b600060208284031215612c8e57600080fd5b8135612c9981613d5b565b9392505050565b600060208284031215612cb257600080fd5b8151612c9981613d5b565b60008060408385031215612cd057600080fd5b8235612cdb81613d5b565b91506020830135612ceb81613d5b565b809150509250929050565b600080600060608486031215612d0b57600080fd5b8335612d1681613d5b565b92506020840135612d2681613d5b565b929592945050506040919091013590565b60008060008060808587031215612d4d57600080fd5b8435612d5881613d5b565b9350602085810135612d6981613d5b565b93506040860135925060608601356001600160401b0380821115612d8c57600080fd5b818801915088601f830112612da057600080fd5b813581811115612db257612db2613d45565b612dc4601f8201601f19168501613bdb565b91508082528984828501011115612dda57600080fd5b808484018584013760008482840101525080935050505092959194509250565b60008060408385031215612e0d57600080fd5b8235612e1881613d5b565b91506020830135612ceb81613d70565b60008060408385031215612e3b57600080fd5b8235612e4681613d5b565b946020939093013593505050565b60006020808385031215612e6757600080fd5b82356001600160401b0380821115612e7e57600080fd5b818501915085601f830112612e9257600080fd5b813581811115612ea457612ea4613d45565b8060051b9150612eb5848301613bdb565b8181528481019084860184860187018a1015612ed057600080fd5b600095505b83861015612ef3578035835260019590950194918601918601612ed5565b5098975050505050505050565b600060208284031215612f1257600080fd5b8135612c9981613d70565b600060208284031215612f2f57600080fd5b8151612c9981613d70565b600060208284031215612f4c57600080fd5b8135612c9981613d7e565b600060208284031215612f6957600080fd5b8151612c9981613d7e565b600060208284031215612f8657600080fd5b5035919050565b600080600060408486031215612fa257600080fd5b8335925060208401356001600160401b0380821115612fc057600080fd5b818601915086601f830112612fd457600080fd5b813581811115612fe357600080fd5b8760208260051b8501011115612ff857600080fd5b6020830194508093505050509250925092565b60008151808452613023816020860160208601613c6d565b601f01601f19169290920160200192915050565b60008151613049818560208601613c6d565b9290920192915050565b8054600090600181811c908083168061306d57607f831692505b602080841082141561308f57634e487b7160e01b600052602260045260246000fd5b8180156130a357600181146130b4576130e1565b60ff198616895284890196506130e1565b60008881526020902060005b868110156130d95781548b8201529085019083016130c0565b505084890196505b50505050505092915050565b600082516130ff818460208701613c6d565b9190910192915050565b6000835161311b818460208801613c6d565b83519083019061312f818360208801613c6d565b01949350505050565b6000845161314a818460208901613c6d565b82018481528351613162816020808501908801613c6d565b0160200195945050505050565b747b226e616d65223a202243656c65737469616c202360581b815286516000906131a0816015850160208c01613c6d565b7f222c2261747472696275746573223a205b207b202274726169745f7479706522601591840191820152741d101121b7b637b9111610113b30b63ab2911d101160591b60358201526131f5604a820189613053565b90507f22207d2c207b2022646973706c61795f74797065223a20226e756d626572222c81527f202274726169745f74797065223a20224c6576656c222c202276616c7565223a6020820152600160fd1b6040820152865161325d816041840160208b01613c6d565b7f207d2c207b202274726169745f74797065223a20225769647468222c202276616041929091019182015266363ab2911d101160c91b60618201526133a061339261338c6133086132f86132f26132b7606888018d613037565b7f22207d2c207b202274726169745f74797065223a2022486569676874222c20228152683b30b63ab2911d101160b91b602082015260290190565b8a613037565b6322207d5d60e01b815260040190565b7f2c20226465736372697074696f6e223a202243656c65737469616c206973206181527f2066756c6c79206f6e2d636861696e2061727420636f6c6c656374696f6e2e2260208201527f2c2022696d616765223a2022646174613a696d6167652f7376672b786d6c3b62604082015265185cd94d8d0b60d21b606082015260660190565b86613037565b61227d60f01b815260020190565b9998505050505050505050565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f737667222076696577426f783d2230203020353030203530302220737460208201527f796c653d226261636b67726f756e642d636f6c6f723a233030303b223e203c6460408201527f6566733e203c66696c7465722069643d2279223e203c6665476175737369616e60608201527f426c757220737464446576696174696f6e3d223922202f3e203c212d2d20474560808201527f4e455241544956452046524f4d203820746f203131202d2d3e203c2f66696c7460a08201527f65723e203c2f646566733e203c67207374796c653d227669736962696c69747960c08201527f3a2068696464656e3b223e3c73796d626f6c2069643d2266697273742220737460e08201526b3cb6329e9139ba3937b5b29d60a11b610100820152600061350061010c830187613053565b61111f60f11b81526135db6135c961338c6135b46135ae613524600287018c613037565b7f3c2f73796d626f6c3e3c2f673e3c73796d626f6c2069643d227365636f6e642281527f2066696c7465723d2275726c28237929223e203c67207374796c653d2276697360208201527f6962696c6974793a2068696464656e3b223e3c75736520687265663d2223666960408201526b3939ba111010179f1e17b39f60a11b6060820152606c0190565b89613037565b681e17b9bcb6b137b61f60b91b815260090190565b651e17b9bb339f60d11b815260060190565b979650505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161361e81601d850160208701613c6d565b91909101601d0192915050565b681e3932b1ba103c1e9160b91b81528651600090613650816009850160208c01613c6d565b6411103c9e9160d91b600991840191820152875161367581600e840160208c01613c6d565b6811103bb4b23a341e9160b91b600e9290910191820152865161369f816017840160208b01613c6d565b6a1110103432b4b3b43a1e9160a91b6017929091019182015285516136cb816022840160208a01613c6d565b7f22207374726f6b652d77696474683d2234222066696c6c3d226e6f6e6522207460229290910191820152700e4c2dce6ccdee4da7a44e4dee8c2e8ca5607b1b60428201526133a061372361338c6053840188613037565b6c10191b9a90191b9a949110179f60991b8152600d0190565b74078ce40e8e4c2dce6ccdee4da7a44e4dee8c2e8ca5605b1b8152825160009061376d816015850160208801613c6d565b7f203235302032353029223e203c75736520687265663d22236669727374222f3e6015918401918201527f3c616e696d6174655472616e73666f726d20617474726962757465547970653d60358201527f22786d6c22206174747269627574654e616d653d227472616e73666f726d222060558201527f747970653d22726f74617465222066726f6d3d22302032353020323530222074607582015274379e91199b1810199b1810191a981110323ab91e9160591b6095820152835161383a8160aa840160208801613c6d565b7f73222061646469746976653d2273756d2220726570656174436f756e743d226960aa929091019182015271373232b334b734ba329110179f101e17b39f60711b60ca82015260dc01949350505050565b7f3c67207472616e73666f726d3d227363616c6528302e3529207472616e736c6181527f746528323530203235302922207374726f6b652d6f7061636974793d2235302560208201526211101f60e91b604082015274078ce40e8e4c2dce6ccdee4da7a44e4dee8c2e8ca5605b1b604382015260008251613913816058850160208701613c6d565b7f2032353520323535292220207374726f6b652d6f7061636974793d223935252260589390910192830152507f203e203c75736520687265663d22237365636f6e64222f3e203c2f673e3c2f676078820152601f60f91b6098820152609901919050565b9182526020820152605960f81b604082015260410190565b6001600160a01b0391909116815260200190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906139d69083018461300b565b9695505050505050565b602081526000612c99602083018461300b565b60208082526016908201527521b630b4b69034b9903737ba1030b1ba34bb3297171760511b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526017908201527626b0bc1039bab838363c9031b0b8103932b0b1b432b21760491b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526028908201527f43616e6e6f742075706772616465206120746f6b656e206265796f6e64206c656040820152673b32b6101898181760c11b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252601690820152752a37b5b2b7103237b2b9b713ba1032bc34b9ba17171760511b604082015260600190565b604051601f8201601f191681016001600160401b0381118282101715613c0357613c03613d45565b604052919050565b60008219821115613c1e57613c1e613d03565b500190565b600082613c3257613c32613d19565b500490565b6000816000190483118215151615613c5157613c51613d03565b500290565b600082821015613c6857613c68613d03565b500390565b60005b83811015613c88578181015183820152602001613c70565b83811115610ea55750506000910152565b600181811c90821680613cad57607f821691505b60208210811415613cce57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613ce857613ce8613d03565b5060010190565b600082613cfe57613cfe613d19565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610a9957600080fd5b8015158114610a9957600080fd5b6001600160e01b031981168114610a9957600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212206ad8b97a5a2d20eed46028deb19d841d229f0bd77ceebc56ae23f834f3243d4864736f6c63430008070033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.