ERC-721
NFT
Overview
Max Total Supply
5,062 TPIX
Holders
1,629
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 TPIXLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
ThePixels
Compiler Version
v0.8.0+commit.c7dfd78e
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // ______ __ __ ______ _____ __ __ _____ ______ // /\__ _\/\ \_\ \ /\ ___\ /\ __-. /\ \/\ \ /\ __-. /\ ___\ // \/_/\ \/\ \ __ \\ \ __\ \ \ \/\ \\ \ \_\ \\ \ \/\ \\ \ __\ // \ \_\ \ \_\ \_\\ \_____\ \ \____- \ \_____\\ \____- \ \_____\ // \/_/ \/_/\/_/ \/_____/ \/____/ \/_____/ \/____/ \/_____/ // pragma solidity ^0.8.0; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "./ThePixelsDNAFactory.sol"; import "./IThePixelsMetadataProvider.sol"; import "./IThePixelsDNAUpdater.sol"; contract ThePixels is Ownable, ERC721Enumerable, ThePixelsDNAFactory { uint256 public maxPixels; uint256 constant public MAX_SPECIAL_PIXELS = 5; address public salesContractAddress; address public metadataProviderContractAddress; address public DNAUpdaterContractAddress; mapping (uint256 => bool) public foundDNAs; mapping (uint256 => bool) public mintedSpecialDNAs; mapping (uint256 => uint256) public pixelDNAs; mapping (uint256 => uint256) public pixelDNAExtensions; constructor (uint256 _maxPixels) ERC721("the pixels", "TPIX") { maxPixels = _maxPixels; _setTraitTable(); } function setSalesContract(address _salesContractAddress) external onlyOwner { salesContractAddress = _salesContractAddress; } function setMetadataProviderContract(address _metadataProviderContractAddress) external onlyOwner { metadataProviderContractAddress = _metadataProviderContractAddress; } function setDNAUpdaterContract(address _DNAUpdaterContractAddress) external onlyOwner { DNAUpdaterContractAddress = _DNAUpdaterContractAddress; } function mintSpecialPixelDNA(uint256 index, uint256 _salt) external onlyOwner { require(index >= 0 && index < MAX_SPECIAL_PIXELS, "Invalid index"); require(!mintedSpecialDNAs[index], "Already minted"); uint256 totalSupply = totalSupply(); uint256 winnerTokenIndex = _rnd(_salt, index) % totalSupply; address winnerAddress = ownerOf(winnerTokenIndex); pixelDNAs[totalSupply] = index; mintedSpecialDNAs[index] = true; _safeMint(winnerAddress, totalSupply); } function mint(address to, uint256 salt, uint256 _nonce) external { require(msg.sender == salesContractAddress, "Well, there is a reason only sale contract can do this."); uint256 totalSupply = totalSupply(); require(totalSupply < maxPixels, "Hit the limit"); _mintWithUniqueDNA(to, totalSupply, salt, _nonce); } function _mintWithUniqueDNA(address _to, uint256 _tokenId, uint256 _salt, uint256 _nonce) internal { uint256 uniqueDNA = _getUniqueDNA(_salt, _nonce); pixelDNAs[_tokenId] = uniqueDNA; _safeMint(_to, _tokenId); } function _getUniqueDNA(uint256 _salt, uint256 _nonce) internal returns (uint256) { uint256 generationAttempt = 0; while(true) { uint256 extendedDNA = getEncodedRandomDNA(_salt, _nonce + generationAttempt); if (foundDNAs[extendedDNA] == false) { foundDNAs[extendedDNA] = true; return extendedDNA; } generationAttempt++; } } function getEncodedRandomDNA(uint256 _salt, uint256 _nonce) internal view returns (uint256) { uint8[11] memory foundDNA = _getRandomDNA(_salt, _nonce); uint256 encodedDNA = 10 ** (foundDNA.length * 2 + 1); for(uint256 i=0; i<foundDNA.length; i++) { encodedDNA += foundDNA[i] * (10 ** ((foundDNA.length - i) * 2)); } return encodedDNA; } function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { require(_exists(_tokenId), "ERC721Metadata: URI query for nonexistent token"); require(metadataProviderContractAddress != address(0), "Invalid metadata provider address"); return IThePixelsMetadataProvider(metadataProviderContractAddress) .getMetadata( _tokenId, pixelDNAs[_tokenId], pixelDNAExtensions[_tokenId] ); } function tokensOfOwner(address _owner) public view returns (uint256[] memory) { uint256 tokenCount = balanceOf(_owner); if (tokenCount == 0) { return new uint256[](0); } else { uint256[] memory result = new uint256[](tokenCount); uint256 index; for (index = 0; index < tokenCount; index++) { result[index] = tokenOfOwnerByIndex(_owner, index); } return result; } } function updateDNAExtension(uint256 _tokenId) external { require(DNAUpdaterContractAddress != address(0), "Invalid updater address"); require(msg.sender == ownerOf(_tokenId), "You need to own the token to update"); uint256 newDNAExtension = IThePixelsDNAUpdater(DNAUpdaterContractAddress).getUpdatedDNAExtension( msg.sender, _tokenId, pixelDNAs[_tokenId], pixelDNAExtensions[_tokenId] ); pixelDNAExtensions[_tokenId] = newDNAExtension; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // ______ __ __ ______ _____ __ __ _____ ______ // /\__ _\/\ \_\ \ /\ ___\ /\ __-. /\ \/\ \ /\ __-. /\ ___\ // \/_/\ \/\ \ __ \\ \ __\ \ \ \/\ \\ \ \_\ \\ \ \/\ \\ \ __\ // \ \_\ \ \_\ \_\\ \_____\ \ \____- \ \_____\\ \____- \ \_____\ // \/_/ \/_/\/_/ \/_____/ \/____/ \/_____/ \/____/ \/_____/ // pragma solidity ^0.8.0; pragma experimental ABIEncoderV2; contract ThePixelsDNAFactory { uint8 constant internal maxRarityScore = 101; uint8 constant internal themePastelRarity = 0; uint8 constant internal themeZombieRarity = 80; uint8 constant internal themeAlienRarity = 95; uint8 constant internal baseDNARarity = 99; uint8 constant internal costumeDNARarity = 10; mapping (uint8 => uint8[]) public traitTable; // Base DNA parts: uint8[3] internal themes; uint8[18] internal bodies; uint8[5] internal faces; uint8[8] internal eyes; uint8[11] internal noses; uint8[9] internal mouths; // Dynamic DNA parts: uint8[5] internal costumes; //6 - 1 uint8[46] internal headAccessories; //7 - 2 uint8[18] internal hairs; //8 - 3 uint8[25] internal sunglasses; //9 - 4 uint8[7] internal facialHairs; //10 - 5 function _getRandomDNA(uint256 _seed, uint256 _nonce) internal view returns (uint8[11] memory) { uint256 r = _rnd(_seed, _nonce) % maxRarityScore; if (r > themeAlienRarity) { return _getAlienDNA(_seed, _nonce + 1); }else if (r > themeZombieRarity) { return _getZombieDNA(_seed, _nonce + 2); }else { return _getPastelDNA(_seed, _nonce + 3); } } function _getPastelDNA(uint256 _seed, uint256 _nonce) internal view returns (uint8[11] memory) { uint256 r = _rnd(_seed, _nonce) % maxRarityScore; uint8[11] memory finalDNA = _getBaseDNA(_seed, _nonce + 1, 0); uint256 nextNonce = _nonce + 13; //99 - 100 if (r >= baseDNARarity) { return finalDNA; // 54 - 99 }else if (r < baseDNARarity && r >= 54) { finalDNA[7] = _pickTrait(7, _seed, nextNonce + 2); finalDNA[9] = _pickTrait(9, _seed, nextNonce + 3); finalDNA[10] = _pickTrait(10, _seed, nextNonce + 4); // 54 - 32 }else if (r < 54 && r >= 32) { finalDNA[7] = _pickTrait(7, _seed, nextNonce + 2); finalDNA[9] = _pickTrait(9, _seed, nextNonce + 3); // 32 - 10 }else if (r < 32 && r >= costumeDNARarity) { finalDNA[8] = _pickTrait(8, _seed, nextNonce + 5); finalDNA[9] = _pickTrait(9, _seed, nextNonce + 6); // 0 - 10 }else { finalDNA[6] = _pickTrait(6, _seed, nextNonce + 7); finalDNA[9] = _pickTrait(9, _seed, nextNonce + 8); finalDNA[10] = _pickTrait(10, _seed, nextNonce + 9); } return finalDNA; } function _getZombieDNA(uint256 _seed, uint256 _nonce) internal view returns (uint8[11] memory) { uint256 r = _rnd(_seed, _nonce) % maxRarityScore; uint8[11] memory finalDNA = _getBaseDNA(_seed, _nonce + 1, 1); uint256 nextNonce = _nonce + 13; if (r >= baseDNARarity) { return finalDNA; // 54 - 99 }else if (r < baseDNARarity && r >= 54) { finalDNA[7] = _pickTrait(7, _seed, nextNonce + 2); finalDNA[9] = _pickTrait(9, _seed, nextNonce + 3); finalDNA[10] = _pickTrait(10, _seed, nextNonce + 4); // 54 - 32 }else if (r < 54 && r >= 32) { finalDNA[7] = _pickTrait(7, _seed, nextNonce + 2); finalDNA[9] = _pickTrait(9, _seed, nextNonce + 3); // 32 - 10 }else if (r < 32 && r >= costumeDNARarity) { finalDNA[8] = _pickTrait(8, _seed, nextNonce + 5); finalDNA[9] = _pickTrait(9, _seed, nextNonce + 6); // 0 - 10 }else { finalDNA[6] = _pickTrait(6, _seed, nextNonce + 7); finalDNA[9] = _pickTrait(9, _seed, nextNonce + 8); finalDNA[10] = _pickTrait(10, _seed, nextNonce + 9); } return finalDNA; } function _getAlienDNA(uint256 _seed, uint256 _nonce) internal view returns (uint8[11] memory) { uint256 r = _rnd(_seed, _nonce) % maxRarityScore; uint8[11] memory finalDNA = _getBaseDNA(_seed, _nonce + 1, 2); uint256 nextNonce = _nonce + 13; if (r >= baseDNARarity) { return finalDNA; }else if (r < baseDNARarity && r >= 50) { finalDNA[7] = _pickTrait(7, _seed, nextNonce + 2); }else if (r < 50 && r >= costumeDNARarity) { finalDNA[8] = _pickTrait(8, _seed, nextNonce + 3); }else { finalDNA[6] = _pickTrait(6, _seed, nextNonce + 4); } return finalDNA; } function _getBaseDNA(uint256 _seed, uint256 _nonce, uint8 _theme) internal view returns (uint8[11] memory) { uint8[11] memory dna; dna[0] = _theme; if (_theme == 2) { dna[1] = _pickTrait(1, _seed, _nonce + 1); dna[2] = _pickTrait(2, _seed, _nonce + 2); dna[3] = 8; dna[4] = _pickTrait(4, _seed, _nonce + 4); dna[5] = _pickTrait(5, _seed, _nonce + 5); }else{ dna[1] = _pickTrait(1, _seed, _nonce + 6); dna[2] = _pickTrait(2, _seed, _nonce + 7); dna[3] = _pickTrait(3, _seed, _nonce + 8); dna[4] = _pickTrait(4, _seed, _nonce + 9); dna[5] = _pickTrait(5, _seed, _nonce + 10); } return dna; } function _pickTrait(uint8 traitIndex, uint256 _seed, uint256 _nonce) internal view returns (uint8) { uint256 beginIndex = _rnd(_seed, _seed + _nonce + traitIndex); uint256 r = beginIndex % maxRarityScore; uint8[] memory _traits = traitTable[traitIndex]; for (uint256 i=beginIndex; i<beginIndex + _traits.length; i++) { uint256 index = i % _traits.length; if (_traits[index] <= r) { return uint8(index); } } return uint8(beginIndex); } function _setBodyRarities() internal { bodies[0] = 0; bodies[1] = 0; bodies[2] = 10; bodies[3] = 95; bodies[4] = 15; bodies[5] = 0; bodies[6] = 5; bodies[7] = 0; bodies[8] = 0; bodies[9] = 35; bodies[10] = 0; bodies[11] = 15; bodies[12] = 25; bodies[13] = 25; bodies[14] = 20; bodies[15] = 30; bodies[16] = 20; bodies[17] = 30; } function _setFaceRarities() internal { faces[0] = 0; faces[1] = 0; faces[2] = 0; faces[3] = 5; faces[4] = 10; } function _setEyesRarities() internal { eyes[0] = 0; eyes[1] = 0; eyes[2] = 10; eyes[3] = 15; eyes[4] = 5; eyes[5] = 5; eyes[6] = 30; eyes[7] = 30; } function _setNoseRarities() internal { noses[0] = 15; noses[1] = 15; noses[2] = 5; noses[3] = 25; noses[4] = 0; noses[5] = 0; noses[6] = 50; noses[7] = 0; noses[8] = 0; noses[9] = 20; noses[10] = 20; } function _setMouthRarities() internal { mouths[0] = 0; mouths[1] = 10; mouths[2] = 15; mouths[3] = 20; mouths[4] = 80; mouths[5] = 40; mouths[6] = 30; mouths[7] = 65; mouths[8] = 25; } function _setCostumeRarities() internal { costumes[0] = 0; costumes[1] = 75; costumes[2] = 85; costumes[3] = 55; costumes[4] = 75; } function _setHeadAccessoryRarities() internal { headAccessories[0] = 0; headAccessories[1] = 35; headAccessories[2] = 50; headAccessories[3] = 20; headAccessories[4] = 20; headAccessories[5] = 20; headAccessories[6] = 20; headAccessories[7] = 0; headAccessories[8] = 0; headAccessories[9] = 0; headAccessories[10] = 90; headAccessories[11] = 90; headAccessories[12] = 90; headAccessories[13] = 0; headAccessories[14] = 0; headAccessories[15] = 0; headAccessories[16] = 0; headAccessories[17] = 0; headAccessories[18] = 35; headAccessories[19] = 35; headAccessories[20] = 35; headAccessories[21] = 35; headAccessories[22] = 0; headAccessories[23] = 80; headAccessories[24] = 0; headAccessories[25] = 0; headAccessories[26] = 0; headAccessories[27] = 70; headAccessories[28] = 30; headAccessories[29] = 30; headAccessories[30] = 30; headAccessories[31] = 30; headAccessories[32] = 5; headAccessories[33] = 5; headAccessories[34] = 5; headAccessories[35] = 30; headAccessories[36] = 30; headAccessories[37] = 30; headAccessories[38] = 95; headAccessories[39] = 40; headAccessories[40] = 98; headAccessories[41] = 75; headAccessories[42] = 15; headAccessories[43] = 15; headAccessories[44] = 15; headAccessories[45] = 15; } function _setHairRarities() internal { hairs[0] = 55; hairs[1] = 40; hairs[2] = 40; hairs[3] = 0; hairs[4] = 35; hairs[5] = 5; hairs[6] = 0; hairs[7] = 15; hairs[8] = 80; hairs[9] = 20; hairs[10] = 25; hairs[11] = 30; hairs[12] = 50; hairs[13] = 50; hairs[14] = 90; hairs[15] = 50; hairs[16] = 50; hairs[17] = 20; } function _setSunglassesRarities() internal { sunglasses[0] = 0; sunglasses[1] = 40; sunglasses[2] = 55; sunglasses[3] = 80; sunglasses[4] = 25; sunglasses[5] = 85; sunglasses[6] = 25; sunglasses[7] = 20; sunglasses[8] = 35; sunglasses[9] = 10; sunglasses[10] = 95; sunglasses[11] = 30; sunglasses[12] = 70; sunglasses[13] = 90; sunglasses[14] = 70; sunglasses[15] = 80; sunglasses[16] = 60; sunglasses[17] = 90; sunglasses[18] = 60; sunglasses[19] = 55; sunglasses[20] = 70; sunglasses[21] = 55; sunglasses[22] = 60; sunglasses[23] = 65; sunglasses[24] = 85; } function _setFacialHairRarities() internal { facialHairs[0] = 50; facialHairs[1] = 0; facialHairs[2] = 10; facialHairs[3] = 20; facialHairs[4] = 50; facialHairs[5] = 60; facialHairs[6] = 70; } function _setTraitTable() internal { _setBodyRarities(); _setFaceRarities(); _setEyesRarities(); _setNoseRarities(); _setMouthRarities(); _setCostumeRarities(); _setHeadAccessoryRarities(); _setHairRarities(); _setSunglassesRarities(); _setFaceRarities(); traitTable[0] = themes; traitTable[1] = bodies; traitTable[2] = faces; traitTable[3] = eyes; traitTable[4] = noses; traitTable[5] = mouths; traitTable[6] = costumes; traitTable[7] = headAccessories; traitTable[8] = hairs; traitTable[9] = sunglasses; traitTable[10] = facialHairs; } function _rnd(uint256 _salt, uint256 _nonce) internal view returns (uint256) { return uint256(keccak256(abi.encodePacked(block.timestamp, msg.sender, _salt, _nonce))); } }
// SPDX-License-Identifier: MIT // ______ __ __ ______ _____ __ __ _____ ______ // /\__ _\/\ \_\ \ /\ ___\ /\ __-. /\ \/\ \ /\ __-. /\ ___\ // \/_/\ \/\ \ __ \\ \ __\ \ \ \/\ \\ \ \_\ \\ \ \/\ \\ \ __\ // \ \_\ \ \_\ \_\\ \_____\ \ \____- \ \_____\\ \____- \ \_____\ // \/_/ \/_/\/_/ \/_____/ \/____/ \/_____/ \/____/ \/_____/ // pragma solidity ^0.8.0; interface IThePixelsMetadataProvider { function getMetadata( uint256 tokenId, uint256 dna, uint256 dnaExtension ) external view returns (string memory); }
// SPDX-License-Identifier: MIT // ______ __ __ ______ _____ __ __ _____ ______ // /\__ _\/\ \_\ \ /\ ___\ /\ __-. /\ \/\ \ /\ __-. /\ ___\ // \/_/\ \/\ \ __ \\ \ __\ \ \ \/\ \\ \ \_\ \\ \ \/\ \\ \ __\ // \ \_\ \ \_\ \_\\ \_____\ \ \____- \ \_____\\ \____- \ \_____\ // \/_/ \/_/\/_/ \/_____/ \/____/ \/_____/ \/____/ \/_____/ // pragma solidity ^0.8.0; interface IThePixelsDNAUpdater { function canUpdateDNAExtension( address _owner, uint256 _tokenId, uint256 _dna, uint256 _dnaExtension ) external view returns (bool); function getUpdatedDNAExtension( address _owner, uint256 _tokenId, uint256 _dna, uint256 _dnaExtension ) external returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; 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 { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public 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 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 pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev 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": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"_maxPixels","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DNAUpdaterContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SPECIAL_PIXELS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"foundDNAs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"maxPixels","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataProviderContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"uint256","name":"_nonce","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"_salt","type":"uint256"}],"name":"mintSpecialPixelDNA","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintedSpecialDNAs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"pixelDNAExtensions","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"pixelDNAs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"salesContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_DNAUpdaterContractAddress","type":"address"}],"name":"setDNAUpdaterContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_metadataProviderContractAddress","type":"address"}],"name":"setMetadataProviderContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_salesContractAddress","type":"address"}],"name":"setSalesContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"traitTable","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"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":"updateDNAExtension","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162004b7d38038062004b7d833981016040819052620000349162001c0d565b6040518060400160405280600a81526020016974686520706978656c7360b01b815250604051806040016040528060048152602001630a8a092b60e31b8152506200008e62000088620000d260201b60201c565b620000d6565b8151620000a390600190602085019062001b1e565b508051620000b990600290602084019062001b1e565b5050506018819055620000cb62000126565b5062001c63565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b620001306200040c565b6200013a62000629565b6200014462000647565b6200014e6200069d565b620001586200072f565b6200016262000802565b6200016c62000834565b62000176620012ff565b62000180620015fc565b6200018a62000629565b60008052600b602052620001c27fdf7de25b7f1fd6d0b5205f0e18f1f35bd7b8d84cce336588d184533ce43a6f76600c600362001bad565b506001600052600b602052620001fc7f72c6bfb7988af3a1efa6568f02a999bc52252641c659d85961ca3d372b57d5cf600d601262001bad565b506002600052600b602052620002367fa50eece07c7db1631545c0069bd8f5f54d5935e215d59097edf258a44ba91634600e600562001bad565b506003600052600b602052620002707f64c15cc42be7899b001f818cf4433057002112c418d1d3a67cd5cb453051d33e600f600862001bad565b506004600052600b6020819052620002ad907f12d0c11577e2f0950f57c455c117796550b79f444811db8ba2f69c57b646c7849060109062001bad565b506005600052600b602052620002e77febae6141bae5521e99e0a8d610356b0f501fea54980b59c84841db43ba7204f46011600962001bad565b506006600052600b602052620003217f0387e9d1203691d8e3362a7e4c6723de358a4010d7f31ecbec3fbfc61d1c75fc6012600562001bad565b506007600052600b6020526200035b7ff5559028dc9ba50d75343c779b2f75e13a84a14662932fc67a486f263ca31a966013602e62001bad565b506008600052600b602052620003957f71f482bdabd1ea844d62c952b094e632959690d7448ca2aab34034ec985693586015601262001bad565b506009600052600b602052620003cf7fe12d5ff10640a555479d85b7ab5f83b5dbd3cf6ac615eec77e24e0984b75a0386016601962001bad565b50600a600052600b602052620004097fc47c2f4ab42fe2617dd76ca1eb9781d09fced5e5671df71824e2f8a8f694e0246017600762001bad565b50565b600d805462ffffff1916620a00001763ff0000001916635f0000001760ff60201b1916640f000000001761ffff60281b191666050000000000001762ffffff60381b191669230000000000000000001760ff60501b19168155600f90600b602091828204019190066101000a81548160ff021916908360ff1602179055506019600d600c60128110620004af57634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff1602179055506019600d8060128110620004f357634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff1602179055506014600d600e601281106200053857634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550601e600d600f601281106200057d57634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff1602179055506014600d601060128110620005c257634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550601e600d6011601281106200060757634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550565b600e805463ffffffff19166305000000178155600a90600462000607565b600f805462ffffff1916620a00001763ff0000001916630f0000001760ff60201b19166405000000001760ff60281b1916650500000000001760ff60301b1916661e000000000000178155601e90600762000607565b6010805460ff1916600f1761ff001916610f001762ff00001916620500001763ff000000191663190000001762ffffff60201b191666320000000000001761ffff60381b191681556014906009602091828204019190066101000a81548160ff021916908360ff16021790555060146010600a600b81106200060757634e487b7160e01b600052603260045260246000fd5b6011805461ffff1916610a001762ff00001916620f00001763ff000000191663140000001760ff60201b19166450000000001760ff60281b191665280000000000178155601e906006602091828204019190066101000a81548160ff021916908360ff16021790555060416011600760098110620007bd57634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550601960116008600981106200060757634e487b7160e01b600052603260045260246000fd5b6012805461ffff1916614b001762ff00001916625500001763ff00000019166337000000178155604b90600462000607565b6013805461ffff19166123001762ff00001916623200001763ff000000191663140000001760ff60201b19166414000000001760ff60281b1916651400000000001781556014906006602091828204019190066101000a81548160ff021916908360ff160217905550600060136007602e8110620008c257634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550600060136008602e81106200090757634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550600060136009602e81106200094c57634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550605a6013600a602e81106200099157634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550605a6013600b602e8110620009d657634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550605a6013600c602e811062000a1b57634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff16021790555060006013600d602e811062000a6057634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff16021790555060006013600e602e811062000aa557634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff16021790555060006013600f602e811062000aea57634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550600060136010602e811062000b2f57634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550600060136011602e811062000b7457634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550602360136012602e811062000bb957634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff1602179055506023601380602e811062000bfd57634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550602360136014602e811062000c4257634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550602360136015602e811062000c8757634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550600060136016602e811062000ccc57634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550605060136017602e811062000d1157634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550600060136018602e811062000d5657634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550600060136019602e811062000d9b57634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff16021790555060006013601a602e811062000de057634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff16021790555060466013601b602e811062000e2557634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550601e6013601c602e811062000e6a57634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550601e6013601d602e811062000eaf57634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550601e6013601e602e811062000ef457634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550601e6013601f602e811062000f3957634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550600560136020602e811062000f7e57634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550600560136021602e811062000fc357634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550600560136022602e81106200100857634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550601e60136023602e81106200104d57634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550601e60136024602e81106200109257634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550601e60136025602e8110620010d757634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550605f60136026602e81106200111c57634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550602860136027602e81106200116157634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550606260136028602e8110620011a657634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550604b60136029602e8110620011eb57634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550600f6013602a602e81106200123057634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550600f6013602b602e81106200127557634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550600f6013602c602e8110620012ba57634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550600f6013602d602e81106200060757634e487b7160e01b600052603260045260246000fd5b6015805460ff191660371761ff0019166128001762ff00001916622800001764ffff00000019166423000000001760ff60281b1916650500000000001760ff60301b19168155600f906007602091828204019190066101000a81548160ff021916908360ff160217905550605060156008601281106200138f57634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff16021790555060146015600960128110620013d457634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff16021790555060196015600a601281106200141957634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550601e6015600b601281106200145e57634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff16021790555060326015600c60128110620014a357634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff16021790555060326015600d60128110620014e857634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550605a6015600e601281106200152d57634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff16021790555060326015600f601281106200157257634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff16021790555060326015601060128110620015b757634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550601460156011601281106200060757634e487b7160e01b600052603260045260246000fd5b6016805461ffff19166128001762ff00001916623700001763ff000000191663500000001760ff60201b19166419000000001760ff60281b1916655500000000001781556019906006602091828204019190066101000a81548160ff021916908360ff160217905550601460166007601981106200168a57634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff16021790555060236016600860198110620016cf57634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550600a60166009601981106200171457634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550605f6016600a601981106200175957634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550601e6016600b601981106200179e57634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff16021790555060466016600c60198110620017e357634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550605a6016600d601981106200182857634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff16021790555060466016600e601981106200186d57634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff16021790555060506016600f60198110620018b257634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550603c6016601060198110620018f757634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550605a60166011601981106200193c57634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550603c60166012601981106200198157634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff16021790555060376016601360198110620019c657634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff1602179055506046601660146019811062001a0b57634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff1602179055506037601660156019811062001a5057634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550603c6016806019811062001a9457634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff1602179055506041601660176019811062001ad957634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908360ff160217905550605560166018601981106200060757634e487b7160e01b600052603260045260246000fd5b82805462001b2c9062001c26565b90600052602060002090601f01602090048101928262001b50576000855562001b9b565b82601f1062001b6b57805160ff191683800117855562001b9b565b8280016001018555821562001b9b579182015b8281111562001b9b57825182559160200191906001019062001b7e565b5062001ba992915062001bf6565b5090565b82805482825590600052602060002090601f0160209004810192821562001b9b5791601f016020900482015b8281111562001b9b57825482559160010191906001019062001bd9565b5b8082111562001ba9576000815560010162001bf7565b60006020828403121562001c1f578081fd5b5051919050565b60028104600182168062001c3b57607f821691505b6020821081141562001c5d57634e487b7160e01b600052602260045260246000fd5b50919050565b612f0a8062001c736000396000f3fe608060405234801561001057600080fd5b506004361061025c5760003560e01c806369c77cb211610145578063a22cb465116100bd578063e7640c7d1161008c578063eaa2e08311610071578063eaa2e083146104ca578063f2fde38b146104dd578063f3e4160c146104f05761025c565b8063e7640c7d146104a4578063e985e9c5146104b75761025c565b8063a22cb46514610458578063b88d4fde1461046b578063c47bbe3f1461047e578063c87b56dd146104915761025c565b80638462151c1161011457806395d89b41116100f957806395d89b411461042a5780639b5719a6146104325780639d29131c146104455761025c565b80638462151c146104025780638da5cb5b146104225761025c565b806369c77cb2146103cc57806370a08231146103df578063715018a6146103f25780637f62127e146103fa5761025c565b80631996c3f5116101d857806342842e0e116101a75780634f6ccce71161018c5780634f6ccce71461039e578063535a096a146103b15780636352211e146103b95761025c565b806342842e0e146103785780634ce76ee41461038b5761025c565b80631996c3f51461033757806323b872dd1461034a5780632f745c591461035d5780633a4a1dab146103705761025c565b8063095ea7b31161022f57806315daf86f1161021457806315daf86f146102ef5780631814fde91461030f57806318160ddd146103225761025c565b8063095ea7b3146102c7578063156e29f6146102dc5761025c565b806301ffc9a714610261578063063de1311461028a57806306fdde031461029f578063081812fc146102b4575b600080fd5b61027461026f366004612207565b6104f8565b6040516102819190612438565b60405180910390f35b61029261053e565b604051610281919061237e565b6102a761054d565b6040516102819190612443565b6102926102c23660046122b2565b6105df565b6102da6102d53660046121ac565b61062b565b005b6102da6102ea3660046121d5565b6106c3565b6103026102fd366004612303565b61072c565b6040516102819190612c34565b61027461031d3660046122b2565b61076f565b61032a610784565b6040516102819190612c15565b6102da610345366004612048565b61078a565b6102da610358366004612094565b6107eb565b61032a61036b3660046121ac565b610823565b61032a610878565b6102da610386366004612094565b61087d565b6102da6103993660046122e2565b610898565b61032a6103ac3660046122b2565b610992565b6102926109ed565b6102926103c73660046122b2565b6109fc565b61032a6103da3660046122b2565b610a31565b61032a6103ed366004612048565b610a43565b6102da610a87565b610292610ad2565b610415610410366004612048565b610ae1565b60405161028191906123f4565b610292610bc2565b6102a7610bd1565b6102da610440366004612048565b610be0565b6102da610453366004612048565b610c41565b6102da610466366004612172565b610ca2565b6102da6104793660046120cf565b610d70565b61027461048c3660046122b2565b610da9565b6102a761049f3660046122b2565b610dbe565b61032a6104b23660046122b2565b610ec8565b6102746104c5366004612062565b610eda565b6102da6104d83660046122b2565b610f08565b6102da6104eb366004612048565b611038565b61032a6110a9565b60006001600160e01b031982167f780e9d630000000000000000000000000000000000000000000000000000000014806105365750610536826110af565b90505b919050565b601a546001600160a01b031681565b60606001805461055c90612e22565b80601f016020809104026020016040519081016040528092919081815260200182805461058890612e22565b80156105d55780601f106105aa576101008083540402835291602001916105d5565b820191906000526020600020905b8154815290600101906020018083116105b857829003601f168201915b5050505050905090565b60006105ea82611121565b61060f5760405162461bcd60e51b8152600401610606906128f8565b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610636826109fc565b9050806001600160a01b0316836001600160a01b0316141561066a5760405162461bcd60e51b815260040161060690612afe565b806001600160a01b031661067c61113e565b6001600160a01b031614806106985750610698816104c561113e565b6106b45760405162461bcd60e51b81526004016106069061274f565b6106be8383611142565b505050565b6019546001600160a01b031633146106ed5760405162461bcd60e51b81526004016106069061248d565b60006106f7610784565b9050601854811061071a5760405162461bcd60e51b815260040161060690612a90565b610726848285856111b0565b50505050565b600b602052816000526040600020818154811061074857600080fd5b9060005260206000209060209182820401919006915091509054906101000a900460ff1681565b601c6020526000908152604090205460ff1681565b60095490565b61079261113e565b6001600160a01b03166107a3610bc2565b6001600160a01b0316146107c95760405162461bcd60e51b815260040161060690612944565b601b80546001600160a01b0319166001600160a01b0392909216919091179055565b6107fc6107f661113e565b826111d9565b6108185760405162461bcd60e51b815260040161060690612b5b565b6106be83838361125e565b600061082e83610a43565b821061084c5760405162461bcd60e51b8152600401610606906124ea565b506001600160a01b03821660009081526007602090815260408083208484529091529020545b92915050565b600581565b6106be83838360405180602001604052806000815250610d70565b6108a061113e565b6001600160a01b03166108b1610bc2565b6001600160a01b0316146108d75760405162461bcd60e51b815260040161060690612944565b600582106108f75760405162461bcd60e51b815260040161060690612638565b6000828152601d602052604090205460ff16156109265760405162461bcd60e51b815260040161060690612456565b6000610930610784565b905060008161093f848661138b565b6109499190612e72565b90506000610956826109fc565b6000848152601e60209081526040808320899055888352601d9091529020805460ff19166001179055905061098b81846113c3565b5050505050565b600061099c610784565b82106109ba5760405162461bcd60e51b815260040161060690612bb8565b600982815481106109db57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b601b546001600160a01b031681565b6000818152600360205260408120546001600160a01b0316806105365760405162461bcd60e51b815260040161060690612809565b601f6020526000908152604090205481565b60006001600160a01b038216610a6b5760405162461bcd60e51b8152600401610606906127ac565b506001600160a01b031660009081526004602052604090205490565b610a8f61113e565b6001600160a01b0316610aa0610bc2565b6001600160a01b031614610ac65760405162461bcd60e51b815260040161060690612944565b610ad060006113e1565b565b6019546001600160a01b031681565b60606000610aee83610a43565b905080610b0b575050604080516000815260208101909152610539565b60008167ffffffffffffffff811115610b3457634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610b5d578160200160208202803683370190505b50905060005b82811015610bb257610b758582610823565b828281518110610b9557634e487b7160e01b600052603260045260246000fd5b602090810291909101015280610baa81612e57565b915050610b63565b5091506105399050565b50919050565b6000546001600160a01b031690565b60606002805461055c90612e22565b610be861113e565b6001600160a01b0316610bf9610bc2565b6001600160a01b031614610c1f5760405162461bcd60e51b815260040161060690612944565b601980546001600160a01b0319166001600160a01b0392909216919091179055565b610c4961113e565b6001600160a01b0316610c5a610bc2565b6001600160a01b031614610c805760405162461bcd60e51b815260040161060690612944565b601a80546001600160a01b0319166001600160a01b0392909216919091179055565b610caa61113e565b6001600160a01b0316826001600160a01b03161415610cdb5760405162461bcd60e51b8152600401610606906126cc565b8060066000610ce861113e565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610d2c61113e565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610d649190612438565b60405180910390a35050565b610d81610d7b61113e565b836111d9565b610d9d5760405162461bcd60e51b815260040161060690612b5b565b61072684848484611431565b601d6020526000908152604090205460ff1681565b6060610dc982611121565b610de55760405162461bcd60e51b815260040161060690612a33565b601a546001600160a01b0316610e0d5760405162461bcd60e51b815260040161060690612979565b601a546000838152601e6020908152604080832054601f909252918290205491517f0d66d65b0000000000000000000000000000000000000000000000000000000081526001600160a01b0390931692630d66d65b92610e74928792909190600401612c1e565b60006040518083038186803b158015610e8c57600080fd5b505afa158015610ea0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610536919081019061223f565b601e6020526000908152604090205481565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b601b546001600160a01b0316610f305760405162461bcd60e51b815260040161060690612ac7565b610f39816109fc565b6001600160a01b0316336001600160a01b031614610f695760405162461bcd60e51b815260040161060690612866565b601b546000828152601e6020908152604080832054601f9092528083205490517f9b1bb07400000000000000000000000000000000000000000000000000000000815292936001600160a01b031692639b1bb07492610fd0923392889291906004016123ce565b602060405180830381600087803b158015610fea57600080fd5b505af1158015610ffe573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061102291906122ca565b6000928352601f60205260409092209190915550565b61104061113e565b6001600160a01b0316611051610bc2565b6001600160a01b0316146110775760405162461bcd60e51b815260040161060690612944565b6001600160a01b03811661109d5760405162461bcd60e51b8152600401610606906125a4565b6110a6816113e1565b50565b60185481565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061111257506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610536575061053682611464565b6000908152600360205260409020546001600160a01b0316151590565b3390565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611177826109fc565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006111bc8383611496565b6000858152601e60205260409020819055905061098b85856113c3565b60006111e482611121565b6112005760405162461bcd60e51b815260040161060690612703565b600061120b836109fc565b9050806001600160a01b0316846001600160a01b031614806112465750836001600160a01b031661123b846105df565b6001600160a01b0316145b8061125657506112568185610eda565b949350505050565b826001600160a01b0316611271826109fc565b6001600160a01b0316146112975760405162461bcd60e51b8152600401610606906129d6565b6001600160a01b0382166112bd5760405162461bcd60e51b81526004016106069061266f565b6112c88383836114fd565b6112d3600082611142565b6001600160a01b03831660009081526004602052604081208054600192906112fc908490612ddf565b90915550506001600160a01b038216600090815260046020526040812080546001929061132a908490612c94565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000423384846040516020016113a49493929190612351565b60408051601f1981840301815291905280516020909101209392505050565b6113dd828260405180602001604052806000815250611586565b5050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61143c84848461125e565b611448848484846115b9565b6107265760405162461bcd60e51b815260040161060690612547565b6001600160e01b031981167f01ffc9a70000000000000000000000000000000000000000000000000000000014919050565b6000805b60006114af856114aa8487612c94565b6116ed565b6000818152601c602052604090205490915060ff166114ea576000818152601c60205260409020805460ff1916600117905591506108729050565b816114f481612e57565b9250505061149a565b6115088383836106be565b6001600160a01b0383166115245761151f816117a8565b611547565b816001600160a01b0316836001600160a01b0316146115475761154783826117ec565b6001600160a01b0382166115635761155e81611889565b6106be565b826001600160a01b0316826001600160a01b0316146106be576106be8282611962565b61159083836119a6565b61159d60008484846115b9565b6106be5760405162461bcd60e51b815260040161060690612547565b60006115cd846001600160a01b0316611a85565b156116e257836001600160a01b031663150b7a026115e961113e565b8786866040518563ffffffff1660e01b815260040161160b9493929190612392565b602060405180830381600087803b15801561162557600080fd5b505af1925050508015611655575060408051601f3d908101601f1916820190925261165291810190612223565b60015b6116af573d808015611683576040519150601f19603f3d011682016040523d82523d6000602084013e611688565b606091505b5080516116a75760405162461bcd60e51b815260040161060690612547565b805181602001fd5b6001600160e01b0319167f150b7a0200000000000000000000000000000000000000000000000000000000149050611256565b506001949350505050565b6000806116fa8484611a8b565b9050600061170a600b6002612dc0565b611715906001612c94565b61172090600a612cf2565b905060005b600b81101561179f5761173981600b612ddf565b611744906002612dc0565b61174f90600a612cf2565b8382600b811061176f57634e487b7160e01b600052603260045260246000fd5b602002015160ff166117819190612dc0565b61178b9083612c94565b91508061179781612e57565b915050611725565b50949350505050565b600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b600060016117f984610a43565b6118039190612ddf565b600083815260086020526040902054909150808214611856576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b60095460009061189b90600190612ddf565b6000838152600a6020526040812054600980549394509092849081106118d157634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806009838154811061190057634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600a9091526040808220849055858252812055600980548061194657634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061196d83610a43565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b6001600160a01b0382166119cc5760405162461bcd60e51b8152600401610606906128c3565b6119d581611121565b156119f25760405162461bcd60e51b815260040161060690612601565b6119fe600083836114fd565b6001600160a01b0382166000908152600460205260408120805460019290611a27908490612c94565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b3b151590565b611a93612012565b60006065611aa1858561138b565b611aab9190612e72565b9050605f811115611ad257611aca84611ac5856001612c94565b611b03565b915050610872565b6050811115611aef57611aca84611aea856002612c94565b611bfc565b611aca84611afe856003612c94565b611d90565b611b0b612012565b60006065611b19858561138b565b611b239190612e72565b90506000611b3d85611b36866001612c94565b6002611dc6565b90506000611b4c85600d612c94565b905060638310611b60575091506108729050565b606383108015611b71575060328310155b15611ba257611b8c600787611b87846002612c94565b611ed9565b8260075b60ff909216602092909202015261179f565b603283108015611bb35750600a8310155b15611bd157611bc9600887611b87846003612c94565b826008611b90565b611be2600687611b87846004612c94565b8260065b60ff909216602092909202015250949350505050565b611c04612012565b60006065611c12858561138b565b611c1c9190612e72565b90506000611c3685611c2f866001612c94565b6001611dc6565b90506000611c4585600d612c94565b905060638310611c59575091506108729050565b606383108015611c6a575060368310155b15611cbb57611c80600787611b87846002612c94565b60ff1660e0830152611c99600987611b87846003612c94565b60ff16610120830152611cb3600a87611b87846004612c94565b82600a611b90565b603683108015611ccc575060208310155b15611d0357611ce2600787611b87846002612c94565b60ff1660e0830152611cfb600987611b87846003612c94565b826009611b90565b602083108015611d145750600a8310155b15611d4457611d2a600887611b87846005612c94565b60ff16610100830152611cfb600987611b87846006612c94565b611d55600687611b87846007612c94565b60ff1660c0830152611d6e600987611b87846008612c94565b60ff16610120830152611d88600a87611b87846009612c94565b82600a611be6565b611d98612012565b60006065611da6858561138b565b611db09190612e72565b90506000611c3685611dc3866001612c94565b60005b611dce612012565b611dd6612012565b60ff831680825260021415611e5157611df5600186611b878783612c94565b60ff166020820152611e0d600286611b878783612c94565b60ff16604082015260086060820152611e2c600486611b878783612c94565b60ff166080820152611e44600586611b878783612c94565b60ff1660a0820152611ecf565b611e62600186611b87876006612c94565b60ff166020820152611e7b600286611b87876007612c94565b60ff166040820152611e94600386611b87876008612c94565b60ff166060820152611ead600486611b87876009612c94565b60ff166080820152611ec6600586611b8787600a612c94565b60ff1660a08201525b90505b9392505050565b600080611efd8460ff8716611eee8683612c94565b611ef89190612c94565b61138b565b90506000611f0c606583612e72565b60ff87166000908152600b6020908152604080832080548251818502810185019093528083529495509293909291830182828015611f8757602002820191906000526020600020906000905b825461010083900a900460ff16815260206001928301818104948501949093039092029101808411611f585790505b509394508693505050505b8151611f9e9085612c94565b811015612006576000825182611fb49190612e72565b905083838281518110611fd757634e487b7160e01b600052603260045260246000fd5b602002602001015160ff1611611ff3579450611ed29350505050565b5080611ffe81612e57565b915050611f92565b50919695505050505050565b604051806101600160405280600b906020820280368337509192915050565b80356001600160a01b038116811461053957600080fd5b600060208284031215612059578081fd5b611ed282612031565b60008060408385031215612074578081fd5b61207d83612031565b915061208b60208401612031565b90509250929050565b6000806000606084860312156120a8578081fd5b6120b184612031565b92506120bf60208501612031565b9150604084013590509250925092565b600080600080608085870312156120e4578081fd5b6120ed85612031565b93506120fb60208601612031565b925060408501359150606085013567ffffffffffffffff81111561211d578182fd5b8501601f8101871361212d578182fd5b803561214061213b82612c6c565b612c42565b818152886020838501011115612154578384fd5b81602084016020830137908101602001929092525092959194509250565b60008060408385031215612184578182fd5b61218d83612031565b9150602083013580151581146121a1578182fd5b809150509250929050565b600080604083850312156121be578182fd5b6121c783612031565b946020939093013593505050565b6000806000606084860312156121e9578283fd5b6121f284612031565b95602085013595506040909401359392505050565b600060208284031215612218578081fd5b8135611ed281612ebe565b600060208284031215612234578081fd5b8151611ed281612ebe565b600060208284031215612250578081fd5b815167ffffffffffffffff811115612266578182fd5b8201601f81018413612276578182fd5b805161228461213b82612c6c565b818152856020838501011115612298578384fd5b6122a9826020830160208601612df6565b95945050505050565b6000602082840312156122c3578081fd5b5035919050565b6000602082840312156122db578081fd5b5051919050565b600080604083850312156122f4578182fd5b50508035926020909101359150565b60008060408385031215612315578182fd5b823560ff811681146121c7578283fd5b6000815180845261233d816020860160208601612df6565b601f01601f19169290920160200192915050565b93845260609290921b6bffffffffffffffffffffffff191660208401526034830152605482015260740190565b6001600160a01b0391909116815260200190565b60006001600160a01b038087168352808616602084015250836040830152608060608301526123c46080830184612325565b9695505050505050565b6001600160a01b0394909416845260208401929092526040830152606082015260800190565b6020808252825182820181905260009190848201906040850190845b8181101561242c57835183529284019291840191600101612410565b50909695505050505050565b901515815260200190565b600060208252611ed26020830184612325565b6020808252600e908201527f416c7265616479206d696e746564000000000000000000000000000000000000604082015260600190565b60208082526037908201527f57656c6c2c207468657265206973206120726561736f6e206f6e6c792073616c60408201527f6520636f6e74726163742063616e20646f20746869732e000000000000000000606082015260800190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201527f74206f6620626f756e6473000000000000000000000000000000000000000000606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e7465720000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b6020808252600d908201527f496e76616c696420696e64657800000000000000000000000000000000000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460408201527f7265737300000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560408201527f726f206164647265737300000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606082015260800190565b60208082526023908201527f596f75206e65656420746f206f776e2074686520746f6b656e20746f2075706460408201527f6174650000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526021908201527f496e76616c6964206d657461646174612070726f76696465722061646472657360408201527f7300000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606082015260800190565b6020808252600d908201527f48697420746865206c696d697400000000000000000000000000000000000000604082015260600190565b60208082526017908201527f496e76616c696420757064617465722061646472657373000000000000000000604082015260600190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560408201527f7200000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201527f7574206f6620626f756e64730000000000000000000000000000000000000000606082015260800190565b90815260200190565b9283526020830191909152604082015260600190565b60ff91909116815260200190565b60405181810167ffffffffffffffff81118282101715612c6457612c64612ea8565b604052919050565b600067ffffffffffffffff821115612c8657612c86612ea8565b50601f01601f191660200190565b60008219821115612ca757612ca7612e92565b500190565b80825b6001808611612cbe5750612ce9565b818704821115612cd057612cd0612e92565b80861615612cdd57918102915b9490941c938002612caf565b94509492505050565b6000611ed26000198484600082612d0b57506001611ed2565b81612d1857506000611ed2565b8160018114612d2e5760028114612d3857612d65565b6001915050611ed2565b60ff841115612d4957612d49612e92565b6001841b915084821115612d5f57612d5f612e92565b50611ed2565b5060208310610133831016604e8410600b8410161715612d98575081810a83811115612d9357612d93612e92565b611ed2565b612da58484846001612cac565b808604821115612db757612db7612e92565b02949350505050565b6000816000190483118215151615612dda57612dda612e92565b500290565b600082821015612df157612df1612e92565b500390565b60005b83811015612e11578181015183820152602001612df9565b838111156107265750506000910152565b600281046001821680612e3657607f821691505b60208210811415610bbc57634e487b7160e01b600052602260045260246000fd5b6000600019821415612e6b57612e6b612e92565b5060010190565b600082612e8d57634e487b7160e01b81526012600452602481fd5b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146110a657600080fdfea2646970667358221220dd8e29acbba718c6c5e41023d9a90541baffce4732a5f151b24841b8accfcdd464736f6c634300080000330000000000000000000000000000000000000000000000000000000000001400
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061025c5760003560e01c806369c77cb211610145578063a22cb465116100bd578063e7640c7d1161008c578063eaa2e08311610071578063eaa2e083146104ca578063f2fde38b146104dd578063f3e4160c146104f05761025c565b8063e7640c7d146104a4578063e985e9c5146104b75761025c565b8063a22cb46514610458578063b88d4fde1461046b578063c47bbe3f1461047e578063c87b56dd146104915761025c565b80638462151c1161011457806395d89b41116100f957806395d89b411461042a5780639b5719a6146104325780639d29131c146104455761025c565b80638462151c146104025780638da5cb5b146104225761025c565b806369c77cb2146103cc57806370a08231146103df578063715018a6146103f25780637f62127e146103fa5761025c565b80631996c3f5116101d857806342842e0e116101a75780634f6ccce71161018c5780634f6ccce71461039e578063535a096a146103b15780636352211e146103b95761025c565b806342842e0e146103785780634ce76ee41461038b5761025c565b80631996c3f51461033757806323b872dd1461034a5780632f745c591461035d5780633a4a1dab146103705761025c565b8063095ea7b31161022f57806315daf86f1161021457806315daf86f146102ef5780631814fde91461030f57806318160ddd146103225761025c565b8063095ea7b3146102c7578063156e29f6146102dc5761025c565b806301ffc9a714610261578063063de1311461028a57806306fdde031461029f578063081812fc146102b4575b600080fd5b61027461026f366004612207565b6104f8565b6040516102819190612438565b60405180910390f35b61029261053e565b604051610281919061237e565b6102a761054d565b6040516102819190612443565b6102926102c23660046122b2565b6105df565b6102da6102d53660046121ac565b61062b565b005b6102da6102ea3660046121d5565b6106c3565b6103026102fd366004612303565b61072c565b6040516102819190612c34565b61027461031d3660046122b2565b61076f565b61032a610784565b6040516102819190612c15565b6102da610345366004612048565b61078a565b6102da610358366004612094565b6107eb565b61032a61036b3660046121ac565b610823565b61032a610878565b6102da610386366004612094565b61087d565b6102da6103993660046122e2565b610898565b61032a6103ac3660046122b2565b610992565b6102926109ed565b6102926103c73660046122b2565b6109fc565b61032a6103da3660046122b2565b610a31565b61032a6103ed366004612048565b610a43565b6102da610a87565b610292610ad2565b610415610410366004612048565b610ae1565b60405161028191906123f4565b610292610bc2565b6102a7610bd1565b6102da610440366004612048565b610be0565b6102da610453366004612048565b610c41565b6102da610466366004612172565b610ca2565b6102da6104793660046120cf565b610d70565b61027461048c3660046122b2565b610da9565b6102a761049f3660046122b2565b610dbe565b61032a6104b23660046122b2565b610ec8565b6102746104c5366004612062565b610eda565b6102da6104d83660046122b2565b610f08565b6102da6104eb366004612048565b611038565b61032a6110a9565b60006001600160e01b031982167f780e9d630000000000000000000000000000000000000000000000000000000014806105365750610536826110af565b90505b919050565b601a546001600160a01b031681565b60606001805461055c90612e22565b80601f016020809104026020016040519081016040528092919081815260200182805461058890612e22565b80156105d55780601f106105aa576101008083540402835291602001916105d5565b820191906000526020600020905b8154815290600101906020018083116105b857829003601f168201915b5050505050905090565b60006105ea82611121565b61060f5760405162461bcd60e51b8152600401610606906128f8565b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610636826109fc565b9050806001600160a01b0316836001600160a01b0316141561066a5760405162461bcd60e51b815260040161060690612afe565b806001600160a01b031661067c61113e565b6001600160a01b031614806106985750610698816104c561113e565b6106b45760405162461bcd60e51b81526004016106069061274f565b6106be8383611142565b505050565b6019546001600160a01b031633146106ed5760405162461bcd60e51b81526004016106069061248d565b60006106f7610784565b9050601854811061071a5760405162461bcd60e51b815260040161060690612a90565b610726848285856111b0565b50505050565b600b602052816000526040600020818154811061074857600080fd5b9060005260206000209060209182820401919006915091509054906101000a900460ff1681565b601c6020526000908152604090205460ff1681565b60095490565b61079261113e565b6001600160a01b03166107a3610bc2565b6001600160a01b0316146107c95760405162461bcd60e51b815260040161060690612944565b601b80546001600160a01b0319166001600160a01b0392909216919091179055565b6107fc6107f661113e565b826111d9565b6108185760405162461bcd60e51b815260040161060690612b5b565b6106be83838361125e565b600061082e83610a43565b821061084c5760405162461bcd60e51b8152600401610606906124ea565b506001600160a01b03821660009081526007602090815260408083208484529091529020545b92915050565b600581565b6106be83838360405180602001604052806000815250610d70565b6108a061113e565b6001600160a01b03166108b1610bc2565b6001600160a01b0316146108d75760405162461bcd60e51b815260040161060690612944565b600582106108f75760405162461bcd60e51b815260040161060690612638565b6000828152601d602052604090205460ff16156109265760405162461bcd60e51b815260040161060690612456565b6000610930610784565b905060008161093f848661138b565b6109499190612e72565b90506000610956826109fc565b6000848152601e60209081526040808320899055888352601d9091529020805460ff19166001179055905061098b81846113c3565b5050505050565b600061099c610784565b82106109ba5760405162461bcd60e51b815260040161060690612bb8565b600982815481106109db57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b601b546001600160a01b031681565b6000818152600360205260408120546001600160a01b0316806105365760405162461bcd60e51b815260040161060690612809565b601f6020526000908152604090205481565b60006001600160a01b038216610a6b5760405162461bcd60e51b8152600401610606906127ac565b506001600160a01b031660009081526004602052604090205490565b610a8f61113e565b6001600160a01b0316610aa0610bc2565b6001600160a01b031614610ac65760405162461bcd60e51b815260040161060690612944565b610ad060006113e1565b565b6019546001600160a01b031681565b60606000610aee83610a43565b905080610b0b575050604080516000815260208101909152610539565b60008167ffffffffffffffff811115610b3457634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610b5d578160200160208202803683370190505b50905060005b82811015610bb257610b758582610823565b828281518110610b9557634e487b7160e01b600052603260045260246000fd5b602090810291909101015280610baa81612e57565b915050610b63565b5091506105399050565b50919050565b6000546001600160a01b031690565b60606002805461055c90612e22565b610be861113e565b6001600160a01b0316610bf9610bc2565b6001600160a01b031614610c1f5760405162461bcd60e51b815260040161060690612944565b601980546001600160a01b0319166001600160a01b0392909216919091179055565b610c4961113e565b6001600160a01b0316610c5a610bc2565b6001600160a01b031614610c805760405162461bcd60e51b815260040161060690612944565b601a80546001600160a01b0319166001600160a01b0392909216919091179055565b610caa61113e565b6001600160a01b0316826001600160a01b03161415610cdb5760405162461bcd60e51b8152600401610606906126cc565b8060066000610ce861113e565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610d2c61113e565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610d649190612438565b60405180910390a35050565b610d81610d7b61113e565b836111d9565b610d9d5760405162461bcd60e51b815260040161060690612b5b565b61072684848484611431565b601d6020526000908152604090205460ff1681565b6060610dc982611121565b610de55760405162461bcd60e51b815260040161060690612a33565b601a546001600160a01b0316610e0d5760405162461bcd60e51b815260040161060690612979565b601a546000838152601e6020908152604080832054601f909252918290205491517f0d66d65b0000000000000000000000000000000000000000000000000000000081526001600160a01b0390931692630d66d65b92610e74928792909190600401612c1e565b60006040518083038186803b158015610e8c57600080fd5b505afa158015610ea0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610536919081019061223f565b601e6020526000908152604090205481565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b601b546001600160a01b0316610f305760405162461bcd60e51b815260040161060690612ac7565b610f39816109fc565b6001600160a01b0316336001600160a01b031614610f695760405162461bcd60e51b815260040161060690612866565b601b546000828152601e6020908152604080832054601f9092528083205490517f9b1bb07400000000000000000000000000000000000000000000000000000000815292936001600160a01b031692639b1bb07492610fd0923392889291906004016123ce565b602060405180830381600087803b158015610fea57600080fd5b505af1158015610ffe573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061102291906122ca565b6000928352601f60205260409092209190915550565b61104061113e565b6001600160a01b0316611051610bc2565b6001600160a01b0316146110775760405162461bcd60e51b815260040161060690612944565b6001600160a01b03811661109d5760405162461bcd60e51b8152600401610606906125a4565b6110a6816113e1565b50565b60185481565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061111257506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610536575061053682611464565b6000908152600360205260409020546001600160a01b0316151590565b3390565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611177826109fc565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006111bc8383611496565b6000858152601e60205260409020819055905061098b85856113c3565b60006111e482611121565b6112005760405162461bcd60e51b815260040161060690612703565b600061120b836109fc565b9050806001600160a01b0316846001600160a01b031614806112465750836001600160a01b031661123b846105df565b6001600160a01b0316145b8061125657506112568185610eda565b949350505050565b826001600160a01b0316611271826109fc565b6001600160a01b0316146112975760405162461bcd60e51b8152600401610606906129d6565b6001600160a01b0382166112bd5760405162461bcd60e51b81526004016106069061266f565b6112c88383836114fd565b6112d3600082611142565b6001600160a01b03831660009081526004602052604081208054600192906112fc908490612ddf565b90915550506001600160a01b038216600090815260046020526040812080546001929061132a908490612c94565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000423384846040516020016113a49493929190612351565b60408051601f1981840301815291905280516020909101209392505050565b6113dd828260405180602001604052806000815250611586565b5050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61143c84848461125e565b611448848484846115b9565b6107265760405162461bcd60e51b815260040161060690612547565b6001600160e01b031981167f01ffc9a70000000000000000000000000000000000000000000000000000000014919050565b6000805b60006114af856114aa8487612c94565b6116ed565b6000818152601c602052604090205490915060ff166114ea576000818152601c60205260409020805460ff1916600117905591506108729050565b816114f481612e57565b9250505061149a565b6115088383836106be565b6001600160a01b0383166115245761151f816117a8565b611547565b816001600160a01b0316836001600160a01b0316146115475761154783826117ec565b6001600160a01b0382166115635761155e81611889565b6106be565b826001600160a01b0316826001600160a01b0316146106be576106be8282611962565b61159083836119a6565b61159d60008484846115b9565b6106be5760405162461bcd60e51b815260040161060690612547565b60006115cd846001600160a01b0316611a85565b156116e257836001600160a01b031663150b7a026115e961113e565b8786866040518563ffffffff1660e01b815260040161160b9493929190612392565b602060405180830381600087803b15801561162557600080fd5b505af1925050508015611655575060408051601f3d908101601f1916820190925261165291810190612223565b60015b6116af573d808015611683576040519150601f19603f3d011682016040523d82523d6000602084013e611688565b606091505b5080516116a75760405162461bcd60e51b815260040161060690612547565b805181602001fd5b6001600160e01b0319167f150b7a0200000000000000000000000000000000000000000000000000000000149050611256565b506001949350505050565b6000806116fa8484611a8b565b9050600061170a600b6002612dc0565b611715906001612c94565b61172090600a612cf2565b905060005b600b81101561179f5761173981600b612ddf565b611744906002612dc0565b61174f90600a612cf2565b8382600b811061176f57634e487b7160e01b600052603260045260246000fd5b602002015160ff166117819190612dc0565b61178b9083612c94565b91508061179781612e57565b915050611725565b50949350505050565b600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b600060016117f984610a43565b6118039190612ddf565b600083815260086020526040902054909150808214611856576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b60095460009061189b90600190612ddf565b6000838152600a6020526040812054600980549394509092849081106118d157634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806009838154811061190057634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600a9091526040808220849055858252812055600980548061194657634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061196d83610a43565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b6001600160a01b0382166119cc5760405162461bcd60e51b8152600401610606906128c3565b6119d581611121565b156119f25760405162461bcd60e51b815260040161060690612601565b6119fe600083836114fd565b6001600160a01b0382166000908152600460205260408120805460019290611a27908490612c94565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b3b151590565b611a93612012565b60006065611aa1858561138b565b611aab9190612e72565b9050605f811115611ad257611aca84611ac5856001612c94565b611b03565b915050610872565b6050811115611aef57611aca84611aea856002612c94565b611bfc565b611aca84611afe856003612c94565b611d90565b611b0b612012565b60006065611b19858561138b565b611b239190612e72565b90506000611b3d85611b36866001612c94565b6002611dc6565b90506000611b4c85600d612c94565b905060638310611b60575091506108729050565b606383108015611b71575060328310155b15611ba257611b8c600787611b87846002612c94565b611ed9565b8260075b60ff909216602092909202015261179f565b603283108015611bb35750600a8310155b15611bd157611bc9600887611b87846003612c94565b826008611b90565b611be2600687611b87846004612c94565b8260065b60ff909216602092909202015250949350505050565b611c04612012565b60006065611c12858561138b565b611c1c9190612e72565b90506000611c3685611c2f866001612c94565b6001611dc6565b90506000611c4585600d612c94565b905060638310611c59575091506108729050565b606383108015611c6a575060368310155b15611cbb57611c80600787611b87846002612c94565b60ff1660e0830152611c99600987611b87846003612c94565b60ff16610120830152611cb3600a87611b87846004612c94565b82600a611b90565b603683108015611ccc575060208310155b15611d0357611ce2600787611b87846002612c94565b60ff1660e0830152611cfb600987611b87846003612c94565b826009611b90565b602083108015611d145750600a8310155b15611d4457611d2a600887611b87846005612c94565b60ff16610100830152611cfb600987611b87846006612c94565b611d55600687611b87846007612c94565b60ff1660c0830152611d6e600987611b87846008612c94565b60ff16610120830152611d88600a87611b87846009612c94565b82600a611be6565b611d98612012565b60006065611da6858561138b565b611db09190612e72565b90506000611c3685611dc3866001612c94565b60005b611dce612012565b611dd6612012565b60ff831680825260021415611e5157611df5600186611b878783612c94565b60ff166020820152611e0d600286611b878783612c94565b60ff16604082015260086060820152611e2c600486611b878783612c94565b60ff166080820152611e44600586611b878783612c94565b60ff1660a0820152611ecf565b611e62600186611b87876006612c94565b60ff166020820152611e7b600286611b87876007612c94565b60ff166040820152611e94600386611b87876008612c94565b60ff166060820152611ead600486611b87876009612c94565b60ff166080820152611ec6600586611b8787600a612c94565b60ff1660a08201525b90505b9392505050565b600080611efd8460ff8716611eee8683612c94565b611ef89190612c94565b61138b565b90506000611f0c606583612e72565b60ff87166000908152600b6020908152604080832080548251818502810185019093528083529495509293909291830182828015611f8757602002820191906000526020600020906000905b825461010083900a900460ff16815260206001928301818104948501949093039092029101808411611f585790505b509394508693505050505b8151611f9e9085612c94565b811015612006576000825182611fb49190612e72565b905083838281518110611fd757634e487b7160e01b600052603260045260246000fd5b602002602001015160ff1611611ff3579450611ed29350505050565b5080611ffe81612e57565b915050611f92565b50919695505050505050565b604051806101600160405280600b906020820280368337509192915050565b80356001600160a01b038116811461053957600080fd5b600060208284031215612059578081fd5b611ed282612031565b60008060408385031215612074578081fd5b61207d83612031565b915061208b60208401612031565b90509250929050565b6000806000606084860312156120a8578081fd5b6120b184612031565b92506120bf60208501612031565b9150604084013590509250925092565b600080600080608085870312156120e4578081fd5b6120ed85612031565b93506120fb60208601612031565b925060408501359150606085013567ffffffffffffffff81111561211d578182fd5b8501601f8101871361212d578182fd5b803561214061213b82612c6c565b612c42565b818152886020838501011115612154578384fd5b81602084016020830137908101602001929092525092959194509250565b60008060408385031215612184578182fd5b61218d83612031565b9150602083013580151581146121a1578182fd5b809150509250929050565b600080604083850312156121be578182fd5b6121c783612031565b946020939093013593505050565b6000806000606084860312156121e9578283fd5b6121f284612031565b95602085013595506040909401359392505050565b600060208284031215612218578081fd5b8135611ed281612ebe565b600060208284031215612234578081fd5b8151611ed281612ebe565b600060208284031215612250578081fd5b815167ffffffffffffffff811115612266578182fd5b8201601f81018413612276578182fd5b805161228461213b82612c6c565b818152856020838501011115612298578384fd5b6122a9826020830160208601612df6565b95945050505050565b6000602082840312156122c3578081fd5b5035919050565b6000602082840312156122db578081fd5b5051919050565b600080604083850312156122f4578182fd5b50508035926020909101359150565b60008060408385031215612315578182fd5b823560ff811681146121c7578283fd5b6000815180845261233d816020860160208601612df6565b601f01601f19169290920160200192915050565b93845260609290921b6bffffffffffffffffffffffff191660208401526034830152605482015260740190565b6001600160a01b0391909116815260200190565b60006001600160a01b038087168352808616602084015250836040830152608060608301526123c46080830184612325565b9695505050505050565b6001600160a01b0394909416845260208401929092526040830152606082015260800190565b6020808252825182820181905260009190848201906040850190845b8181101561242c57835183529284019291840191600101612410565b50909695505050505050565b901515815260200190565b600060208252611ed26020830184612325565b6020808252600e908201527f416c7265616479206d696e746564000000000000000000000000000000000000604082015260600190565b60208082526037908201527f57656c6c2c207468657265206973206120726561736f6e206f6e6c792073616c60408201527f6520636f6e74726163742063616e20646f20746869732e000000000000000000606082015260800190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201527f74206f6620626f756e6473000000000000000000000000000000000000000000606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e7465720000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b6020808252600d908201527f496e76616c696420696e64657800000000000000000000000000000000000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460408201527f7265737300000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560408201527f726f206164647265737300000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606082015260800190565b60208082526023908201527f596f75206e65656420746f206f776e2074686520746f6b656e20746f2075706460408201527f6174650000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526021908201527f496e76616c6964206d657461646174612070726f76696465722061646472657360408201527f7300000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606082015260800190565b6020808252600d908201527f48697420746865206c696d697400000000000000000000000000000000000000604082015260600190565b60208082526017908201527f496e76616c696420757064617465722061646472657373000000000000000000604082015260600190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560408201527f7200000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201527f7574206f6620626f756e64730000000000000000000000000000000000000000606082015260800190565b90815260200190565b9283526020830191909152604082015260600190565b60ff91909116815260200190565b60405181810167ffffffffffffffff81118282101715612c6457612c64612ea8565b604052919050565b600067ffffffffffffffff821115612c8657612c86612ea8565b50601f01601f191660200190565b60008219821115612ca757612ca7612e92565b500190565b80825b6001808611612cbe5750612ce9565b818704821115612cd057612cd0612e92565b80861615612cdd57918102915b9490941c938002612caf565b94509492505050565b6000611ed26000198484600082612d0b57506001611ed2565b81612d1857506000611ed2565b8160018114612d2e5760028114612d3857612d65565b6001915050611ed2565b60ff841115612d4957612d49612e92565b6001841b915084821115612d5f57612d5f612e92565b50611ed2565b5060208310610133831016604e8410600b8410161715612d98575081810a83811115612d9357612d93612e92565b611ed2565b612da58484846001612cac565b808604821115612db757612db7612e92565b02949350505050565b6000816000190483118215151615612dda57612dda612e92565b500290565b600082821015612df157612df1612e92565b500390565b60005b83811015612e11578181015183820152602001612df9565b838111156107265750506000910152565b600281046001821680612e3657607f821691505b60208210811415610bbc57634e487b7160e01b600052602260045260246000fd5b6000600019821415612e6b57612e6b612e92565b5060010190565b600082612e8d57634e487b7160e01b81526012600452602481fd5b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146110a657600080fdfea2646970667358221220dd8e29acbba718c6c5e41023d9a90541baffce4732a5f151b24841b8accfcdd464736f6c63430008000033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000001400
-----Decoded View---------------
Arg [0] : _maxPixels (uint256): 5120
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000001400
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.