ERC-721
Overview
Max Total Supply
256 GRNDS
Holders
100
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 GRNDSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
JustBackgrounds
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.2; /// @title JustBackgrounds /// @author jpegmint.xyz import "@openzeppelin/contracts/access/Ownable.sol"; import "@jpegmint/contracts/collectibles/ERC721PresetCollectible.sol"; ///////////////////////////////////////////////////////////////////////////////// // __ __ ___ __ __ // // __ / /_ _____ / /_ / _ )___ _____/ /_____ ________ __ _____ ___/ /__ // // / // / // (_-</ __/ / _ / _ `/ __/ '_/ _ `/ __/ _ \/ // / _ \/ _ (_-< // // \___/\_,_/___/\__/ /____/\_,_/\__/_/\_\\_, /_/ \___/\_,_/_//_/\_,_/___/ // // /___/ // ///////////////////////////////////////////////////////////////////////////////// contract JustBackgrounds is ERC721PresetCollectible, Ownable { using Strings for uint256; /// Structs /// struct ColorTraits { string tokenId; string hexCode; string name; string displayName; string family; string source; string brightness; string special; } /// Constants /// bytes16 private constant _HEX_SYMBOLS = "0123456789ABCDEF"; bytes private constant _COLOR_NAMES = bytes("AcaciaAccedeAccessAceticAcidicAddictAdobesAffectAlice BlueAmberAmethystAntique WhiteAquaAquamarineAshAssessAssetsAssistAttestAtticsAzureBabiesBaffedBasicsBeadedBeastsBeddedBeefedBeigeBidetsBirchBisqueBlackBlanched AlmondBlueBlue VioletBoastsBobbedBobcatBodiesBoobieBossesBrassBronzeBrownBurly WoodCaddieCadet BlueCeasedCedarChartreuseCherryChocolateCicadaCoffeeCootieCopperCoralCornflower BlueCornsilkCrimsonCyanDabbedDaffedDark BlueDark CyanDark GoldenrodDark GrayDark GreenDark KhakiDark MagentaDark Olive GreenDark OrangeDark OrchidDark RedDark SalmonDark Sea GreenDark Slate BlueDark Slate GrayDark TurquoiseDark VioletDebaseDecadeDecideDeededDeep PinkDeep Sky BlueDefaceDefeatDefectDetectDetestDiamondDibbedDim GrayDiodesDissedDodger BlueDoodadDottedEddiesEffaceEffectEmeraldEstateFacadeFacetsFasciaFastedFibbedFiestaFirFire BrickFittedFloral WhiteFootedForest GreenFuchsiaGainsboroGhost WhiteGoldGoldenrodGrayGreenGreen YellowHoney DewHot PinkIndian RedIndigoIvoryJadeKhakiLavenderLavender BlushLawn GreenLemon ChiffonLight BlueLight CoralLight CyanLight Goldenrod YellowLight GrayLight GreenLight PinkLight SalmonLight Sea GreenLight Sky BlueLight Slate GrayLight Steel BlueLight YellowLimeLime GreenLinenMagentaMahoganyMapleMaroonMedium AquamarineMedium BlueMedium OrchidMedium PurpleMedium Sea GreenMedium Slate BlueMedium Spring GreenMedium TurquoiseMedium Violet RedMidnight BlueMint CreamMisty RoseMoccasinNavajo WhiteNavyOakOdessaOfficeOld LaceOliveOlive DrabOrangeOrange RedOrchidPale GoldenrodPale GreenPale TurquoisePale Violet RedPalladiumPapaya WhipPatinaPeach PuffPearlPeruPinePinkPlatinumPlumPowder BluePurplePyriteQuartzRebecca PurpleRedRedwoodRose GoldRose QuartzRosewoodRosy BrownRoyal BlueRubySaddle BrownSadistSafestSalmonSandy BrownSapphireSassedScoffsSea GreenSea ShellSeabedSecedeSeededSiennaSiestaSilverSky BlueSlate BlueSlate GraySnowSobbedSpring GreenStaticSteel BlueTabbedTacticTanTeakTealTeasedTeasesTestedThistleTictacTidbitToastsToffeeTomatoTootedTransparentTransparent?TurquoiseVioletWalnutWheatWhiteWhite SmokeYellowYellow Green"); /// Variables /// bool private _initialized; bytes8[] private _colorMetadata; /// Mappings /// mapping(uint256 => bytes8) private _tokenToColorIndex; //================================================================================ // Constructor & Initialization //================================================================================ /** * @dev Constructor. Collectible preset handles most setup. */ constructor() ERC721PresetCollectible("JustBackgrounds", "GRNDS", 256, 0.01 ether, 5, 10) {} /** * @dev Stores metadata for each token and marks as initialized. */ function initializeMetadata(bytes8[] memory colorMetadata) external { require(!_initialized, "GRNDS: Metadata already initialized"); require(colorMetadata.length == _tokenMaxSupply, "GRNDS: Not enough metadata provided"); _colorMetadata = colorMetadata; _initialized = true; } //================================================================================ // Access Control Wrappers //================================================================================ function startSale() external override onlyOwner { require(_initialized, "GRNDS: Metadata not initialized"); _unpause(); } function pauseSale() external override onlyOwner { _pause(); } function reserveCollectibles() external onlyOwner { require(_initialized, "GRNDS: Metadata not initialized"); _reserveCollectibles(); } function withdraw() external override onlyOwner { _withdraw(); } //================================================================================ // Minting Functions //================================================================================ /** * @dev Select random color, store, and remove from unused in after-mint hook. */ function _afterTokenMint(address, uint256 tokenId) internal override { _tokenToColorIndex[tokenId] = _consumeUnusedColor(tokenId); } /** * @dev Selects random color from available colors. */ function _consumeUnusedColor(uint256 tokenId) private returns (bytes8) { uint256 index = _reserved ? _generateRandomNum(tokenId) % _colorMetadata.length : tokenId - 1; bytes8 color = _colorMetadata[index]; _colorMetadata[index] = _colorMetadata[_colorMetadata.length - 1]; _colorMetadata.pop(); return color; } /** * @dev Generates pseudorandom number. */ function _generateRandomNum(uint256 seed) private view returns (uint256) { return uint256(keccak256(abi.encodePacked(msg.sender, block.timestamp, seed))); } //================================================================================ // Metadata Functions //================================================================================ /** * @dev On-chain, dynamic generation of Background metadata and SVG. */ function tokenURI(uint256 tokenId) public view override returns (string memory) { require(_exists(tokenId), "GRNDS: URI query for nonexistent token"); ColorTraits memory traits = _getColorTraits(tokenId); bytes memory byteString; byteString = abi.encodePacked(byteString, 'data:application/json;utf8,{'); byteString = abi.encodePacked(byteString, '"name": "', traits.displayName, '",'); byteString = abi.encodePacked(byteString, '"description": "', _generateDescriptionFromTraits(traits), '",'); byteString = abi.encodePacked(byteString, '"created_by": "jpegmint.xyz",'); byteString = abi.encodePacked(byteString, '"external_url": "https://www.justbackgrounds.xyz/",'); byteString = abi.encodePacked(byteString, '"image": "data:image/svg+xml;utf8,' ,_generateSvgFromTraits(traits), '",'); byteString = abi.encodePacked(byteString, '"attributes":', _generateAttributesFromTraits(traits)); byteString = abi.encodePacked(byteString, '}'); return string(byteString); } /** * @dev Generates Markdown formatted description string. */ function _generateDescriptionFromTraits(ColorTraits memory traits) private pure returns (bytes memory description) { description = abi.encodePacked( '**Just Backgrounds** (b. 2021)\\n\\n' ,traits.displayName, '\\n\\n' ,'*Hand crafted SVG, ', _checkIfMatch(traits.special, 'Meme') ? '520 x 520' : '1080 x 1080', ' pixels*' ); return description; } /** * @dev Generates SVGs based on traits. */ function _generateSvgFromTraits(ColorTraits memory traits) private pure returns (bytes memory svg) { if (_checkIfMatch(traits.special, 'Meme')) { svg = abi.encodePacked(svg, "<svg xmlns='http://www.w3.org/2000/svg' width='520' height='520'>"); svg = abi.encodePacked(svg ,"<defs><pattern id='grid' width='20' height='20' patternUnits='userSpaceOnUse'>" ,"<rect fill='black' x='0' y='0' width='10' height='10' opacity='0.1'/>" ,"<rect fill='white' x='10' y='0' width='10' height='10'/>" ,"<rect fill='black' x='10' y='10' width='10' height='10' opacity='0.1'/>" ,"<rect fill='white' x='0' y='10' width='10' height='10'/>" ,"</pattern></defs>" ,"<rect fill='url(#grid)' x='0' y='0' width='100%' height='100%'/>" ); } else { svg = abi.encodePacked(svg, "<svg xmlns='http://www.w3.org/2000/svg' width='1080' height='1080'>"); svg = abi.encodePacked(svg ,"<rect width='100%' height='100%' fill='#", traits.hexCode, "'" ,_checkIfMatch(traits.special, 'Transparent') ? " opacity='0'" : "" ,"/>" ); } return abi.encodePacked(svg, '</svg>'); } /** * @dev Generates OpenSea style JSON attributes array from on traits. */ function _generateAttributesFromTraits(ColorTraits memory traits) private view returns (bytes memory attributes) { attributes = abi.encodePacked('['); attributes = abi.encodePacked(attributes,'{"trait_type": "Family", "value": "', traits.family, '"},'); attributes = abi.encodePacked(attributes,'{"trait_type": "Source", "value": "', traits.source, '"},'); attributes = abi.encodePacked(attributes,'{"trait_type": "Brightness", "value": "', traits.brightness, '"},'); if (!_checkIfMatch(traits.special, 'None')) { attributes = abi.encodePacked(attributes,'{"trait_type": "Special", "value": "', traits.special, '"},'); } attributes = abi.encodePacked(attributes ,'{"trait_type": "Edition", "display_type": "number", "value": ', traits.tokenId , ', "max_value": ', _tokenMaxSupply.toString(), '}' ); return abi.encodePacked(attributes, ']'); } function _getColorTraits(uint256 tokenId) private view returns (ColorTraits memory) { bytes8 colorBytes = _tokenToColorIndex[tokenId]; ColorTraits memory traits = ColorTraits( tokenId.toString(), _extractColorHexCode(colorBytes), _extractColorName(colorBytes), '', _extractColorFamily(colorBytes), _extractColorSource(colorBytes), _extractColorBrightness(colorBytes), _extractColorSpecial(colorBytes) ); if (_checkIfMatch(traits.special, 'Transparent') || _checkIfMatch(traits.special, 'Meme')) { traits.displayName = traits.name; } else { traits.displayName = string(abi.encodePacked(traits.name, " #", traits.hexCode)); } return traits; } function _extractColorHexCode(bytes8 colorBytes) private pure returns (string memory) { uint8 r = uint8(colorBytes[0]); uint8 g = uint8(colorBytes[1]); uint8 b = uint8(colorBytes[2]); bytes memory buffer = new bytes(6); buffer[0] = _HEX_SYMBOLS[r >> 4 & 0xf]; buffer[1] = _HEX_SYMBOLS[r & 0xf]; buffer[2] = _HEX_SYMBOLS[g >> 4 & 0xf]; buffer[3] = _HEX_SYMBOLS[g & 0xf]; buffer[4] = _HEX_SYMBOLS[b >> 4 & 0xf]; buffer[5] = _HEX_SYMBOLS[b & 0xf]; return string(buffer); } function _extractColorName(bytes8 colorBytes) private pure returns (string memory) { uint256 nameBits = uint8(colorBytes[3]); nameBits *= 256; nameBits |= uint8(colorBytes[4]); nameBits *= 256; nameBits |= uint8(colorBytes[5]); bytes32 nameBytes = bytes32(nameBits); uint256 startIndex = uint256(nameBytes >> 5); uint256 endIndex = startIndex + (uint8(uint256(nameBytes)) & 0x1f); bytes memory result = new bytes(endIndex - startIndex); for(uint i = startIndex; i < endIndex; i++) { result[i - startIndex] = _COLOR_NAMES[i]; } return string(result); } function _extractColorFamily(bytes8 colorBytes) private pure returns (string memory trait) { bytes1 bits = colorBytes[6]; if (bits == 0x00) trait = 'Blue Colors'; else if (bits == 0x01) trait = 'Brown Colors'; else if (bits == 0x02) trait = 'Gray Colors'; else if (bits == 0x03) trait = 'Green Colors'; else if (bits == 0x04) trait = 'Orange Colors'; else if (bits == 0x05) trait = 'Pink Colors'; else if (bits == 0x06) trait = 'Purple Colors'; else if (bits == 0x07) trait = 'Red Colors'; else if (bits == 0x08) trait = 'White Colors'; else if (bits == 0x09) trait = 'Yellow Colors'; } function _extractColorSource(bytes8 colorBytes) private pure returns (string memory trait) { bytes1 bits = colorBytes[7] & 0x03; if (bits == 0x00) trait = 'CSS Color'; else if (bits == 0x01) trait = 'HTML Basic'; else if (bits == 0x02) trait = 'HTML Extended'; else if (bits == 0x03) trait = 'Other'; } function _extractColorBrightness(bytes8 colorBytes) private pure returns (string memory trait) { bytes1 bits = (colorBytes[7] >> 2) & 0x03; if (bits == 0x00) trait = 'Dark'; else if (bits == 0x01) trait = 'Light'; else if (bits == 0x02) trait = 'Medium'; } function _extractColorSpecial(bytes8 colorBytes) private pure returns (string memory trait) { bytes1 bits = (colorBytes[7] >> 4) & 0x0F; if (bits == 0x00) trait = 'None'; else if (bits == 0x01) trait = 'Gems'; else if (bits == 0x02) trait = 'HEX Word'; else if (bits == 0x03) trait = 'Meme'; else if (bits == 0x04) trait = 'Metallic'; else if (bits == 0x05) trait = 'Real Word'; else if (bits == 0x06) trait = 'Transparent'; else if (bits == 0x07) trait = 'Twin'; else if (bits == 0x08) trait = 'Woods'; } /** * @dev Compares strings and returns whether they match. */ function _checkIfMatch(string memory a, string memory b) private pure returns (bool) { return (bytes(a).length == bytes(b).length) && keccak256(abi.encodePacked(a)) == keccak256(abi.encodePacked(b)); } }
// 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.2; /// @author jpegmint.xyz import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "./ERC721EnumerableCollectible.sol"; abstract contract ERC721PresetCollectible is ERC721, ERC721EnumerableCollectible { /// Variables /// bool internal _paused; bool internal _reserved; uint256 internal _tokenMaxSupply; uint256 internal _tokenPrice; uint256 internal _tokenMaxPerTxn; uint256 internal _tokenMaxReserved; /// Events /// event SalePaused(address account); event SaleUnpaused(address account); //================================================================================ // Constructor //================================================================================ /** * @dev Starts paused and initializes metadata. */ constructor( string memory name, string memory symbol, uint256 tokenMaxSupply, uint256 tokenPrice, uint256 tokenMaxPerTxn, uint256 tokenMaxReserved ) ERC721(name, symbol) { _paused = true; _tokenMaxSupply = tokenMaxSupply; _tokenPrice = tokenPrice; _tokenMaxPerTxn = tokenMaxPerTxn; _tokenMaxReserved = tokenMaxReserved; } //================================================================================ // Pausable Functions //================================================================================ function isPaused() public view virtual returns (bool) { return _paused; } function startSale() external virtual; function pauseSale() external virtual; function _pause() internal virtual { require(!isPaused(), "Collectible: Sale is already paused"); _paused = true; emit SalePaused(msg.sender); } function _unpause() internal virtual { require(isPaused(), "Collectible: Sale is already started"); _paused = false; emit SaleUnpaused(msg.sender); } //================================================================================ // Minting Functions //================================================================================ function mintCollectibles(uint256 howMany) public virtual payable { require(!_paused, "Collectible: Sale is paused"); require(availableSupply() > 0, "Collectible: Contract is sold out"); require(howMany <= _tokenMaxPerTxn, "Collectible: Qty exceed max per txn"); require(availableSupply() >= howMany, "Collectible: Qty exceeds max supply"); require(msg.value >= howMany * _tokenPrice, "Collectible: Not enough ether sent"); for (uint256 i = 0; i < howMany; i++) { _mintCollectible(msg.sender); } } function _reserveCollectibles() internal virtual { require(!_reserved, "Collectible: Tokens already reserved"); require(availableSupply() > 0, "Collectible: Contract is sold out"); require(availableSupply() >= _tokenMaxReserved, "Collectible: Qty exceeds available supply"); for (uint256 i = 0; i < _tokenMaxReserved; i++) { _mintCollectible(msg.sender); } _reserved = true; } function _mintCollectible(address to) internal virtual { uint256 tokenId = _generateTokenId(); _beforeTokenMint(to, tokenId); _safeMint(to, tokenId); _afterTokenMint(to, tokenId); } /** * @dev Optional pre/post minting hooks. */ function _beforeTokenMint(address to, uint256 tokenId) internal virtual {} function _afterTokenMint(address to, uint256 tokenId) internal virtual {} //================================================================================ // Withdrawal Functions //================================================================================ /** * @dev Remind parent contracts to implement withdrawal mechanism. */ function withdraw() external virtual; /** * @dev Simple withdrawal implementation. Sends balance to msg.sender. */ function _withdraw() internal { payable(msg.sender).transfer(address(this).balance); } //================================================================================ // Other Functions //================================================================================ /** * @dev Helper function to check sale status. */ function availableSupply() public view returns (uint256) { return _tokenMaxSupply - totalSupply(); } function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override(ERC721, ERC721EnumerableCollectible) { super._beforeTokenTransfer(from, to, tokenId); } function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721EnumerableCollectible) returns (bool) { return super.supportsInterface(interfaceId); } }
// 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(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before 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.2; /// @author jpegmint.xyz import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; /** * @dev Optimizes OpenZeppelin ERC721Enumerable by taking advantage of the * ordered nature of collectible tokenIds. Simple tokenId counter replaces * expensive mappings. Works only if tokens are not burnable! */ abstract contract ERC721EnumerableCollectible is ERC721, IERC721Enumerable { using Counters for Counters.Counter; Counters.Counter private _tokenIdCounter; // 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; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } //================================================================================ // Extension Functions //================================================================================ /** * @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 _tokenIdCounter.current(); } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < totalSupply(), "ERC721Enumerable: global index out of bounds"); return index + 1; } //================================================================================ // Internal Functions //================================================================================ /** * @dev TokenId generator to keep track of indexes. Starts at 1. */ function _generateTokenId() internal returns (uint256) { _tokenIdCounter.increment(); return _tokenIdCounter.current(); } /** * @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 != to && from != address(0)) { _removeTokenFromOwnerEnumeration(from, tokenId); } 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 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]; } }
// 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; /** * @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); } function _verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) private 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); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT 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); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"SalePaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"SaleUnpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"availableSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes8[]","name":"colorMetadata","type":"bytes8[]"}],"name":"initializeMetadata","outputs":[],"stateMutability":"nonpayable","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":"isPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"howMany","type":"uint256"}],"name":"mintCollectibles","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserveCollectibles","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040518060400160405280600f81526020016e4a7573744261636b67726f756e647360881b8152506040518060400160405280600581526020016447524e445360d81b815250610100662386f26fc100006005600a858581600090805190602001906200008192919062000126565b5080516200009790600190602084019062000126565b50506009805460ff1916600117905550600a93909355600b91909155600c55600d5550620000ce9050620000c83390565b620000d4565b62000209565b600e80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200013490620001cc565b90600052602060002090601f016020900481019282620001585760008555620001a3565b82601f106200017357805160ff1916838001178555620001a3565b82800160010185558215620001a3579182015b82811115620001a357825182559160200191906001019062000186565b50620001b1929150620001b5565b5090565b5b80821115620001b15760008155600101620001b6565b600181811c90821680620001e157607f821691505b602082108114156200020357634e487b7160e01b600052602260045260246000fd5b50919050565b6147f780620002196000396000f3fe60806040526004361061019c5760003560e01c806355367ba9116100ec578063a22cb4651161008a578063b88d4fde11610064578063b88d4fde14610451578063c87b56dd14610471578063e985e9c514610491578063f2fde38b146104da57600080fd5b8063a22cb46514610404578063b187bd2614610424578063b66a0e5d1461043c57600080fd5b8063715018a6116100c6578063715018a6146103a75780637ecc2b56146103bc5780638da5cb5b146103d157806395d89b41146103ef57600080fd5b806355367ba9146103525780636352211e1461036757806370a082311461038757600080fd5b806323b872dd116101595780633ccfd60b116101335780633ccfd60b146102dd57806342842e0e146102f257806345db698c146103125780634f6ccce71461033257600080fd5b806323b872dd146102885780632d74e9eb146102a85780632f745c59146102bd57600080fd5b806301ffc9a7146101a157806306fdde03146101d6578063081812fc146101f8578063095ea7b314610230578063178a85691461025257806318160ddd14610265575b600080fd5b3480156101ad57600080fd5b506101c16101bc366004613265565b6104fa565b60405190151581526020015b60405180910390f35b3480156101e257600080fd5b506101eb61050b565b6040516101cd9190613d09565b34801561020457600080fd5b5061021861021336600461329d565b61059d565b6040516001600160a01b0390911681526020016101cd565b34801561023c57600080fd5b5061025061024b36600461317c565b610637565b005b61025061026036600461329d565b61074d565b34801561027157600080fd5b5061027a610919565b6040519081526020016101cd565b34801561029457600080fd5b506102506102a336600461304f565b610929565b3480156102b457600080fd5b5061025061095a565b3480156102c957600080fd5b5061027a6102d836600461317c565b6109e7565b3480156102e957600080fd5b50610250610a7d565b3480156102fe57600080fd5b5061025061030d36600461304f565b610aaf565b34801561031e57600080fd5b5061025061032d3660046131a5565b610aca565b34801561033e57600080fd5b5061027a61034d36600461329d565b610bb8565b34801561035e57600080fd5b50610250610c30565b34801561037357600080fd5b5061021861038236600461329d565b610c62565b34801561039357600080fd5b5061027a6103a2366004613003565b610cd9565b3480156103b357600080fd5b50610250610d60565b3480156103c857600080fd5b5061027a610d94565b3480156103dd57600080fd5b50600e546001600160a01b0316610218565b3480156103fb57600080fd5b506101eb610dab565b34801561041057600080fd5b5061025061041f366004613142565b610dba565b34801561043057600080fd5b5060095460ff166101c1565b34801561044857600080fd5b50610250610e7f565b34801561045d57600080fd5b5061025061046c36600461308a565b610f0a565b34801561047d57600080fd5b506101eb61048c36600461329d565b610f42565b34801561049d57600080fd5b506101c16104ac36600461301d565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156104e657600080fd5b506102506104f5366004613003565b611102565b60006105058261119d565b92915050565b60606000805461051a90613ef4565b80601f016020809104026020016040519081016040528092919081815260200182805461054690613ef4565b80156105935780601f1061056857610100808354040283529160200191610593565b820191906000526020600020905b81548152906001019060200180831161057657829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661061b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061064282610c62565b9050806001600160a01b0316836001600160a01b031614156106b05760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610612565b336001600160a01b03821614806106cc57506106cc81336104ac565b61073e5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610612565b61074883836111c2565b505050565b60095460ff16156107a05760405162461bcd60e51b815260206004820152601b60248201527f436f6c6c65637469626c653a2053616c652069732070617573656400000000006044820152606401610612565b60006107aa610d94565b116107c75760405162461bcd60e51b815260040161061290613df4565b600c548111156108255760405162461bcd60e51b815260206004820152602360248201527f436f6c6c65637469626c653a2051747920657863656564206d617820706572206044820152623a3c3760e91b6064820152608401610612565b8061082e610d94565b10156108885760405162461bcd60e51b815260206004820152602360248201527f436f6c6c65637469626c653a205174792065786365656473206d617820737570604482015262706c7960e81b6064820152608401610612565b600b546108959082613e92565b3410156108ef5760405162461bcd60e51b815260206004820152602260248201527f436f6c6c65637469626c653a204e6f7420656e6f7567682065746865722073656044820152611b9d60f21b6064820152608401610612565b60005b818110156109155761090333611230565b8061090d81613f29565b9150506108f2565b5050565b600061092460065490565b905090565b6109333382611250565b61094f5760405162461bcd60e51b815260040161061290613da3565b610748838383611347565b600e546001600160a01b031633146109845760405162461bcd60e51b815260040161061290613d6e565b600e54600160a01b900460ff166109dd5760405162461bcd60e51b815260206004820152601f60248201527f47524e44533a204d65746164617461206e6f7420696e697469616c697a6564006044820152606401610612565b6109e56114f2565b565b60006109f283610cd9565b8210610a545760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610612565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b600e546001600160a01b03163314610aa75760405162461bcd60e51b815260040161061290613d6e565b6109e5611622565b61074883838360405180602001604052806000815250610f0a565b600e54600160a01b900460ff1615610b305760405162461bcd60e51b815260206004820152602360248201527f47524e44533a204d6574616461746120616c726561647920696e697469616c696044820152621e995960ea1b6064820152608401610612565b600a54815114610b8e5760405162461bcd60e51b815260206004820152602360248201527f47524e44533a204e6f7420656e6f756768206d657461646174612070726f766960448201526219195960ea1b6064820152608401610612565b8051610ba190600f906020840190612f1e565b5050600e805460ff60a01b1916600160a01b179055565b6000610bc2610919565b8210610c255760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610612565b610505826001613e66565b600e546001600160a01b03163314610c5a5760405162461bcd60e51b815260040161061290613d6e565b6109e561164e565b6000818152600260205260408120546001600160a01b0316806105055760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610612565b60006001600160a01b038216610d445760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610612565b506001600160a01b031660009081526003602052604090205490565b600e546001600160a01b03163314610d8a5760405162461bcd60e51b815260040161061290613d6e565b6109e560006116f0565b6000610d9e610919565b600a546109249190613eb1565b60606001805461051a90613ef4565b6001600160a01b038216331415610e135760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610612565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600e546001600160a01b03163314610ea95760405162461bcd60e51b815260040161061290613d6e565b600e54600160a01b900460ff16610f025760405162461bcd60e51b815260206004820152601f60248201527f47524e44533a204d65746164617461206e6f7420696e697469616c697a6564006044820152606401610612565b6109e5611742565b610f143383611250565b610f305760405162461bcd60e51b815260040161061290613da3565b610f3c848484846117da565b50505050565b6000818152600260205260409020546060906001600160a01b0316610fb85760405162461bcd60e51b815260206004820152602660248201527f47524e44533a2055524920717565727920666f72206e6f6e6578697374656e74604482015265103a37b5b2b760d11b6064820152608401610612565b6000610fc38361180d565b9050606080604051602001610fd89190613a62565b60405160208183030381529060405290508082606001516040516020016110009291906139ea565b60405160208183030381529060405290508061101b83611994565b60405160200161102c92919061363e565b60405160208183030381529060405290508060405160200161104e9190613b1c565b6040516020818303038152906040529050806040516020016110709190613523565b60405160208183030381529060405290508061108b83611a3c565b60405160200161109c9291906132e1565b6040516020818303038152906040529050806110b783611b83565b6040516020016110c8929190613b5d565b6040516020818303038152906040529050806040516020016110ea9190613929565b60408051601f19818403018152919052949350505050565b600e546001600160a01b0316331461112c5760405162461bcd60e51b815260040161061290613d6e565b6001600160a01b0381166111915760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610612565b61119a816116f0565b50565b60006001600160e01b0319821663780e9d6360e01b1480610505575061050582611cae565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906111f782610c62565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061123a611cfe565b90506112468282611d15565b6109158282611d2f565b6000818152600260205260408120546001600160a01b03166112c95760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610612565b60006112d483610c62565b9050806001600160a01b0316846001600160a01b0316148061130f5750836001600160a01b03166113048461059d565b6001600160a01b0316145b8061133f57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661135a82610c62565b6001600160a01b0316146113c25760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610612565b6001600160a01b0382166114245760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610612565b61142f838383611d63565b61143a6000826111c2565b6001600160a01b0383166000908152600360205260408120805460019290611463908490613eb1565b90915550506001600160a01b0382166000908152600360205260408120805460019290611491908490613e66565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600954610100900460ff16156115565760405162461bcd60e51b8152602060048201526024808201527f436f6c6c65637469626c653a20546f6b656e7320616c726561647920726573656044820152631c9d995960e21b6064820152608401610612565b6000611560610d94565b1161157d5760405162461bcd60e51b815260040161061290613df4565b600d54611588610d94565b10156115e85760405162461bcd60e51b815260206004820152602960248201527f436f6c6c65637469626c653a20517479206578636565647320617661696c61626044820152686c6520737570706c7960b81b6064820152608401610612565b60005b600d54811015611610576115fe33611230565b8061160881613f29565b9150506115eb565b506009805461ff001916610100179055565b60405133904780156108fc02916000818181858888f1935050505015801561119a573d6000803e3d6000fd5b60095460ff16156116ad5760405162461bcd60e51b815260206004820152602360248201527f436f6c6c65637469626c653a2053616c6520697320616c7265616479207061756044820152621cd95960ea1b6064820152608401610612565b6009805460ff191660011790556040513381527fd5e13ff83aeff77a13ff79d42763d4321ee52cd9176d6a6942a44abb945a39a9906020015b60405180910390a1565b600e80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60095460ff166117a05760405162461bcd60e51b8152602060048201526024808201527f436f6c6c65637469626c653a2053616c6520697320616c7265616479207374616044820152631c9d195960e21b6064820152608401610612565b6009805460ff191690556040513381527fa3b142bf6879b63da2acae6c3cba67984f0c343ef0b43e6e3f349bfe1f470cf2906020016116e6565b6117e5848484611347565b6117f184848484611d6e565b610f3c5760405162461bcd60e51b815260040161061290613d1c565b61185560405180610100016040528060608152602001606081526020016060815260200160608152602001606081526020016060815260200160608152602001606081525090565b600082815260106020526040808220548151610100810190925260c01b91908061187e86611e7b565b815260200161188c84611f95565b815260200161189a8461228b565b8152604080516020818101835260008252830152016118b8846123df565b81526020016118c684612676565b81526020016118d484612770565b81526020016118e28461281e565b81525090506119188160e001516040518060400160405280600b81526020016a151c985b9cdc185c995b9d60aa1b815250612a3a565b8061194857506119488160e00151604051806040016040528060048152602001634d656d6560e01b815250612a3a565b1561195c576040810151606082015261198d565b80604001518160200151604051602001611977929190613beb565b60408051601f1981840301815291905260608201525b9392505050565b606081606001516119c58360e00151604051806040016040528060048152602001634d656d6560e01b815250612a3a565b6119f2576040518060400160405280600b81526020016a031303830207820313038360ac1b815250611a15565b6040518060400160405280600981526020016803532302078203532360bc1b8152505b604051602001611a26929190613c28565b6040516020818303038152906040529050919050565b6060611a688260e00151604051806040016040528060048152602001634d656d6560e01b815250612a3a565b15611ab65780604051602001611a7e91906134b2565b604051602081830303815290604052905080604051602001611aa091906136f1565b6040516020818303038152906040529050611b72565b80604051602001611ac791906133c9565b6040516020818303038152906040529050808260200151611b0f8460e001516040518060400160405280600b81526020016a151c985b9cdc185c995b9d60aa1b815250612a3a565b611b285760405180602001604052806000815250611b4e565b6040518060400160405280600c81526020016b206f7061636974793d27302760a01b8152505b604051602001611b609392919061394e565b60405160208183030381529060405290505b80604051602001611a269190613ba5565b60408051605b60f81b602082015281516001818303018152602182019092526080830151611bb691839190604101613698565b6040516020818303038152906040529050808260a00151604051602001611bde929190613354565b6040516020818303038152906040529050808260c00151604051602001611c06929190613aa3565b60408051601f1981840301815282825260e085015183830190925260048352634e6f6e6560e01b60208401529250611c3d91612a3a565b611c695760e0820151604051611c5791839160200161343c565b60405160208183030381529060405290505b808260000151611c7a600a54611e7b565b604051602001611c8c93929190613580565b604051602081830303815290604052905080604051602001611a269190613a3d565b60006001600160e01b031982166380ac58cd60e01b1480611cdf57506001600160e01b03198216635b5e139f60e01b145b8061050557506301ffc9a760e01b6001600160e01b0319831614610505565b6000611d0e600680546001019055565b5060065490565b610915828260405180602001604052806000815250612a9e565b611d3881612ad1565b600091825260106020526040909120805467ffffffffffffffff191660c09290921c91909117905550565b610748838383612c93565b60006001600160a01b0384163b15611e7057604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611db2903390899088908890600401613ccc565b602060405180830381600087803b158015611dcc57600080fd5b505af1925050508015611dfc575060408051601f3d908101601f19168201909252611df991810190613281565b60015b611e56573d808015611e2a576040519150601f19603f3d011682016040523d82523d6000602084013e611e2f565b606091505b508051611e4e5760405162461bcd60e51b815260040161061290613d1c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061133f565b506001949350505050565b606081611e9f5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611ec95780611eb381613f29565b9150611ec29050600a83613e7e565b9150611ea3565b60008167ffffffffffffffff811115611ef257634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611f1c576020820181803683370190505b5090505b841561133f57611f31600183613eb1565b9150611f3e600a86613f44565b611f49906030613e66565b60f81b818381518110611f6c57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611f8e600a86613e7e565b9450611f20565b604080516006808252818301909252606091600084811a92600186901a92600287901a9291906020820181803683370190505090506f181899199a1a9b1b9c1ca0a121a222a360811b600f600486901c166010811061200457634e487b7160e01b600052603260045260246000fd5b1a60f81b8160008151811061202957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506f181899199a1a9b1b9c1ca0a121a222a360811b600f85166010811061207657634e487b7160e01b600052603260045260246000fd5b1a60f81b8160018151811061209b57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506f181899199a1a9b1b9c1ca0a121a222a360811b600f600485901c16601081106120ec57634e487b7160e01b600052603260045260246000fd5b1a60f81b8160028151811061211157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506f181899199a1a9b1b9c1ca0a121a222a360811b600f84166010811061215e57634e487b7160e01b600052603260045260246000fd5b1a60f81b8160038151811061218357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506f181899199a1a9b1b9c1ca0a121a222a360811b600f600484901c16601081106121d457634e487b7160e01b600052603260045260246000fd5b1a60f81b816004815181106121f957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506f181899199a1a9b1b9c1ca0a121a222a360811b600f83166010811061224657634e487b7160e01b600052603260045260246000fd5b1a60f81b8160058151811061226b57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535095945050505050565b6060600382901a61229e61010082613e92565b90508260041a176122b161010082613e92565b90508260051a1780600581901c60006122cd601f841683613e66565b905060006122db8383613eb1565b67ffffffffffffffff81111561230157634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561232b576020820181803683370190505b509050825b828110156123d4576040518061084001604052806108118152602001613fb16108119139818151811061237357634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b0319168261238d8684613eb1565b815181106123ab57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350806123cc81613f29565b915050612330565b509695505050505050565b6060600682901a60f81b6001600160f81b03198116612423576040518060400160405280600b81526020016a426c756520436f6c6f727360a81b8152509150612670565b600160f81b6001600160f81b031982161415612465576040518060400160405280600c81526020016b42726f776e20436f6c6f727360a01b8152509150612670565b600160f91b6001600160f81b0319821614156124a6576040518060400160405280600b81526020016a4772617920436f6c6f727360a81b8152509150612670565b600360f81b6001600160f81b0319821614156124e8576040518060400160405280600c81526020016b477265656e20436f6c6f727360a01b8152509150612670565b600160fa1b6001600160f81b03198216141561252b576040518060400160405280600d81526020016c4f72616e676520436f6c6f727360981b8152509150612670565b600560f81b6001600160f81b03198216141561256c576040518060400160405280600b81526020016a50696e6b20436f6c6f727360a81b8152509150612670565b600360f91b6001600160f81b0319821614156125af576040518060400160405280600d81526020016c507572706c6520436f6c6f727360981b8152509150612670565b600760f81b6001600160f81b0319821614156125ef576040518060400160405280600a81526020016952656420436f6c6f727360b01b8152509150612670565b600160fb1b6001600160f81b031982161415612631576040518060400160405280600c81526020016b576869746520436f6c6f727360a01b8152509150612670565b600960f81b6001600160f81b031982161415612670576040518060400160405280600d81526020016c59656c6c6f7720436f6c6f727360981b81525091505b50919050565b6060600360f81b600783901a60f81b16806126b4576040518060400160405280600981526020016821a9a99021b7b637b960b91b8152509150612670565b600160f81b6001600160f81b0319821614156126f4576040518060400160405280600a81526020016948544d4c20426173696360b01b8152509150612670565b600160f91b6001600160f81b031982161415612737576040518060400160405280600d81526020016c1215135308115e1d195b991959609a1b8152509150612670565b600360f81b6001600160f81b03198216141561267057505060408051808201909152600581526427ba3432b960d91b6020820152919050565b6060600360f81b600783901a60f61b16806127a957604051806040016040528060048152602001634461726b60e01b8152509150612670565b600160f81b6001600160f81b0319821614156127e45760405180604001604052806005815260200164131a59da1d60da1b8152509150612670565b600160f91b6001600160f81b0319821614156126705750506040805180820190915260068152654d656469756d60d01b6020820152919050565b6060600f60f81b600783901a60f41b168061285757604051806040016040528060048152602001634e6f6e6560e01b8152509150612670565b600160f81b6001600160f81b031982161415612891576040518060400160405280600481526020016347656d7360e01b8152509150612670565b600160f91b6001600160f81b0319821614156128cf57604051806040016040528060088152602001671211560815dbdc9960c21b8152509150612670565b600360f81b6001600160f81b03198216141561290957604051806040016040528060048152602001634d656d6560e01b8152509150612670565b600160fa1b6001600160f81b03198216141561294757604051806040016040528060088152602001674d6574616c6c696360c01b8152509150612670565b600560f81b6001600160f81b03198216141561298657604051806040016040528060098152602001681499585b0815dbdc9960ba1b8152509150612670565b600360f91b6001600160f81b0319821614156129c7576040518060400160405280600b81526020016a151c985b9cdc185c995b9d60aa1b8152509150612670565b600760f81b6001600160f81b031982161415612a0157604051806040016040528060048152602001632a3bb4b760e11b8152509150612670565b600160fb1b6001600160f81b031982161415612670575050604080518082019091526005815264576f6f647360d81b6020820152919050565b60008151835114801561198d575081604051602001612a599190613bcf565b6040516020818303038152906040528051906020012083604051602001612a809190613bcf565b60405160208183030381529060405280519060200120149392505050565b612aa88383612cef565b612ab56000848484611d6e565b6107485760405162461bcd60e51b815260040161061290613d1c565b6009546000908190610100900460ff16612af557612af0600184613eb1565b612b47565b600f54604080513360601b6bffffffffffffffffffffffff191660208083019190915242603483015260548083018890528351808403909101815260749092019092528051910120612b479190613f44565b90506000600f8281548110612b6c57634e487b7160e01b600052603260045260246000fd5b90600052602060002090600491828204019190066008029054906101000a900460c01b9050600f6001600f80549050612ba59190613eb1565b81548110612bc357634e487b7160e01b600052603260045260246000fd5b90600052602060002090600491828204019190066008029054906101000a900460c01b600f8381548110612c0757634e487b7160e01b600052603260045260246000fd5b90600052602060002090600491828204019190066008026101000a81548167ffffffffffffffff021916908360c01c0217905550600f805480612c5a57634e487b7160e01b600052603160045260246000fd5b600082815260209020600460001990920191820401805467ffffffffffffffff600860038516026101000a021916905590559392505050565b816001600160a01b0316836001600160a01b031614158015612cbd57506001600160a01b03831615155b15612ccc57612ccc8382612e3d565b826001600160a01b0316826001600160a01b031614610748576107488282612eda565b6001600160a01b038216612d455760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610612565b6000818152600260205260409020546001600160a01b031615612daa5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610612565b612db660008383611d63565b6001600160a01b0382166000908152600360205260408120805460019290612ddf908490613e66565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001612e4a84610cd9565b612e549190613eb1565b600083815260086020526040902054909150808214612ea7576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b6000612ee583610cd9565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b82805482825590600052602060002090600301600490048101928215612fc25791602002820160005b83821115612f8c57835183826101000a81548167ffffffffffffffff021916908360c01c02179055509260200192600801602081600701049283019260010302612f47565b8015612fc05782816101000a81549067ffffffffffffffff0219169055600801602081600701049283019260010302612f8c565b505b50612fce929150612fd2565b5090565b5b80821115612fce5760008155600101612fd3565b80356001600160a01b0381168114612ffe57600080fd5b919050565b600060208284031215613014578081fd5b61198d82612fe7565b6000806040838503121561302f578081fd5b61303883612fe7565b915061304660208401612fe7565b90509250929050565b600080600060608486031215613063578081fd5b61306c84612fe7565b925061307a60208501612fe7565b9150604084013590509250925092565b6000806000806080858703121561309f578081fd5b6130a885612fe7565b935060206130b7818701612fe7565b935060408601359250606086013567ffffffffffffffff808211156130da578384fd5b818801915088601f8301126130ed578384fd5b8135818111156130ff576130ff613f84565b613111601f8201601f19168501613e35565b91508082528984828501011115613126578485fd5b8084840185840137810190920192909252939692955090935050565b60008060408385031215613154578182fd5b61315d83612fe7565b915060208301358015158114613171578182fd5b809150509250929050565b6000806040838503121561318e578182fd5b61319783612fe7565b946020939093013593505050565b600060208083850312156131b7578182fd5b823567ffffffffffffffff808211156131ce578384fd5b818501915085601f8301126131e1578384fd5b8135818111156131f3576131f3613f84565b8060051b9150613204848301613e35565b8181528481019084860184860187018a101561321e578788fd5b8795505b8386101561325857803594506001600160c01b031985168514613243578788fd5b84835260019590950194918601918601613222565b5098975050505050505050565b600060208284031215613276578081fd5b813561198d81613f9a565b600060208284031215613292578081fd5b815161198d81613f9a565b6000602082840312156132ae578081fd5b5035919050565b600081518084526132cd816020860160208601613ec8565b601f01601f19169290920160200192915050565b600083516132f3818460208801613ec8565b80830190507f22696d616765223a2022646174613a696d6167652f7376672b786d6c3b7574668152610e0b60f21b60208201528351613339816022840160208801613ec8565b61088b60f21b60229290910191820152602401949350505050565b60008351613366818460208801613ec8565b80830190507f7b2274726169745f74797065223a2022536f75726365222c202276616c7565228152621d101160e91b602082015283516133ad816023840160208801613ec8565b62089f4b60ea1b60239290910191820152602601949350505050565b600082516133db818460208701613ec8565b7f3c73766720786d6c6e733d27687474703a2f2f7777772e77332e6f72672f32309201918252507f30302f737667272077696474683d273130383027206865696768743d2731303860208201526218139f60e91b6040820152604301919050565b6000835161344e818460208801613ec8565b80830190507f7b2274726169745f74797065223a20225370656369616c222c202276616c7565815263111d101160e11b60208201528351613496816024840160208801613ec8565b62089f4b60ea1b60249290910191820152602701949350505050565b600082516134c4818460208701613ec8565b7f3c73766720786d6c6e733d27687474703a2f2f7777772e77332e6f72672f32309201918252507f30302f737667272077696474683d2735323027206865696768743d27353230276020820152601f60f91b6040820152604101919050565b60008251613535818460208701613ec8565b7f2265787465726e616c5f75726c223a202268747470733a2f2f7777772e6a7573920191825250721d189858dad9dc9bdd5b991ccb9e1e5e8bc88b606a1b6020820152603301919050565b60008451613592818460208901613ec8565b80830190507f7b2274726169745f74797065223a202245646974696f6e222c2022646973706c81527f61795f74797065223a20226e756d626572222c202276616c7565223a20000000602082015284516135f381603d840160208901613ec8565b6e016101136b0bc2fbb30b63ab2911d1608d1b603d9290910191820152835161362381604c840160208801613ec8565b607d60f81b604c9290910191820152604d0195945050505050565b60008351613650818460208801613ec8565b6f113232b9b1b934b83a34b7b7111d101160811b908301908152835161367d816010840160208801613ec8565b61088b60f21b60109290910191820152601201949350505050565b600083516136aa818460208801613ec8565b80830190507f7b2274726169745f74797065223a202246616d696c79222c202276616c7565228152621d101160e91b602082015283516133ad816023840160208801613ec8565b60008251613703818460208701613ec8565b7f3c646566733e3c7061747465726e2069643d2767726964272077696474683d279083019081527f323027206865696768743d27323027207061747465726e556e6974733d27757360208201526d32b929b830b1b2a7b72ab9b2939f60911b60408201527f3c726563742066696c6c3d27626c61636b2720783d27302720793d2730272077604e8201527f696474683d27313027206865696768743d27313027206f7061636974793d2730606e82015264171893979f60d91b608e8201527f3c726563742066696c6c3d2777686974652720783d2731302720793d273027206093820152773bb4b23a341e93989813903432b4b3b43a1e93989813979f60411b60b38201527f3c726563742066696c6c3d27626c61636b2720783d2731302720793d2731302760cb8201527f2077696474683d27313027206865696768743d27313027206f7061636974793d60eb820152661398171893979f60c91b61010b82015261133f6138da6138bd61011284017f3c726563742066696c6c3d2777686974652720783d27302720793d27313027208152773bb4b23a341e93989813903432b4b3b43a1e93989813979f60411b602082015260380190565b701e17b830ba3a32b9371f1e17b232b3399f60791b815260110190565b7f3c726563742066696c6c3d2775726c282367726964292720783d27302720793d81527f2730272077696474683d273130302527206865696768743d2731303025272f3e602082015260400190565b6000825161393b818460208701613ec8565b607d60f81b920191825250600101919050565b60008451613960818460208901613ec8565b80830190507f3c726563742077696474683d273130302527206865696768743d2731303025278152672066696c6c3d272360c01b602082015284516139ac816028840160208901613ec8565b602760f81b6028929091019182015283516139ce816029840160208801613ec8565b61179f60f11b60299290910191820152602b0195945050505050565b600083516139fc818460208801613ec8565b68113730b6b2911d101160b91b9083019081528351613a22816009840160208801613ec8565b61088b60f21b60099290910191820152600b01949350505050565b60008251613a4f818460208701613ec8565b605d60f81b920191825250600101919050565b60008251613a74818460208701613ec8565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c7b00000000920191825250601c01919050565b60008351613ab5818460208801613ec8565b80830190507f7b2274726169745f74797065223a20224272696768746e657373222c20227661815266363ab2911d101160c91b60208201528351613b00816027840160208801613ec8565b62089f4b60ea1b60279290910191820152602a01949350505050565b60008251613b2e818460208701613ec8565b7f22637265617465645f6279223a20226a7065676d696e742e78797a222c000000920191825250601d01919050565b60008351613b6f818460208801613ec8565b6c1130ba3a3934b13aba32b9911d60991b9083019081528351613b9981600d840160208801613ec8565b01600d01949350505050565b60008251613bb7818460208701613ec8565b651e17b9bb339f60d11b920191825250600601919050565b60008251613be1818460208701613ec8565b9190910192915050565b60008351613bfd818460208801613ec8565b61202360f01b9083019081528351613c1c816002840160208801613ec8565b01600201949350505050565b7f2a2a4a757374204261636b67726f756e64732a2a2028622e2032303231295c6e8152612e3760f11b602082015260008351613c6b816022850160208801613ec8565b632e372e3760e11b602291840191820152720152430b7321031b930b33a32b21029ab23961606d1b60268201528351613cab816039840160208801613ec8565b67103834bc32b6399560c11b60399290910191820152604101949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613cff908301846132b5565b9695505050505050565b60208152600061198d60208301846132b5565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526021908201527f436f6c6c65637469626c653a20436f6e747261637420697320736f6c64206f756040820152601d60fa1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff81118282101715613e5e57613e5e613f84565b604052919050565b60008219821115613e7957613e79613f58565b500190565b600082613e8d57613e8d613f6e565b500490565b6000816000190483118215151615613eac57613eac613f58565b500290565b600082821015613ec357613ec3613f58565b500390565b60005b83811015613ee3578181015183820152602001613ecb565b83811115610f3c5750506000910152565b600181811c90821680613f0857607f821691505b6020821081141561267057634e487b7160e01b600052602260045260246000fd5b6000600019821415613f3d57613f3d613f58565b5060010190565b600082613f5357613f53613f6e565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461119a57600080fdfe41636163696141636365646541636365737341636574696341636964696341646469637441646f626573416666656374416c69636520426c7565416d626572416d657468797374416e746971756520576869746541717561417175616d6172696e65417368417373657373417373657473417373697374417474657374417474696373417a75726542616269657342616666656442617369637342656164656442656173747342656464656442656566656442656967654269646574734269726368426973717565426c61636b426c616e6368656420416c6d6f6e64426c7565426c75652056696f6c6574426f61737473426f62626564426f62636174426f64696573426f6f626965426f73736573427261737342726f6e7a6542726f776e4275726c7920576f6f64436164646965436164657420426c756543656173656443656461724368617274726575736543686572727943686f636f6c617465436963616461436f66666565436f6f746965436f70706572436f72616c436f726e666c6f77657220426c7565436f726e73696c6b4372696d736f6e4379616e4461626265644461666665644461726b20426c75654461726b204379616e4461726b20476f6c64656e726f644461726b20477261794461726b20477265656e4461726b204b68616b694461726b204d6167656e74614461726b204f6c69766520477265656e4461726b204f72616e67654461726b204f72636869644461726b205265644461726b2053616c6d6f6e4461726b2053656120477265656e4461726b20536c61746520426c75654461726b20536c61746520477261794461726b2054757271756f6973654461726b2056696f6c6574446562617365446563616465446563696465446565646564446565702050696e6b4465657020536b7920426c75654465666163654465666561744465666563744465746563744465746573744469616d6f6e6444696262656444696d204772617944696f646573446973736564446f6467657220426c7565446f6f646164446f74746564456464696573456666616365456666656374456d6572616c644573746174654661636164654661636574734661736369614661737465644669626265644669657374614669724669726520427269636b466974746564466c6f72616c205768697465466f6f746564466f7265737420477265656e467563687369614761696e73626f726f47686f7374205768697465476f6c64476f6c64656e726f6447726179477265656e477265656e2059656c6c6f77486f6e657920446577486f742050696e6b496e6469616e20526564496e6469676f49766f72794a6164654b68616b694c6176656e6465724c6176656e64657220426c7573684c61776e20477265656e4c656d6f6e2043686966666f6e4c6967687420426c75654c6967687420436f72616c4c69676874204379616e4c6967687420476f6c64656e726f642059656c6c6f774c6967687420477261794c6967687420477265656e4c696768742050696e6b4c696768742053616c6d6f6e4c696768742053656120477265656e4c6967687420536b7920426c75654c6967687420536c61746520477261794c6967687420537465656c20426c75654c696768742059656c6c6f774c696d654c696d6520477265656e4c696e656e4d6167656e74614d61686f67616e794d61706c654d61726f6f6e4d656469756d20417175616d6172696e654d656469756d20426c75654d656469756d204f72636869644d656469756d20507572706c654d656469756d2053656120477265656e4d656469756d20536c61746520426c75654d656469756d20537072696e6720477265656e4d656469756d2054757271756f6973654d656469756d2056696f6c6574205265644d69646e6967687420426c75654d696e7420437265616d4d6973747920526f73654d6f63636173696e4e6176616a6f2057686974654e6176794f616b4f64657373614f66666963654f6c64204c6163654f6c6976654f6c69766520447261624f72616e67654f72616e6765205265644f726368696450616c6520476f6c64656e726f6450616c6520477265656e50616c652054757271756f69736550616c652056696f6c65742052656450616c6c616469756d5061706179612057686970506174696e6150656163682050756666506561726c5065727550696e6550696e6b506c6174696e756d506c756d506f7764657220426c7565507572706c6550797269746551756172747a5265626563636120507572706c65526564526564776f6f64526f736520476f6c64526f73652051756172747a526f7365776f6f64526f73792042726f776e526f79616c20426c756552756279536164646c652042726f776e53616469737453616665737453616c6d6f6e53616e64792042726f776e536170706869726553617373656453636f66667353656120477265656e536561205368656c6c5365616265645365636564655365656465645369656e6e6153696573746153696c766572536b7920426c7565536c61746520426c7565536c6174652047726179536e6f77536f62626564537072696e6720477265656e537461746963537465656c20426c756554616262656454616374696354616e5465616b5465616c54656173656454656173657354657374656454686973746c65546963746163546964626974546f61737473546f66666565546f6d61746f546f6f7465645472616e73706172656e745472616e73706172656e743f54757271756f69736556696f6c657457616c6e757457686561745768697465576869746520536d6f6b6559656c6c6f7759656c6c6f7720477265656ea2646970667358221220608eb5ec42ffc49582ae2964565943f24bc5ad40902ea2f3d4c038130e31b8d764736f6c63430008040033
Deployed Bytecode
0x60806040526004361061019c5760003560e01c806355367ba9116100ec578063a22cb4651161008a578063b88d4fde11610064578063b88d4fde14610451578063c87b56dd14610471578063e985e9c514610491578063f2fde38b146104da57600080fd5b8063a22cb46514610404578063b187bd2614610424578063b66a0e5d1461043c57600080fd5b8063715018a6116100c6578063715018a6146103a75780637ecc2b56146103bc5780638da5cb5b146103d157806395d89b41146103ef57600080fd5b806355367ba9146103525780636352211e1461036757806370a082311461038757600080fd5b806323b872dd116101595780633ccfd60b116101335780633ccfd60b146102dd57806342842e0e146102f257806345db698c146103125780634f6ccce71461033257600080fd5b806323b872dd146102885780632d74e9eb146102a85780632f745c59146102bd57600080fd5b806301ffc9a7146101a157806306fdde03146101d6578063081812fc146101f8578063095ea7b314610230578063178a85691461025257806318160ddd14610265575b600080fd5b3480156101ad57600080fd5b506101c16101bc366004613265565b6104fa565b60405190151581526020015b60405180910390f35b3480156101e257600080fd5b506101eb61050b565b6040516101cd9190613d09565b34801561020457600080fd5b5061021861021336600461329d565b61059d565b6040516001600160a01b0390911681526020016101cd565b34801561023c57600080fd5b5061025061024b36600461317c565b610637565b005b61025061026036600461329d565b61074d565b34801561027157600080fd5b5061027a610919565b6040519081526020016101cd565b34801561029457600080fd5b506102506102a336600461304f565b610929565b3480156102b457600080fd5b5061025061095a565b3480156102c957600080fd5b5061027a6102d836600461317c565b6109e7565b3480156102e957600080fd5b50610250610a7d565b3480156102fe57600080fd5b5061025061030d36600461304f565b610aaf565b34801561031e57600080fd5b5061025061032d3660046131a5565b610aca565b34801561033e57600080fd5b5061027a61034d36600461329d565b610bb8565b34801561035e57600080fd5b50610250610c30565b34801561037357600080fd5b5061021861038236600461329d565b610c62565b34801561039357600080fd5b5061027a6103a2366004613003565b610cd9565b3480156103b357600080fd5b50610250610d60565b3480156103c857600080fd5b5061027a610d94565b3480156103dd57600080fd5b50600e546001600160a01b0316610218565b3480156103fb57600080fd5b506101eb610dab565b34801561041057600080fd5b5061025061041f366004613142565b610dba565b34801561043057600080fd5b5060095460ff166101c1565b34801561044857600080fd5b50610250610e7f565b34801561045d57600080fd5b5061025061046c36600461308a565b610f0a565b34801561047d57600080fd5b506101eb61048c36600461329d565b610f42565b34801561049d57600080fd5b506101c16104ac36600461301d565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156104e657600080fd5b506102506104f5366004613003565b611102565b60006105058261119d565b92915050565b60606000805461051a90613ef4565b80601f016020809104026020016040519081016040528092919081815260200182805461054690613ef4565b80156105935780601f1061056857610100808354040283529160200191610593565b820191906000526020600020905b81548152906001019060200180831161057657829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661061b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061064282610c62565b9050806001600160a01b0316836001600160a01b031614156106b05760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610612565b336001600160a01b03821614806106cc57506106cc81336104ac565b61073e5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610612565b61074883836111c2565b505050565b60095460ff16156107a05760405162461bcd60e51b815260206004820152601b60248201527f436f6c6c65637469626c653a2053616c652069732070617573656400000000006044820152606401610612565b60006107aa610d94565b116107c75760405162461bcd60e51b815260040161061290613df4565b600c548111156108255760405162461bcd60e51b815260206004820152602360248201527f436f6c6c65637469626c653a2051747920657863656564206d617820706572206044820152623a3c3760e91b6064820152608401610612565b8061082e610d94565b10156108885760405162461bcd60e51b815260206004820152602360248201527f436f6c6c65637469626c653a205174792065786365656473206d617820737570604482015262706c7960e81b6064820152608401610612565b600b546108959082613e92565b3410156108ef5760405162461bcd60e51b815260206004820152602260248201527f436f6c6c65637469626c653a204e6f7420656e6f7567682065746865722073656044820152611b9d60f21b6064820152608401610612565b60005b818110156109155761090333611230565b8061090d81613f29565b9150506108f2565b5050565b600061092460065490565b905090565b6109333382611250565b61094f5760405162461bcd60e51b815260040161061290613da3565b610748838383611347565b600e546001600160a01b031633146109845760405162461bcd60e51b815260040161061290613d6e565b600e54600160a01b900460ff166109dd5760405162461bcd60e51b815260206004820152601f60248201527f47524e44533a204d65746164617461206e6f7420696e697469616c697a6564006044820152606401610612565b6109e56114f2565b565b60006109f283610cd9565b8210610a545760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610612565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b600e546001600160a01b03163314610aa75760405162461bcd60e51b815260040161061290613d6e565b6109e5611622565b61074883838360405180602001604052806000815250610f0a565b600e54600160a01b900460ff1615610b305760405162461bcd60e51b815260206004820152602360248201527f47524e44533a204d6574616461746120616c726561647920696e697469616c696044820152621e995960ea1b6064820152608401610612565b600a54815114610b8e5760405162461bcd60e51b815260206004820152602360248201527f47524e44533a204e6f7420656e6f756768206d657461646174612070726f766960448201526219195960ea1b6064820152608401610612565b8051610ba190600f906020840190612f1e565b5050600e805460ff60a01b1916600160a01b179055565b6000610bc2610919565b8210610c255760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610612565b610505826001613e66565b600e546001600160a01b03163314610c5a5760405162461bcd60e51b815260040161061290613d6e565b6109e561164e565b6000818152600260205260408120546001600160a01b0316806105055760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610612565b60006001600160a01b038216610d445760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610612565b506001600160a01b031660009081526003602052604090205490565b600e546001600160a01b03163314610d8a5760405162461bcd60e51b815260040161061290613d6e565b6109e560006116f0565b6000610d9e610919565b600a546109249190613eb1565b60606001805461051a90613ef4565b6001600160a01b038216331415610e135760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610612565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600e546001600160a01b03163314610ea95760405162461bcd60e51b815260040161061290613d6e565b600e54600160a01b900460ff16610f025760405162461bcd60e51b815260206004820152601f60248201527f47524e44533a204d65746164617461206e6f7420696e697469616c697a6564006044820152606401610612565b6109e5611742565b610f143383611250565b610f305760405162461bcd60e51b815260040161061290613da3565b610f3c848484846117da565b50505050565b6000818152600260205260409020546060906001600160a01b0316610fb85760405162461bcd60e51b815260206004820152602660248201527f47524e44533a2055524920717565727920666f72206e6f6e6578697374656e74604482015265103a37b5b2b760d11b6064820152608401610612565b6000610fc38361180d565b9050606080604051602001610fd89190613a62565b60405160208183030381529060405290508082606001516040516020016110009291906139ea565b60405160208183030381529060405290508061101b83611994565b60405160200161102c92919061363e565b60405160208183030381529060405290508060405160200161104e9190613b1c565b6040516020818303038152906040529050806040516020016110709190613523565b60405160208183030381529060405290508061108b83611a3c565b60405160200161109c9291906132e1565b6040516020818303038152906040529050806110b783611b83565b6040516020016110c8929190613b5d565b6040516020818303038152906040529050806040516020016110ea9190613929565b60408051601f19818403018152919052949350505050565b600e546001600160a01b0316331461112c5760405162461bcd60e51b815260040161061290613d6e565b6001600160a01b0381166111915760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610612565b61119a816116f0565b50565b60006001600160e01b0319821663780e9d6360e01b1480610505575061050582611cae565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906111f782610c62565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061123a611cfe565b90506112468282611d15565b6109158282611d2f565b6000818152600260205260408120546001600160a01b03166112c95760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610612565b60006112d483610c62565b9050806001600160a01b0316846001600160a01b0316148061130f5750836001600160a01b03166113048461059d565b6001600160a01b0316145b8061133f57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661135a82610c62565b6001600160a01b0316146113c25760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610612565b6001600160a01b0382166114245760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610612565b61142f838383611d63565b61143a6000826111c2565b6001600160a01b0383166000908152600360205260408120805460019290611463908490613eb1565b90915550506001600160a01b0382166000908152600360205260408120805460019290611491908490613e66565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600954610100900460ff16156115565760405162461bcd60e51b8152602060048201526024808201527f436f6c6c65637469626c653a20546f6b656e7320616c726561647920726573656044820152631c9d995960e21b6064820152608401610612565b6000611560610d94565b1161157d5760405162461bcd60e51b815260040161061290613df4565b600d54611588610d94565b10156115e85760405162461bcd60e51b815260206004820152602960248201527f436f6c6c65637469626c653a20517479206578636565647320617661696c61626044820152686c6520737570706c7960b81b6064820152608401610612565b60005b600d54811015611610576115fe33611230565b8061160881613f29565b9150506115eb565b506009805461ff001916610100179055565b60405133904780156108fc02916000818181858888f1935050505015801561119a573d6000803e3d6000fd5b60095460ff16156116ad5760405162461bcd60e51b815260206004820152602360248201527f436f6c6c65637469626c653a2053616c6520697320616c7265616479207061756044820152621cd95960ea1b6064820152608401610612565b6009805460ff191660011790556040513381527fd5e13ff83aeff77a13ff79d42763d4321ee52cd9176d6a6942a44abb945a39a9906020015b60405180910390a1565b600e80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60095460ff166117a05760405162461bcd60e51b8152602060048201526024808201527f436f6c6c65637469626c653a2053616c6520697320616c7265616479207374616044820152631c9d195960e21b6064820152608401610612565b6009805460ff191690556040513381527fa3b142bf6879b63da2acae6c3cba67984f0c343ef0b43e6e3f349bfe1f470cf2906020016116e6565b6117e5848484611347565b6117f184848484611d6e565b610f3c5760405162461bcd60e51b815260040161061290613d1c565b61185560405180610100016040528060608152602001606081526020016060815260200160608152602001606081526020016060815260200160608152602001606081525090565b600082815260106020526040808220548151610100810190925260c01b91908061187e86611e7b565b815260200161188c84611f95565b815260200161189a8461228b565b8152604080516020818101835260008252830152016118b8846123df565b81526020016118c684612676565b81526020016118d484612770565b81526020016118e28461281e565b81525090506119188160e001516040518060400160405280600b81526020016a151c985b9cdc185c995b9d60aa1b815250612a3a565b8061194857506119488160e00151604051806040016040528060048152602001634d656d6560e01b815250612a3a565b1561195c576040810151606082015261198d565b80604001518160200151604051602001611977929190613beb565b60408051601f1981840301815291905260608201525b9392505050565b606081606001516119c58360e00151604051806040016040528060048152602001634d656d6560e01b815250612a3a565b6119f2576040518060400160405280600b81526020016a031303830207820313038360ac1b815250611a15565b6040518060400160405280600981526020016803532302078203532360bc1b8152505b604051602001611a26929190613c28565b6040516020818303038152906040529050919050565b6060611a688260e00151604051806040016040528060048152602001634d656d6560e01b815250612a3a565b15611ab65780604051602001611a7e91906134b2565b604051602081830303815290604052905080604051602001611aa091906136f1565b6040516020818303038152906040529050611b72565b80604051602001611ac791906133c9565b6040516020818303038152906040529050808260200151611b0f8460e001516040518060400160405280600b81526020016a151c985b9cdc185c995b9d60aa1b815250612a3a565b611b285760405180602001604052806000815250611b4e565b6040518060400160405280600c81526020016b206f7061636974793d27302760a01b8152505b604051602001611b609392919061394e565b60405160208183030381529060405290505b80604051602001611a269190613ba5565b60408051605b60f81b602082015281516001818303018152602182019092526080830151611bb691839190604101613698565b6040516020818303038152906040529050808260a00151604051602001611bde929190613354565b6040516020818303038152906040529050808260c00151604051602001611c06929190613aa3565b60408051601f1981840301815282825260e085015183830190925260048352634e6f6e6560e01b60208401529250611c3d91612a3a565b611c695760e0820151604051611c5791839160200161343c565b60405160208183030381529060405290505b808260000151611c7a600a54611e7b565b604051602001611c8c93929190613580565b604051602081830303815290604052905080604051602001611a269190613a3d565b60006001600160e01b031982166380ac58cd60e01b1480611cdf57506001600160e01b03198216635b5e139f60e01b145b8061050557506301ffc9a760e01b6001600160e01b0319831614610505565b6000611d0e600680546001019055565b5060065490565b610915828260405180602001604052806000815250612a9e565b611d3881612ad1565b600091825260106020526040909120805467ffffffffffffffff191660c09290921c91909117905550565b610748838383612c93565b60006001600160a01b0384163b15611e7057604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611db2903390899088908890600401613ccc565b602060405180830381600087803b158015611dcc57600080fd5b505af1925050508015611dfc575060408051601f3d908101601f19168201909252611df991810190613281565b60015b611e56573d808015611e2a576040519150601f19603f3d011682016040523d82523d6000602084013e611e2f565b606091505b508051611e4e5760405162461bcd60e51b815260040161061290613d1c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061133f565b506001949350505050565b606081611e9f5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611ec95780611eb381613f29565b9150611ec29050600a83613e7e565b9150611ea3565b60008167ffffffffffffffff811115611ef257634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611f1c576020820181803683370190505b5090505b841561133f57611f31600183613eb1565b9150611f3e600a86613f44565b611f49906030613e66565b60f81b818381518110611f6c57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611f8e600a86613e7e565b9450611f20565b604080516006808252818301909252606091600084811a92600186901a92600287901a9291906020820181803683370190505090506f181899199a1a9b1b9c1ca0a121a222a360811b600f600486901c166010811061200457634e487b7160e01b600052603260045260246000fd5b1a60f81b8160008151811061202957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506f181899199a1a9b1b9c1ca0a121a222a360811b600f85166010811061207657634e487b7160e01b600052603260045260246000fd5b1a60f81b8160018151811061209b57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506f181899199a1a9b1b9c1ca0a121a222a360811b600f600485901c16601081106120ec57634e487b7160e01b600052603260045260246000fd5b1a60f81b8160028151811061211157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506f181899199a1a9b1b9c1ca0a121a222a360811b600f84166010811061215e57634e487b7160e01b600052603260045260246000fd5b1a60f81b8160038151811061218357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506f181899199a1a9b1b9c1ca0a121a222a360811b600f600484901c16601081106121d457634e487b7160e01b600052603260045260246000fd5b1a60f81b816004815181106121f957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506f181899199a1a9b1b9c1ca0a121a222a360811b600f83166010811061224657634e487b7160e01b600052603260045260246000fd5b1a60f81b8160058151811061226b57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535095945050505050565b6060600382901a61229e61010082613e92565b90508260041a176122b161010082613e92565b90508260051a1780600581901c60006122cd601f841683613e66565b905060006122db8383613eb1565b67ffffffffffffffff81111561230157634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561232b576020820181803683370190505b509050825b828110156123d4576040518061084001604052806108118152602001613fb16108119139818151811061237357634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b0319168261238d8684613eb1565b815181106123ab57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350806123cc81613f29565b915050612330565b509695505050505050565b6060600682901a60f81b6001600160f81b03198116612423576040518060400160405280600b81526020016a426c756520436f6c6f727360a81b8152509150612670565b600160f81b6001600160f81b031982161415612465576040518060400160405280600c81526020016b42726f776e20436f6c6f727360a01b8152509150612670565b600160f91b6001600160f81b0319821614156124a6576040518060400160405280600b81526020016a4772617920436f6c6f727360a81b8152509150612670565b600360f81b6001600160f81b0319821614156124e8576040518060400160405280600c81526020016b477265656e20436f6c6f727360a01b8152509150612670565b600160fa1b6001600160f81b03198216141561252b576040518060400160405280600d81526020016c4f72616e676520436f6c6f727360981b8152509150612670565b600560f81b6001600160f81b03198216141561256c576040518060400160405280600b81526020016a50696e6b20436f6c6f727360a81b8152509150612670565b600360f91b6001600160f81b0319821614156125af576040518060400160405280600d81526020016c507572706c6520436f6c6f727360981b8152509150612670565b600760f81b6001600160f81b0319821614156125ef576040518060400160405280600a81526020016952656420436f6c6f727360b01b8152509150612670565b600160fb1b6001600160f81b031982161415612631576040518060400160405280600c81526020016b576869746520436f6c6f727360a01b8152509150612670565b600960f81b6001600160f81b031982161415612670576040518060400160405280600d81526020016c59656c6c6f7720436f6c6f727360981b81525091505b50919050565b6060600360f81b600783901a60f81b16806126b4576040518060400160405280600981526020016821a9a99021b7b637b960b91b8152509150612670565b600160f81b6001600160f81b0319821614156126f4576040518060400160405280600a81526020016948544d4c20426173696360b01b8152509150612670565b600160f91b6001600160f81b031982161415612737576040518060400160405280600d81526020016c1215135308115e1d195b991959609a1b8152509150612670565b600360f81b6001600160f81b03198216141561267057505060408051808201909152600581526427ba3432b960d91b6020820152919050565b6060600360f81b600783901a60f61b16806127a957604051806040016040528060048152602001634461726b60e01b8152509150612670565b600160f81b6001600160f81b0319821614156127e45760405180604001604052806005815260200164131a59da1d60da1b8152509150612670565b600160f91b6001600160f81b0319821614156126705750506040805180820190915260068152654d656469756d60d01b6020820152919050565b6060600f60f81b600783901a60f41b168061285757604051806040016040528060048152602001634e6f6e6560e01b8152509150612670565b600160f81b6001600160f81b031982161415612891576040518060400160405280600481526020016347656d7360e01b8152509150612670565b600160f91b6001600160f81b0319821614156128cf57604051806040016040528060088152602001671211560815dbdc9960c21b8152509150612670565b600360f81b6001600160f81b03198216141561290957604051806040016040528060048152602001634d656d6560e01b8152509150612670565b600160fa1b6001600160f81b03198216141561294757604051806040016040528060088152602001674d6574616c6c696360c01b8152509150612670565b600560f81b6001600160f81b03198216141561298657604051806040016040528060098152602001681499585b0815dbdc9960ba1b8152509150612670565b600360f91b6001600160f81b0319821614156129c7576040518060400160405280600b81526020016a151c985b9cdc185c995b9d60aa1b8152509150612670565b600760f81b6001600160f81b031982161415612a0157604051806040016040528060048152602001632a3bb4b760e11b8152509150612670565b600160fb1b6001600160f81b031982161415612670575050604080518082019091526005815264576f6f647360d81b6020820152919050565b60008151835114801561198d575081604051602001612a599190613bcf565b6040516020818303038152906040528051906020012083604051602001612a809190613bcf565b60405160208183030381529060405280519060200120149392505050565b612aa88383612cef565b612ab56000848484611d6e565b6107485760405162461bcd60e51b815260040161061290613d1c565b6009546000908190610100900460ff16612af557612af0600184613eb1565b612b47565b600f54604080513360601b6bffffffffffffffffffffffff191660208083019190915242603483015260548083018890528351808403909101815260749092019092528051910120612b479190613f44565b90506000600f8281548110612b6c57634e487b7160e01b600052603260045260246000fd5b90600052602060002090600491828204019190066008029054906101000a900460c01b9050600f6001600f80549050612ba59190613eb1565b81548110612bc357634e487b7160e01b600052603260045260246000fd5b90600052602060002090600491828204019190066008029054906101000a900460c01b600f8381548110612c0757634e487b7160e01b600052603260045260246000fd5b90600052602060002090600491828204019190066008026101000a81548167ffffffffffffffff021916908360c01c0217905550600f805480612c5a57634e487b7160e01b600052603160045260246000fd5b600082815260209020600460001990920191820401805467ffffffffffffffff600860038516026101000a021916905590559392505050565b816001600160a01b0316836001600160a01b031614158015612cbd57506001600160a01b03831615155b15612ccc57612ccc8382612e3d565b826001600160a01b0316826001600160a01b031614610748576107488282612eda565b6001600160a01b038216612d455760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610612565b6000818152600260205260409020546001600160a01b031615612daa5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610612565b612db660008383611d63565b6001600160a01b0382166000908152600360205260408120805460019290612ddf908490613e66565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001612e4a84610cd9565b612e549190613eb1565b600083815260086020526040902054909150808214612ea7576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b6000612ee583610cd9565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b82805482825590600052602060002090600301600490048101928215612fc25791602002820160005b83821115612f8c57835183826101000a81548167ffffffffffffffff021916908360c01c02179055509260200192600801602081600701049283019260010302612f47565b8015612fc05782816101000a81549067ffffffffffffffff0219169055600801602081600701049283019260010302612f8c565b505b50612fce929150612fd2565b5090565b5b80821115612fce5760008155600101612fd3565b80356001600160a01b0381168114612ffe57600080fd5b919050565b600060208284031215613014578081fd5b61198d82612fe7565b6000806040838503121561302f578081fd5b61303883612fe7565b915061304660208401612fe7565b90509250929050565b600080600060608486031215613063578081fd5b61306c84612fe7565b925061307a60208501612fe7565b9150604084013590509250925092565b6000806000806080858703121561309f578081fd5b6130a885612fe7565b935060206130b7818701612fe7565b935060408601359250606086013567ffffffffffffffff808211156130da578384fd5b818801915088601f8301126130ed578384fd5b8135818111156130ff576130ff613f84565b613111601f8201601f19168501613e35565b91508082528984828501011115613126578485fd5b8084840185840137810190920192909252939692955090935050565b60008060408385031215613154578182fd5b61315d83612fe7565b915060208301358015158114613171578182fd5b809150509250929050565b6000806040838503121561318e578182fd5b61319783612fe7565b946020939093013593505050565b600060208083850312156131b7578182fd5b823567ffffffffffffffff808211156131ce578384fd5b818501915085601f8301126131e1578384fd5b8135818111156131f3576131f3613f84565b8060051b9150613204848301613e35565b8181528481019084860184860187018a101561321e578788fd5b8795505b8386101561325857803594506001600160c01b031985168514613243578788fd5b84835260019590950194918601918601613222565b5098975050505050505050565b600060208284031215613276578081fd5b813561198d81613f9a565b600060208284031215613292578081fd5b815161198d81613f9a565b6000602082840312156132ae578081fd5b5035919050565b600081518084526132cd816020860160208601613ec8565b601f01601f19169290920160200192915050565b600083516132f3818460208801613ec8565b80830190507f22696d616765223a2022646174613a696d6167652f7376672b786d6c3b7574668152610e0b60f21b60208201528351613339816022840160208801613ec8565b61088b60f21b60229290910191820152602401949350505050565b60008351613366818460208801613ec8565b80830190507f7b2274726169745f74797065223a2022536f75726365222c202276616c7565228152621d101160e91b602082015283516133ad816023840160208801613ec8565b62089f4b60ea1b60239290910191820152602601949350505050565b600082516133db818460208701613ec8565b7f3c73766720786d6c6e733d27687474703a2f2f7777772e77332e6f72672f32309201918252507f30302f737667272077696474683d273130383027206865696768743d2731303860208201526218139f60e91b6040820152604301919050565b6000835161344e818460208801613ec8565b80830190507f7b2274726169745f74797065223a20225370656369616c222c202276616c7565815263111d101160e11b60208201528351613496816024840160208801613ec8565b62089f4b60ea1b60249290910191820152602701949350505050565b600082516134c4818460208701613ec8565b7f3c73766720786d6c6e733d27687474703a2f2f7777772e77332e6f72672f32309201918252507f30302f737667272077696474683d2735323027206865696768743d27353230276020820152601f60f91b6040820152604101919050565b60008251613535818460208701613ec8565b7f2265787465726e616c5f75726c223a202268747470733a2f2f7777772e6a7573920191825250721d189858dad9dc9bdd5b991ccb9e1e5e8bc88b606a1b6020820152603301919050565b60008451613592818460208901613ec8565b80830190507f7b2274726169745f74797065223a202245646974696f6e222c2022646973706c81527f61795f74797065223a20226e756d626572222c202276616c7565223a20000000602082015284516135f381603d840160208901613ec8565b6e016101136b0bc2fbb30b63ab2911d1608d1b603d9290910191820152835161362381604c840160208801613ec8565b607d60f81b604c9290910191820152604d0195945050505050565b60008351613650818460208801613ec8565b6f113232b9b1b934b83a34b7b7111d101160811b908301908152835161367d816010840160208801613ec8565b61088b60f21b60109290910191820152601201949350505050565b600083516136aa818460208801613ec8565b80830190507f7b2274726169745f74797065223a202246616d696c79222c202276616c7565228152621d101160e91b602082015283516133ad816023840160208801613ec8565b60008251613703818460208701613ec8565b7f3c646566733e3c7061747465726e2069643d2767726964272077696474683d279083019081527f323027206865696768743d27323027207061747465726e556e6974733d27757360208201526d32b929b830b1b2a7b72ab9b2939f60911b60408201527f3c726563742066696c6c3d27626c61636b2720783d27302720793d2730272077604e8201527f696474683d27313027206865696768743d27313027206f7061636974793d2730606e82015264171893979f60d91b608e8201527f3c726563742066696c6c3d2777686974652720783d2731302720793d273027206093820152773bb4b23a341e93989813903432b4b3b43a1e93989813979f60411b60b38201527f3c726563742066696c6c3d27626c61636b2720783d2731302720793d2731302760cb8201527f2077696474683d27313027206865696768743d27313027206f7061636974793d60eb820152661398171893979f60c91b61010b82015261133f6138da6138bd61011284017f3c726563742066696c6c3d2777686974652720783d27302720793d27313027208152773bb4b23a341e93989813903432b4b3b43a1e93989813979f60411b602082015260380190565b701e17b830ba3a32b9371f1e17b232b3399f60791b815260110190565b7f3c726563742066696c6c3d2775726c282367726964292720783d27302720793d81527f2730272077696474683d273130302527206865696768743d2731303025272f3e602082015260400190565b6000825161393b818460208701613ec8565b607d60f81b920191825250600101919050565b60008451613960818460208901613ec8565b80830190507f3c726563742077696474683d273130302527206865696768743d2731303025278152672066696c6c3d272360c01b602082015284516139ac816028840160208901613ec8565b602760f81b6028929091019182015283516139ce816029840160208801613ec8565b61179f60f11b60299290910191820152602b0195945050505050565b600083516139fc818460208801613ec8565b68113730b6b2911d101160b91b9083019081528351613a22816009840160208801613ec8565b61088b60f21b60099290910191820152600b01949350505050565b60008251613a4f818460208701613ec8565b605d60f81b920191825250600101919050565b60008251613a74818460208701613ec8565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c7b00000000920191825250601c01919050565b60008351613ab5818460208801613ec8565b80830190507f7b2274726169745f74797065223a20224272696768746e657373222c20227661815266363ab2911d101160c91b60208201528351613b00816027840160208801613ec8565b62089f4b60ea1b60279290910191820152602a01949350505050565b60008251613b2e818460208701613ec8565b7f22637265617465645f6279223a20226a7065676d696e742e78797a222c000000920191825250601d01919050565b60008351613b6f818460208801613ec8565b6c1130ba3a3934b13aba32b9911d60991b9083019081528351613b9981600d840160208801613ec8565b01600d01949350505050565b60008251613bb7818460208701613ec8565b651e17b9bb339f60d11b920191825250600601919050565b60008251613be1818460208701613ec8565b9190910192915050565b60008351613bfd818460208801613ec8565b61202360f01b9083019081528351613c1c816002840160208801613ec8565b01600201949350505050565b7f2a2a4a757374204261636b67726f756e64732a2a2028622e2032303231295c6e8152612e3760f11b602082015260008351613c6b816022850160208801613ec8565b632e372e3760e11b602291840191820152720152430b7321031b930b33a32b21029ab23961606d1b60268201528351613cab816039840160208801613ec8565b67103834bc32b6399560c11b60399290910191820152604101949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613cff908301846132b5565b9695505050505050565b60208152600061198d60208301846132b5565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526021908201527f436f6c6c65637469626c653a20436f6e747261637420697320736f6c64206f756040820152601d60fa1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff81118282101715613e5e57613e5e613f84565b604052919050565b60008219821115613e7957613e79613f58565b500190565b600082613e8d57613e8d613f6e565b500490565b6000816000190483118215151615613eac57613eac613f58565b500290565b600082821015613ec357613ec3613f58565b500390565b60005b83811015613ee3578181015183820152602001613ecb565b83811115610f3c5750506000910152565b600181811c90821680613f0857607f821691505b6020821081141561267057634e487b7160e01b600052602260045260246000fd5b6000600019821415613f3d57613f3d613f58565b5060010190565b600082613f5357613f53613f6e565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461119a57600080fdfe41636163696141636365646541636365737341636574696341636964696341646469637441646f626573416666656374416c69636520426c7565416d626572416d657468797374416e746971756520576869746541717561417175616d6172696e65417368417373657373417373657473417373697374417474657374417474696373417a75726542616269657342616666656442617369637342656164656442656173747342656464656442656566656442656967654269646574734269726368426973717565426c61636b426c616e6368656420416c6d6f6e64426c7565426c75652056696f6c6574426f61737473426f62626564426f62636174426f64696573426f6f626965426f73736573427261737342726f6e7a6542726f776e4275726c7920576f6f64436164646965436164657420426c756543656173656443656461724368617274726575736543686572727943686f636f6c617465436963616461436f66666565436f6f746965436f70706572436f72616c436f726e666c6f77657220426c7565436f726e73696c6b4372696d736f6e4379616e4461626265644461666665644461726b20426c75654461726b204379616e4461726b20476f6c64656e726f644461726b20477261794461726b20477265656e4461726b204b68616b694461726b204d6167656e74614461726b204f6c69766520477265656e4461726b204f72616e67654461726b204f72636869644461726b205265644461726b2053616c6d6f6e4461726b2053656120477265656e4461726b20536c61746520426c75654461726b20536c61746520477261794461726b2054757271756f6973654461726b2056696f6c6574446562617365446563616465446563696465446565646564446565702050696e6b4465657020536b7920426c75654465666163654465666561744465666563744465746563744465746573744469616d6f6e6444696262656444696d204772617944696f646573446973736564446f6467657220426c7565446f6f646164446f74746564456464696573456666616365456666656374456d6572616c644573746174654661636164654661636574734661736369614661737465644669626265644669657374614669724669726520427269636b466974746564466c6f72616c205768697465466f6f746564466f7265737420477265656e467563687369614761696e73626f726f47686f7374205768697465476f6c64476f6c64656e726f6447726179477265656e477265656e2059656c6c6f77486f6e657920446577486f742050696e6b496e6469616e20526564496e6469676f49766f72794a6164654b68616b694c6176656e6465724c6176656e64657220426c7573684c61776e20477265656e4c656d6f6e2043686966666f6e4c6967687420426c75654c6967687420436f72616c4c69676874204379616e4c6967687420476f6c64656e726f642059656c6c6f774c6967687420477261794c6967687420477265656e4c696768742050696e6b4c696768742053616c6d6f6e4c696768742053656120477265656e4c6967687420536b7920426c75654c6967687420536c61746520477261794c6967687420537465656c20426c75654c696768742059656c6c6f774c696d654c696d6520477265656e4c696e656e4d6167656e74614d61686f67616e794d61706c654d61726f6f6e4d656469756d20417175616d6172696e654d656469756d20426c75654d656469756d204f72636869644d656469756d20507572706c654d656469756d2053656120477265656e4d656469756d20536c61746520426c75654d656469756d20537072696e6720477265656e4d656469756d2054757271756f6973654d656469756d2056696f6c6574205265644d69646e6967687420426c75654d696e7420437265616d4d6973747920526f73654d6f63636173696e4e6176616a6f2057686974654e6176794f616b4f64657373614f66666963654f6c64204c6163654f6c6976654f6c69766520447261624f72616e67654f72616e6765205265644f726368696450616c6520476f6c64656e726f6450616c6520477265656e50616c652054757271756f69736550616c652056696f6c65742052656450616c6c616469756d5061706179612057686970506174696e6150656163682050756666506561726c5065727550696e6550696e6b506c6174696e756d506c756d506f7764657220426c7565507572706c6550797269746551756172747a5265626563636120507572706c65526564526564776f6f64526f736520476f6c64526f73652051756172747a526f7365776f6f64526f73792042726f776e526f79616c20426c756552756279536164646c652042726f776e53616469737453616665737453616c6d6f6e53616e64792042726f776e536170706869726553617373656453636f66667353656120477265656e536561205368656c6c5365616265645365636564655365656465645369656e6e6153696573746153696c766572536b7920426c7565536c61746520426c7565536c6174652047726179536e6f77536f62626564537072696e6720477265656e537461746963537465656c20426c756554616262656454616374696354616e5465616b5465616c54656173656454656173657354657374656454686973746c65546963746163546964626974546f61737473546f66666565546f6d61746f546f6f7465645472616e73706172656e745472616e73706172656e743f54757271756f69736556696f6c657457616c6e757457686561745768697465576869746520536d6f6b6559656c6c6f7759656c6c6f7720477265656ea2646970667358221220608eb5ec42ffc49582ae2964565943f24bc5ad40902ea2f3d4c038130e31b8d764736f6c63430008040033
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.