ERC-721
NFT
Overview
Max Total Supply
10,000 GHOST
Holders
4,288
Market
Volume (24H)
0.03 ETH
Min Price (24H)
$94.85 @ 0.030000 ETH
Max Price (24H)
$94.85 @ 0.030000 ETH
Other Info
Token Contract
Balance
2 GHOSTLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Ghost
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/access/Ownable.sol"; import "./ERC721A.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; /************************************************** * Ghost.sol * * Modified for PXN by: moodi * Originally Written by: mousedev.eth * Dutch Auction style inspired by: 0xinuarashi * * Special thanks goes to: Mousedev, KAI, woof *************************************************** */ contract Ghost is Ownable, ERC721A { using ECDSA for bytes32; //Base Extension string public constant baseExtension = ".json"; //DA active variable bool public DA_ACTIVE = false; //Starting at 2 ether uint256 public constant DA_STARTING_PRICE = 2 ether; //Ending at 0.1 ether uint256 public constant DA_ENDING_PRICE = 0.1 ether; //Decrease by 0.05 every frequency. uint256 public constant DA_DECREMENT = 0.05 ether; //decrement price every 900 seconds (15 minutes). uint256 public constant DA_DECREMENT_FREQUENCY = 900; //Starting DA time (seconds). uint256 public DA_STARTING_TIMESTAMP = 1651719600; //The final auction price. uint256 public DA_FINAL_PRICE; //WL Price uint256 public WLprice = 0.35 ether; //The quantity for DA. uint256 public constant DA_QUANTITY = 4000; //The quantity for WL. uint256 public WL_QUANTITY = 6000; //How many publicWL have been minted uint16 public PUBLIC_WL_MINTED; address public constant FOUNDER_ADD = 0x21F169f44597B7579eb46b84DBE3Dd85f2818D87; address public constant DEV_FUND = 0xA7A8611a2D7663b3e215bB73f5fD57C9e673B2d8; //+86400 so it takes place 24 hours after Dutch Auction uint256 public WL_STARTING_TIMESTAMP = DA_STARTING_TIMESTAMP + 86400; //Struct for storing batch price data. struct TokenBatchPriceData { uint128 pricePaid; uint8 quantityMinted; } //Token to token price data mapping(address => TokenBatchPriceData[]) public userToTokenBatchPriceData; mapping(address => bool) public userToHasMintedPublicWL; //team WL list mapping(address => uint256) public _teamList; bool public REVEALED = false; string public BASE_URI; //WL signer for verification address private wlSigner; //DA signer for verification address private daSigner; // contract mint only bool private directMintAllowed = false; modifier callerIsUser() { require(tx.origin == msg.sender, "The caller is another contract"); _; } constructor() ERC721A("projectPXN", "GHOST") {} function currentPrice() public view returns (uint256) { require( block.timestamp >= DA_STARTING_TIMESTAMP, "DA has not started!" ); if (DA_FINAL_PRICE > 0) return DA_FINAL_PRICE; //Seconds since we started uint256 timeSinceStart = block.timestamp - DA_STARTING_TIMESTAMP; //How many decrements should've happened since that time uint256 decrementsSinceStart = timeSinceStart / DA_DECREMENT_FREQUENCY; //How much eth to remove uint256 totalDecrement = decrementsSinceStart * DA_DECREMENT; //If how much we want to reduce is greater or equal to the range, return the lowest value if (totalDecrement >= DA_STARTING_PRICE - DA_ENDING_PRICE) { return DA_ENDING_PRICE; } //If not, return the starting price minus the decrement. return DA_STARTING_PRICE - totalDecrement; } function mintDutchAuction(uint8 quantity, bytes calldata signature) public payable callerIsUser { require(DA_ACTIVE == true, "DA isnt active"); if (!directMintAllowed) { require( daSigner == keccak256( abi.encodePacked( "\x19Ethereum Signed Message:\n32", bytes32(uint256(uint160(msg.sender))) ) ).recover(signature), "Signer address mismatch." ); } //Max supply require( totalSupply() + quantity <= DA_QUANTITY, "Max supply for DA reached!" ); //Require DA started require( block.timestamp >= DA_STARTING_TIMESTAMP, "DA has not started!" ); require(block.timestamp <= WL_STARTING_TIMESTAMP, "DA is finished."); //Require max 2 per tx require(quantity <= 2, "Can only mint max 2 NFTs!"); require( _numberMinted(msg.sender) + quantity <= 2, "Can only mint max 2 NFTs!" ); uint256 _currentPrice = currentPrice(); //Require enough ETH require( msg.value >= quantity * _currentPrice, "Did not send enough eth." ); //This calculates the final price if (totalSupply() + quantity == DA_QUANTITY) { DA_FINAL_PRICE = _currentPrice; if (((DA_FINAL_PRICE / 100) * 50) < WLprice) { WLprice = ((DA_FINAL_PRICE / 100) * 50); } } userToTokenBatchPriceData[msg.sender].push( TokenBatchPriceData(uint128(msg.value), quantity) ); //Mint the quantity _safeMint(msg.sender, quantity); } function mintWL(bytes calldata signature) public payable callerIsUser { require(DA_FINAL_PRICE > 0, "Dutch action must be over!"); require( wlSigner == keccak256( abi.encodePacked( "\x19Ethereum Signed Message:\n32", bytes32(uint256(uint160(msg.sender))) ) ).recover(signature), "Signer address mismatch." ); require(PUBLIC_WL_MINTED + 1 <= WL_QUANTITY, "Max supply of 6000 for WL!"); require( !userToHasMintedPublicWL[msg.sender], "Can only mint once during WL!" ); require( block.timestamp >= WL_STARTING_TIMESTAMP, "WL minting has not started yet!" ); require( block.timestamp <= WL_STARTING_TIMESTAMP + 86400, "WL minting has finished!" ); require(msg.value >= WLprice, "Must send enough eth for WL Mint"); userToHasMintedPublicWL[msg.sender] = true; PUBLIC_WL_MINTED++; //Mint them _safeMint(msg.sender, 1); } //send remaining NFTs to walet function devMint() external onlyOwner { require( block.timestamp >= WL_STARTING_TIMESTAMP + 86400, "WL hasnt finished!" ); uint256 leftOver = 10000 - totalSupply(); while (leftOver > 10) { _safeMint(DEV_FUND, 10); leftOver -= 10; } if (leftOver > 0) { _safeMint(DEV_FUND, leftOver); } } //team mint function teamMint(uint8 quantity) public payable { require(block.timestamp >= WL_STARTING_TIMESTAMP, "Team Mint hasnt started!"); require(_teamList[msg.sender] >= quantity, "Already claimed."); require( msg.value >= quantity * WLprice, "Must send enough eth for Team Mint" ); require(totalSupply() + quantity <= 10000, "Exceeds supply."); _teamList[msg.sender] = _teamList[msg.sender] - quantity; _safeMint(msg.sender, quantity); } //set team mint function setTeamMint(address[] calldata _addresses, uint8 amount) public onlyOwner { for (uint256 i = 0; i < _addresses.length; i++) { _teamList[_addresses[i]] = amount; } } function readTeamMint(address user) public view returns (uint256) { return _teamList[user]; } function userToTokenBatch(address user) public view returns (TokenBatchPriceData[] memory) { return userToTokenBatchPriceData[user]; } function withdrawFunds() public onlyOwner { uint256 finalFunds = address(this).balance; payable(FOUNDER_ADD).transfer((finalFunds * 5000) / 10000); payable(DEV_FUND).transfer((finalFunds * 5000) / 10000); } function setDaFinalPrice(uint256 newPrice) external onlyOwner { DA_FINAL_PRICE = newPrice; } function setWLPrice(uint256 newPrice) external onlyOwner { WLprice = newPrice; } function setWLSigners(address signer) external onlyOwner { wlSigner = signer; } function setDASigners(address signer) external onlyOwner { daSigner = signer; } // control override function setDirectMintAllowance(bool _allowDirect) external onlyOwner { directMintAllowed = _allowDirect; } function setDutchActionActive(bool daActive) external onlyOwner { DA_ACTIVE = daActive; } function setRevealData(bool _revealed) external onlyOwner { REVEALED = _revealed; } function setStartTime(uint256 startTime) external onlyOwner { DA_STARTING_TIMESTAMP = startTime; WL_STARTING_TIMESTAMP = startTime + 86400; } function setWLSupply(uint16 quantity) external onlyOwner { WL_QUANTITY = quantity; } function setBaseURI(string memory _baseURI) external onlyOwner { BASE_URI = _baseURI; } function tokenURI(uint256 _tokenId) public view override returns (string memory) { require( _exists(_tokenId), "ERC721Metadata: URI query for nonexistent token" ); if (!REVEALED) return BASE_URI; return string( abi.encodePacked( BASE_URI, Strings.toString(_tokenId), baseExtension ) ); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; 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'; error ApprovalCallerNotOwnerNorApproved(); error ApprovalQueryForNonexistentToken(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintedQueryForZeroAddress(); error BurnedQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error OwnerIndexOutOfBounds(); error OwnerQueryForNonexistentToken(); error TokenIndexOutOfBounds(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error URIQueryForNonexistentToken(); /** * @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 that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**128 - 1 (max value of uint128). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; } // Compiler will pack the following // _currentIndex and _burnCounter into a single 256bit word. // The tokenId of the next token to be minted. uint128 internal _currentIndex; // The number of tokens burned. uint128 internal _burnCounter; // 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) internal _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; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex times unchecked { return _currentIndex - _burnCounter; } } /** * @dev See {IERC721Enumerable-tokenByIndex}. * This read function is O(totalSupply). 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 tokenByIndex(uint256 index) public view override returns (uint256) { uint256 numMintedSoFar = _currentIndex; uint256 tokenIdsIdx; // Counter overflow is impossible as the loop breaks when // uint256 i is equal to another uint256 numMintedSoFar. unchecked { for (uint256 i; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (!ownership.burned) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } } revert TokenIndexOutOfBounds(); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(totalSupply). 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) { if (index >= balanceOf(owner)) revert OwnerIndexOutOfBounds(); uint256 numMintedSoFar = _currentIndex; uint256 tokenIdsIdx; address currOwnershipAddr; // Counter overflow is impossible as the loop breaks when // uint256 i is equal to another uint256 numMintedSoFar. unchecked { for (uint256 i; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } } // Execution should never reach this point. revert(); } /** * @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) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { if (owner == address(0)) revert MintedQueryForZeroAddress(); return uint256(_addressData[owner].numberMinted); } function _numberBurned(address owner) internal view returns (uint256) { if (owner == address(0)) revert BurnedQueryForZeroAddress(); return uint256(_addressData[owner].numberBurned); } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @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) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (!_checkOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @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 && !_ownerships[tokenId].burned; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity, _data, true); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint( address to, uint256 quantity, bytes memory _data, bool safe ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 3.4e38 (2**128) - 1 // updatedIndex overflows if _currentIndex + quantity > 3.4e38 (2**128) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; for (uint256 i; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); if (safe && !_checkOnERC721Received(address(0), to, updatedIndex, _data)) { revert TransferToNonERC721ReceiverImplementer(); } updatedIndex++; } _currentIndex = uint128(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 || isApprovedForAll(prevOwnership.addr, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**128. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId].addr = to; _ownerships[tokenId].startTimestamp = 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)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId < _currentIndex) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { TokenOwnership memory prevOwnership = ownershipOf(tokenId); _beforeTokenTransfers(prevOwnership.addr, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**128. unchecked { _addressData[prevOwnership.addr].balance -= 1; _addressData[prevOwnership.addr].numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. _ownerships[tokenId].addr = prevOwnership.addr; _ownerships[tokenId].startTimestamp = uint64(block.timestamp); _ownerships[tokenId].burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn 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)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId < _currentIndex) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(prevOwnership.addr, address(0), tokenId); _afterTokenTransfers(prevOwnership.addr, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @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); } /** * @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 TransferToNonERC721ReceiverImplementer(); } 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. * And also called before burning one token. * * 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`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ 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. * And also called after one token has been burned. * * 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` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `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 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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.5.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 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 (last updated v4.6.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 be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev 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 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"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"MintedQueryForZeroAddress","type":"error"},{"inputs":[],"name":"OwnerIndexOutOfBounds","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TokenIndexOutOfBounds","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"BASE_URI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DA_ACTIVE","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DA_DECREMENT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DA_DECREMENT_FREQUENCY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DA_ENDING_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DA_FINAL_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DA_QUANTITY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DA_STARTING_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DA_STARTING_TIMESTAMP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEV_FUND","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FOUNDER_ADD","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_WL_MINTED","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REVEALED","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WL_QUANTITY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WL_STARTING_TIMESTAMP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WLprice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_teamList","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":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"uint8","name":"quantity","type":"uint8"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mintDutchAuction","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mintWL","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"readTeamMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"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":"address","name":"signer","type":"address"}],"name":"setDASigners","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setDaFinalPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_allowDirect","type":"bool"}],"name":"setDirectMintAllowance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"daActive","type":"bool"}],"name":"setDutchActionActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_revealed","type":"bool"}],"name":"setRevealData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"startTime","type":"uint256"}],"name":"setStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"},{"internalType":"uint8","name":"amount","type":"uint8"}],"name":"setTeamMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setWLPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"}],"name":"setWLSigners","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"quantity","type":"uint16"}],"name":"setWLSupply","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":"uint8","name":"quantity","type":"uint8"}],"name":"teamMint","outputs":[],"stateMutability":"payable","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":"address","name":"","type":"address"}],"name":"userToHasMintedPublicWL","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"userToTokenBatch","outputs":[{"components":[{"internalType":"uint128","name":"pricePaid","type":"uint128"},{"internalType":"uint8","name":"quantityMinted","type":"uint8"}],"internalType":"struct Ghost.TokenBatchPriceData[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"userToTokenBatchPriceData","outputs":[{"internalType":"uint128","name":"pricePaid","type":"uint128"},{"internalType":"uint8","name":"quantityMinted","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawFunds","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526008805460ff191690556362733db060098190556704db732547630000600b55611770600c55620000399062015180620001ea565b600e556012805460ff191690556015805460ff60a01b191690553480156200006057600080fd5b506040518060400160405280600a815260200169383937b532b1ba282c2760b11b8152506040518060400160405280600581526020016411d213d4d560da1b815250620000bc620000b6620000f060201b60201c565b620000f4565b8151620000d190600290602085019062000144565b508051620000e790600390602084019062000144565b5050506200024c565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b82805462000152906200020f565b90600052602060002090601f016020900481019282620001765760008555620001c1565b82601f106200019157805160ff1916838001178555620001c1565b82800160010185558215620001c1579182015b82811115620001c1578251825591602001919060010190620001a4565b50620001cf929150620001d3565b5090565b5b80821115620001cf5760008155600101620001d4565b600082198211156200020a57634e487b7160e01b81526011600452602481fd5b500190565b600181811c908216806200022457607f821691505b602082108114156200024657634e487b7160e01b600052602260045260246000fd5b50919050565b613762806200025c6000396000f3fe6080604052600436106103815760003560e01c806378615c32116101d1578063b812937111610102578063e985e9c5116100a0578063f34184fa1161006f578063f34184fa14610a6f578063f5998ed814610a97578063f6a5b8e614610aad578063f89d2e4d14610acd57600080fd5b8063e985e9c5146109d0578063ea18dc5c14610a19578063ebbe43b014610a2f578063f2fde38b14610a4f57600080fd5b8063c87b56dd116100dc578063c87b56dd14610965578063dbddb26a14610985578063e0213a041461099a578063e3979508146109ba57600080fd5b8063b8129371146108f9578063b88d4fde14610914578063c66828621461093457600080fd5b806395d89b411161016f5780639d1b464a116101495780639d1b464a1461088a578063a22cb4651461089f578063a76a9587146108bf578063b15aaa03146108d957600080fd5b806395d89b411461084357806397f65c0814610858578063996e52b51461087457600080fd5b8063865bb409116101ab578063865bb409146107ad5780638da5cb5b146107dd5780638e98e9df146107fb578063944c30651461082357600080fd5b806378615c321461076f5780637b671780146107855780637c69e2071461079857600080fd5b80632958f999116102b65780634bc0a3051161025457806359287fab1161022357806359287fab146107075780636352211e1461071a57806370a082311461073a578063715018a61461075a57600080fd5b80634bc0a305146106875780634f6ccce71461069a57806353b8a911146106ba57806355f804b3146106e757600080fd5b806333083ad71161029057806333083ad7146106175780633e0a322d1461062d57806340348fbb1461064d57806342842e0e1461066757600080fd5b80632958f999146105965780632b4519fb146105b65780632f745c59146105f757600080fd5b806318160ddd116103235780631f85bf05116102fd5780631f85bf0514610513578063239b96401461053357806323b872dd1461056157806324600fc31461058157600080fd5b806318160ddd146104a85780631c8dd08a146104bd5780631f7b3a25146104dd57600080fd5b8063094491fe1161035f578063094491fe14610415578063095ea7b31461043757806315979e6714610457578063165df4e51461048457600080fd5b806301ffc9a71461038657806306fdde03146103bb578063081812fc146103dd575b600080fd5b34801561039257600080fd5b506103a66103a1366004613266565b610ae9565b60405190151581526020015b60405180910390f35b3480156103c757600080fd5b506103d0610b56565b6040516103b2919061354c565b3480156103e957600080fd5b506103fd6103f8366004613344565b610be8565b6040516001600160a01b0390911681526020016103b2565b34801561042157600080fd5b5061043561043036600461324c565b610c2c565b005b34801561044357600080fd5b506104356104523660046131a5565b610c72565b34801561046357600080fd5b50610477610472366004613076565b610d00565b6040516103b291906134f1565b34801561049057600080fd5b5061049a600c5481565b6040519081526020016103b2565b3480156104b457600080fd5b5061049a610d8c565b3480156104c957600080fd5b506104356104d8366004613344565b610dab565b3480156104e957600080fd5b5061049a6104f8366004613076565b6001600160a01b031660009081526011602052604090205490565b34801561051f57600080fd5b5061043561052e36600461324c565b610dda565b34801561053f57600080fd5b50600d5461054e9061ffff1681565b60405161ffff90911681526020016103b2565b34801561056d57600080fd5b5061043561057c3660046130c9565b610e17565b34801561058d57600080fd5b50610435610e22565b3480156105a257600080fd5b506104356105b1366004613322565b610f04565b3480156105c257600080fd5b506105d66105d13660046131a5565b610f37565b604080516001600160801b03909316835260ff9091166020830152016103b2565b34801561060357600080fd5b5061049a6106123660046131a5565b610f7a565b34801561062357600080fd5b5061049a600e5481565b34801561063957600080fd5b50610435610648366004613344565b611076565b34801561065957600080fd5b506008546103a69060ff1681565b34801561067357600080fd5b506104356106823660046130c9565b6110b8565b61043561069536600461329e565b6110d3565b3480156106a657600080fd5b5061049a6106b5366004613344565b61147e565b3480156106c657600080fd5b5061049a6106d5366004613076565b60116020526000908152604090205481565b3480156106f357600080fd5b506104356107023660046132dd565b61152a565b610435610715366004613376565b611567565b34801561072657600080fd5b506103fd610735366004613344565b6119ce565b34801561074657600080fd5b5061049a610755366004613076565b6119e0565b34801561076657600080fd5b50610435611a2e565b34801561077b57600080fd5b5061049a60095481565b61043561079336600461335c565b611a64565b3480156107a457600080fd5b50610435611c0f565b3480156107b957600080fd5b506103a66107c8366004613076565b60106020526000908152604090205460ff1681565b3480156107e957600080fd5b506000546001600160a01b03166103fd565b34801561080757600080fd5b506103fd7321f169f44597b7579eb46b84dbe3dd85f2818d8781565b34801561082f57600080fd5b5061043561083e3660046131ce565b611d04565b34801561084f57600080fd5b506103d0611da2565b34801561086457600080fd5b5061049a67016345785d8a000081565b34801561088057600080fd5b5061049a61038481565b34801561089657600080fd5b5061049a611db1565b3480156108ab57600080fd5b506104356108ba36600461317c565b611e8c565b3480156108cb57600080fd5b506012546103a69060ff1681565b3480156108e557600080fd5b506104356108f436600461324c565b611f22565b34801561090557600080fd5b5061049a66b1a2bc2ec5000081565b34801561092057600080fd5b5061043561092f366004613104565b611f6a565b34801561094057600080fd5b506103d060405180604001604052806005815260200164173539b7b760d91b81525081565b34801561097157600080fd5b506103d0610980366004613344565b611f9e565b34801561099157600080fd5b506103d06120fa565b3480156109a657600080fd5b506104356109b5366004613076565b612188565b3480156109c657600080fd5b5061049a600b5481565b3480156109dc57600080fd5b506103a66109eb366004613097565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610a2557600080fd5b5061049a610fa081565b348015610a3b57600080fd5b50610435610a4a366004613076565b6121d4565b348015610a5b57600080fd5b50610435610a6a366004613076565b612220565b348015610a7b57600080fd5b506103fd73a7a8611a2d7663b3e215bb73f5fd57c9e673b2d881565b348015610aa357600080fd5b5061049a600a5481565b348015610ab957600080fd5b50610435610ac8366004613344565b6122b8565b348015610ad957600080fd5b5061049a671bc16d674ec8000081565b60006001600160e01b031982166380ac58cd60e01b1480610b1a57506001600160e01b03198216635b5e139f60e01b145b80610b3557506001600160e01b0319821663780e9d6360e01b145b80610b5057506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060028054610b6590613648565b80601f0160208091040260200160405190810160405280929190818152602001828054610b9190613648565b8015610bde5780601f10610bb357610100808354040283529160200191610bde565b820191906000526020600020905b815481529060010190602001808311610bc157829003601f168201915b5050505050905090565b6000610bf3826122e7565b610c10576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000546001600160a01b03163314610c5f5760405162461bcd60e51b8152600401610c569061355f565b60405180910390fd5b6008805460ff1916911515919091179055565b6000610c7d826119ce565b9050806001600160a01b0316836001600160a01b03161415610cb25760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610cd25750610cd081336109eb565b155b15610cf0576040516367d9dca160e11b815260040160405180910390fd5b610cfb83838361231d565b505050565b6001600160a01b0381166000908152600f60209081526040808320805482518185028101850190935280835260609492939192909184015b82821015610d8157600084815260209081902060408051808201909152908401546001600160801b0381168252600160801b900460ff1681830152825260019092019101610d38565b505050509050919050565b6001546001600160801b03600160801b82048116918116919091031690565b6000546001600160a01b03163314610dd55760405162461bcd60e51b8152600401610c569061355f565b600a55565b6000546001600160a01b03163314610e045760405162461bcd60e51b8152600401610c569061355f565b6012805460ff1916911515919091179055565b610cfb838383612379565b6000546001600160a01b03163314610e4c5760405162461bcd60e51b8152600401610c569061355f565b477321f169f44597b7579eb46b84dbe3dd85f2818d876108fc612710610e74846113886135e6565b610e7e91906135d2565b6040518115909202916000818181858888f19350505050158015610ea6573d6000803e3d6000fd5b5073a7a8611a2d7663b3e215bb73f5fd57c9e673b2d86108fc612710610ece846113886135e6565b610ed891906135d2565b6040518115909202916000818181858888f19350505050158015610f00573d6000803e3d6000fd5b5050565b6000546001600160a01b03163314610f2e5760405162461bcd60e51b8152600401610c569061355f565b61ffff16600c55565b600f6020528160005260406000208181548110610f5357600080fd5b6000918252602090912001546001600160801b0381169250600160801b900460ff16905082565b6000610f85836119e0565b8210610fa4576040516306ed618760e11b815260040160405180910390fd5b6001546001600160801b0316600080805b8381101561107057600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16158015928201929092529061101c5750611068565b80516001600160a01b03161561103157805192505b876001600160a01b0316836001600160a01b03161415611066578684141561105f57509350610b5092505050565b6001909301925b505b600101610fb5565b50600080fd5b6000546001600160a01b031633146110a05760405162461bcd60e51b8152600401610c569061355f565b60098190556110b281620151806135ba565b600e5550565b610cfb83838360405180602001604052806000815250611f6a565b3233146111225760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610c56565b6000600a54116111745760405162461bcd60e51b815260206004820152601a60248201527f447574636820616374696f6e206d757374206265206f766572210000000000006044820152606401610c56565b61120a82828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250506040517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602082015233603c820152605c0191506111e69050565b6040516020818303038152906040528051906020012061259690919063ffffffff16565b6014546001600160a01b039081169116146112625760405162461bcd60e51b815260206004820152601860248201527729b4b3b732b91030b2323932b9b99036b4b9b6b0ba31b41760411b6044820152606401610c56565b600c54600d546112779061ffff166001613594565b61ffff1611156112c95760405162461bcd60e51b815260206004820152601a60248201527f4d617820737570706c79206f66203630303020666f7220574c210000000000006044820152606401610c56565b3360009081526010602052604090205460ff16156113295760405162461bcd60e51b815260206004820152601d60248201527f43616e206f6e6c79206d696e74206f6e636520647572696e6720574c210000006044820152606401610c56565b600e5442101561137b5760405162461bcd60e51b815260206004820152601f60248201527f574c206d696e74696e6720686173206e6f7420737461727465642079657421006044820152606401610c56565b600e5461138b90620151806135ba565b4211156113da5760405162461bcd60e51b815260206004820152601860248201527f574c206d696e74696e67206861732066696e69736865642100000000000000006044820152606401610c56565b600b5434101561142c5760405162461bcd60e51b815260206004820181905260248201527f4d7573742073656e6420656e6f7567682065746820666f7220574c204d696e746044820152606401610c56565b336000908152601060205260408120805460ff19166001179055600d805461ffff169161145883613683565b91906101000a81548161ffff021916908361ffff16021790555050610f003360016125ba565b6001546000906001600160801b031681805b8281101561151057600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615159181018290529061150757858314156115005750949350505050565b6001909201915b50600101611490565b506040516329c8c00760e21b815260040160405180910390fd5b6000546001600160a01b031633146115545760405162461bcd60e51b8152600401610c569061355f565b8051610f00906013906020840190612eec565b3233146115b65760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610c56565b60085460ff1615156001146115fe5760405162461bcd60e51b815260206004820152600e60248201526d44412069736e742061637469766560901b6044820152606401610c56565b601554600160a01b900460ff166116d95761168182828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250506040517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602082015233603c820152605c0191506111e69050565b6015546001600160a01b039081169116146116d95760405162461bcd60e51b815260206004820152601860248201527729b4b3b732b91030b2323932b9b99036b4b9b6b0ba31b41760411b6044820152606401610c56565b610fa08360ff166116e8610d8c565b6116f291906135ba565b11156117405760405162461bcd60e51b815260206004820152601a60248201527f4d617820737570706c7920666f722044412072656163686564210000000000006044820152606401610c56565b6009544210156117885760405162461bcd60e51b8152602060048201526013602482015272444120686173206e6f7420737461727465642160681b6044820152606401610c56565b600e544211156117cc5760405162461bcd60e51b815260206004820152600f60248201526e22209034b9903334b734b9b432b21760891b6044820152606401610c56565b60028360ff16111561181c5760405162461bcd60e51b815260206004820152601960248201527843616e206f6e6c79206d696e74206d61782032204e4654732160381b6044820152606401610c56565b60028360ff1661182b336125d4565b61183591906135ba565b111561187f5760405162461bcd60e51b815260206004820152601960248201527843616e206f6e6c79206d696e74206d61782032204e4654732160381b6044820152606401610c56565b6000611889611db1565b90506118988160ff86166135e6565b3410156118e75760405162461bcd60e51b815260206004820152601860248201527f446964206e6f742073656e6420656e6f756768206574682e00000000000000006044820152606401610c56565b610fa08460ff166118f6610d8c565b61190091906135ba565b141561194857600a819055600b546119196064836135d2565b6119249060326135e6565b1015611948576064600a5461193991906135d2565b6119449060326135e6565b600b555b336000818152600f6020908152604080832081518083019092526001600160801b03348116835260ff808b1684860181815284546001810186559488529590962093519390920180549451909216600160801b0270ffffffffffffffffffffffffffffffffff199094169216919091179190911790556119c891906125ba565b50505050565b60006119d982612629565b5192915050565b60006001600160a01b038216611a09576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6000546001600160a01b03163314611a585760405162461bcd60e51b8152600401610c569061355f565b611a62600061274d565b565b600e54421015611ab65760405162461bcd60e51b815260206004820152601860248201527f5465616d204d696e74206861736e7420737461727465642100000000000000006044820152606401610c56565b3360009081526011602052604090205460ff82161115611b0b5760405162461bcd60e51b815260206004820152601060248201526f20b63932b0b23c9031b630b4b6b2b21760811b6044820152606401610c56565b600b54611b1b9060ff83166135e6565b341015611b755760405162461bcd60e51b815260206004820152602260248201527f4d7573742073656e6420656e6f7567682065746820666f72205465616d204d696044820152611b9d60f21b6064820152608401610c56565b6127108160ff16611b84610d8c565b611b8e91906135ba565b1115611bce5760405162461bcd60e51b815260206004820152600f60248201526e22bc31b2b2b2399039bab838363c9760891b6044820152606401610c56565b33600090815260116020526040902054611bec9060ff831690613605565b33600081815260116020526040902091909155611c0c9060ff83166125ba565b50565b6000546001600160a01b03163314611c395760405162461bcd60e51b8152600401610c569061355f565b600e54611c4990620151806135ba565b421015611c8d5760405162461bcd60e51b8152602060048201526012602482015271574c206861736e742066696e69736865642160701b6044820152606401610c56565b6000611c97610d8c565b611ca390612710613605565b90505b600a811115611ce057611cce73a7a8611a2d7663b3e215bb73f5fd57c9e673b2d8600a6125ba565b611cd9600a82613605565b9050611ca6565b8015611c0c57611c0c73a7a8611a2d7663b3e215bb73f5fd57c9e673b2d8826125ba565b6000546001600160a01b03163314611d2e5760405162461bcd60e51b8152600401610c569061355f565b60005b828110156119c8578160ff1660116000868685818110611d6157634e487b7160e01b600052603260045260246000fd5b9050602002016020810190611d769190613076565b6001600160a01b0316815260208101919091526040016000205580611d9a816136a5565b915050611d31565b606060038054610b6590613648565b6000600954421015611dfb5760405162461bcd60e51b8152602060048201526013602482015272444120686173206e6f7420737461727465642160681b6044820152606401610c56565b600a5415611e0a5750600a5490565b600060095442611e1a9190613605565b90506000611e2a610384836135d2565b90506000611e3f66b1a2bc2ec50000836135e6565b9050611e5b67016345785d8a0000671bc16d674ec80000613605565b8110611e725767016345785d8a0000935050505090565b611e8481671bc16d674ec80000613605565b935050505090565b6001600160a01b038216331415611eb65760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000546001600160a01b03163314611f4c5760405162461bcd60e51b8152600401610c569061355f565b60158054911515600160a01b0260ff60a01b19909216919091179055565b611f75848484612379565b611f818484848461279d565b6119c8576040516368d2bf6b60e11b815260040160405180910390fd5b6060611fa9826122e7565b61200d5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610c56565b60125460ff166120a9576013805461202490613648565b80601f016020809104026020016040519081016040528092919081815260200182805461205090613648565b801561209d5780601f106120725761010080835404028352916020019161209d565b820191906000526020600020905b81548152906001019060200180831161208057829003601f168201915b50505050509050919050565b60136120b4836128ac565b60405180604001604052806005815260200164173539b7b760d91b8152506040516020016120e49392919061340e565b6040516020818303038152906040529050919050565b6013805461210790613648565b80601f016020809104026020016040519081016040528092919081815260200182805461213390613648565b80156121805780601f1061215557610100808354040283529160200191612180565b820191906000526020600020905b81548152906001019060200180831161216357829003601f168201915b505050505081565b6000546001600160a01b031633146121b25760405162461bcd60e51b8152600401610c569061355f565b601580546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146121fe5760405162461bcd60e51b8152600401610c569061355f565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461224a5760405162461bcd60e51b8152600401610c569061355f565b6001600160a01b0381166122af5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c56565b611c0c8161274d565b6000546001600160a01b031633146122e25760405162461bcd60e51b8152600401610c569061355f565b600b55565b6001546000906001600160801b031682108015610b50575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061238482612629565b80519091506000906001600160a01b0316336001600160a01b031614806123b2575081516123b290336109eb565b806123cd5750336123c284610be8565b6001600160a01b0316145b9050806123ed57604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b0316146124225760405162a1148160e81b815260040160405180910390fd5b6001600160a01b03841661244957604051633a954ecd60e21b815260040160405180910390fd5b612459600084846000015161231d565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b42909216919091021790925590860180835291205490911661254c576001546001600160801b031681101561254c57825160008281526004602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b60008060006125a585856129c5565b915091506125b281612a35565b509392505050565b610f00828260405180602001604052806000815250612c36565b60006001600160a01b0382166125fd576040516335ebb31960e01b815260040160405180910390fd5b506001600160a01b0316600090815260056020526040902054600160401b90046001600160401b031690565b604080516060810182526000808252602082018190529181019190915260015482906001600160801b031681101561273457600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906127325780516001600160a01b0316156126c9579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff161515928101929092521561272d579392505050565b6126c9565b505b604051636f96cda160e11b815260040160405180910390fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006001600160a01b0384163b156128a057604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906127e19033908990889088906004016134be565b602060405180830381600087803b1580156127fb57600080fd5b505af192505050801561282b575060408051601f3d908101601f1916820190925261282891810190613282565b60015b612886573d808015612859576040519150601f19603f3d011682016040523d82523d6000602084013e61285e565b606091505b50805161287e576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506128a4565b5060015b949350505050565b6060816128d05750506040805180820190915260018152600360fc1b602082015290565b8160005b81156128fa57806128e4816136a5565b91506128f39050600a836135d2565b91506128d4565b6000816001600160401b0381111561292257634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561294c576020820181803683370190505b5090505b84156128a457612961600183613605565b915061296e600a866136c0565b6129799060306135ba565b60f81b81838151811061299c57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506129be600a866135d2565b9450612950565b6000808251604114156129fc5760208301516040840151606085015160001a6129f087828585612c43565b94509450505050612a2e565b825160401415612a265760208301516040840151612a1b868383612d30565b935093505050612a2e565b506000905060025b9250929050565b6000816004811115612a5757634e487b7160e01b600052602160045260246000fd5b1415612a605750565b6001816004811115612a8257634e487b7160e01b600052602160045260246000fd5b1415612ad05760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610c56565b6002816004811115612af257634e487b7160e01b600052602160045260246000fd5b1415612b405760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610c56565b6003816004811115612b6257634e487b7160e01b600052602160045260246000fd5b1415612bbb5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610c56565b6004816004811115612bdd57634e487b7160e01b600052602160045260246000fd5b1415611c0c5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610c56565b610cfb8383836001612d69565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612c7a5750600090506003612d27565b8460ff16601b14158015612c9257508460ff16601c14155b15612ca35750600090506004612d27565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612cf7573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612d2057600060019250925050612d27565b9150600090505b94509492505050565b6000806001600160ff1b03831681612d4d60ff86901c601b6135ba565b9050612d5b87828885612c43565b935093505050935093915050565b6001546001600160801b03166001600160a01b038516612d9b57604051622e076360e81b815260040160405180910390fd5b83612db95760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546001600160801b031981166001600160401b038083168c018116918217600160401b67ffffffffffffffff1990941690921783900481168c018116909202179091558584526004909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b85811015612ec65760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4838015612e9c5750612e9a600088848861279d565b155b15612eba576040516368d2bf6b60e11b815260040160405180910390fd5b60019182019101612e45565b50600180546001600160801b0319166001600160801b039290921691909117905561258f565b828054612ef890613648565b90600052602060002090601f016020900481019282612f1a5760008555612f60565b82601f10612f3357805160ff1916838001178555612f60565b82800160010185558215612f60579182015b82811115612f60578251825591602001919060010190612f45565b50612f6c929150612f70565b5090565b5b80821115612f6c5760008155600101612f71565b60006001600160401b0380841115612f9f57612f9f613700565b604051601f8501601f19908116603f01168101908282118183101715612fc757612fc7613700565b81604052809350858152868686011115612fe057600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461301157600080fd5b919050565b8035801515811461301157600080fd5b60008083601f840112613037578182fd5b5081356001600160401b0381111561304d578182fd5b602083019150836020828501011115612a2e57600080fd5b803560ff8116811461301157600080fd5b600060208284031215613087578081fd5b61309082612ffa565b9392505050565b600080604083850312156130a9578081fd5b6130b283612ffa565b91506130c060208401612ffa565b90509250929050565b6000806000606084860312156130dd578081fd5b6130e684612ffa565b92506130f460208501612ffa565b9150604084013590509250925092565b60008060008060808587031215613119578081fd5b61312285612ffa565b935061313060208601612ffa565b92506040850135915060608501356001600160401b03811115613151578182fd5b8501601f81018713613161578182fd5b61317087823560208401612f85565b91505092959194509250565b6000806040838503121561318e578182fd5b61319783612ffa565b91506130c060208401613016565b600080604083850312156131b7578182fd5b6131c083612ffa565b946020939093013593505050565b6000806000604084860312156131e2578283fd5b83356001600160401b03808211156131f8578485fd5b818601915086601f83011261320b578485fd5b813581811115613219578586fd5b8760208260051b850101111561322d578586fd5b6020928301955093506132439186019050613065565b90509250925092565b60006020828403121561325d578081fd5b61309082613016565b600060208284031215613277578081fd5b813561309081613716565b600060208284031215613293578081fd5b815161309081613716565b600080602083850312156132b0578182fd5b82356001600160401b038111156132c5578283fd5b6132d185828601613026565b90969095509350505050565b6000602082840312156132ee578081fd5b81356001600160401b03811115613303578182fd5b8201601f81018413613313578182fd5b6128a484823560208401612f85565b600060208284031215613333578081fd5b813561ffff81168114613090578182fd5b600060208284031215613355578081fd5b5035919050565b60006020828403121561336d578081fd5b61309082613065565b60008060006040848603121561338a578081fd5b61339384613065565b925060208401356001600160401b038111156133ad578182fd5b6133b986828701613026565b9497909650939450505050565b600081518084526133de81602086016020860161361c565b601f01601f19169290920160200192915050565b6000815161340481856020860161361c565b9290920192915050565b600080855482600182811c91508083168061342a57607f831692505b602080841082141561344a57634e487b7160e01b87526022600452602487fd5b81801561345e576001811461346f5761349b565b60ff1986168952848901965061349b565b60008c815260209020885b868110156134935781548b82015290850190830161347a565b505084890196505b5050505050506134b46134ae82876133f2565b856133f2565b9695505050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906134b4908301846133c6565b602080825282518282018190526000919060409081850190868401855b8281101561353f57815180516001600160801b0316855286015160ff1686850152928401929085019060010161350e565b5091979650505050505050565b60208152600061309060208301846133c6565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600061ffff8083168185168083038211156135b1576135b16136d4565b01949350505050565b600082198211156135cd576135cd6136d4565b500190565b6000826135e1576135e16136ea565b500490565b6000816000190483118215151615613600576136006136d4565b500290565b600082821015613617576136176136d4565b500390565b60005b8381101561363757818101518382015260200161361f565b838111156119c85750506000910152565b600181811c9082168061365c57607f821691505b6020821081141561367d57634e487b7160e01b600052602260045260246000fd5b50919050565b600061ffff8083168181141561369b5761369b6136d4565b6001019392505050565b60006000198214156136b9576136b96136d4565b5060010190565b6000826136cf576136cf6136ea565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114611c0c57600080fdfea26469706673582212208734018dba67c9174db8ec7ef12344139151c7ed3de4cb8c66622b960dfb8bc164736f6c63430008040033
Deployed Bytecode
0x6080604052600436106103815760003560e01c806378615c32116101d1578063b812937111610102578063e985e9c5116100a0578063f34184fa1161006f578063f34184fa14610a6f578063f5998ed814610a97578063f6a5b8e614610aad578063f89d2e4d14610acd57600080fd5b8063e985e9c5146109d0578063ea18dc5c14610a19578063ebbe43b014610a2f578063f2fde38b14610a4f57600080fd5b8063c87b56dd116100dc578063c87b56dd14610965578063dbddb26a14610985578063e0213a041461099a578063e3979508146109ba57600080fd5b8063b8129371146108f9578063b88d4fde14610914578063c66828621461093457600080fd5b806395d89b411161016f5780639d1b464a116101495780639d1b464a1461088a578063a22cb4651461089f578063a76a9587146108bf578063b15aaa03146108d957600080fd5b806395d89b411461084357806397f65c0814610858578063996e52b51461087457600080fd5b8063865bb409116101ab578063865bb409146107ad5780638da5cb5b146107dd5780638e98e9df146107fb578063944c30651461082357600080fd5b806378615c321461076f5780637b671780146107855780637c69e2071461079857600080fd5b80632958f999116102b65780634bc0a3051161025457806359287fab1161022357806359287fab146107075780636352211e1461071a57806370a082311461073a578063715018a61461075a57600080fd5b80634bc0a305146106875780634f6ccce71461069a57806353b8a911146106ba57806355f804b3146106e757600080fd5b806333083ad71161029057806333083ad7146106175780633e0a322d1461062d57806340348fbb1461064d57806342842e0e1461066757600080fd5b80632958f999146105965780632b4519fb146105b65780632f745c59146105f757600080fd5b806318160ddd116103235780631f85bf05116102fd5780631f85bf0514610513578063239b96401461053357806323b872dd1461056157806324600fc31461058157600080fd5b806318160ddd146104a85780631c8dd08a146104bd5780631f7b3a25146104dd57600080fd5b8063094491fe1161035f578063094491fe14610415578063095ea7b31461043757806315979e6714610457578063165df4e51461048457600080fd5b806301ffc9a71461038657806306fdde03146103bb578063081812fc146103dd575b600080fd5b34801561039257600080fd5b506103a66103a1366004613266565b610ae9565b60405190151581526020015b60405180910390f35b3480156103c757600080fd5b506103d0610b56565b6040516103b2919061354c565b3480156103e957600080fd5b506103fd6103f8366004613344565b610be8565b6040516001600160a01b0390911681526020016103b2565b34801561042157600080fd5b5061043561043036600461324c565b610c2c565b005b34801561044357600080fd5b506104356104523660046131a5565b610c72565b34801561046357600080fd5b50610477610472366004613076565b610d00565b6040516103b291906134f1565b34801561049057600080fd5b5061049a600c5481565b6040519081526020016103b2565b3480156104b457600080fd5b5061049a610d8c565b3480156104c957600080fd5b506104356104d8366004613344565b610dab565b3480156104e957600080fd5b5061049a6104f8366004613076565b6001600160a01b031660009081526011602052604090205490565b34801561051f57600080fd5b5061043561052e36600461324c565b610dda565b34801561053f57600080fd5b50600d5461054e9061ffff1681565b60405161ffff90911681526020016103b2565b34801561056d57600080fd5b5061043561057c3660046130c9565b610e17565b34801561058d57600080fd5b50610435610e22565b3480156105a257600080fd5b506104356105b1366004613322565b610f04565b3480156105c257600080fd5b506105d66105d13660046131a5565b610f37565b604080516001600160801b03909316835260ff9091166020830152016103b2565b34801561060357600080fd5b5061049a6106123660046131a5565b610f7a565b34801561062357600080fd5b5061049a600e5481565b34801561063957600080fd5b50610435610648366004613344565b611076565b34801561065957600080fd5b506008546103a69060ff1681565b34801561067357600080fd5b506104356106823660046130c9565b6110b8565b61043561069536600461329e565b6110d3565b3480156106a657600080fd5b5061049a6106b5366004613344565b61147e565b3480156106c657600080fd5b5061049a6106d5366004613076565b60116020526000908152604090205481565b3480156106f357600080fd5b506104356107023660046132dd565b61152a565b610435610715366004613376565b611567565b34801561072657600080fd5b506103fd610735366004613344565b6119ce565b34801561074657600080fd5b5061049a610755366004613076565b6119e0565b34801561076657600080fd5b50610435611a2e565b34801561077b57600080fd5b5061049a60095481565b61043561079336600461335c565b611a64565b3480156107a457600080fd5b50610435611c0f565b3480156107b957600080fd5b506103a66107c8366004613076565b60106020526000908152604090205460ff1681565b3480156107e957600080fd5b506000546001600160a01b03166103fd565b34801561080757600080fd5b506103fd7321f169f44597b7579eb46b84dbe3dd85f2818d8781565b34801561082f57600080fd5b5061043561083e3660046131ce565b611d04565b34801561084f57600080fd5b506103d0611da2565b34801561086457600080fd5b5061049a67016345785d8a000081565b34801561088057600080fd5b5061049a61038481565b34801561089657600080fd5b5061049a611db1565b3480156108ab57600080fd5b506104356108ba36600461317c565b611e8c565b3480156108cb57600080fd5b506012546103a69060ff1681565b3480156108e557600080fd5b506104356108f436600461324c565b611f22565b34801561090557600080fd5b5061049a66b1a2bc2ec5000081565b34801561092057600080fd5b5061043561092f366004613104565b611f6a565b34801561094057600080fd5b506103d060405180604001604052806005815260200164173539b7b760d91b81525081565b34801561097157600080fd5b506103d0610980366004613344565b611f9e565b34801561099157600080fd5b506103d06120fa565b3480156109a657600080fd5b506104356109b5366004613076565b612188565b3480156109c657600080fd5b5061049a600b5481565b3480156109dc57600080fd5b506103a66109eb366004613097565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610a2557600080fd5b5061049a610fa081565b348015610a3b57600080fd5b50610435610a4a366004613076565b6121d4565b348015610a5b57600080fd5b50610435610a6a366004613076565b612220565b348015610a7b57600080fd5b506103fd73a7a8611a2d7663b3e215bb73f5fd57c9e673b2d881565b348015610aa357600080fd5b5061049a600a5481565b348015610ab957600080fd5b50610435610ac8366004613344565b6122b8565b348015610ad957600080fd5b5061049a671bc16d674ec8000081565b60006001600160e01b031982166380ac58cd60e01b1480610b1a57506001600160e01b03198216635b5e139f60e01b145b80610b3557506001600160e01b0319821663780e9d6360e01b145b80610b5057506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060028054610b6590613648565b80601f0160208091040260200160405190810160405280929190818152602001828054610b9190613648565b8015610bde5780601f10610bb357610100808354040283529160200191610bde565b820191906000526020600020905b815481529060010190602001808311610bc157829003601f168201915b5050505050905090565b6000610bf3826122e7565b610c10576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000546001600160a01b03163314610c5f5760405162461bcd60e51b8152600401610c569061355f565b60405180910390fd5b6008805460ff1916911515919091179055565b6000610c7d826119ce565b9050806001600160a01b0316836001600160a01b03161415610cb25760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610cd25750610cd081336109eb565b155b15610cf0576040516367d9dca160e11b815260040160405180910390fd5b610cfb83838361231d565b505050565b6001600160a01b0381166000908152600f60209081526040808320805482518185028101850190935280835260609492939192909184015b82821015610d8157600084815260209081902060408051808201909152908401546001600160801b0381168252600160801b900460ff1681830152825260019092019101610d38565b505050509050919050565b6001546001600160801b03600160801b82048116918116919091031690565b6000546001600160a01b03163314610dd55760405162461bcd60e51b8152600401610c569061355f565b600a55565b6000546001600160a01b03163314610e045760405162461bcd60e51b8152600401610c569061355f565b6012805460ff1916911515919091179055565b610cfb838383612379565b6000546001600160a01b03163314610e4c5760405162461bcd60e51b8152600401610c569061355f565b477321f169f44597b7579eb46b84dbe3dd85f2818d876108fc612710610e74846113886135e6565b610e7e91906135d2565b6040518115909202916000818181858888f19350505050158015610ea6573d6000803e3d6000fd5b5073a7a8611a2d7663b3e215bb73f5fd57c9e673b2d86108fc612710610ece846113886135e6565b610ed891906135d2565b6040518115909202916000818181858888f19350505050158015610f00573d6000803e3d6000fd5b5050565b6000546001600160a01b03163314610f2e5760405162461bcd60e51b8152600401610c569061355f565b61ffff16600c55565b600f6020528160005260406000208181548110610f5357600080fd5b6000918252602090912001546001600160801b0381169250600160801b900460ff16905082565b6000610f85836119e0565b8210610fa4576040516306ed618760e11b815260040160405180910390fd5b6001546001600160801b0316600080805b8381101561107057600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16158015928201929092529061101c5750611068565b80516001600160a01b03161561103157805192505b876001600160a01b0316836001600160a01b03161415611066578684141561105f57509350610b5092505050565b6001909301925b505b600101610fb5565b50600080fd5b6000546001600160a01b031633146110a05760405162461bcd60e51b8152600401610c569061355f565b60098190556110b281620151806135ba565b600e5550565b610cfb83838360405180602001604052806000815250611f6a565b3233146111225760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610c56565b6000600a54116111745760405162461bcd60e51b815260206004820152601a60248201527f447574636820616374696f6e206d757374206265206f766572210000000000006044820152606401610c56565b61120a82828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250506040517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602082015233603c820152605c0191506111e69050565b6040516020818303038152906040528051906020012061259690919063ffffffff16565b6014546001600160a01b039081169116146112625760405162461bcd60e51b815260206004820152601860248201527729b4b3b732b91030b2323932b9b99036b4b9b6b0ba31b41760411b6044820152606401610c56565b600c54600d546112779061ffff166001613594565b61ffff1611156112c95760405162461bcd60e51b815260206004820152601a60248201527f4d617820737570706c79206f66203630303020666f7220574c210000000000006044820152606401610c56565b3360009081526010602052604090205460ff16156113295760405162461bcd60e51b815260206004820152601d60248201527f43616e206f6e6c79206d696e74206f6e636520647572696e6720574c210000006044820152606401610c56565b600e5442101561137b5760405162461bcd60e51b815260206004820152601f60248201527f574c206d696e74696e6720686173206e6f7420737461727465642079657421006044820152606401610c56565b600e5461138b90620151806135ba565b4211156113da5760405162461bcd60e51b815260206004820152601860248201527f574c206d696e74696e67206861732066696e69736865642100000000000000006044820152606401610c56565b600b5434101561142c5760405162461bcd60e51b815260206004820181905260248201527f4d7573742073656e6420656e6f7567682065746820666f7220574c204d696e746044820152606401610c56565b336000908152601060205260408120805460ff19166001179055600d805461ffff169161145883613683565b91906101000a81548161ffff021916908361ffff16021790555050610f003360016125ba565b6001546000906001600160801b031681805b8281101561151057600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615159181018290529061150757858314156115005750949350505050565b6001909201915b50600101611490565b506040516329c8c00760e21b815260040160405180910390fd5b6000546001600160a01b031633146115545760405162461bcd60e51b8152600401610c569061355f565b8051610f00906013906020840190612eec565b3233146115b65760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610c56565b60085460ff1615156001146115fe5760405162461bcd60e51b815260206004820152600e60248201526d44412069736e742061637469766560901b6044820152606401610c56565b601554600160a01b900460ff166116d95761168182828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250506040517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602082015233603c820152605c0191506111e69050565b6015546001600160a01b039081169116146116d95760405162461bcd60e51b815260206004820152601860248201527729b4b3b732b91030b2323932b9b99036b4b9b6b0ba31b41760411b6044820152606401610c56565b610fa08360ff166116e8610d8c565b6116f291906135ba565b11156117405760405162461bcd60e51b815260206004820152601a60248201527f4d617820737570706c7920666f722044412072656163686564210000000000006044820152606401610c56565b6009544210156117885760405162461bcd60e51b8152602060048201526013602482015272444120686173206e6f7420737461727465642160681b6044820152606401610c56565b600e544211156117cc5760405162461bcd60e51b815260206004820152600f60248201526e22209034b9903334b734b9b432b21760891b6044820152606401610c56565b60028360ff16111561181c5760405162461bcd60e51b815260206004820152601960248201527843616e206f6e6c79206d696e74206d61782032204e4654732160381b6044820152606401610c56565b60028360ff1661182b336125d4565b61183591906135ba565b111561187f5760405162461bcd60e51b815260206004820152601960248201527843616e206f6e6c79206d696e74206d61782032204e4654732160381b6044820152606401610c56565b6000611889611db1565b90506118988160ff86166135e6565b3410156118e75760405162461bcd60e51b815260206004820152601860248201527f446964206e6f742073656e6420656e6f756768206574682e00000000000000006044820152606401610c56565b610fa08460ff166118f6610d8c565b61190091906135ba565b141561194857600a819055600b546119196064836135d2565b6119249060326135e6565b1015611948576064600a5461193991906135d2565b6119449060326135e6565b600b555b336000818152600f6020908152604080832081518083019092526001600160801b03348116835260ff808b1684860181815284546001810186559488529590962093519390920180549451909216600160801b0270ffffffffffffffffffffffffffffffffff199094169216919091179190911790556119c891906125ba565b50505050565b60006119d982612629565b5192915050565b60006001600160a01b038216611a09576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6000546001600160a01b03163314611a585760405162461bcd60e51b8152600401610c569061355f565b611a62600061274d565b565b600e54421015611ab65760405162461bcd60e51b815260206004820152601860248201527f5465616d204d696e74206861736e7420737461727465642100000000000000006044820152606401610c56565b3360009081526011602052604090205460ff82161115611b0b5760405162461bcd60e51b815260206004820152601060248201526f20b63932b0b23c9031b630b4b6b2b21760811b6044820152606401610c56565b600b54611b1b9060ff83166135e6565b341015611b755760405162461bcd60e51b815260206004820152602260248201527f4d7573742073656e6420656e6f7567682065746820666f72205465616d204d696044820152611b9d60f21b6064820152608401610c56565b6127108160ff16611b84610d8c565b611b8e91906135ba565b1115611bce5760405162461bcd60e51b815260206004820152600f60248201526e22bc31b2b2b2399039bab838363c9760891b6044820152606401610c56565b33600090815260116020526040902054611bec9060ff831690613605565b33600081815260116020526040902091909155611c0c9060ff83166125ba565b50565b6000546001600160a01b03163314611c395760405162461bcd60e51b8152600401610c569061355f565b600e54611c4990620151806135ba565b421015611c8d5760405162461bcd60e51b8152602060048201526012602482015271574c206861736e742066696e69736865642160701b6044820152606401610c56565b6000611c97610d8c565b611ca390612710613605565b90505b600a811115611ce057611cce73a7a8611a2d7663b3e215bb73f5fd57c9e673b2d8600a6125ba565b611cd9600a82613605565b9050611ca6565b8015611c0c57611c0c73a7a8611a2d7663b3e215bb73f5fd57c9e673b2d8826125ba565b6000546001600160a01b03163314611d2e5760405162461bcd60e51b8152600401610c569061355f565b60005b828110156119c8578160ff1660116000868685818110611d6157634e487b7160e01b600052603260045260246000fd5b9050602002016020810190611d769190613076565b6001600160a01b0316815260208101919091526040016000205580611d9a816136a5565b915050611d31565b606060038054610b6590613648565b6000600954421015611dfb5760405162461bcd60e51b8152602060048201526013602482015272444120686173206e6f7420737461727465642160681b6044820152606401610c56565b600a5415611e0a5750600a5490565b600060095442611e1a9190613605565b90506000611e2a610384836135d2565b90506000611e3f66b1a2bc2ec50000836135e6565b9050611e5b67016345785d8a0000671bc16d674ec80000613605565b8110611e725767016345785d8a0000935050505090565b611e8481671bc16d674ec80000613605565b935050505090565b6001600160a01b038216331415611eb65760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000546001600160a01b03163314611f4c5760405162461bcd60e51b8152600401610c569061355f565b60158054911515600160a01b0260ff60a01b19909216919091179055565b611f75848484612379565b611f818484848461279d565b6119c8576040516368d2bf6b60e11b815260040160405180910390fd5b6060611fa9826122e7565b61200d5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610c56565b60125460ff166120a9576013805461202490613648565b80601f016020809104026020016040519081016040528092919081815260200182805461205090613648565b801561209d5780601f106120725761010080835404028352916020019161209d565b820191906000526020600020905b81548152906001019060200180831161208057829003601f168201915b50505050509050919050565b60136120b4836128ac565b60405180604001604052806005815260200164173539b7b760d91b8152506040516020016120e49392919061340e565b6040516020818303038152906040529050919050565b6013805461210790613648565b80601f016020809104026020016040519081016040528092919081815260200182805461213390613648565b80156121805780601f1061215557610100808354040283529160200191612180565b820191906000526020600020905b81548152906001019060200180831161216357829003601f168201915b505050505081565b6000546001600160a01b031633146121b25760405162461bcd60e51b8152600401610c569061355f565b601580546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146121fe5760405162461bcd60e51b8152600401610c569061355f565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461224a5760405162461bcd60e51b8152600401610c569061355f565b6001600160a01b0381166122af5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c56565b611c0c8161274d565b6000546001600160a01b031633146122e25760405162461bcd60e51b8152600401610c569061355f565b600b55565b6001546000906001600160801b031682108015610b50575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061238482612629565b80519091506000906001600160a01b0316336001600160a01b031614806123b2575081516123b290336109eb565b806123cd5750336123c284610be8565b6001600160a01b0316145b9050806123ed57604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b0316146124225760405162a1148160e81b815260040160405180910390fd5b6001600160a01b03841661244957604051633a954ecd60e21b815260040160405180910390fd5b612459600084846000015161231d565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b42909216919091021790925590860180835291205490911661254c576001546001600160801b031681101561254c57825160008281526004602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b60008060006125a585856129c5565b915091506125b281612a35565b509392505050565b610f00828260405180602001604052806000815250612c36565b60006001600160a01b0382166125fd576040516335ebb31960e01b815260040160405180910390fd5b506001600160a01b0316600090815260056020526040902054600160401b90046001600160401b031690565b604080516060810182526000808252602082018190529181019190915260015482906001600160801b031681101561273457600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906127325780516001600160a01b0316156126c9579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff161515928101929092521561272d579392505050565b6126c9565b505b604051636f96cda160e11b815260040160405180910390fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006001600160a01b0384163b156128a057604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906127e19033908990889088906004016134be565b602060405180830381600087803b1580156127fb57600080fd5b505af192505050801561282b575060408051601f3d908101601f1916820190925261282891810190613282565b60015b612886573d808015612859576040519150601f19603f3d011682016040523d82523d6000602084013e61285e565b606091505b50805161287e576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506128a4565b5060015b949350505050565b6060816128d05750506040805180820190915260018152600360fc1b602082015290565b8160005b81156128fa57806128e4816136a5565b91506128f39050600a836135d2565b91506128d4565b6000816001600160401b0381111561292257634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561294c576020820181803683370190505b5090505b84156128a457612961600183613605565b915061296e600a866136c0565b6129799060306135ba565b60f81b81838151811061299c57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506129be600a866135d2565b9450612950565b6000808251604114156129fc5760208301516040840151606085015160001a6129f087828585612c43565b94509450505050612a2e565b825160401415612a265760208301516040840151612a1b868383612d30565b935093505050612a2e565b506000905060025b9250929050565b6000816004811115612a5757634e487b7160e01b600052602160045260246000fd5b1415612a605750565b6001816004811115612a8257634e487b7160e01b600052602160045260246000fd5b1415612ad05760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610c56565b6002816004811115612af257634e487b7160e01b600052602160045260246000fd5b1415612b405760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610c56565b6003816004811115612b6257634e487b7160e01b600052602160045260246000fd5b1415612bbb5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610c56565b6004816004811115612bdd57634e487b7160e01b600052602160045260246000fd5b1415611c0c5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610c56565b610cfb8383836001612d69565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612c7a5750600090506003612d27565b8460ff16601b14158015612c9257508460ff16601c14155b15612ca35750600090506004612d27565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612cf7573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612d2057600060019250925050612d27565b9150600090505b94509492505050565b6000806001600160ff1b03831681612d4d60ff86901c601b6135ba565b9050612d5b87828885612c43565b935093505050935093915050565b6001546001600160801b03166001600160a01b038516612d9b57604051622e076360e81b815260040160405180910390fd5b83612db95760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546001600160801b031981166001600160401b038083168c018116918217600160401b67ffffffffffffffff1990941690921783900481168c018116909202179091558584526004909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b85811015612ec65760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4838015612e9c5750612e9a600088848861279d565b155b15612eba576040516368d2bf6b60e11b815260040160405180910390fd5b60019182019101612e45565b50600180546001600160801b0319166001600160801b039290921691909117905561258f565b828054612ef890613648565b90600052602060002090601f016020900481019282612f1a5760008555612f60565b82601f10612f3357805160ff1916838001178555612f60565b82800160010185558215612f60579182015b82811115612f60578251825591602001919060010190612f45565b50612f6c929150612f70565b5090565b5b80821115612f6c5760008155600101612f71565b60006001600160401b0380841115612f9f57612f9f613700565b604051601f8501601f19908116603f01168101908282118183101715612fc757612fc7613700565b81604052809350858152868686011115612fe057600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461301157600080fd5b919050565b8035801515811461301157600080fd5b60008083601f840112613037578182fd5b5081356001600160401b0381111561304d578182fd5b602083019150836020828501011115612a2e57600080fd5b803560ff8116811461301157600080fd5b600060208284031215613087578081fd5b61309082612ffa565b9392505050565b600080604083850312156130a9578081fd5b6130b283612ffa565b91506130c060208401612ffa565b90509250929050565b6000806000606084860312156130dd578081fd5b6130e684612ffa565b92506130f460208501612ffa565b9150604084013590509250925092565b60008060008060808587031215613119578081fd5b61312285612ffa565b935061313060208601612ffa565b92506040850135915060608501356001600160401b03811115613151578182fd5b8501601f81018713613161578182fd5b61317087823560208401612f85565b91505092959194509250565b6000806040838503121561318e578182fd5b61319783612ffa565b91506130c060208401613016565b600080604083850312156131b7578182fd5b6131c083612ffa565b946020939093013593505050565b6000806000604084860312156131e2578283fd5b83356001600160401b03808211156131f8578485fd5b818601915086601f83011261320b578485fd5b813581811115613219578586fd5b8760208260051b850101111561322d578586fd5b6020928301955093506132439186019050613065565b90509250925092565b60006020828403121561325d578081fd5b61309082613016565b600060208284031215613277578081fd5b813561309081613716565b600060208284031215613293578081fd5b815161309081613716565b600080602083850312156132b0578182fd5b82356001600160401b038111156132c5578283fd5b6132d185828601613026565b90969095509350505050565b6000602082840312156132ee578081fd5b81356001600160401b03811115613303578182fd5b8201601f81018413613313578182fd5b6128a484823560208401612f85565b600060208284031215613333578081fd5b813561ffff81168114613090578182fd5b600060208284031215613355578081fd5b5035919050565b60006020828403121561336d578081fd5b61309082613065565b60008060006040848603121561338a578081fd5b61339384613065565b925060208401356001600160401b038111156133ad578182fd5b6133b986828701613026565b9497909650939450505050565b600081518084526133de81602086016020860161361c565b601f01601f19169290920160200192915050565b6000815161340481856020860161361c565b9290920192915050565b600080855482600182811c91508083168061342a57607f831692505b602080841082141561344a57634e487b7160e01b87526022600452602487fd5b81801561345e576001811461346f5761349b565b60ff1986168952848901965061349b565b60008c815260209020885b868110156134935781548b82015290850190830161347a565b505084890196505b5050505050506134b46134ae82876133f2565b856133f2565b9695505050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906134b4908301846133c6565b602080825282518282018190526000919060409081850190868401855b8281101561353f57815180516001600160801b0316855286015160ff1686850152928401929085019060010161350e565b5091979650505050505050565b60208152600061309060208301846133c6565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600061ffff8083168185168083038211156135b1576135b16136d4565b01949350505050565b600082198211156135cd576135cd6136d4565b500190565b6000826135e1576135e16136ea565b500490565b6000816000190483118215151615613600576136006136d4565b500290565b600082821015613617576136176136d4565b500390565b60005b8381101561363757818101518382015260200161361f565b838111156119c85750506000910152565b600181811c9082168061365c57607f821691505b6020821081141561367d57634e487b7160e01b600052602260045260246000fd5b50919050565b600061ffff8083168181141561369b5761369b6136d4565b6001019392505050565b60006000198214156136b9576136b96136d4565b5060010190565b6000826136cf576136cf6136ea565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114611c0c57600080fdfea26469706673582212208734018dba67c9174db8ec7ef12344139151c7ed3de4cb8c66622b960dfb8bc164736f6c63430008040033
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.