ERC-721
Overview
Max Total Supply
8,807 SMLS
Holders
3,965
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 SMLSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Smilesssvrs
Compiler Version
v0.8.9+commit.e5eed63a
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.9; // All Smilesss LLC (www.smilesss.com) // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*********************************ALLSMILESSS**********************************@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@&(**********/%@@@@@@@@@@@@@@*******************************&(@@@@@@@@@@/%*******************************@@@@@@@@@@@@@&(**********/%@@@@@@@@@@@@@@@@ // @@@@@@@@@@@(********************/&@@@@@@@@@@**************************(@@@@@@@@@@@@@@@@@@@@/&*************************@@@@@@@@@@(********************/&@@@@@@@@@@@ // @@@@@@@@%**************************/@@@@@@@@@**********************%@@@@@@@@@@@@@@@@@@@@@@@@@@/**********************@@@@@@@@%**************************/@@@@@@@@@ // @@@@@@&******************************(@@@@@@@@*******************&@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@(*******************@@@@@@@&******************************(@@@@@@@ // @@@@@#********************#(***********@@@@@@@@*****************#@@@@@@@@@@@@@@@@@@@@#(@@@@@@@@@@@*****************@@@@@@@#********************#(***********@@@@@@ // @@@@#********************/@@%***********@@@@@@@@***************#@@@@@@@@@@@@@@@@@@@@/**%@@@@@@@@@@@***************@@@@@@@#********************/@@%***********@@@@@ // @@@@/*****@@@@@/*@@@@@%***#@@#***********%@@@@@@@**************/@@@@@*****/@*****%@@@#**#@@@@@@@@@@@%************@@@@@@@@/*****@@@@@/*@@@@@%***#@@#***********%@@@ // @@@@******@@@@@/*@@@@@*****@@@**********#@@@@@@@@@*************@@@@@@*****/@*****@@@@@***@@@@@@@@@@#************@@@@@@@@@******@@@@@/*@@@@@*****@@@**********#@@@@ // @@@@/**********************@@@**********%@@@@@@@@@@************/@@@@@@@@@@@@@@@@@@@@@@***@@@@@@@@@@%***********@@@@@@@@@@/**********************@@@**********%@@@@ // @@@@%*****@@@@@/*@@@@@****#@@#*********(@@@@@@@@@@@@***********%@@@@@*****/@*****@@@@#**#@@@@@@@@@(***********@@@@@@@@@@@%*****@@@@@/*@@@@@****#@@#*********(@@@@@ // @@@@@&****@@@@@/*@@@@@***/@@%*********/@@@@@@@@@@@@@@***********&@@@@*****/@*****@@@/**%@@@@@@@@@/***********@@@@@@@@@@@@@&****@@@@@/*@@@@@***/@@%*********/@@@@@@ // @@@@@@@/******************#(*********%@@@@@@@@@@@@@@@@************/@@@@@@@@@@@@@@@@@@#(@@@@@@@@@%***********@@@@@@@@@@@@@@@@/******************#(*********%@@@@@@@ // @@@@@@@@@/*************************&@@@@@@@@@@@@@@@@@@@*************/@@@@@@@@@@@@@@@@@@@@@@@@@&************@@@@@@@@@@@@@@@@@@@/*************************&@@@@@@@@@ // @@@@@@@@@@@@(*******************%@@@@@@@@@@@@@@@@@@@@@@@***************(@@@@@@@@@@@@@@@@@@@%**************@@@@@@@@@@@@@@@@@@@@@@@(*******************%@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@&%(//***/(#&@@@@@@@@@@@@@@@@@@@@@@@@@@@@@******************&%(//@@@/(#&******************@@@@@@@@@@@@@@@@@@@@@@@@@@@@&%(//***/(#&@@@@@@@@@@@@@@@@@ // @@S@@@@@@@@@@@@I@@@@@@@@@@@@@@G@@@@@@@@@@@@@N@@@@@@@@@@@@@*O*************R*************C**************R*@@@@@@@@@@@@Y@@@@@@@@@@@@@P@@@@@@@@@@@@@@T@@@@@@@@@@@@@O@@ // Artist: Waheed Zai // Project Manager: Giovanni // Developer: SignorCrypto // Strategy: Jake // Community: Logan, Trish, 90u, Twoseven, Franklin // Content creator: Verifryd // Advisors: JRBlake, Jonah B, Josh import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/Counters.sol'; import '@openzeppelin/contracts/security/ReentrancyGuard.sol'; import '@openzeppelin/contracts/utils/cryptography/ECDSA.sol'; contract Smilesssvrs is ERC721Enumerable, Ownable, ReentrancyGuard { using ECDSA for bytes32; using Strings for uint256; using Counters for Counters.Counter; Counters.Counter private _tokenIds; // Contract State enum MintStatus { CLOSED, ACT_I, ACT_II, ACT_III, ACT_IV, PUBLIC_I, PUBLIC_II } MintStatus public _mintStatus = MintStatus.CLOSED; bool public reveal = false; // ERC721 params string private tokenName = 'Smilesss'; string private tokenId = 'SMLS'; string private _baseTokenURI = 'http://www.smilesss.com/api/metadata/'; // Withdraw address address private withdraw_address = 0x10fD2b2E5a8E0fe05A018B2aE4BbEc4D725FF547; // ECDSA address private signer_address = 0xd31ADBC091A37cafE4c9Fd0426905E8256f1AaCc; mapping(string => bool) private _isNonceUsed; // Collection params uint256 public constant TOT = 8888; uint256 public constant GIVEAWAY = 502; uint256 public constant PUBLIC_II_MINT_LIMIT = 8; uint256 public constant PRICE = 0.1 ether; // Utils uint256 public currentTokenId; uint256 public giveawaySupply = GIVEAWAY; uint256 public mintableSupply = TOT - GIVEAWAY; // Premint list mapping(address => bool) private _premintList; mapping(address => uint256) private _premintClaimed; mapping(address => uint256) private _premintAvailable; mapping(address => MintStatus) private _premintTier; // CLOSED (0) | ACT_I (9 premint + 1 for free) | ACT_II (4 premint) // ACT_III (2 premint) | ACT_IV (1 premint) | PUBLIC_I (1) uint256[6] public TIER_LIMIT = [0, 9, 4, 2, 1, 1]; // Event declaration event MintEvent(uint256 indexed id); // Modifiers modifier olnyIfAvailable(uint256 _amount) { require(_mintStatus != MintStatus.CLOSED, 'Minting is closed'); require(_tokenIds.current() < TOT, 'Collection is sold out'); require(_amount <= mintableSupply, 'Not enough NFTs available'); require(_amount > 0, 'NFTs amount must be greater than zero'); require(msg.value == PRICE * _amount, 'Ether sent is not correct'); _; } // Signature verfification modifier onlySignedTx( uint256 _amount, string memory _nonce, bytes memory _signature ) { require(!_isNonceUsed[_nonce], 'Nonce already used'); require( keccak256(abi.encodePacked(msg.sender, _amount, _nonce)) .toEthSignedMessageHash() .recover(_signature) == signer_address, 'Signature do not correspond' ); // Save nonce as used _isNonceUsed[_nonce] = true; _; } // Constructor constructor() ERC721(tokenName, tokenId) {} // Private mint function function Enter(address _to, uint256 _amount) private { for (uint256 i; i < _amount; i++) { _tokenIds.increment(); _safeMint(_to, _tokenIds.current()); currentTokenId = _tokenIds.current(); emit MintEvent(currentTokenId); } } // Private premint function for Act_I, Act_II, Act_III and Act_IV tiers function premint(uint256 _amount) private { require(_premintList[msg.sender], 'You need a premint'); require( _mintStatus >= _premintTier[msg.sender], 'Minting is still closed for your tier' ); require( _premintClaimed[msg.sender] < _premintAvailable[msg.sender], 'You already claimed your premint NFTs' ); require( _amount <= _premintAvailable[msg.sender], 'Exceeded the max amount of NFT mintable in your tier' ); require( _amount + _premintClaimed[msg.sender] <= _premintAvailable[msg.sender], 'You do not have enough premint available' ); if ( _premintTier[msg.sender] == MintStatus.ACT_I && _premintClaimed[msg.sender] == 0 ) { // Give one for free Enter(msg.sender, _amount + 1); mintableSupply -= (_amount + 1); } else { Enter(msg.sender, _amount); mintableSupply -= _amount; } _premintClaimed[msg.sender] += _amount; } // Private mint function for public mint function publicIIMint(uint256 _amount) private { require(_mintStatus == MintStatus.PUBLIC_II, 'Public II is closed'); require( _amount <= PUBLIC_II_MINT_LIMIT, 'Exceeded the max amount of NFT mintable in one transaction' ); Enter(msg.sender, _amount); mintableSupply -= _amount; } // Private mint function for public I mint -> Only 1 NFT function publicIMint(uint256 _amount) private { require(_mintStatus == MintStatus.PUBLIC_I, 'Public I is closed'); require( _amount <= TIER_LIMIT[uint256(_mintStatus)], 'Exceeded the max amount of NFT mintable in Public I tier' ); if (_premintList[msg.sender]) { require( _premintClaimed[msg.sender] == 0, 'You already partecipated in the premint' ); } _premintList[msg.sender] = true; _premintClaimed[msg.sender] += _amount; Enter(msg.sender, _amount); mintableSupply -= _amount; } // Public mint function to interact with the smart contract function mint( uint256 _amount, string memory _nonce, bytes memory _signature ) external payable olnyIfAvailable(_amount) onlySignedTx(_amount, _nonce, _signature) nonReentrant { if (_mintStatus == MintStatus.PUBLIC_II) { publicIIMint(_amount); } else if (_mintStatus == MintStatus.PUBLIC_I) { publicIMint(_amount); } else { premint(_amount); } } // GIVEAWAY function giveaway(address _to, uint256 _amount) external onlyOwner { require(_amount <= giveawaySupply, 'Not enough giveaway available'); Enter(_to, _amount); giveawaySupply -= _amount; } // Add users to premit list function addToPremintList(uint256 _tier, address[] calldata _addresses) external onlyOwner { require(_tier > 0, 'Tier cannot be zero'); require(_tier < 5, 'Tier must be smaller than five'); for (uint256 i = 0; i < _addresses.length; i++) { require(!_premintList[_addresses[i]], 'Already in premint list'); _premintList[_addresses[i]] = true; _premintClaimed[_addresses[i]] = 0; _premintAvailable[_addresses[i]] = TIER_LIMIT[uint256(_tier)]; _premintTier[_addresses[i]] = MintStatus(_tier); } } // Add single premint to contest winners function addPremint(address[] calldata _addresses) external onlyOwner { for (uint256 i = 0; i < _addresses.length; i++) { if (_premintList[_addresses[i]]) { _premintAvailable[_addresses[i]] += 1; } else { _premintList[_addresses[i]] = true; _premintClaimed[_addresses[i]] = 0; _premintAvailable[_addresses[i]] = 1; _premintTier[_addresses[i]] = MintStatus.ACT_IV; } } } // Setters function setStatus(uint8 _status) external onlyOwner { _mintStatus = MintStatus(_status); } function setReveal(bool _reveal) public onlyOwner { reveal = _reveal; } function setBaseURI(string memory _URI) public onlyOwner { _baseTokenURI = _URI; } function setSignerAddress(address _signer) external onlyOwner { signer_address = _signer; } function setWithdrawAddress(address _withdraw) external onlyOwner { withdraw_address = _withdraw; } // Contract state function getContractState() external view returns ( MintStatus mintStatus_, uint256 tot_, uint256 price_, uint256 currentTokenId_, uint256 mintableSupply_ ) { return (_mintStatus, TOT, PRICE, currentTokenId, mintableSupply); } function isOnPremint(address _address) external view returns ( MintStatus tier, uint256 claimed_, uint256 tierLimit_ ) { if (_premintList[_address]) { return ( _premintTier[_address], _premintClaimed[_address], _premintAvailable[_address] ); } else { return (MintStatus.CLOSED, 0, 0); } } function tokenExists(uint256 _tokenId) public view returns (bool) { return _exists(_tokenId); } // URI function tokenURI(uint256 _tokenId) public view override(ERC721) returns (string memory) { require(_exists(_tokenId), 'Token does not exist'); return string(abi.encodePacked(_baseTokenURI, _tokenId.toString())); } // Withdraw function function withdrawAll() external payable onlyOwner { require(address(this).balance != 0, 'Balance is zero'); require(payable(withdraw_address).send(address(this).balance)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev 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; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 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 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 pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"MintEvent","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":"GIVEAWAY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_II_MINT_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"TIER_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_mintStatus","outputs":[{"internalType":"enum Smilesssvrs.MintStatus","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"addPremint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tier","type":"uint256"},{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"addToPremintList","outputs":[],"stateMutability":"nonpayable","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":"currentTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getContractState","outputs":[{"internalType":"enum Smilesssvrs.MintStatus","name":"mintStatus_","type":"uint8"},{"internalType":"uint256","name":"tot_","type":"uint256"},{"internalType":"uint256","name":"price_","type":"uint256"},{"internalType":"uint256","name":"currentTokenId_","type":"uint256"},{"internalType":"uint256","name":"mintableSupply_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"giveaway","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"giveawaySupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"isOnPremint","outputs":[{"internalType":"enum Smilesssvrs.MintStatus","name":"tier","type":"uint8"},{"internalType":"uint256","name":"claimed_","type":"uint256"},{"internalType":"uint256","name":"tierLimit_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"string","name":"_nonce","type":"string"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintableSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reveal","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"_URI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_reveal","type":"bool"}],"name":"setReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_status","type":"uint8"}],"name":"setStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_withdraw","type":"address"}],"name":"setWithdrawAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenExists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
600d805461ffff1916905560c06040526008608081905267536d696c6573737360c01b60a09081526200003691600e919062000318565b5060408051808201909152600480825263534d4c5360e01b60209092019182526200006491600f9162000318565b5060405180606001604052806025815260200162003cd6602591398051620000959160109160209091019062000318565b50601180546001600160a01b03199081167310fd2b2e5a8e0fe05a018b2ae4bbec4d725ff547179091556012805490911673d31adbc091a37cafe4c9fd0426905e8256f1aacc1790556101f66015819055620000f4906122b8620003f4565b6016556040805160c08101825260008152600960208201526004918101919091526002606082015260016080820181905260a08201526200013a90601b906006620003a7565b503480156200014857600080fd5b50600e805462000158906200041a565b80601f016020809104026020016040519081016040528092919081815260200182805462000186906200041a565b8015620001d75780601f10620001ab57610100808354040283529160200191620001d7565b820191906000526020600020905b815481529060010190602001808311620001b957829003601f168201915b5050505050600f8054620001eb906200041a565b80601f016020809104026020016040519081016040528092919081815260200182805462000219906200041a565b80156200026a5780601f106200023e576101008083540402835291602001916200026a565b820191906000526020600020905b8154815290600101906020018083116200024c57829003601f168201915b505084516200028493506000925060208601915062000318565b5080516200029a90600190602084019062000318565b505050620002b7620002b1620002c260201b60201c565b620002c6565b6001600b5562000457565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805462000326906200041a565b90600052602060002090601f0160209004810192826200034a576000855562000395565b82601f106200036557805160ff191683800117855562000395565b8280016001018555821562000395579182015b828111156200039557825182559160200191906001019062000378565b50620003a3929150620003dd565b5090565b826006810192821562000395579160200282015b8281111562000395578251829060ff16905591602001919060010190620003bb565b5b80821115620003a35760008155600101620003de565b6000828210156200041557634e487b7160e01b600052601160045260246000fd5b500390565b600181811c908216806200042f57607f821691505b602082108114156200045157634e487b7160e01b600052602260045260246000fd5b50919050565b61386f80620004676000396000f3fe60806040526004361061024f5760003560e01c806370a0823111610139578063a22cb465116100b6578063c7c9aecd1161007a578063c7c9aecd146106d2578063c87b56dd146106e7578063cc5c095c14610707578063e288e7331461071d578063e985e9c514610733578063f2fde38b1461077c57600080fd5b8063a22cb4651461061d578063a475b5dd1461063d578063b88d4fde1461065c578063bbb08ac81461067c578063c597fbf6146106ab57600080fd5b8063853828b6116100fd578063853828b6146105b05780638d859f3e146105b85780638da5cb5b146105d4578063948cd413146105f257806395d89b411461060857600080fd5b806370a0823114610514578063715018a61461053457806373ae0ccc14610549578063785cc997146105695780637f4e48491461057c57600080fd5b806323b872dd116101d25780633ab1a494116101965780633ab1a4941461045e57806342842e0e1461047e5780634f6ccce71461049e57806355f804b3146104be5780636352211e146104de57806369ff2d11146104fe57600080fd5b806323b872dd146103be5780632a3f300c146103de5780632e49d78b146103fe5780632f745c591461041e5780632f818d1e1461043e57600080fd5b806306fdde031161021957806306fdde031461030f578063081812fc14610331578063095ea7b31461036957806318160ddd146103895780631fc4472e1461039e57600080fd5b8062923f9e146102545780629a9b7b1461028957806301ffc9a7146102ad578063046dc166146102cd578063050225ea146102ef575b600080fd5b34801561026057600080fd5b5061027461026f366004612faa565b61079c565b60405190151581526020015b60405180910390f35b34801561029557600080fd5b5061029f60145481565b604051908152602001610280565b3480156102b957600080fd5b506102746102c8366004612fd9565b6107bd565b3480156102d957600080fd5b506102ed6102e8366004613019565b6107e2565b005b3480156102fb57600080fd5b506102ed61030a366004613034565b610837565b34801561031b57600080fd5b506103246108d8565b60405161028091906130b6565b34801561033d57600080fd5b5061035161034c366004612faa565b61096a565b6040516001600160a01b039091168152602001610280565b34801561037557600080fd5b506102ed610384366004613034565b6109ff565b34801561039557600080fd5b5060085461029f565b3480156103aa57600080fd5b5061029f6103b9366004612faa565b610b15565b3480156103ca57600080fd5b506102ed6103d93660046130c9565b610b2c565b3480156103ea57600080fd5b506102ed6103f9366004613115565b610b5d565b34801561040a57600080fd5b506102ed610419366004613130565b610ba1565b34801561042a57600080fd5b5061029f610439366004613034565b610c04565b34801561044a57600080fd5b506102ed610459366004613198565b610c9a565b34801561046a57600080fd5b506102ed610479366004613019565b610f7d565b34801561048a57600080fd5b506102ed6104993660046130c9565b610fc9565b3480156104aa57600080fd5b5061029f6104b9366004612faa565b610fe4565b3480156104ca57600080fd5b506102ed6104d9366004613287565b611077565b3480156104ea57600080fd5b506103516104f9366004612faa565b6110b8565b34801561050a57600080fd5b5061029f6122b881565b34801561052057600080fd5b5061029f61052f366004613019565b61112f565b34801561054057600080fd5b506102ed6111b6565b34801561055557600080fd5b506102ed6105643660046132bc565b6111ec565b6102ed6105773660046132fe565b611444565b34801561058857600080fd5b50600d546014546016546040516102809360ff16926122b89267016345785d8a0000926133a3565b6102ed61184a565b3480156105c457600080fd5b5061029f67016345785d8a000081565b3480156105e057600080fd5b50600a546001600160a01b0316610351565b3480156105fe57600080fd5b5061029f6101f681565b34801561061457600080fd5b506103246118e4565b34801561062957600080fd5b506102ed6106383660046133d3565b6118f3565b34801561064957600080fd5b50600d5461027490610100900460ff1681565b34801561066857600080fd5b506102ed610677366004613406565b6119b8565b34801561068857600080fd5b5061069c610697366004613019565b6119ea565b6040516102809392919061346e565b3480156106b757600080fd5b50600d546106c59060ff1681565b604051610280919061348d565b3480156106de57600080fd5b5061029f600881565b3480156106f357600080fd5b50610324610702366004612faa565b611a5a565b34801561071357600080fd5b5061029f60165481565b34801561072957600080fd5b5061029f60155481565b34801561073f57600080fd5b5061027461074e36600461349b565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561078857600080fd5b506102ed610797366004613019565b611aea565b6000818152600260205260408120546001600160a01b031615155b92915050565b60006001600160e01b0319821663780e9d6360e01b14806107b757506107b782611b85565b600a546001600160a01b031633146108155760405162461bcd60e51b815260040161080c906134c5565b60405180910390fd5b601280546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b031633146108615760405162461bcd60e51b815260040161080c906134c5565b6015548111156108b35760405162461bcd60e51b815260206004820152601d60248201527f4e6f7420656e6f75676820676976656177617920617661696c61626c65000000604482015260640161080c565b6108bd8282611bd5565b80601560008282546108cf9190613510565b90915550505050565b6060600080546108e790613527565b80601f016020809104026020016040519081016040528092919081815260200182805461091390613527565b80156109605780601f1061093557610100808354040283529160200191610960565b820191906000526020600020905b81548152906001019060200180831161094357829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166109e35760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161080c565b506000908152600460205260409020546001600160a01b031690565b6000610a0a826110b8565b9050806001600160a01b0316836001600160a01b03161415610a785760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161080c565b336001600160a01b0382161480610a945750610a94813361074e565b610b065760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161080c565b610b108383611c43565b505050565b601b8160068110610b2557600080fd5b0154905081565b610b363382611cb1565b610b525760405162461bcd60e51b815260040161080c90613562565b610b10838383611da8565b600a546001600160a01b03163314610b875760405162461bcd60e51b815260040161080c906134c5565b600d80549115156101000261ff0019909216919091179055565b600a546001600160a01b03163314610bcb5760405162461bcd60e51b815260040161080c906134c5565b8060ff166006811115610be057610be061336b565b600d805460ff19166001836006811115610bfc57610bfc61336b565b021790555050565b6000610c0f8361112f565b8210610c715760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161080c565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b03163314610cc45760405162461bcd60e51b815260040161080c906134c5565b60008311610d0a5760405162461bcd60e51b8152602060048201526013602482015272546965722063616e6e6f74206265207a65726f60681b604482015260640161080c565b60058310610d5a5760405162461bcd60e51b815260206004820152601e60248201527f54696572206d75737420626520736d616c6c6572207468616e20666976650000604482015260640161080c565b60005b81811015610f775760176000848484818110610d7b57610d7b6135b3565b9050602002016020810190610d909190613019565b6001600160a01b0316815260208101919091526040016000205460ff1615610dfa5760405162461bcd60e51b815260206004820152601760248201527f416c726561647920696e207072656d696e74206c697374000000000000000000604482015260640161080c565b600160176000858585818110610e1257610e126135b3565b9050602002016020810190610e279190613019565b6001600160a01b0316815260208101919091526040016000908120805460ff191692151592909217909155601881858585818110610e6757610e676135b3565b9050602002016020810190610e7c9190613019565b6001600160a01b03168152602081019190915260400160002055601b8460068110610ea957610ea96135b3565b015460196000858585818110610ec157610ec16135b3565b9050602002016020810190610ed69190613019565b6001600160a01b03168152602081019190915260400160002055836006811115610f0257610f0261336b565b601a6000858585818110610f1857610f186135b3565b9050602002016020810190610f2d9190613019565b6001600160a01b031681526020810191909152604001600020805460ff19166001836006811115610f6057610f6061336b565b021790555080610f6f816135c9565b915050610d5d565b50505050565b600a546001600160a01b03163314610fa75760405162461bcd60e51b815260040161080c906134c5565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b610b10838383604051806020016040528060008152506119b8565b6000610fef60085490565b82106110525760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161080c565b60088281548110611065576110656135b3565b90600052602060002001549050919050565b600a546001600160a01b031633146110a15760405162461bcd60e51b815260040161080c906134c5565b80516110b4906010906020840190612f11565b5050565b6000818152600260205260408120546001600160a01b0316806107b75760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161080c565b60006001600160a01b03821661119a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161080c565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b031633146111e05760405162461bcd60e51b815260040161080c906134c5565b6111ea6000611f53565b565b600a546001600160a01b031633146112165760405162461bcd60e51b815260040161080c906134c5565b60005b81811015610b105760176000848484818110611237576112376135b3565b905060200201602081019061124c9190613019565b6001600160a01b0316815260208101919091526040016000205460ff16156112d557600160196000858585818110611286576112866135b3565b905060200201602081019061129b9190613019565b6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546112ca91906135e4565b909155506114329050565b6001601760008585858181106112ed576112ed6135b3565b90506020020160208101906113029190613019565b6001600160a01b0316815260208101919091526040016000908120805460ff191692151592909217909155601881858585818110611342576113426135b3565b90506020020160208101906113579190613019565b6001600160a01b03166001600160a01b0316815260200190815260200160002081905550600160196000858585818110611393576113936135b3565b90506020020160208101906113a89190613019565b6001600160a01b03166001600160a01b03168152602001908152602001600020819055506004601a60008585858181106113e4576113e46135b3565b90506020020160208101906113f99190613019565b6001600160a01b031681526020810191909152604001600020805460ff1916600183600681111561142c5761142c61336b565b02179055505b8061143c816135c9565b915050611219565b826000600d5460ff16600681111561145e5761145e61336b565b14156114a05760405162461bcd60e51b8152602060048201526011602482015270135a5b9d1a5b99c81a5cc818db1bdcd959607a1b604482015260640161080c565b6122b86114ac600c5490565b106114f25760405162461bcd60e51b815260206004820152601660248201527510dbdb1b1958dd1a5bdb881a5cc81cdbdb19081bdd5d60521b604482015260640161080c565b6016548111156115445760405162461bcd60e51b815260206004820152601960248201527f4e6f7420656e6f756768204e46547320617661696c61626c6500000000000000604482015260640161080c565b600081116115a25760405162461bcd60e51b815260206004820152602560248201527f4e46547320616d6f756e74206d7573742062652067726561746572207468616e604482015264207a65726f60d81b606482015260840161080c565b6115b48167016345785d8a00006135fc565b34146116025760405162461bcd60e51b815260206004820152601960248201527f45746865722073656e74206973206e6f7420636f727265637400000000000000604482015260640161080c565b8383836013826040516116159190613637565b9081526040519081900360200190205460ff161561166a5760405162461bcd60e51b8152602060048201526012602482015271139bdb98d948185b1c9958591e481d5cd95960721b604482015260640161080c565b6012546040516001600160a01b03909116906116fe9083906116f89061169890339089908990602001613653565b60408051601f1981840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b90611fa5565b6001600160a01b0316146117545760405162461bcd60e51b815260206004820152601b60248201527f5369676e617475726520646f206e6f7420636f72726573706f6e640000000000604482015260640161080c565b60016013836040516117669190613637565b908152604051908190036020019020805491151560ff19909216919091179055600b54600214156117d95760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161080c565b6002600b556006600d5460ff1660068111156117f7576117f761336b565b141561180b5761180687611fc9565b61183c565b6005600d5460ff1660068111156118245761182461336b565b141561183357611806876120c0565b61183c87612285565b50506001600b555050505050565b600a546001600160a01b031633146118745760405162461bcd60e51b815260040161080c906134c5565b476118b35760405162461bcd60e51b815260206004820152600f60248201526e42616c616e6365206973207a65726f60881b604482015260640161080c565b6011546040516001600160a01b03909116904780156108fc02916000818181858888f193505050506111ea57600080fd5b6060600180546108e790613527565b6001600160a01b03821633141561194c5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161080c565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6119c23383611cb1565b6119de5760405162461bcd60e51b815260040161080c90613562565b610f77848484846125a9565b6001600160a01b0381166000908152601760205260408120548190819060ff1615611a49575050506001600160a01b0381166000908152601a60209081526040808320546018835281842054601990935292205460ff90921691611a53565b5060009150819050805b9193909250565b6000818152600260205260409020546060906001600160a01b0316611ab85760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b604482015260640161080c565b6010611ac3836125dc565b604051602001611ad4929190613692565b6040516020818303038152906040529050919050565b600a546001600160a01b03163314611b145760405162461bcd60e51b815260040161080c906134c5565b6001600160a01b038116611b795760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161080c565b611b8281611f53565b50565b60006001600160e01b031982166380ac58cd60e01b1480611bb657506001600160e01b03198216635b5e139f60e01b145b806107b757506301ffc9a760e01b6001600160e01b03198316146107b7565b60005b81811015610b1057611bee600c80546001019055565b611c0083611bfb600c5490565b6126da565b600c5460148190556040517f94242c431036b9ba6723a138d4b275a5b38e13a95ef66227a45df427c0f843f390600090a280611c3b816135c9565b915050611bd8565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611c78826110b8565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316611d2a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161080c565b6000611d35836110b8565b9050806001600160a01b0316846001600160a01b03161480611d705750836001600160a01b0316611d658461096a565b6001600160a01b0316145b80611da057506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611dbb826110b8565b6001600160a01b031614611e235760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161080c565b6001600160a01b038216611e855760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161080c565b611e908383836126f4565b611e9b600082611c43565b6001600160a01b0383166000908152600360205260408120805460019290611ec4908490613510565b90915550506001600160a01b0382166000908152600360205260408120805460019290611ef29084906135e4565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000806000611fb485856127ac565b91509150611fc18161281c565b509392505050565b6006600d5460ff166006811115611fe257611fe261336b565b146120255760405162461bcd60e51b8152602060048201526013602482015272141d589b1a58c81252481a5cc818db1bdcd959606a1b604482015260640161080c565b600881111561209c5760405162461bcd60e51b815260206004820152603a60248201527f457863656564656420746865206d617820616d6f756e74206f66204e4654206d60448201527f696e7461626c6520696e206f6e65207472616e73616374696f6e000000000000606482015260840161080c565b6120a63382611bd5565b80601660008282546120b89190613510565b909155505050565b6005600d5460ff1660068111156120d9576120d961336b565b1461211b5760405162461bcd60e51b8152602060048201526012602482015271141d589b1a58c812481a5cc818db1bdcd95960721b604482015260640161080c565b600d54601b9060ff1660068111156121355761213561336b565b60068110612145576121456135b3565b01548111156121bc5760405162461bcd60e51b815260206004820152603860248201527f457863656564656420746865206d617820616d6f756e74206f66204e4654206d60448201527f696e7461626c6520696e205075626c6963204920746965720000000000000000606482015260840161080c565b3360009081526017602052604090205460ff16156122415733600090815260186020526040902054156122415760405162461bcd60e51b815260206004820152602760248201527f596f7520616c72656164792070617274656369706174656420696e20746865206044820152661c1c995b5a5b9d60ca1b606482015260840161080c565b336000908152601760209081526040808320805460ff191660011790556018909152812080548392906122759084906135e4565b909155506120a690503382611bd5565b3360009081526017602052604090205460ff166122d95760405162461bcd60e51b8152602060048201526012602482015271165bdd481b9959590818481c1c995b5a5b9d60721b604482015260640161080c565b336000908152601a602052604090205460ff1660068111156122fd576122fd61336b565b600d5460ff1660068111156123145761231461336b565b10156123705760405162461bcd60e51b815260206004820152602560248201527f4d696e74696e67206973207374696c6c20636c6f73656420666f7220796f7572604482015264103a34b2b960d91b606482015260840161080c565b33600090815260196020908152604080832054601890925290912054106123e75760405162461bcd60e51b815260206004820152602560248201527f596f7520616c726561647920636c61696d656420796f7572207072656d696e74604482015264204e46547360d81b606482015260840161080c565b336000908152601960205260409020548111156124635760405162461bcd60e51b815260206004820152603460248201527f457863656564656420746865206d617820616d6f756e74206f66204e4654206d60448201527334b73a30b136329034b7103cb7bab9103a34b2b960611b606482015260840161080c565b3360009081526019602090815260408083205460189092529091205461248990836135e4565b11156124e85760405162461bcd60e51b815260206004820152602860248201527f596f7520646f206e6f74206861766520656e6f756768207072656d696e7420616044820152677661696c61626c6560c01b606482015260840161080c565b6001336000908152601a602052604090205460ff16600681111561250e5761250e61336b565b148015612528575033600090815260186020526040902054155b15612568576125413361253c8360016135e4565b611bd5565b61254c8160016135e4565b6016600082825461255d9190613510565b9091555061258a9050565b6125723382611bd5565b80601660008282546125849190613510565b90915550505b33600090815260186020526040812080548392906120b89084906135e4565b6125b4848484611da8565b6125c0848484846129d7565b610f775760405162461bcd60e51b815260040161080c90613739565b6060816126005750506040805180820190915260018152600360fc1b602082015290565b8160005b811561262a5780612614816135c9565b91506126239050600a836137a1565b9150612604565b60008167ffffffffffffffff811115612645576126456131e4565b6040519080825280601f01601f19166020018201604052801561266f576020820181803683370190505b5090505b8415611da057612684600183613510565b9150612691600a866137b5565b61269c9060306135e4565b60f81b8183815181106126b1576126b16135b3565b60200101906001600160f81b031916908160001a9053506126d3600a866137a1565b9450612673565b6110b4828260405180602001604052806000815250612ae4565b6001600160a01b03831661274f5761274a81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612772565b816001600160a01b0316836001600160a01b031614612772576127728382612b17565b6001600160a01b03821661278957610b1081612bb4565b826001600160a01b0316826001600160a01b031614610b1057610b108282612c63565b6000808251604114156127e35760208301516040840151606085015160001a6127d787828585612ca7565b94509450505050612815565b82516040141561280d5760208301516040840151612802868383612d94565b935093505050612815565b506000905060025b9250929050565b60008160048111156128305761283061336b565b14156128395750565b600181600481111561284d5761284d61336b565b141561289b5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161080c565b60028160048111156128af576128af61336b565b14156128fd5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161080c565b60038160048111156129115761291161336b565b141561296a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161080c565b600481600481111561297e5761297e61336b565b1415611b825760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161080c565b60006001600160a01b0384163b15612ad957604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612a1b9033908990889088906004016137c9565b602060405180830381600087803b158015612a3557600080fd5b505af1925050508015612a65575060408051601f3d908101601f19168201909252612a6291810190613806565b60015b612abf573d808015612a93576040519150601f19603f3d011682016040523d82523d6000602084013e612a98565b606091505b508051612ab75760405162461bcd60e51b815260040161080c90613739565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611da0565b506001949350505050565b612aee8383612dc3565b612afb60008484846129d7565b610b105760405162461bcd60e51b815260040161080c90613739565b60006001612b248461112f565b612b2e9190613510565b600083815260076020526040902054909150808214612b81576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612bc690600190613510565b60008381526009602052604081205460088054939450909284908110612bee57612bee6135b3565b906000526020600020015490508060088381548110612c0f57612c0f6135b3565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612c4757612c47613823565b6001900381819060005260206000200160009055905550505050565b6000612c6e8361112f565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612cde5750600090506003612d8b565b8460ff16601b14158015612cf657508460ff16601c14155b15612d075750600090506004612d8b565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612d5b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612d8457600060019250925050612d8b565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01612db587828885612ca7565b935093505050935093915050565b6001600160a01b038216612e195760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161080c565b6000818152600260205260409020546001600160a01b031615612e7e5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161080c565b612e8a600083836126f4565b6001600160a01b0382166000908152600360205260408120805460019290612eb39084906135e4565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612f1d90613527565b90600052602060002090601f016020900481019282612f3f5760008555612f85565b82601f10612f5857805160ff1916838001178555612f85565b82800160010185558215612f85579182015b82811115612f85578251825591602001919060010190612f6a565b50612f91929150612f95565b5090565b5b80821115612f915760008155600101612f96565b600060208284031215612fbc57600080fd5b5035919050565b6001600160e01b031981168114611b8257600080fd5b600060208284031215612feb57600080fd5b8135612ff681612fc3565b9392505050565b80356001600160a01b038116811461301457600080fd5b919050565b60006020828403121561302b57600080fd5b612ff682612ffd565b6000806040838503121561304757600080fd5b61305083612ffd565b946020939093013593505050565b60005b83811015613079578181015183820152602001613061565b83811115610f775750506000910152565b600081518084526130a281602086016020860161305e565b601f01601f19169290920160200192915050565b602081526000612ff6602083018461308a565b6000806000606084860312156130de57600080fd5b6130e784612ffd565b92506130f560208501612ffd565b9150604084013590509250925092565b8035801515811461301457600080fd5b60006020828403121561312757600080fd5b612ff682613105565b60006020828403121561314257600080fd5b813560ff81168114612ff657600080fd5b60008083601f84011261316557600080fd5b50813567ffffffffffffffff81111561317d57600080fd5b6020830191508360208260051b850101111561281557600080fd5b6000806000604084860312156131ad57600080fd5b83359250602084013567ffffffffffffffff8111156131cb57600080fd5b6131d786828701613153565b9497909650939450505050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261320b57600080fd5b813567ffffffffffffffff80821115613226576132266131e4565b604051601f8301601f19908116603f0116810190828211818310171561324e5761324e6131e4565b8160405283815286602085880101111561326757600080fd5b836020870160208301376000602085830101528094505050505092915050565b60006020828403121561329957600080fd5b813567ffffffffffffffff8111156132b057600080fd5b611da0848285016131fa565b600080602083850312156132cf57600080fd5b823567ffffffffffffffff8111156132e657600080fd5b6132f285828601613153565b90969095509350505050565b60008060006060848603121561331357600080fd5b83359250602084013567ffffffffffffffff8082111561333257600080fd5b61333e878388016131fa565b9350604086013591508082111561335457600080fd5b50613361868287016131fa565b9150509250925092565b634e487b7160e01b600052602160045260246000fd5b6007811061339f57634e487b7160e01b600052602160045260246000fd5b9052565b60a081016133b18288613381565b8560208301528460408301528360608301528260808301529695505050505050565b600080604083850312156133e657600080fd5b6133ef83612ffd565b91506133fd60208401613105565b90509250929050565b6000806000806080858703121561341c57600080fd5b61342585612ffd565b935061343360208601612ffd565b925060408501359150606085013567ffffffffffffffff81111561345657600080fd5b613462878288016131fa565b91505092959194509250565b6060810161347c8286613381565b602082019390935260400152919050565b602081016107b78284613381565b600080604083850312156134ae57600080fd5b6134b783612ffd565b91506133fd60208401612ffd565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082821015613522576135226134fa565b500390565b600181811c9082168061353b57607f821691505b6020821081141561355c57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b60006000198214156135dd576135dd6134fa565b5060010190565b600082198211156135f7576135f76134fa565b500190565b6000816000190483118215151615613616576136166134fa565b500290565b6000815161362d81856020860161305e565b9290920192915050565b6000825161364981846020870161305e565b9190910192915050565b6bffffffffffffffffffffffff198460601b1681528260148201526000825161368381603485016020870161305e565b91909101603401949350505050565b600080845481600182811c9150808316806136ae57607f831692505b60208084108214156136ce57634e487b7160e01b86526022600452602486fd5b8180156136e257600181146136f357613720565b60ff19861689528489019650613720565b60008b81526020902060005b868110156137185781548b8201529085019083016136ff565b505084890196505b505050505050613730818561361b565b95945050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b6000826137b0576137b061378b565b500490565b6000826137c4576137c461378b565b500690565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906137fc9083018461308a565b9695505050505050565b60006020828403121561381857600080fd5b8151612ff681612fc3565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220ff6dc773f16982313a63f801154f24231385fea2ca12de049951b27d158611fc64736f6c63430008090033687474703a2f2f7777772e736d696c657373732e636f6d2f6170692f6d657461646174612f
Deployed Bytecode
0x60806040526004361061024f5760003560e01c806370a0823111610139578063a22cb465116100b6578063c7c9aecd1161007a578063c7c9aecd146106d2578063c87b56dd146106e7578063cc5c095c14610707578063e288e7331461071d578063e985e9c514610733578063f2fde38b1461077c57600080fd5b8063a22cb4651461061d578063a475b5dd1461063d578063b88d4fde1461065c578063bbb08ac81461067c578063c597fbf6146106ab57600080fd5b8063853828b6116100fd578063853828b6146105b05780638d859f3e146105b85780638da5cb5b146105d4578063948cd413146105f257806395d89b411461060857600080fd5b806370a0823114610514578063715018a61461053457806373ae0ccc14610549578063785cc997146105695780637f4e48491461057c57600080fd5b806323b872dd116101d25780633ab1a494116101965780633ab1a4941461045e57806342842e0e1461047e5780634f6ccce71461049e57806355f804b3146104be5780636352211e146104de57806369ff2d11146104fe57600080fd5b806323b872dd146103be5780632a3f300c146103de5780632e49d78b146103fe5780632f745c591461041e5780632f818d1e1461043e57600080fd5b806306fdde031161021957806306fdde031461030f578063081812fc14610331578063095ea7b31461036957806318160ddd146103895780631fc4472e1461039e57600080fd5b8062923f9e146102545780629a9b7b1461028957806301ffc9a7146102ad578063046dc166146102cd578063050225ea146102ef575b600080fd5b34801561026057600080fd5b5061027461026f366004612faa565b61079c565b60405190151581526020015b60405180910390f35b34801561029557600080fd5b5061029f60145481565b604051908152602001610280565b3480156102b957600080fd5b506102746102c8366004612fd9565b6107bd565b3480156102d957600080fd5b506102ed6102e8366004613019565b6107e2565b005b3480156102fb57600080fd5b506102ed61030a366004613034565b610837565b34801561031b57600080fd5b506103246108d8565b60405161028091906130b6565b34801561033d57600080fd5b5061035161034c366004612faa565b61096a565b6040516001600160a01b039091168152602001610280565b34801561037557600080fd5b506102ed610384366004613034565b6109ff565b34801561039557600080fd5b5060085461029f565b3480156103aa57600080fd5b5061029f6103b9366004612faa565b610b15565b3480156103ca57600080fd5b506102ed6103d93660046130c9565b610b2c565b3480156103ea57600080fd5b506102ed6103f9366004613115565b610b5d565b34801561040a57600080fd5b506102ed610419366004613130565b610ba1565b34801561042a57600080fd5b5061029f610439366004613034565b610c04565b34801561044a57600080fd5b506102ed610459366004613198565b610c9a565b34801561046a57600080fd5b506102ed610479366004613019565b610f7d565b34801561048a57600080fd5b506102ed6104993660046130c9565b610fc9565b3480156104aa57600080fd5b5061029f6104b9366004612faa565b610fe4565b3480156104ca57600080fd5b506102ed6104d9366004613287565b611077565b3480156104ea57600080fd5b506103516104f9366004612faa565b6110b8565b34801561050a57600080fd5b5061029f6122b881565b34801561052057600080fd5b5061029f61052f366004613019565b61112f565b34801561054057600080fd5b506102ed6111b6565b34801561055557600080fd5b506102ed6105643660046132bc565b6111ec565b6102ed6105773660046132fe565b611444565b34801561058857600080fd5b50600d546014546016546040516102809360ff16926122b89267016345785d8a0000926133a3565b6102ed61184a565b3480156105c457600080fd5b5061029f67016345785d8a000081565b3480156105e057600080fd5b50600a546001600160a01b0316610351565b3480156105fe57600080fd5b5061029f6101f681565b34801561061457600080fd5b506103246118e4565b34801561062957600080fd5b506102ed6106383660046133d3565b6118f3565b34801561064957600080fd5b50600d5461027490610100900460ff1681565b34801561066857600080fd5b506102ed610677366004613406565b6119b8565b34801561068857600080fd5b5061069c610697366004613019565b6119ea565b6040516102809392919061346e565b3480156106b757600080fd5b50600d546106c59060ff1681565b604051610280919061348d565b3480156106de57600080fd5b5061029f600881565b3480156106f357600080fd5b50610324610702366004612faa565b611a5a565b34801561071357600080fd5b5061029f60165481565b34801561072957600080fd5b5061029f60155481565b34801561073f57600080fd5b5061027461074e36600461349b565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561078857600080fd5b506102ed610797366004613019565b611aea565b6000818152600260205260408120546001600160a01b031615155b92915050565b60006001600160e01b0319821663780e9d6360e01b14806107b757506107b782611b85565b600a546001600160a01b031633146108155760405162461bcd60e51b815260040161080c906134c5565b60405180910390fd5b601280546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b031633146108615760405162461bcd60e51b815260040161080c906134c5565b6015548111156108b35760405162461bcd60e51b815260206004820152601d60248201527f4e6f7420656e6f75676820676976656177617920617661696c61626c65000000604482015260640161080c565b6108bd8282611bd5565b80601560008282546108cf9190613510565b90915550505050565b6060600080546108e790613527565b80601f016020809104026020016040519081016040528092919081815260200182805461091390613527565b80156109605780601f1061093557610100808354040283529160200191610960565b820191906000526020600020905b81548152906001019060200180831161094357829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166109e35760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161080c565b506000908152600460205260409020546001600160a01b031690565b6000610a0a826110b8565b9050806001600160a01b0316836001600160a01b03161415610a785760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161080c565b336001600160a01b0382161480610a945750610a94813361074e565b610b065760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161080c565b610b108383611c43565b505050565b601b8160068110610b2557600080fd5b0154905081565b610b363382611cb1565b610b525760405162461bcd60e51b815260040161080c90613562565b610b10838383611da8565b600a546001600160a01b03163314610b875760405162461bcd60e51b815260040161080c906134c5565b600d80549115156101000261ff0019909216919091179055565b600a546001600160a01b03163314610bcb5760405162461bcd60e51b815260040161080c906134c5565b8060ff166006811115610be057610be061336b565b600d805460ff19166001836006811115610bfc57610bfc61336b565b021790555050565b6000610c0f8361112f565b8210610c715760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161080c565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b03163314610cc45760405162461bcd60e51b815260040161080c906134c5565b60008311610d0a5760405162461bcd60e51b8152602060048201526013602482015272546965722063616e6e6f74206265207a65726f60681b604482015260640161080c565b60058310610d5a5760405162461bcd60e51b815260206004820152601e60248201527f54696572206d75737420626520736d616c6c6572207468616e20666976650000604482015260640161080c565b60005b81811015610f775760176000848484818110610d7b57610d7b6135b3565b9050602002016020810190610d909190613019565b6001600160a01b0316815260208101919091526040016000205460ff1615610dfa5760405162461bcd60e51b815260206004820152601760248201527f416c726561647920696e207072656d696e74206c697374000000000000000000604482015260640161080c565b600160176000858585818110610e1257610e126135b3565b9050602002016020810190610e279190613019565b6001600160a01b0316815260208101919091526040016000908120805460ff191692151592909217909155601881858585818110610e6757610e676135b3565b9050602002016020810190610e7c9190613019565b6001600160a01b03168152602081019190915260400160002055601b8460068110610ea957610ea96135b3565b015460196000858585818110610ec157610ec16135b3565b9050602002016020810190610ed69190613019565b6001600160a01b03168152602081019190915260400160002055836006811115610f0257610f0261336b565b601a6000858585818110610f1857610f186135b3565b9050602002016020810190610f2d9190613019565b6001600160a01b031681526020810191909152604001600020805460ff19166001836006811115610f6057610f6061336b565b021790555080610f6f816135c9565b915050610d5d565b50505050565b600a546001600160a01b03163314610fa75760405162461bcd60e51b815260040161080c906134c5565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b610b10838383604051806020016040528060008152506119b8565b6000610fef60085490565b82106110525760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161080c565b60088281548110611065576110656135b3565b90600052602060002001549050919050565b600a546001600160a01b031633146110a15760405162461bcd60e51b815260040161080c906134c5565b80516110b4906010906020840190612f11565b5050565b6000818152600260205260408120546001600160a01b0316806107b75760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161080c565b60006001600160a01b03821661119a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161080c565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b031633146111e05760405162461bcd60e51b815260040161080c906134c5565b6111ea6000611f53565b565b600a546001600160a01b031633146112165760405162461bcd60e51b815260040161080c906134c5565b60005b81811015610b105760176000848484818110611237576112376135b3565b905060200201602081019061124c9190613019565b6001600160a01b0316815260208101919091526040016000205460ff16156112d557600160196000858585818110611286576112866135b3565b905060200201602081019061129b9190613019565b6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546112ca91906135e4565b909155506114329050565b6001601760008585858181106112ed576112ed6135b3565b90506020020160208101906113029190613019565b6001600160a01b0316815260208101919091526040016000908120805460ff191692151592909217909155601881858585818110611342576113426135b3565b90506020020160208101906113579190613019565b6001600160a01b03166001600160a01b0316815260200190815260200160002081905550600160196000858585818110611393576113936135b3565b90506020020160208101906113a89190613019565b6001600160a01b03166001600160a01b03168152602001908152602001600020819055506004601a60008585858181106113e4576113e46135b3565b90506020020160208101906113f99190613019565b6001600160a01b031681526020810191909152604001600020805460ff1916600183600681111561142c5761142c61336b565b02179055505b8061143c816135c9565b915050611219565b826000600d5460ff16600681111561145e5761145e61336b565b14156114a05760405162461bcd60e51b8152602060048201526011602482015270135a5b9d1a5b99c81a5cc818db1bdcd959607a1b604482015260640161080c565b6122b86114ac600c5490565b106114f25760405162461bcd60e51b815260206004820152601660248201527510dbdb1b1958dd1a5bdb881a5cc81cdbdb19081bdd5d60521b604482015260640161080c565b6016548111156115445760405162461bcd60e51b815260206004820152601960248201527f4e6f7420656e6f756768204e46547320617661696c61626c6500000000000000604482015260640161080c565b600081116115a25760405162461bcd60e51b815260206004820152602560248201527f4e46547320616d6f756e74206d7573742062652067726561746572207468616e604482015264207a65726f60d81b606482015260840161080c565b6115b48167016345785d8a00006135fc565b34146116025760405162461bcd60e51b815260206004820152601960248201527f45746865722073656e74206973206e6f7420636f727265637400000000000000604482015260640161080c565b8383836013826040516116159190613637565b9081526040519081900360200190205460ff161561166a5760405162461bcd60e51b8152602060048201526012602482015271139bdb98d948185b1c9958591e481d5cd95960721b604482015260640161080c565b6012546040516001600160a01b03909116906116fe9083906116f89061169890339089908990602001613653565b60408051601f1981840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b90611fa5565b6001600160a01b0316146117545760405162461bcd60e51b815260206004820152601b60248201527f5369676e617475726520646f206e6f7420636f72726573706f6e640000000000604482015260640161080c565b60016013836040516117669190613637565b908152604051908190036020019020805491151560ff19909216919091179055600b54600214156117d95760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161080c565b6002600b556006600d5460ff1660068111156117f7576117f761336b565b141561180b5761180687611fc9565b61183c565b6005600d5460ff1660068111156118245761182461336b565b141561183357611806876120c0565b61183c87612285565b50506001600b555050505050565b600a546001600160a01b031633146118745760405162461bcd60e51b815260040161080c906134c5565b476118b35760405162461bcd60e51b815260206004820152600f60248201526e42616c616e6365206973207a65726f60881b604482015260640161080c565b6011546040516001600160a01b03909116904780156108fc02916000818181858888f193505050506111ea57600080fd5b6060600180546108e790613527565b6001600160a01b03821633141561194c5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161080c565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6119c23383611cb1565b6119de5760405162461bcd60e51b815260040161080c90613562565b610f77848484846125a9565b6001600160a01b0381166000908152601760205260408120548190819060ff1615611a49575050506001600160a01b0381166000908152601a60209081526040808320546018835281842054601990935292205460ff90921691611a53565b5060009150819050805b9193909250565b6000818152600260205260409020546060906001600160a01b0316611ab85760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b604482015260640161080c565b6010611ac3836125dc565b604051602001611ad4929190613692565b6040516020818303038152906040529050919050565b600a546001600160a01b03163314611b145760405162461bcd60e51b815260040161080c906134c5565b6001600160a01b038116611b795760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161080c565b611b8281611f53565b50565b60006001600160e01b031982166380ac58cd60e01b1480611bb657506001600160e01b03198216635b5e139f60e01b145b806107b757506301ffc9a760e01b6001600160e01b03198316146107b7565b60005b81811015610b1057611bee600c80546001019055565b611c0083611bfb600c5490565b6126da565b600c5460148190556040517f94242c431036b9ba6723a138d4b275a5b38e13a95ef66227a45df427c0f843f390600090a280611c3b816135c9565b915050611bd8565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611c78826110b8565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316611d2a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161080c565b6000611d35836110b8565b9050806001600160a01b0316846001600160a01b03161480611d705750836001600160a01b0316611d658461096a565b6001600160a01b0316145b80611da057506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611dbb826110b8565b6001600160a01b031614611e235760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161080c565b6001600160a01b038216611e855760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161080c565b611e908383836126f4565b611e9b600082611c43565b6001600160a01b0383166000908152600360205260408120805460019290611ec4908490613510565b90915550506001600160a01b0382166000908152600360205260408120805460019290611ef29084906135e4565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000806000611fb485856127ac565b91509150611fc18161281c565b509392505050565b6006600d5460ff166006811115611fe257611fe261336b565b146120255760405162461bcd60e51b8152602060048201526013602482015272141d589b1a58c81252481a5cc818db1bdcd959606a1b604482015260640161080c565b600881111561209c5760405162461bcd60e51b815260206004820152603a60248201527f457863656564656420746865206d617820616d6f756e74206f66204e4654206d60448201527f696e7461626c6520696e206f6e65207472616e73616374696f6e000000000000606482015260840161080c565b6120a63382611bd5565b80601660008282546120b89190613510565b909155505050565b6005600d5460ff1660068111156120d9576120d961336b565b1461211b5760405162461bcd60e51b8152602060048201526012602482015271141d589b1a58c812481a5cc818db1bdcd95960721b604482015260640161080c565b600d54601b9060ff1660068111156121355761213561336b565b60068110612145576121456135b3565b01548111156121bc5760405162461bcd60e51b815260206004820152603860248201527f457863656564656420746865206d617820616d6f756e74206f66204e4654206d60448201527f696e7461626c6520696e205075626c6963204920746965720000000000000000606482015260840161080c565b3360009081526017602052604090205460ff16156122415733600090815260186020526040902054156122415760405162461bcd60e51b815260206004820152602760248201527f596f7520616c72656164792070617274656369706174656420696e20746865206044820152661c1c995b5a5b9d60ca1b606482015260840161080c565b336000908152601760209081526040808320805460ff191660011790556018909152812080548392906122759084906135e4565b909155506120a690503382611bd5565b3360009081526017602052604090205460ff166122d95760405162461bcd60e51b8152602060048201526012602482015271165bdd481b9959590818481c1c995b5a5b9d60721b604482015260640161080c565b336000908152601a602052604090205460ff1660068111156122fd576122fd61336b565b600d5460ff1660068111156123145761231461336b565b10156123705760405162461bcd60e51b815260206004820152602560248201527f4d696e74696e67206973207374696c6c20636c6f73656420666f7220796f7572604482015264103a34b2b960d91b606482015260840161080c565b33600090815260196020908152604080832054601890925290912054106123e75760405162461bcd60e51b815260206004820152602560248201527f596f7520616c726561647920636c61696d656420796f7572207072656d696e74604482015264204e46547360d81b606482015260840161080c565b336000908152601960205260409020548111156124635760405162461bcd60e51b815260206004820152603460248201527f457863656564656420746865206d617820616d6f756e74206f66204e4654206d60448201527334b73a30b136329034b7103cb7bab9103a34b2b960611b606482015260840161080c565b3360009081526019602090815260408083205460189092529091205461248990836135e4565b11156124e85760405162461bcd60e51b815260206004820152602860248201527f596f7520646f206e6f74206861766520656e6f756768207072656d696e7420616044820152677661696c61626c6560c01b606482015260840161080c565b6001336000908152601a602052604090205460ff16600681111561250e5761250e61336b565b148015612528575033600090815260186020526040902054155b15612568576125413361253c8360016135e4565b611bd5565b61254c8160016135e4565b6016600082825461255d9190613510565b9091555061258a9050565b6125723382611bd5565b80601660008282546125849190613510565b90915550505b33600090815260186020526040812080548392906120b89084906135e4565b6125b4848484611da8565b6125c0848484846129d7565b610f775760405162461bcd60e51b815260040161080c90613739565b6060816126005750506040805180820190915260018152600360fc1b602082015290565b8160005b811561262a5780612614816135c9565b91506126239050600a836137a1565b9150612604565b60008167ffffffffffffffff811115612645576126456131e4565b6040519080825280601f01601f19166020018201604052801561266f576020820181803683370190505b5090505b8415611da057612684600183613510565b9150612691600a866137b5565b61269c9060306135e4565b60f81b8183815181106126b1576126b16135b3565b60200101906001600160f81b031916908160001a9053506126d3600a866137a1565b9450612673565b6110b4828260405180602001604052806000815250612ae4565b6001600160a01b03831661274f5761274a81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612772565b816001600160a01b0316836001600160a01b031614612772576127728382612b17565b6001600160a01b03821661278957610b1081612bb4565b826001600160a01b0316826001600160a01b031614610b1057610b108282612c63565b6000808251604114156127e35760208301516040840151606085015160001a6127d787828585612ca7565b94509450505050612815565b82516040141561280d5760208301516040840151612802868383612d94565b935093505050612815565b506000905060025b9250929050565b60008160048111156128305761283061336b565b14156128395750565b600181600481111561284d5761284d61336b565b141561289b5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161080c565b60028160048111156128af576128af61336b565b14156128fd5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161080c565b60038160048111156129115761291161336b565b141561296a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161080c565b600481600481111561297e5761297e61336b565b1415611b825760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161080c565b60006001600160a01b0384163b15612ad957604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612a1b9033908990889088906004016137c9565b602060405180830381600087803b158015612a3557600080fd5b505af1925050508015612a65575060408051601f3d908101601f19168201909252612a6291810190613806565b60015b612abf573d808015612a93576040519150601f19603f3d011682016040523d82523d6000602084013e612a98565b606091505b508051612ab75760405162461bcd60e51b815260040161080c90613739565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611da0565b506001949350505050565b612aee8383612dc3565b612afb60008484846129d7565b610b105760405162461bcd60e51b815260040161080c90613739565b60006001612b248461112f565b612b2e9190613510565b600083815260076020526040902054909150808214612b81576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612bc690600190613510565b60008381526009602052604081205460088054939450909284908110612bee57612bee6135b3565b906000526020600020015490508060088381548110612c0f57612c0f6135b3565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612c4757612c47613823565b6001900381819060005260206000200160009055905550505050565b6000612c6e8361112f565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612cde5750600090506003612d8b565b8460ff16601b14158015612cf657508460ff16601c14155b15612d075750600090506004612d8b565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612d5b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612d8457600060019250925050612d8b565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01612db587828885612ca7565b935093505050935093915050565b6001600160a01b038216612e195760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161080c565b6000818152600260205260409020546001600160a01b031615612e7e5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161080c565b612e8a600083836126f4565b6001600160a01b0382166000908152600360205260408120805460019290612eb39084906135e4565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612f1d90613527565b90600052602060002090601f016020900481019282612f3f5760008555612f85565b82601f10612f5857805160ff1916838001178555612f85565b82800160010185558215612f85579182015b82811115612f85578251825591602001919060010190612f6a565b50612f91929150612f95565b5090565b5b80821115612f915760008155600101612f96565b600060208284031215612fbc57600080fd5b5035919050565b6001600160e01b031981168114611b8257600080fd5b600060208284031215612feb57600080fd5b8135612ff681612fc3565b9392505050565b80356001600160a01b038116811461301457600080fd5b919050565b60006020828403121561302b57600080fd5b612ff682612ffd565b6000806040838503121561304757600080fd5b61305083612ffd565b946020939093013593505050565b60005b83811015613079578181015183820152602001613061565b83811115610f775750506000910152565b600081518084526130a281602086016020860161305e565b601f01601f19169290920160200192915050565b602081526000612ff6602083018461308a565b6000806000606084860312156130de57600080fd5b6130e784612ffd565b92506130f560208501612ffd565b9150604084013590509250925092565b8035801515811461301457600080fd5b60006020828403121561312757600080fd5b612ff682613105565b60006020828403121561314257600080fd5b813560ff81168114612ff657600080fd5b60008083601f84011261316557600080fd5b50813567ffffffffffffffff81111561317d57600080fd5b6020830191508360208260051b850101111561281557600080fd5b6000806000604084860312156131ad57600080fd5b83359250602084013567ffffffffffffffff8111156131cb57600080fd5b6131d786828701613153565b9497909650939450505050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261320b57600080fd5b813567ffffffffffffffff80821115613226576132266131e4565b604051601f8301601f19908116603f0116810190828211818310171561324e5761324e6131e4565b8160405283815286602085880101111561326757600080fd5b836020870160208301376000602085830101528094505050505092915050565b60006020828403121561329957600080fd5b813567ffffffffffffffff8111156132b057600080fd5b611da0848285016131fa565b600080602083850312156132cf57600080fd5b823567ffffffffffffffff8111156132e657600080fd5b6132f285828601613153565b90969095509350505050565b60008060006060848603121561331357600080fd5b83359250602084013567ffffffffffffffff8082111561333257600080fd5b61333e878388016131fa565b9350604086013591508082111561335457600080fd5b50613361868287016131fa565b9150509250925092565b634e487b7160e01b600052602160045260246000fd5b6007811061339f57634e487b7160e01b600052602160045260246000fd5b9052565b60a081016133b18288613381565b8560208301528460408301528360608301528260808301529695505050505050565b600080604083850312156133e657600080fd5b6133ef83612ffd565b91506133fd60208401613105565b90509250929050565b6000806000806080858703121561341c57600080fd5b61342585612ffd565b935061343360208601612ffd565b925060408501359150606085013567ffffffffffffffff81111561345657600080fd5b613462878288016131fa565b91505092959194509250565b6060810161347c8286613381565b602082019390935260400152919050565b602081016107b78284613381565b600080604083850312156134ae57600080fd5b6134b783612ffd565b91506133fd60208401612ffd565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082821015613522576135226134fa565b500390565b600181811c9082168061353b57607f821691505b6020821081141561355c57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b60006000198214156135dd576135dd6134fa565b5060010190565b600082198211156135f7576135f76134fa565b500190565b6000816000190483118215151615613616576136166134fa565b500290565b6000815161362d81856020860161305e565b9290920192915050565b6000825161364981846020870161305e565b9190910192915050565b6bffffffffffffffffffffffff198460601b1681528260148201526000825161368381603485016020870161305e565b91909101603401949350505050565b600080845481600182811c9150808316806136ae57607f831692505b60208084108214156136ce57634e487b7160e01b86526022600452602486fd5b8180156136e257600181146136f357613720565b60ff19861689528489019650613720565b60008b81526020902060005b868110156137185781548b8201529085019083016136ff565b505084890196505b505050505050613730818561361b565b95945050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b6000826137b0576137b061378b565b500490565b6000826137c4576137c461378b565b500690565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906137fc9083018461308a565b9695505050505050565b60006020828403121561381857600080fd5b8151612ff681612fc3565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220ff6dc773f16982313a63f801154f24231385fea2ca12de049951b27d158611fc64736f6c63430008090033
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.