ERC-721
Overview
Max Total Supply
297 POOLY2
Holders
248
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 POOLY2Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
PoolyNFT
Compiler Version
v0.8.13+commit.abaa5c0e
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0 pragma solidity 0.8.13; import { ERC721, ERC721Royalty } from "@openzeppelin/contracts/token/ERC721/extensions/ERC721Royalty.sol"; import { Ownable } from "@pooltogether/owner-manager-contracts/contracts/Ownable.sol"; /** * @title PoolTogether Inc. Pooly NFT * @notice NFT to help PoolTogether Inc. raise funds that will be used to cover cost of the legal fees. */ contract PoolyNFT is ERC721Royalty, Ownable { /** * @notice Emitted when the NFT is initialized. * @param name Name of the NFT collection * @param symbol Symbol of the NFT collection * @param nftPrice NFT price in ETH * @param maxNFT Max number of NFTs available in this collection * @param maxMint Max number of NFTs that can be minted in a single transaction * @param startTimestamp Timestamp at which the NFT sale starts * @param endTimestamp Timestamp at which the NFT sale ends * @param owner Address of the contract owner */ event NFTInitialized( string name, string symbol, uint128 nftPrice, uint32 maxNFT, uint32 maxMint, uint32 startTimestamp, uint32 endTimestamp, address owner ); /** * @notice Emitted when one or more NFTs are minted. * @param to Address who received the minted NFTs * @param numberOfTokens Number of NFTs minted * @param amount Amount of ETH received */ event NFTMinted(address indexed to, uint256 numberOfTokens, uint256 amount); /** * @notice Emitted when royalty fee has been set. * @param owner Address of the caller. Owner of this contract. * @param recipient Address to whom the royalty fee will be paid * @param fee Fee expressed in basis points */ event RoyaltyFeeSet(address indexed owner, address indexed recipient, uint96 fee); /** * @notice Emitted when ETH are withdrawn from the contract. * @param owner Address of the caller and recipient. Owner of this contract. * @param amount Amount of ETH withdrawn */ event Withdrawn(address indexed owner, uint256 amount); /* ============ Variables ============ */ /// @notice NFT price in ETH uint128 public immutable nftPrice; /// @notice Max number of NFTs available in this collection uint32 public immutable maxNFT; /// @notice Max number of NFTs that can be minted in a single transaction uint32 public immutable maxMint; /// @notice Timestamp at which the NFTs will be available for minting uint32 public immutable startTimestamp; /// @notice Timestamp at which the NFTs will be unavailable for minting uint32 public immutable endTimestamp; /// @notice Total supply of NFTs uint256 public totalSupply; /// @notice NFT tokens base URI string public baseURI; /* ============ Constructor ============ */ /** * @notice Initializes the NFT contract * @param _name NFT collection name * @param _symbol NFT collection symbol * @param _nftPrice NFT price in ETH * @param _maxNFT Max number of NFTs available in this collection * @param _maxMint Max number of NFTs that can be minted in a single transaction * @param _startTimestamp Timestamp at which the NFT sale will start * @param _endTimestamp Timestamp at which the NFT sale will end * @param _owner Owner of this contract */ constructor( string memory _name, string memory _symbol, uint128 _nftPrice, uint32 _maxNFT, uint32 _maxMint, uint32 _startTimestamp, uint32 _endTimestamp, address _owner ) ERC721(_name, _symbol) Ownable(_owner) { require(_owner != address(0), "PTNFT/owner-not-zero-address"); require(_nftPrice > 0, "PTNFT/price-gt-zero"); require(_maxNFT > 0, "PTNFT/max-nft-gt-zero"); require(_maxMint > 0, "PTNFT/max-mint-gt-zero"); require(_startTimestamp > block.timestamp, "PTNFT/startTimestamp-gt-block"); require(_endTimestamp > _startTimestamp, "PTNFT/endTimestamp-gt-start"); nftPrice = _nftPrice; maxNFT = _maxNFT; maxMint = _maxMint; startTimestamp = _startTimestamp; endTimestamp = _endTimestamp; emit NFTInitialized( _name, _symbol, _nftPrice, _maxNFT, _maxMint, _startTimestamp, _endTimestamp, _owner ); } /* ============ External Functions ============ */ /** * @notice Mints a new number of NFTs. * @param _numberOfTokens Number of NFTs to mint */ function mintNFT(uint256 _numberOfTokens) external payable { uint256 _currentTimestamp = block.timestamp; require( _currentTimestamp >= startTimestamp && _currentTimestamp < endTimestamp, "PTNFT/sale-inactive" ); uint256 _totalSupply = totalSupply; require(_totalSupply + _numberOfTokens <= maxNFT, "PTNFT/nfts-sold-out"); require(_numberOfTokens <= maxMint, "PTNFT/exceeds-max-mint"); uint256 _amount = _numberOfTokens * nftPrice; require(_amount == msg.value, "PTNFT/insufficient-funds"); for (uint256 index; index < _numberOfTokens; index++) { uint256 _mintIndex = _totalSupply + index; if (_mintIndex < maxNFT) { _safeMint(msg.sender, _mintIndex); } } totalSupply = _totalSupply + _numberOfTokens; emit NFTMinted(msg.sender, _numberOfTokens, _amount); } /** * @notice Set NFT tokens base URI * @dev This function is only callable by the owner of the contract. * @param baseURI_ NFT tokens base URI */ function setBaseURI(string memory baseURI_) external onlyOwner { baseURI = baseURI_; } /** * @notice Sets the royalty fee that all ids in this contract will default to. * @dev Fees are expressed in basis points. For example: 1000 = 10% * @param _recipient Address to whom the royalty fee will be paid * @param _fee Percentage of the secondary sales that will be paid to the `_recipient` */ function setRoyaltyFee(address _recipient, uint96 _fee) external onlyOwner { _setDefaultRoyalty(_recipient, _fee); emit RoyaltyFeeSet(msg.sender, _recipient, _fee); } /** * @notice Withdraw ETH from the contract. * @dev This function is only callable by the owner of the contract. * @param _amount Amount of ETH to withdraw */ function withdraw(uint256 _amount) external onlyOwner { require(_amount > 0, "PTNFT/withdraw-amount-gt-zero"); (bool _success, ) = msg.sender.call{ value: _amount }(""); require(_success, "PTNFT/failed-to-withdraw-eth"); emit Withdrawn(msg.sender, _amount); } /* ============ Internal Functions ============ */ /** * @notice Set NFT base URI. * @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 overridden in child contracts. * @return NFT tokens base URI */ function _baseURI() internal view virtual override returns (string memory) { return baseURI; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_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 || isApprovedForAll(owner, spender) || getApproved(tokenId) == 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); _afterTokenTransfer(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); _afterTokenTransfer(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 from incorrect owner"); 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); _afterTokenTransfer(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 Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/ERC721Royalty.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../common/ERC2981.sol"; import "../../../utils/introspection/ERC165.sol"; /** * @dev Extension of ERC721 with the ERC2981 NFT Royalty Standard, a standardized way to retrieve royalty payment * information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC721Royalty is ERC2981, ERC721 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC2981) returns (bool) { return super.supportsInterface(interfaceId); } /** * @dev See {ERC721-_burn}. This override additionally clears the royalty information for the token. */ function _burn(uint256 tokenId) internal virtual override { super._burn(tokenId); _resetTokenRoyalty(tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `tokenId` must be already minted. * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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: GPL-3.0 pragma solidity ^0.8.0; /** * @title Abstract ownable contract that can be inherited by other contracts * @notice 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 is the deployer of the contract. * * The owner account is set through a two steps process. * 1. The current `owner` calls {transferOwnership} to set a `pendingOwner` * 2. The `pendingOwner` calls {acceptOwnership} to accept the ownership transfer * * The manager account needs to be set using {setManager}. * * 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 { address private _owner; address private _pendingOwner; /** * @dev Emitted when `_pendingOwner` has been changed. * @param pendingOwner new `_pendingOwner` address. */ event OwnershipOffered(address indexed pendingOwner); /** * @dev Emitted when `_owner` has been changed. * @param previousOwner previous `_owner` address. * @param newOwner new `_owner` address. */ event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /* ============ Deploy ============ */ /** * @notice Initializes the contract setting `_initialOwner` as the initial owner. * @param _initialOwner Initial owner of the contract. */ constructor(address _initialOwner) { _setOwner(_initialOwner); } /* ============ External Functions ============ */ /** * @notice Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @notice Gets current `_pendingOwner`. * @return Current `_pendingOwner` address. */ function pendingOwner() external view virtual returns (address) { return _pendingOwner; } /** * @notice Renounce ownership of the contract. * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() external virtual onlyOwner { _setOwner(address(0)); } /** * @notice Allows current owner to set the `_pendingOwner` address. * @param _newOwner Address to transfer ownership to. */ function transferOwnership(address _newOwner) external onlyOwner { require(_newOwner != address(0), "Ownable/pendingOwner-not-zero-address"); _pendingOwner = _newOwner; emit OwnershipOffered(_newOwner); } /** * @notice Allows the `_pendingOwner` address to finalize the transfer. * @dev This function is only callable by the `_pendingOwner`. */ function claimOwnership() external onlyPendingOwner { _setOwner(_pendingOwner); _pendingOwner = address(0); } /* ============ Internal Functions ============ */ /** * @notice Internal function to set the `_owner` of the contract. * @param _newOwner New `_owner` address. */ function _setOwner(address _newOwner) private { address _oldOwner = _owner; _owner = _newOwner; emit OwnershipTransferred(_oldOwner, _newOwner); } /* ============ Modifier Functions ============ */ /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == msg.sender, "Ownable/caller-not-owner"); _; } /** * @dev Throws if called by any account other than the `pendingOwner`. */ modifier onlyPendingOwner() { require(msg.sender == _pendingOwner, "Ownable/caller-not-pendingOwner"); _; } }
{ "evmVersion": "london", "libraries": {}, "metadata": { "bytecodeHash": "ipfs", "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 200 }, "remappings": [], "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint128","name":"_nftPrice","type":"uint128"},{"internalType":"uint32","name":"_maxNFT","type":"uint32"},{"internalType":"uint32","name":"_maxMint","type":"uint32"},{"internalType":"uint32","name":"_startTimestamp","type":"uint32"},{"internalType":"uint32","name":"_endTimestamp","type":"uint32"},{"internalType":"address","name":"_owner","type":"address"}],"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":false,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"string","name":"symbol","type":"string"},{"indexed":false,"internalType":"uint128","name":"nftPrice","type":"uint128"},{"indexed":false,"internalType":"uint32","name":"maxNFT","type":"uint32"},{"indexed":false,"internalType":"uint32","name":"maxMint","type":"uint32"},{"indexed":false,"internalType":"uint32","name":"startTimestamp","type":"uint32"},{"indexed":false,"internalType":"uint32","name":"endTimestamp","type":"uint32"},{"indexed":false,"internalType":"address","name":"owner","type":"address"}],"name":"NFTInitialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"NFTMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pendingOwner","type":"address"}],"name":"OwnershipOffered","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":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint96","name":"fee","type":"uint96"}],"name":"RoyaltyFeeSet","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"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":"claimOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endTimestamp","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"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":"maxMint","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxNFT","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numberOfTokens","type":"uint256"}],"name":"mintNFT","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftPrice","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"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":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint96","name":"_fee","type":"uint96"}],"name":"setRoyaltyFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTimestamp","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","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":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6101206040523480156200001257600080fd5b5060405162002a7638038062002a7683398101604081905262000035916200051a565b80888881600290805190602001906200005092919062000368565b5080516200006690600390602084019062000368565b5050506200007a816200031660201b60201c565b506001600160a01b038116620000d75760405162461bcd60e51b815260206004820152601c60248201527f50544e46542f6f776e65722d6e6f742d7a65726f2d616464726573730000000060448201526064015b60405180910390fd5b6000866001600160801b031611620001325760405162461bcd60e51b815260206004820152601360248201527f50544e46542f70726963652d67742d7a65726f000000000000000000000000006044820152606401620000ce565b60008563ffffffff16116200018a5760405162461bcd60e51b815260206004820152601560248201527f50544e46542f6d61782d6e66742d67742d7a65726f00000000000000000000006044820152606401620000ce565b60008463ffffffff1611620001e25760405162461bcd60e51b815260206004820152601660248201527f50544e46542f6d61782d6d696e742d67742d7a65726f000000000000000000006044820152606401620000ce565b428363ffffffff1611620002395760405162461bcd60e51b815260206004820152601d60248201527f50544e46542f737461727454696d657374616d702d67742d626c6f636b0000006044820152606401620000ce565b8263ffffffff168263ffffffff1611620002965760405162461bcd60e51b815260206004820152601b60248201527f50544e46542f656e6454696d657374616d702d67742d737461727400000000006044820152606401620000ce565b6001600160801b03861660805263ffffffff80861660a05284811660c05283811660e0528216610100526040517f18bfe8b393413297d3c2ed65bf49ce07aeae5ff77f1be859f7a6b2cb928927ce9062000300908a908a908a908a908a908a908a908a9062000631565b60405180910390a15050505050505050620006e8565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200037690620006ac565b90600052602060002090601f0160209004810192826200039a5760008555620003e5565b82601f10620003b557805160ff1916838001178555620003e5565b82800160010185558215620003e5579182015b82811115620003e5578251825591602001919060010190620003c8565b50620003f3929150620003f7565b5090565b5b80821115620003f35760008155600101620003f8565b634e487b7160e01b600052604160045260246000fd5b60005b838110156200044157818101518382015260200162000427565b8381111562000451576000848401525b50505050565b600082601f8301126200046957600080fd5b81516001600160401b03808211156200048657620004866200040e565b604051601f8301601f19908116603f01168101908282118183101715620004b157620004b16200040e565b81604052838152866020858801011115620004cb57600080fd5b620004de84602083016020890162000424565b9695505050505050565b805163ffffffff81168114620004fd57600080fd5b919050565b80516001600160a01b0381168114620004fd57600080fd5b600080600080600080600080610100898b0312156200053857600080fd5b88516001600160401b03808211156200055057600080fd5b6200055e8c838d0162000457565b995060208b01519150808211156200057557600080fd5b50620005848b828c0162000457565b60408b015190985090506001600160801b0381168114620005a457600080fd5b9550620005b460608a01620004e8565b9450620005c460808a01620004e8565b9350620005d460a08a01620004e8565b9250620005e460c08a01620004e8565b9150620005f460e08a0162000502565b90509295985092959890939650565b600081518084526200061d81602086016020860162000424565b601f01601f19169290920160200192915050565b6000610100808352620006478184018c62000603565b905082810360208401526200065d818b62000603565b6001600160801b03999099166040840152505063ffffffff9586166060820152938516608085015291841660a084015290921660c08201526001600160a01b0390911660e09091015292915050565b600181811c90821680620006c157607f821691505b602082108103620006e257634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e0516101005161231f62000757600039600081816105120152610e6d0152600081816105d80152610e410152600081816104630152610f510152600081816105a401528181610ee1015261105f0152600081816102950152610fcd015261231f6000f3fe6080604052600436106101cd5760003560e01c8063715018a6116100f7578063a85adeab11610095578063e456b01c11610064578063e456b01c14610592578063e6fd48bc146105c6578063e985e9c5146105fa578063f2fde38b1461064357600080fd5b8063a85adeab14610500578063b88d4fde14610534578063c87b56dd14610554578063e30c39781461057457600080fd5b80638da5cb5b116100d15780638da5cb5b1461049a57806392642744146104b857806395d89b41146104cb578063a22cb465146104e057600080fd5b8063715018a61461041c57806372cd1fa5146104315780637501f7411461045157600080fd5b80632a55205a1161016f57806355f804b31161013e57806355f804b3146103a75780636352211e146103c75780636c0360eb146103e757806370a08231146103fc57600080fd5b80632a55205a146103135780632e1a7d4d1461035257806342842e0e146103725780634e71e0c81461039257600080fd5b8063095ea7b3116101ab578063095ea7b3146102615780630d39fc811461028357806318160ddd146102cf57806323b872dd146102f357600080fd5b806301ffc9a7146101d257806306fdde0314610207578063081812fc14610229575b600080fd5b3480156101de57600080fd5b506101f26101ed366004611d23565b610663565b60405190151581526020015b60405180910390f35b34801561021357600080fd5b5061021c610674565b6040516101fe9190611d98565b34801561023557600080fd5b50610249610244366004611dab565b610706565b6040516001600160a01b0390911681526020016101fe565b34801561026d57600080fd5b5061028161027c366004611de0565b6107a0565b005b34801561028f57600080fd5b506102b77f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160801b0390911681526020016101fe565b3480156102db57600080fd5b506102e5600a5481565b6040519081526020016101fe565b3480156102ff57600080fd5b5061028161030e366004611e0a565b6108b5565b34801561031f57600080fd5b5061033361032e366004611e46565b6108e6565b604080516001600160a01b0390931683526020830191909152016101fe565b34801561035e57600080fd5b5061028161036d366004611dab565b610992565b34801561037e57600080fd5b5061028161038d366004611e0a565b610aec565b34801561039e57600080fd5b50610281610b07565b3480156103b357600080fd5b506102816103c2366004611ef4565b610b88565b3480156103d357600080fd5b506102496103e2366004611dab565b610bd8565b3480156103f357600080fd5b5061021c610c4f565b34801561040857600080fd5b506102e5610417366004611f3d565b610cdd565b34801561042857600080fd5b50610281610d64565b34801561043d57600080fd5b5061028161044c366004611f58565b610da9565b34801561045d57600080fd5b506104857f000000000000000000000000000000000000000000000000000000000000000081565b60405163ffffffff90911681526020016101fe565b3480156104a657600080fd5b506008546001600160a01b0316610249565b6102816104c6366004611dab565b610e39565b3480156104d757600080fd5b5061021c6110f7565b3480156104ec57600080fd5b506102816104fb366004611f9b565b611106565b34801561050c57600080fd5b506104857f000000000000000000000000000000000000000000000000000000000000000081565b34801561054057600080fd5b5061028161054f366004611fcc565b611111565b34801561056057600080fd5b5061021c61056f366004611dab565b611149565b34801561058057600080fd5b506009546001600160a01b0316610249565b34801561059e57600080fd5b506104857f000000000000000000000000000000000000000000000000000000000000000081565b3480156105d257600080fd5b506104857f000000000000000000000000000000000000000000000000000000000000000081565b34801561060657600080fd5b506101f2610615366004612048565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561064f57600080fd5b5061028161065e366004611f3d565b611224565b600061066e8261130b565b92915050565b6060600280546106839061207b565b80601f01602080910402602001604051908101604052809291908181526020018280546106af9061207b565b80156106fc5780601f106106d1576101008083540402835291602001916106fc565b820191906000526020600020905b8154815290600101906020018083116106df57829003601f168201915b5050505050905090565b6000818152600460205260408120546001600160a01b03166107845760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006107ab82610bd8565b9050806001600160a01b0316836001600160a01b0316036108185760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161077b565b336001600160a01b038216148061083457506108348133610615565b6108a65760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161077b565b6108b0838361134b565b505050565b6108bf33826113b9565b6108db5760405162461bcd60e51b815260040161077b906120b5565b6108b08383836114b0565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b031692820192909252829161095b5750604080518082019091526000546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101516000906127109061097a906001600160601b03168761211c565b6109849190612151565b915196919550909350505050565b336109a56008546001600160a01b031690565b6001600160a01b0316146109cb5760405162461bcd60e51b815260040161077b90612165565b60008111610a1b5760405162461bcd60e51b815260206004820152601d60248201527f50544e46542f77697468647261772d616d6f756e742d67742d7a65726f000000604482015260640161077b565b604051600090339083908381818185875af1925050503d8060008114610a5d576040519150601f19603f3d011682016040523d82523d6000602084013e610a62565b606091505b5050905080610ab35760405162461bcd60e51b815260206004820152601c60248201527f50544e46542f6661696c65642d746f2d77697468647261772d65746800000000604482015260640161077b565b60405182815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d59060200160405180910390a25050565b6108b083838360405180602001604052806000815250611111565b6009546001600160a01b03163314610b615760405162461bcd60e51b815260206004820152601f60248201527f4f776e61626c652f63616c6c65722d6e6f742d70656e64696e674f776e657200604482015260640161077b565b600954610b76906001600160a01b031661164c565b600980546001600160a01b0319169055565b33610b9b6008546001600160a01b031690565b6001600160a01b031614610bc15760405162461bcd60e51b815260040161077b90612165565b8051610bd490600b906020840190611c71565b5050565b6000818152600460205260408120546001600160a01b03168061066e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161077b565b600b8054610c5c9061207b565b80601f0160208091040260200160405190810160405280929190818152602001828054610c889061207b565b8015610cd55780601f10610caa57610100808354040283529160200191610cd5565b820191906000526020600020905b815481529060010190602001808311610cb857829003601f168201915b505050505081565b60006001600160a01b038216610d485760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161077b565b506001600160a01b031660009081526005602052604090205490565b33610d776008546001600160a01b031690565b6001600160a01b031614610d9d5760405162461bcd60e51b815260040161077b90612165565b610da7600061164c565b565b33610dbc6008546001600160a01b031690565b6001600160a01b031614610de25760405162461bcd60e51b815260040161077b90612165565b610dec828261169e565b6040516001600160601b03821681526001600160a01b0383169033907f66bada9bf591c1c0376ab893e5fd4262ee0200d6018fb65d4d627e145536417a9060200160405180910390a35050565b4263ffffffff7f0000000000000000000000000000000000000000000000000000000000000000168110801590610e9557507f000000000000000000000000000000000000000000000000000000000000000063ffffffff1681105b610ed75760405162461bcd60e51b815260206004820152601360248201527250544e46542f73616c652d696e61637469766560681b604482015260640161077b565b600a5463ffffffff7f000000000000000000000000000000000000000000000000000000000000000016610f0b848361219c565b1115610f4f5760405162461bcd60e51b815260206004820152601360248201527214151391950bdb999d1ccb5cdbdb190b5bdd5d606a1b604482015260640161077b565b7f000000000000000000000000000000000000000000000000000000000000000063ffffffff16831115610fbe5760405162461bcd60e51b815260206004820152601660248201527514151391950bd95e18d959591ccb5b585e0b5b5a5b9d60521b604482015260640161077b565b6000610ff36001600160801b037f0000000000000000000000000000000000000000000000000000000000000000168561211c565b90503481146110445760405162461bcd60e51b815260206004820152601860248201527f50544e46542f696e73756666696369656e742d66756e64730000000000000000604482015260640161077b565b60005b848110156110a857600061105b828561219c565b90507f000000000000000000000000000000000000000000000000000000000000000063ffffffff1681101561109557611095338261179b565b50806110a0816121b4565b915050611047565b506110b3848361219c565b600a55604080518581526020810183905233917f3a8a89b59a31c39a36febecb987e0657ab7b7c73b60ebacb44dcb9886c2d5c8a910160405180910390a250505050565b6060600380546106839061207b565b610bd43383836117b5565b61111b33836113b9565b6111375760405162461bcd60e51b815260040161077b906120b5565b61114384848484611883565b50505050565b6000818152600460205260409020546060906001600160a01b03166111c85760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161077b565b60006111d26118b6565b905060008151116111f2576040518060200160405280600081525061121d565b806111fc846118c5565b60405160200161120d9291906121cd565b6040516020818303038152906040525b9392505050565b336112376008546001600160a01b031690565b6001600160a01b03161461125d5760405162461bcd60e51b815260040161077b90612165565b6001600160a01b0381166112c15760405162461bcd60e51b815260206004820152602560248201527f4f776e61626c652f70656e64696e674f776e65722d6e6f742d7a65726f2d6164604482015264647265737360d81b606482015260840161077b565b600980546001600160a01b0319166001600160a01b0383169081179091556040517f239a2ddded15777fa246aed5f7e1a9bc69a39d4eb4a397034d1d85766cca7d4c90600090a250565b60006001600160e01b031982166380ac58cd60e01b148061133c57506001600160e01b03198216635b5e139f60e01b145b8061066e575061066e826119c6565b600081815260066020526040902080546001600160a01b0319166001600160a01b038416908117909155819061138082610bd8565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600460205260408120546001600160a01b03166114325760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161077b565b600061143d83610bd8565b9050806001600160a01b0316846001600160a01b0316148061148457506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff165b806114a85750836001600160a01b031661149d84610706565b6001600160a01b0316145b949350505050565b826001600160a01b03166114c382610bd8565b6001600160a01b0316146115275760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161077b565b6001600160a01b0382166115895760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161077b565b61159460008261134b565b6001600160a01b03831660009081526005602052604081208054600192906115bd9084906121fc565b90915550506001600160a01b03821660009081526005602052604081208054600192906115eb90849061219c565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b038216111561170c5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b606482015260840161077b565b6001600160a01b0382166117625760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640161077b565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b610bd48282604051806020016040528060008152506119fb565b816001600160a01b0316836001600160a01b0316036118165760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161077b565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61188e8484846114b0565b61189a84848484611a2e565b6111435760405162461bcd60e51b815260040161077b90612213565b6060600b80546106839061207b565b6060816000036118ec5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156119165780611900816121b4565b915061190f9050600a83612151565b91506118f0565b60008167ffffffffffffffff81111561193157611931611e68565b6040519080825280601f01601f19166020018201604052801561195b576020820181803683370190505b5090505b84156114a8576119706001836121fc565b915061197d600a86612265565b61198890603061219c565b60f81b81838151811061199d5761199d612279565b60200101906001600160f81b031916908160001a9053506119bf600a86612151565b945061195f565b60006001600160e01b0319821663152a902d60e11b148061066e57506301ffc9a760e01b6001600160e01b031983161461066e565b611a058383611b2f565b611a126000848484611a2e565b6108b05760405162461bcd60e51b815260040161077b90612213565b60006001600160a01b0384163b15611b2457604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611a7290339089908890889060040161228f565b6020604051808303816000875af1925050508015611aad575060408051601f3d908101601f19168201909252611aaa918101906122cc565b60015b611b0a573d808015611adb576040519150601f19603f3d011682016040523d82523d6000602084013e611ae0565b606091505b508051600003611b025760405162461bcd60e51b815260040161077b90612213565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506114a8565b506001949350505050565b6001600160a01b038216611b855760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161077b565b6000818152600460205260409020546001600160a01b031615611bea5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161077b565b6001600160a01b0382166000908152600560205260408120805460019290611c1390849061219c565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611c7d9061207b565b90600052602060002090601f016020900481019282611c9f5760008555611ce5565b82601f10611cb857805160ff1916838001178555611ce5565b82800160010185558215611ce5579182015b82811115611ce5578251825591602001919060010190611cca565b50611cf1929150611cf5565b5090565b5b80821115611cf15760008155600101611cf6565b6001600160e01b031981168114611d2057600080fd5b50565b600060208284031215611d3557600080fd5b813561121d81611d0a565b60005b83811015611d5b578181015183820152602001611d43565b838111156111435750506000910152565b60008151808452611d84816020860160208601611d40565b601f01601f19169290920160200192915050565b60208152600061121d6020830184611d6c565b600060208284031215611dbd57600080fd5b5035919050565b80356001600160a01b0381168114611ddb57600080fd5b919050565b60008060408385031215611df357600080fd5b611dfc83611dc4565b946020939093013593505050565b600080600060608486031215611e1f57600080fd5b611e2884611dc4565b9250611e3660208501611dc4565b9150604084013590509250925092565b60008060408385031215611e5957600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611e9957611e99611e68565b604051601f8501601f19908116603f01168101908282118183101715611ec157611ec1611e68565b81604052809350858152868686011115611eda57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611f0657600080fd5b813567ffffffffffffffff811115611f1d57600080fd5b8201601f81018413611f2e57600080fd5b6114a884823560208401611e7e565b600060208284031215611f4f57600080fd5b61121d82611dc4565b60008060408385031215611f6b57600080fd5b611f7483611dc4565b915060208301356001600160601b0381168114611f9057600080fd5b809150509250929050565b60008060408385031215611fae57600080fd5b611fb783611dc4565b915060208301358015158114611f9057600080fd5b60008060008060808587031215611fe257600080fd5b611feb85611dc4565b9350611ff960208601611dc4565b925060408501359150606085013567ffffffffffffffff81111561201c57600080fd5b8501601f8101871361202d57600080fd5b61203c87823560208401611e7e565b91505092959194509250565b6000806040838503121561205b57600080fd5b61206483611dc4565b915061207260208401611dc4565b90509250929050565b600181811c9082168061208f57607f821691505b6020821081036120af57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561213657612136612106565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826121605761216061213b565b500490565b60208082526018908201527f4f776e61626c652f63616c6c65722d6e6f742d6f776e65720000000000000000604082015260600190565b600082198211156121af576121af612106565b500190565b6000600182016121c6576121c6612106565b5060010190565b600083516121df818460208801611d40565b8351908301906121f3818360208801611d40565b01949350505050565b60008282101561220e5761220e612106565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000826122745761227461213b565b500690565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906122c290830184611d6c565b9695505050505050565b6000602082840312156122de57600080fd5b815161121d81611d0a56fea2646970667358221220d5162b4dbbfa4f9873c04a4c083319762f5698e18bbdf128589aed33b61142a764736f6c634300080d0033000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000628d55600000000000000000000000000000000000000000000000000000000062b3e5400000000000000000000000004d40eb12430a57965cee3015348d490c6156df20000000000000000000000000000000000000000000000000000000000000000e506f6f6c79202d204c61777965720000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006504f4f4c59320000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106101cd5760003560e01c8063715018a6116100f7578063a85adeab11610095578063e456b01c11610064578063e456b01c14610592578063e6fd48bc146105c6578063e985e9c5146105fa578063f2fde38b1461064357600080fd5b8063a85adeab14610500578063b88d4fde14610534578063c87b56dd14610554578063e30c39781461057457600080fd5b80638da5cb5b116100d15780638da5cb5b1461049a57806392642744146104b857806395d89b41146104cb578063a22cb465146104e057600080fd5b8063715018a61461041c57806372cd1fa5146104315780637501f7411461045157600080fd5b80632a55205a1161016f57806355f804b31161013e57806355f804b3146103a75780636352211e146103c75780636c0360eb146103e757806370a08231146103fc57600080fd5b80632a55205a146103135780632e1a7d4d1461035257806342842e0e146103725780634e71e0c81461039257600080fd5b8063095ea7b3116101ab578063095ea7b3146102615780630d39fc811461028357806318160ddd146102cf57806323b872dd146102f357600080fd5b806301ffc9a7146101d257806306fdde0314610207578063081812fc14610229575b600080fd5b3480156101de57600080fd5b506101f26101ed366004611d23565b610663565b60405190151581526020015b60405180910390f35b34801561021357600080fd5b5061021c610674565b6040516101fe9190611d98565b34801561023557600080fd5b50610249610244366004611dab565b610706565b6040516001600160a01b0390911681526020016101fe565b34801561026d57600080fd5b5061028161027c366004611de0565b6107a0565b005b34801561028f57600080fd5b506102b77f0000000000000000000000000000000000000000000000000de0b6b3a764000081565b6040516001600160801b0390911681526020016101fe565b3480156102db57600080fd5b506102e5600a5481565b6040519081526020016101fe565b3480156102ff57600080fd5b5061028161030e366004611e0a565b6108b5565b34801561031f57600080fd5b5061033361032e366004611e46565b6108e6565b604080516001600160a01b0390931683526020830191909152016101fe565b34801561035e57600080fd5b5061028161036d366004611dab565b610992565b34801561037e57600080fd5b5061028161038d366004611e0a565b610aec565b34801561039e57600080fd5b50610281610b07565b3480156103b357600080fd5b506102816103c2366004611ef4565b610b88565b3480156103d357600080fd5b506102496103e2366004611dab565b610bd8565b3480156103f357600080fd5b5061021c610c4f565b34801561040857600080fd5b506102e5610417366004611f3d565b610cdd565b34801561042857600080fd5b50610281610d64565b34801561043d57600080fd5b5061028161044c366004611f58565b610da9565b34801561045d57600080fd5b506104857f000000000000000000000000000000000000000000000000000000000000001481565b60405163ffffffff90911681526020016101fe565b3480156104a657600080fd5b506008546001600160a01b0316610249565b6102816104c6366004611dab565b610e39565b3480156104d757600080fd5b5061021c6110f7565b3480156104ec57600080fd5b506102816104fb366004611f9b565b611106565b34801561050c57600080fd5b506104857f0000000000000000000000000000000000000000000000000000000062b3e54081565b34801561054057600080fd5b5061028161054f366004611fcc565b611111565b34801561056057600080fd5b5061021c61056f366004611dab565b611149565b34801561058057600080fd5b506009546001600160a01b0316610249565b34801561059e57600080fd5b506104857f00000000000000000000000000000000000000000000000000000000000003e881565b3480156105d257600080fd5b506104857f00000000000000000000000000000000000000000000000000000000628d556081565b34801561060657600080fd5b506101f2610615366004612048565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561064f57600080fd5b5061028161065e366004611f3d565b611224565b600061066e8261130b565b92915050565b6060600280546106839061207b565b80601f01602080910402602001604051908101604052809291908181526020018280546106af9061207b565b80156106fc5780601f106106d1576101008083540402835291602001916106fc565b820191906000526020600020905b8154815290600101906020018083116106df57829003601f168201915b5050505050905090565b6000818152600460205260408120546001600160a01b03166107845760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006107ab82610bd8565b9050806001600160a01b0316836001600160a01b0316036108185760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161077b565b336001600160a01b038216148061083457506108348133610615565b6108a65760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161077b565b6108b0838361134b565b505050565b6108bf33826113b9565b6108db5760405162461bcd60e51b815260040161077b906120b5565b6108b08383836114b0565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b031692820192909252829161095b5750604080518082019091526000546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101516000906127109061097a906001600160601b03168761211c565b6109849190612151565b915196919550909350505050565b336109a56008546001600160a01b031690565b6001600160a01b0316146109cb5760405162461bcd60e51b815260040161077b90612165565b60008111610a1b5760405162461bcd60e51b815260206004820152601d60248201527f50544e46542f77697468647261772d616d6f756e742d67742d7a65726f000000604482015260640161077b565b604051600090339083908381818185875af1925050503d8060008114610a5d576040519150601f19603f3d011682016040523d82523d6000602084013e610a62565b606091505b5050905080610ab35760405162461bcd60e51b815260206004820152601c60248201527f50544e46542f6661696c65642d746f2d77697468647261772d65746800000000604482015260640161077b565b60405182815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d59060200160405180910390a25050565b6108b083838360405180602001604052806000815250611111565b6009546001600160a01b03163314610b615760405162461bcd60e51b815260206004820152601f60248201527f4f776e61626c652f63616c6c65722d6e6f742d70656e64696e674f776e657200604482015260640161077b565b600954610b76906001600160a01b031661164c565b600980546001600160a01b0319169055565b33610b9b6008546001600160a01b031690565b6001600160a01b031614610bc15760405162461bcd60e51b815260040161077b90612165565b8051610bd490600b906020840190611c71565b5050565b6000818152600460205260408120546001600160a01b03168061066e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161077b565b600b8054610c5c9061207b565b80601f0160208091040260200160405190810160405280929190818152602001828054610c889061207b565b8015610cd55780601f10610caa57610100808354040283529160200191610cd5565b820191906000526020600020905b815481529060010190602001808311610cb857829003601f168201915b505050505081565b60006001600160a01b038216610d485760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161077b565b506001600160a01b031660009081526005602052604090205490565b33610d776008546001600160a01b031690565b6001600160a01b031614610d9d5760405162461bcd60e51b815260040161077b90612165565b610da7600061164c565b565b33610dbc6008546001600160a01b031690565b6001600160a01b031614610de25760405162461bcd60e51b815260040161077b90612165565b610dec828261169e565b6040516001600160601b03821681526001600160a01b0383169033907f66bada9bf591c1c0376ab893e5fd4262ee0200d6018fb65d4d627e145536417a9060200160405180910390a35050565b4263ffffffff7f00000000000000000000000000000000000000000000000000000000628d5560168110801590610e9557507f0000000000000000000000000000000000000000000000000000000062b3e54063ffffffff1681105b610ed75760405162461bcd60e51b815260206004820152601360248201527250544e46542f73616c652d696e61637469766560681b604482015260640161077b565b600a5463ffffffff7f00000000000000000000000000000000000000000000000000000000000003e816610f0b848361219c565b1115610f4f5760405162461bcd60e51b815260206004820152601360248201527214151391950bdb999d1ccb5cdbdb190b5bdd5d606a1b604482015260640161077b565b7f000000000000000000000000000000000000000000000000000000000000001463ffffffff16831115610fbe5760405162461bcd60e51b815260206004820152601660248201527514151391950bd95e18d959591ccb5b585e0b5b5a5b9d60521b604482015260640161077b565b6000610ff36001600160801b037f0000000000000000000000000000000000000000000000000de0b6b3a7640000168561211c565b90503481146110445760405162461bcd60e51b815260206004820152601860248201527f50544e46542f696e73756666696369656e742d66756e64730000000000000000604482015260640161077b565b60005b848110156110a857600061105b828561219c565b90507f00000000000000000000000000000000000000000000000000000000000003e863ffffffff1681101561109557611095338261179b565b50806110a0816121b4565b915050611047565b506110b3848361219c565b600a55604080518581526020810183905233917f3a8a89b59a31c39a36febecb987e0657ab7b7c73b60ebacb44dcb9886c2d5c8a910160405180910390a250505050565b6060600380546106839061207b565b610bd43383836117b5565b61111b33836113b9565b6111375760405162461bcd60e51b815260040161077b906120b5565b61114384848484611883565b50505050565b6000818152600460205260409020546060906001600160a01b03166111c85760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161077b565b60006111d26118b6565b905060008151116111f2576040518060200160405280600081525061121d565b806111fc846118c5565b60405160200161120d9291906121cd565b6040516020818303038152906040525b9392505050565b336112376008546001600160a01b031690565b6001600160a01b03161461125d5760405162461bcd60e51b815260040161077b90612165565b6001600160a01b0381166112c15760405162461bcd60e51b815260206004820152602560248201527f4f776e61626c652f70656e64696e674f776e65722d6e6f742d7a65726f2d6164604482015264647265737360d81b606482015260840161077b565b600980546001600160a01b0319166001600160a01b0383169081179091556040517f239a2ddded15777fa246aed5f7e1a9bc69a39d4eb4a397034d1d85766cca7d4c90600090a250565b60006001600160e01b031982166380ac58cd60e01b148061133c57506001600160e01b03198216635b5e139f60e01b145b8061066e575061066e826119c6565b600081815260066020526040902080546001600160a01b0319166001600160a01b038416908117909155819061138082610bd8565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600460205260408120546001600160a01b03166114325760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161077b565b600061143d83610bd8565b9050806001600160a01b0316846001600160a01b0316148061148457506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff165b806114a85750836001600160a01b031661149d84610706565b6001600160a01b0316145b949350505050565b826001600160a01b03166114c382610bd8565b6001600160a01b0316146115275760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161077b565b6001600160a01b0382166115895760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161077b565b61159460008261134b565b6001600160a01b03831660009081526005602052604081208054600192906115bd9084906121fc565b90915550506001600160a01b03821660009081526005602052604081208054600192906115eb90849061219c565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b038216111561170c5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b606482015260840161077b565b6001600160a01b0382166117625760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640161077b565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b610bd48282604051806020016040528060008152506119fb565b816001600160a01b0316836001600160a01b0316036118165760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161077b565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61188e8484846114b0565b61189a84848484611a2e565b6111435760405162461bcd60e51b815260040161077b90612213565b6060600b80546106839061207b565b6060816000036118ec5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156119165780611900816121b4565b915061190f9050600a83612151565b91506118f0565b60008167ffffffffffffffff81111561193157611931611e68565b6040519080825280601f01601f19166020018201604052801561195b576020820181803683370190505b5090505b84156114a8576119706001836121fc565b915061197d600a86612265565b61198890603061219c565b60f81b81838151811061199d5761199d612279565b60200101906001600160f81b031916908160001a9053506119bf600a86612151565b945061195f565b60006001600160e01b0319821663152a902d60e11b148061066e57506301ffc9a760e01b6001600160e01b031983161461066e565b611a058383611b2f565b611a126000848484611a2e565b6108b05760405162461bcd60e51b815260040161077b90612213565b60006001600160a01b0384163b15611b2457604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611a7290339089908890889060040161228f565b6020604051808303816000875af1925050508015611aad575060408051601f3d908101601f19168201909252611aaa918101906122cc565b60015b611b0a573d808015611adb576040519150601f19603f3d011682016040523d82523d6000602084013e611ae0565b606091505b508051600003611b025760405162461bcd60e51b815260040161077b90612213565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506114a8565b506001949350505050565b6001600160a01b038216611b855760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161077b565b6000818152600460205260409020546001600160a01b031615611bea5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161077b565b6001600160a01b0382166000908152600560205260408120805460019290611c1390849061219c565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611c7d9061207b565b90600052602060002090601f016020900481019282611c9f5760008555611ce5565b82601f10611cb857805160ff1916838001178555611ce5565b82800160010185558215611ce5579182015b82811115611ce5578251825591602001919060010190611cca565b50611cf1929150611cf5565b5090565b5b80821115611cf15760008155600101611cf6565b6001600160e01b031981168114611d2057600080fd5b50565b600060208284031215611d3557600080fd5b813561121d81611d0a565b60005b83811015611d5b578181015183820152602001611d43565b838111156111435750506000910152565b60008151808452611d84816020860160208601611d40565b601f01601f19169290920160200192915050565b60208152600061121d6020830184611d6c565b600060208284031215611dbd57600080fd5b5035919050565b80356001600160a01b0381168114611ddb57600080fd5b919050565b60008060408385031215611df357600080fd5b611dfc83611dc4565b946020939093013593505050565b600080600060608486031215611e1f57600080fd5b611e2884611dc4565b9250611e3660208501611dc4565b9150604084013590509250925092565b60008060408385031215611e5957600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611e9957611e99611e68565b604051601f8501601f19908116603f01168101908282118183101715611ec157611ec1611e68565b81604052809350858152868686011115611eda57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611f0657600080fd5b813567ffffffffffffffff811115611f1d57600080fd5b8201601f81018413611f2e57600080fd5b6114a884823560208401611e7e565b600060208284031215611f4f57600080fd5b61121d82611dc4565b60008060408385031215611f6b57600080fd5b611f7483611dc4565b915060208301356001600160601b0381168114611f9057600080fd5b809150509250929050565b60008060408385031215611fae57600080fd5b611fb783611dc4565b915060208301358015158114611f9057600080fd5b60008060008060808587031215611fe257600080fd5b611feb85611dc4565b9350611ff960208601611dc4565b925060408501359150606085013567ffffffffffffffff81111561201c57600080fd5b8501601f8101871361202d57600080fd5b61203c87823560208401611e7e565b91505092959194509250565b6000806040838503121561205b57600080fd5b61206483611dc4565b915061207260208401611dc4565b90509250929050565b600181811c9082168061208f57607f821691505b6020821081036120af57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561213657612136612106565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826121605761216061213b565b500490565b60208082526018908201527f4f776e61626c652f63616c6c65722d6e6f742d6f776e65720000000000000000604082015260600190565b600082198211156121af576121af612106565b500190565b6000600182016121c6576121c6612106565b5060010190565b600083516121df818460208801611d40565b8351908301906121f3818360208801611d40565b01949350505050565b60008282101561220e5761220e612106565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000826122745761227461213b565b500690565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906122c290830184611d6c565b9695505050505050565b6000602082840312156122de57600080fd5b815161121d81611d0a56fea2646970667358221220d5162b4dbbfa4f9873c04a4c083319762f5698e18bbdf128589aed33b61142a764736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000628d55600000000000000000000000000000000000000000000000000000000062b3e5400000000000000000000000004d40eb12430a57965cee3015348d490c6156df20000000000000000000000000000000000000000000000000000000000000000e506f6f6c79202d204c61777965720000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006504f4f4c59320000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): Pooly - Lawyer
Arg [1] : _symbol (string): POOLY2
Arg [2] : _nftPrice (uint128): 1000000000000000000
Arg [3] : _maxNFT (uint32): 1000
Arg [4] : _maxMint (uint32): 20
Arg [5] : _startTimestamp (uint32): 1653429600
Arg [6] : _endTimestamp (uint32): 1655956800
Arg [7] : _owner (address): 0x4D40eb12430A57965cEe3015348d490C6156dF20
-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [2] : 0000000000000000000000000000000000000000000000000de0b6b3a7640000
Arg [3] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [5] : 00000000000000000000000000000000000000000000000000000000628d5560
Arg [6] : 0000000000000000000000000000000000000000000000000000000062b3e540
Arg [7] : 0000000000000000000000004d40eb12430a57965cee3015348d490c6156df20
Arg [8] : 000000000000000000000000000000000000000000000000000000000000000e
Arg [9] : 506f6f6c79202d204c6177796572000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [11] : 504f4f4c59320000000000000000000000000000000000000000000000000000
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.