ERC-721
Overview
Max Total Supply
0 CAT
Holders
21
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 CATLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
CovenCats
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 100000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT //Contract based on [https://docs.openzeppelin.com/contracts/3.x/erc721](https://docs.openzeppelin.com/contracts/3.x/erc721) // &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&%&%@@@@@@@&&%&%%%%%%&%%&%%&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&%%%&@@@@@@@@%%%%%%%%%%%%%%%%&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&%%%%%%%%#@@@@@@@@@@# ,,(###%%%%%%%%&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&%%%%%%##, .. @@@@@@@@@@@@ ,##%%%%%%&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&%%%%%%##/ /@@@@@@@@@@@@@, *#%%%%%&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&%%%%#(.. . @@@@@@@@@@@@@@@% (#%%%%&&&&&&&&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&&&&&%%%%#( .. . .@@@@@@@@@@@@@@@@@ ##%%%%&&&&&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&&&%%%%#... ... ..#@@@@@@@@@@@@@@@@@@, .,#%%%%&&&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&%%%%#.. . . .. .@@@@@@@@@@@@@@@@@@@@& .#%%%%&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&%%%%#.. . .. . . ,@@@@@@@@@@@@@@@@@@@@@@ ... . ,#%%%%&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&%%%#(..... . .... .... &@@@@@@@@@@@@@@@@@@@@@@@/. . . .. #%%%%&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&%%%%#,..... . .. .. . . @@@@@@@@@@@#/#&@@@@@@@@@@@@@@@@@@@@@@@@@@@@@( . /#%%%&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&%&%%%#........ . .. *@(.@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&. *#%%%&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&%%%%#....... . ../@&@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&#%@@@@@@@@@@@@@@@@@@@@@ /#%%%&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&%%%%#*.......... ..*@@@@@&@,,*,,@@@@@@@@@@@@@@&%//@@@@&*.*,,*,@@@@@@@@@@@@@@@@@@@@# #%%%&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&%%%#..........,@@@@@@@@@@(%*,,,,,,,@@@*,(........*.@,.,,,,,,**%@@@@@@@@@@@@@@@@@@@. .#%%%&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&%%%%#/.......(@@@@@@@@@@@@@@.***,,,,,,*....../.......(.,,,,,,*(,@@@@@@@@@@@@@@@@@@( . #%%%%%&&&&&&&&&&&&& // &&&&&&&&&&&&&&&%%%#.....,@@@@@@@@@@@@@@@@@@.****,,........#......(,....****(,%@@@@@@@@@@@@@@@@. . /#%%%&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&%%%#....@@@@@@@@@@@@@@@@@@@@@ #**(&%(,..........(%@@@&&&&&,,,@@@@@@@@@@@@@@(....... . ,#%%&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&%%%#...@@@@@@@@@@@@@@@@@@@@@@@&/&@@&&%%%&&@@@@@@@@&&%&&&&@@(@@@@@@@@@@@* ........ . *#%%&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&%%%#...%@@@@@@@@@@@@@@@@@@@@@@*@@&&&&&&&&&@@@@@@&&%&&&&&%&&@#@@@@#. . (#%%%&&&&&&&&&&&&&& // &&&&&&&&&&&&&&%&%%#( ..@@@@@@@@@@@@@@@@@@@@@@@@&&&&&&%&&@@@@@@&&&&%&%&&&@*, #%%%&%&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&%%%# ......%@@@@@@@@@@@@@@@@ ....,*#%&@@@@@@@@&#,,,,,.,,,,, ./%%%&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&%%%# ........... . .......(........,.../..,.........,,,/ . . ..#%%%&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&%&%%%# ......... .. .......&,.................,,,,,% .#%%%&%&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&%%%%#........ . ... .........,,,,,,,,,,,,,,,. .,, .#%%%&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&%%%# ...... . . . ......... *....,,.,,,,,,,,,,,* (........./ ,#%%%&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&%%%#* ..... .. .. ...,...............,,,,.# #...,.........( #%%%%&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&%&%%%#. .... ... .. ..../...................,.& &......,*, #...,/ ./#%%%&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&%%%%%#. ....... . ............... ..,....,@ ......,,( %.,,,,/#%%%%%&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&&&&%%%%#/ ..%.....,.. ,,.....,,( ,%,,,# (,,,,,/%%%%%&&&&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&&&&&%%%%%##, ,.......**,,,,,,,....,,,.,,%#*,,,,,,,,,/,(%%%%&&&&&&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&%%%%%%## / .,......,,(/......,/,....,&,(/*,.,#%%%%%%%&&&&&&&&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&%&%%%%%##, (...*......,,&.....,*,......, (##%%%%%&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&%%%%%%%##% ..,/.....,/&....,,,......,,%%%%%%%&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&@&&&&,...*....,/,...,,,.,...,,,@&%&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&@&@@@&&&&&../ ..,@.##,(../(,*&&&@&@@@&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&@@@&@&@&@&&@&&&&&@&&&&&&&&&&&&@@@@@@@@&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&@@&@@@@&&&&&&&&&@&&&&&&@&&&&&&&@@@@@@@&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&@@&@&@@&&&&&&&&&@@&&&&&@@@&&&&&@@@@&@@&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&@@@&@@@@&@@&@&&&@&@&&&&&@@@&&&&&&@&@@@@&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&@@@@@@@&&@@&&&&&@&@&&&&&@@@&&&@&&@&&@@@@&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&@@@@@@@&&@@&&&&@&&@&&&&&@@&&&&@&&&&&@@@@%&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&@@@@@@@&&&@&&&&&@&&&&&&@&@@&&&@@&&@&&&@@@&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&@@@@@@@&&&@&&&&&@&&&&&&@&&&&&&@@&&@&&&@@@@&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&@@@@@@&&&&@@&&&&@&&&&&&@&&&&&&@@&&@&&&@@@&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&@@@@@@&&&&@@&&&@@&&&&&&@&&&&&&@@&&@&&&@@@@@%&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&@@@@@@&&&&@@@&&&@@&&&&&&@&&&&&&@@&&&&&&@@@@@&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& pragma solidity ^0.8.4; import "@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol"; import "@openzeppelin/contracts/interfaces/IERC2981.sol"; import "@openzeppelin/contracts/interfaces/IERC20.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; contract CovenCats is ERC721Upgradeable, OwnableUpgradeable, ReentrancyGuardUpgradeable, IERC2981 { using Counters for Counters.Counter; using Strings for uint256; Counters.Counter private tokenCounter; string private baseURI; bool private isOpenSeaProxyActive; address private constant openSeaProxyRegistryAddress = 0xa5409ec958C83C3f309868babACA7c86DCB077c1; address private constant multisigReceiverAddress = 0x530a43fB4AB0Dd38009d4420bFA852391F4059A1; uint256 public constant MAX_CATS_PER_PHASE = 3; uint256 public constant MAX_CATS = 9999; uint256 public constant MAX_GIFTED_CATS = 666; uint256 public numGiftedCats; enum SalePhase { PUBLIC, MEOWLIST, WITCH, OFF } SalePhase public salePhase; uint256 public constant PUBLIC_SALE_PRICE = 0.07 ether; bytes32 public meowlistSaleMerkleRoot; uint256 public constant WITCH_SALE_PRICE = 0.05 ether; bytes32 public witchSaleMerkleRoot; mapping(string => uint256) public mintCounts; // ============ ACCESS CONTROL/SANITY MODIFIERS ============ modifier publicSaleActive() { require(salePhase == SalePhase.PUBLIC, "Public sale is not open"); _; } modifier meowlistSaleActive() { require(salePhase == SalePhase.MEOWLIST, "MEOWLIST sale is not open"); _; } modifier witchSaleActive() { require(salePhase == SalePhase.WITCH, "WITCH sale is not open"); _; } modifier maxCatsPerPhase(uint256 numberOfTokens) { require( mintCounts[mintCountsIdentifier()] + numberOfTokens <= MAX_CATS_PER_PHASE, "Max cats to mint per phase is three" ); _; } modifier canMintCats(uint256 numberOfTokens) { require( tokenCounter.current() + numberOfTokens <= MAX_CATS - MAX_GIFTED_CATS + numGiftedCats, "Not enough cats remaining to mint" ); _; } modifier canGiftCats(uint256 num) { require( numGiftedCats + num <= MAX_GIFTED_CATS, "Not enough cats remaining to gift" ); require( tokenCounter.current() + num <= MAX_CATS, "Not enough cats remaining to mint" ); _; } modifier isCorrectPayment(uint256 numberOfTokens) { uint256 price = PUBLIC_SALE_PRICE; if (salePhase == SalePhase.WITCH) { price = WITCH_SALE_PRICE; } require( price * numberOfTokens == msg.value, "Incorrect ETH value sent" ); _; } modifier isValidMerkleProof(bytes32[] calldata merkleProof, bytes32 root) { require( MerkleProof.verify( merkleProof, root, keccak256(abi.encodePacked(msg.sender)) ), "Address does not exist in list" ); _; } function initialize() public initializer { __ERC721_init_unchained("Coven Cats", "CAT"); __Ownable_init_unchained(); __ReentrancyGuard_init_unchained(); isOpenSeaProxyActive = true; salePhase = SalePhase.OFF; } // ============ PUBLIC FUNCTIONS FOR MINTING ============ function mint(uint256 numberOfTokens) external payable publicSaleActive { mintCats(numberOfTokens); } function mintMeowlistSale( uint256 numberOfTokens, bytes32[] calldata merkleProof ) external payable meowlistSaleActive isValidMerkleProof(merkleProof, meowlistSaleMerkleRoot) { mintCats(numberOfTokens); } function mintWitchSale( uint256 numberOfTokens, bytes32[] calldata merkleProof ) external payable witchSaleActive isValidMerkleProof(merkleProof, witchSaleMerkleRoot) { mintCats(numberOfTokens); } // ============ PUBLIC READ-ONLY FUNCTIONS ============ function getBaseURI() external view returns (string memory) { return baseURI; } function getLastTokenId() external view returns (uint256) { return tokenCounter.current(); } // ============ OWNER-ONLY ADMIN FUNCTIONS ============ function setBaseURI(string memory _baseURI) external onlyOwner { baseURI = _baseURI; } // function to disable gasless listings for security in case // opensea ever shuts down or is compromised function setIsOpenSeaProxyActive(bool _isOpenSeaProxyActive) external onlyOwner { isOpenSeaProxyActive = _isOpenSeaProxyActive; } function setSalePhase(SalePhase newPhase) external onlyOwner { salePhase = newPhase; } function setMeowlistMerkleRoot(bytes32 merkleRoot) external onlyOwner { meowlistSaleMerkleRoot = merkleRoot; } function setWitchListMerkleRoot(bytes32 merkleRoot) external onlyOwner { witchSaleMerkleRoot = merkleRoot; } function giftCats(address[] calldata addresses) external nonReentrant onlyOwner canGiftCats(addresses.length) { uint256 numToGift = addresses.length; numGiftedCats += numToGift; for (uint256 i = 0; i < numToGift; i++) { _safeMint(addresses[i], nextTokenId()); } } function withdraw() public onlyOwner { uint256 balance = address(this).balance; payable(multisigReceiverAddress).transfer(balance); } function withdrawTokens(IERC20 token) public onlyOwner { uint256 balance = token.balanceOf(address(this)); token.transfer(multisigReceiverAddress, balance); } // ============ SUPPORTING FUNCTIONS ============ function mintCats(uint256 numberOfTokens) private nonReentrant isCorrectPayment(numberOfTokens) canMintCats(numberOfTokens) maxCatsPerPhase(numberOfTokens) { mintCounts[mintCountsIdentifier()] += numberOfTokens; for (uint256 i = 0; i < numberOfTokens; i++) { _safeMint(msg.sender, nextTokenId()); } } function nextTokenId() private returns (uint256) { tokenCounter.increment(); return tokenCounter.current(); } function mintCountsIdentifier() private view returns (string memory) { return string(abi.encodePacked(msg.sender, "-", salePhase)); } // ============ FUNCTION OVERRIDES ============ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721Upgradeable, IERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Override isApprovedForAll to allowlist user's OpenSea proxy accounts to enable gas-less listings. */ function isApprovedForAll(address owner, address operator) public view override returns (bool) { // Get a reference to OpenSea's proxy registry contract by instantiating // the contract using the already existing address. ProxyRegistry proxyRegistry = ProxyRegistry( openSeaProxyRegistryAddress ); if ( isOpenSeaProxyActive && address(proxyRegistry.proxies(owner)) == operator ) { return true; } return super.isApprovedForAll(owner, operator); } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "Nonexistent token"); return string(abi.encodePacked(baseURI, "/", tokenId.toString(), ".json")); } /** * @dev See {IERC165-royaltyInfo}. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view override returns (address receiver, uint256 royaltyAmount) { require(_exists(tokenId), "Nonexistent token"); return ( multisigReceiverAddress, SafeMath.div(SafeMath.mul(salePrice, 75), 1000) ); } } // These contract definitions are used to create a reference to the OpenSea // ProxyRegistry contract by using the registry's address (see isApprovedForAll). contract OwnableDelegateProxy { } contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721Upgradeable.sol"; import "./IERC721ReceiverUpgradeable.sol"; import "./extensions/IERC721MetadataUpgradeable.sol"; import "../../utils/AddressUpgradeable.sol"; import "../../utils/ContextUpgradeable.sol"; import "../../utils/StringsUpgradeable.sol"; import "../../utils/introspection/ERC165Upgradeable.sol"; import "../../proxy/utils/Initializable.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 ERC721Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC721Upgradeable, IERC721MetadataUpgradeable { using AddressUpgradeable for address; using StringsUpgradeable 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. */ function __ERC721_init(string memory name_, string memory symbol_) internal onlyInitializing { __ERC721_init_unchained(name_, symbol_); } function __ERC721_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165Upgradeable, IERC165Upgradeable) returns (bool) { return interfaceId == type(IERC721Upgradeable).interfaceId || interfaceId == type(IERC721MetadataUpgradeable).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 = ERC721Upgradeable.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 = ERC721Upgradeable.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 = ERC721Upgradeable.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(ERC721Upgradeable.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(ERC721Upgradeable.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 IERC721ReceiverUpgradeable(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721ReceiverUpgradeable.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 {} /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[44] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "./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 payed 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 v4.4.1 (interfaces/IERC20.sol) pragma solidity ^0.8.0; import "../token/ERC20/IERC20.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal onlyInitializing { __Ownable_init_unchained(); } function __Ownable_init_unchained() internal onlyInitializing { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuardUpgradeable is Initializable { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; function __ReentrancyGuard_init() internal onlyInitializing { __ReentrancyGuard_init_unchained(); } function __ReentrancyGuard_init_unchained() internal onlyInitializing { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // 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/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165Upgradeable.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721Upgradeable is IERC165Upgradeable { /** * @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 IERC721ReceiverUpgradeable { /** * @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 v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721Upgradeable.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721MetadataUpgradeable is IERC721Upgradeable { /** * @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.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @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 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; import "../proxy/utils/Initializable.sol"; /** * @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 ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library StringsUpgradeable { 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 "./IERC165Upgradeable.sol"; import "../../proxy/utils/Initializable.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 ERC165Upgradeable is Initializable, IERC165Upgradeable { function __ERC165_init() internal onlyInitializing { } function __ERC165_init_unchained() internal onlyInitializing { } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165Upgradeable).interfaceId; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; import "../../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ``` * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. Equivalent to `reinitializer(1)`. */ modifier initializer() { bool isTopLevelCall = _setInitializedVersion(1); if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * `initializer` is equivalent to `reinitializer(1)`, so a reinitializer may be used after the original * initialization step. This is essential to configure modules that are added through upgrades and that require * initialization. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. */ modifier reinitializer(uint8 version) { bool isTopLevelCall = _setInitializedVersion(version); if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(version); } } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. */ function _disableInitializers() internal virtual { _setInitializedVersion(type(uint8).max); } function _setInitializedVersion(uint8 version) private returns (bool) { // If the contract is initializing we ignore whether _initialized is set in order to support multiple // inheritance patterns, but we only do this in the context of a constructor, and for the lowest level // of initializers, because in other contexts the contract may have been reentered. if (_initializing) { require( version == 1 && !AddressUpgradeable.isContract(address(this)), "Initializable: contract is already initialized" ); return false; } else { require(_initialized < version, "Initializable: contract is already initialized"); _initialized = version; return true; } } }
// 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 IERC165Upgradeable { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol";
// 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: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
{ "optimizer": { "enabled": true, "runs": 100000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_CATS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_CATS_PER_PHASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_GIFTED_CATS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_SALE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WITCH_SALE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLastTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"giftCats","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","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":"meowlistSaleMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"mintCounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"mintMeowlistSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"mintWitchSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numGiftedCats","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"salePhase","outputs":[{"internalType":"enum CovenCats.SalePhase","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isOpenSeaProxyActive","type":"bool"}],"name":"setIsOpenSeaProxyActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setMeowlistMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum CovenCats.SalePhase","name":"newPhase","type":"uint8"}],"name":"setSalePhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setWitchListMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"witchSaleMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50613e7b806100206000396000f3fe6080604052600436106102c65760003560e01c806370a0823111610179578063a22cb465116100d6578063e43082f71161008a578063e985e9c511610064578063e985e9c514610788578063ee8ea7c6146107a8578063f2fde38b146107bf57600080fd5b8063e43082f714610722578063e4f2487a14610742578063e5b9a1bb1461076857600080fd5b8063b88d4fde116100bb578063b88d4fde146106cf578063c87b56dd146106ef578063deae800d1461070f57600080fd5b8063a22cb46514610699578063af32abb1146106b957600080fd5b80638129fc1c1161012d5780638da5cb5b116101125780638da5cb5b1461064657806395d89b4114610671578063a0712d681461068657600080fd5b80638129fc1c1461061c57806383c4c00d1461063157600080fd5b8063715018a61161015e578063715018a6146105cc5780637ad59431146105e15780637c9a567d1461060157600080fd5b806370a0823114610597578063714c5398146105b757600080fd5b80632a55205a1161022757806349df728c116101db57806355f804b3116101c057806355f804b31461051e57806360a2fcf31461053e5780636352211e1461057757600080fd5b806349df728c146104eb5780634f7611091461050b57600080fd5b80633ca496001161020c5780633ca49600146104965780633ccfd60b146104b657806342842e0e146104cb57600080fd5b80632a55205a14610435578063302022b51461048157600080fd5b8063095ea7b31161027e5780631e2fa5cd116102635780631e2fa5cd146103df57806323b872dd146103f5578063275fb2471461041557600080fd5b8063095ea7b3146103a6578063118f5884146103c857600080fd5b806306fdde03116102af57806306fdde031461032457806307e89ec014610346578063081812fc1461036157600080fd5b806301ffc9a7146102cb57806305334e4314610300575b600080fd5b3480156102d757600080fd5b506102eb6102e63660046134c9565b6107df565b60405190151581526020015b60405180910390f35b34801561030c57600080fd5b5061031660fe5481565b6040519081526020016102f7565b34801561033057600080fd5b5061033961083b565b6040516102f7919061355c565b34801561035257600080fd5b5061031666f8b0a10e47000081565b34801561036d57600080fd5b5061038161037c36600461356f565b6108cd565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102f7565b3480156103b257600080fd5b506103c66103c13660046135aa565b6109ac565b005b3480156103d457600080fd5b506103166101005481565b3480156103eb57600080fd5b5061031661270f81565b34801561040157600080fd5b506103c66104103660046135d6565b610b38565b34801561042157600080fd5b506103c661043036600461356f565b610bd9565b34801561044157600080fd5b50610455610450366004613617565b610c60565b6040805173ffffffffffffffffffffffffffffffffffffffff90931683526020830191909152016102f7565b34801561048d57600080fd5b50610316600381565b3480156104a257600080fd5b506103c66104b136600461356f565b610d24565b3480156104c257600080fd5b506103c6610dab565b3480156104d757600080fd5b506103c66104e63660046135d6565b610e73565b3480156104f757600080fd5b506103c6610506366004613639565b610e8e565b6103c661051936600461369b565b61104e565b34801561052a57600080fd5b506103c66105393660046137aa565b6111d0565b34801561054a57600080fd5b506103166105593660046137aa565b80516020818301810180516101028252928201919093012091525481565b34801561058357600080fd5b5061038161059236600461356f565b611264565b3480156105a357600080fd5b506103166105b2366004613639565b611316565b3480156105c357600080fd5b506103396113e4565b3480156105d857600080fd5b506103c66113f3565b3480156105ed57600080fd5b506103c66105fc3660046137f3565b611480565b34801561060d57600080fd5b5061031666b1a2bc2ec5000081565b34801561062857600080fd5b506103c6611546565b34801561063d57600080fd5b506103166116ab565b34801561065257600080fd5b5060975473ffffffffffffffffffffffffffffffffffffffff16610381565b34801561067d57600080fd5b506103396116bb565b6103c661069436600461356f565b6116ca565b3480156106a557600080fd5b506103c66106b4366004613822565b611752565b3480156106c557600080fd5b5061031661029a81565b3480156106db57600080fd5b506103c66106ea36600461385b565b61175d565b3480156106fb57600080fd5b5061033961070a36600461356f565b611805565b6103c661071d36600461369b565b6118c5565b34801561072e57600080fd5b506103c661073d3660046138db565b6119b9565b34801561074e57600080fd5b5060ff805461075b911681565b6040516102f79190613927565b34801561077457600080fd5b506103c6610783366004613968565b611a6b565b34801561079457600080fd5b506102eb6107a33660046139aa565b611d20565b3480156107b457600080fd5b506103166101015481565b3480156107cb57600080fd5b506103c66107da366004613639565b611e41565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a000000000000000000000000000000000000000000000000000000001480610835575061083582611f6e565b92915050565b60606065805461084a906139d8565b80601f0160208091040260200160405190810160405280929190818152602001828054610876906139d8565b80156108c35780601f10610898576101008083540402835291602001916108c3565b820191906000526020600020905b8154815290600101906020018083116108a657829003601f168201915b5050505050905090565b60008181526067602052604081205473ffffffffffffffffffffffffffffffffffffffff16610983576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b5060009081526069602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b60006109b782611264565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610a74576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f7200000000000000000000000000000000000000000000000000000000000000606482015260840161097a565b3373ffffffffffffffffffffffffffffffffffffffff82161480610a9d5750610a9d8133611d20565b610b29576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161097a565b610b338383612051565b505050565b610b4233826120f1565b610bce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161097a565b610b33838383612233565b60975473ffffffffffffffffffffffffffffffffffffffff163314610c5a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161097a565b61010055565b600082815260676020526040812054819073ffffffffffffffffffffffffffffffffffffffff16610ced576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f4e6f6e6578697374656e7420746f6b656e000000000000000000000000000000604482015260640161097a565b73530a43fb4ab0dd38009d4420bfa852391f4059a1610d18610d1085604b61249a565b6103e86124ad565b915091505b9250929050565b60975473ffffffffffffffffffffffffffffffffffffffff163314610da5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161097a565b61010155565b60975473ffffffffffffffffffffffffffffffffffffffff163314610e2c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161097a565b604051479073530a43fb4ab0dd38009d4420bfa852391f4059a19082156108fc029083906000818181858888f19350505050158015610e6f573d6000803e3d6000fd5b5050565b610b338383836040518060200160405280600081525061175d565b60975473ffffffffffffffffffffffffffffffffffffffff163314610f0f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161097a565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa158015610f7c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fa09190613a2b565b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273530a43fb4ab0dd38009d4420bfa852391f4059a160048201526024810182905290915073ffffffffffffffffffffffffffffffffffffffff83169063a9059cbb906044016020604051808303816000875af115801561102a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b339190613a44565b600160ff8054166003811115611066576110666138f8565b146110cd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4d454f574c4953542073616c65206973206e6f74206f70656e00000000000000604482015260640161097a565b818161010054611159838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003360601b16602082015285925060340190505b604051602081830303815290604052805190602001206124b9565b6111bf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f4164647265737320646f6573206e6f7420657869737420696e206c6973740000604482015260640161097a565b6111c8866124cf565b505050505050565b60975473ffffffffffffffffffffffffffffffffffffffff163314611251576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161097a565b8051610e6f9060fc906020840190613402565b60008181526067602052604081205473ffffffffffffffffffffffffffffffffffffffff1680610835576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606482015260840161097a565b600073ffffffffffffffffffffffffffffffffffffffff82166113bb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f206164647265737300000000000000000000000000000000000000000000606482015260840161097a565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526068602052604090205490565b606060fc805461084a906139d8565b60975473ffffffffffffffffffffffffffffffffffffffff163314611474576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161097a565b61147e60006127d8565b565b60975473ffffffffffffffffffffffffffffffffffffffff163314611501576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161097a565b60ff80548291907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600183600381111561153e5761153e6138f8565b021790555050565b6000611552600161284f565b9050801561158757600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790555b6115fb6040518060400160405280600a81526020017f436f76656e2043617473000000000000000000000000000000000000000000008152506040518060400160405280600381526020017f43415400000000000000000000000000000000000000000000000000000000008152506129d5565b611603612a93565b61160b612b33565b60fd80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0090811660011790915560ff8054909116600317905580156116a857600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50565b60006116b660fb5490565b905090565b60606066805461084a906139d8565b600060ff80541660038111156116e2576116e26138f8565b14611749576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f5075626c69632073616c65206973206e6f74206f70656e000000000000000000604482015260640161097a565b6116a8816124cf565b610e6f338383612bd1565b61176733836120f1565b6117f3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161097a565b6117ff84848484612cfe565b50505050565b60008181526067602052604090205460609073ffffffffffffffffffffffffffffffffffffffff16611893576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f4e6f6e6578697374656e7420746f6b656e000000000000000000000000000000604482015260640161097a565b60fc61189e83612da1565b6040516020016118af929190613a7d565b6040516020818303038152906040529050919050565b600260ff80541660038111156118dd576118dd6138f8565b14611944576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f57495443482073616c65206973206e6f74206f70656e00000000000000000000604482015260640161097a565b818161010154611159838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003360601b166020820152859250603401905061113e565b60975473ffffffffffffffffffffffffffffffffffffffff163314611a3a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161097a565b60fd80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b600260c95403611ad7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161097a565b600260c95560975473ffffffffffffffffffffffffffffffffffffffff163314611b5d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161097a565b60fe54819061029a90611b71908390613be1565b1115611bff576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4e6f7420656e6f75676820636174732072656d61696e696e6720746f2067696660448201527f7400000000000000000000000000000000000000000000000000000000000000606482015260840161097a565b61270f81611c0c60fb5490565b611c169190613be1565b1115611ca4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4e6f7420656e6f75676820636174732072656d61696e696e6720746f206d696e60448201527f7400000000000000000000000000000000000000000000000000000000000000606482015260840161097a565b60fe805483918291600090611cba908490613be1565b90915550600090505b81811015611d1457611d02858583818110611ce057611ce0613bf9565b9050602002016020810190611cf59190613639565b611cfd612ed6565b612eed565b80611d0c81613c28565b915050611cc3565b5050600160c955505050565b60fd5460009073a5409ec958c83c3f309868babaca7c86dcb077c19060ff168015611df357506040517fc455279100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8581166004830152808516919083169063c455279190602401602060405180830381865afa158015611db7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ddb9190613c60565b73ffffffffffffffffffffffffffffffffffffffff16145b15611e02576001915050610835565b73ffffffffffffffffffffffffffffffffffffffff8085166000908152606a602090815260408083209387168352929052205460ff165b949350505050565b60975473ffffffffffffffffffffffffffffffffffffffff163314611ec2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161097a565b73ffffffffffffffffffffffffffffffffffffffff8116611f65576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161097a565b6116a8816127d8565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061200157507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061083557507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610835565b600081815260696020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff841690811790915581906120ab82611264565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008181526067602052604081205473ffffffffffffffffffffffffffffffffffffffff166121a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e0000000000000000000000000000000000000000606482015260840161097a565b60006121ad83611264565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806121ee57506121ee8185611d20565b80611e3957508373ffffffffffffffffffffffffffffffffffffffff16612214846108cd565b73ffffffffffffffffffffffffffffffffffffffff1614949350505050565b8273ffffffffffffffffffffffffffffffffffffffff1661225382611264565b73ffffffffffffffffffffffffffffffffffffffff16146122f6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e6572000000000000000000000000000000000000000000000000000000606482015260840161097a565b73ffffffffffffffffffffffffffffffffffffffff8216612398576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161097a565b6123a3600082612051565b73ffffffffffffffffffffffffffffffffffffffff831660009081526068602052604081208054600192906123d9908490613c7d565b909155505073ffffffffffffffffffffffffffffffffffffffff82166000908152606860205260408120805460019290612414908490613be1565b909155505060008181526067602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006124a68284613c94565b9392505050565b60006124a68284613d00565b6000826124c68584612f07565b14949350505050565b600260c9540361253b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161097a565b600260c9819055819066f8b0a10e4700009060ff8054166003811115612563576125636138f8565b03612572575066b1a2bc2ec500005b3461257d8383613c94565b146125e4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f496e636f7272656374204554482076616c75652073656e740000000000000000604482015260640161097a565b60fe5483906125f761029a61270f613c7d565b6126019190613be1565b8161260b60fb5490565b6126159190613be1565b11156126a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4e6f7420656e6f75676820636174732072656d61696e696e6720746f206d696e60448201527f7400000000000000000000000000000000000000000000000000000000000000606482015260840161097a565b836003816101026126b2612f7b565b6040516126bf9190613d14565b9081526020016040518091039020546126d89190613be1565b1115612766576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f4d6178206361747320746f206d696e742070657220706861736520697320746860448201527f7265650000000000000000000000000000000000000000000000000000000000606482015260840161097a565b84610102612772612f7b565b60405161277f9190613d14565b9081526020016040518091039020600082825461279c9190613be1565b90915550600090505b858110156127cb576127b933611cfd612ed6565b806127c381613c28565b9150506127a5565b5050600160c95550505050565b6097805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008054610100900460ff1615612906578160ff1660011480156128725750303b155b6128fe576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a6564000000000000000000000000000000000000606482015260840161097a565b506000919050565b60005460ff80841691161061299d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a6564000000000000000000000000000000000000606482015260840161097a565b50600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660ff92909216919091179055600190565b600054610100900460ff16612a6c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e67000000000000000000000000000000000000000000606482015260840161097a565b8151612a7f906065906020850190613402565b508051610b33906066906020840190613402565b600054610100900460ff16612b2a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e67000000000000000000000000000000000000000000606482015260840161097a565b61147e336127d8565b600054610100900460ff16612bca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e67000000000000000000000000000000000000000000606482015260840161097a565b600160c955565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612c66576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161097a565b73ffffffffffffffffffffffffffffffffffffffff8381166000818152606a602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612d09848484612233565b612d1584848484612faa565b6117ff576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161097a565b606081600003612de457505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612e0e5780612df881613c28565b9150612e079050600a83613d00565b9150612de8565b60008167ffffffffffffffff811115612e2957612e296136e7565b6040519080825280601f01601f191660200182016040528015612e53576020820181803683370190505b5090505b8415611e3957612e68600183613c7d565b9150612e75600a86613d30565b612e80906030613be1565b60f81b818381518110612e9557612e95613bf9565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612ecf600a86613d00565b9450612e57565b6000612ee660fb80546001019055565b5060fb5490565b610e6f82826040518060200160405280600081525061319d565b600081815b8451811015612f73576000858281518110612f2957612f29613bf9565b60200260200101519050808311612f4f5760008381526020829052604090209250612f60565b600081815260208490526040902092505b5080612f6b81613c28565b915050612f0c565b509392505050565b60ff8054604051606092612f96923392911690602001613d44565b604051602081830303815290604052905090565b600073ffffffffffffffffffffffffffffffffffffffff84163b15613192576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a0290613021903390899088908890600401613ddf565b6020604051808303816000875af192505050801561307a575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261307791810190613e28565b60015b613147573d8080156130a8576040519150601f19603f3d011682016040523d82523d6000602084013e6130ad565b606091505b50805160000361313f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161097a565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050611e39565b506001949350505050565b6131a78383613240565b6131b46000848484612faa565b610b33576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161097a565b73ffffffffffffffffffffffffffffffffffffffff82166132bd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161097a565b60008181526067602052604090205473ffffffffffffffffffffffffffffffffffffffff1615613349576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161097a565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260686020526040812080546001929061337f908490613be1565b909155505060008181526067602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461340e906139d8565b90600052602060002090601f0160209004810192826134305760008555613476565b82601f1061344957805160ff1916838001178555613476565b82800160010185558215613476579182015b8281111561347657825182559160200191906001019061345b565b50613482929150613486565b5090565b5b808211156134825760008155600101613487565b7fffffffff00000000000000000000000000000000000000000000000000000000811681146116a857600080fd5b6000602082840312156134db57600080fd5b81356124a68161349b565b60005b838110156135015781810151838201526020016134e9565b838111156117ff5750506000910152565b6000815180845261352a8160208601602086016134e6565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815260006124a66020830184613512565b60006020828403121561358157600080fd5b5035919050565b73ffffffffffffffffffffffffffffffffffffffff811681146116a857600080fd5b600080604083850312156135bd57600080fd5b82356135c881613588565b946020939093013593505050565b6000806000606084860312156135eb57600080fd5b83356135f681613588565b9250602084013561360681613588565b929592945050506040919091013590565b6000806040838503121561362a57600080fd5b50508035926020909101359150565b60006020828403121561364b57600080fd5b81356124a681613588565b60008083601f84011261366857600080fd5b50813567ffffffffffffffff81111561368057600080fd5b6020830191508360208260051b8501011115610d1d57600080fd5b6000806000604084860312156136b057600080fd5b83359250602084013567ffffffffffffffff8111156136ce57600080fd5b6136da86828701613656565b9497909650939450505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600067ffffffffffffffff80841115613731576137316136e7565b604051601f85017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908282118183101715613777576137776136e7565b8160405280935085815286868601111561379057600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156137bc57600080fd5b813567ffffffffffffffff8111156137d357600080fd5b8201601f810184136137e457600080fd5b611e3984823560208401613716565b60006020828403121561380557600080fd5b8135600481106124a657600080fd5b80151581146116a857600080fd5b6000806040838503121561383557600080fd5b823561384081613588565b9150602083013561385081613814565b809150509250929050565b6000806000806080858703121561387157600080fd5b843561387c81613588565b9350602085013561388c81613588565b925060408501359150606085013567ffffffffffffffff8111156138af57600080fd5b8501601f810187136138c057600080fd5b6138cf87823560208401613716565b91505092959194509250565b6000602082840312156138ed57600080fd5b81356124a681613814565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6020810160048310613962577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b91905290565b6000806020838503121561397b57600080fd5b823567ffffffffffffffff81111561399257600080fd5b61399e85828601613656565b90969095509350505050565b600080604083850312156139bd57600080fd5b82356139c881613588565b9150602083013561385081613588565b600181811c908216806139ec57607f821691505b602082108103613a25577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b600060208284031215613a3d57600080fd5b5051919050565b600060208284031215613a5657600080fd5b81516124a681613814565b60008151613a738185602086016134e6565b9290920192915050565b600080845481600182811c915080831680613a9957607f831692505b60208084108203613ad1577f4e487b710000000000000000000000000000000000000000000000000000000086526022600452602486fd5b818015613ae55760018114613b1457613b41565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00861689528489019650613b41565b60008b81526020902060005b86811015613b395781548b820152908501908301613b20565b505084890196505b505050505050613ba9613b80613b7a837f2f00000000000000000000000000000000000000000000000000000000000000815260010190565b86613a61565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000815260050190565b95945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008219821115613bf457613bf4613bb2565b500190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613c5957613c59613bb2565b5060010190565b600060208284031215613c7257600080fd5b81516124a681613588565b600082821015613c8f57613c8f613bb2565b500390565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613ccc57613ccc613bb2565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082613d0f57613d0f613cd1565b500490565b60008251613d268184602087016134e6565b9190910192915050565b600082613d3f57613d3f613cd1565b500690565b7fffffffffffffffffffffffffffffffffffffffff0000000000000000000000008360601b1681527f2d000000000000000000000000000000000000000000000000000000000000006014820152600060048310613dcb577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b5060f89190911b6015820152601601919050565b600073ffffffffffffffffffffffffffffffffffffffff808716835280861660208401525083604083015260806060830152613e1e6080830184613512565b9695505050505050565b600060208284031215613e3a57600080fd5b81516124a68161349b56fea26469706673582212201956b8cbf7e63ceed14fa574b4ec6e581f8cdf7da80a17524e9b7290b00291a564736f6c634300080d0033
Deployed Bytecode
0x6080604052600436106102c65760003560e01c806370a0823111610179578063a22cb465116100d6578063e43082f71161008a578063e985e9c511610064578063e985e9c514610788578063ee8ea7c6146107a8578063f2fde38b146107bf57600080fd5b8063e43082f714610722578063e4f2487a14610742578063e5b9a1bb1461076857600080fd5b8063b88d4fde116100bb578063b88d4fde146106cf578063c87b56dd146106ef578063deae800d1461070f57600080fd5b8063a22cb46514610699578063af32abb1146106b957600080fd5b80638129fc1c1161012d5780638da5cb5b116101125780638da5cb5b1461064657806395d89b4114610671578063a0712d681461068657600080fd5b80638129fc1c1461061c57806383c4c00d1461063157600080fd5b8063715018a61161015e578063715018a6146105cc5780637ad59431146105e15780637c9a567d1461060157600080fd5b806370a0823114610597578063714c5398146105b757600080fd5b80632a55205a1161022757806349df728c116101db57806355f804b3116101c057806355f804b31461051e57806360a2fcf31461053e5780636352211e1461057757600080fd5b806349df728c146104eb5780634f7611091461050b57600080fd5b80633ca496001161020c5780633ca49600146104965780633ccfd60b146104b657806342842e0e146104cb57600080fd5b80632a55205a14610435578063302022b51461048157600080fd5b8063095ea7b31161027e5780631e2fa5cd116102635780631e2fa5cd146103df57806323b872dd146103f5578063275fb2471461041557600080fd5b8063095ea7b3146103a6578063118f5884146103c857600080fd5b806306fdde03116102af57806306fdde031461032457806307e89ec014610346578063081812fc1461036157600080fd5b806301ffc9a7146102cb57806305334e4314610300575b600080fd5b3480156102d757600080fd5b506102eb6102e63660046134c9565b6107df565b60405190151581526020015b60405180910390f35b34801561030c57600080fd5b5061031660fe5481565b6040519081526020016102f7565b34801561033057600080fd5b5061033961083b565b6040516102f7919061355c565b34801561035257600080fd5b5061031666f8b0a10e47000081565b34801561036d57600080fd5b5061038161037c36600461356f565b6108cd565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102f7565b3480156103b257600080fd5b506103c66103c13660046135aa565b6109ac565b005b3480156103d457600080fd5b506103166101005481565b3480156103eb57600080fd5b5061031661270f81565b34801561040157600080fd5b506103c66104103660046135d6565b610b38565b34801561042157600080fd5b506103c661043036600461356f565b610bd9565b34801561044157600080fd5b50610455610450366004613617565b610c60565b6040805173ffffffffffffffffffffffffffffffffffffffff90931683526020830191909152016102f7565b34801561048d57600080fd5b50610316600381565b3480156104a257600080fd5b506103c66104b136600461356f565b610d24565b3480156104c257600080fd5b506103c6610dab565b3480156104d757600080fd5b506103c66104e63660046135d6565b610e73565b3480156104f757600080fd5b506103c6610506366004613639565b610e8e565b6103c661051936600461369b565b61104e565b34801561052a57600080fd5b506103c66105393660046137aa565b6111d0565b34801561054a57600080fd5b506103166105593660046137aa565b80516020818301810180516101028252928201919093012091525481565b34801561058357600080fd5b5061038161059236600461356f565b611264565b3480156105a357600080fd5b506103166105b2366004613639565b611316565b3480156105c357600080fd5b506103396113e4565b3480156105d857600080fd5b506103c66113f3565b3480156105ed57600080fd5b506103c66105fc3660046137f3565b611480565b34801561060d57600080fd5b5061031666b1a2bc2ec5000081565b34801561062857600080fd5b506103c6611546565b34801561063d57600080fd5b506103166116ab565b34801561065257600080fd5b5060975473ffffffffffffffffffffffffffffffffffffffff16610381565b34801561067d57600080fd5b506103396116bb565b6103c661069436600461356f565b6116ca565b3480156106a557600080fd5b506103c66106b4366004613822565b611752565b3480156106c557600080fd5b5061031661029a81565b3480156106db57600080fd5b506103c66106ea36600461385b565b61175d565b3480156106fb57600080fd5b5061033961070a36600461356f565b611805565b6103c661071d36600461369b565b6118c5565b34801561072e57600080fd5b506103c661073d3660046138db565b6119b9565b34801561074e57600080fd5b5060ff805461075b911681565b6040516102f79190613927565b34801561077457600080fd5b506103c6610783366004613968565b611a6b565b34801561079457600080fd5b506102eb6107a33660046139aa565b611d20565b3480156107b457600080fd5b506103166101015481565b3480156107cb57600080fd5b506103c66107da366004613639565b611e41565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a000000000000000000000000000000000000000000000000000000001480610835575061083582611f6e565b92915050565b60606065805461084a906139d8565b80601f0160208091040260200160405190810160405280929190818152602001828054610876906139d8565b80156108c35780601f10610898576101008083540402835291602001916108c3565b820191906000526020600020905b8154815290600101906020018083116108a657829003601f168201915b5050505050905090565b60008181526067602052604081205473ffffffffffffffffffffffffffffffffffffffff16610983576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b5060009081526069602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b60006109b782611264565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610a74576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f7200000000000000000000000000000000000000000000000000000000000000606482015260840161097a565b3373ffffffffffffffffffffffffffffffffffffffff82161480610a9d5750610a9d8133611d20565b610b29576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161097a565b610b338383612051565b505050565b610b4233826120f1565b610bce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161097a565b610b33838383612233565b60975473ffffffffffffffffffffffffffffffffffffffff163314610c5a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161097a565b61010055565b600082815260676020526040812054819073ffffffffffffffffffffffffffffffffffffffff16610ced576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f4e6f6e6578697374656e7420746f6b656e000000000000000000000000000000604482015260640161097a565b73530a43fb4ab0dd38009d4420bfa852391f4059a1610d18610d1085604b61249a565b6103e86124ad565b915091505b9250929050565b60975473ffffffffffffffffffffffffffffffffffffffff163314610da5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161097a565b61010155565b60975473ffffffffffffffffffffffffffffffffffffffff163314610e2c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161097a565b604051479073530a43fb4ab0dd38009d4420bfa852391f4059a19082156108fc029083906000818181858888f19350505050158015610e6f573d6000803e3d6000fd5b5050565b610b338383836040518060200160405280600081525061175d565b60975473ffffffffffffffffffffffffffffffffffffffff163314610f0f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161097a565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa158015610f7c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fa09190613a2b565b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273530a43fb4ab0dd38009d4420bfa852391f4059a160048201526024810182905290915073ffffffffffffffffffffffffffffffffffffffff83169063a9059cbb906044016020604051808303816000875af115801561102a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b339190613a44565b600160ff8054166003811115611066576110666138f8565b146110cd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4d454f574c4953542073616c65206973206e6f74206f70656e00000000000000604482015260640161097a565b818161010054611159838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003360601b16602082015285925060340190505b604051602081830303815290604052805190602001206124b9565b6111bf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f4164647265737320646f6573206e6f7420657869737420696e206c6973740000604482015260640161097a565b6111c8866124cf565b505050505050565b60975473ffffffffffffffffffffffffffffffffffffffff163314611251576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161097a565b8051610e6f9060fc906020840190613402565b60008181526067602052604081205473ffffffffffffffffffffffffffffffffffffffff1680610835576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606482015260840161097a565b600073ffffffffffffffffffffffffffffffffffffffff82166113bb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f206164647265737300000000000000000000000000000000000000000000606482015260840161097a565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526068602052604090205490565b606060fc805461084a906139d8565b60975473ffffffffffffffffffffffffffffffffffffffff163314611474576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161097a565b61147e60006127d8565b565b60975473ffffffffffffffffffffffffffffffffffffffff163314611501576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161097a565b60ff80548291907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600183600381111561153e5761153e6138f8565b021790555050565b6000611552600161284f565b9050801561158757600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790555b6115fb6040518060400160405280600a81526020017f436f76656e2043617473000000000000000000000000000000000000000000008152506040518060400160405280600381526020017f43415400000000000000000000000000000000000000000000000000000000008152506129d5565b611603612a93565b61160b612b33565b60fd80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0090811660011790915560ff8054909116600317905580156116a857600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50565b60006116b660fb5490565b905090565b60606066805461084a906139d8565b600060ff80541660038111156116e2576116e26138f8565b14611749576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f5075626c69632073616c65206973206e6f74206f70656e000000000000000000604482015260640161097a565b6116a8816124cf565b610e6f338383612bd1565b61176733836120f1565b6117f3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161097a565b6117ff84848484612cfe565b50505050565b60008181526067602052604090205460609073ffffffffffffffffffffffffffffffffffffffff16611893576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f4e6f6e6578697374656e7420746f6b656e000000000000000000000000000000604482015260640161097a565b60fc61189e83612da1565b6040516020016118af929190613a7d565b6040516020818303038152906040529050919050565b600260ff80541660038111156118dd576118dd6138f8565b14611944576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f57495443482073616c65206973206e6f74206f70656e00000000000000000000604482015260640161097a565b818161010154611159838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003360601b166020820152859250603401905061113e565b60975473ffffffffffffffffffffffffffffffffffffffff163314611a3a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161097a565b60fd80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b600260c95403611ad7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161097a565b600260c95560975473ffffffffffffffffffffffffffffffffffffffff163314611b5d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161097a565b60fe54819061029a90611b71908390613be1565b1115611bff576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4e6f7420656e6f75676820636174732072656d61696e696e6720746f2067696660448201527f7400000000000000000000000000000000000000000000000000000000000000606482015260840161097a565b61270f81611c0c60fb5490565b611c169190613be1565b1115611ca4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4e6f7420656e6f75676820636174732072656d61696e696e6720746f206d696e60448201527f7400000000000000000000000000000000000000000000000000000000000000606482015260840161097a565b60fe805483918291600090611cba908490613be1565b90915550600090505b81811015611d1457611d02858583818110611ce057611ce0613bf9565b9050602002016020810190611cf59190613639565b611cfd612ed6565b612eed565b80611d0c81613c28565b915050611cc3565b5050600160c955505050565b60fd5460009073a5409ec958c83c3f309868babaca7c86dcb077c19060ff168015611df357506040517fc455279100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8581166004830152808516919083169063c455279190602401602060405180830381865afa158015611db7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ddb9190613c60565b73ffffffffffffffffffffffffffffffffffffffff16145b15611e02576001915050610835565b73ffffffffffffffffffffffffffffffffffffffff8085166000908152606a602090815260408083209387168352929052205460ff165b949350505050565b60975473ffffffffffffffffffffffffffffffffffffffff163314611ec2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161097a565b73ffffffffffffffffffffffffffffffffffffffff8116611f65576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161097a565b6116a8816127d8565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061200157507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061083557507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610835565b600081815260696020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff841690811790915581906120ab82611264565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008181526067602052604081205473ffffffffffffffffffffffffffffffffffffffff166121a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e0000000000000000000000000000000000000000606482015260840161097a565b60006121ad83611264565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806121ee57506121ee8185611d20565b80611e3957508373ffffffffffffffffffffffffffffffffffffffff16612214846108cd565b73ffffffffffffffffffffffffffffffffffffffff1614949350505050565b8273ffffffffffffffffffffffffffffffffffffffff1661225382611264565b73ffffffffffffffffffffffffffffffffffffffff16146122f6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e6572000000000000000000000000000000000000000000000000000000606482015260840161097a565b73ffffffffffffffffffffffffffffffffffffffff8216612398576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161097a565b6123a3600082612051565b73ffffffffffffffffffffffffffffffffffffffff831660009081526068602052604081208054600192906123d9908490613c7d565b909155505073ffffffffffffffffffffffffffffffffffffffff82166000908152606860205260408120805460019290612414908490613be1565b909155505060008181526067602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006124a68284613c94565b9392505050565b60006124a68284613d00565b6000826124c68584612f07565b14949350505050565b600260c9540361253b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161097a565b600260c9819055819066f8b0a10e4700009060ff8054166003811115612563576125636138f8565b03612572575066b1a2bc2ec500005b3461257d8383613c94565b146125e4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f496e636f7272656374204554482076616c75652073656e740000000000000000604482015260640161097a565b60fe5483906125f761029a61270f613c7d565b6126019190613be1565b8161260b60fb5490565b6126159190613be1565b11156126a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4e6f7420656e6f75676820636174732072656d61696e696e6720746f206d696e60448201527f7400000000000000000000000000000000000000000000000000000000000000606482015260840161097a565b836003816101026126b2612f7b565b6040516126bf9190613d14565b9081526020016040518091039020546126d89190613be1565b1115612766576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f4d6178206361747320746f206d696e742070657220706861736520697320746860448201527f7265650000000000000000000000000000000000000000000000000000000000606482015260840161097a565b84610102612772612f7b565b60405161277f9190613d14565b9081526020016040518091039020600082825461279c9190613be1565b90915550600090505b858110156127cb576127b933611cfd612ed6565b806127c381613c28565b9150506127a5565b5050600160c95550505050565b6097805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008054610100900460ff1615612906578160ff1660011480156128725750303b155b6128fe576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a6564000000000000000000000000000000000000606482015260840161097a565b506000919050565b60005460ff80841691161061299d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a6564000000000000000000000000000000000000606482015260840161097a565b50600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660ff92909216919091179055600190565b600054610100900460ff16612a6c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e67000000000000000000000000000000000000000000606482015260840161097a565b8151612a7f906065906020850190613402565b508051610b33906066906020840190613402565b600054610100900460ff16612b2a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e67000000000000000000000000000000000000000000606482015260840161097a565b61147e336127d8565b600054610100900460ff16612bca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e67000000000000000000000000000000000000000000606482015260840161097a565b600160c955565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612c66576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161097a565b73ffffffffffffffffffffffffffffffffffffffff8381166000818152606a602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612d09848484612233565b612d1584848484612faa565b6117ff576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161097a565b606081600003612de457505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612e0e5780612df881613c28565b9150612e079050600a83613d00565b9150612de8565b60008167ffffffffffffffff811115612e2957612e296136e7565b6040519080825280601f01601f191660200182016040528015612e53576020820181803683370190505b5090505b8415611e3957612e68600183613c7d565b9150612e75600a86613d30565b612e80906030613be1565b60f81b818381518110612e9557612e95613bf9565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612ecf600a86613d00565b9450612e57565b6000612ee660fb80546001019055565b5060fb5490565b610e6f82826040518060200160405280600081525061319d565b600081815b8451811015612f73576000858281518110612f2957612f29613bf9565b60200260200101519050808311612f4f5760008381526020829052604090209250612f60565b600081815260208490526040902092505b5080612f6b81613c28565b915050612f0c565b509392505050565b60ff8054604051606092612f96923392911690602001613d44565b604051602081830303815290604052905090565b600073ffffffffffffffffffffffffffffffffffffffff84163b15613192576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a0290613021903390899088908890600401613ddf565b6020604051808303816000875af192505050801561307a575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261307791810190613e28565b60015b613147573d8080156130a8576040519150601f19603f3d011682016040523d82523d6000602084013e6130ad565b606091505b50805160000361313f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161097a565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050611e39565b506001949350505050565b6131a78383613240565b6131b46000848484612faa565b610b33576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161097a565b73ffffffffffffffffffffffffffffffffffffffff82166132bd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161097a565b60008181526067602052604090205473ffffffffffffffffffffffffffffffffffffffff1615613349576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161097a565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260686020526040812080546001929061337f908490613be1565b909155505060008181526067602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461340e906139d8565b90600052602060002090601f0160209004810192826134305760008555613476565b82601f1061344957805160ff1916838001178555613476565b82800160010185558215613476579182015b8281111561347657825182559160200191906001019061345b565b50613482929150613486565b5090565b5b808211156134825760008155600101613487565b7fffffffff00000000000000000000000000000000000000000000000000000000811681146116a857600080fd5b6000602082840312156134db57600080fd5b81356124a68161349b565b60005b838110156135015781810151838201526020016134e9565b838111156117ff5750506000910152565b6000815180845261352a8160208601602086016134e6565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815260006124a66020830184613512565b60006020828403121561358157600080fd5b5035919050565b73ffffffffffffffffffffffffffffffffffffffff811681146116a857600080fd5b600080604083850312156135bd57600080fd5b82356135c881613588565b946020939093013593505050565b6000806000606084860312156135eb57600080fd5b83356135f681613588565b9250602084013561360681613588565b929592945050506040919091013590565b6000806040838503121561362a57600080fd5b50508035926020909101359150565b60006020828403121561364b57600080fd5b81356124a681613588565b60008083601f84011261366857600080fd5b50813567ffffffffffffffff81111561368057600080fd5b6020830191508360208260051b8501011115610d1d57600080fd5b6000806000604084860312156136b057600080fd5b83359250602084013567ffffffffffffffff8111156136ce57600080fd5b6136da86828701613656565b9497909650939450505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600067ffffffffffffffff80841115613731576137316136e7565b604051601f85017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908282118183101715613777576137776136e7565b8160405280935085815286868601111561379057600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156137bc57600080fd5b813567ffffffffffffffff8111156137d357600080fd5b8201601f810184136137e457600080fd5b611e3984823560208401613716565b60006020828403121561380557600080fd5b8135600481106124a657600080fd5b80151581146116a857600080fd5b6000806040838503121561383557600080fd5b823561384081613588565b9150602083013561385081613814565b809150509250929050565b6000806000806080858703121561387157600080fd5b843561387c81613588565b9350602085013561388c81613588565b925060408501359150606085013567ffffffffffffffff8111156138af57600080fd5b8501601f810187136138c057600080fd5b6138cf87823560208401613716565b91505092959194509250565b6000602082840312156138ed57600080fd5b81356124a681613814565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6020810160048310613962577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b91905290565b6000806020838503121561397b57600080fd5b823567ffffffffffffffff81111561399257600080fd5b61399e85828601613656565b90969095509350505050565b600080604083850312156139bd57600080fd5b82356139c881613588565b9150602083013561385081613588565b600181811c908216806139ec57607f821691505b602082108103613a25577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b600060208284031215613a3d57600080fd5b5051919050565b600060208284031215613a5657600080fd5b81516124a681613814565b60008151613a738185602086016134e6565b9290920192915050565b600080845481600182811c915080831680613a9957607f831692505b60208084108203613ad1577f4e487b710000000000000000000000000000000000000000000000000000000086526022600452602486fd5b818015613ae55760018114613b1457613b41565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00861689528489019650613b41565b60008b81526020902060005b86811015613b395781548b820152908501908301613b20565b505084890196505b505050505050613ba9613b80613b7a837f2f00000000000000000000000000000000000000000000000000000000000000815260010190565b86613a61565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000815260050190565b95945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008219821115613bf457613bf4613bb2565b500190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613c5957613c59613bb2565b5060010190565b600060208284031215613c7257600080fd5b81516124a681613588565b600082821015613c8f57613c8f613bb2565b500390565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613ccc57613ccc613bb2565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082613d0f57613d0f613cd1565b500490565b60008251613d268184602087016134e6565b9190910192915050565b600082613d3f57613d3f613cd1565b500690565b7fffffffffffffffffffffffffffffffffffffffff0000000000000000000000008360601b1681527f2d000000000000000000000000000000000000000000000000000000000000006014820152600060048310613dcb577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b5060f89190911b6015820152601601919050565b600073ffffffffffffffffffffffffffffffffffffffff808716835280861660208401525083604083015260806060830152613e1e6080830184613512565b9695505050505050565b600060208284031215613e3a57600080fd5b81516124a68161349b56fea26469706673582212201956b8cbf7e63ceed14fa574b4ec6e581f8cdf7da80a17524e9b7290b00291a564736f6c634300080d0033
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.