More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 5,881 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 18752514 | 27 days ago | IN | 0 CRO | 0.16550617 | ||||
Set Approval For... | 18744372 | 27 days ago | IN | 0 CRO | 0.208044 | ||||
Approve | 18735807 | 28 days ago | IN | 0 CRO | 0.2245766 | ||||
Approve | 18735765 | 28 days ago | IN | 0 CRO | 0.1904019 | ||||
Approve | 18735747 | 28 days ago | IN | 0 CRO | 0.2049978 | ||||
Set Approval For... | 18648076 | 34 days ago | IN | 0 CRO | 0.1757272 | ||||
Transfer From | 18644341 | 34 days ago | IN | 0 CRO | 0.37875 | ||||
Set Approval For... | 18609226 | 36 days ago | IN | 0 CRO | 0.17514915 | ||||
Set Approval For... | 18557974 | 39 days ago | IN | 0 CRO | 0.17509712 | ||||
Set Approval For... | 18543863 | 40 days ago | IN | 0 CRO | 0.1839066 | ||||
Set Approval For... | 18524774 | 42 days ago | IN | 0 CRO | 0.17514915 | ||||
Set Approval For... | 18519888 | 42 days ago | IN | 0 CRO | 0.17509712 | ||||
Set Approval For... | 18443816 | 47 days ago | IN | 0 CRO | 0.1839066 | ||||
Set Approval For... | 18413511 | 49 days ago | IN | 0 CRO | 0.1136148 | ||||
Set Approval For... | 18413509 | 49 days ago | IN | 0 CRO | 0.1340072 | ||||
Safe Transfer Fr... | 18203785 | 63 days ago | IN | 0 CRO | 0.41322003 | ||||
Safe Transfer Fr... | 18128449 | 68 days ago | IN | 0 CRO | 0.48477475 | ||||
Transfer From | 18128310 | 68 days ago | IN | 0 CRO | 0.505 | ||||
Set Approval For... | 18004622 | 76 days ago | IN | 0 CRO | 0.1514864 | ||||
Set Approval For... | 17978254 | 77 days ago | IN | 0 CRO | 0.2335322 | ||||
Set Approval For... | 17960126 | 79 days ago | IN | 0 CRO | 0.1573128 | ||||
Set Approval For... | 17960125 | 79 days ago | IN | 0 CRO | 0.1573128 | ||||
Set Approval For... | 17960123 | 79 days ago | IN | 0 CRO | 0.1660524 | ||||
Set Approval For... | 17956395 | 79 days ago | IN | 0 CRO | 0.1514864 | ||||
Set Approval For... | 17956394 | 79 days ago | IN | 0 CRO | 0.1514864 |
Latest 25 internal transactions (View All)
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
7387104 | 770 days ago | 1,487 CRO | ||||
7383073 | 770 days ago | 1.48898857 CRO | ||||
6350264 | 838 days ago | 2.05582951 CRO | ||||
6218353 | 847 days ago | 8.03432459 CRO | ||||
6202199 | 848 days ago | 4.59070095 CRO | ||||
6186097 | 849 days ago | 2.05582951 CRO | ||||
6182297 | 849 days ago | 32.9805007 CRO | ||||
6177011 | 849 days ago | 7.38285879 CRO | ||||
6159071 | 851 days ago | 0.92462134 CRO | ||||
6144845 | 852 days ago | 7.38285879 CRO | ||||
6101649 | 854 days ago | 3.22050017 CRO | ||||
6086117 | 855 days ago | 4.82088763 CRO | ||||
6085029 | 855 days ago | 5.84642479 CRO | ||||
6082813 | 856 days ago | 7.10039953 CRO | ||||
6079390 | 856 days ago | 4.11165903 CRO | ||||
5991536 | 862 days ago | 5.19877561 CRO | ||||
5971188 | 863 days ago | 11.13402213 CRO | ||||
5970923 | 863 days ago | 4.82088763 CRO | ||||
5970821 | 863 days ago | 10.26224022 CRO | ||||
5970746 | 863 days ago | 7.41612989 CRO | ||||
5970606 | 863 days ago | 7.66005825 CRO | ||||
5970605 | 863 days ago | 6.43113772 CRO | ||||
5958711 | 864 days ago | 11.92467374 CRO | ||||
5958084 | 864 days ago | 7.50435529 CRO | ||||
5947298 | 864 days ago | 4.82088763 CRO |
Loading...
Loading
Contract Name:
CroDooNFT
Compiler Version
v0.8.15+commit.e14f2714
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.15; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; contract CroDooNFT is Context, Ownable, ERC721Enumerable { // Minting bool public isPaused = true; string private baseTokenURI; uint256 private mintRewards = 0; bool private areMintRewardsClaimed = false; mapping(address => bool) private whitelist; // Royalties uint256 public totalRoyalties = 0; mapping(uint256 => uint256) private claimedRoyalties; uint256 private currentRoyalties = 0; // Events event MintStatusChanged(bool paused); event WhitelistUpdated(uint256 count); event RoyaltiesAdded(uint256 amount); event RoyaltiesClaimed(address indexed sender, uint256 amount); event Minted( address indexed sender, uint256 currentSupply, uint256 amount, uint256 time ); // Errors error PausedMint(); error AddingNoRewards(); error InsufficientPayment(); error CannotMintZero(); error OverMint(); error MintLimit(); error MintRewardsAlreadyClaimed(); error NoTokenMintedYet(); // Constants uint256 public constant MAX_SUPPLY = 5678; uint256 public constant MAX_MINT = 10; uint256 public constant WHITELIST_MINT_PRICE = 35 ether; uint256 public constant MINT_PRICE = 40 ether; uint256 public constant MINT_ROYALTIES = 5; // Structs struct MintInfo { bool isPaused; bool isWhitelisted; uint256 mintPrice; uint256 whitelistPrice; uint256 supply; uint256 maxSupply; uint256 maxMint; } constructor( string memory name, string memory symbol, string memory uri ) ERC721(name, symbol) { baseTokenURI = uri; } // Owner // - Setup function setBaseTokenURI(string memory uri) public onlyOwner { baseTokenURI = uri; } function togglePause() public onlyOwner { isPaused = !isPaused; emit MintStatusChanged(isPaused); } function addWhitelist(address[] memory _whitelist) external onlyOwner { for (uint256 i = 0; i < _whitelist.length; ) { whitelist[_whitelist[i]] = true; unchecked { ++i; } } emit WhitelistUpdated(_whitelist.length); } // - Team minting function teamMint(uint256 amount, address to) external onlyOwner { uint currentSupply = totalSupply(); if (currentSupply + amount > MAX_SUPPLY) revert OverMint(); for (uint256 i = 1; i <= amount; ) { _safeMint(to, currentSupply + i); unchecked { claimedRoyalties[currentSupply + i] = currentRoyalties; ++i; } } emit Minted(_msgSender(), currentSupply, amount, block.timestamp); } // - Team Funds function withdraw() public onlyOwner { if (areMintRewardsClaimed) revert MintRewardsAlreadyClaimed(); payable(_msgSender()).transfer(mintRewards); areMintRewardsClaimed = true; } function emergencyWithdraw(uint256 amount) public onlyOwner { payable(_msgSender()).transfer(amount); } // External function addRoyalties() external payable { addRewards(msg.value); } function mint(uint256 amount) external payable { if (isPaused) revert PausedMint(); if (amount > MAX_MINT) revert MintLimit(); if (amount == 0) revert CannotMintZero(); uint256 price = isWhitelisted(_msgSender()) ? WHITELIST_MINT_PRICE : MINT_PRICE; uint256 totalPrice = price * amount; uint currentSupply = totalSupply(); if (currentSupply + amount > MAX_SUPPLY) revert OverMint(); if (msg.value != totalPrice) revert InsufficientPayment(); uint256 royalties = 0; if (currentSupply > 0) { royalties = (msg.value * MINT_ROYALTIES) / 100; addRewards(royalties); } for (uint256 i = 1; i <= amount; ) { _safeMint(_msgSender(), currentSupply + i); unchecked { claimedRoyalties[currentSupply + i] = currentRoyalties; ++i; } } mintRewards += msg.value - royalties; emit Minted(_msgSender(), currentSupply, amount, block.timestamp); } function tokensOfWallet(address _address) external view returns (uint256[] memory) { uint256 ownerTokenCount = balanceOf(_address); uint256[] memory tokenIds = new uint256[](ownerTokenCount); for (uint256 i; i < ownerTokenCount; i++) { tokenIds[i] = tokenOfOwnerByIndex(_address, i); } return tokenIds; } function claimAllRoyalties() external { uint256 rewards = 0; uint count = balanceOf(_msgSender()); for (uint i = 0; i < count; ) { uint tokenId = tokenOfOwnerByIndex(_msgSender(), i); unchecked { rewards += (getRewardsToken(tokenId)); claimedRoyalties[tokenId] = currentRoyalties; ++i; } } payable(_msgSender()).transfer(rewards); emit RoyaltiesClaimed(_msgSender(), rewards); } function claimRoyalties(uint256[] memory tokensToClaim) external { uint256 rewards = 0; for (uint256 i = 0; i < tokensToClaim.length; ) { unchecked { uint tokenId = tokensToClaim[i]; if (ownerOf(tokenId) == _msgSender()) { rewards += (getRewardsToken(tokenId)); claimedRoyalties[tokenId] = currentRoyalties; } ++i; } } payable(_msgSender()).transfer(rewards); emit RoyaltiesClaimed(_msgSender(), rewards); } // Private function addRewards(uint256 amount) private { if (amount == 0) revert AddingNoRewards(); uint currentSupply = totalSupply(); if (currentSupply == 0) revert NoTokenMintedYet(); totalRoyalties = totalRoyalties + amount; currentRoyalties += (amount / currentSupply); emit RoyaltiesAdded(amount); } // Internal function _baseURI() internal view virtual override returns (string memory) { return baseTokenURI; } // Getters function getMintInfo() external view returns (MintInfo memory) { return MintInfo( isPaused, isWhitelisted(_msgSender()), MINT_PRICE, WHITELIST_MINT_PRICE, totalSupply(), MAX_SUPPLY, MAX_MINT ); } function isWhitelisted(address _address) public view returns (bool) { return whitelist[_address]; } function getRewardsToken(uint256 id) public view returns (uint256 rewards) { rewards += currentRoyalties - claimedRoyalties[id]; } function getRoyalties() external view returns (uint256) { uint256 balance = 0; uint count = balanceOf(_msgSender()); for (uint i = 0; i < count; i++) { uint tokenId = tokenOfOwnerByIndex(_msgSender(), i); balance += (getRewardsToken(tokenId)); } return balance; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { 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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); 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: invalid token ID"); 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) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); 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: caller is not token 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: caller is not token 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) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {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 Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @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); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"uri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AddingNoRewards","type":"error"},{"inputs":[],"name":"CannotMintZero","type":"error"},{"inputs":[],"name":"InsufficientPayment","type":"error"},{"inputs":[],"name":"MintLimit","type":"error"},{"inputs":[],"name":"MintRewardsAlreadyClaimed","type":"error"},{"inputs":[],"name":"NoTokenMintedYet","type":"error"},{"inputs":[],"name":"OverMint","type":"error"},{"inputs":[],"name":"PausedMint","type":"error"},{"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":"bool","name":"paused","type":"bool"}],"name":"MintStatusChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"currentSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"time","type":"uint256"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RoyaltiesAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RoyaltiesClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"count","type":"uint256"}],"name":"WhitelistUpdated","type":"event"},{"inputs":[],"name":"MAX_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_ROYALTIES","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"addRoyalties","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_whitelist","type":"address[]"}],"name":"addWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimAllRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokensToClaim","type":"uint256[]"}],"name":"claimRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMintInfo","outputs":[{"components":[{"internalType":"bool","name":"isPaused","type":"bool"},{"internalType":"bool","name":"isWhitelisted","type":"bool"},{"internalType":"uint256","name":"mintPrice","type":"uint256"},{"internalType":"uint256","name":"whitelistPrice","type":"uint256"},{"internalType":"uint256","name":"supply","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"maxMint","type":"uint256"}],"internalType":"struct CroDooNFT.MintInfo","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getRewardsToken","outputs":[{"internalType":"uint256","name":"rewards","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRoyalties","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseTokenURI","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":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"teamMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"tokensOfWallet","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalRoyalties","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600b805460ff199081166001179091556000600d819055600e805490921690915560108190556012553480156200003a57600080fd5b5060405162002c9338038062002c938339810160408190526200005d91620001c1565b82826200006a33620000a4565b6001620000788382620002e1565b506002620000878282620002e1565b50600c91506200009a90508282620002e1565b50505050620003ad565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200011c57600080fd5b81516001600160401b0380821115620001395762000139620000f4565b604051601f8301601f19908116603f01168101908282118183101715620001645762000164620000f4565b816040528381526020925086838588010111156200018157600080fd5b600091505b83821015620001a5578582018301518183018401529082019062000186565b83821115620001b75760008385830101525b9695505050505050565b600080600060608486031215620001d757600080fd5b83516001600160401b0380821115620001ef57600080fd5b620001fd878388016200010a565b945060208601519150808211156200021457600080fd5b62000222878388016200010a565b935060408601519150808211156200023957600080fd5b5062000248868287016200010a565b9150509250925092565b600181811c908216806200026757607f821691505b6020821081036200028857634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002dc57600081815260208120601f850160051c81016020861015620002b75750805b601f850160051c820191505b81811015620002d857828155600101620002c3565b5050505b505050565b81516001600160401b03811115620002fd57620002fd620000f4565b62000315816200030e845462000252565b846200028e565b602080601f8311600181146200034d5760008415620003345750858301515b600019600386901b1c1916600185901b178555620002d8565b600085815260208120601f198616915b828110156200037e578886015182559484019460019091019084016200035d565b50858210156200039d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6128d680620003bd6000396000f3fe6080604052600436106102465760003560e01c8063715018a611610139578063b88d4fde116100b6578063d0520c231161007a578063d0520c2314610685578063db4f6d31146106f4578063e985e9c5146106fc578063edac985b14610745578063f0292a0314610765578063f2fde38b1461077a57600080fd5b8063b88d4fde146105f3578063bfa457bc14610613578063c002d23d14610633578063c4ae316814610650578063c87b56dd1461066557600080fd5b806395d89b41116100fd57806395d89b4114610574578063a0712d6814610589578063a22cb4651461059c578063aca9938d146105bc578063b187bd26146105d957600080fd5b8063715018a6146104e957806375935d11146104fe57806386d026081461052b5780638da5cb5b146105415780639578962b1461055f57600080fd5b806333df048e116101c75780634f6ccce71161018b5780634f6ccce7146104545780635312ea8e14610474578063547eafd0146104945780636352211e146104a957806370a08231146104c957600080fd5b806333df048e146103b15780633af32abf146103c65780633ccfd60b146103ff5780633cd972ac1461041457806342842e0e1461043457600080fd5b806318160ddd1161020e57806318160ddd1461031c57806323b872dd1461033b5780632f745c591461035b57806330176e131461037b57806332cb6b0c1461039b57600080fd5b806301ffc9a71461024b57806306fdde0314610280578063081812fc146102a2578063095ea7b3146102da57806313ece816146102fc575b600080fd5b34801561025757600080fd5b5061026b610266366004612089565b61079a565b60405190151581526020015b60405180910390f35b34801561028c57600080fd5b506102956107c5565b60405161027791906120fe565b3480156102ae57600080fd5b506102c26102bd366004612111565b610857565b6040516001600160a01b039091168152602001610277565b3480156102e657600080fd5b506102fa6102f5366004612146565b61087e565b005b34801561030857600080fd5b506102fa6103173660046121db565b610998565b34801561032857600080fd5b506009545b604051908152602001610277565b34801561034757600080fd5b506102fa610356366004612271565b610a7c565b34801561036757600080fd5b5061032d610376366004612146565b610aad565b34801561038757600080fd5b506102fa610396366004612305565b610b43565b3480156103a757600080fd5b5061032d61162e81565b3480156103bd57600080fd5b5061032d610b5b565b3480156103d257600080fd5b5061026b6103e136600461234e565b6001600160a01b03166000908152600f602052604090205460ff1690565b34801561040b57600080fd5b506102fa610bb5565b34801561042057600080fd5b5061032d61042f366004612111565b610c1f565b34801561044057600080fd5b506102fa61044f366004612271565b610c45565b34801561046057600080fd5b5061032d61046f366004612111565b610c60565b34801561048057600080fd5b506102fa61048f366004612111565b610cf3565b3480156104a057600080fd5b506102fa610d28565b3480156104b557600080fd5b506102c26104c4366004612111565b610dda565b3480156104d557600080fd5b5061032d6104e436600461234e565b610e3a565b3480156104f557600080fd5b506102fa610ec0565b34801561050a57600080fd5b5061051e61051936600461234e565b610ed4565b6040516102779190612369565b34801561053757600080fd5b5061032d60105481565b34801561054d57600080fd5b506000546001600160a01b03166102c2565b34801561056b57600080fd5b5061032d600581565b34801561058057600080fd5b50610295610f76565b6102fa610597366004612111565b610f85565b3480156105a857600080fd5b506102fa6105b73660046123ad565b61114c565b3480156105c857600080fd5b5061032d6801e5b8fa8fe2ac000081565b3480156105e557600080fd5b50600b5461026b9060ff1681565b3480156105ff57600080fd5b506102fa61060e3660046123e9565b611157565b34801561061f57600080fd5b506102fa61062e366004612465565b61118f565b34801561063f57600080fd5b5061032d68022b1c8c1227a0000081565b34801561065c57600080fd5b506102fa61124d565b34801561067157600080fd5b50610295610680366004612111565b6112a2565b34801561069157600080fd5b5061069a611309565b6040516102779190600060e08201905082511515825260208301511515602083015260408301516040830152606083015160608301526080830151608083015260a083015160a083015260c083015160c083015292915050565b6102fa6113b4565b34801561070857600080fd5b5061026b610717366004612491565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561075157600080fd5b506102fa6107603660046124bb565b6113bd565b34801561077157600080fd5b5061032d600a81565b34801561078657600080fd5b506102fa61079536600461234e565b611461565b60006001600160e01b0319821663780e9d6360e01b14806107bf57506107bf826114da565b92915050565b6060600180546107d490612548565b80601f016020809104026020016040519081016040528092919081815260200182805461080090612548565b801561084d5780601f106108225761010080835404028352916020019161084d565b820191906000526020600020905b81548152906001019060200180831161083057829003601f168201915b5050505050905090565b60006108628261152a565b506000908152600560205260409020546001600160a01b031690565b600061088982610dda565b9050806001600160a01b0316836001600160a01b0316036108fb5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b038216148061091757506109178133610717565b6109895760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c000060648201526084016108f2565b6109938383611589565b505050565b6000805b8251811015610a135760008382815181106109b9576109b9612582565b602002602001015190506109ca3390565b6001600160a01b03166109dc82610dda565b6001600160a01b031603610a0a576109f381610c1f565b601254600083815260116020526040902055909201915b5060010161099c565b50604051339082156108fc029083906000818181858888f19350505050158015610a41573d6000803e3d6000fd5b5060405181815233907f8fbbda19f4a70036f6f585dc4160142a8fa2a20ffb9393d23274f78de4e39888906020015b60405180910390a25050565b610a8633826115f7565b610aa25760405162461bcd60e51b81526004016108f290612598565b610993838383611676565b6000610ab883610e3a565b8210610b1a5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016108f2565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b610b4b61181d565b600c610b578282612634565b5050565b60008080610b6833610e3a565b905060005b81811015610bad576000610b82335b83610aad565b9050610b8d81610c1f565b610b97908561270a565b9350508080610ba590612722565b915050610b6d565b509092915050565b610bbd61181d565b600e5460ff1615610be157604051635236c5b960e11b815260040160405180910390fd5b600d54604051339180156108fc02916000818181858888f19350505050158015610c0f573d6000803e3d6000fd5b50600e805460ff19166001179055565b600081815260116020526040812054601254610c3b919061273b565b6107bf908261270a565b61099383838360405180602001604052806000815250611157565b6000610c6b60095490565b8210610cce5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016108f2565b60098281548110610ce157610ce1612582565b90600052602060002001549050919050565b610cfb61181d565b604051339082156108fc029083906000818181858888f19350505050158015610b57573d6000803e3d6000fd5b600080610d3433610e3a565b905060005b81811015610d79576000610d4c33610b7c565b9050610d5781610c1f565b6012546000928352601160205260409092209190915590920191600101610d39565b50604051339083156108fc029084906000818181858888f19350505050158015610da7573d6000803e3d6000fd5b5060405182815233907f8fbbda19f4a70036f6f585dc4160142a8fa2a20ffb9393d23274f78de4e3988890602001610a70565b6000818152600360205260408120546001600160a01b0316806107bf5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016108f2565b60006001600160a01b038216610ea45760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016108f2565b506001600160a01b031660009081526004602052604090205490565b610ec861181d565b610ed26000611877565b565b60606000610ee183610e3a565b905060008167ffffffffffffffff811115610efe57610efe612170565b604051908082528060200260200182016040528015610f27578160200160208202803683370190505b50905060005b82811015610f6e57610f3f8582610aad565b828281518110610f5157610f51612582565b602090810291909101015280610f6681612722565b915050610f2d565b509392505050565b6060600280546107d490612548565b600b5460ff1615610fa957604051634c97d28b60e01b815260040160405180910390fd5b600a811115610fcb5760405163ec8e6a6360e01b815260040160405180910390fd5b80600003610fec57604051632a6ce29960e11b815260040160405180910390fd5b6000610ff7336103e1565b61100a5768022b1c8c1227a00000611015565b6801e5b8fa8fe2ac00005b905060006110238383612752565b9050600061103060095490565b905061162e61103f858361270a565b111561105e57604051633bd7ad7760e21b815260040160405180910390fd5b81341461107e5760405163cd1c886760e01b815260040160405180910390fd5b600081156110a8576064611093600534612752565b61109d9190612787565b90506110a8816118c7565b60015b8581116110e2576110c5336110c0838661270a565b61197e565b6012548382016000908152601160205260409020556001016110ab565b506110ed813461273b565b600d60008282546110fe919061270a565b909155505060408051838152602081018790524281830152905133917f5a3358a3d27a5373c0df2604662088d37894d56b7cfd27f315770440f4e0d919919081900360600190a25050505050565b610b57338383611998565b61116133836115f7565b61117d5760405162461bcd60e51b81526004016108f290612598565b61118984848484611a66565b50505050565b61119761181d565b60006111a260095490565b905061162e6111b1848361270a565b11156111d057604051633bd7ad7760e21b815260040160405180910390fd5b60015b838111611205576111e8836110c0838561270a565b6012548282016000908152601160205260409020556001016111d3565b5060408051828152602081018590524281830152905133917f5a3358a3d27a5373c0df2604662088d37894d56b7cfd27f315770440f4e0d919919081900360600190a2505050565b61125561181d565b600b805460ff8082161560ff1990921682179092556040519116151581527fb304fe5dd2d3c45e8ec87c1dd1bd2b3a773b3135e84a7b9151f5fb4bf1a06d0e9060200160405180910390a1565b60606112ad8261152a565b60006112b7611a99565b905060008151116112d75760405180602001604052806000815250611302565b806112e184611aa8565b6040516020016112f292919061279b565b6040516020818303038152906040525b9392505050565b61134d6040518060e0016040528060001515815260200160001515815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040805160e08101909152600b5460ff16151581526020810161136f336103e1565b1515815260200168022b1c8c1227a0000081526020016801e5b8fa8fe2ac0000815260200161139d60095490565b815260200161162e8152602001600a815250905090565b610ed2346118c7565b6113c561181d565b60005b8151811015611423576001600f60008484815181106113e9576113e9612582565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff19169115159190911790556001016113c8565b507fc7f0435a905d261229a9a162170db4f4e1d3f55b33a246cf8abf2aefe4f602fd815160405161145691815260200190565b60405180910390a150565b61146961181d565b6001600160a01b0381166114ce5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108f2565b6114d781611877565b50565b60006001600160e01b031982166380ac58cd60e01b148061150b57506001600160e01b03198216635b5e139f60e01b145b806107bf57506301ffc9a760e01b6001600160e01b03198316146107bf565b6000818152600360205260409020546001600160a01b03166114d75760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016108f2565b600081815260056020526040902080546001600160a01b0319166001600160a01b03841690811790915581906115be82610dda565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061160383610dda565b9050806001600160a01b0316846001600160a01b0316148061164a57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b8061166e5750836001600160a01b031661166384610857565b6001600160a01b0316145b949350505050565b826001600160a01b031661168982610dda565b6001600160a01b0316146116ed5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016108f2565b6001600160a01b03821661174f5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016108f2565b61175a838383611ba9565b611765600082611589565b6001600160a01b038316600090815260046020526040812080546001929061178e90849061273b565b90915550506001600160a01b03821660009081526004602052604081208054600192906117bc90849061270a565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000546001600160a01b03163314610ed25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108f2565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b806000036118e85760405163e3a12f6760e01b815260040160405180910390fd5b60006118f360095490565b905080600003611916576040516378ad1dcf60e11b815260040160405180910390fd5b81601054611924919061270a565b6010556119318183612787565b60126000828254611942919061270a565b90915550506040518281527f5a02b40077e797196e633f9dd9c358d21e6c6fce881c924fac5d583fc4359f979060200160405180910390a15050565b610b57828260405180602001604052806000815250611c61565b816001600160a01b0316836001600160a01b0316036119f95760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016108f2565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611a71848484611676565b611a7d84848484611c94565b6111895760405162461bcd60e51b81526004016108f2906127ca565b6060600c80546107d490612548565b606081600003611acf5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611af95780611ae381612722565b9150611af29050600a83612787565b9150611ad3565b60008167ffffffffffffffff811115611b1457611b14612170565b6040519080825280601f01601f191660200182016040528015611b3e576020820181803683370190505b5090505b841561166e57611b5360018361273b565b9150611b60600a8661281c565b611b6b90603061270a565b60f81b818381518110611b8057611b80612582565b60200101906001600160f81b031916908160001a905350611ba2600a86612787565b9450611b42565b6001600160a01b038316611c0457611bff81600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b611c27565b816001600160a01b0316836001600160a01b031614611c2757611c278382611d95565b6001600160a01b038216611c3e5761099381611e32565b826001600160a01b0316826001600160a01b031614610993576109938282611ee1565b611c6b8383611f25565b611c786000848484611c94565b6109935760405162461bcd60e51b81526004016108f2906127ca565b60006001600160a01b0384163b15611d8a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611cd8903390899088908890600401612830565b6020604051808303816000875af1925050508015611d13575060408051601f3d908101601f19168201909252611d109181019061286d565b60015b611d70573d808015611d41576040519150601f19603f3d011682016040523d82523d6000602084013e611d46565b606091505b508051600003611d685760405162461bcd60e51b81526004016108f2906127ca565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061166e565b506001949350505050565b60006001611da284610e3a565b611dac919061273b565b600083815260086020526040902054909150808214611dff576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b600954600090611e449060019061273b565b6000838152600a602052604081205460098054939450909284908110611e6c57611e6c612582565b906000526020600020015490508060098381548110611e8d57611e8d612582565b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480611ec557611ec561288a565b6001900381819060005260206000200160009055905550505050565b6000611eec83610e3a565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b6001600160a01b038216611f7b5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016108f2565b6000818152600360205260409020546001600160a01b031615611fe05760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108f2565b611fec60008383611ba9565b6001600160a01b038216600090815260046020526040812080546001929061201590849061270a565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b0319811681146114d757600080fd5b60006020828403121561209b57600080fd5b813561130281612073565b60005b838110156120c15781810151838201526020016120a9565b838111156111895750506000910152565b600081518084526120ea8160208601602086016120a6565b601f01601f19169290920160200192915050565b60208152600061130260208301846120d2565b60006020828403121561212357600080fd5b5035919050565b80356001600160a01b038116811461214157600080fd5b919050565b6000806040838503121561215957600080fd5b6121628361212a565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156121af576121af612170565b604052919050565b600067ffffffffffffffff8211156121d1576121d1612170565b5060051b60200190565b600060208083850312156121ee57600080fd5b823567ffffffffffffffff81111561220557600080fd5b8301601f8101851361221657600080fd5b8035612229612224826121b7565b612186565b81815260059190911b8201830190838101908783111561224857600080fd5b928401925b828410156122665783358252928401929084019061224d565b979650505050505050565b60008060006060848603121561228657600080fd5b61228f8461212a565b925061229d6020850161212a565b9150604084013590509250925092565b600067ffffffffffffffff8311156122c7576122c7612170565b6122da601f8401601f1916602001612186565b90508281528383830111156122ee57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561231757600080fd5b813567ffffffffffffffff81111561232e57600080fd5b8201601f8101841361233f57600080fd5b61166e848235602084016122ad565b60006020828403121561236057600080fd5b6113028261212a565b6020808252825182820181905260009190848201906040850190845b818110156123a157835183529284019291840191600101612385565b50909695505050505050565b600080604083850312156123c057600080fd5b6123c98361212a565b9150602083013580151581146123de57600080fd5b809150509250929050565b600080600080608085870312156123ff57600080fd5b6124088561212a565b93506124166020860161212a565b925060408501359150606085013567ffffffffffffffff81111561243957600080fd5b8501601f8101871361244a57600080fd5b612459878235602084016122ad565b91505092959194509250565b6000806040838503121561247857600080fd5b823591506124886020840161212a565b90509250929050565b600080604083850312156124a457600080fd5b6124ad8361212a565b91506124886020840161212a565b600060208083850312156124ce57600080fd5b823567ffffffffffffffff8111156124e557600080fd5b8301601f810185136124f657600080fd5b8035612504612224826121b7565b81815260059190911b8201830190838101908783111561252357600080fd5b928401925b82841015612266576125398461212a565b82529284019290840190612528565b600181811c9082168061255c57607f821691505b60208210810361257c57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b601f82111561099357600081815260208120601f850160051c8101602086101561260d5750805b601f850160051c820191505b8181101561262c57828155600101612619565b505050505050565b815167ffffffffffffffff81111561264e5761264e612170565b6126628161265c8454612548565b846125e6565b602080601f831160018114612697576000841561267f5750858301515b600019600386901b1c1916600185901b17855561262c565b600085815260208120601f198616915b828110156126c6578886015182559484019460019091019084016126a7565b50858210156126e45787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b6000821982111561271d5761271d6126f4565b500190565b600060018201612734576127346126f4565b5060010190565b60008282101561274d5761274d6126f4565b500390565b600081600019048311821515161561276c5761276c6126f4565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261279657612796612771565b500490565b600083516127ad8184602088016120a6565b8351908301906127c18183602088016120a6565b01949350505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008261282b5761282b612771565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612863908301846120d2565b9695505050505050565b60006020828403121561287f57600080fd5b815161130281612073565b634e487b7160e01b600052603160045260246000fdfea264697066735822122091bb50c99ceebfbaa142575339c1d696f9dc71d7461dc0852738cd5924545d8564736f6c634300080f0033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000943726f446f6f4e46540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000643524f444f4f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000043697066733a2f2f6261667962656961357870646a646f617072646769363768326d6a6e7a727869716f74656377616a796b686878706a7a72337876756a6f7065736d2f0000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102465760003560e01c8063715018a611610139578063b88d4fde116100b6578063d0520c231161007a578063d0520c2314610685578063db4f6d31146106f4578063e985e9c5146106fc578063edac985b14610745578063f0292a0314610765578063f2fde38b1461077a57600080fd5b8063b88d4fde146105f3578063bfa457bc14610613578063c002d23d14610633578063c4ae316814610650578063c87b56dd1461066557600080fd5b806395d89b41116100fd57806395d89b4114610574578063a0712d6814610589578063a22cb4651461059c578063aca9938d146105bc578063b187bd26146105d957600080fd5b8063715018a6146104e957806375935d11146104fe57806386d026081461052b5780638da5cb5b146105415780639578962b1461055f57600080fd5b806333df048e116101c75780634f6ccce71161018b5780634f6ccce7146104545780635312ea8e14610474578063547eafd0146104945780636352211e146104a957806370a08231146104c957600080fd5b806333df048e146103b15780633af32abf146103c65780633ccfd60b146103ff5780633cd972ac1461041457806342842e0e1461043457600080fd5b806318160ddd1161020e57806318160ddd1461031c57806323b872dd1461033b5780632f745c591461035b57806330176e131461037b57806332cb6b0c1461039b57600080fd5b806301ffc9a71461024b57806306fdde0314610280578063081812fc146102a2578063095ea7b3146102da57806313ece816146102fc575b600080fd5b34801561025757600080fd5b5061026b610266366004612089565b61079a565b60405190151581526020015b60405180910390f35b34801561028c57600080fd5b506102956107c5565b60405161027791906120fe565b3480156102ae57600080fd5b506102c26102bd366004612111565b610857565b6040516001600160a01b039091168152602001610277565b3480156102e657600080fd5b506102fa6102f5366004612146565b61087e565b005b34801561030857600080fd5b506102fa6103173660046121db565b610998565b34801561032857600080fd5b506009545b604051908152602001610277565b34801561034757600080fd5b506102fa610356366004612271565b610a7c565b34801561036757600080fd5b5061032d610376366004612146565b610aad565b34801561038757600080fd5b506102fa610396366004612305565b610b43565b3480156103a757600080fd5b5061032d61162e81565b3480156103bd57600080fd5b5061032d610b5b565b3480156103d257600080fd5b5061026b6103e136600461234e565b6001600160a01b03166000908152600f602052604090205460ff1690565b34801561040b57600080fd5b506102fa610bb5565b34801561042057600080fd5b5061032d61042f366004612111565b610c1f565b34801561044057600080fd5b506102fa61044f366004612271565b610c45565b34801561046057600080fd5b5061032d61046f366004612111565b610c60565b34801561048057600080fd5b506102fa61048f366004612111565b610cf3565b3480156104a057600080fd5b506102fa610d28565b3480156104b557600080fd5b506102c26104c4366004612111565b610dda565b3480156104d557600080fd5b5061032d6104e436600461234e565b610e3a565b3480156104f557600080fd5b506102fa610ec0565b34801561050a57600080fd5b5061051e61051936600461234e565b610ed4565b6040516102779190612369565b34801561053757600080fd5b5061032d60105481565b34801561054d57600080fd5b506000546001600160a01b03166102c2565b34801561056b57600080fd5b5061032d600581565b34801561058057600080fd5b50610295610f76565b6102fa610597366004612111565b610f85565b3480156105a857600080fd5b506102fa6105b73660046123ad565b61114c565b3480156105c857600080fd5b5061032d6801e5b8fa8fe2ac000081565b3480156105e557600080fd5b50600b5461026b9060ff1681565b3480156105ff57600080fd5b506102fa61060e3660046123e9565b611157565b34801561061f57600080fd5b506102fa61062e366004612465565b61118f565b34801561063f57600080fd5b5061032d68022b1c8c1227a0000081565b34801561065c57600080fd5b506102fa61124d565b34801561067157600080fd5b50610295610680366004612111565b6112a2565b34801561069157600080fd5b5061069a611309565b6040516102779190600060e08201905082511515825260208301511515602083015260408301516040830152606083015160608301526080830151608083015260a083015160a083015260c083015160c083015292915050565b6102fa6113b4565b34801561070857600080fd5b5061026b610717366004612491565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561075157600080fd5b506102fa6107603660046124bb565b6113bd565b34801561077157600080fd5b5061032d600a81565b34801561078657600080fd5b506102fa61079536600461234e565b611461565b60006001600160e01b0319821663780e9d6360e01b14806107bf57506107bf826114da565b92915050565b6060600180546107d490612548565b80601f016020809104026020016040519081016040528092919081815260200182805461080090612548565b801561084d5780601f106108225761010080835404028352916020019161084d565b820191906000526020600020905b81548152906001019060200180831161083057829003601f168201915b5050505050905090565b60006108628261152a565b506000908152600560205260409020546001600160a01b031690565b600061088982610dda565b9050806001600160a01b0316836001600160a01b0316036108fb5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b038216148061091757506109178133610717565b6109895760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c000060648201526084016108f2565b6109938383611589565b505050565b6000805b8251811015610a135760008382815181106109b9576109b9612582565b602002602001015190506109ca3390565b6001600160a01b03166109dc82610dda565b6001600160a01b031603610a0a576109f381610c1f565b601254600083815260116020526040902055909201915b5060010161099c565b50604051339082156108fc029083906000818181858888f19350505050158015610a41573d6000803e3d6000fd5b5060405181815233907f8fbbda19f4a70036f6f585dc4160142a8fa2a20ffb9393d23274f78de4e39888906020015b60405180910390a25050565b610a8633826115f7565b610aa25760405162461bcd60e51b81526004016108f290612598565b610993838383611676565b6000610ab883610e3a565b8210610b1a5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016108f2565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b610b4b61181d565b600c610b578282612634565b5050565b60008080610b6833610e3a565b905060005b81811015610bad576000610b82335b83610aad565b9050610b8d81610c1f565b610b97908561270a565b9350508080610ba590612722565b915050610b6d565b509092915050565b610bbd61181d565b600e5460ff1615610be157604051635236c5b960e11b815260040160405180910390fd5b600d54604051339180156108fc02916000818181858888f19350505050158015610c0f573d6000803e3d6000fd5b50600e805460ff19166001179055565b600081815260116020526040812054601254610c3b919061273b565b6107bf908261270a565b61099383838360405180602001604052806000815250611157565b6000610c6b60095490565b8210610cce5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016108f2565b60098281548110610ce157610ce1612582565b90600052602060002001549050919050565b610cfb61181d565b604051339082156108fc029083906000818181858888f19350505050158015610b57573d6000803e3d6000fd5b600080610d3433610e3a565b905060005b81811015610d79576000610d4c33610b7c565b9050610d5781610c1f565b6012546000928352601160205260409092209190915590920191600101610d39565b50604051339083156108fc029084906000818181858888f19350505050158015610da7573d6000803e3d6000fd5b5060405182815233907f8fbbda19f4a70036f6f585dc4160142a8fa2a20ffb9393d23274f78de4e3988890602001610a70565b6000818152600360205260408120546001600160a01b0316806107bf5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016108f2565b60006001600160a01b038216610ea45760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016108f2565b506001600160a01b031660009081526004602052604090205490565b610ec861181d565b610ed26000611877565b565b60606000610ee183610e3a565b905060008167ffffffffffffffff811115610efe57610efe612170565b604051908082528060200260200182016040528015610f27578160200160208202803683370190505b50905060005b82811015610f6e57610f3f8582610aad565b828281518110610f5157610f51612582565b602090810291909101015280610f6681612722565b915050610f2d565b509392505050565b6060600280546107d490612548565b600b5460ff1615610fa957604051634c97d28b60e01b815260040160405180910390fd5b600a811115610fcb5760405163ec8e6a6360e01b815260040160405180910390fd5b80600003610fec57604051632a6ce29960e11b815260040160405180910390fd5b6000610ff7336103e1565b61100a5768022b1c8c1227a00000611015565b6801e5b8fa8fe2ac00005b905060006110238383612752565b9050600061103060095490565b905061162e61103f858361270a565b111561105e57604051633bd7ad7760e21b815260040160405180910390fd5b81341461107e5760405163cd1c886760e01b815260040160405180910390fd5b600081156110a8576064611093600534612752565b61109d9190612787565b90506110a8816118c7565b60015b8581116110e2576110c5336110c0838661270a565b61197e565b6012548382016000908152601160205260409020556001016110ab565b506110ed813461273b565b600d60008282546110fe919061270a565b909155505060408051838152602081018790524281830152905133917f5a3358a3d27a5373c0df2604662088d37894d56b7cfd27f315770440f4e0d919919081900360600190a25050505050565b610b57338383611998565b61116133836115f7565b61117d5760405162461bcd60e51b81526004016108f290612598565b61118984848484611a66565b50505050565b61119761181d565b60006111a260095490565b905061162e6111b1848361270a565b11156111d057604051633bd7ad7760e21b815260040160405180910390fd5b60015b838111611205576111e8836110c0838561270a565b6012548282016000908152601160205260409020556001016111d3565b5060408051828152602081018590524281830152905133917f5a3358a3d27a5373c0df2604662088d37894d56b7cfd27f315770440f4e0d919919081900360600190a2505050565b61125561181d565b600b805460ff8082161560ff1990921682179092556040519116151581527fb304fe5dd2d3c45e8ec87c1dd1bd2b3a773b3135e84a7b9151f5fb4bf1a06d0e9060200160405180910390a1565b60606112ad8261152a565b60006112b7611a99565b905060008151116112d75760405180602001604052806000815250611302565b806112e184611aa8565b6040516020016112f292919061279b565b6040516020818303038152906040525b9392505050565b61134d6040518060e0016040528060001515815260200160001515815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040805160e08101909152600b5460ff16151581526020810161136f336103e1565b1515815260200168022b1c8c1227a0000081526020016801e5b8fa8fe2ac0000815260200161139d60095490565b815260200161162e8152602001600a815250905090565b610ed2346118c7565b6113c561181d565b60005b8151811015611423576001600f60008484815181106113e9576113e9612582565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff19169115159190911790556001016113c8565b507fc7f0435a905d261229a9a162170db4f4e1d3f55b33a246cf8abf2aefe4f602fd815160405161145691815260200190565b60405180910390a150565b61146961181d565b6001600160a01b0381166114ce5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108f2565b6114d781611877565b50565b60006001600160e01b031982166380ac58cd60e01b148061150b57506001600160e01b03198216635b5e139f60e01b145b806107bf57506301ffc9a760e01b6001600160e01b03198316146107bf565b6000818152600360205260409020546001600160a01b03166114d75760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016108f2565b600081815260056020526040902080546001600160a01b0319166001600160a01b03841690811790915581906115be82610dda565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061160383610dda565b9050806001600160a01b0316846001600160a01b0316148061164a57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b8061166e5750836001600160a01b031661166384610857565b6001600160a01b0316145b949350505050565b826001600160a01b031661168982610dda565b6001600160a01b0316146116ed5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016108f2565b6001600160a01b03821661174f5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016108f2565b61175a838383611ba9565b611765600082611589565b6001600160a01b038316600090815260046020526040812080546001929061178e90849061273b565b90915550506001600160a01b03821660009081526004602052604081208054600192906117bc90849061270a565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000546001600160a01b03163314610ed25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108f2565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b806000036118e85760405163e3a12f6760e01b815260040160405180910390fd5b60006118f360095490565b905080600003611916576040516378ad1dcf60e11b815260040160405180910390fd5b81601054611924919061270a565b6010556119318183612787565b60126000828254611942919061270a565b90915550506040518281527f5a02b40077e797196e633f9dd9c358d21e6c6fce881c924fac5d583fc4359f979060200160405180910390a15050565b610b57828260405180602001604052806000815250611c61565b816001600160a01b0316836001600160a01b0316036119f95760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016108f2565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611a71848484611676565b611a7d84848484611c94565b6111895760405162461bcd60e51b81526004016108f2906127ca565b6060600c80546107d490612548565b606081600003611acf5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611af95780611ae381612722565b9150611af29050600a83612787565b9150611ad3565b60008167ffffffffffffffff811115611b1457611b14612170565b6040519080825280601f01601f191660200182016040528015611b3e576020820181803683370190505b5090505b841561166e57611b5360018361273b565b9150611b60600a8661281c565b611b6b90603061270a565b60f81b818381518110611b8057611b80612582565b60200101906001600160f81b031916908160001a905350611ba2600a86612787565b9450611b42565b6001600160a01b038316611c0457611bff81600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b611c27565b816001600160a01b0316836001600160a01b031614611c2757611c278382611d95565b6001600160a01b038216611c3e5761099381611e32565b826001600160a01b0316826001600160a01b031614610993576109938282611ee1565b611c6b8383611f25565b611c786000848484611c94565b6109935760405162461bcd60e51b81526004016108f2906127ca565b60006001600160a01b0384163b15611d8a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611cd8903390899088908890600401612830565b6020604051808303816000875af1925050508015611d13575060408051601f3d908101601f19168201909252611d109181019061286d565b60015b611d70573d808015611d41576040519150601f19603f3d011682016040523d82523d6000602084013e611d46565b606091505b508051600003611d685760405162461bcd60e51b81526004016108f2906127ca565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061166e565b506001949350505050565b60006001611da284610e3a565b611dac919061273b565b600083815260086020526040902054909150808214611dff576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b600954600090611e449060019061273b565b6000838152600a602052604081205460098054939450909284908110611e6c57611e6c612582565b906000526020600020015490508060098381548110611e8d57611e8d612582565b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480611ec557611ec561288a565b6001900381819060005260206000200160009055905550505050565b6000611eec83610e3a565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b6001600160a01b038216611f7b5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016108f2565b6000818152600360205260409020546001600160a01b031615611fe05760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108f2565b611fec60008383611ba9565b6001600160a01b038216600090815260046020526040812080546001929061201590849061270a565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b0319811681146114d757600080fd5b60006020828403121561209b57600080fd5b813561130281612073565b60005b838110156120c15781810151838201526020016120a9565b838111156111895750506000910152565b600081518084526120ea8160208601602086016120a6565b601f01601f19169290920160200192915050565b60208152600061130260208301846120d2565b60006020828403121561212357600080fd5b5035919050565b80356001600160a01b038116811461214157600080fd5b919050565b6000806040838503121561215957600080fd5b6121628361212a565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156121af576121af612170565b604052919050565b600067ffffffffffffffff8211156121d1576121d1612170565b5060051b60200190565b600060208083850312156121ee57600080fd5b823567ffffffffffffffff81111561220557600080fd5b8301601f8101851361221657600080fd5b8035612229612224826121b7565b612186565b81815260059190911b8201830190838101908783111561224857600080fd5b928401925b828410156122665783358252928401929084019061224d565b979650505050505050565b60008060006060848603121561228657600080fd5b61228f8461212a565b925061229d6020850161212a565b9150604084013590509250925092565b600067ffffffffffffffff8311156122c7576122c7612170565b6122da601f8401601f1916602001612186565b90508281528383830111156122ee57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561231757600080fd5b813567ffffffffffffffff81111561232e57600080fd5b8201601f8101841361233f57600080fd5b61166e848235602084016122ad565b60006020828403121561236057600080fd5b6113028261212a565b6020808252825182820181905260009190848201906040850190845b818110156123a157835183529284019291840191600101612385565b50909695505050505050565b600080604083850312156123c057600080fd5b6123c98361212a565b9150602083013580151581146123de57600080fd5b809150509250929050565b600080600080608085870312156123ff57600080fd5b6124088561212a565b93506124166020860161212a565b925060408501359150606085013567ffffffffffffffff81111561243957600080fd5b8501601f8101871361244a57600080fd5b612459878235602084016122ad565b91505092959194509250565b6000806040838503121561247857600080fd5b823591506124886020840161212a565b90509250929050565b600080604083850312156124a457600080fd5b6124ad8361212a565b91506124886020840161212a565b600060208083850312156124ce57600080fd5b823567ffffffffffffffff8111156124e557600080fd5b8301601f810185136124f657600080fd5b8035612504612224826121b7565b81815260059190911b8201830190838101908783111561252357600080fd5b928401925b82841015612266576125398461212a565b82529284019290840190612528565b600181811c9082168061255c57607f821691505b60208210810361257c57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b601f82111561099357600081815260208120601f850160051c8101602086101561260d5750805b601f850160051c820191505b8181101561262c57828155600101612619565b505050505050565b815167ffffffffffffffff81111561264e5761264e612170565b6126628161265c8454612548565b846125e6565b602080601f831160018114612697576000841561267f5750858301515b600019600386901b1c1916600185901b17855561262c565b600085815260208120601f198616915b828110156126c6578886015182559484019460019091019084016126a7565b50858210156126e45787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b6000821982111561271d5761271d6126f4565b500190565b600060018201612734576127346126f4565b5060010190565b60008282101561274d5761274d6126f4565b500390565b600081600019048311821515161561276c5761276c6126f4565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261279657612796612771565b500490565b600083516127ad8184602088016120a6565b8351908301906127c18183602088016120a6565b01949350505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008261282b5761282b612771565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612863908301846120d2565b9695505050505050565b60006020828403121561287f57600080fd5b815161130281612073565b634e487b7160e01b600052603160045260246000fdfea264697066735822122091bb50c99ceebfbaa142575339c1d696f9dc71d7461dc0852738cd5924545d8564736f6c634300080f0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000943726f446f6f4e46540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000643524f444f4f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000043697066733a2f2f6261667962656961357870646a646f617072646769363768326d6a6e7a727869716f74656377616a796b686878706a7a72337876756a6f7065736d2f0000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): CroDooNFT
Arg [1] : symbol (string): CRODOO
Arg [2] : uri (string): ipfs://bafybeia5xpdjdoaprdgi67h2mjnzrxiqotecwajykhhxpjzr3xvujopesm/
-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [4] : 43726f446f6f4e46540000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [6] : 43524f444f4f0000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000043
Arg [8] : 697066733a2f2f6261667962656961357870646a646f61707264676936376832
Arg [9] : 6d6a6e7a727869716f74656377616a796b686878706a7a72337876756a6f7065
Arg [10] : 736d2f0000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
CRONOS | 100.00% | $0.090754 | 0.4996 | $0.045339 |
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.