Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
260 NONORO
Holders
71
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 NONOROLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Nonoro
Compiler Version
v0.8.0+commit.c7dfd78e
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; library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } } 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); } } pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success,) = recipient.call{value : amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value : value}(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) private pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } 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); } 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); } pragma solidity ^0.8.0; /** * @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; } } pragma solidity ^0.8.0; /** * @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; } pragma solidity ^0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); } pragma solidity ^0.8.0; /** * @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); } 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; } } pragma solidity ^0.8.0; /** * @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 () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), 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. */ /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } pragma solidity ^0.8.0; /** * @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; string public _baseURI; /** * @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 base = baseURI(); return bytes(base).length > 0 ? string(abi.encodePacked(base, 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 _baseURI; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} } pragma solidity ^0.8.0; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } } pragma solidity ^0.8.0; /*********************************************************************************************************************** .-') _ .-') _ _ .-') .-') _ .-') _ ( OO ) ) ( OO ) ) ( \( -O ) ( OO ) ) ( OO) ) ,--./ ,--,' .-'),-----. ,--./ ,--,' .-'),-----. ,------. .-'),-----. ,--./ ,--,' ,------./ '._ | \ | |\ ( OO' .-. '| \ | |\ ( OO' .-. '| /`. '( OO' .-. ' | \ | |\ ('-| _.---'|'--...__) | \| | )/ | | | || \| | )/ | | | || / | |/ | | | | | \| | )(OO|(_\ '--. .--' | . |/ \_) | |\| || . |/ \_) | |\| || |_.' |\_) | |\| | | . |/ / | '--. | | | |\ | \ | | | || |\ | \ | | | || . '.' \ | | | | | |\ | \_)| .--' | | | | \ | `' '-' '| | \ | `' '-' '| |\ \ `' '-' ' | | \ | \| |_) | | `--' `--' `-----' `--' `--' `-----' `--' '--' `-----' `--' `--' `--' `--' ***********************************************************************************************************************/ contract Nonoro is ERC721Enumerable, Ownable { using SafeMath for uint256; uint public MAX_PRESALE_SUPPLY = 400; uint public RESERVE_SUPPLY = 10; uint public MAX_SUPPLY = 2022; uint private MAX_PRESALE_MINT_PER_ADDRESS = 10; uint private MAX_MINT_PER_TX = 20; uint PRESALE_PRICE = 0.07 ether; uint SALE_PRICE = 0.1 ether; bool public isSalePaused = true; bool public isPreSalePaused = true; uint256 private tokenId = 1; mapping(address => uint256) public PresaleLedger; constructor(string memory baseURI) ERC721("Nonoro", "NONORO") { setBaseURI(baseURI); } function setBaseURI(string memory baseURI) public onlyOwner { _baseURI = baseURI; } function switchSalePause() public onlyOwner { isSalePaused = !isSalePaused; } function switchPreSalePause() public onlyOwner { isPreSalePaused = !isPreSalePaused; } function startSale() public onlyOwner { isPreSalePaused = true; isSalePaused = false; } function reserveTokens(uint _quantity) public onlyOwner { require(_quantity <= RESERVE_SUPPLY, "RESERVE_SUPPLY"); require(totalSupply().add(_quantity) <= MAX_SUPPLY, "TOTAL_SUPPLY"); RESERVE_SUPPLY -= _quantity; for (uint i = 0; i < _quantity; i++) { _safeMint(_msgSender(), tokenId); tokenId++; } } function preSaleMint(uint256 _quantity) public payable { require(isPreSalePaused == false, "PRESALE_CLOSED"); require(totalSupply().add(_quantity) <= MAX_PRESALE_SUPPLY, "PRESALE_SUPPLY"); require(_quantity <= MAX_MINT_PER_TX, "MAX_MINT_PER_TX"); require(PRESALE_PRICE.mul(_quantity) <= msg.value, "NOT_ENOUGH_ETHER"); require(PresaleLedger[_msgSender()].add(_quantity) <= MAX_PRESALE_MINT_PER_ADDRESS, "MAX_PRESALE_MINT_PER_ADDRESS"); for (uint i = 0; i < _quantity; i++) { _safeMint(_msgSender(), tokenId); tokenId++; } PresaleLedger[_msgSender()] += _quantity; } function mint(uint256 _quantity) public payable { require(!isSalePaused, "SALE_CLOSED"); require(totalSupply().add(_quantity) <= MAX_SUPPLY, "MAX_SUPPLY"); require(_quantity <= MAX_MINT_PER_TX, "MAX_MINT_PER_TX"); require(SALE_PRICE.mul(_quantity) <= msg.value, "NOT_ENOUGH_ETHER"); for (uint i = 0; i < _quantity; i++) { _safeMint(_msgSender(), tokenId); tokenId++; } } function tokensOfOwner(address _owner) public view returns (uint256[] memory) { uint256 count = balanceOf(_owner); uint256[] memory result = new uint256[](count); for (uint256 index = 0; index < count; index++) { result[index] = tokenOfOwnerByIndex(_owner, index); } return result; } function withdraw() public onlyOwner { (bool success,) = payable(owner()).call { value : address(this).balance }(""); require(success, "FAILED_SEND"); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_PRESALE_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"PresaleLedger","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RESERVE_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPreSalePaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isSalePaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"preSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"reserveTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"switchPreSalePause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"switchSalePause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"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":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052610190600c55600a600d8190556107e6600e55600f556014601081905566f8b0a10e47000060115567016345785d8a000060125560138054610100600160ff19909216821761ff0019161790915590553480156200006157600080fd5b5060405162002b9d38038062002b9d833981016040819052620000849162000286565b604051806040016040528060068152602001654e6f6e6f726f60d01b815250604051806040016040528060068152602001654e4f4e4f524f60d01b8152508160009080519060200190620000da929190620001e0565b508051620000f0906001906020840190620001e0565b5050506000620001056200016560201b60201c565b600b80546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506200015e8162000169565b50620003dd565b3390565b6200017362000165565b6001600160a01b031662000186620001d1565b6001600160a01b031614620001b85760405162461bcd60e51b8152600401620001af9062000355565b60405180910390fd5b8051620001cd906006906020840190620001e0565b5050565b600b546001600160a01b031690565b828054620001ee906200038a565b90600052602060002090601f0160209004810192826200021257600085556200025d565b82601f106200022d57805160ff19168380011785556200025d565b828001600101855582156200025d579182015b828111156200025d57825182559160200191906001019062000240565b506200026b9291506200026f565b5090565b5b808211156200026b576000815560010162000270565b6000602080838503121562000299578182fd5b82516001600160401b0380821115620002b0578384fd5b818501915085601f830112620002c4578384fd5b815181811115620002d957620002d9620003c7565b604051601f8201601f1916810185018381118282101715620002ff57620002ff620003c7565b604052818152838201850188101562000316578586fd5b8592505b818310156200033957838301850151818401860152918401916200031a565b818311156200034a57858583830101525b979650505050505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6002810460018216806200039f57607f821691505b60208210811415620003c157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6127b080620003ed6000396000f3fe6080604052600436106101f85760003560e01c806370a082311161010d578063a22cb465116100a0578063b88d4fde1161006f578063b88d4fde14610535578063c87b56dd14610555578063d031370b14610575578063e985e9c514610595578063f2fde38b146105b5576101f8565b8063a22cb465146104cb578063a4fe0ecc146104eb578063aa66797b1461050b578063b66a0e5d14610520576101f8565b80638b78e8f7116100dc5780638b78e8f7146104795780638da5cb5b1461048e57806395d89b41146104a3578063a0712d68146104b8576101f8565b806370a0823114610404578063743976a0146104245780637835c635146104395780638462151c1461044c576101f8565b80632e280e321161019057806342842e0e1161015f57806342842e0e1461036f5780634f6ccce71461038f57806355f804b3146103af5780636352211e146103cf5780636b8dc355146103ef576101f8565b80632e280e32146103105780632f745c591461032557806332cb6b0c146103455780633ccfd60b1461035a576101f8565b8063095ea7b3116101cc578063095ea7b3146102975780630c5a78d9146102b957806318160ddd146102ce57806323b872dd146102f0576101f8565b80628ca816146101fd57806301ffc9a71461022857806306fdde0314610248578063081812fc1461026a575b600080fd5b34801561020957600080fd5b506102126105d5565b60405161021f9190611f70565b60405180910390f35b34801561023457600080fd5b50610212610243366004611de7565b6105de565b34801561025457600080fd5b5061025d61060b565b60405161021f9190611f7b565b34801561027657600080fd5b5061028a610285366004611e65565b61069d565b60405161021f9190611edb565b3480156102a357600080fd5b506102b76102b2366004611dbe565b6106e9565b005b3480156102c557600080fd5b506102b7610781565b3480156102da57600080fd5b506102e36107d4565b60405161021f9190612621565b3480156102fc57600080fd5b506102b761030b366004611cd0565b6107da565b34801561031c57600080fd5b50610212610812565b34801561033157600080fd5b506102e3610340366004611dbe565b610820565b34801561035157600080fd5b506102e3610872565b34801561036657600080fd5b506102b7610878565b34801561037b57600080fd5b506102b761038a366004611cd0565b61093d565b34801561039b57600080fd5b506102e36103aa366004611e65565b610958565b3480156103bb57600080fd5b506102b76103ca366004611e1f565b6109b3565b3480156103db57600080fd5b5061028a6103ea366004611e65565b610a09565b3480156103fb57600080fd5b506102e3610a3e565b34801561041057600080fd5b506102e361041f366004611c84565b610a44565b34801561043057600080fd5b5061025d610a88565b6102b7610447366004611e65565b610b16565b34801561045857600080fd5b5061046c610467366004611c84565b610c9c565b60405161021f9190611f2c565b34801561048557600080fd5b506102b7610d5a565b34801561049a57600080fd5b5061028a610db6565b3480156104af57600080fd5b5061025d610dc5565b6102b76104c6366004611e65565b610dd4565b3480156104d757600080fd5b506102b76104e6366004611d84565b610eb1565b3480156104f757600080fd5b506102e3610506366004611c84565b610f7f565b34801561051757600080fd5b506102e3610f91565b34801561052c57600080fd5b506102b7610f97565b34801561054157600080fd5b506102b7610550366004611d0b565b610fed565b34801561056157600080fd5b5061025d610570366004611e65565b61102c565b34801561058157600080fd5b506102b7610590366004611e65565b6110af565b3480156105a157600080fd5b506102126105b0366004611c9e565b611193565b3480156105c157600080fd5b506102b76105d0366004611c84565b6111c1565b60135460ff1681565b60006001600160e01b0319821663780e9d6360e01b148061060357506106038261122f565b90505b919050565b60606000805461061a906126b8565b80601f0160208091040260200160405190810160405280929190818152602001828054610646906126b8565b80156106935780601f1061066857610100808354040283529160200191610693565b820191906000526020600020905b81548152906001019060200180831161067657829003601f168201915b5050505050905090565b60006106a88261126f565b6106cd5760405162461bcd60e51b81526004016106c490612382565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006106f482610a09565b9050806001600160a01b0316836001600160a01b031614156107285760405162461bcd60e51b81526004016106c49061249b565b806001600160a01b031661073a61128c565b6001600160a01b031614806107565750610756816105b061128c565b6107725760405162461bcd60e51b81526004016106c49061225d565b61077c8383611290565b505050565b61078961128c565b6001600160a01b031661079a610db6565b6001600160a01b0316146107c05760405162461bcd60e51b81526004016106c4906123ce565b6013805460ff19811660ff90911615179055565b60095490565b6107eb6107e561128c565b826112fe565b6108075760405162461bcd60e51b81526004016106c4906124dc565b61077c838383611383565b601354610100900460ff1681565b600061082b83610a44565b82106108495760405162461bcd60e51b81526004016106c490612008565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b600e5481565b61088061128c565b6001600160a01b0316610891610db6565b6001600160a01b0316146108b75760405162461bcd60e51b81526004016106c4906123ce565b60006108c1610db6565b6001600160a01b0316476040516108d790611ed8565b60006040518083038185875af1925050503d8060008114610914576040519150601f19603f3d011682016040523d82523d6000602084013e610919565b606091505b505090508061093a5760405162461bcd60e51b81526004016106c4906125b0565b50565b61077c83838360405180602001604052806000815250610fed565b60006109626107d4565b82106109805760405162461bcd60e51b81526004016106c49061252d565b600982815481106109a157634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6109bb61128c565b6001600160a01b03166109cc610db6565b6001600160a01b0316146109f25760405162461bcd60e51b81526004016106c4906123ce565b8051610a05906006906020840190611b64565b5050565b6000818152600260205260408120546001600160a01b0316806106035760405162461bcd60e51b81526004016106c490612304565b600c5481565b60006001600160a01b038216610a6c5760405162461bcd60e51b81526004016106c4906122ba565b506001600160a01b031660009081526003602052604090205490565b60068054610a95906126b8565b80601f0160208091040260200160405190810160405280929190818152602001828054610ac1906126b8565b8015610b0e5780601f10610ae357610100808354040283529160200191610b0e565b820191906000526020600020905b815481529060010190602001808311610af157829003601f168201915b505050505081565b601354610100900460ff1615610b3e5760405162461bcd60e51b81526004016106c490611f8e565b600c54610b5382610b4d6107d4565b906114b0565b1115610b715760405162461bcd60e51b81526004016106c490611fb6565b601054811115610b935760405162461bcd60e51b81526004016106c4906121e8565b6011543490610ba290836114bc565b1115610bc05760405162461bcd60e51b81526004016106c490611fde565b600f54610bf38260156000610bd361128c565b6001600160a01b03168152602081019190915260400160002054906114b0565b1115610c115760405162461bcd60e51b81526004016106c490612579565b60005b81811015610c5757610c2f610c2761128c565b6014546114c8565b60148054906000610c3f836126f3565b91905055508080610c4f906126f3565b915050610c14565b508060156000610c6561128c565b6001600160a01b03166001600160a01b031681526020019081526020016000206000828254610c94919061262a565b909155505050565b60606000610ca983610a44565b905060008167ffffffffffffffff811115610cd457634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610cfd578160200160208202803683370190505b50905060005b82811015610d5257610d158582610820565b828281518110610d3557634e487b7160e01b600052603260045260246000fd5b602090810291909101015280610d4a816126f3565b915050610d03565b509392505050565b610d6261128c565b6001600160a01b0316610d73610db6565b6001600160a01b031614610d995760405162461bcd60e51b81526004016106c4906123ce565b6013805461ff001981166101009182900460ff1615909102179055565b600b546001600160a01b031690565b60606001805461061a906126b8565b60135460ff1615610df75760405162461bcd60e51b81526004016106c4906121c3565b600e54610e0682610b4d6107d4565b1115610e245760405162461bcd60e51b81526004016106c4906125fd565b601054811115610e465760405162461bcd60e51b81526004016106c4906121e8565b6012543490610e5590836114bc565b1115610e735760405162461bcd60e51b81526004016106c490611fde565b60005b81811015610a0557610e89610c2761128c565b60148054906000610e99836126f3565b91905055508080610ea9906126f3565b915050610e76565b610eb961128c565b6001600160a01b0316826001600160a01b03161415610eea5760405162461bcd60e51b81526004016106c49061218c565b8060056000610ef761128c565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610f3b61128c565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610f739190611f70565b60405180910390a35050565b60156020526000908152604090205481565b600d5481565b610f9f61128c565b6001600160a01b0316610fb0610db6565b6001600160a01b031614610fd65760405162461bcd60e51b81526004016106c4906123ce565b6013805460ff1961ff001990911661010017169055565b610ffe610ff861128c565b836112fe565b61101a5760405162461bcd60e51b81526004016106c4906124dc565b611026848484846114e2565b50505050565b60606110378261126f565b6110535760405162461bcd60e51b81526004016106c49061244c565b600061105d611515565b9050600081511161107d57604051806020016040528060008152506110a8565b8061108784611524565b604051602001611098929190611ea9565b6040516020818303038152906040525b9392505050565b6110b761128c565b6001600160a01b03166110c8610db6565b6001600160a01b0316146110ee5760405162461bcd60e51b81526004016106c4906123ce565b600d548111156111105760405162461bcd60e51b81526004016106c4906125d5565b600e5461111f82610b4d6107d4565b111561113d5760405162461bcd60e51b81526004016106c490612122565b80600d600082825461114f9190612675565b90915550600090505b81811015610a055761116b610c2761128c565b6014805490600061117b836126f3565b9190505550808061118b906126f3565b915050611158565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6111c961128c565b6001600160a01b03166111da610db6565b6001600160a01b0316146112005760405162461bcd60e51b81526004016106c4906123ce565b6001600160a01b0381166112265760405162461bcd60e51b81526004016106c4906120a5565b61093a8161163f565b60006001600160e01b031982166380ac58cd60e01b148061126057506001600160e01b03198216635b5e139f60e01b145b80610603575061060382611691565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906112c582610a09565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006113098261126f565b6113255760405162461bcd60e51b81526004016106c490612211565b600061133083610a09565b9050806001600160a01b0316846001600160a01b0316148061136b5750836001600160a01b03166113608461069d565b6001600160a01b0316145b8061137b575061137b8185611193565b949350505050565b826001600160a01b031661139682610a09565b6001600160a01b0316146113bc5760405162461bcd60e51b81526004016106c490612403565b6001600160a01b0382166113e25760405162461bcd60e51b81526004016106c490612148565b6113ed8383836116aa565b6113f8600082611290565b6001600160a01b0383166000908152600360205260408120805460019290611421908490612675565b90915550506001600160a01b038216600090815260036020526040812080546001929061144f90849061262a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006110a8828461262a565b60006110a88284612656565b610a05828260405180602001604052806000815250611733565b6114ed848484611383565b6114f984848484611766565b6110265760405162461bcd60e51b81526004016106c490612053565b60606006805461061a906126b8565b60608161154957506040805180820190915260018152600360fc1b6020820152610606565b8160005b8115611573578061155d816126f3565b915061156c9050600a83612642565b915061154d565b60008167ffffffffffffffff81111561159c57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156115c6576020820181803683370190505b5090505b841561137b576115db600183612675565b91506115e8600a8661270e565b6115f390603061262a565b60f81b81838151811061161657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611638600a86612642565b94506115ca565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160e01b031981166301ffc9a760e01b14919050565b6116b583838361077c565b6001600160a01b0383166116d1576116cc81611881565b6116f4565b816001600160a01b0316836001600160a01b0316146116f4576116f483826118c5565b6001600160a01b0382166117105761170b81611962565b61077c565b826001600160a01b0316826001600160a01b03161461077c5761077c8282611a3b565b61173d8383611a7f565b61174a6000848484611766565b61077c5760405162461bcd60e51b81526004016106c490612053565b600061177a846001600160a01b0316611b5e565b1561187657836001600160a01b031663150b7a0261179661128c565b8786866040518563ffffffff1660e01b81526004016117b89493929190611eef565b602060405180830381600087803b1580156117d257600080fd5b505af1925050508015611802575060408051601f3d908101601f191682019092526117ff91810190611e03565b60015b61185c573d808015611830576040519150601f19603f3d011682016040523d82523d6000602084013e611835565b606091505b5080516118545760405162461bcd60e51b81526004016106c490612053565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061137b565b506001949350505050565b600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b600060016118d284610a44565b6118dc9190612675565b60008381526008602052604090205490915080821461192f576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b60095460009061197490600190612675565b6000838152600a6020526040812054600980549394509092849081106119aa57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080600983815481106119d957634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480611a1f57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000611a4683610a44565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b6001600160a01b038216611aa55760405162461bcd60e51b81526004016106c49061234d565b611aae8161126f565b15611acb5760405162461bcd60e51b81526004016106c4906120eb565b611ad7600083836116aa565b6001600160a01b0382166000908152600360205260408120805460019290611b0090849061262a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b3b151590565b828054611b70906126b8565b90600052602060002090601f016020900481019282611b925760008555611bd8565b82601f10611bab57805160ff1916838001178555611bd8565b82800160010185558215611bd8579182015b82811115611bd8578251825591602001919060010190611bbd565b50611be4929150611be8565b5090565b5b80821115611be45760008155600101611be9565b600067ffffffffffffffff80841115611c1857611c1861274e565b604051601f8501601f191681016020018281118282101715611c3c57611c3c61274e565b604052848152915081838501861015611c5457600080fd5b8484602083013760006020868301015250509392505050565b80356001600160a01b038116811461060657600080fd5b600060208284031215611c95578081fd5b6110a882611c6d565b60008060408385031215611cb0578081fd5b611cb983611c6d565b9150611cc760208401611c6d565b90509250929050565b600080600060608486031215611ce4578081fd5b611ced84611c6d565b9250611cfb60208501611c6d565b9150604084013590509250925092565b60008060008060808587031215611d20578081fd5b611d2985611c6d565b9350611d3760208601611c6d565b925060408501359150606085013567ffffffffffffffff811115611d59578182fd5b8501601f81018713611d69578182fd5b611d7887823560208401611bfd565b91505092959194509250565b60008060408385031215611d96578182fd5b611d9f83611c6d565b915060208301358015158114611db3578182fd5b809150509250929050565b60008060408385031215611dd0578182fd5b611dd983611c6d565b946020939093013593505050565b600060208284031215611df8578081fd5b81356110a881612764565b600060208284031215611e14578081fd5b81516110a881612764565b600060208284031215611e30578081fd5b813567ffffffffffffffff811115611e46578182fd5b8201601f81018413611e56578182fd5b61137b84823560208401611bfd565b600060208284031215611e76578081fd5b5035919050565b60008151808452611e9581602086016020860161268c565b601f01601f19169290920160200192915050565b60008351611ebb81846020880161268c565b835190830190611ecf81836020880161268c565b01949350505050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611f2290830184611e7d565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015611f6457835183529284019291840191600101611f48565b50909695505050505050565b901515815260200190565b6000602082526110a86020830184611e7d565b6020808252600e908201526d14149154d0531157d0d313d4d15160921b604082015260600190565b6020808252600e908201526d50524553414c455f535550504c5960901b604082015260600190565b60208082526010908201526f2727aa2fa2a727aaa3a42fa2aa2422a960811b604082015260600190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b6020808252600c908201526b544f54414c5f535550504c5960a01b604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252600b908201526a14d0531157d0d313d4d15160aa1b604082015260600190565b6020808252600f908201526e09a82b0be9a929ca8bea08aa4bea8b608b1b604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b6020808252601c908201527f4d41585f50524553414c455f4d494e545f5045525f4144445245535300000000604082015260600190565b6020808252600b908201526a11905253115117d4d1539160aa1b604082015260600190565b6020808252600e908201526d524553455256455f535550504c5960901b604082015260600190565b6020808252600a90820152694d41585f535550504c5960b01b604082015260600190565b90815260200190565b6000821982111561263d5761263d612722565b500190565b60008261265157612651612738565b500490565b600081600019048311821515161561267057612670612722565b500290565b60008282101561268757612687612722565b500390565b60005b838110156126a757818101518382015260200161268f565b838111156110265750506000910152565b6002810460018216806126cc57607f821691505b602082108114156126ed57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561270757612707612722565b5060010190565b60008261271d5761271d612738565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461093a57600080fdfea26469706673582212205ce87c6854ad44178f4ba1a65ab9197d13cf07358fafc669b703e9a2f7227e4364736f6c634300080000330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002a68747470733a2f2f6e6f6e6f726f6e66742e6865726f6b756170702e636f6d2f6170692f746f6b656e2f00000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106101f85760003560e01c806370a082311161010d578063a22cb465116100a0578063b88d4fde1161006f578063b88d4fde14610535578063c87b56dd14610555578063d031370b14610575578063e985e9c514610595578063f2fde38b146105b5576101f8565b8063a22cb465146104cb578063a4fe0ecc146104eb578063aa66797b1461050b578063b66a0e5d14610520576101f8565b80638b78e8f7116100dc5780638b78e8f7146104795780638da5cb5b1461048e57806395d89b41146104a3578063a0712d68146104b8576101f8565b806370a0823114610404578063743976a0146104245780637835c635146104395780638462151c1461044c576101f8565b80632e280e321161019057806342842e0e1161015f57806342842e0e1461036f5780634f6ccce71461038f57806355f804b3146103af5780636352211e146103cf5780636b8dc355146103ef576101f8565b80632e280e32146103105780632f745c591461032557806332cb6b0c146103455780633ccfd60b1461035a576101f8565b8063095ea7b3116101cc578063095ea7b3146102975780630c5a78d9146102b957806318160ddd146102ce57806323b872dd146102f0576101f8565b80628ca816146101fd57806301ffc9a71461022857806306fdde0314610248578063081812fc1461026a575b600080fd5b34801561020957600080fd5b506102126105d5565b60405161021f9190611f70565b60405180910390f35b34801561023457600080fd5b50610212610243366004611de7565b6105de565b34801561025457600080fd5b5061025d61060b565b60405161021f9190611f7b565b34801561027657600080fd5b5061028a610285366004611e65565b61069d565b60405161021f9190611edb565b3480156102a357600080fd5b506102b76102b2366004611dbe565b6106e9565b005b3480156102c557600080fd5b506102b7610781565b3480156102da57600080fd5b506102e36107d4565b60405161021f9190612621565b3480156102fc57600080fd5b506102b761030b366004611cd0565b6107da565b34801561031c57600080fd5b50610212610812565b34801561033157600080fd5b506102e3610340366004611dbe565b610820565b34801561035157600080fd5b506102e3610872565b34801561036657600080fd5b506102b7610878565b34801561037b57600080fd5b506102b761038a366004611cd0565b61093d565b34801561039b57600080fd5b506102e36103aa366004611e65565b610958565b3480156103bb57600080fd5b506102b76103ca366004611e1f565b6109b3565b3480156103db57600080fd5b5061028a6103ea366004611e65565b610a09565b3480156103fb57600080fd5b506102e3610a3e565b34801561041057600080fd5b506102e361041f366004611c84565b610a44565b34801561043057600080fd5b5061025d610a88565b6102b7610447366004611e65565b610b16565b34801561045857600080fd5b5061046c610467366004611c84565b610c9c565b60405161021f9190611f2c565b34801561048557600080fd5b506102b7610d5a565b34801561049a57600080fd5b5061028a610db6565b3480156104af57600080fd5b5061025d610dc5565b6102b76104c6366004611e65565b610dd4565b3480156104d757600080fd5b506102b76104e6366004611d84565b610eb1565b3480156104f757600080fd5b506102e3610506366004611c84565b610f7f565b34801561051757600080fd5b506102e3610f91565b34801561052c57600080fd5b506102b7610f97565b34801561054157600080fd5b506102b7610550366004611d0b565b610fed565b34801561056157600080fd5b5061025d610570366004611e65565b61102c565b34801561058157600080fd5b506102b7610590366004611e65565b6110af565b3480156105a157600080fd5b506102126105b0366004611c9e565b611193565b3480156105c157600080fd5b506102b76105d0366004611c84565b6111c1565b60135460ff1681565b60006001600160e01b0319821663780e9d6360e01b148061060357506106038261122f565b90505b919050565b60606000805461061a906126b8565b80601f0160208091040260200160405190810160405280929190818152602001828054610646906126b8565b80156106935780601f1061066857610100808354040283529160200191610693565b820191906000526020600020905b81548152906001019060200180831161067657829003601f168201915b5050505050905090565b60006106a88261126f565b6106cd5760405162461bcd60e51b81526004016106c490612382565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006106f482610a09565b9050806001600160a01b0316836001600160a01b031614156107285760405162461bcd60e51b81526004016106c49061249b565b806001600160a01b031661073a61128c565b6001600160a01b031614806107565750610756816105b061128c565b6107725760405162461bcd60e51b81526004016106c49061225d565b61077c8383611290565b505050565b61078961128c565b6001600160a01b031661079a610db6565b6001600160a01b0316146107c05760405162461bcd60e51b81526004016106c4906123ce565b6013805460ff19811660ff90911615179055565b60095490565b6107eb6107e561128c565b826112fe565b6108075760405162461bcd60e51b81526004016106c4906124dc565b61077c838383611383565b601354610100900460ff1681565b600061082b83610a44565b82106108495760405162461bcd60e51b81526004016106c490612008565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b600e5481565b61088061128c565b6001600160a01b0316610891610db6565b6001600160a01b0316146108b75760405162461bcd60e51b81526004016106c4906123ce565b60006108c1610db6565b6001600160a01b0316476040516108d790611ed8565b60006040518083038185875af1925050503d8060008114610914576040519150601f19603f3d011682016040523d82523d6000602084013e610919565b606091505b505090508061093a5760405162461bcd60e51b81526004016106c4906125b0565b50565b61077c83838360405180602001604052806000815250610fed565b60006109626107d4565b82106109805760405162461bcd60e51b81526004016106c49061252d565b600982815481106109a157634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6109bb61128c565b6001600160a01b03166109cc610db6565b6001600160a01b0316146109f25760405162461bcd60e51b81526004016106c4906123ce565b8051610a05906006906020840190611b64565b5050565b6000818152600260205260408120546001600160a01b0316806106035760405162461bcd60e51b81526004016106c490612304565b600c5481565b60006001600160a01b038216610a6c5760405162461bcd60e51b81526004016106c4906122ba565b506001600160a01b031660009081526003602052604090205490565b60068054610a95906126b8565b80601f0160208091040260200160405190810160405280929190818152602001828054610ac1906126b8565b8015610b0e5780601f10610ae357610100808354040283529160200191610b0e565b820191906000526020600020905b815481529060010190602001808311610af157829003601f168201915b505050505081565b601354610100900460ff1615610b3e5760405162461bcd60e51b81526004016106c490611f8e565b600c54610b5382610b4d6107d4565b906114b0565b1115610b715760405162461bcd60e51b81526004016106c490611fb6565b601054811115610b935760405162461bcd60e51b81526004016106c4906121e8565b6011543490610ba290836114bc565b1115610bc05760405162461bcd60e51b81526004016106c490611fde565b600f54610bf38260156000610bd361128c565b6001600160a01b03168152602081019190915260400160002054906114b0565b1115610c115760405162461bcd60e51b81526004016106c490612579565b60005b81811015610c5757610c2f610c2761128c565b6014546114c8565b60148054906000610c3f836126f3565b91905055508080610c4f906126f3565b915050610c14565b508060156000610c6561128c565b6001600160a01b03166001600160a01b031681526020019081526020016000206000828254610c94919061262a565b909155505050565b60606000610ca983610a44565b905060008167ffffffffffffffff811115610cd457634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610cfd578160200160208202803683370190505b50905060005b82811015610d5257610d158582610820565b828281518110610d3557634e487b7160e01b600052603260045260246000fd5b602090810291909101015280610d4a816126f3565b915050610d03565b509392505050565b610d6261128c565b6001600160a01b0316610d73610db6565b6001600160a01b031614610d995760405162461bcd60e51b81526004016106c4906123ce565b6013805461ff001981166101009182900460ff1615909102179055565b600b546001600160a01b031690565b60606001805461061a906126b8565b60135460ff1615610df75760405162461bcd60e51b81526004016106c4906121c3565b600e54610e0682610b4d6107d4565b1115610e245760405162461bcd60e51b81526004016106c4906125fd565b601054811115610e465760405162461bcd60e51b81526004016106c4906121e8565b6012543490610e5590836114bc565b1115610e735760405162461bcd60e51b81526004016106c490611fde565b60005b81811015610a0557610e89610c2761128c565b60148054906000610e99836126f3565b91905055508080610ea9906126f3565b915050610e76565b610eb961128c565b6001600160a01b0316826001600160a01b03161415610eea5760405162461bcd60e51b81526004016106c49061218c565b8060056000610ef761128c565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610f3b61128c565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610f739190611f70565b60405180910390a35050565b60156020526000908152604090205481565b600d5481565b610f9f61128c565b6001600160a01b0316610fb0610db6565b6001600160a01b031614610fd65760405162461bcd60e51b81526004016106c4906123ce565b6013805460ff1961ff001990911661010017169055565b610ffe610ff861128c565b836112fe565b61101a5760405162461bcd60e51b81526004016106c4906124dc565b611026848484846114e2565b50505050565b60606110378261126f565b6110535760405162461bcd60e51b81526004016106c49061244c565b600061105d611515565b9050600081511161107d57604051806020016040528060008152506110a8565b8061108784611524565b604051602001611098929190611ea9565b6040516020818303038152906040525b9392505050565b6110b761128c565b6001600160a01b03166110c8610db6565b6001600160a01b0316146110ee5760405162461bcd60e51b81526004016106c4906123ce565b600d548111156111105760405162461bcd60e51b81526004016106c4906125d5565b600e5461111f82610b4d6107d4565b111561113d5760405162461bcd60e51b81526004016106c490612122565b80600d600082825461114f9190612675565b90915550600090505b81811015610a055761116b610c2761128c565b6014805490600061117b836126f3565b9190505550808061118b906126f3565b915050611158565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6111c961128c565b6001600160a01b03166111da610db6565b6001600160a01b0316146112005760405162461bcd60e51b81526004016106c4906123ce565b6001600160a01b0381166112265760405162461bcd60e51b81526004016106c4906120a5565b61093a8161163f565b60006001600160e01b031982166380ac58cd60e01b148061126057506001600160e01b03198216635b5e139f60e01b145b80610603575061060382611691565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906112c582610a09565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006113098261126f565b6113255760405162461bcd60e51b81526004016106c490612211565b600061133083610a09565b9050806001600160a01b0316846001600160a01b0316148061136b5750836001600160a01b03166113608461069d565b6001600160a01b0316145b8061137b575061137b8185611193565b949350505050565b826001600160a01b031661139682610a09565b6001600160a01b0316146113bc5760405162461bcd60e51b81526004016106c490612403565b6001600160a01b0382166113e25760405162461bcd60e51b81526004016106c490612148565b6113ed8383836116aa565b6113f8600082611290565b6001600160a01b0383166000908152600360205260408120805460019290611421908490612675565b90915550506001600160a01b038216600090815260036020526040812080546001929061144f90849061262a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006110a8828461262a565b60006110a88284612656565b610a05828260405180602001604052806000815250611733565b6114ed848484611383565b6114f984848484611766565b6110265760405162461bcd60e51b81526004016106c490612053565b60606006805461061a906126b8565b60608161154957506040805180820190915260018152600360fc1b6020820152610606565b8160005b8115611573578061155d816126f3565b915061156c9050600a83612642565b915061154d565b60008167ffffffffffffffff81111561159c57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156115c6576020820181803683370190505b5090505b841561137b576115db600183612675565b91506115e8600a8661270e565b6115f390603061262a565b60f81b81838151811061161657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611638600a86612642565b94506115ca565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160e01b031981166301ffc9a760e01b14919050565b6116b583838361077c565b6001600160a01b0383166116d1576116cc81611881565b6116f4565b816001600160a01b0316836001600160a01b0316146116f4576116f483826118c5565b6001600160a01b0382166117105761170b81611962565b61077c565b826001600160a01b0316826001600160a01b03161461077c5761077c8282611a3b565b61173d8383611a7f565b61174a6000848484611766565b61077c5760405162461bcd60e51b81526004016106c490612053565b600061177a846001600160a01b0316611b5e565b1561187657836001600160a01b031663150b7a0261179661128c565b8786866040518563ffffffff1660e01b81526004016117b89493929190611eef565b602060405180830381600087803b1580156117d257600080fd5b505af1925050508015611802575060408051601f3d908101601f191682019092526117ff91810190611e03565b60015b61185c573d808015611830576040519150601f19603f3d011682016040523d82523d6000602084013e611835565b606091505b5080516118545760405162461bcd60e51b81526004016106c490612053565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061137b565b506001949350505050565b600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b600060016118d284610a44565b6118dc9190612675565b60008381526008602052604090205490915080821461192f576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b60095460009061197490600190612675565b6000838152600a6020526040812054600980549394509092849081106119aa57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080600983815481106119d957634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480611a1f57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000611a4683610a44565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b6001600160a01b038216611aa55760405162461bcd60e51b81526004016106c49061234d565b611aae8161126f565b15611acb5760405162461bcd60e51b81526004016106c4906120eb565b611ad7600083836116aa565b6001600160a01b0382166000908152600360205260408120805460019290611b0090849061262a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b3b151590565b828054611b70906126b8565b90600052602060002090601f016020900481019282611b925760008555611bd8565b82601f10611bab57805160ff1916838001178555611bd8565b82800160010185558215611bd8579182015b82811115611bd8578251825591602001919060010190611bbd565b50611be4929150611be8565b5090565b5b80821115611be45760008155600101611be9565b600067ffffffffffffffff80841115611c1857611c1861274e565b604051601f8501601f191681016020018281118282101715611c3c57611c3c61274e565b604052848152915081838501861015611c5457600080fd5b8484602083013760006020868301015250509392505050565b80356001600160a01b038116811461060657600080fd5b600060208284031215611c95578081fd5b6110a882611c6d565b60008060408385031215611cb0578081fd5b611cb983611c6d565b9150611cc760208401611c6d565b90509250929050565b600080600060608486031215611ce4578081fd5b611ced84611c6d565b9250611cfb60208501611c6d565b9150604084013590509250925092565b60008060008060808587031215611d20578081fd5b611d2985611c6d565b9350611d3760208601611c6d565b925060408501359150606085013567ffffffffffffffff811115611d59578182fd5b8501601f81018713611d69578182fd5b611d7887823560208401611bfd565b91505092959194509250565b60008060408385031215611d96578182fd5b611d9f83611c6d565b915060208301358015158114611db3578182fd5b809150509250929050565b60008060408385031215611dd0578182fd5b611dd983611c6d565b946020939093013593505050565b600060208284031215611df8578081fd5b81356110a881612764565b600060208284031215611e14578081fd5b81516110a881612764565b600060208284031215611e30578081fd5b813567ffffffffffffffff811115611e46578182fd5b8201601f81018413611e56578182fd5b61137b84823560208401611bfd565b600060208284031215611e76578081fd5b5035919050565b60008151808452611e9581602086016020860161268c565b601f01601f19169290920160200192915050565b60008351611ebb81846020880161268c565b835190830190611ecf81836020880161268c565b01949350505050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611f2290830184611e7d565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015611f6457835183529284019291840191600101611f48565b50909695505050505050565b901515815260200190565b6000602082526110a86020830184611e7d565b6020808252600e908201526d14149154d0531157d0d313d4d15160921b604082015260600190565b6020808252600e908201526d50524553414c455f535550504c5960901b604082015260600190565b60208082526010908201526f2727aa2fa2a727aaa3a42fa2aa2422a960811b604082015260600190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b6020808252600c908201526b544f54414c5f535550504c5960a01b604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252600b908201526a14d0531157d0d313d4d15160aa1b604082015260600190565b6020808252600f908201526e09a82b0be9a929ca8bea08aa4bea8b608b1b604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b6020808252601c908201527f4d41585f50524553414c455f4d494e545f5045525f4144445245535300000000604082015260600190565b6020808252600b908201526a11905253115117d4d1539160aa1b604082015260600190565b6020808252600e908201526d524553455256455f535550504c5960901b604082015260600190565b6020808252600a90820152694d41585f535550504c5960b01b604082015260600190565b90815260200190565b6000821982111561263d5761263d612722565b500190565b60008261265157612651612738565b500490565b600081600019048311821515161561267057612670612722565b500290565b60008282101561268757612687612722565b500390565b60005b838110156126a757818101518382015260200161268f565b838111156110265750506000910152565b6002810460018216806126cc57607f821691505b602082108114156126ed57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561270757612707612722565b5060010190565b60008261271d5761271d612738565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461093a57600080fdfea26469706673582212205ce87c6854ad44178f4ba1a65ab9197d13cf07358fafc669b703e9a2f7227e4364736f6c63430008000033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002a68747470733a2f2f6e6f6e6f726f6e66742e6865726f6b756170702e636f6d2f6170692f746f6b656e2f00000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : baseURI (string): https://nonoronft.herokuapp.com/api/token/
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 000000000000000000000000000000000000000000000000000000000000002a
Arg [2] : 68747470733a2f2f6e6f6e6f726f6e66742e6865726f6b756170702e636f6d2f
Arg [3] : 6170692f746f6b656e2f00000000000000000000000000000000000000000000
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.