ERC-721
Overview
Max Total Supply
5,000 AZG
Holders
521
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
5 AZGLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Azugirl
Compiler Version
v0.8.10+commit.fc410830
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.10; import "Strings.sol"; import "ERC721Enum.sol"; contract Azugirl is ERC721Enum { using Strings for uint256; uint256 public constant SUPPLY = 5000; uint256 public constant MAX_MINT_PER_TX = 20; uint256 public freeSupply = 555; uint256 public price = 0.02 ether; address private constant addressOne = 0xCBbAd148Dcd6017875ca193401e2E600478842AA ; address private constant addressTwo = 0xEA4206f47EF6B52038DAAFf8b8D4015F982e28f9 ; bool public pauseMint = true; string public baseURI; string internal baseExtension = ".json"; address public immutable owner; constructor() ERC721P("Azugirl", "AZG") { owner = msg.sender; } modifier mintOpen() { require(!pauseMint, "mint paused"); _; } modifier onlyOwner() { _onlyOwner(); _; } /** INTERNAL */ function _onlyOwner() private view { require(msg.sender == owner, "onlyOwner"); } function _baseURI() internal view virtual returns (string memory) { return baseURI; } /** Mint NFT */ function mint(uint16 amountPurchase) external payable mintOpen { uint256 currentSupply = totalSupply(); require( amountPurchase <= MAX_MINT_PER_TX, "Max20perTX" ); require( currentSupply + amountPurchase <= SUPPLY, "soldout" ); if(currentSupply > freeSupply) { require(msg.value >= price * amountPurchase, "not enougth eth"); } for (uint8 i; i < amountPurchase; i++) { _safeMint(msg.sender, currentSupply + i); } } /** Get tokenURI */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent meow"); string memory currentBaseURI = _baseURI(); return ( bytes(currentBaseURI).length > 0 ? string( abi.encodePacked(currentBaseURI, tokenId.toString(), baseExtension) ) : "" ); } /** ADMIN SetPauseMint*/ function setPauseMint(bool _setPauseMint) external onlyOwner { pauseMint = _setPauseMint; } /** ADMIN SetBaseURI*/ function setBaseURI(string memory _newBaseURI) external onlyOwner { baseURI = _newBaseURI; } /** ADMIN SetFreeSupply*/ function setFreeSupply(uint256 _freeSupply) external onlyOwner { freeSupply = _freeSupply; } /** ADMIN SetPrice*/ function setPrice(uint256 _price) external onlyOwner { price = _price; } /** ADMIN withdraw*/ function withdrawAll() external onlyOwner { uint256 balance = address(this).balance; require(balance > 0, "No money"); _withdraw(addressOne, (balance * 32) / 100); _withdraw(addressTwo, (balance * 64) / 100); _withdraw(msg.sender, address(this).balance); } function _withdraw(address _address, uint256 _amount) private { (bool success, ) = _address.call{ value: _amount }(""); require(success, "Transfer failed"); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.10; import "ERC721P.sol"; import "IERC721Enumerable.sol"; abstract contract ERC721Enum is ERC721P, IERC721Enumerable { function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721P) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256 tokenId) { require(index < ERC721P.balanceOf(owner), "ERC721Enum: owner ioob"); uint256 count; for (uint256 i; i < _owners.length; ++i) { if (owner == _owners[i]) { if (count == index) return i; else ++count; } } require(false, "ERC721Enum: owner ioob"); } function tokensOfOwner(address owner) public view returns (uint256[] memory) { require(0 < ERC721P.balanceOf(owner), "ERC721Enum: owner ioob"); uint256 tokenCount = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenCount); for (uint256 i = 0; i < tokenCount; i++) { tokenIds[i] = tokenOfOwnerByIndex(owner, i); } return tokenIds; } function totalSupply() public view virtual override returns (uint256) { return _owners.length; } function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enum.totalSupply(), "ERC721Enum: global ioob"); return index; } }
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.10; import "IERC721.sol"; import "IERC721Receiver.sol"; import "IERC721Metadata.sol"; import "Address.sol"; import "Context.sol"; import "ERC165.sol"; abstract contract ERC721P is Context, ERC165, IERC721, IERC721Metadata { using Address for address; string private _name; string private _symbol; address[] internal _owners; mapping(uint256 => address) private _tokenApprovals; mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); uint256 count = 0; uint256 length = _owners.length; for (uint256 i = 0; i < length; ++i) { if (owner == _owners[i]) { ++count; } } delete length; return count; } 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; } function name() public view virtual override returns (string memory) { return _name; } function symbol() public view virtual override returns (string memory) { return _symbol; } function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721P.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); } function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } 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); } function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } 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); } function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } 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); } 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" ); } function _exists(uint256 tokenId) internal view virtual returns (bool) { return tokenId < _owners.length && _owners[tokenId] != address(0); } function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721P.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } 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" ); } 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); _owners.push(to); emit Transfer(address(0), to, tokenId); } function _burn(uint256 tokenId) internal virtual { address owner = ERC721P.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _owners[tokenId] = address(0); emit Transfer(owner, address(0), tokenId); } function _transfer( address from, address to, uint256 tokenId ) internal virtual { require( ERC721P.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); _owners[tokenId] = to; emit Transfer(from, to, tokenId); } function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721P.ownerOf(tokenId), to, tokenId); } function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 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); }
{ "evmVersion": "istanbul", "optimizer": { "enabled": true, "runs": 200 }, "libraries": { "Azugirl.sol": {} }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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_MINT_PER_TX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeSupply","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":[{"internalType":"uint16","name":"amountPurchase","type":"uint16"}],"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":[],"name":"pauseMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","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":"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":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_freeSupply","type":"uint256"}],"name":"setFreeSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_setPauseMint","type":"bool"}],"name":"setPauseMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","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":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
61022b600590815566470de4df8200006006556007805460ff1916600117905560e060405260a081905264173539b7b760d91b60c0908152620000469160099190620000c2565b503480156200005457600080fd5b506040805180820182526007815266105e9d59da5c9b60ca1b602080830191825283518085019094526003845262415a4760e81b9084015281519192916200009f91600091620000c2565b508051620000b5906001906020840190620000c2565b50503360805250620001a5565b828054620000d09062000168565b90600052602060002090601f016020900481019282620000f457600085556200013f565b82601f106200010f57805160ff19168380011785556200013f565b828001600101855582156200013f579182015b828111156200013f57825182559160200191906001019062000122565b506200014d92915062000151565b5090565b5b808211156200014d576000815560010162000152565b600181811c908216806200017d57607f821691505b602082108114156200019f57634e487b7160e01b600052602260045260246000fd5b50919050565b608051611fd1620001c86000396000818161041401526113ce0152611fd16000f3fe6080604052600436106101cd5760003560e01c80638462151c116100f7578063a22cb46511610095578063cd85cdb511610064578063cd85cdb51461050c578063e985e9c514610526578063f59e26d01461056f578063f676308a1461058f57600080fd5b8063a22cb46514610496578063b88d4fde146104b6578063c50497ae146104d6578063c87b56dd146104ec57600080fd5b80638ecad721116100d15780638ecad7211461043657806391b7f5ed1461044b57806395d89b411461046b578063a035b1fe1461048057600080fd5b80638462151c146103c0578063853828b6146103ed5780638da5cb5b1461040257600080fd5b806324a6ab0c1161016f57806355f804b31161013e57806355f804b31461034b5780636352211e1461036b5780636c0360eb1461038b57806370a08231146103a057600080fd5b806324a6ab0c146102d55780632f745c59146102eb57806342842e0e1461030b5780634f6ccce71461032b57600080fd5b8063095ea7b3116101ab578063095ea7b31461026157806318160ddd1461028357806323b872dd146102a257806323cf0a22146102c257600080fd5b806301ffc9a7146101d257806306fdde0314610207578063081812fc14610229575b600080fd5b3480156101de57600080fd5b506101f26101ed3660046118fd565b6105af565b60405190151581526020015b60405180910390f35b34801561021357600080fd5b5061021c6105da565b6040516101fe9190611972565b34801561023557600080fd5b50610249610244366004611985565b61066c565b6040516001600160a01b0390911681526020016101fe565b34801561026d57600080fd5b5061028161027c3660046119ba565b6106f9565b005b34801561028f57600080fd5b506002545b6040519081526020016101fe565b3480156102ae57600080fd5b506102816102bd3660046119e4565b61080f565b6102816102d0366004611a20565b610840565b3480156102e157600080fd5b5061029460055481565b3480156102f757600080fd5b506102946103063660046119ba565b6109b0565b34801561031757600080fd5b506102816103263660046119e4565b610a5f565b34801561033757600080fd5b50610294610346366004611985565b610a7a565b34801561035757600080fd5b50610281610366366004611ad0565b610ad7565b34801561037757600080fd5b50610249610386366004611985565b610af6565b34801561039757600080fd5b5061021c610b82565b3480156103ac57600080fd5b506102946103bb366004611b19565b610c10565b3480156103cc57600080fd5b506103e06103db366004611b19565b610ce2565b6040516101fe9190611b34565b3480156103f957600080fd5b50610281610dac565b34801561040e57600080fd5b506102497f000000000000000000000000000000000000000000000000000000000000000081565b34801561044257600080fd5b50610294601481565b34801561045757600080fd5b50610281610466366004611985565b610e53565b34801561047757600080fd5b5061021c610e60565b34801561048c57600080fd5b5061029460065481565b3480156104a257600080fd5b506102816104b1366004611b88565b610e6f565b3480156104c257600080fd5b506102816104d1366004611bbb565b610f34565b3480156104e257600080fd5b5061029461138881565b3480156104f857600080fd5b5061021c610507366004611985565b610f6c565b34801561051857600080fd5b506007546101f29060ff1681565b34801561053257600080fd5b506101f2610541366004611c37565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b34801561057b57600080fd5b5061028161058a366004611c61565b611039565b34801561059b57600080fd5b506102816105aa366004611985565b611054565b60006001600160e01b0319821663780e9d6360e01b14806105d457506105d482611061565b92915050565b6060600080546105e990611c7c565b80601f016020809104026020016040519081016040528092919081815260200182805461061590611c7c565b80156106625780601f1061063757610100808354040283529160200191610662565b820191906000526020600020905b81548152906001019060200180831161064557829003601f168201915b5050505050905090565b6000610677826110b1565b6106dd5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b600061070482610af6565b9050806001600160a01b0316836001600160a01b031614156107725760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016106d4565b336001600160a01b038216148061078e575061078e8133610541565b6108005760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016106d4565b61080a83836110fb565b505050565b6108193382611169565b6108355760405162461bcd60e51b81526004016106d490611cb7565b61080a838383611253565b60075460ff16156108815760405162461bcd60e51b815260206004820152600b60248201526a1b5a5b9d081c185d5cd95960aa1b60448201526064016106d4565b600061088c60025490565b905060148261ffff1611156108d05760405162461bcd60e51b815260206004820152600a60248201526909ac2f06460e0cae4a8b60b31b60448201526064016106d4565b6113886108e161ffff841683611d1e565b11156109195760405162461bcd60e51b81526020600482015260076024820152661cdbdb191bdd5d60ca1b60448201526064016106d4565b600554811115610976578161ffff166006546109359190611d36565b3410156109765760405162461bcd60e51b815260206004820152600f60248201526e0dcdee840cadcdeeacee8d040cae8d608b1b60448201526064016106d4565b60005b8261ffff168160ff16101561080a5761099e3361099960ff841685611d1e565b6113a9565b806109a881611d55565b915050610979565b60006109bb83610c10565b82106109d95760405162461bcd60e51b81526004016106d490611d75565b6000805b600254811015610a4657600281815481106109fa576109fa611da5565b6000918252602090912001546001600160a01b0386811691161415610a365783821415610a2a5791506105d49050565b610a3382611dbb565b91505b610a3f81611dbb565b90506109dd565b5060405162461bcd60e51b81526004016106d490611d75565b61080a83838360405180602001604052806000815250610f34565b6000610a8560025490565b8210610ad35760405162461bcd60e51b815260206004820152601760248201527f455243373231456e756d3a20676c6f62616c20696f6f6200000000000000000060448201526064016106d4565b5090565b610adf6113c3565b8051610af2906008906020840190611857565b5050565b60008060028381548110610b0c57610b0c611da5565b6000918252602090912001546001600160a01b03169050806105d45760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016106d4565b60088054610b8f90611c7c565b80601f0160208091040260200160405190810160405280929190818152602001828054610bbb90611c7c565b8015610c085780601f10610bdd57610100808354040283529160200191610c08565b820191906000526020600020905b815481529060010190602001808311610beb57829003601f168201915b505050505081565b60006001600160a01b038216610c7b5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016106d4565b600254600090815b81811015610cd95760028181548110610c9e57610c9e611da5565b6000918252602090912001546001600160a01b0386811691161415610cc957610cc683611dbb565b92505b610cd281611dbb565b9050610c83565b50909392505050565b6060610ced82610c10565b600010610d0c5760405162461bcd60e51b81526004016106d490611d75565b6000610d1783610c10565b905060008167ffffffffffffffff811115610d3457610d34611a44565b604051908082528060200260200182016040528015610d5d578160200160208202803683370190505b50905060005b82811015610da457610d7585826109b0565b828281518110610d8757610d87611da5565b602090810291909101015280610d9c81611dbb565b915050610d63565b509392505050565b610db46113c3565b4780610ded5760405162461bcd60e51b81526020600482015260086024820152674e6f206d6f6e657960c01b60448201526064016106d4565b610e2173cbbad148dcd6017875ca193401e2e600478842aa6064610e12846020611d36565b610e1c9190611dec565b611429565b610e4673ea4206f47ef6b52038daaff8b8d4015f982e28f96064610e12846040611d36565b610e503347611429565b50565b610e5b6113c3565b600655565b6060600180546105e990611c7c565b6001600160a01b038216331415610ec85760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016106d4565b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610f3e3383611169565b610f5a5760405162461bcd60e51b81526004016106d490611cb7565b610f66848484846114be565b50505050565b6060610f77826110b1565b610fda5760405162461bcd60e51b815260206004820152602e60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526d6e6578697374656e74206d656f7760901b60648201526084016106d4565b6000610fe46114f1565b905060008151116110045760405180602001604052806000815250611032565b8061100e84611500565b600960405160200161102293929190611e00565b6040516020818303038152906040525b9392505050565b6110416113c3565b6007805460ff1916911515919091179055565b61105c6113c3565b600555565b60006001600160e01b031982166380ac58cd60e01b148061109257506001600160e01b03198216635b5e139f60e01b145b806105d457506301ffc9a760e01b6001600160e01b03198316146105d4565b600254600090821080156105d4575060006001600160a01b0316600283815481106110de576110de611da5565b6000918252602090912001546001600160a01b0316141592915050565b600081815260036020526040902080546001600160a01b0319166001600160a01b038416908117909155819061113082610af6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611174826110b1565b6111d55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016106d4565b60006111e083610af6565b9050806001600160a01b0316846001600160a01b0316148061121b5750836001600160a01b03166112108461066c565b6001600160a01b0316145b8061124b57506001600160a01b0380821660009081526004602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661126682610af6565b6001600160a01b0316146112ce5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016106d4565b6001600160a01b0382166113305760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016106d4565b61133b6000826110fb565b816002828154811061134f5761134f611da5565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b610af28282604051806020016040528060008152506115fe565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146114275760405162461bcd60e51b815260206004820152600960248201526837b7363ca7bbb732b960b91b60448201526064016106d4565b565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611476576040519150601f19603f3d011682016040523d82523d6000602084013e61147b565b606091505b505090508061080a5760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b60448201526064016106d4565b6114c9848484611253565b6114d584848484611631565b610f665760405162461bcd60e51b81526004016106d490611ec4565b6060600880546105e990611c7c565b6060816115245750506040805180820190915260018152600360fc1b602082015290565b8160005b811561154e578061153881611dbb565b91506115479050600a83611dec565b9150611528565b60008167ffffffffffffffff81111561156957611569611a44565b6040519080825280601f01601f191660200182016040528015611593576020820181803683370190505b5090505b841561124b576115a8600183611f16565b91506115b5600a86611f2d565b6115c0906030611d1e565b60f81b8183815181106115d5576115d5611da5565b60200101906001600160f81b031916908160001a9053506115f7600a86611dec565b9450611597565b611608838361172f565b6116156000848484611631565b61080a5760405162461bcd60e51b81526004016106d490611ec4565b60006001600160a01b0384163b1561172457604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611675903390899088908890600401611f41565b6020604051808303816000875af19250505080156116b0575060408051601f3d908101601f191682019092526116ad91810190611f7e565b60015b61170a573d8080156116de576040519150601f19603f3d011682016040523d82523d6000602084013e6116e3565b606091505b5080516117025760405162461bcd60e51b81526004016106d490611ec4565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061124b565b506001949350505050565b6001600160a01b0382166117855760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016106d4565b61178e816110b1565b156117db5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016106d4565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461186390611c7c565b90600052602060002090601f01602090048101928261188557600085556118cb565b82601f1061189e57805160ff19168380011785556118cb565b828001600101855582156118cb579182015b828111156118cb5782518255916020019190600101906118b0565b50610ad39291505b80821115610ad357600081556001016118d3565b6001600160e01b031981168114610e5057600080fd5b60006020828403121561190f57600080fd5b8135611032816118e7565b60005b8381101561193557818101518382015260200161191d565b83811115610f665750506000910152565b6000815180845261195e81602086016020860161191a565b601f01601f19169290920160200192915050565b6020815260006110326020830184611946565b60006020828403121561199757600080fd5b5035919050565b80356001600160a01b03811681146119b557600080fd5b919050565b600080604083850312156119cd57600080fd5b6119d68361199e565b946020939093013593505050565b6000806000606084860312156119f957600080fd5b611a028461199e565b9250611a106020850161199e565b9150604084013590509250925092565b600060208284031215611a3257600080fd5b813561ffff8116811461103257600080fd5b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611a7557611a75611a44565b604051601f8501601f19908116603f01168101908282118183101715611a9d57611a9d611a44565b81604052809350858152868686011115611ab657600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611ae257600080fd5b813567ffffffffffffffff811115611af957600080fd5b8201601f81018413611b0a57600080fd5b61124b84823560208401611a5a565b600060208284031215611b2b57600080fd5b6110328261199e565b6020808252825182820181905260009190848201906040850190845b81811015611b6c57835183529284019291840191600101611b50565b50909695505050505050565b803580151581146119b557600080fd5b60008060408385031215611b9b57600080fd5b611ba48361199e565b9150611bb260208401611b78565b90509250929050565b60008060008060808587031215611bd157600080fd5b611bda8561199e565b9350611be86020860161199e565b925060408501359150606085013567ffffffffffffffff811115611c0b57600080fd5b8501601f81018713611c1c57600080fd5b611c2b87823560208401611a5a565b91505092959194509250565b60008060408385031215611c4a57600080fd5b611c538361199e565b9150611bb26020840161199e565b600060208284031215611c7357600080fd5b61103282611b78565b600181811c90821680611c9057607f821691505b60208210811415611cb157634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60008219821115611d3157611d31611d08565b500190565b6000816000190483118215151615611d5057611d50611d08565b500290565b600060ff821660ff811415611d6c57611d6c611d08565b60010192915050565b60208082526016908201527522a9219b9918a2b73ab69d1037bbb732b91034b7b7b160511b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000600019821415611dcf57611dcf611d08565b5060010190565b634e487b7160e01b600052601260045260246000fd5b600082611dfb57611dfb611dd6565b500490565b600084516020611e138285838a0161191a565b855191840191611e268184848a0161191a565b8554920191600090600181811c9080831680611e4357607f831692505b858310811415611e6157634e487b7160e01b85526022600452602485fd5b808015611e755760018114611e8657611eb3565b60ff19851688528388019550611eb3565b60008b81526020902060005b85811015611eab5781548a820152908401908801611e92565b505083880195505b50939b9a5050505050505050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082821015611f2857611f28611d08565b500390565b600082611f3c57611f3c611dd6565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611f7490830184611946565b9695505050505050565b600060208284031215611f9057600080fd5b8151611032816118e756fea26469706673582212202576c687a81f7c4c937ad5f7540cf7033f1593b8945e2e30d199ced309c0796164736f6c634300080a0033
Deployed Bytecode
0x6080604052600436106101cd5760003560e01c80638462151c116100f7578063a22cb46511610095578063cd85cdb511610064578063cd85cdb51461050c578063e985e9c514610526578063f59e26d01461056f578063f676308a1461058f57600080fd5b8063a22cb46514610496578063b88d4fde146104b6578063c50497ae146104d6578063c87b56dd146104ec57600080fd5b80638ecad721116100d15780638ecad7211461043657806391b7f5ed1461044b57806395d89b411461046b578063a035b1fe1461048057600080fd5b80638462151c146103c0578063853828b6146103ed5780638da5cb5b1461040257600080fd5b806324a6ab0c1161016f57806355f804b31161013e57806355f804b31461034b5780636352211e1461036b5780636c0360eb1461038b57806370a08231146103a057600080fd5b806324a6ab0c146102d55780632f745c59146102eb57806342842e0e1461030b5780634f6ccce71461032b57600080fd5b8063095ea7b3116101ab578063095ea7b31461026157806318160ddd1461028357806323b872dd146102a257806323cf0a22146102c257600080fd5b806301ffc9a7146101d257806306fdde0314610207578063081812fc14610229575b600080fd5b3480156101de57600080fd5b506101f26101ed3660046118fd565b6105af565b60405190151581526020015b60405180910390f35b34801561021357600080fd5b5061021c6105da565b6040516101fe9190611972565b34801561023557600080fd5b50610249610244366004611985565b61066c565b6040516001600160a01b0390911681526020016101fe565b34801561026d57600080fd5b5061028161027c3660046119ba565b6106f9565b005b34801561028f57600080fd5b506002545b6040519081526020016101fe565b3480156102ae57600080fd5b506102816102bd3660046119e4565b61080f565b6102816102d0366004611a20565b610840565b3480156102e157600080fd5b5061029460055481565b3480156102f757600080fd5b506102946103063660046119ba565b6109b0565b34801561031757600080fd5b506102816103263660046119e4565b610a5f565b34801561033757600080fd5b50610294610346366004611985565b610a7a565b34801561035757600080fd5b50610281610366366004611ad0565b610ad7565b34801561037757600080fd5b50610249610386366004611985565b610af6565b34801561039757600080fd5b5061021c610b82565b3480156103ac57600080fd5b506102946103bb366004611b19565b610c10565b3480156103cc57600080fd5b506103e06103db366004611b19565b610ce2565b6040516101fe9190611b34565b3480156103f957600080fd5b50610281610dac565b34801561040e57600080fd5b506102497f0000000000000000000000007dc01189a3027da2d38d55ab7df9195913ad133481565b34801561044257600080fd5b50610294601481565b34801561045757600080fd5b50610281610466366004611985565b610e53565b34801561047757600080fd5b5061021c610e60565b34801561048c57600080fd5b5061029460065481565b3480156104a257600080fd5b506102816104b1366004611b88565b610e6f565b3480156104c257600080fd5b506102816104d1366004611bbb565b610f34565b3480156104e257600080fd5b5061029461138881565b3480156104f857600080fd5b5061021c610507366004611985565b610f6c565b34801561051857600080fd5b506007546101f29060ff1681565b34801561053257600080fd5b506101f2610541366004611c37565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b34801561057b57600080fd5b5061028161058a366004611c61565b611039565b34801561059b57600080fd5b506102816105aa366004611985565b611054565b60006001600160e01b0319821663780e9d6360e01b14806105d457506105d482611061565b92915050565b6060600080546105e990611c7c565b80601f016020809104026020016040519081016040528092919081815260200182805461061590611c7c565b80156106625780601f1061063757610100808354040283529160200191610662565b820191906000526020600020905b81548152906001019060200180831161064557829003601f168201915b5050505050905090565b6000610677826110b1565b6106dd5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b600061070482610af6565b9050806001600160a01b0316836001600160a01b031614156107725760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016106d4565b336001600160a01b038216148061078e575061078e8133610541565b6108005760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016106d4565b61080a83836110fb565b505050565b6108193382611169565b6108355760405162461bcd60e51b81526004016106d490611cb7565b61080a838383611253565b60075460ff16156108815760405162461bcd60e51b815260206004820152600b60248201526a1b5a5b9d081c185d5cd95960aa1b60448201526064016106d4565b600061088c60025490565b905060148261ffff1611156108d05760405162461bcd60e51b815260206004820152600a60248201526909ac2f06460e0cae4a8b60b31b60448201526064016106d4565b6113886108e161ffff841683611d1e565b11156109195760405162461bcd60e51b81526020600482015260076024820152661cdbdb191bdd5d60ca1b60448201526064016106d4565b600554811115610976578161ffff166006546109359190611d36565b3410156109765760405162461bcd60e51b815260206004820152600f60248201526e0dcdee840cadcdeeacee8d040cae8d608b1b60448201526064016106d4565b60005b8261ffff168160ff16101561080a5761099e3361099960ff841685611d1e565b6113a9565b806109a881611d55565b915050610979565b60006109bb83610c10565b82106109d95760405162461bcd60e51b81526004016106d490611d75565b6000805b600254811015610a4657600281815481106109fa576109fa611da5565b6000918252602090912001546001600160a01b0386811691161415610a365783821415610a2a5791506105d49050565b610a3382611dbb565b91505b610a3f81611dbb565b90506109dd565b5060405162461bcd60e51b81526004016106d490611d75565b61080a83838360405180602001604052806000815250610f34565b6000610a8560025490565b8210610ad35760405162461bcd60e51b815260206004820152601760248201527f455243373231456e756d3a20676c6f62616c20696f6f6200000000000000000060448201526064016106d4565b5090565b610adf6113c3565b8051610af2906008906020840190611857565b5050565b60008060028381548110610b0c57610b0c611da5565b6000918252602090912001546001600160a01b03169050806105d45760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016106d4565b60088054610b8f90611c7c565b80601f0160208091040260200160405190810160405280929190818152602001828054610bbb90611c7c565b8015610c085780601f10610bdd57610100808354040283529160200191610c08565b820191906000526020600020905b815481529060010190602001808311610beb57829003601f168201915b505050505081565b60006001600160a01b038216610c7b5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016106d4565b600254600090815b81811015610cd95760028181548110610c9e57610c9e611da5565b6000918252602090912001546001600160a01b0386811691161415610cc957610cc683611dbb565b92505b610cd281611dbb565b9050610c83565b50909392505050565b6060610ced82610c10565b600010610d0c5760405162461bcd60e51b81526004016106d490611d75565b6000610d1783610c10565b905060008167ffffffffffffffff811115610d3457610d34611a44565b604051908082528060200260200182016040528015610d5d578160200160208202803683370190505b50905060005b82811015610da457610d7585826109b0565b828281518110610d8757610d87611da5565b602090810291909101015280610d9c81611dbb565b915050610d63565b509392505050565b610db46113c3565b4780610ded5760405162461bcd60e51b81526020600482015260086024820152674e6f206d6f6e657960c01b60448201526064016106d4565b610e2173cbbad148dcd6017875ca193401e2e600478842aa6064610e12846020611d36565b610e1c9190611dec565b611429565b610e4673ea4206f47ef6b52038daaff8b8d4015f982e28f96064610e12846040611d36565b610e503347611429565b50565b610e5b6113c3565b600655565b6060600180546105e990611c7c565b6001600160a01b038216331415610ec85760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016106d4565b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610f3e3383611169565b610f5a5760405162461bcd60e51b81526004016106d490611cb7565b610f66848484846114be565b50505050565b6060610f77826110b1565b610fda5760405162461bcd60e51b815260206004820152602e60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526d6e6578697374656e74206d656f7760901b60648201526084016106d4565b6000610fe46114f1565b905060008151116110045760405180602001604052806000815250611032565b8061100e84611500565b600960405160200161102293929190611e00565b6040516020818303038152906040525b9392505050565b6110416113c3565b6007805460ff1916911515919091179055565b61105c6113c3565b600555565b60006001600160e01b031982166380ac58cd60e01b148061109257506001600160e01b03198216635b5e139f60e01b145b806105d457506301ffc9a760e01b6001600160e01b03198316146105d4565b600254600090821080156105d4575060006001600160a01b0316600283815481106110de576110de611da5565b6000918252602090912001546001600160a01b0316141592915050565b600081815260036020526040902080546001600160a01b0319166001600160a01b038416908117909155819061113082610af6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611174826110b1565b6111d55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016106d4565b60006111e083610af6565b9050806001600160a01b0316846001600160a01b0316148061121b5750836001600160a01b03166112108461066c565b6001600160a01b0316145b8061124b57506001600160a01b0380821660009081526004602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661126682610af6565b6001600160a01b0316146112ce5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016106d4565b6001600160a01b0382166113305760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016106d4565b61133b6000826110fb565b816002828154811061134f5761134f611da5565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b610af28282604051806020016040528060008152506115fe565b336001600160a01b037f0000000000000000000000007dc01189a3027da2d38d55ab7df9195913ad133416146114275760405162461bcd60e51b815260206004820152600960248201526837b7363ca7bbb732b960b91b60448201526064016106d4565b565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611476576040519150601f19603f3d011682016040523d82523d6000602084013e61147b565b606091505b505090508061080a5760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b60448201526064016106d4565b6114c9848484611253565b6114d584848484611631565b610f665760405162461bcd60e51b81526004016106d490611ec4565b6060600880546105e990611c7c565b6060816115245750506040805180820190915260018152600360fc1b602082015290565b8160005b811561154e578061153881611dbb565b91506115479050600a83611dec565b9150611528565b60008167ffffffffffffffff81111561156957611569611a44565b6040519080825280601f01601f191660200182016040528015611593576020820181803683370190505b5090505b841561124b576115a8600183611f16565b91506115b5600a86611f2d565b6115c0906030611d1e565b60f81b8183815181106115d5576115d5611da5565b60200101906001600160f81b031916908160001a9053506115f7600a86611dec565b9450611597565b611608838361172f565b6116156000848484611631565b61080a5760405162461bcd60e51b81526004016106d490611ec4565b60006001600160a01b0384163b1561172457604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611675903390899088908890600401611f41565b6020604051808303816000875af19250505080156116b0575060408051601f3d908101601f191682019092526116ad91810190611f7e565b60015b61170a573d8080156116de576040519150601f19603f3d011682016040523d82523d6000602084013e6116e3565b606091505b5080516117025760405162461bcd60e51b81526004016106d490611ec4565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061124b565b506001949350505050565b6001600160a01b0382166117855760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016106d4565b61178e816110b1565b156117db5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016106d4565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461186390611c7c565b90600052602060002090601f01602090048101928261188557600085556118cb565b82601f1061189e57805160ff19168380011785556118cb565b828001600101855582156118cb579182015b828111156118cb5782518255916020019190600101906118b0565b50610ad39291505b80821115610ad357600081556001016118d3565b6001600160e01b031981168114610e5057600080fd5b60006020828403121561190f57600080fd5b8135611032816118e7565b60005b8381101561193557818101518382015260200161191d565b83811115610f665750506000910152565b6000815180845261195e81602086016020860161191a565b601f01601f19169290920160200192915050565b6020815260006110326020830184611946565b60006020828403121561199757600080fd5b5035919050565b80356001600160a01b03811681146119b557600080fd5b919050565b600080604083850312156119cd57600080fd5b6119d68361199e565b946020939093013593505050565b6000806000606084860312156119f957600080fd5b611a028461199e565b9250611a106020850161199e565b9150604084013590509250925092565b600060208284031215611a3257600080fd5b813561ffff8116811461103257600080fd5b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611a7557611a75611a44565b604051601f8501601f19908116603f01168101908282118183101715611a9d57611a9d611a44565b81604052809350858152868686011115611ab657600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611ae257600080fd5b813567ffffffffffffffff811115611af957600080fd5b8201601f81018413611b0a57600080fd5b61124b84823560208401611a5a565b600060208284031215611b2b57600080fd5b6110328261199e565b6020808252825182820181905260009190848201906040850190845b81811015611b6c57835183529284019291840191600101611b50565b50909695505050505050565b803580151581146119b557600080fd5b60008060408385031215611b9b57600080fd5b611ba48361199e565b9150611bb260208401611b78565b90509250929050565b60008060008060808587031215611bd157600080fd5b611bda8561199e565b9350611be86020860161199e565b925060408501359150606085013567ffffffffffffffff811115611c0b57600080fd5b8501601f81018713611c1c57600080fd5b611c2b87823560208401611a5a565b91505092959194509250565b60008060408385031215611c4a57600080fd5b611c538361199e565b9150611bb26020840161199e565b600060208284031215611c7357600080fd5b61103282611b78565b600181811c90821680611c9057607f821691505b60208210811415611cb157634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60008219821115611d3157611d31611d08565b500190565b6000816000190483118215151615611d5057611d50611d08565b500290565b600060ff821660ff811415611d6c57611d6c611d08565b60010192915050565b60208082526016908201527522a9219b9918a2b73ab69d1037bbb732b91034b7b7b160511b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000600019821415611dcf57611dcf611d08565b5060010190565b634e487b7160e01b600052601260045260246000fd5b600082611dfb57611dfb611dd6565b500490565b600084516020611e138285838a0161191a565b855191840191611e268184848a0161191a565b8554920191600090600181811c9080831680611e4357607f831692505b858310811415611e6157634e487b7160e01b85526022600452602485fd5b808015611e755760018114611e8657611eb3565b60ff19851688528388019550611eb3565b60008b81526020902060005b85811015611eab5781548a820152908401908801611e92565b505083880195505b50939b9a5050505050505050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082821015611f2857611f28611d08565b500390565b600082611f3c57611f3c611dd6565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611f7490830184611946565b9695505050505050565b600060208284031215611f9057600080fd5b8151611032816118e756fea26469706673582212202576c687a81f7c4c937ad5f7540cf7033f1593b8945e2e30d199ced309c0796164736f6c634300080a0033
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.