ERC-721
NFT
Overview
Max Total Supply
6,666 Mutant Potion
Holders
2,562
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
3 Mutant PotionLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Potion
Compiler Version
v0.8.7+commit.e28d00a7
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.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./ERC721A.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; contract Potion is Ownable, ERC721A, ReentrancyGuard { constructor( ) ERC721A("POTION", "Mutant Potion", 10, 6666) {} function reserveMint(uint256 quantity) external onlyOwner { require( totalSupply() + quantity <= collectionSize, "Can't mint more." ); uint256 numChunks = quantity / maxBatchSize; for (uint256 i = 0; i < numChunks; i++) { _safeMint(msg.sender, maxBatchSize); } if (quantity % maxBatchSize != 0){ _safeMint(msg.sender, quantity % maxBatchSize); } } string private _baseTokenURI; function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } function setBaseURI(string calldata baseURI) external onlyOwner { _baseTokenURI = baseURI; } function tokenURI(uint256 tokenId) public view override returns (string memory) { require(_exists(tokenId), "Potion does not exist."); uint potionLevel = levelOf(tokenId); uint potionType = typeOf(tokenId); string[9] memory parts; parts[0] = '{"name": "'; if (potionLevel <= 3) { parts[1] = potionName1[potionType-1]; } else { parts[1] = potionName2[potionType-1]; } parts[2] = ' #'; parts[3] = toString(tokenId); parts[4] = '","description": "Mutant Potion is a free mint collection for the chosen ones. Handle with care. Instructions to follow on our official website.","image":"'; parts[5] = string(abi.encodePacked( _baseURI(), toString(potionType), '-', toString(potionLevel), '.png')); parts[6] = '","attributes": [{"trait_type": "Level","value":'; parts[7] = toString(potionLevel); parts[8] = '}]}'; string memory output = string(abi.encodePacked(parts[0], parts[1], parts[2], parts[3], parts[4], parts[5], parts[6], parts[7], parts[8])); string memory json = Base64.encode(bytes(output)); output = string(abi.encodePacked('data:application/json;base64,', json)); return output; } function withdrawMoney() external onlyOwner nonReentrant { (bool success, ) = msg.sender.call{value: address(this).balance}(""); require(success, "Transfer failed."); } function setOwnersExplicit(uint256 quantity) external onlyOwner nonReentrant { _setOwnersExplicit(quantity); } function numberMinted(address owner) public view returns (uint256) { return _numberMinted(owner); } function isChosenOne(address owner) public view returns (bool) { bool chosen = false; for (uint i = 0; i < chosenList.length; i++) { IERC721 c = IERC721(chosenList[i]); if (c.balanceOf(owner) > 0) { chosen = true; break; } } return chosen; } function getOwnershipData(uint256 tokenId) external view returns (TokenOwnership memory) { return ownershipOf(tokenId); } bool public publicSaleStatus = false; //TEST PROD false uint256 public publicPrice = 0.003900 ether; //TEST PROD 0.0039 uint256 public amountForPublicSale = 6666; uint256 public immutable publicSalePerMint = 10; function publicSaleMint(uint256 quantity) external payable { require(publicSaleStatus,"Public sale has not started."); require(totalSupply() + quantity <= collectionSize,"Max supply reached."); require(amountForPublicSale >= quantity,"Public sale limit reached."); require(quantity <= publicSalePerMint,"Single transaction limit reached."); bool chosen = isChosenOne(msg.sender); if (chosen && numberMinted(msg.sender) + quantity > 5) { uint numberToPay; if ( numberMinted(msg.sender) >= 5) { numberToPay = quantity; } else { numberToPay = numberMinted(msg.sender) + quantity - 5; } require(uint256(publicPrice) * numberToPay <= msg.value,"Not enough ETH, chosen ones can mint 5 potion for free"); } else if (!chosen && numberMinted(msg.sender) + quantity > 1) { uint numberToPay; if ( numberMinted(msg.sender) >= 1) { numberToPay = quantity; } else { numberToPay = numberMinted(msg.sender) + quantity - 1; } require(uint256(publicPrice) * numberToPay <= msg.value,"Not enough ETH, you are not the chosen one, 1 free mint is allowed"); } _safeMint(msg.sender, quantity); amountForPublicSale -= quantity; } function setPublicSaleStatus(bool status) external onlyOwner { publicSaleStatus = status; } function getPublicSaleStatus() external view returns(bool) { return publicSaleStatus; } function toString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } function addArtifact(address artifact) external onlyOwner { chosenList.push(artifact); } function removeArtifact(uint index) external onlyOwner { require(index < chosenList.length); chosenList[index] = chosenList[chosenList.length-1]; chosenList.pop(); } function stakeArtifact(address itemAddress, uint tokenId, address staker, address vault) external onlyOwner { IERC721 artifact = IERC721(itemAddress); artifact.transferFrom(staker, vault, tokenId); } } library Base64 { bytes internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; function encode(bytes memory data) internal pure returns (string memory) { uint256 len = data.length; if (len == 0) return ""; uint256 encodedLen = 4 * ((len + 2) / 3); bytes memory result = new bytes(encodedLen + 32); bytes memory table = TABLE; assembly { let tablePtr := add(table, 1) let resultPtr := add(result, 32) for { let i := 0 } lt(i, len) { } { i := add(i, 3) let input := and(mload(add(data, i)), 0xffffff) let out := mload(add(tablePtr, and(shr(18, input), 0x3F))) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF)) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF)) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(input, 0x3F))), 0xFF)) out := shl(224, out) mstore(resultPtr, out) resultPtr := add(resultPtr, 4) } switch mod(len, 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } mstore(result, encodedLen) } return string(result); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * 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; /** * @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 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 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 the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @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); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Assumes the number of issuable tokens (collection size) is capped and fits in a uint128. * * Does not support burning tokens to address(0). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; struct TokenOwnership { address addr; uint64 startTimestamp; } struct AddressData { uint128 balance; uint128 numberMinted; } struct brewData { uint tokenIdA; uint tokenIdB; address artifact; uint startBlock; } uint256 private currentIndex = 0; uint256 internal immutable collectionSize; uint256 internal immutable maxBatchSize; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details. mapping(uint256 => TokenOwnership) private _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Custom Attr // address[] internal chosenList = [0x39ee2c7b3cb80254225884ca001F57118C8f21B6,0x31d45de84fdE2fB36575085e05754a4932DD5170,0x23581767a106ae21c074b2276D25e5C3e136a68b,0x34d85c9CDeB23FA97cb08333b511ac86E1C4E258,0x60E4d786628Fea6478F785A6d7e704777c86a7c6,0xBd3531dA5CF5857e7CfAA92426877b022e612cf8,0xd1258DB6Ac08eB0e625B75b371C023dA478E94A9,0x49cF6f5d44E70224e2E23fDcdd2C053F30aDA28B,0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D,0x8a90CAb2b38dba80c64b7734e58Ee1dB38B8992e,0xba30E5F9Bb24caa003E9f2f0497Ad287FDF95623,0xED5AF388653567Af2F388E6224dC7C4b3241C544]; address[] internal chosenList; // address[] internal chosenList = []; string[] internal potionName1 = ["Red Potion" , "Aqua Potion" , "Dark Potion" , "Night Potion" , "Dream Potion" , "Firefly Potion"]; string[] internal potionName2 = ["Alchemist Potion", "Alchemist Potion" , "Rainbow Potion" , "Rainbow Potion", "Purity Potion", "Purity Potion" ]; mapping(uint => uint) internal potionLevelMap; mapping(uint => uint) internal potionTypeMap; mapping(address => brewData) internal brewDataMap; function typeOf(uint tokenId) public view returns (uint256) { require(_exists(tokenId), "This potion does not exist."); return potionTypeMap[tokenId] + 1; } function levelOf(uint tokenId) public view returns (uint256) { require(_exists(tokenId), "This potion does not exist."); return potionLevelMap[tokenId] + 1; } function isArtifact(address testArtifact) public view returns (bool) { bool chosen = false; for (uint i = 0; i < chosenList.length; i++) { if (chosenList[i] == testArtifact) { chosen = true; break; } } return chosen; } function getArtifactList() public view returns (address[] memory) { return chosenList; } function brewDataOf() public view returns (brewData memory) { return brewDataMap[msg.sender]; } function brew(uint tokenIdA, uint tokenIdB, address artifact) public { require(_exists(tokenIdA), "1st potion does not exist."); require(ownerOf(tokenIdA) == msg.sender, "1st potion is not owned by you."); require(_exists(tokenIdB), "2nd potion does not exist."); require(ownerOf(tokenIdB) == msg.sender, "2nd potion is not owned by you."); require(brewDataOf().startBlock == 0, "You are still brewing something..."); require(isArtifact(artifact), "Invalid artifact."); brewDataMap[msg.sender].tokenIdA = tokenIdA; brewDataMap[msg.sender].tokenIdB = tokenIdB; brewDataMap[msg.sender].artifact = artifact; brewDataMap[msg.sender].startBlock = block.number; } function cancel() public { require(brewDataOf().startBlock != 0, "You are not brewing anything."); brewDataMap[msg.sender].startBlock = 0; } function claim() public payable { uint tokenIdA = brewDataMap[msg.sender].tokenIdA; uint tokenIdB = brewDataMap[msg.sender].tokenIdB; IERC721 artifact = IERC721(brewDataMap[msg.sender].artifact); uint startBlock = brewDataMap[msg.sender].startBlock; require(startBlock != 0, "You are not brewing anything."); require(_exists(tokenIdA), "1st potion does not exist."); require(ownerOf(tokenIdA) == msg.sender, "1st potion is not owned by you."); require(_exists(tokenIdB), "2nd potion does not exist."); require(ownerOf(tokenIdB) == msg.sender, "2nd potion is not owned by you."); uint potionLevelA = levelOf(tokenIdA); uint potionTypeA = typeOf(tokenIdA); uint potionLevelB = levelOf(tokenIdB); uint potionTypeB = typeOf(tokenIdB); if (potionLevelA == 1) { require(potionLevelB == 1, "Brewing failed, try potion with the same level."); require(potionTypeB == potionTypeA, "Brewing failed, try potion with the same type."); require(msg.value >= 0.0039 ether, "Not enough ETH."); require(block.number - startBlock > 300, "Still brewing..."); //TEST, PROD 300 _burn(tokenIdB); potionLevelMap[tokenIdA] ++; brewDataMap[msg.sender].startBlock = 0; return; } else if (potionLevelA == 2){ require(potionLevelB == 2, "Brewing failed, try potion with the same level."); require(potionTypeB == potionTypeA, "Brewing failed, try potion with the same type."); require(msg.value >= 0.0039 ether, "Not enough ETH."); require(block.number - startBlock > 3600, "Still brewing..."); //TEST, PROD 3600 require(artifact.balanceOf(msg.sender) > 0, "You don't own any artifacts."); _burn(tokenIdB); potionLevelMap[tokenIdA] ++; brewDataMap[msg.sender].startBlock = 0; return; } else if (potionLevelA == 3){ require(potionLevelB == 3, "Brewing failed, try potion with the same level."); if (potionTypeA == 1 || potionTypeA == 3 || potionTypeA == 5) { require(potionTypeB == potionTypeA + 1, "Brewing failed, try potion with the right type."); } else { require(potionTypeB == potionTypeA - 1, "Brewing failed, try potion with the right type."); } require(msg.value >= 0.0039 ether, "Not enough ETH."); require(block.number - startBlock > 7200, "Still brewing..."); //TEST, PROD 7200 require(artifact.balanceOf(msg.sender) > 0, "You don't own any artifacts."); _burn(tokenIdB); potionLevelMap[tokenIdA] ++; brewDataMap[msg.sender].startBlock = 0; return; } else { revert("Brewing failed, try potion with different level."); } } function _burn( uint256 tokenId ) internal { require(_exists(tokenId), "This potion does not exist."); address from = ownerOf(tokenId); address to = address(0xdead); TokenOwnership memory prevOwnership = ownershipOf(tokenId); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp)); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { if (_exists(nextTokenId)) { _ownerships[nextTokenId] = TokenOwnership( prevOwnership.addr, prevOwnership.startTimestamp ); } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev * `maxBatchSize` refers to how much a minter can mint at a time. * `collectionSize_` refers to how many tokens are in the collection. */ constructor( string memory name_, string memory symbol_, uint256 maxBatchSize_, uint256 collectionSize_ ) { require( collectionSize_ > 0, "ERC721A: collection must have a nonzero supply" ); require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero"); _name = name_; _symbol = symbol_; maxBatchSize = maxBatchSize_; collectionSize = collectionSize_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { return currentIndex; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { require(index < totalSupply(), "ERC721A: global index out of bounds"); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(collectionSize). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { require(index < balanceOf(owner), "ERC721A: owner index out of bounds"); uint256 numMintedSoFar = totalSupply(); uint256 tokenIdsIdx = 0; address currOwnershipAddr = address(0); for (uint256 i = 0; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } revert("ERC721A: unable to get token of owner by index"); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { require(owner != address(0), "ERC721A: balance query for the zero address"); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { require( owner != address(0), "ERC721A: number minted query for the zero address" ); return uint256(_addressData[owner].numberMinted); } function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { require(_exists(tokenId), "ERC721A: owner query for nonexistent token"); uint256 lowestTokenToCheck; if (tokenId >= maxBatchSize) { lowestTokenToCheck = tokenId - maxBatchSize + 1; } for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) { TokenOwnership memory ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } revert("ERC721A: unable to determine the owner of token"); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {} /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); require(to != owner, "ERC721A: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721A: approve caller is not owner nor approved for all" ); _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { require(_exists(tokenId), "ERC721A: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { require(operator != _msgSender(), "ERC721A: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public override { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < currentIndex; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ""); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - there must be `quantity` tokens remaining unminted in the total collection. * - `to` cannot be the zero address. * - `quantity` cannot be larger than the max batch size. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = currentIndex; require(to != address(0), "ERC721A: mint to the zero address"); require(!_exists(startTokenId), "ERC721A: token already minted"); require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high"); _beforeTokenTransfers(address(0), to, startTokenId, quantity); AddressData memory addressData = _addressData[to]; _addressData[to] = AddressData( addressData.balance + uint128(quantity), addressData.numberMinted + uint128(quantity) ); _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp)); uint256 updatedIndex = startTokenId; for (uint256 i = 0; i < quantity; i++) { uint fakeRnd = uint256(blockhash(block.number)) + uint256(uint160(msg.sender)) + startTokenId + i; uint potionType = fakeRnd % 6; potionTypeMap[startTokenId + i] = potionType; if (msg.value < 0.003 ether && potionType >= 3) { potionTypeMap[startTokenId + i] = potionType - 3; } emit Transfer(address(0), to, updatedIndex); require( _checkOnERC721Received(address(0), to, updatedIndex, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); updatedIndex++; } currentIndex = updatedIndex; _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || getApproved(tokenId) == _msgSender() || isApprovedForAll(prevOwnership.addr, _msgSender())); require( isApprovedOrOwner, "ERC721A: transfer caller is not owner nor approved" ); require( prevOwnership.addr == from, "ERC721A: transfer from incorrect owner" ); require(to != address(0), "ERC721A: transfer to the zero address"); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp)); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { if (_exists(nextTokenId)) { _ownerships[nextTokenId] = TokenOwnership( prevOwnership.addr, prevOwnership.startTimestamp ); } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } uint256 public nextOwnerToExplicitlySet = 0; /** * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf(). */ function _setOwnersExplicit(uint256 quantity) internal { uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet; require(quantity > 0, "quantity must be nonzero"); uint256 endIndex = oldNextOwnerToSet + quantity - 1; if (endIndex > collectionSize - 1) { endIndex = collectionSize - 1; } // We know if the last one in the group exists, all in the group exist, due to serial ordering. require(_exists(endIndex), "not enough minted yet for this cleanup"); for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) { if (_ownerships[i].addr == address(0)) { TokenOwnership memory ownership = ownershipOf(i); _ownerships[i] = TokenOwnership( ownership.addr, ownership.startTimestamp ); } } nextOwnerToExplicitlySet = endIndex + 1; } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721A: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"artifact","type":"address"}],"name":"addArtifact","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"amountForPublicSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenIdA","type":"uint256"},{"internalType":"uint256","name":"tokenIdB","type":"uint256"},{"internalType":"address","name":"artifact","type":"address"}],"name":"brew","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"brewDataOf","outputs":[{"components":[{"internalType":"uint256","name":"tokenIdA","type":"uint256"},{"internalType":"uint256","name":"tokenIdB","type":"uint256"},{"internalType":"address","name":"artifact","type":"address"},{"internalType":"uint256","name":"startBlock","type":"uint256"}],"internalType":"struct ERC721A.brewData","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cancel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getArtifactList","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getOwnershipData","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"}],"internalType":"struct ERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPublicSaleStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"testArtifact","type":"address"}],"name":"isArtifact","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"isChosenOne","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"levelOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"publicSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicSalePerMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"removeArtifact","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"reserveMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"setOwnersExplicit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"status","type":"bool"}],"name":"setPublicSaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"itemAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"staker","type":"address"},{"internalType":"address","name":"vault","type":"address"}],"name":"stakeArtifact","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"typeOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawMoney","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6000600155600a6101a0908152692932b2102837ba34b7b760b11b6101c05260e0908152600b6101e08181526a20b8bab0902837ba34b7b760a91b61020052610100526102209081526a2230b935902837ba34b7b760a91b6102405261012052600c6102608181526b2734b3b43a102837ba34b7b760a11b61028052610140526102a09081526b223932b0b6902837ba34b7b760a11b6102c05261016052610320604052600e6102e09081526d2334b932b3363c902837ba34b7b760911b6103005261018052620000d5906009906006620003f8565b506040518060c001604052806040518060400160405280601081526020016f20b631b432b6b4b9ba102837ba34b7b760811b81525081526020016040518060400160405280601081526020016f20b631b432b6b4b9ba102837ba34b7b760811b81525081526020016040518060400160405280600e81526020016d2930b4b73137bb902837ba34b7b760911b81525081526020016040518060400160405280600e81526020016d2930b4b73137bb902837ba34b7b760911b81525081526020016040518060400160405280600d81526020016c283ab934ba3c902837ba34b7b760991b81525081526020016040518060400160405280600d81526020016c283ab934ba3c902837ba34b7b760991b815250815250600a906006620001fb929190620003f8565b506000600e556011805460ff19169055660ddb07829fc000601255611a0a601355600a60c0523480156200022e57600080fd5b50604051806040016040528060068152602001652827aa24a7a760d11b8152506040518060400160405280600d81526020016c26baba30b73a102837ba34b7b760991b815250600a611a0a620002936200028d620003a460201b60201c565b620003a8565b60008111620003005760405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20636f6c6c656374696f6e206d757374206861766520612060448201526d6e6f6e7a65726f20737570706c7960901b60648201526084015b60405180910390fd5b60008211620003625760405162461bcd60e51b815260206004820152602760248201527f455243373231413a206d61782062617463682073697a65206d757374206265206044820152666e6f6e7a65726f60c81b6064820152608401620002f7565b8351620003779060029060208701906200045c565b5082516200038d9060039060208601906200045c565b5060a09190915260805250506001600f556200059e565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8280548282559060005260206000209081019282156200044a579160200282015b828111156200044a5782518051620004399184916020909101906200045c565b509160200191906001019062000419565b5062000458929150620004e7565b5090565b8280546200046a9062000561565b90600052602060002090601f0160209004810192826200048e5760008555620004d9565b82601f10620004a957805160ff1916838001178555620004d9565b82800160010185558215620004d9579182015b82811115620004d9578251825591602001919060010190620004bc565b506200045892915062000508565b8082111562000458576000620004fe82826200051f565b50600101620004e7565b5b8082111562000458576000815560010162000509565b5080546200052d9062000561565b6000825580601f106200053e575050565b601f0160209004906000526020600020908101906200055e919062000508565b50565b600181811c908216806200057657607f821691505b602082108114156200059857634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05161436762000614600039600081816104190152611e41015260008181610beb01528181610c2301528181610c5f01528181610c9201528181612f5801528181612f8201526135a9015260008181610b7001528181611d7601528181612b2c0152612b5e01526143676000f3fe6080604052600436106102725760003560e01c806370a082311161014f578063b3ab66b0116100c1578063d7224ba01161007a578063d7224ba014610760578063dc33e68114610776578063e7d729a714610796578063e985e9c5146107e7578063ea8a1af014610830578063f2fde38b1461084557600080fd5b8063b3ab66b0146106b3578063b423fe67146106c6578063b6c693e5146106e6578063b88d4fde14610700578063c588ff8b14610720578063c87b56dd1461074057600080fd5b80639231ab2a116101135780639231ab2a146105f057806395d89b411461063d5780639dc74e6314610652578063a22cb46514610668578063a945bf8014610688578063ac4460021461069e57600080fd5b806370a082311461055d578063715018a61461057d57806377ac5eef146105925780637abeb806146105b25780638da5cb5b146105d257600080fd5b80633ba5ae24116101e85780634f6ccce7116101ac5780634f6ccce71461049b57806355f804b3146104bb5780636352211e146104db5780636814e3a5146104fb5780636d5e30321461051b578063703fb2f11461053b57600080fd5b80633ba5ae24146104075780633f9577791461043b57806342842e0e1461045b578063499e8eec1461047b5780634e71d92d1461049357600080fd5b80631342ff4c1161023a5780631342ff4c1461034857806318160ddd1461036857806323b872dd14610387578063295a9142146103a75780632d20fb60146103c75780632f745c59146103e757600080fd5b806301ffc9a71461027757806306fdde03146102ac578063081812fc146102ce578063095ea7b3146103065780630b6ed23114610328575b600080fd5b34801561028357600080fd5b50610297610292366004613b74565b610865565b60405190151581526020015b60405180910390f35b3480156102b857600080fd5b506102c16108d2565b6040516102a39190613ea4565b3480156102da57600080fd5b506102ee6102e9366004613c1f565b610964565b6040516001600160a01b0390911681526020016102a3565b34801561031257600080fd5b50610326610321366004613ae2565b6109f4565b005b34801561033457600080fd5b5061032661034336600461394c565b610b0c565b34801561035457600080fd5b50610326610363366004613c1f565b610b66565b34801561037457600080fd5b506001545b6040519081526020016102a3565b34801561039357600080fd5b506103266103a23660046139a1565b610cc0565b3480156103b357600080fd5b506103266103c2366004613b0c565b610ccb565b3480156103d357600080fd5b506103266103e2366004613c1f565b610d47565b3480156103f357600080fd5b50610379610402366004613ae2565b610db8565b34801561041357600080fd5b506103797f000000000000000000000000000000000000000000000000000000000000000081565b34801561044757600080fd5b5061029761045636600461394c565b610f30565b34801561046757600080fd5b506103266104763660046139a1565b611006565b34801561048757600080fd5b5060115460ff16610297565b610326611021565b3480156104a757600080fd5b506103796104b6366004613c1f565b6115e7565b3480156104c757600080fd5b506103266104d6366004613bae565b611650565b3480156104e757600080fd5b506102ee6104f6366004613c1f565b611664565b34801561050757600080fd5b50610326610516366004613c1f565b611676565b34801561052757600080fd5b50610379610536366004613c1f565b61173c565b34801561054757600080fd5b5061055061177f565b6040516102a39190613e57565b34801561056957600080fd5b5061037961057836600461394c565b6117e0565b34801561058957600080fd5b50610326611871565b34801561059e57600080fd5b506103266105ad366004613c51565b611885565b3480156105be57600080fd5b506102976105cd36600461394c565b611ae4565b3480156105de57600080fd5b506000546001600160a01b03166102ee565b3480156105fc57600080fd5b5061061061060b366004613c1f565b611b46565b6040805182516001600160a01b031681526020928301516001600160401b031692810192909252016102a3565b34801561064957600080fd5b506102c1611b63565b34801561065e57600080fd5b5061037960135481565b34801561067457600080fd5b50610326610683366004613ab8565b611b72565b34801561069457600080fd5b5061037960125481565b3480156106aa57600080fd5b50610326611c37565b6103266106c1366004613c1f565b611d22565b3480156106d257600080fd5b506103266106e1366004613b59565b6120c0565b3480156106f257600080fd5b506011546102979060ff1681565b34801561070c57600080fd5b5061032661071b3660046139dd565b6120db565b34801561072c57600080fd5b5061037961073b366004613c1f565b612114565b34801561074c57600080fd5b506102c161075b366004613c1f565b612157565b34801561076c57600080fd5b50610379600e5481565b34801561078257600080fd5b5061037961079136600461394c565b6124f1565b3480156107a257600080fd5b506107ab6124fc565b6040516102a3919081518152602080830151908201526040808301516001600160a01b0316908201526060918201519181019190915260800190565b3480156107f357600080fd5b5061029761080236600461396e565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561083c57600080fd5b5061032661257f565b34801561085157600080fd5b5061032661086036600461394c565b6125ec565b60006001600160e01b031982166380ac58cd60e01b148061089657506001600160e01b03198216635b5e139f60e01b145b806108b157506001600160e01b0319821663780e9d6360e01b145b806108cc57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600280546108e190614118565b80601f016020809104026020016040519081016040528092919081815260200182805461090d90614118565b801561095a5780601f1061092f5761010080835404028352916020019161095a565b820191906000526020600020905b81548152906001019060200180831161093d57829003601f168201915b5050505050905090565b6000610971826001541190565b6109d85760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b60648201526084015b60405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006109ff82611664565b9050806001600160a01b0316836001600160a01b03161415610a6e5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b60648201526084016109cf565b336001600160a01b0382161480610a8a5750610a8a8133610802565b610afc5760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c0000000000000060648201526084016109cf565b610b07838383612665565b505050565b610b146126c1565b600880546001810182556000919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30180546001600160a01b0319166001600160a01b0392909216919091179055565b610b6e6126c1565b7f000000000000000000000000000000000000000000000000000000000000000081610b9960015490565b610ba3919061404b565b1115610be45760405162461bcd60e51b815260206004820152601060248201526f21b0b713ba1036b4b73a1036b7b9329760811b60448201526064016109cf565b6000610c107f000000000000000000000000000000000000000000000000000000000000000083614063565b905060005b81811015610c5957610c47337f000000000000000000000000000000000000000000000000000000000000000061271b565b80610c5181614153565b915050610c15565b50610c847f00000000000000000000000000000000000000000000000000000000000000008361416e565b15610cbc57610cbc33610cb77f00000000000000000000000000000000000000000000000000000000000000008561416e565b61271b565b5050565b610b07838383612735565b610cd36126c1565b6040516323b872dd60e01b81526001600160a01b0383811660048301528281166024830152604482018590528591908216906323b872dd90606401600060405180830381600087803b158015610d2857600080fd5b505af1158015610d3c573d6000803e3d6000fd5b505050505050505050565b610d4f6126c1565b6002600f541415610da25760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109cf565b6002600f55610db081612abb565b506001600f55565b6000610dc3836117e0565b8210610e1c5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b60648201526084016109cf565b6000610e2760015490565b905060008060005b83811015610ed0576000818152600460209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b03169183019190915215610e8157805192505b876001600160a01b0316836001600160a01b03161415610ebd5786841415610eaf575093506108cc92505050565b83610eb981614153565b9450505b5080610ec881614153565b915050610e2f565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b60648201526084016109cf565b600080805b600854811015610fff57600060088281548110610f5457610f546141c4565b60009182526020822001546040516370a0823160e01b81526001600160a01b038881166004830152909116925082906370a082319060240160206040518083038186803b158015610fa457600080fd5b505afa158015610fb8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fdc9190613c38565b1115610fec576001925050610fff565b5080610ff781614153565b915050610f35565b5092915050565b610b07838383604051806020016040528060008152506120db565b336000908152600d60205260409020805460018201546002830154600390930154919290916001600160a01b03909116908061109f5760405162461bcd60e51b815260206004820152601d60248201527f596f7520617265206e6f742062726577696e6720616e797468696e672e00000060448201526064016109cf565b6110aa846001541190565b6110f65760405162461bcd60e51b815260206004820152601a60248201527f31737420706f74696f6e20646f6573206e6f742065786973742e00000000000060448201526064016109cf565b3361110085611664565b6001600160a01b0316146111565760405162461bcd60e51b815260206004820152601f60248201527f31737420706f74696f6e206973206e6f74206f776e656420627920796f752e0060448201526064016109cf565b611161836001541190565b6111ad5760405162461bcd60e51b815260206004820152601a60248201527f326e6420706f74696f6e20646f6573206e6f742065786973742e00000000000060448201526064016109cf565b336111b784611664565b6001600160a01b03161461120d5760405162461bcd60e51b815260206004820152601f60248201527f326e6420706f74696f6e206973206e6f74206f776e656420627920796f752e0060448201526064016109cf565b60006112188561173c565b9050600061122586612114565b905060006112328661173c565b9050600061123f87612114565b90508360011415611342578160011461126a5760405162461bcd60e51b81526004016109cf90613fa7565b8281146112895760405162461bcd60e51b81526004016109cf90613fe4565b660ddb07829fc0003410156112b05760405162461bcd60e51b81526004016109cf90613f2b565b61012c6112bd86436140be565b116112fd5760405162461bcd60e51b815260206004820152601060248201526f29ba34b63610313932bbb4b73397171760811b60448201526064016109cf565b61130687612ca4565b6000888152600b6020526040812080549161132083614153565b9091555050336000908152600d60205260408120600301555050505050505050565b83600214156114c5578160021461136b5760405162461bcd60e51b81526004016109cf90613fa7565b82811461138a5760405162461bcd60e51b81526004016109cf90613fe4565b660ddb07829fc0003410156113b15760405162461bcd60e51b81526004016109cf90613f2b565b610e106113be86436140be565b116113fe5760405162461bcd60e51b815260206004820152601060248201526f29ba34b63610313932bbb4b73397171760811b60448201526064016109cf565b6040516370a0823160e01b81523360048201526000906001600160a01b038816906370a082319060240160206040518083038186803b15801561144057600080fd5b505afa158015611454573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114789190613c38565b116112fd5760405162461bcd60e51b815260206004820152601c60248201527f596f7520646f6e2774206f776e20616e79206172746966616374732e0000000060448201526064016109cf565b836003141561159857816003146114ee5760405162461bcd60e51b81526004016109cf90613fa7565b82600114806114fd5750826003145b806115085750826005145b1561153b5761151883600161404b565b81146115365760405162461bcd60e51b81526004016109cf90613eee565b611564565b6115466001846140be565b81146115645760405162461bcd60e51b81526004016109cf90613eee565b660ddb07829fc00034101561158b5760405162461bcd60e51b81526004016109cf90613f2b565b611c206113be86436140be565b60405162461bcd60e51b8152602060048201526030602482015260008051602061427783398151915260448201526f3234b33332b932b73a103632bb32b61760811b60648201526084016109cf565b60006115f260015490565b821061164c5760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b60648201526084016109cf565b5090565b6116586126c1565b610b0760108383613863565b600061166f82612ed6565b5192915050565b61167e6126c1565b600854811061168c57600080fd5b6008805461169c906001906140be565b815481106116ac576116ac6141c4565b600091825260209091200154600880546001600160a01b0390921691839081106116d8576116d86141c4565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506008805480611717576117176141ae565b600082815260209020810160001990810180546001600160a01b031916905501905550565b6000611749826001541190565b6117655760405162461bcd60e51b81526004016109cf90613eb7565b6000828152600b60205260409020546108cc90600161404b565b6060600880548060200260200160405190810160405280929190818152602001828054801561095a57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116117b9575050505050905090565b60006001600160a01b03821661184c5760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084016109cf565b506001600160a01b03166000908152600560205260409020546001600160801b031690565b6118796126c1565b611883600061307f565b565b611890836001541190565b6118dc5760405162461bcd60e51b815260206004820152601a60248201527f31737420706f74696f6e20646f6573206e6f742065786973742e00000000000060448201526064016109cf565b336118e684611664565b6001600160a01b03161461193c5760405162461bcd60e51b815260206004820152601f60248201527f31737420706f74696f6e206973206e6f74206f776e656420627920796f752e0060448201526064016109cf565b611947826001541190565b6119935760405162461bcd60e51b815260206004820152601a60248201527f326e6420706f74696f6e20646f6573206e6f742065786973742e00000000000060448201526064016109cf565b3361199d83611664565b6001600160a01b0316146119f35760405162461bcd60e51b815260206004820152601f60248201527f326e6420706f74696f6e206973206e6f74206f776e656420627920796f752e0060448201526064016109cf565b6119fb6124fc565b6060015115611a575760405162461bcd60e51b815260206004820152602260248201527f596f7520617265207374696c6c2062726577696e6720736f6d657468696e672e604482015261171760f11b60648201526084016109cf565b611a6081611ae4565b611aa05760405162461bcd60e51b815260206004820152601160248201527024b73b30b634b21030b93a34b330b1ba1760791b60448201526064016109cf565b336000908152600d6020526040902092835560018301919091556002820180546001600160a01b0319166001600160a01b0390921691909117905543600390910155565b600080805b600854811015610fff57836001600160a01b031660088281548110611b1057611b106141c4565b6000918252602090912001546001600160a01b03161415611b345760019150610fff565b80611b3e81614153565b915050611ae9565b60408051808201909152600080825260208201526108cc82612ed6565b6060600380546108e190614118565b6001600160a01b038216331415611bcb5760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c657200000000000060448201526064016109cf565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611c3f6126c1565b6002600f541415611c925760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109cf565b6002600f55604051600090339047908381818185875af1925050503d8060008114611cd9576040519150601f19603f3d011682016040523d82523d6000602084013e611cde565b606091505b5050905080610db05760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b60448201526064016109cf565b60115460ff16611d745760405162461bcd60e51b815260206004820152601c60248201527f5075626c69632073616c6520686173206e6f7420737461727465642e0000000060448201526064016109cf565b7f000000000000000000000000000000000000000000000000000000000000000081611d9f60015490565b611da9919061404b565b1115611ded5760405162461bcd60e51b815260206004820152601360248201527226b0bc1039bab838363c903932b0b1b432b21760691b60448201526064016109cf565b806013541015611e3f5760405162461bcd60e51b815260206004820152601a60248201527f5075626c69632073616c65206c696d697420726561636865642e00000000000060448201526064016109cf565b7f0000000000000000000000000000000000000000000000000000000000000000811115611eb95760405162461bcd60e51b815260206004820152602160248201527f53696e676c65207472616e73616374696f6e206c696d697420726561636865646044820152601760f91b60648201526084016109cf565b6000611ec433610f30565b9050808015611ee65750600582611eda336124f1565b611ee4919061404b565b115b15611fa95760006005611ef8336124f1565b10611f04575081611f27565b600583611f10336124f1565b611f1a919061404b565b611f2491906140be565b90505b3481601254611f369190614077565b1115611fa35760405162461bcd60e51b815260206004820152603660248201527f4e6f7420656e6f756768204554482c2063686f73656e206f6e65732063616e206044820152756d696e74203520706f74696f6e20666f72206672656560501b60648201526084016109cf565b5061209b565b80158015611fca5750600182611fbe336124f1565b611fc8919061404b565b115b1561209b5760006001611fdc336124f1565b10611fe857508161200b565b600183611ff4336124f1565b611ffe919061404b565b61200891906140be565b90505b348160125461201a9190614077565b11156120995760405162461bcd60e51b815260206004820152604260248201527f4e6f7420656e6f756768204554482c20796f7520617265206e6f74207468652060448201527f63686f73656e206f6e652c20312066726565206d696e7420697320616c6c6f77606482015261195960f21b608482015260a4016109cf565b505b6120a5338361271b565b81601360008282546120b791906140be565b90915550505050565b6120c86126c1565b6011805460ff1916911515919091179055565b6120e6848484612735565b6120f2848484846130cf565b61210e5760405162461bcd60e51b81526004016109cf90613f54565b50505050565b6000612121826001541190565b61213d5760405162461bcd60e51b81526004016109cf90613eb7565b6000828152600c60205260409020546108cc90600161404b565b6060612164826001541190565b6121a95760405162461bcd60e51b81526020600482015260166024820152752837ba34b7b7103237b2b9903737ba1032bc34b9ba1760511b60448201526064016109cf565b60006121b48361173c565b905060006121c184612114565b90506121cb6138e3565b60408051808201909152600a8152693d913730b6b2911d101160b11b60208201528152600383116122c35760096122036001846140be565b81548110612213576122136141c4565b90600052602060002001805461222890614118565b80601f016020809104026020016040519081016040528092919081815260200182805461225490614118565b80156122a15780601f10612276576101008083540402835291602001916122a1565b820191906000526020600020905b81548152906001019060200180831161228457829003601f168201915b5050505050816001600981106122b9576122b96141c4565b602002015261238c565b600a6122d06001846140be565b815481106122e0576122e06141c4565b9060005260206000200180546122f590614118565b80601f016020809104026020016040519081016040528092919081815260200182805461232190614118565b801561236e5780601f106123435761010080835404028352916020019161236e565b820191906000526020600020905b81548152906001019060200180831161235157829003601f168201915b505050505081600160098110612386576123866141c4565b60200201525b6040805180820182526002815261202360f01b6020820152908201526123b1856131dd565b60608201526040805160c08101909152609b808252614297602083013960808201526123db6132da565b6123e4836131dd565b6123ed856131dd565b6040516020016123ff93929190613d74565b60408051808303601f1901815291815260a08301919091528051606081019091526030808252614207602083013960c082015261243b836131dd565b60e08201526040805180820190915260038152627d5d7d60e81b6020820152816008602090810291909101919091528151828201516040808501516060860151608087015160a088015160c089015160e08a01516101008b0151965160009a6124a79a99989101613cb2565b604051602081830303815290604052905060006124c3826132e9565b9050806040516020016124d69190613dd5565b60408051601f19818403018152919052979650505050505050565b60006108cc8261344e565b6125306040518060800160405280600081526020016000815260200160006001600160a01b03168152602001600081525090565b50336000908152600d602090815260409182902082516080810184528154815260018201549281019290925260028101546001600160a01b031692820192909252600390910154606082015290565b6125876124fc565b606001516125d75760405162461bcd60e51b815260206004820152601d60248201527f596f7520617265206e6f742062726577696e6720616e797468696e672e00000060448201526064016109cf565b336000908152600d6020526040812060030155565b6125f46126c1565b6001600160a01b0381166126595760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109cf565b6126628161307f565b50565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000546001600160a01b031633146118835760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109cf565b610cbc8282604051806020016040528060008152506134ec565b600061274082612ed6565b80519091506000906001600160a01b0316336001600160a01b0316148061277757503361276c84610964565b6001600160a01b0316145b80612789575081516127899033610802565b9050806127f35760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016109cf565b846001600160a01b031682600001516001600160a01b0316146128675760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b60648201526084016109cf565b6001600160a01b0384166128cb5760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016109cf565b6128db6000848460000151612665565b6001600160a01b038516600090815260056020526040812080546001929061290d9084906001600160801b0316614096565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b0386166000908152600560205260408120805460019450909261295991859116614020565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b0380871682526001600160401b03428116602080850191825260008981526004909152948520935184549151909216600160a01b026001600160e01b031990911691909216171790556129e084600161404b565b6000818152600460205260409020549091506001600160a01b0316612a7157612a0a816001541190565b15612a715760408051808201825284516001600160a01b0390811682526020808701516001600160401b039081168285019081526000878152600490935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b600e5481612b0b5760405162461bcd60e51b815260206004820152601860248201527f7175616e74697479206d757374206265206e6f6e7a65726f000000000000000060448201526064016109cf565b60006001612b19848461404b565b612b2391906140be565b9050612b5060017f00000000000000000000000000000000000000000000000000000000000000006140be565b811115612b8557612b8260017f00000000000000000000000000000000000000000000000000000000000000006140be565b90505b612b90816001541190565b612beb5760405162461bcd60e51b815260206004820152602660248201527f6e6f7420656e6f756768206d696e7465642079657420666f722074686973206360448201526506c65616e75760d41b60648201526084016109cf565b815b818111612c90576000818152600460205260409020546001600160a01b0316612c7e576000612c1b82612ed6565b60408051808201825282516001600160a01b0390811682526020938401516001600160401b039081168584019081526000888152600490965293909420915182549351909416600160a01b026001600160e01b0319909316931692909217179055505b80612c8881614153565b915050612bed565b50612c9c81600161404b565b600e55505050565b612caf816001541190565b612ccb5760405162461bcd60e51b81526004016109cf90613eb7565b6000612cd682611664565b905061dead6000612ce684612ed6565b9050612cf86000858360000151612665565b6001600160a01b0383166000908152600560205260408120805460019290612d2a9084906001600160801b0316614096565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b03841660009081526005602052604081208054600194509092612d7691859116614020565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b0380851682526001600160401b03428116602080850191825260008a81526004909152948520935184549151909216600160a01b026001600160e01b03199091169190921617179055612dfd85600161404b565b6000818152600460205260409020549091506001600160a01b0316612e8e57612e27816001541190565b15612e8e5760408051808201825283516001600160a01b0390811682526020808601516001600160401b039081168285019081526000878152600490935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b84836001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b6040805180820190915260008082526020820152612ef5826001541190565b612f545760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b60648201526084016109cf565b60007f00000000000000000000000000000000000000000000000000000000000000008310612fb557612fa77f0000000000000000000000000000000000000000000000000000000000000000846140be565b612fb290600161404b565b90505b825b81811061301e576000818152600460209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b0316918301919091521561300b57949350505050565b508061301681614101565b915050612fb7565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b60648201526084016109cf565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006001600160a01b0384163b156131d157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613113903390899088908890600401613e1a565b602060405180830381600087803b15801561312d57600080fd5b505af192505050801561315d575060408051601f3d908101601f1916820190925261315a91810190613b91565b60015b6131b7573d80801561318b576040519150601f19603f3d011682016040523d82523d6000602084013e613190565b606091505b5080516131af5760405162461bcd60e51b81526004016109cf90613f54565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506131d5565b5060015b949350505050565b6060816132015750506040805180820190915260018152600360fc1b602082015290565b8160005b811561322b578061321581614153565b91506132249050600a83614063565b9150613205565b6000816001600160401b03811115613245576132456141da565b6040519080825280601f01601f19166020018201604052801561326f576020820181803683370190505b5090505b84156131d5576132846001836140be565b9150613291600a8661416e565b61329c90603061404b565b60f81b8183815181106132b1576132b16141c4565b60200101906001600160f81b031916908160001a9053506132d3600a86614063565b9450613273565b6060601080546108e190614118565b805160609080613309575050604080516020810190915260008152919050565b6000600361331883600261404b565b6133229190614063565b61332d906004614077565b9050600061333c82602061404b565b6001600160401b03811115613353576133536141da565b6040519080825280601f01601f19166020018201604052801561337d576020820181803683370190505b5090506000604051806060016040528060408152602001614237604091399050600181016020830160005b86811015613409576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b8352600490920191016133a8565b506003860660018114613423576002811461343457613440565b613d3d60f01b600119830152613440565b603d60f81b6000198301525b505050918152949350505050565b60006001600160a01b0382166134c05760405162461bcd60e51b815260206004820152603160248201527f455243373231413a206e756d626572206d696e74656420717565727920666f7260448201527020746865207a65726f206164647265737360781b60648201526084016109cf565b506001600160a01b0316600090815260056020526040902054600160801b90046001600160801b031690565b6001546001600160a01b03841661354f5760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016109cf565b61355a816001541190565b156135a75760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e74656400000060448201526064016109cf565b7f00000000000000000000000000000000000000000000000000000000000000008311156136225760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b60648201526084016109cf565b6001600160a01b0384166000908152600560209081526040918290208251808401845290546001600160801b038082168352600160801b909104169181019190915281518083019092528051909190819061367e908790614020565b6001600160801b0316815260200185836020015161369c9190614020565b6001600160801b039081169091526001600160a01b0380881660008181526005602090815260408083208751978301518716600160801b029790961696909617909455845180860186529182526001600160401b034281168386019081528883526004909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b85811015613858576000818561374933434061404b565b613753919061404b565b61375d919061404b565b9050600061376c60068361416e565b905080600c600061377d868a61404b565b8152602081019190915260400160002055660aa87bee538000341080156137a5575060038110155b156137d5576137b56003826140be565b600c60006137c3868a61404b565b81526020810191909152604001600020555b60405184906001600160a01b038b16906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a461381a60008a868a6130cf565b6138365760405162461bcd60e51b81526004016109cf90613f54565b8361384081614153565b9450505050808061385090614153565b915050613732565b506001819055612ab3565b82805461386f90614118565b90600052602060002090601f01602090048101928261389157600085556138d7565b82601f106138aa5782800160ff198235161785556138d7565b828001600101855582156138d7579182015b828111156138d75782358255916020019190600101906138bc565b5061164c92915061390b565b6040518061012001604052806009905b60608152602001906001900390816138f35790505090565b5b8082111561164c576000815560010161390c565b80356001600160a01b038116811461393757600080fd5b919050565b8035801515811461393757600080fd5b60006020828403121561395e57600080fd5b61396782613920565b9392505050565b6000806040838503121561398157600080fd5b61398a83613920565b915061399860208401613920565b90509250929050565b6000806000606084860312156139b657600080fd5b6139bf84613920565b92506139cd60208501613920565b9150604084013590509250925092565b600080600080608085870312156139f357600080fd5b6139fc85613920565b9350613a0a60208601613920565b92506040850135915060608501356001600160401b0380821115613a2d57600080fd5b818701915087601f830112613a4157600080fd5b813581811115613a5357613a536141da565b604051601f8201601f19908116603f01168101908382118183101715613a7b57613a7b6141da565b816040528281528a6020848701011115613a9457600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215613acb57600080fd5b613ad483613920565b91506139986020840161393c565b60008060408385031215613af557600080fd5b613afe83613920565b946020939093013593505050565b60008060008060808587031215613b2257600080fd5b613b2b85613920565b935060208501359250613b4060408601613920565b9150613b4e60608601613920565b905092959194509250565b600060208284031215613b6b57600080fd5b6139678261393c565b600060208284031215613b8657600080fd5b8135613967816141f0565b600060208284031215613ba357600080fd5b8151613967816141f0565b60008060208385031215613bc157600080fd5b82356001600160401b0380821115613bd857600080fd5b818501915085601f830112613bec57600080fd5b813581811115613bfb57600080fd5b866020828501011115613c0d57600080fd5b60209290920196919550909350505050565b600060208284031215613c3157600080fd5b5035919050565b600060208284031215613c4a57600080fd5b5051919050565b600080600060608486031215613c6657600080fd5b8335925060208401359150613c7d60408501613920565b90509250925092565b60008151808452613c9e8160208601602086016140d5565b601f01601f19169290920160200192915050565b60008a51613cc4818460208f016140d5565b8a5190830190613cd8818360208f016140d5565b8a51613cea8183850160208f016140d5565b8a51929091010190613d00818360208d016140d5565b8851613d128183850160208d016140d5565b8851929091010190613d28818360208b016140d5565b8651613d3a8183850160208b016140d5565b8651929091010190613d508183602089016140d5565b8451613d6281838501602089016140d5565b9101019b9a5050505050505050505050565b60008451613d868184602089016140d5565b845190830190613d9a8183602089016140d5565b602d60f81b91019081528351613db78160018401602088016140d5565b632e706e6760e01b6001929091019182015260050195945050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251613e0d81601d8501602087016140d5565b91909101601d0192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613e4d90830184613c86565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015613e985783516001600160a01b031683529284019291840191600101613e73565b50909695505050505050565b6020815260006139676020830184613c86565b6020808252601b908201527f5468697320706f74696f6e20646f6573206e6f742065786973742e0000000000604082015260600190565b6020808252602f9082015260008051602061427783398151915260408201526e3a3432903934b3b43a103a3cb8329760891b606082015260800190565b6020808252600f908201526e2737ba1032b737bab3b41022aa241760891b604082015260600190565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b6020808252602f9082015260008051602061427783398151915260408201526e3a34329039b0b6b2903632bb32b61760891b606082015260800190565b6020808252602e9082015260008051602061427783398151915260408201526d3a34329039b0b6b2903a3cb8329760911b606082015260800190565b60006001600160801b0380831681851680830382111561404257614042614182565b01949350505050565b6000821982111561405e5761405e614182565b500190565b60008261407257614072614198565b500490565b600081600019048311821515161561409157614091614182565b500290565b60006001600160801b03838116908316818110156140b6576140b6614182565b039392505050565b6000828210156140d0576140d0614182565b500390565b60005b838110156140f05781810151838201526020016140d8565b8381111561210e5750506000910152565b60008161411057614110614182565b506000190190565b600181811c9082168061412c57607f821691505b6020821081141561414d57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561416757614167614182565b5060010190565b60008261417d5761417d614198565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461266257600080fdfe222c2261747472696275746573223a205b7b2274726169745f74797065223a20224c6576656c222c2276616c7565223a4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f42726577696e67206661696c65642c2074727920706f74696f6e207769746820222c226465736372697074696f6e223a20224d7574616e7420506f74696f6e20697320612066726565206d696e7420636f6c6c656374696f6e20666f72207468652063686f73656e206f6e65732e2048616e646c65207769746820636172652e20496e737472756374696f6e7320746f20666f6c6c6f77206f6e206f7572206f6666696369616c20776562736974652e222c22696d616765223a22a2646970667358221220ae3695a1ecb713fedd8b17bec742e0b137c33ef388d6800710111f6f8cd85b1a64736f6c63430008070033
Deployed Bytecode
0x6080604052600436106102725760003560e01c806370a082311161014f578063b3ab66b0116100c1578063d7224ba01161007a578063d7224ba014610760578063dc33e68114610776578063e7d729a714610796578063e985e9c5146107e7578063ea8a1af014610830578063f2fde38b1461084557600080fd5b8063b3ab66b0146106b3578063b423fe67146106c6578063b6c693e5146106e6578063b88d4fde14610700578063c588ff8b14610720578063c87b56dd1461074057600080fd5b80639231ab2a116101135780639231ab2a146105f057806395d89b411461063d5780639dc74e6314610652578063a22cb46514610668578063a945bf8014610688578063ac4460021461069e57600080fd5b806370a082311461055d578063715018a61461057d57806377ac5eef146105925780637abeb806146105b25780638da5cb5b146105d257600080fd5b80633ba5ae24116101e85780634f6ccce7116101ac5780634f6ccce71461049b57806355f804b3146104bb5780636352211e146104db5780636814e3a5146104fb5780636d5e30321461051b578063703fb2f11461053b57600080fd5b80633ba5ae24146104075780633f9577791461043b57806342842e0e1461045b578063499e8eec1461047b5780634e71d92d1461049357600080fd5b80631342ff4c1161023a5780631342ff4c1461034857806318160ddd1461036857806323b872dd14610387578063295a9142146103a75780632d20fb60146103c75780632f745c59146103e757600080fd5b806301ffc9a71461027757806306fdde03146102ac578063081812fc146102ce578063095ea7b3146103065780630b6ed23114610328575b600080fd5b34801561028357600080fd5b50610297610292366004613b74565b610865565b60405190151581526020015b60405180910390f35b3480156102b857600080fd5b506102c16108d2565b6040516102a39190613ea4565b3480156102da57600080fd5b506102ee6102e9366004613c1f565b610964565b6040516001600160a01b0390911681526020016102a3565b34801561031257600080fd5b50610326610321366004613ae2565b6109f4565b005b34801561033457600080fd5b5061032661034336600461394c565b610b0c565b34801561035457600080fd5b50610326610363366004613c1f565b610b66565b34801561037457600080fd5b506001545b6040519081526020016102a3565b34801561039357600080fd5b506103266103a23660046139a1565b610cc0565b3480156103b357600080fd5b506103266103c2366004613b0c565b610ccb565b3480156103d357600080fd5b506103266103e2366004613c1f565b610d47565b3480156103f357600080fd5b50610379610402366004613ae2565b610db8565b34801561041357600080fd5b506103797f000000000000000000000000000000000000000000000000000000000000000a81565b34801561044757600080fd5b5061029761045636600461394c565b610f30565b34801561046757600080fd5b506103266104763660046139a1565b611006565b34801561048757600080fd5b5060115460ff16610297565b610326611021565b3480156104a757600080fd5b506103796104b6366004613c1f565b6115e7565b3480156104c757600080fd5b506103266104d6366004613bae565b611650565b3480156104e757600080fd5b506102ee6104f6366004613c1f565b611664565b34801561050757600080fd5b50610326610516366004613c1f565b611676565b34801561052757600080fd5b50610379610536366004613c1f565b61173c565b34801561054757600080fd5b5061055061177f565b6040516102a39190613e57565b34801561056957600080fd5b5061037961057836600461394c565b6117e0565b34801561058957600080fd5b50610326611871565b34801561059e57600080fd5b506103266105ad366004613c51565b611885565b3480156105be57600080fd5b506102976105cd36600461394c565b611ae4565b3480156105de57600080fd5b506000546001600160a01b03166102ee565b3480156105fc57600080fd5b5061061061060b366004613c1f565b611b46565b6040805182516001600160a01b031681526020928301516001600160401b031692810192909252016102a3565b34801561064957600080fd5b506102c1611b63565b34801561065e57600080fd5b5061037960135481565b34801561067457600080fd5b50610326610683366004613ab8565b611b72565b34801561069457600080fd5b5061037960125481565b3480156106aa57600080fd5b50610326611c37565b6103266106c1366004613c1f565b611d22565b3480156106d257600080fd5b506103266106e1366004613b59565b6120c0565b3480156106f257600080fd5b506011546102979060ff1681565b34801561070c57600080fd5b5061032661071b3660046139dd565b6120db565b34801561072c57600080fd5b5061037961073b366004613c1f565b612114565b34801561074c57600080fd5b506102c161075b366004613c1f565b612157565b34801561076c57600080fd5b50610379600e5481565b34801561078257600080fd5b5061037961079136600461394c565b6124f1565b3480156107a257600080fd5b506107ab6124fc565b6040516102a3919081518152602080830151908201526040808301516001600160a01b0316908201526060918201519181019190915260800190565b3480156107f357600080fd5b5061029761080236600461396e565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561083c57600080fd5b5061032661257f565b34801561085157600080fd5b5061032661086036600461394c565b6125ec565b60006001600160e01b031982166380ac58cd60e01b148061089657506001600160e01b03198216635b5e139f60e01b145b806108b157506001600160e01b0319821663780e9d6360e01b145b806108cc57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600280546108e190614118565b80601f016020809104026020016040519081016040528092919081815260200182805461090d90614118565b801561095a5780601f1061092f5761010080835404028352916020019161095a565b820191906000526020600020905b81548152906001019060200180831161093d57829003601f168201915b5050505050905090565b6000610971826001541190565b6109d85760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b60648201526084015b60405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006109ff82611664565b9050806001600160a01b0316836001600160a01b03161415610a6e5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b60648201526084016109cf565b336001600160a01b0382161480610a8a5750610a8a8133610802565b610afc5760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c0000000000000060648201526084016109cf565b610b07838383612665565b505050565b610b146126c1565b600880546001810182556000919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30180546001600160a01b0319166001600160a01b0392909216919091179055565b610b6e6126c1565b7f0000000000000000000000000000000000000000000000000000000000001a0a81610b9960015490565b610ba3919061404b565b1115610be45760405162461bcd60e51b815260206004820152601060248201526f21b0b713ba1036b4b73a1036b7b9329760811b60448201526064016109cf565b6000610c107f000000000000000000000000000000000000000000000000000000000000000a83614063565b905060005b81811015610c5957610c47337f000000000000000000000000000000000000000000000000000000000000000a61271b565b80610c5181614153565b915050610c15565b50610c847f000000000000000000000000000000000000000000000000000000000000000a8361416e565b15610cbc57610cbc33610cb77f000000000000000000000000000000000000000000000000000000000000000a8561416e565b61271b565b5050565b610b07838383612735565b610cd36126c1565b6040516323b872dd60e01b81526001600160a01b0383811660048301528281166024830152604482018590528591908216906323b872dd90606401600060405180830381600087803b158015610d2857600080fd5b505af1158015610d3c573d6000803e3d6000fd5b505050505050505050565b610d4f6126c1565b6002600f541415610da25760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109cf565b6002600f55610db081612abb565b506001600f55565b6000610dc3836117e0565b8210610e1c5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b60648201526084016109cf565b6000610e2760015490565b905060008060005b83811015610ed0576000818152600460209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b03169183019190915215610e8157805192505b876001600160a01b0316836001600160a01b03161415610ebd5786841415610eaf575093506108cc92505050565b83610eb981614153565b9450505b5080610ec881614153565b915050610e2f565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b60648201526084016109cf565b600080805b600854811015610fff57600060088281548110610f5457610f546141c4565b60009182526020822001546040516370a0823160e01b81526001600160a01b038881166004830152909116925082906370a082319060240160206040518083038186803b158015610fa457600080fd5b505afa158015610fb8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fdc9190613c38565b1115610fec576001925050610fff565b5080610ff781614153565b915050610f35565b5092915050565b610b07838383604051806020016040528060008152506120db565b336000908152600d60205260409020805460018201546002830154600390930154919290916001600160a01b03909116908061109f5760405162461bcd60e51b815260206004820152601d60248201527f596f7520617265206e6f742062726577696e6720616e797468696e672e00000060448201526064016109cf565b6110aa846001541190565b6110f65760405162461bcd60e51b815260206004820152601a60248201527f31737420706f74696f6e20646f6573206e6f742065786973742e00000000000060448201526064016109cf565b3361110085611664565b6001600160a01b0316146111565760405162461bcd60e51b815260206004820152601f60248201527f31737420706f74696f6e206973206e6f74206f776e656420627920796f752e0060448201526064016109cf565b611161836001541190565b6111ad5760405162461bcd60e51b815260206004820152601a60248201527f326e6420706f74696f6e20646f6573206e6f742065786973742e00000000000060448201526064016109cf565b336111b784611664565b6001600160a01b03161461120d5760405162461bcd60e51b815260206004820152601f60248201527f326e6420706f74696f6e206973206e6f74206f776e656420627920796f752e0060448201526064016109cf565b60006112188561173c565b9050600061122586612114565b905060006112328661173c565b9050600061123f87612114565b90508360011415611342578160011461126a5760405162461bcd60e51b81526004016109cf90613fa7565b8281146112895760405162461bcd60e51b81526004016109cf90613fe4565b660ddb07829fc0003410156112b05760405162461bcd60e51b81526004016109cf90613f2b565b61012c6112bd86436140be565b116112fd5760405162461bcd60e51b815260206004820152601060248201526f29ba34b63610313932bbb4b73397171760811b60448201526064016109cf565b61130687612ca4565b6000888152600b6020526040812080549161132083614153565b9091555050336000908152600d60205260408120600301555050505050505050565b83600214156114c5578160021461136b5760405162461bcd60e51b81526004016109cf90613fa7565b82811461138a5760405162461bcd60e51b81526004016109cf90613fe4565b660ddb07829fc0003410156113b15760405162461bcd60e51b81526004016109cf90613f2b565b610e106113be86436140be565b116113fe5760405162461bcd60e51b815260206004820152601060248201526f29ba34b63610313932bbb4b73397171760811b60448201526064016109cf565b6040516370a0823160e01b81523360048201526000906001600160a01b038816906370a082319060240160206040518083038186803b15801561144057600080fd5b505afa158015611454573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114789190613c38565b116112fd5760405162461bcd60e51b815260206004820152601c60248201527f596f7520646f6e2774206f776e20616e79206172746966616374732e0000000060448201526064016109cf565b836003141561159857816003146114ee5760405162461bcd60e51b81526004016109cf90613fa7565b82600114806114fd5750826003145b806115085750826005145b1561153b5761151883600161404b565b81146115365760405162461bcd60e51b81526004016109cf90613eee565b611564565b6115466001846140be565b81146115645760405162461bcd60e51b81526004016109cf90613eee565b660ddb07829fc00034101561158b5760405162461bcd60e51b81526004016109cf90613f2b565b611c206113be86436140be565b60405162461bcd60e51b8152602060048201526030602482015260008051602061427783398151915260448201526f3234b33332b932b73a103632bb32b61760811b60648201526084016109cf565b60006115f260015490565b821061164c5760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b60648201526084016109cf565b5090565b6116586126c1565b610b0760108383613863565b600061166f82612ed6565b5192915050565b61167e6126c1565b600854811061168c57600080fd5b6008805461169c906001906140be565b815481106116ac576116ac6141c4565b600091825260209091200154600880546001600160a01b0390921691839081106116d8576116d86141c4565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506008805480611717576117176141ae565b600082815260209020810160001990810180546001600160a01b031916905501905550565b6000611749826001541190565b6117655760405162461bcd60e51b81526004016109cf90613eb7565b6000828152600b60205260409020546108cc90600161404b565b6060600880548060200260200160405190810160405280929190818152602001828054801561095a57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116117b9575050505050905090565b60006001600160a01b03821661184c5760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084016109cf565b506001600160a01b03166000908152600560205260409020546001600160801b031690565b6118796126c1565b611883600061307f565b565b611890836001541190565b6118dc5760405162461bcd60e51b815260206004820152601a60248201527f31737420706f74696f6e20646f6573206e6f742065786973742e00000000000060448201526064016109cf565b336118e684611664565b6001600160a01b03161461193c5760405162461bcd60e51b815260206004820152601f60248201527f31737420706f74696f6e206973206e6f74206f776e656420627920796f752e0060448201526064016109cf565b611947826001541190565b6119935760405162461bcd60e51b815260206004820152601a60248201527f326e6420706f74696f6e20646f6573206e6f742065786973742e00000000000060448201526064016109cf565b3361199d83611664565b6001600160a01b0316146119f35760405162461bcd60e51b815260206004820152601f60248201527f326e6420706f74696f6e206973206e6f74206f776e656420627920796f752e0060448201526064016109cf565b6119fb6124fc565b6060015115611a575760405162461bcd60e51b815260206004820152602260248201527f596f7520617265207374696c6c2062726577696e6720736f6d657468696e672e604482015261171760f11b60648201526084016109cf565b611a6081611ae4565b611aa05760405162461bcd60e51b815260206004820152601160248201527024b73b30b634b21030b93a34b330b1ba1760791b60448201526064016109cf565b336000908152600d6020526040902092835560018301919091556002820180546001600160a01b0319166001600160a01b0390921691909117905543600390910155565b600080805b600854811015610fff57836001600160a01b031660088281548110611b1057611b106141c4565b6000918252602090912001546001600160a01b03161415611b345760019150610fff565b80611b3e81614153565b915050611ae9565b60408051808201909152600080825260208201526108cc82612ed6565b6060600380546108e190614118565b6001600160a01b038216331415611bcb5760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c657200000000000060448201526064016109cf565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611c3f6126c1565b6002600f541415611c925760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109cf565b6002600f55604051600090339047908381818185875af1925050503d8060008114611cd9576040519150601f19603f3d011682016040523d82523d6000602084013e611cde565b606091505b5050905080610db05760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b60448201526064016109cf565b60115460ff16611d745760405162461bcd60e51b815260206004820152601c60248201527f5075626c69632073616c6520686173206e6f7420737461727465642e0000000060448201526064016109cf565b7f0000000000000000000000000000000000000000000000000000000000001a0a81611d9f60015490565b611da9919061404b565b1115611ded5760405162461bcd60e51b815260206004820152601360248201527226b0bc1039bab838363c903932b0b1b432b21760691b60448201526064016109cf565b806013541015611e3f5760405162461bcd60e51b815260206004820152601a60248201527f5075626c69632073616c65206c696d697420726561636865642e00000000000060448201526064016109cf565b7f000000000000000000000000000000000000000000000000000000000000000a811115611eb95760405162461bcd60e51b815260206004820152602160248201527f53696e676c65207472616e73616374696f6e206c696d697420726561636865646044820152601760f91b60648201526084016109cf565b6000611ec433610f30565b9050808015611ee65750600582611eda336124f1565b611ee4919061404b565b115b15611fa95760006005611ef8336124f1565b10611f04575081611f27565b600583611f10336124f1565b611f1a919061404b565b611f2491906140be565b90505b3481601254611f369190614077565b1115611fa35760405162461bcd60e51b815260206004820152603660248201527f4e6f7420656e6f756768204554482c2063686f73656e206f6e65732063616e206044820152756d696e74203520706f74696f6e20666f72206672656560501b60648201526084016109cf565b5061209b565b80158015611fca5750600182611fbe336124f1565b611fc8919061404b565b115b1561209b5760006001611fdc336124f1565b10611fe857508161200b565b600183611ff4336124f1565b611ffe919061404b565b61200891906140be565b90505b348160125461201a9190614077565b11156120995760405162461bcd60e51b815260206004820152604260248201527f4e6f7420656e6f756768204554482c20796f7520617265206e6f74207468652060448201527f63686f73656e206f6e652c20312066726565206d696e7420697320616c6c6f77606482015261195960f21b608482015260a4016109cf565b505b6120a5338361271b565b81601360008282546120b791906140be565b90915550505050565b6120c86126c1565b6011805460ff1916911515919091179055565b6120e6848484612735565b6120f2848484846130cf565b61210e5760405162461bcd60e51b81526004016109cf90613f54565b50505050565b6000612121826001541190565b61213d5760405162461bcd60e51b81526004016109cf90613eb7565b6000828152600c60205260409020546108cc90600161404b565b6060612164826001541190565b6121a95760405162461bcd60e51b81526020600482015260166024820152752837ba34b7b7103237b2b9903737ba1032bc34b9ba1760511b60448201526064016109cf565b60006121b48361173c565b905060006121c184612114565b90506121cb6138e3565b60408051808201909152600a8152693d913730b6b2911d101160b11b60208201528152600383116122c35760096122036001846140be565b81548110612213576122136141c4565b90600052602060002001805461222890614118565b80601f016020809104026020016040519081016040528092919081815260200182805461225490614118565b80156122a15780601f10612276576101008083540402835291602001916122a1565b820191906000526020600020905b81548152906001019060200180831161228457829003601f168201915b5050505050816001600981106122b9576122b96141c4565b602002015261238c565b600a6122d06001846140be565b815481106122e0576122e06141c4565b9060005260206000200180546122f590614118565b80601f016020809104026020016040519081016040528092919081815260200182805461232190614118565b801561236e5780601f106123435761010080835404028352916020019161236e565b820191906000526020600020905b81548152906001019060200180831161235157829003601f168201915b505050505081600160098110612386576123866141c4565b60200201525b6040805180820182526002815261202360f01b6020820152908201526123b1856131dd565b60608201526040805160c08101909152609b808252614297602083013960808201526123db6132da565b6123e4836131dd565b6123ed856131dd565b6040516020016123ff93929190613d74565b60408051808303601f1901815291815260a08301919091528051606081019091526030808252614207602083013960c082015261243b836131dd565b60e08201526040805180820190915260038152627d5d7d60e81b6020820152816008602090810291909101919091528151828201516040808501516060860151608087015160a088015160c089015160e08a01516101008b0151965160009a6124a79a99989101613cb2565b604051602081830303815290604052905060006124c3826132e9565b9050806040516020016124d69190613dd5565b60408051601f19818403018152919052979650505050505050565b60006108cc8261344e565b6125306040518060800160405280600081526020016000815260200160006001600160a01b03168152602001600081525090565b50336000908152600d602090815260409182902082516080810184528154815260018201549281019290925260028101546001600160a01b031692820192909252600390910154606082015290565b6125876124fc565b606001516125d75760405162461bcd60e51b815260206004820152601d60248201527f596f7520617265206e6f742062726577696e6720616e797468696e672e00000060448201526064016109cf565b336000908152600d6020526040812060030155565b6125f46126c1565b6001600160a01b0381166126595760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109cf565b6126628161307f565b50565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000546001600160a01b031633146118835760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109cf565b610cbc8282604051806020016040528060008152506134ec565b600061274082612ed6565b80519091506000906001600160a01b0316336001600160a01b0316148061277757503361276c84610964565b6001600160a01b0316145b80612789575081516127899033610802565b9050806127f35760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016109cf565b846001600160a01b031682600001516001600160a01b0316146128675760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b60648201526084016109cf565b6001600160a01b0384166128cb5760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016109cf565b6128db6000848460000151612665565b6001600160a01b038516600090815260056020526040812080546001929061290d9084906001600160801b0316614096565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b0386166000908152600560205260408120805460019450909261295991859116614020565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b0380871682526001600160401b03428116602080850191825260008981526004909152948520935184549151909216600160a01b026001600160e01b031990911691909216171790556129e084600161404b565b6000818152600460205260409020549091506001600160a01b0316612a7157612a0a816001541190565b15612a715760408051808201825284516001600160a01b0390811682526020808701516001600160401b039081168285019081526000878152600490935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b600e5481612b0b5760405162461bcd60e51b815260206004820152601860248201527f7175616e74697479206d757374206265206e6f6e7a65726f000000000000000060448201526064016109cf565b60006001612b19848461404b565b612b2391906140be565b9050612b5060017f0000000000000000000000000000000000000000000000000000000000001a0a6140be565b811115612b8557612b8260017f0000000000000000000000000000000000000000000000000000000000001a0a6140be565b90505b612b90816001541190565b612beb5760405162461bcd60e51b815260206004820152602660248201527f6e6f7420656e6f756768206d696e7465642079657420666f722074686973206360448201526506c65616e75760d41b60648201526084016109cf565b815b818111612c90576000818152600460205260409020546001600160a01b0316612c7e576000612c1b82612ed6565b60408051808201825282516001600160a01b0390811682526020938401516001600160401b039081168584019081526000888152600490965293909420915182549351909416600160a01b026001600160e01b0319909316931692909217179055505b80612c8881614153565b915050612bed565b50612c9c81600161404b565b600e55505050565b612caf816001541190565b612ccb5760405162461bcd60e51b81526004016109cf90613eb7565b6000612cd682611664565b905061dead6000612ce684612ed6565b9050612cf86000858360000151612665565b6001600160a01b0383166000908152600560205260408120805460019290612d2a9084906001600160801b0316614096565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b03841660009081526005602052604081208054600194509092612d7691859116614020565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b0380851682526001600160401b03428116602080850191825260008a81526004909152948520935184549151909216600160a01b026001600160e01b03199091169190921617179055612dfd85600161404b565b6000818152600460205260409020549091506001600160a01b0316612e8e57612e27816001541190565b15612e8e5760408051808201825283516001600160a01b0390811682526020808601516001600160401b039081168285019081526000878152600490935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b84836001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b6040805180820190915260008082526020820152612ef5826001541190565b612f545760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b60648201526084016109cf565b60007f000000000000000000000000000000000000000000000000000000000000000a8310612fb557612fa77f000000000000000000000000000000000000000000000000000000000000000a846140be565b612fb290600161404b565b90505b825b81811061301e576000818152600460209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b0316918301919091521561300b57949350505050565b508061301681614101565b915050612fb7565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b60648201526084016109cf565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006001600160a01b0384163b156131d157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613113903390899088908890600401613e1a565b602060405180830381600087803b15801561312d57600080fd5b505af192505050801561315d575060408051601f3d908101601f1916820190925261315a91810190613b91565b60015b6131b7573d80801561318b576040519150601f19603f3d011682016040523d82523d6000602084013e613190565b606091505b5080516131af5760405162461bcd60e51b81526004016109cf90613f54565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506131d5565b5060015b949350505050565b6060816132015750506040805180820190915260018152600360fc1b602082015290565b8160005b811561322b578061321581614153565b91506132249050600a83614063565b9150613205565b6000816001600160401b03811115613245576132456141da565b6040519080825280601f01601f19166020018201604052801561326f576020820181803683370190505b5090505b84156131d5576132846001836140be565b9150613291600a8661416e565b61329c90603061404b565b60f81b8183815181106132b1576132b16141c4565b60200101906001600160f81b031916908160001a9053506132d3600a86614063565b9450613273565b6060601080546108e190614118565b805160609080613309575050604080516020810190915260008152919050565b6000600361331883600261404b565b6133229190614063565b61332d906004614077565b9050600061333c82602061404b565b6001600160401b03811115613353576133536141da565b6040519080825280601f01601f19166020018201604052801561337d576020820181803683370190505b5090506000604051806060016040528060408152602001614237604091399050600181016020830160005b86811015613409576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b8352600490920191016133a8565b506003860660018114613423576002811461343457613440565b613d3d60f01b600119830152613440565b603d60f81b6000198301525b505050918152949350505050565b60006001600160a01b0382166134c05760405162461bcd60e51b815260206004820152603160248201527f455243373231413a206e756d626572206d696e74656420717565727920666f7260448201527020746865207a65726f206164647265737360781b60648201526084016109cf565b506001600160a01b0316600090815260056020526040902054600160801b90046001600160801b031690565b6001546001600160a01b03841661354f5760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016109cf565b61355a816001541190565b156135a75760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e74656400000060448201526064016109cf565b7f000000000000000000000000000000000000000000000000000000000000000a8311156136225760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b60648201526084016109cf565b6001600160a01b0384166000908152600560209081526040918290208251808401845290546001600160801b038082168352600160801b909104169181019190915281518083019092528051909190819061367e908790614020565b6001600160801b0316815260200185836020015161369c9190614020565b6001600160801b039081169091526001600160a01b0380881660008181526005602090815260408083208751978301518716600160801b029790961696909617909455845180860186529182526001600160401b034281168386019081528883526004909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b85811015613858576000818561374933434061404b565b613753919061404b565b61375d919061404b565b9050600061376c60068361416e565b905080600c600061377d868a61404b565b8152602081019190915260400160002055660aa87bee538000341080156137a5575060038110155b156137d5576137b56003826140be565b600c60006137c3868a61404b565b81526020810191909152604001600020555b60405184906001600160a01b038b16906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a461381a60008a868a6130cf565b6138365760405162461bcd60e51b81526004016109cf90613f54565b8361384081614153565b9450505050808061385090614153565b915050613732565b506001819055612ab3565b82805461386f90614118565b90600052602060002090601f01602090048101928261389157600085556138d7565b82601f106138aa5782800160ff198235161785556138d7565b828001600101855582156138d7579182015b828111156138d75782358255916020019190600101906138bc565b5061164c92915061390b565b6040518061012001604052806009905b60608152602001906001900390816138f35790505090565b5b8082111561164c576000815560010161390c565b80356001600160a01b038116811461393757600080fd5b919050565b8035801515811461393757600080fd5b60006020828403121561395e57600080fd5b61396782613920565b9392505050565b6000806040838503121561398157600080fd5b61398a83613920565b915061399860208401613920565b90509250929050565b6000806000606084860312156139b657600080fd5b6139bf84613920565b92506139cd60208501613920565b9150604084013590509250925092565b600080600080608085870312156139f357600080fd5b6139fc85613920565b9350613a0a60208601613920565b92506040850135915060608501356001600160401b0380821115613a2d57600080fd5b818701915087601f830112613a4157600080fd5b813581811115613a5357613a536141da565b604051601f8201601f19908116603f01168101908382118183101715613a7b57613a7b6141da565b816040528281528a6020848701011115613a9457600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215613acb57600080fd5b613ad483613920565b91506139986020840161393c565b60008060408385031215613af557600080fd5b613afe83613920565b946020939093013593505050565b60008060008060808587031215613b2257600080fd5b613b2b85613920565b935060208501359250613b4060408601613920565b9150613b4e60608601613920565b905092959194509250565b600060208284031215613b6b57600080fd5b6139678261393c565b600060208284031215613b8657600080fd5b8135613967816141f0565b600060208284031215613ba357600080fd5b8151613967816141f0565b60008060208385031215613bc157600080fd5b82356001600160401b0380821115613bd857600080fd5b818501915085601f830112613bec57600080fd5b813581811115613bfb57600080fd5b866020828501011115613c0d57600080fd5b60209290920196919550909350505050565b600060208284031215613c3157600080fd5b5035919050565b600060208284031215613c4a57600080fd5b5051919050565b600080600060608486031215613c6657600080fd5b8335925060208401359150613c7d60408501613920565b90509250925092565b60008151808452613c9e8160208601602086016140d5565b601f01601f19169290920160200192915050565b60008a51613cc4818460208f016140d5565b8a5190830190613cd8818360208f016140d5565b8a51613cea8183850160208f016140d5565b8a51929091010190613d00818360208d016140d5565b8851613d128183850160208d016140d5565b8851929091010190613d28818360208b016140d5565b8651613d3a8183850160208b016140d5565b8651929091010190613d508183602089016140d5565b8451613d6281838501602089016140d5565b9101019b9a5050505050505050505050565b60008451613d868184602089016140d5565b845190830190613d9a8183602089016140d5565b602d60f81b91019081528351613db78160018401602088016140d5565b632e706e6760e01b6001929091019182015260050195945050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251613e0d81601d8501602087016140d5565b91909101601d0192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613e4d90830184613c86565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015613e985783516001600160a01b031683529284019291840191600101613e73565b50909695505050505050565b6020815260006139676020830184613c86565b6020808252601b908201527f5468697320706f74696f6e20646f6573206e6f742065786973742e0000000000604082015260600190565b6020808252602f9082015260008051602061427783398151915260408201526e3a3432903934b3b43a103a3cb8329760891b606082015260800190565b6020808252600f908201526e2737ba1032b737bab3b41022aa241760891b604082015260600190565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b6020808252602f9082015260008051602061427783398151915260408201526e3a34329039b0b6b2903632bb32b61760891b606082015260800190565b6020808252602e9082015260008051602061427783398151915260408201526d3a34329039b0b6b2903a3cb8329760911b606082015260800190565b60006001600160801b0380831681851680830382111561404257614042614182565b01949350505050565b6000821982111561405e5761405e614182565b500190565b60008261407257614072614198565b500490565b600081600019048311821515161561409157614091614182565b500290565b60006001600160801b03838116908316818110156140b6576140b6614182565b039392505050565b6000828210156140d0576140d0614182565b500390565b60005b838110156140f05781810151838201526020016140d8565b8381111561210e5750506000910152565b60008161411057614110614182565b506000190190565b600181811c9082168061412c57607f821691505b6020821081141561414d57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561416757614167614182565b5060010190565b60008261417d5761417d614198565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461266257600080fdfe222c2261747472696275746573223a205b7b2274726169745f74797065223a20224c6576656c222c2276616c7565223a4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f42726577696e67206661696c65642c2074727920706f74696f6e207769746820222c226465736372697074696f6e223a20224d7574616e7420506f74696f6e20697320612066726565206d696e7420636f6c6c656374696f6e20666f72207468652063686f73656e206f6e65732e2048616e646c65207769746820636172652e20496e737472756374696f6e7320746f20666f6c6c6f77206f6e206f7572206f6666696369616c20776562736974652e222c22696d616765223a22a2646970667358221220ae3695a1ecb713fedd8b17bec742e0b137c33ef388d6800710111f6f8cd85b1a64736f6c63430008070033
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.