Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
NFT
Overview
Max Total Supply
5,555 NP
Holders
3,229
Market
Volume (24H)
0.0662 ETH
Min Price (24H)
$20.21 @ 0.005800 ETH
Max Price (24H)
$69.70 @ 0.020000 ETH
Other Info
Token Contract
Balance
5 NPLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Nanopass
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./@rarible/royalties/contracts/impl/RoyaltiesV2Impl.sol"; import "./@rarible/royalties/contracts/LibPart.sol"; import "./@rarible/royalties/contracts/LibRoyaltiesV2.sol"; import "./Ownable.sol"; /** .-._ ,---. .-._ _,.---._ _ __ ,---. ,-,--. ,-,--. /==/ \ .-._.--.' \ /==/ \ .-._ ,-.' , - `. .-`.' ,`..--.' \ ,-.'- _\ ,-.'- _\ |==|, \/ /, |==\-/\ \ |==|, \/ /, /==/_, , - \ /==/, - \==\-/\ \ /==/_ ,_.'/==/_ ,_.' |==|- \| |/==/-|_\ | |==|- \| |==| .=. |==| _ .=. /==/-|_\ | \==\ \ \==\ \ |==| , | -|\==\, - \ |==| , | -|==|_ : ;=: - |==| , '=',\==\, - \ \==\ -\ \==\ -\ |==| - _ |/==/ - ,| |==| - _ |==| , '=' |==|- '..'/==/ - ,| _\==\ ,\ _\==\ ,\ |==| /\ , /==/- /\ - \|==| /\ , |\==\ - ,_ /|==|, | /==/- /\ - \/==/\/ _ |/==/\/ _ | /==/, | |- \==\ _.\=\.-'/==/, | |- | '.='. - .' /==/ - | \==\ _.\=\.-'\==\ - , /\==\ - , / `--`./ `--``--` `--`./ `--` `--`--'' `--`---' `--` `--`---' `--`---' Credit to woof from Sneaky Vampire Syndicate for the contract help */ contract Nanopass is ERC721, Ownable, RoyaltiesV2Impl { bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a; address public constant DEV_ADDRESS_1 = 0xc73ab340a7d523EC7b1b71fE3d3494F94283b4B1; // J address public constant DEV_ADDRESS_2 = 0x09b2741feD63B7Fcc5E577cDc9d0cf0D85127A32; // P address public constant DEV_ADDRESS_3 = 0xC929b6bD739a8564BcB35e978Afe4ffF5b6c3cEF; // R address public constant DEV_ADDRESS_4 = 0x5bF9BE0B32ba09B449eD5d1EaBB864Cf2317629F; // D address public constant DEV_ADDRESS_5 = 0x3e8f4639E926f36f7309836F6D018a9ea59B345e; // H address public constant DEV_ADDRESS_6 = 0x5bB1396E3EC5E31E12DC7846c4c94eea25083f35; // L address public constant DEV_FUND_ADDRESS = 0x7955cF321a420f7c245cEfB748E0F303756Ae2A6; mapping (address => uint256) public presaleWhitelist; bool public presaleActive = false; bool public saleActive = false; uint256 public currentSupply; uint256 public maxSupply; uint256 public price = 0.08888 ether; uint256 public dutchPriceAdditional; // record the additional price of dutch and deduct uint256 public dutchStartTime; // record the start time uint256 public dutchDuration; // record the duration uint256 public dutchEndTime; // record the end time bool public dutchAuctionStarted; // boolean for dutch auction string private baseURI = "https://metadata.nanopass.io/metadata/"; constructor(string memory name, string memory symbol, uint256 supply) ERC721(name, symbol) { maxSupply = supply; } function totalSupply() external view returns (uint) { return currentSupply; } function mintPresale(uint256 numberOfMints) public payable { uint256 supply = currentSupply; uint256 reserved = presaleWhitelist[msg.sender]; require(presaleActive, "No presale active"); require(reserved > 0, "This address is not authorized for presale"); require(numberOfMints <= reserved, "Exceeded allowed amount"); require(supply + numberOfMints <= maxSupply, "This would exceed the max number of allowed nft"); require(numberOfMints * price <= msg.value, "Amount of ether is not enough"); presaleWhitelist[msg.sender] = reserved - numberOfMints; currentSupply += numberOfMints; for(uint256 i; i < numberOfMints; i++){ _mint(msg.sender, supply + i); } } function mint(uint256 numberOfMints) public payable { uint256 supply = currentSupply; require(saleActive, "Sale must be active to mint"); require(numberOfMints <= 1, "Invalid purchase amount"); require(supply + numberOfMints <= maxSupply, "Mint would exceed max supply of nft"); require(numberOfMints * price <= msg.value, "Amount of ether is not enough"); currentSupply += numberOfMints; for(uint256 i; i < numberOfMints; i++) { _mint(msg.sender, supply + i); } } function airdrop(address[] calldata addresses) external onlyOwner { uint256 supply = currentSupply; require(supply+ addresses.length <= maxSupply, "This would exceed the max number of allowed nft"); currentSupply += addresses.length; for (uint256 i; i < addresses.length ; i++) { _mint(addresses[i], supply + i); } } function editPresale(address[] calldata presaleAddresses, uint256[] calldata amount) external onlyOwner { for(uint256 i; i < presaleAddresses.length; i++){ presaleWhitelist[presaleAddresses[i]] = amount[i]; } } function editPresaleSingle(address[] calldata presaleAddresses, uint256 amount) external onlyOwner { for(uint256 i; i < presaleAddresses.length; i++){ presaleWhitelist[presaleAddresses[i]] = amount; } } function togglePresale() external onlyOwner { presaleActive = !presaleActive; } function toggleSale() external onlyOwner { saleActive = !saleActive; } function toggleDutchAuction() public onlyOwner { dutchAuctionStarted = !dutchAuctionStarted; } function setPrice(uint256 newPrice) external onlyOwner { price = newPrice; } function withdrawAll() external onlyOwner { uint256 balance = address(this).balance; require(balance > 0, "Balance is 0"); payable(DEV_FUND_ADDRESS).transfer(balance * 5000 / 10000); payable(DEV_ADDRESS_1).transfer(balance * 1666 / 10000); payable(DEV_ADDRESS_2).transfer(balance * 1229 / 10000); payable(DEV_ADDRESS_3).transfer(balance * 805 / 10000); payable(DEV_ADDRESS_4).transfer(balance * 900 / 10000); payable(DEV_ADDRESS_5).transfer(balance * 200 / 10000); payable(DEV_ADDRESS_6).transfer(address(this).balance); } function setBaseURI(string memory _uri) external onlyOwner { baseURI = _uri; } function tokenURI(uint256 tokenId) public view override(ERC721) returns (string memory) { require(_exists(tokenId), "Cannot query non-existent token"); return string(abi.encodePacked(baseURI, Strings.toString(tokenId), ".json")); } function tokensOfOwner(address _owner, uint startId, uint endId) external view returns(uint256[] memory ) { uint256 tokenCount = balanceOf(_owner); if (tokenCount == 0) { return new uint256[](0); } else { uint256[] memory result = new uint256[](tokenCount); uint256 index = 0; for (uint256 tokenId = startId; tokenId < endId; tokenId++) { if (index == tokenCount) break; if (ownerOf(tokenId) == _owner) { result[index] = tokenId; index++; } } return result; } } function walletOfOwner(address _owner) external view returns(uint256[] memory ) { return this.tokensOfOwner(_owner, 0, currentSupply); } function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view returns (address receiver, uint256 royaltyAmount) { LibPart.Part[] memory _royalties = royalties[0]; if(_royalties.length > 0) { return (_royalties[0].account, (_salePrice * _royalties[0].value)/10000); } return (address(0), 0); } function setRoyalties(uint _tokenId, address payable _royaltiesReceipientAddress, uint96 _percentageBasisPoints) public onlyOwner { LibPart.Part[] memory _royalties = new LibPart.Part[](1); _royalties[0].value = _percentageBasisPoints; _royalties[0].account = _royaltiesReceipientAddress; _saveRoyalties(_tokenId, _royalties); } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721) returns (bool) { if(interfaceId == LibRoyaltiesV2._INTERFACE_ID_ROYALTIES) { return true; } if(interfaceId == _INTERFACE_ID_ERC2981) { return true; } return super.supportsInterface(interfaceId); } // Dutch Auction function setDutchAuction(uint256 dutchPriceAdditional_, uint256 dutchStartTime_, uint256 dutchDuration_) public onlyOwner { dutchPriceAdditional = dutchPriceAdditional_; dutchStartTime = dutchStartTime_; dutchDuration = dutchDuration_; dutchEndTime = dutchStartTime + dutchDuration; } function getTimeElapsed() public view returns (uint256) { return dutchStartTime > 0 ? (dutchStartTime + dutchDuration) >= block.timestamp ? (block.timestamp - dutchStartTime) : dutchDuration : 0; } function getTimeRemaining() public view returns (uint256) { return dutchDuration - getTimeElapsed(); } function getCurrentDutchPrice() public view returns (uint256) { return price + ((dutchDuration - getTimeElapsed()) * dutchPriceAdditional / dutchDuration); } function mintDutchAuction(uint256 numberOfMints) public payable { require(dutchAuctionStarted && block.timestamp >= dutchStartTime, "Dutch auction has not started yet!"); uint256 supply = currentSupply; require(numberOfMints <= 2, "Invalid purchase amount"); require(supply + numberOfMints <= maxSupply, "Mint would exceed max supply of nft"); require(msg.value >= getCurrentDutchPrice() * numberOfMints, "Amount of ether is not enough"); currentSupply += numberOfMints; for(uint256 i; i < numberOfMints; i++) { _mint(msg.sender, supply + i); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/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 { // noop } /** * @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 { // noop } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./AbstractRoyalties.sol"; import "../RoyaltiesV2.sol"; contract RoyaltiesV2Impl is AbstractRoyalties, RoyaltiesV2 { function getRaribleV2Royalties(uint256 id) override external view returns (LibPart.Part[] memory) { return royalties[0]; } function _onRoyaltiesSet(uint256 _id, LibPart.Part[] memory _royalties) override internal { emit RoyaltiesSet(_id, _royalties); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../LibPart.sol"; abstract contract AbstractRoyalties { mapping (uint256 => LibPart.Part[]) public royalties; function _saveRoyalties(uint256 _id, LibPart.Part[] memory _royalties) internal { for (uint i = 0; i < _royalties.length; i++) { require(_royalties[i].account != address(0x0), "Recipient should be present"); require(_royalties[i].value != 0, "Royalty value should be positive"); royalties[_id].push(_royalties[i]); } _onRoyaltiesSet(_id, _royalties); } function _updateAccount(uint256 _id, address _from, address _to) internal { uint length = royalties[_id].length; for(uint i = 0; i < length; i++) { if (royalties[_id][i].account == _from) { royalties[_id][i].account = payable(address(uint160(_to))); } } } function _onRoyaltiesSet(uint256 _id, LibPart.Part[] memory _royalties) virtual internal; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./LibPart.sol"; interface RoyaltiesV2 { event RoyaltiesSet(uint256 tokenId, LibPart.Part[] royalties); function getRaribleV2Royalties(uint256 id) external view returns (LibPart.Part[] memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; library LibRoyaltiesV2 { /* * bytes4(keccak256('getRoyalties(LibAsset.AssetType)')) == 0x44c74bcc */ bytes4 constant _INTERFACE_ID_ROYALTIES = 0x44c74bcc; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; library LibPart { bytes32 public constant TYPE_HASH = keccak256("Part(address account,uint96 value)"); struct Part { address payable account; uint96 value; } function hash(Part memory part) internal pure returns (bytes32) { return keccak256(abi.encode(TYPE_HASH, part.account, part.value)); } }
// 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 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; /** * @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; /** * @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 {} }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"supply","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"indexed":false,"internalType":"struct LibPart.Part[]","name":"royalties","type":"tuple[]"}],"name":"RoyaltiesSet","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":"DEV_ADDRESS_1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEV_ADDRESS_2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEV_ADDRESS_3","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEV_ADDRESS_4","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEV_ADDRESS_5","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEV_ADDRESS_6","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEV_FUND_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"airdrop","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":"currentSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dutchAuctionStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dutchDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dutchEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dutchPriceAdditional","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dutchStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"presaleAddresses","type":"address[]"},{"internalType":"uint256[]","name":"amount","type":"uint256[]"}],"name":"editPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"presaleAddresses","type":"address[]"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"editPresaleSingle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentDutchPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getRaribleV2Royalties","outputs":[{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"internalType":"struct LibPart.Part[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTimeElapsed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTimeRemaining","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":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfMints","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfMints","type":"uint256"}],"name":"mintDutchAuction","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfMints","type":"uint256"}],"name":"mintPresale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"presaleWhitelist","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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"royalties","outputs":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"dutchPriceAdditional_","type":"uint256"},{"internalType":"uint256","name":"dutchStartTime_","type":"uint256"},{"internalType":"uint256","name":"dutchDuration_","type":"uint256"}],"name":"setDutchAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address payable","name":"_royaltiesReceipientAddress","type":"address"},{"internalType":"uint96","name":"_percentageBasisPoints","type":"uint96"}],"name":"setRoyalties","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":[],"name":"toggleDutchAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"startId","type":"uint256"},{"internalType":"uint256","name":"endId","type":"uint256"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6009805461ffff1916905567013bc3e39ba30000600c5560e060405260266080818152906200381a60a039805162000040916012916020909101906200011f565b503480156200004e57600080fd5b506040516200384038038062003840833981016040819052620000719162000278565b8251839083906200008a9060009060208501906200011f565b508051620000a09060019060208401906200011f565b505050620000bd620000b7620000c960201b60201c565b620000cd565b600b55506200033b9050565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200012d90620002e8565b90600052602060002090601f0160209004810192826200015157600085556200019c565b82601f106200016c57805160ff19168380011785556200019c565b828001600101855582156200019c579182015b828111156200019c5782518255916020019190600101906200017f565b50620001aa929150620001ae565b5090565b5b80821115620001aa5760008155600101620001af565b600082601f830112620001d6578081fd5b81516001600160401b0380821115620001f357620001f362000325565b604051601f8301601f19908116603f011681019082821181831017156200021e576200021e62000325565b816040528381526020925086838588010111156200023a578485fd5b8491505b838210156200025d57858201830151818301840152908201906200023e565b838211156200026e57848385830101525b9695505050505050565b6000806000606084860312156200028d578283fd5b83516001600160401b0380821115620002a4578485fd5b620002b287838801620001c5565b94506020860151915080821115620002c8578384fd5b50620002d786828701620001c5565b925050604084015190509250925092565b600181811c90821680620002fd57607f821691505b602082108114156200031f57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6134cf806200034b6000396000f3fe6080604052600436106103765760003560e01c80637d8966e4116101d1578063c507104a11610102578063dac6270d116100a0578063eb8835ab1161006f578063eb8835ab14610a36578063eed1493414610a63578063f2fde38b14610a8b578063f759867a14610aab57600080fd5b8063dac6270d146109a8578063db8362c5146109bd578063dd79331f146109d3578063e985e9c5146109ed57600080fd5b8063c8923b8c116100dc578063c8923b8c14610915578063cad96cca1461093d578063d5abeb011461096a578063d6d891041461098057600080fd5b8063c507104a146108bf578063c839fe94146108d5578063c87b56dd146108f557600080fd5b8063a035b1fe1161016f578063a64e450011610149578063a64e450014610854578063a69d9c4714610874578063b88d4fde14610889578063c2dd6903146108a957600080fd5b8063a035b1fe1461080b578063a0712d6814610821578063a22cb4651461083457600080fd5b80638924af74116101ab5780638924af74146107715780638da5cb5b146107b857806391b7f5ed146107d657806395d89b41146107f657600080fd5b80637d8966e41461071f578063853828b614610734578063875ad5811461074957600080fd5b806334393743116102ab57806355f804b31161024957806370a082311161022357806370a08231146106b4578063715018a6146106d4578063729ad39e146106e9578063771282f61461070957600080fd5b806355f804b3146106555780636352211e1461067557806368428a1b1461069557600080fd5b8063438b630011610285578063438b6300146105d15780634b8fd12e146105fe5780634faa2d541461062657806353135ca01461063b57600080fd5b806334393743146105745780633cd68c4d1461058957806342842e0e146105b157600080fd5b806318160ddd1161031857806321ca3b9e116102f257806321ca3b9e146104e257806323b872dd146104f557806326ed7155146105155780632a55205a1461053557600080fd5b806318160ddd146104905780631c77830f146104a55780632133468b146104cd57600080fd5b8063081812fc11610354578063081812fc146103f4578063095ea7b31461042c578063143094db1461044c57806315b6ff271461046c57600080fd5b806301ffc9a71461037b57806306fdde03146103b057806308026366146103d2575b600080fd5b34801561038757600080fd5b5061039b610396366004612e1b565b610abe565b60405190151581526020015b60405180910390f35b3480156103bc57600080fd5b506103c5610b11565b6040516103a79190613136565b3480156103de57600080fd5b506103f26103ed366004612d29565b610ba3565b005b34801561040057600080fd5b5061041461040f366004612e99565b610c4d565b6040516001600160a01b0390911681526020016103a7565b34801561043857600080fd5b506103f2610447366004612c21565b610ce2565b34801561045857600080fd5b506103f2610467366004612eb1565b610df8565b34801561047857600080fd5b50610482600f5481565b6040519081526020016103a7565b34801561049c57600080fd5b50600a54610482565b3480156104b157600080fd5b50610414735bb1396e3ec5e31e12dc7846c4c94eea25083f3581565b3480156104d957600080fd5b506103f2610eec565b6103f26104f0366004612e99565b610f2a565b34801561050157600080fd5b506103f2610510366004612b33565b611088565b34801561052157600080fd5b506103f2610530366004612cc0565b6110b9565b34801561054157600080fd5b50610555610550366004612efd565b611181565b604080516001600160a01b0390931683526020830191909152016103a7565b34801561058057600080fd5b506103f26112c1565b34801561059557600080fd5b50610414733e8f4639e926f36f7309836f6d018a9ea59b345e81565b3480156105bd57600080fd5b506103f26105cc366004612b33565b6112ff565b3480156105dd57600080fd5b506105f16105ec366004612adf565b61131a565b6040516103a791906130f2565b34801561060a57600080fd5b5061041473c929b6bd739a8564bcb35e978afe4fff5b6c3cef81565b34801561063257600080fd5b506104826113aa565b34801561064757600080fd5b5060095461039b9060ff1681565b34801561066157600080fd5b506103f2610670366004612e53565b6113eb565b34801561068157600080fd5b50610414610690366004612e99565b61142c565b3480156106a157600080fd5b5060095461039b90610100900460ff1681565b3480156106c057600080fd5b506104826106cf366004612adf565b6114a3565b3480156106e057600080fd5b506103f261152a565b3480156106f557600080fd5b506103f2610704366004612c80565b611556565b34801561071557600080fd5b50610482600a5481565b34801561072b57600080fd5b506103f2611628565b34801561074057600080fd5b506103f261166f565b34801561075557600080fd5b50610414737955cf321a420f7c245cefb748e0f303756ae2a681565b34801561077d57600080fd5b5061079161078c366004612efd565b611931565b604080516001600160a01b0390931683526001600160601b039091166020830152016103a7565b3480156107c457600080fd5b506006546001600160a01b0316610414565b3480156107e257600080fd5b506103f26107f1366004612e99565b61197a565b34801561080257600080fd5b506103c56119a9565b34801561081757600080fd5b50610482600c5481565b6103f261082f366004612e99565b6119b8565b34801561084057600080fd5b506103f261084f366004612bf0565b611af8565b34801561086057600080fd5b506103f261086f366004612f1e565b611bbd565b34801561088057600080fd5b50610482611c08565b34801561089557600080fd5b506103f26108a4366004612b73565b611c46565b3480156108b557600080fd5b50610482600e5481565b3480156108cb57600080fd5b5061048260105481565b3480156108e157600080fd5b506105f16108f0366004612c4c565b611c78565b34801561090157600080fd5b506103c5610910366004612e99565b611d8c565b34801561092157600080fd5b50610414735bf9be0b32ba09b449ed5d1eabb864cf2317629f81565b34801561094957600080fd5b5061095d610958366004612e99565b611e25565b6040516103a791906130df565b34801561097657600080fd5b50610482600b5481565b34801561098c57600080fd5b5061041473c73ab340a7d523ec7b1b71fe3d3494f94283b4b181565b3480156109b457600080fd5b50610482611ec7565b3480156109c957600080fd5b50610482600d5481565b3480156109df57600080fd5b5060115461039b9060ff1681565b3480156109f957600080fd5b5061039b610a08366004612afb565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610a4257600080fd5b50610482610a51366004612adf565b60086020526000908152604090205481565b348015610a6f57600080fd5b506104147309b2741fed63b7fcc5e577cdc9d0cf0d85127a3281565b348015610a9757600080fd5b506103f2610aa6366004612adf565b611ede565b6103f2610ab9366004612e99565b611f0b565b60006001600160e01b03198216631131d2f360e21b1415610ae157506001919050565b6001600160e01b0319821663152a902d60e11b1415610b0257506001919050565b610b0b826120cf565b92915050565b606060008054610b20906133c2565b80601f0160208091040260200160405190810160405280929190818152602001828054610b4c906133c2565b8015610b995780601f10610b6e57610100808354040283529160200191610b99565b820191906000526020600020905b815481529060010190602001808311610b7c57829003601f168201915b5050505050905090565b6006546001600160a01b03163314610bd65760405162461bcd60e51b8152600401610bcd90613264565b60405180910390fd5b60005b82811015610c47578160086000868685818110610c0657634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610c1b9190612adf565b6001600160a01b0316815260208101919091526040016000205580610c3f816133fd565b915050610bd9565b50505050565b6000818152600260205260408120546001600160a01b0316610cc65760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610bcd565b506000908152600460205260409020546001600160a01b031690565b6000610ced8261142c565b9050806001600160a01b0316836001600160a01b03161415610d5b5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610bcd565b336001600160a01b0382161480610d775750610d778133610a08565b610de95760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610bcd565b610df3838361211f565b505050565b6006546001600160a01b03163314610e225760405162461bcd60e51b8152600401610bcd90613264565b604080516001808252818301909252600091816020015b6040805180820190915260008082526020820152815260200190600190039081610e395790505090508181600081518110610e8457634e487b7160e01b600052603260045260246000fd5b6020026020010151602001906001600160601b031690816001600160601b0316815250508281600081518110610eca57634e487b7160e01b600052603260045260246000fd5b60209081029190910101516001600160a01b039091169052610c47848261218d565b6006546001600160a01b03163314610f165760405162461bcd60e51b8152600401610bcd90613264565b6011805460ff19811660ff90911615179055565b60115460ff168015610f3e5750600e544210155b610f955760405162461bcd60e51b815260206004820152602260248201527f44757463682061756374696f6e20686173206e6f742073746172746564207965604482015261742160f01b6064820152608401610bcd565b600a546002821115610fe35760405162461bcd60e51b8152602060048201526017602482015276125b9d985b1a59081c1d5c98da185cd948185b5bdd5b9d604a1b6044820152606401610bcd565b600b54610ff08383613334565b111561100e5760405162461bcd60e51b8152600401610bcd90613221565b81611017611c08565b6110219190613360565b3410156110405760405162461bcd60e51b8152600401610bcd9061319b565b81600a60008282546110529190613334565b90915550600090505b82811015610df357611076336110718385613334565b61233b565b80611080816133fd565b91505061105b565b611092338261247d565b6110ae5760405162461bcd60e51b8152600401610bcd90613299565b610df3838383612574565b6006546001600160a01b031633146110e35760405162461bcd60e51b8152600401610bcd90613264565b60005b8381101561117a5782828281811061110e57634e487b7160e01b600052603260045260246000fd5b905060200201356008600087878581811061113957634e487b7160e01b600052603260045260246000fd5b905060200201602081019061114e9190612adf565b6001600160a01b0316815260208101919091526040016000205580611172816133fd565b9150506110e6565b5050505050565b6000808052600760209081527f6d5257204ebe7d88fd91ae87941cb2dd9d8062b64ae5a2bd2d28ec40b9fbf6df8054604080518285028101850190915281815284938493919290849084015b8282101561121c57600084815260209081902060408051808201909152908401546001600160a01b0381168252600160a01b90046001600160601b0316818301528252600190920191016111cd565b5050505090506000815111156112b1578060008151811061124d57634e487b7160e01b600052603260045260246000fd5b6020026020010151600001516127108260008151811061127d57634e487b7160e01b600052603260045260246000fd5b6020026020010151602001516001600160601b03168661129d9190613360565b6112a7919061334c565b92509250506112ba565b60008092509250505b9250929050565b6006546001600160a01b031633146112eb5760405162461bcd60e51b8152600401610bcd90613264565b6009805460ff19811660ff90911615179055565b610df383838360405180602001604052806000815250611c46565b600a5460405163320e7fa560e21b81526001600160a01b0383166004820152600060248201526044810191909152606090309063c839fe949060640160006040518083038186803b15801561136e57600080fd5b505afa158015611382573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b0b9190810190612d73565b600080600e54116113bb5750600090565b42600f54600e546113cc9190613334565b10156113d95750600f5490565b600e546113e6904261337f565b905090565b6006546001600160a01b031633146114155760405162461bcd60e51b8152600401610bcd90613264565b80516114289060129060208401906129ab565b5050565b6000818152600260205260408120546001600160a01b031680610b0b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610bcd565b60006001600160a01b03821661150e5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610bcd565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146115545760405162461bcd60e51b8152600401610bcd90613264565b565b6006546001600160a01b031633146115805760405162461bcd60e51b8152600401610bcd90613264565b600a54600b546115908383613334565b11156115ae5760405162461bcd60e51b8152600401610bcd906131d2565b82829050600a60008282546115c39190613334565b90915550600090505b82811015610c47576116168484838181106115f757634e487b7160e01b600052603260045260246000fd5b905060200201602081019061160c9190612adf565b6110718385613334565b80611620816133fd565b9150506115cc565b6006546001600160a01b031633146116525760405162461bcd60e51b8152600401610bcd90613264565b6009805461ff001981166101009182900460ff1615909102179055565b6006546001600160a01b031633146116995760405162461bcd60e51b8152600401610bcd90613264565b47806116d65760405162461bcd60e51b815260206004820152600c60248201526b042616c616e636520697320360a41b6044820152606401610bcd565b737955cf321a420f7c245cefb748e0f303756ae2a66108fc6127106116fd84611388613360565b611707919061334c565b6040518115909202916000818181858888f1935050505015801561172f573d6000803e3d6000fd5b5073c73ab340a7d523ec7b1b71fe3d3494f94283b4b16108fc61271061175784610682613360565b611761919061334c565b6040518115909202916000818181858888f19350505050158015611789573d6000803e3d6000fd5b507309b2741fed63b7fcc5e577cdc9d0cf0d85127a326108fc6127106117b1846104cd613360565b6117bb919061334c565b6040518115909202916000818181858888f193505050501580156117e3573d6000803e3d6000fd5b5073c929b6bd739a8564bcb35e978afe4fff5b6c3cef6108fc61271061180b84610325613360565b611815919061334c565b6040518115909202916000818181858888f1935050505015801561183d573d6000803e3d6000fd5b50735bf9be0b32ba09b449ed5d1eabb864cf2317629f6108fc61271061186584610384613360565b61186f919061334c565b6040518115909202916000818181858888f19350505050158015611897573d6000803e3d6000fd5b50733e8f4639e926f36f7309836f6d018a9ea59b345e6108fc6127106118be8460c8613360565b6118c8919061334c565b6040518115909202916000818181858888f193505050501580156118f0573d6000803e3d6000fd5b50604051735bb1396e3ec5e31e12dc7846c4c94eea25083f35904780156108fc02916000818181858888f19350505050158015611428573d6000803e3d6000fd5b6007602052816000526040600020818154811061194d57600080fd5b6000918252602090912001546001600160a01b0381169250600160a01b90046001600160601b0316905082565b6006546001600160a01b031633146119a45760405162461bcd60e51b8152600401610bcd90613264565b600c55565b606060018054610b20906133c2565b600a54600954610100900460ff16611a125760405162461bcd60e51b815260206004820152601b60248201527f53616c65206d7573742062652061637469766520746f206d696e7400000000006044820152606401610bcd565b6001821115611a5d5760405162461bcd60e51b8152602060048201526017602482015276125b9d985b1a59081c1d5c98da185cd948185b5bdd5b9d604a1b6044820152606401610bcd565b600b54611a6a8383613334565b1115611a885760405162461bcd60e51b8152600401610bcd90613221565b34600c5483611a979190613360565b1115611ab55760405162461bcd60e51b8152600401610bcd9061319b565b81600a6000828254611ac79190613334565b90915550600090505b82811015610df357611ae6336110718385613334565b80611af0816133fd565b915050611ad0565b6001600160a01b038216331415611b515760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610bcd565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6006546001600160a01b03163314611be75760405162461bcd60e51b8152600401610bcd90613264565b600d839055600e829055600f819055611c008183613334565b601055505050565b6000600f54600d54611c186113aa565b600f54611c25919061337f565b611c2f9190613360565b611c39919061334c565b600c546113e69190613334565b611c50338361247d565b611c6c5760405162461bcd60e51b8152600401610bcd90613299565b610c4784848484612714565b60606000611c85856114a3565b905080611ca2575050604080516000815260208101909152611d85565b60008167ffffffffffffffff811115611ccb57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611cf4578160200160208202803683370190505b5090506000855b85811015611d7e5783821415611d1057611d7e565b876001600160a01b0316611d238261142c565b6001600160a01b03161415611d6c5780838381518110611d5357634e487b7160e01b600052603260045260246000fd5b602090810291909101015281611d68816133fd565b9250505b80611d76816133fd565b915050611cfb565b5090925050505b9392505050565b6000818152600260205260409020546060906001600160a01b0316611df35760405162461bcd60e51b815260206004820152601f60248201527f43616e6e6f74207175657279206e6f6e2d6578697374656e7420746f6b656e006044820152606401610bcd565b6012611dfe83612747565b604051602001611e0f929190612fe8565b6040516020818303038152906040529050919050565b6000808052600760209081527f6d5257204ebe7d88fd91ae87941cb2dd9d8062b64ae5a2bd2d28ec40b9fbf6df80546040805182850281018501909152818152606094909384015b82821015611ebc57600084815260209081902060408051808201909152908401546001600160a01b0381168252600160a01b90046001600160601b031681830152825260019092019101611e6d565b505050509050919050565b6000611ed16113aa565b600f546113e6919061337f565b6006546001600160a01b03163314611f085760405162461bcd60e51b8152600401610bcd90613264565b50565b600a543360009081526008602052604090205460095460ff16611f645760405162461bcd60e51b81526020600482015260116024820152704e6f2070726573616c652061637469766560781b6044820152606401610bcd565b60008111611fc75760405162461bcd60e51b815260206004820152602a60248201527f546869732061646472657373206973206e6f7420617574686f72697a656420666044820152696f722070726573616c6560b01b6064820152608401610bcd565b808311156120175760405162461bcd60e51b815260206004820152601760248201527f457863656564656420616c6c6f77656420616d6f756e740000000000000000006044820152606401610bcd565b600b546120248484613334565b11156120425760405162461bcd60e51b8152600401610bcd906131d2565b34600c54846120519190613360565b111561206f5760405162461bcd60e51b8152600401610bcd9061319b565b612079838261337f565b33600090815260086020526040812091909155600a805485929061209e908490613334565b90915550600090505b83811015610c47576120bd336110718386613334565b806120c7816133fd565b9150506120a7565b60006001600160e01b031982166380ac58cd60e01b148061210057506001600160e01b03198216635b5e139f60e01b145b80610b0b57506301ffc9a760e01b6001600160e01b0319831614610b0b565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906121548261142c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60005b81518110156123305760006001600160a01b03168282815181106121c457634e487b7160e01b600052603260045260246000fd5b6020026020010151600001516001600160a01b031614156122275760405162461bcd60e51b815260206004820152601b60248201527f526563697069656e742073686f756c642062652070726573656e7400000000006044820152606401610bcd565b81818151811061224757634e487b7160e01b600052603260045260246000fd5b6020026020010151602001516001600160601b0316600014156122ac5760405162461bcd60e51b815260206004820181905260248201527f526f79616c74792076616c75652073686f756c6420626520706f7369746976656044820152606401610bcd565b600083815260076020526040902082518390839081106122dc57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518254600181018455600093845292829020815191909201516001600160601b0316600160a01b026001600160a01b039091161791015580612328816133fd565b915050612190565b506114288282612861565b6001600160a01b0382166123915760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610bcd565b6000818152600260205260409020546001600160a01b0316156123f65760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610bcd565b6001600160a01b038216600090815260036020526040812080546001929061241f908490613334565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000818152600260205260408120546001600160a01b03166124f65760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610bcd565b60006125018361142c565b9050806001600160a01b0316846001600160a01b0316148061253c5750836001600160a01b031661253184610c4d565b6001600160a01b0316145b8061256c57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166125878261142c565b6001600160a01b0316146125ef5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610bcd565b6001600160a01b0382166126515760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610bcd565b61265c60008261211f565b6001600160a01b038316600090815260036020526040812080546001929061268590849061337f565b90915550506001600160a01b03821660009081526003602052604081208054600192906126b3908490613334565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61271f848484612574565b61272b8484848461289e565b610c475760405162461bcd60e51b8152600401610bcd90613149565b60608161276b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612795578061277f816133fd565b915061278e9050600a8361334c565b915061276f565b60008167ffffffffffffffff8111156127be57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156127e8576020820181803683370190505b5090505b841561256c576127fd60018361337f565b915061280a600a86613418565b612815906030613334565b60f81b81838151811061283857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061285a600a8661334c565b94506127ec565b7f3fa96d7b6bcbfe71ef171666d84db3cf52fa2d1c8afdb1cc8e486177f208b7df82826040516128929291906132ea565b60405180910390a15050565b60006001600160a01b0384163b156129a057604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906128e29033908990889088906004016130a2565b602060405180830381600087803b1580156128fc57600080fd5b505af192505050801561292c575060408051601f3d908101601f1916820190925261292991810190612e37565b60015b612986573d80801561295a576040519150601f19603f3d011682016040523d82523d6000602084013e61295f565b606091505b50805161297e5760405162461bcd60e51b8152600401610bcd90613149565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061256c565b506001949350505050565b8280546129b7906133c2565b90600052602060002090601f0160209004810192826129d95760008555612a1f565b82601f106129f257805160ff1916838001178555612a1f565b82800160010185558215612a1f579182015b82811115612a1f578251825591602001919060010190612a04565b50612a2b929150612a2f565b5090565b5b80821115612a2b5760008155600101612a30565b600067ffffffffffffffff831115612a5e57612a5e613458565b612a71601f8401601f1916602001613303565b9050828152838383011115612a8557600080fd5b828260208301376000602084830101529392505050565b60008083601f840112612aad578182fd5b50813567ffffffffffffffff811115612ac4578182fd5b6020830191508360208260051b85010111156112ba57600080fd5b600060208284031215612af0578081fd5b8135611d858161346e565b60008060408385031215612b0d578081fd5b8235612b188161346e565b91506020830135612b288161346e565b809150509250929050565b600080600060608486031215612b47578081fd5b8335612b528161346e565b92506020840135612b628161346e565b929592945050506040919091013590565b60008060008060808587031215612b88578081fd5b8435612b938161346e565b93506020850135612ba38161346e565b925060408501359150606085013567ffffffffffffffff811115612bc5578182fd5b8501601f81018713612bd5578182fd5b612be487823560208401612a44565b91505092959194509250565b60008060408385031215612c02578182fd5b8235612c0d8161346e565b915060208301358015158114612b28578182fd5b60008060408385031215612c33578182fd5b8235612c3e8161346e565b946020939093013593505050565b600080600060608486031215612c60578283fd5b8335612c6b8161346e565b95602085013595506040909401359392505050565b60008060208385031215612c92578182fd5b823567ffffffffffffffff811115612ca8578283fd5b612cb485828601612a9c565b90969095509350505050565b60008060008060408587031215612cd5578182fd5b843567ffffffffffffffff80821115612cec578384fd5b612cf888838901612a9c565b90965094506020870135915080821115612d10578384fd5b50612d1d87828801612a9c565b95989497509550505050565b600080600060408486031215612d3d578081fd5b833567ffffffffffffffff811115612d53578182fd5b612d5f86828701612a9c565b909790965060209590950135949350505050565b60006020808385031215612d85578182fd5b825167ffffffffffffffff80821115612d9c578384fd5b818501915085601f830112612daf578384fd5b815181811115612dc157612dc1613458565b8060051b9150612dd2848301613303565b8181528481019084860184860187018a1015612dec578788fd5b8795505b83861015612e0e578051835260019590950194918601918601612df0565b5098975050505050505050565b600060208284031215612e2c578081fd5b8135611d8581613483565b600060208284031215612e48578081fd5b8151611d8581613483565b600060208284031215612e64578081fd5b813567ffffffffffffffff811115612e7a578182fd5b8201601f81018413612e8a578182fd5b61256c84823560208401612a44565b600060208284031215612eaa578081fd5b5035919050565b600080600060608486031215612ec5578081fd5b833592506020840135612ed78161346e565b915060408401356001600160601b0381168114612ef2578182fd5b809150509250925092565b60008060408385031215612f0f578182fd5b50508035926020909101359150565b600080600060608486031215612f32578081fd5b505081359360208301359350604090920135919050565b6000815180845260208085019450808401835b83811015612f9557815180516001600160a01b031688528301516001600160601b03168388015260409096019590820190600101612f5c565b509495945050505050565b60008151808452612fb8816020860160208601613396565b601f01601f19169290920160200192915050565b60008151612fde818560208601613396565b9290920192915050565b600080845482600182811c91508083168061300457607f831692505b602080841082141561302457634e487b7160e01b87526022600452602487fd5b818015613038576001811461304957613075565b60ff19861689528489019650613075565b60008b815260209020885b8681101561306d5781548b820152908501908301613054565b505084890196505b5050505050506130996130888286612fcc565b64173539b7b760d91b815260050190565b95945050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906130d590830184612fa0565b9695505050505050565b602081526000611d856020830184612f49565b6020808252825182820181905260009190848201906040850190845b8181101561312a5783518352928401929184019160010161310e565b50909695505050505050565b602081526000611d856020830184612fa0565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601d908201527f416d6f756e74206f66206574686572206973206e6f7420656e6f756768000000604082015260600190565b6020808252602f908201527f5468697320776f756c642065786365656420746865206d6178206e756d62657260408201526e081bd988185b1b1bddd959081b999d608a1b606082015260800190565b60208082526023908201527f4d696e7420776f756c6420657863656564206d617820737570706c79206f66206040820152621b999d60ea1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b82815260406020820152600061256c6040830184612f49565b604051601f8201601f1916810167ffffffffffffffff8111828210171561332c5761332c613458565b604052919050565b600082198211156133475761334761342c565b500190565b60008261335b5761335b613442565b500490565b600081600019048311821515161561337a5761337a61342c565b500290565b6000828210156133915761339161342c565b500390565b60005b838110156133b1578181015183820152602001613399565b83811115610c475750506000910152565b600181811c908216806133d657607f821691505b602082108114156133f757634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156134115761341161342c565b5060010190565b60008261342757613427613442565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611f0857600080fd5b6001600160e01b031981168114611f0857600080fdfea26469706673582212204c420bd5b5ebfdf23013b79f62a13828f8b4d1afb58fc22fd6d562f844bba9e664736f6c6343000804003368747470733a2f2f6d657461646174612e6e616e6f706173732e696f2f6d657461646174612f000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000015b300000000000000000000000000000000000000000000000000000000000000084e616e6f7061737300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024e50000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106103765760003560e01c80637d8966e4116101d1578063c507104a11610102578063dac6270d116100a0578063eb8835ab1161006f578063eb8835ab14610a36578063eed1493414610a63578063f2fde38b14610a8b578063f759867a14610aab57600080fd5b8063dac6270d146109a8578063db8362c5146109bd578063dd79331f146109d3578063e985e9c5146109ed57600080fd5b8063c8923b8c116100dc578063c8923b8c14610915578063cad96cca1461093d578063d5abeb011461096a578063d6d891041461098057600080fd5b8063c507104a146108bf578063c839fe94146108d5578063c87b56dd146108f557600080fd5b8063a035b1fe1161016f578063a64e450011610149578063a64e450014610854578063a69d9c4714610874578063b88d4fde14610889578063c2dd6903146108a957600080fd5b8063a035b1fe1461080b578063a0712d6814610821578063a22cb4651461083457600080fd5b80638924af74116101ab5780638924af74146107715780638da5cb5b146107b857806391b7f5ed146107d657806395d89b41146107f657600080fd5b80637d8966e41461071f578063853828b614610734578063875ad5811461074957600080fd5b806334393743116102ab57806355f804b31161024957806370a082311161022357806370a08231146106b4578063715018a6146106d4578063729ad39e146106e9578063771282f61461070957600080fd5b806355f804b3146106555780636352211e1461067557806368428a1b1461069557600080fd5b8063438b630011610285578063438b6300146105d15780634b8fd12e146105fe5780634faa2d541461062657806353135ca01461063b57600080fd5b806334393743146105745780633cd68c4d1461058957806342842e0e146105b157600080fd5b806318160ddd1161031857806321ca3b9e116102f257806321ca3b9e146104e257806323b872dd146104f557806326ed7155146105155780632a55205a1461053557600080fd5b806318160ddd146104905780631c77830f146104a55780632133468b146104cd57600080fd5b8063081812fc11610354578063081812fc146103f4578063095ea7b31461042c578063143094db1461044c57806315b6ff271461046c57600080fd5b806301ffc9a71461037b57806306fdde03146103b057806308026366146103d2575b600080fd5b34801561038757600080fd5b5061039b610396366004612e1b565b610abe565b60405190151581526020015b60405180910390f35b3480156103bc57600080fd5b506103c5610b11565b6040516103a79190613136565b3480156103de57600080fd5b506103f26103ed366004612d29565b610ba3565b005b34801561040057600080fd5b5061041461040f366004612e99565b610c4d565b6040516001600160a01b0390911681526020016103a7565b34801561043857600080fd5b506103f2610447366004612c21565b610ce2565b34801561045857600080fd5b506103f2610467366004612eb1565b610df8565b34801561047857600080fd5b50610482600f5481565b6040519081526020016103a7565b34801561049c57600080fd5b50600a54610482565b3480156104b157600080fd5b50610414735bb1396e3ec5e31e12dc7846c4c94eea25083f3581565b3480156104d957600080fd5b506103f2610eec565b6103f26104f0366004612e99565b610f2a565b34801561050157600080fd5b506103f2610510366004612b33565b611088565b34801561052157600080fd5b506103f2610530366004612cc0565b6110b9565b34801561054157600080fd5b50610555610550366004612efd565b611181565b604080516001600160a01b0390931683526020830191909152016103a7565b34801561058057600080fd5b506103f26112c1565b34801561059557600080fd5b50610414733e8f4639e926f36f7309836f6d018a9ea59b345e81565b3480156105bd57600080fd5b506103f26105cc366004612b33565b6112ff565b3480156105dd57600080fd5b506105f16105ec366004612adf565b61131a565b6040516103a791906130f2565b34801561060a57600080fd5b5061041473c929b6bd739a8564bcb35e978afe4fff5b6c3cef81565b34801561063257600080fd5b506104826113aa565b34801561064757600080fd5b5060095461039b9060ff1681565b34801561066157600080fd5b506103f2610670366004612e53565b6113eb565b34801561068157600080fd5b50610414610690366004612e99565b61142c565b3480156106a157600080fd5b5060095461039b90610100900460ff1681565b3480156106c057600080fd5b506104826106cf366004612adf565b6114a3565b3480156106e057600080fd5b506103f261152a565b3480156106f557600080fd5b506103f2610704366004612c80565b611556565b34801561071557600080fd5b50610482600a5481565b34801561072b57600080fd5b506103f2611628565b34801561074057600080fd5b506103f261166f565b34801561075557600080fd5b50610414737955cf321a420f7c245cefb748e0f303756ae2a681565b34801561077d57600080fd5b5061079161078c366004612efd565b611931565b604080516001600160a01b0390931683526001600160601b039091166020830152016103a7565b3480156107c457600080fd5b506006546001600160a01b0316610414565b3480156107e257600080fd5b506103f26107f1366004612e99565b61197a565b34801561080257600080fd5b506103c56119a9565b34801561081757600080fd5b50610482600c5481565b6103f261082f366004612e99565b6119b8565b34801561084057600080fd5b506103f261084f366004612bf0565b611af8565b34801561086057600080fd5b506103f261086f366004612f1e565b611bbd565b34801561088057600080fd5b50610482611c08565b34801561089557600080fd5b506103f26108a4366004612b73565b611c46565b3480156108b557600080fd5b50610482600e5481565b3480156108cb57600080fd5b5061048260105481565b3480156108e157600080fd5b506105f16108f0366004612c4c565b611c78565b34801561090157600080fd5b506103c5610910366004612e99565b611d8c565b34801561092157600080fd5b50610414735bf9be0b32ba09b449ed5d1eabb864cf2317629f81565b34801561094957600080fd5b5061095d610958366004612e99565b611e25565b6040516103a791906130df565b34801561097657600080fd5b50610482600b5481565b34801561098c57600080fd5b5061041473c73ab340a7d523ec7b1b71fe3d3494f94283b4b181565b3480156109b457600080fd5b50610482611ec7565b3480156109c957600080fd5b50610482600d5481565b3480156109df57600080fd5b5060115461039b9060ff1681565b3480156109f957600080fd5b5061039b610a08366004612afb565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610a4257600080fd5b50610482610a51366004612adf565b60086020526000908152604090205481565b348015610a6f57600080fd5b506104147309b2741fed63b7fcc5e577cdc9d0cf0d85127a3281565b348015610a9757600080fd5b506103f2610aa6366004612adf565b611ede565b6103f2610ab9366004612e99565b611f0b565b60006001600160e01b03198216631131d2f360e21b1415610ae157506001919050565b6001600160e01b0319821663152a902d60e11b1415610b0257506001919050565b610b0b826120cf565b92915050565b606060008054610b20906133c2565b80601f0160208091040260200160405190810160405280929190818152602001828054610b4c906133c2565b8015610b995780601f10610b6e57610100808354040283529160200191610b99565b820191906000526020600020905b815481529060010190602001808311610b7c57829003601f168201915b5050505050905090565b6006546001600160a01b03163314610bd65760405162461bcd60e51b8152600401610bcd90613264565b60405180910390fd5b60005b82811015610c47578160086000868685818110610c0657634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610c1b9190612adf565b6001600160a01b0316815260208101919091526040016000205580610c3f816133fd565b915050610bd9565b50505050565b6000818152600260205260408120546001600160a01b0316610cc65760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610bcd565b506000908152600460205260409020546001600160a01b031690565b6000610ced8261142c565b9050806001600160a01b0316836001600160a01b03161415610d5b5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610bcd565b336001600160a01b0382161480610d775750610d778133610a08565b610de95760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610bcd565b610df3838361211f565b505050565b6006546001600160a01b03163314610e225760405162461bcd60e51b8152600401610bcd90613264565b604080516001808252818301909252600091816020015b6040805180820190915260008082526020820152815260200190600190039081610e395790505090508181600081518110610e8457634e487b7160e01b600052603260045260246000fd5b6020026020010151602001906001600160601b031690816001600160601b0316815250508281600081518110610eca57634e487b7160e01b600052603260045260246000fd5b60209081029190910101516001600160a01b039091169052610c47848261218d565b6006546001600160a01b03163314610f165760405162461bcd60e51b8152600401610bcd90613264565b6011805460ff19811660ff90911615179055565b60115460ff168015610f3e5750600e544210155b610f955760405162461bcd60e51b815260206004820152602260248201527f44757463682061756374696f6e20686173206e6f742073746172746564207965604482015261742160f01b6064820152608401610bcd565b600a546002821115610fe35760405162461bcd60e51b8152602060048201526017602482015276125b9d985b1a59081c1d5c98da185cd948185b5bdd5b9d604a1b6044820152606401610bcd565b600b54610ff08383613334565b111561100e5760405162461bcd60e51b8152600401610bcd90613221565b81611017611c08565b6110219190613360565b3410156110405760405162461bcd60e51b8152600401610bcd9061319b565b81600a60008282546110529190613334565b90915550600090505b82811015610df357611076336110718385613334565b61233b565b80611080816133fd565b91505061105b565b611092338261247d565b6110ae5760405162461bcd60e51b8152600401610bcd90613299565b610df3838383612574565b6006546001600160a01b031633146110e35760405162461bcd60e51b8152600401610bcd90613264565b60005b8381101561117a5782828281811061110e57634e487b7160e01b600052603260045260246000fd5b905060200201356008600087878581811061113957634e487b7160e01b600052603260045260246000fd5b905060200201602081019061114e9190612adf565b6001600160a01b0316815260208101919091526040016000205580611172816133fd565b9150506110e6565b5050505050565b6000808052600760209081527f6d5257204ebe7d88fd91ae87941cb2dd9d8062b64ae5a2bd2d28ec40b9fbf6df8054604080518285028101850190915281815284938493919290849084015b8282101561121c57600084815260209081902060408051808201909152908401546001600160a01b0381168252600160a01b90046001600160601b0316818301528252600190920191016111cd565b5050505090506000815111156112b1578060008151811061124d57634e487b7160e01b600052603260045260246000fd5b6020026020010151600001516127108260008151811061127d57634e487b7160e01b600052603260045260246000fd5b6020026020010151602001516001600160601b03168661129d9190613360565b6112a7919061334c565b92509250506112ba565b60008092509250505b9250929050565b6006546001600160a01b031633146112eb5760405162461bcd60e51b8152600401610bcd90613264565b6009805460ff19811660ff90911615179055565b610df383838360405180602001604052806000815250611c46565b600a5460405163320e7fa560e21b81526001600160a01b0383166004820152600060248201526044810191909152606090309063c839fe949060640160006040518083038186803b15801561136e57600080fd5b505afa158015611382573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b0b9190810190612d73565b600080600e54116113bb5750600090565b42600f54600e546113cc9190613334565b10156113d95750600f5490565b600e546113e6904261337f565b905090565b6006546001600160a01b031633146114155760405162461bcd60e51b8152600401610bcd90613264565b80516114289060129060208401906129ab565b5050565b6000818152600260205260408120546001600160a01b031680610b0b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610bcd565b60006001600160a01b03821661150e5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610bcd565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146115545760405162461bcd60e51b8152600401610bcd90613264565b565b6006546001600160a01b031633146115805760405162461bcd60e51b8152600401610bcd90613264565b600a54600b546115908383613334565b11156115ae5760405162461bcd60e51b8152600401610bcd906131d2565b82829050600a60008282546115c39190613334565b90915550600090505b82811015610c47576116168484838181106115f757634e487b7160e01b600052603260045260246000fd5b905060200201602081019061160c9190612adf565b6110718385613334565b80611620816133fd565b9150506115cc565b6006546001600160a01b031633146116525760405162461bcd60e51b8152600401610bcd90613264565b6009805461ff001981166101009182900460ff1615909102179055565b6006546001600160a01b031633146116995760405162461bcd60e51b8152600401610bcd90613264565b47806116d65760405162461bcd60e51b815260206004820152600c60248201526b042616c616e636520697320360a41b6044820152606401610bcd565b737955cf321a420f7c245cefb748e0f303756ae2a66108fc6127106116fd84611388613360565b611707919061334c565b6040518115909202916000818181858888f1935050505015801561172f573d6000803e3d6000fd5b5073c73ab340a7d523ec7b1b71fe3d3494f94283b4b16108fc61271061175784610682613360565b611761919061334c565b6040518115909202916000818181858888f19350505050158015611789573d6000803e3d6000fd5b507309b2741fed63b7fcc5e577cdc9d0cf0d85127a326108fc6127106117b1846104cd613360565b6117bb919061334c565b6040518115909202916000818181858888f193505050501580156117e3573d6000803e3d6000fd5b5073c929b6bd739a8564bcb35e978afe4fff5b6c3cef6108fc61271061180b84610325613360565b611815919061334c565b6040518115909202916000818181858888f1935050505015801561183d573d6000803e3d6000fd5b50735bf9be0b32ba09b449ed5d1eabb864cf2317629f6108fc61271061186584610384613360565b61186f919061334c565b6040518115909202916000818181858888f19350505050158015611897573d6000803e3d6000fd5b50733e8f4639e926f36f7309836f6d018a9ea59b345e6108fc6127106118be8460c8613360565b6118c8919061334c565b6040518115909202916000818181858888f193505050501580156118f0573d6000803e3d6000fd5b50604051735bb1396e3ec5e31e12dc7846c4c94eea25083f35904780156108fc02916000818181858888f19350505050158015611428573d6000803e3d6000fd5b6007602052816000526040600020818154811061194d57600080fd5b6000918252602090912001546001600160a01b0381169250600160a01b90046001600160601b0316905082565b6006546001600160a01b031633146119a45760405162461bcd60e51b8152600401610bcd90613264565b600c55565b606060018054610b20906133c2565b600a54600954610100900460ff16611a125760405162461bcd60e51b815260206004820152601b60248201527f53616c65206d7573742062652061637469766520746f206d696e7400000000006044820152606401610bcd565b6001821115611a5d5760405162461bcd60e51b8152602060048201526017602482015276125b9d985b1a59081c1d5c98da185cd948185b5bdd5b9d604a1b6044820152606401610bcd565b600b54611a6a8383613334565b1115611a885760405162461bcd60e51b8152600401610bcd90613221565b34600c5483611a979190613360565b1115611ab55760405162461bcd60e51b8152600401610bcd9061319b565b81600a6000828254611ac79190613334565b90915550600090505b82811015610df357611ae6336110718385613334565b80611af0816133fd565b915050611ad0565b6001600160a01b038216331415611b515760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610bcd565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6006546001600160a01b03163314611be75760405162461bcd60e51b8152600401610bcd90613264565b600d839055600e829055600f819055611c008183613334565b601055505050565b6000600f54600d54611c186113aa565b600f54611c25919061337f565b611c2f9190613360565b611c39919061334c565b600c546113e69190613334565b611c50338361247d565b611c6c5760405162461bcd60e51b8152600401610bcd90613299565b610c4784848484612714565b60606000611c85856114a3565b905080611ca2575050604080516000815260208101909152611d85565b60008167ffffffffffffffff811115611ccb57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611cf4578160200160208202803683370190505b5090506000855b85811015611d7e5783821415611d1057611d7e565b876001600160a01b0316611d238261142c565b6001600160a01b03161415611d6c5780838381518110611d5357634e487b7160e01b600052603260045260246000fd5b602090810291909101015281611d68816133fd565b9250505b80611d76816133fd565b915050611cfb565b5090925050505b9392505050565b6000818152600260205260409020546060906001600160a01b0316611df35760405162461bcd60e51b815260206004820152601f60248201527f43616e6e6f74207175657279206e6f6e2d6578697374656e7420746f6b656e006044820152606401610bcd565b6012611dfe83612747565b604051602001611e0f929190612fe8565b6040516020818303038152906040529050919050565b6000808052600760209081527f6d5257204ebe7d88fd91ae87941cb2dd9d8062b64ae5a2bd2d28ec40b9fbf6df80546040805182850281018501909152818152606094909384015b82821015611ebc57600084815260209081902060408051808201909152908401546001600160a01b0381168252600160a01b90046001600160601b031681830152825260019092019101611e6d565b505050509050919050565b6000611ed16113aa565b600f546113e6919061337f565b6006546001600160a01b03163314611f085760405162461bcd60e51b8152600401610bcd90613264565b50565b600a543360009081526008602052604090205460095460ff16611f645760405162461bcd60e51b81526020600482015260116024820152704e6f2070726573616c652061637469766560781b6044820152606401610bcd565b60008111611fc75760405162461bcd60e51b815260206004820152602a60248201527f546869732061646472657373206973206e6f7420617574686f72697a656420666044820152696f722070726573616c6560b01b6064820152608401610bcd565b808311156120175760405162461bcd60e51b815260206004820152601760248201527f457863656564656420616c6c6f77656420616d6f756e740000000000000000006044820152606401610bcd565b600b546120248484613334565b11156120425760405162461bcd60e51b8152600401610bcd906131d2565b34600c54846120519190613360565b111561206f5760405162461bcd60e51b8152600401610bcd9061319b565b612079838261337f565b33600090815260086020526040812091909155600a805485929061209e908490613334565b90915550600090505b83811015610c47576120bd336110718386613334565b806120c7816133fd565b9150506120a7565b60006001600160e01b031982166380ac58cd60e01b148061210057506001600160e01b03198216635b5e139f60e01b145b80610b0b57506301ffc9a760e01b6001600160e01b0319831614610b0b565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906121548261142c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60005b81518110156123305760006001600160a01b03168282815181106121c457634e487b7160e01b600052603260045260246000fd5b6020026020010151600001516001600160a01b031614156122275760405162461bcd60e51b815260206004820152601b60248201527f526563697069656e742073686f756c642062652070726573656e7400000000006044820152606401610bcd565b81818151811061224757634e487b7160e01b600052603260045260246000fd5b6020026020010151602001516001600160601b0316600014156122ac5760405162461bcd60e51b815260206004820181905260248201527f526f79616c74792076616c75652073686f756c6420626520706f7369746976656044820152606401610bcd565b600083815260076020526040902082518390839081106122dc57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518254600181018455600093845292829020815191909201516001600160601b0316600160a01b026001600160a01b039091161791015580612328816133fd565b915050612190565b506114288282612861565b6001600160a01b0382166123915760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610bcd565b6000818152600260205260409020546001600160a01b0316156123f65760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610bcd565b6001600160a01b038216600090815260036020526040812080546001929061241f908490613334565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000818152600260205260408120546001600160a01b03166124f65760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610bcd565b60006125018361142c565b9050806001600160a01b0316846001600160a01b0316148061253c5750836001600160a01b031661253184610c4d565b6001600160a01b0316145b8061256c57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166125878261142c565b6001600160a01b0316146125ef5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610bcd565b6001600160a01b0382166126515760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610bcd565b61265c60008261211f565b6001600160a01b038316600090815260036020526040812080546001929061268590849061337f565b90915550506001600160a01b03821660009081526003602052604081208054600192906126b3908490613334565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61271f848484612574565b61272b8484848461289e565b610c475760405162461bcd60e51b8152600401610bcd90613149565b60608161276b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612795578061277f816133fd565b915061278e9050600a8361334c565b915061276f565b60008167ffffffffffffffff8111156127be57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156127e8576020820181803683370190505b5090505b841561256c576127fd60018361337f565b915061280a600a86613418565b612815906030613334565b60f81b81838151811061283857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061285a600a8661334c565b94506127ec565b7f3fa96d7b6bcbfe71ef171666d84db3cf52fa2d1c8afdb1cc8e486177f208b7df82826040516128929291906132ea565b60405180910390a15050565b60006001600160a01b0384163b156129a057604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906128e29033908990889088906004016130a2565b602060405180830381600087803b1580156128fc57600080fd5b505af192505050801561292c575060408051601f3d908101601f1916820190925261292991810190612e37565b60015b612986573d80801561295a576040519150601f19603f3d011682016040523d82523d6000602084013e61295f565b606091505b50805161297e5760405162461bcd60e51b8152600401610bcd90613149565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061256c565b506001949350505050565b8280546129b7906133c2565b90600052602060002090601f0160209004810192826129d95760008555612a1f565b82601f106129f257805160ff1916838001178555612a1f565b82800160010185558215612a1f579182015b82811115612a1f578251825591602001919060010190612a04565b50612a2b929150612a2f565b5090565b5b80821115612a2b5760008155600101612a30565b600067ffffffffffffffff831115612a5e57612a5e613458565b612a71601f8401601f1916602001613303565b9050828152838383011115612a8557600080fd5b828260208301376000602084830101529392505050565b60008083601f840112612aad578182fd5b50813567ffffffffffffffff811115612ac4578182fd5b6020830191508360208260051b85010111156112ba57600080fd5b600060208284031215612af0578081fd5b8135611d858161346e565b60008060408385031215612b0d578081fd5b8235612b188161346e565b91506020830135612b288161346e565b809150509250929050565b600080600060608486031215612b47578081fd5b8335612b528161346e565b92506020840135612b628161346e565b929592945050506040919091013590565b60008060008060808587031215612b88578081fd5b8435612b938161346e565b93506020850135612ba38161346e565b925060408501359150606085013567ffffffffffffffff811115612bc5578182fd5b8501601f81018713612bd5578182fd5b612be487823560208401612a44565b91505092959194509250565b60008060408385031215612c02578182fd5b8235612c0d8161346e565b915060208301358015158114612b28578182fd5b60008060408385031215612c33578182fd5b8235612c3e8161346e565b946020939093013593505050565b600080600060608486031215612c60578283fd5b8335612c6b8161346e565b95602085013595506040909401359392505050565b60008060208385031215612c92578182fd5b823567ffffffffffffffff811115612ca8578283fd5b612cb485828601612a9c565b90969095509350505050565b60008060008060408587031215612cd5578182fd5b843567ffffffffffffffff80821115612cec578384fd5b612cf888838901612a9c565b90965094506020870135915080821115612d10578384fd5b50612d1d87828801612a9c565b95989497509550505050565b600080600060408486031215612d3d578081fd5b833567ffffffffffffffff811115612d53578182fd5b612d5f86828701612a9c565b909790965060209590950135949350505050565b60006020808385031215612d85578182fd5b825167ffffffffffffffff80821115612d9c578384fd5b818501915085601f830112612daf578384fd5b815181811115612dc157612dc1613458565b8060051b9150612dd2848301613303565b8181528481019084860184860187018a1015612dec578788fd5b8795505b83861015612e0e578051835260019590950194918601918601612df0565b5098975050505050505050565b600060208284031215612e2c578081fd5b8135611d8581613483565b600060208284031215612e48578081fd5b8151611d8581613483565b600060208284031215612e64578081fd5b813567ffffffffffffffff811115612e7a578182fd5b8201601f81018413612e8a578182fd5b61256c84823560208401612a44565b600060208284031215612eaa578081fd5b5035919050565b600080600060608486031215612ec5578081fd5b833592506020840135612ed78161346e565b915060408401356001600160601b0381168114612ef2578182fd5b809150509250925092565b60008060408385031215612f0f578182fd5b50508035926020909101359150565b600080600060608486031215612f32578081fd5b505081359360208301359350604090920135919050565b6000815180845260208085019450808401835b83811015612f9557815180516001600160a01b031688528301516001600160601b03168388015260409096019590820190600101612f5c565b509495945050505050565b60008151808452612fb8816020860160208601613396565b601f01601f19169290920160200192915050565b60008151612fde818560208601613396565b9290920192915050565b600080845482600182811c91508083168061300457607f831692505b602080841082141561302457634e487b7160e01b87526022600452602487fd5b818015613038576001811461304957613075565b60ff19861689528489019650613075565b60008b815260209020885b8681101561306d5781548b820152908501908301613054565b505084890196505b5050505050506130996130888286612fcc565b64173539b7b760d91b815260050190565b95945050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906130d590830184612fa0565b9695505050505050565b602081526000611d856020830184612f49565b6020808252825182820181905260009190848201906040850190845b8181101561312a5783518352928401929184019160010161310e565b50909695505050505050565b602081526000611d856020830184612fa0565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601d908201527f416d6f756e74206f66206574686572206973206e6f7420656e6f756768000000604082015260600190565b6020808252602f908201527f5468697320776f756c642065786365656420746865206d6178206e756d62657260408201526e081bd988185b1b1bddd959081b999d608a1b606082015260800190565b60208082526023908201527f4d696e7420776f756c6420657863656564206d617820737570706c79206f66206040820152621b999d60ea1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b82815260406020820152600061256c6040830184612f49565b604051601f8201601f1916810167ffffffffffffffff8111828210171561332c5761332c613458565b604052919050565b600082198211156133475761334761342c565b500190565b60008261335b5761335b613442565b500490565b600081600019048311821515161561337a5761337a61342c565b500290565b6000828210156133915761339161342c565b500390565b60005b838110156133b1578181015183820152602001613399565b83811115610c475750506000910152565b600181811c908216806133d657607f821691505b602082108114156133f757634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156134115761341161342c565b5060010190565b60008261342757613427613442565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611f0857600080fd5b6001600160e01b031981168114611f0857600080fdfea26469706673582212204c420bd5b5ebfdf23013b79f62a13828f8b4d1afb58fc22fd6d562f844bba9e664736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000015b300000000000000000000000000000000000000000000000000000000000000084e616e6f7061737300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024e50000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): Nanopass
Arg [1] : symbol (string): NP
Arg [2] : supply (uint256): 5555
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000015b3
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [4] : 4e616e6f70617373000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [6] : 4e50000000000000000000000000000000000000000000000000000000000000
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.