Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0.0762 ETH
Eth Value
$252.06 (@ $3,307.84/ETH)More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 540 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 18840678 | 396 days ago | IN | 0 ETH | 0.00178442 | ||||
Safe Transfer Fr... | 18534744 | 439 days ago | IN | 0 ETH | 0.00370073 | ||||
Set Approval For... | 17277658 | 615 days ago | IN | 0 ETH | 0.00194791 | ||||
Mint | 17228488 | 622 days ago | IN | 0.03 ETH | 0.01195589 | ||||
Set Approval For... | 16870396 | 673 days ago | IN | 0 ETH | 0.00233553 | ||||
Set Approval For... | 16775286 | 686 days ago | IN | 0 ETH | 0.00095881 | ||||
Set Approval For... | 15904661 | 808 days ago | IN | 0 ETH | 0.00066967 | ||||
Set Approval For... | 15850689 | 815 days ago | IN | 0 ETH | 0.00044115 | ||||
Set Approval For... | 15772855 | 826 days ago | IN | 0 ETH | 0.00084221 | ||||
Safe Transfer Fr... | 15772850 | 826 days ago | IN | 0 ETH | 0.00218769 | ||||
Safe Transfer Fr... | 15769232 | 827 days ago | IN | 0 ETH | 0.00206855 | ||||
Withdraw | 15763372 | 827 days ago | IN | 0 ETH | 0.00066909 | ||||
Set Approval For... | 15656777 | 842 days ago | IN | 0 ETH | 0.00024497 | ||||
Mint | 15619894 | 848 days ago | IN | 0.03 ETH | 0.00498748 | ||||
Withdraw | 15597266 | 851 days ago | IN | 0 ETH | 0.00039125 | ||||
Safe Transfer Fr... | 15588857 | 852 days ago | IN | 0 ETH | 0.00146443 | ||||
Safe Transfer Fr... | 15588854 | 852 days ago | IN | 0 ETH | 0.00167667 | ||||
Safe Transfer Fr... | 15542990 | 858 days ago | IN | 0 ETH | 0.00071109 | ||||
Safe Transfer Fr... | 15542979 | 858 days ago | IN | 0 ETH | 0.00067817 | ||||
Safe Transfer Fr... | 15509079 | 864 days ago | IN | 0 ETH | 0.00061869 | ||||
Set Approval For... | 15497583 | 866 days ago | IN | 0 ETH | 0.00147459 | ||||
Safe Transfer Fr... | 15491726 | 867 days ago | IN | 0 ETH | 0.00251711 | ||||
Safe Transfer Fr... | 15475457 | 869 days ago | IN | 0 ETH | 0.00119239 | ||||
Set Approval For... | 15442504 | 875 days ago | IN | 0 ETH | 0.00129382 | ||||
Withdraw | 15403825 | 881 days ago | IN | 0 ETH | 0.00046073 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
15763372 | 827 days ago | 0.0027 ETH | ||||
15597266 | 851 days ago | 0.0675 ETH | ||||
15403825 | 881 days ago | 0.126 ETH | ||||
15403429 | 881 days ago | 0.0189 ETH | ||||
15380196 | 884 days ago | 0.0189 ETH | ||||
15247098 | 905 days ago | 0.018 ETH | ||||
15202297 | 912 days ago | 0.0189 ETH | ||||
15199774 | 913 days ago | 0.0054 ETH | ||||
15177145 | 916 days ago | 0.306 ETH | ||||
15176127 | 916 days ago | 0.0405 ETH | ||||
15175370 | 916 days ago | 1.1088 ETH | ||||
15173573 | 917 days ago | 0.0864 ETH | ||||
15168328 | 918 days ago | 0.072 ETH | ||||
15160709 | 919 days ago | 0.0189 ETH | ||||
15160421 | 919 days ago | 3.582 ETH | ||||
15157393 | 919 days ago | 0.252 ETH | ||||
15157006 | 919 days ago | 0.1215 ETH | ||||
15155719 | 920 days ago | 0.081 ETH | ||||
15154928 | 920 days ago | 0.0756 ETH | ||||
15154898 | 920 days ago | 0.0486 ETH | ||||
15154245 | 920 days ago | 0.18 ETH | ||||
15153565 | 920 days ago | 0.135 ETH | ||||
15151291 | 920 days ago | 0.162 ETH | ||||
15150828 | 920 days ago | 1.845 ETH | ||||
15150665 | 920 days ago | 0.0621 ETH |
Loading...
Loading
Contract Name:
Creameow
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
Yes with 888 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/interfaces/IERC2981.sol"; import "@openzeppelin/contracts/interfaces/IERC20.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; pragma solidity ^0.8.10; contract Creameow is ERC721Enumerable, ERC721URIStorage, IERC2981, Pausable, Ownable, ERC721Burnable { using SafeMath for uint; using Address for address; using Counters for Counters.Counter; // MODIFIERS modifier onlyDevs() { require(devFees[msg.sender].percent > 0, "Dev Only: caller is not the developer"); _; } Counters.Counter private _tokenIdCounter; // STRUCTS struct DevFee { uint percent; uint amount; } //EVENTS event WithdrawFees(address indexed devAddress, uint amount); event WithdrawWrongTokens(address indexed devAddress, address tokenAddress, uint amount); event WithdrawWrongNfts(address indexed devAddress, address tokenAddress, uint tokenId); // CONSTANTS uint public constant MAX_SUPPLY = 5555; string public baseURI; // VARIABLES uint public maxSupply = MAX_SUPPLY; uint public maxPerTx = 5; uint public maxPerPerson = 5555; uint public price = 30000000000000000; address public royaltyAddress = 0xA0E1A63E39D2C97d93c79115234c4cdFE6f33067; uint public royalty = 750; address[] private devList; // MAPPINGS mapping(address => bool) public whiteListed; mapping(address => DevFee) public devFees; constructor( address[] memory _devList, uint[] memory _fees ) ERC721("Creameow", "CRME") { require(_devList.length == _fees.length, "Error: invalid data"); uint totalFee = 0; for (uint8 i = 0; i < _devList.length; i++) { devList.push(_devList[i]); devFees[_devList[i]] = DevFee(_fees[i], 0); totalFee += _fees[i]; } require(totalFee == 10000, "Error: invalid total fee"); _pause(); } function _baseURI() internal view override returns (string memory) { return baseURI; } function splitFees(uint sentAmount) internal { for (uint8 i = 0; i < devList.length; i++) { address devAddress = devList[i]; uint devFee = devFees[devAddress].percent; uint devFeeAmount = sentAmount.mul(devFee).div(10000); devFees[devAddress].amount += devFeeAmount; } } function mint(uint amount) public payable whenNotPaused { uint supply = totalSupply(); require(supply + amount - 1 < maxSupply, "Error: cannot mint more than total supply"); require(amount <= maxPerTx, "Error: max par tx limit"); require(balanceOf(msg.sender) + 1 <= maxPerPerson, "Error: max per address limit"); if(!whiteListed[msg.sender]) { if (price > 0) require(msg.value == price * amount, "Error: invalid price"); } else { require(amount == 1, "You can mint only 1 whitelisted"); whiteListed[msg.sender] = false; internalMint(msg.sender); return; } if (price > 0) require(msg.value == price * amount, "Error: invalid price"); for (uint i = 0; i < amount; i++) { internalMint(msg.sender); } if (price > 0 && msg.value > 0) splitFees(msg.value); } function tokenURI(uint tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory) { return super.tokenURI(tokenId); } function Owned(address _owner) external view returns (uint[] memory) { uint tokenCount = balanceOf(_owner); if (tokenCount == 0) { return new uint[](0); } else { uint[] memory result = new uint[](tokenCount); uint index; for (index = 0; index < tokenCount; ++index) { result[index] = tokenOfOwnerByIndex(_owner, index); } return result; } } function tokenExists(uint _id) external view returns (bool) { return (_exists(_id)); } function royaltyInfo(uint, uint _salePrice) external view override returns (address receiver, uint royaltyAmount) { return (royaltyAddress, (_salePrice * royalty) / 10000); } //dev function whiteList(address[] memory _addressList) external onlyOwner { require(_addressList.length > 0, "Error: list is empty"); for (uint i = 0; i < _addressList.length; ++i) { whiteListed[_addressList[i]] = true; } } function removeWhiteList(address[] memory addressList) external onlyOwner { require(addressList.length > 0, "Error: list is empty"); for (uint i = 0; i < addressList.length; ++i) whiteListed[addressList[i]] = false; } function updatePausedStatus() external onlyOwner { paused() ? _unpause() : _pause(); } function setMaxPerPerson(uint newMaxBuy) external onlyOwner { maxPerPerson = newMaxBuy; } function setMaxPerTx(uint newMaxBuy) external onlyOwner { maxPerTx = newMaxBuy; } function setBaseURI(string memory newBaseURI) external onlyOwner { baseURI = newBaseURI; } function setPrice(uint newPrice) external onlyOwner { price = newPrice; } function setURI(uint tokenId, string memory uri) external onlyOwner { _setTokenURI(tokenId, uri); } function setRoyalty(uint16 _royalty) external onlyOwner { require(_royalty <= 750, "Royalty must be lower than or equal to 7,5%"); royalty = _royalty; } function setRoyaltyAddress(address _royaltyAddress) external onlyOwner { royaltyAddress = _royaltyAddress; } //Overrides function internalMint(address to) internal { uint256 tokenId = _tokenIdCounter.current(); _tokenIdCounter.increment(); _safeMint(to, tokenId); } function safeMint(address to) public onlyOwner { internalMint(to); } function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable, IERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } function _beforeTokenTransfer( address from, address to, uint tokenId ) internal override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); } function _burn(uint tokenId) internal override(ERC721, ERC721URIStorage) { super._burn(tokenId); } /// @dev withdraw fees function withdraw() external onlyDevs { uint amount = devFees[msg.sender].amount; require(amount > 0, "Error: no fees :("); devFees[msg.sender].amount = 0; payable(msg.sender).transfer(amount); emit WithdrawFees(msg.sender, amount); } /// @dev emergency withdraw contract balance to the contract owner function emergencyWithdraw() external onlyOwner { uint amount = address(this).balance; require(amount > 0, "Error: no fees :("); for (uint8 i = 0; i < devList.length; i++) { address devAddress = devList[i]; devFees[devAddress].amount = 0; } payable(msg.sender).transfer(amount); emit WithdrawFees(msg.sender, amount); } function airdropsToken(address[] memory _addr, uint256 amount) public onlyOwner { for (uint256 i = 0; i < _addr.length; i++) { airdropTokenInternal(amount,_addr[i]); } } function airdropTokenInternal(uint256 amount, address _addr) internal { for (uint256 i = 0; i < amount; i++) { internalMint(_addr); } } /// @dev withdraw ERC20 tokens function withdrawTokens(address _tokenContract) external onlyOwner { IERC20 tokenContract = IERC20(_tokenContract); uint _amount = tokenContract.balanceOf(address(this)); tokenContract.transfer(owner(), _amount); emit WithdrawWrongTokens(msg.sender, _tokenContract, _amount); } /// @dev withdraw ERC721 tokens to the contract owner function withdrawNFT(address _tokenContract, uint[] memory _id) external onlyOwner { IERC721 tokenContract = IERC721(_tokenContract); for (uint i = 0; i < _id.length; i++) { tokenContract.safeTransferFrom(address(this), owner(), _id[i]); emit WithdrawWrongNfts(msg.sender, _tokenContract, _id[i]); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol) pragma solidity ^0.8.0; import "../token/ERC20/IERC20.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/extensions/ERC721URIStorage.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; /** * @dev ERC721 token with storage based token URI management. */ abstract contract ERC721URIStorage is ERC721 { using Strings for uint256; // Optional mapping for token URIs mapping(uint256 => string) private _tokenURIs; /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = _baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(base, _tokenURI)); } return super.tokenURI(tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @dev See {ERC721-_burn}. This override additionally checks to see if a * token-specific URI was set for the token, and if so, it deletes the token URI from * the storage mapping. */ function _burn(uint256 tokenId) internal virtual override { super._burn(tokenId); if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } } }
// 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/extensions/ERC721Burnable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../utils/Context.sol"; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _burn(tokenId); } }
// 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 (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 v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// 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 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 (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 (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 v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/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); }
{ "optimizer": { "enabled": true, "runs": 888 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address[]","name":"_devList","type":"address[]"},{"internalType":"uint256[]","name":"_fees","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"devAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"devAddress","type":"address"},{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"WithdrawWrongNfts","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"devAddress","type":"address"},{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawWrongTokens","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"Owned","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addr","type":"address[]"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"airdropsToken","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":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"devFees","outputs":[{"internalType":"uint256","name":"percent","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":[{"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":"maxPerPerson","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addressList","type":"address[]"}],"name":"removeWhiteList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"royalty","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"safeMint","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":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxBuy","type":"uint256"}],"name":"setMaxPerPerson","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxBuy","type":"uint256"}],"name":"setMaxPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_royalty","type":"uint16"}],"name":"setRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_royaltyAddress","type":"address"}],"name":"setRoyaltyAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"uri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"tokenExists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[],"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":"updatePausedStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addressList","type":"address[]"}],"name":"whiteList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whiteListed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenContract","type":"address"},{"internalType":"uint256[]","name":"_id","type":"uint256[]"}],"name":"withdrawNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenContract","type":"address"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526115b3600e8190556005600f55601055666a94d74f430000601155601280546001600160a01b03191673a0e1a63e39d2c97d93c79115234c4cdfe6f330671790556102ee6013553480156200005857600080fd5b5060405162003ef038038062003ef08339810160408190526200007b9162000579565b6040805180820182526008815267437265616d656f7760c01b60208083019182528351808501909452600484526343524d4560e01b908401528151919291620000c791600091620003f1565b508051620000dd906001906020840190620003f1565b5050600b805460ff1916905550620000f533620002f0565b80518251146200014c5760405162461bcd60e51b815260206004820152601360248201527f4572726f723a20696e76616c696420646174610000000000000000000000000060448201526064015b60405180910390fd5b6000805b83518160ff16101562000289576014848260ff168151811062000177576200017762000657565b60209081029190910181015182546001810184556000938452919092200180546001600160a01b0319166001600160a01b039092169190911790556040805180820190915283518190859060ff8516908110620001d857620001d862000657565b60200260200101518152602001600081525060166000868460ff168151811062000206576200020662000657565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206000820151816000015560208201518160010155905050828160ff16815181106200025d576200025d62000657565b60200260200101518262000272919062000683565b91508062000280816200069e565b91505062000150565b508061271014620002dd5760405162461bcd60e51b815260206004820152601860248201527f4572726f723a20696e76616c696420746f74616c206665650000000000000000604482015260640162000143565b620002e76200034a565b505050620006fe565b600b80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b62000354620003a7565b600b805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586200038a3390565b6040516001600160a01b03909116815260200160405180910390a1565b600b5460ff1615620003ef5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640162000143565b565b828054620003ff90620006c1565b90600052602060002090601f0160209004810192826200042357600085556200046e565b82601f106200043e57805160ff19168380011785556200046e565b828001600101855582156200046e579182015b828111156200046e57825182559160200191906001019062000451565b506200047c92915062000480565b5090565b5b808211156200047c576000815560010162000481565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715620004d857620004d862000497565b604052919050565b60006001600160401b03821115620004fc57620004fc62000497565b5060051b60200190565b600082601f8301126200051857600080fd5b81516020620005316200052b83620004e0565b620004ad565b82815260059290921b840181019181810190868411156200055157600080fd5b8286015b848110156200056e578051835291830191830162000555565b509695505050505050565b600080604083850312156200058d57600080fd5b82516001600160401b0380821115620005a557600080fd5b818501915085601f830112620005ba57600080fd5b81516020620005cd6200052b83620004e0565b82815260059290921b84018101918181019089841115620005ed57600080fd5b948201945b83861015620006245785516001600160a01b0381168114620006145760008081fd5b82529482019490820190620005f2565b918801519196509093505050808211156200063e57600080fd5b506200064d8582860162000506565b9150509250929050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082198211156200069957620006996200066d565b500190565b600060ff821660ff811415620006b857620006b86200066d565b60010192915050565b600181811c90821680620006d657607f821691505b60208210811415620006f857634e487b7160e01b600052602260045260246000fd5b50919050565b6137e2806200070e6000396000f3fe6080604052600436106103335760003560e01c806367dded4d116101b0578063a22cb465116100ec578063d5abeb0111610095578063f147efeb1161006f578063f147efeb14610917578063f2fde38b14610960578063f968adbe14610980578063fa0fca841461099657600080fd5b8063d5abeb01146108a3578063db2e21bc146108b9578063e985e9c5146108ce57600080fd5b8063c6f6f216116100c6578063c6f6f21614610836578063c87b56dd14610856578063d2f8dd451461087657600080fd5b8063a22cb465146107d6578063ad2f852a146107f6578063b88d4fde1461081657600080fd5b80638da5cb5b1161015957806395d89b411161013357806395d89b41146107785780639bdedea51461078d578063a035b1fe146107ad578063a0712d68146107c357600080fd5b80638da5cb5b1461071557806391b7f5ed1461073857806391c5f4a61461075857600080fd5b8063715018a61161018a578063715018a6146106ca578063768d7138146106df578063862440e2146106f557600080fd5b806367dded4d146106805780636c0360eb1461069557806370a08231146106aa57600080fd5b806332cb6b0c1161027f57806342966c68116102285780634f6ccce7116102025780634f6ccce71461060857806355f804b3146106285780635c975abb146106485780636352211e1461066057600080fd5b806342966c68146105a8578063483efda2146105c857806349df728c146105e857600080fd5b80633ccfd60b116102595780633ccfd60b1461055357806340d097c31461056857806342842e0e1461058857600080fd5b806332cb6b0c146104fd57806336e79a5a14610513578063397457911461053357600080fd5b806318160ddd116102e157806329ee566c116102bb57806329ee566c146104885780632a55205a1461049e5780632f745c59146104dd57600080fd5b806318160ddd1461042957806323b872dd1461044857806329413b121461046857600080fd5b806306fdde031161031257806306fdde03146103af578063081812fc146103d1578063095ea7b31461040957600080fd5b8062923f9e1461033857806301ffc9a71461036d57806306d254da1461038d575b600080fd5b34801561034457600080fd5b50610358610353366004612fef565b6109c6565b60405190151581526020015b60405180910390f35b34801561037957600080fd5b5061035861038836600461301e565b6109e7565b34801561039957600080fd5b506103ad6103a8366004613057565b610a25565b005b3480156103bb57600080fd5b506103c4610a4f565b60405161036491906130ca565b3480156103dd57600080fd5b506103f16103ec366004612fef565b610ae1565b6040516001600160a01b039091168152602001610364565b34801561041557600080fd5b506103ad6104243660046130dd565b610b08565b34801561043557600080fd5b506008545b604051908152602001610364565b34801561045457600080fd5b506103ad610463366004613107565b610c23565b34801561047457600080fd5b506103ad610483366004613220565b610c9c565b34801561049457600080fd5b5061043a60135481565b3480156104aa57600080fd5b506104be6104b9366004613265565b610ce5565b604080516001600160a01b039093168352602083019190915201610364565b3480156104e957600080fd5b5061043a6104f83660046130dd565b610d1f565b34801561050957600080fd5b5061043a6115b381565b34801561051f57600080fd5b506103ad61052e366004613287565b610dc7565b34801561053f57600080fd5b506103ad61054e3660046132ab565b610e54565b34801561055f57600080fd5b506103ad610f17565b34801561057457600080fd5b506103ad610583366004613057565b611070565b34801561059457600080fd5b506103ad6105a3366004613107565b611084565b3480156105b457600080fd5b506103ad6105c3366004612fef565b61109f565b3480156105d457600080fd5b506103ad6105e3366004612fef565b611114565b3480156105f457600080fd5b506103ad610603366004613057565b611121565b34801561061457600080fd5b5061043a610623366004612fef565b611293565b34801561063457600080fd5b506103ad610643366004613358565b611337565b34801561065457600080fd5b50600b5460ff16610358565b34801561066c57600080fd5b506103f161067b366004612fef565b611352565b34801561068c57600080fd5b506103ad6113b7565b3480156106a157600080fd5b506103c46113db565b3480156106b657600080fd5b5061043a6106c5366004613057565b611469565b3480156106d657600080fd5b506103ad611503565b3480156106eb57600080fd5b5061043a60105481565b34801561070157600080fd5b506103ad61071036600461338d565b611515565b34801561072157600080fd5b50600b5461010090046001600160a01b03166103f1565b34801561074457600080fd5b506103ad610753366004612fef565b611527565b34801561076457600080fd5b506103ad6107733660046132ab565b611534565b34801561078457600080fd5b506103c46115f3565b34801561079957600080fd5b506103ad6107a83660046133d4565b611602565b3480156107b957600080fd5b5061043a60115481565b6103ad6107d1366004612fef565b61174b565b3480156107e257600080fd5b506103ad6107f1366004613486565b611a3f565b34801561080257600080fd5b506012546103f1906001600160a01b031681565b34801561082257600080fd5b506103ad6108313660046134bd565b611a4a565b34801561084257600080fd5b506103ad610851366004612fef565b611ac3565b34801561086257600080fd5b506103c4610871366004612fef565b611ad0565b34801561088257600080fd5b50610896610891366004613057565b611adb565b6040516103649190613539565b3480156108af57600080fd5b5061043a600e5481565b3480156108c557600080fd5b506103ad611b98565b3480156108da57600080fd5b506103586108e936600461357d565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561092357600080fd5b5061094b610932366004613057565b6016602052600090815260409020805460019091015482565b60408051928352602083019190915201610364565b34801561096c57600080fd5b506103ad61097b366004613057565b611c7c565b34801561098c57600080fd5b5061043a600f5481565b3480156109a257600080fd5b506103586109b1366004613057565b60156020526000908152604090205460ff1681565b6000818152600260205260408120546001600160a01b031615155b92915050565b60006001600160e01b031982167f2a55205a0000000000000000000000000000000000000000000000000000000014806109e157506109e182611d09565b610a2d611d47565b601280546001600160a01b0319166001600160a01b0392909216919091179055565b606060008054610a5e906135b0565b80601f0160208091040260200160405190810160405280929190818152602001828054610a8a906135b0565b8015610ad75780601f10610aac57610100808354040283529160200191610ad7565b820191906000526020600020905b815481529060010190602001808311610aba57829003601f168201915b5050505050905090565b6000610aec82611da7565b506000908152600460205260409020546001600160a01b031690565b6000610b1382611352565b9050806001600160a01b0316836001600160a01b03161415610b865760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b0382161480610ba25750610ba281336108e9565b610c145760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610b7d565b610c1e8383611e0b565b505050565b610c2e335b82611e79565b610c915760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526d1c881b9bdc88185c1c1c9bdd995960921b6064820152608401610b7d565b610c1e838383611ef8565b610ca4611d47565b60005b8251811015610c1e57610cd382848381518110610cc657610cc66135e5565b60200260200101516120d0565b80610cdd81613611565b915050610ca7565b60125460135460009182916001600160a01b039091169061271090610d0a908661362c565b610d149190613661565b915091509250929050565b6000610d2a83611469565b8210610d9e5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610b7d565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b610dcf611d47565b6102ee8161ffff161115610e4b5760405162461bcd60e51b815260206004820152602b60248201527f526f79616c7479206d757374206265206c6f776572207468616e206f7220657160448201527f75616c20746f20372c35250000000000000000000000000000000000000000006064820152608401610b7d565b61ffff16601355565b610e5c611d47565b6000815111610ead5760405162461bcd60e51b815260206004820152601460248201527f4572726f723a206c69737420697320656d7074790000000000000000000000006044820152606401610b7d565b60005b8151811015610f1357600060156000848481518110610ed157610ed16135e5565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055610f0c81613611565b9050610eb0565b5050565b33600090815260166020526040902054610f995760405162461bcd60e51b815260206004820152602560248201527f446576204f6e6c793a2063616c6c6572206973206e6f7420746865206465766560448201527f6c6f7065720000000000000000000000000000000000000000000000000000006064820152608401610b7d565b3360009081526016602052604090206001015480610ff95760405162461bcd60e51b815260206004820152601160248201527f4572726f723a206e6f2066656573203a280000000000000000000000000000006044820152606401610b7d565b336000818152601660205260408082206001018290555183156108fc0291849190818181858888f19350505050158015611037573d6000803e3d6000fd5b5060405181815233907f9bba815921f12cb7b1408e14b5ade745234397d39623ae5e7c82d693cb45815f9060200160405180910390a250565b611078611d47565b611081816120f6565b50565b610c1e83838360405180602001604052806000815250611a4a565b6110a833610c28565b61110b5760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526d1c881b9bdc88185c1c1c9bdd995960921b6064820152608401610b7d565b6110818161211b565b61111c611d47565b601055565b611129611d47565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015281906000906001600160a01b038316906370a0823190602401602060405180830381865afa15801561118b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111af9190613675565b9050816001600160a01b031663a9059cbb6111d8600b546001600160a01b036101009091041690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af1158015611225573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611249919061368e565b50604080516001600160a01b03851681526020810183905233917f5aa586896a67fb05c3b86276f66eecee7da00719d0e7299c403596fa2ec58ca4910160405180910390a2505050565b600061129e60085490565b82106113125760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610b7d565b60088281548110611325576113256135e5565b90600052602060002001549050919050565b61133f611d47565b8051610f1390600d906020840190612f20565b6000818152600260205260408120546001600160a01b0316806109e15760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610b7d565b6113bf611d47565b600b5460ff166113d3576113d1612124565b565b6113d161217e565b600d80546113e8906135b0565b80601f0160208091040260200160405190810160405280929190818152602001828054611414906135b0565b80156114615780601f1061143657610100808354040283529160200191611461565b820191906000526020600020905b81548152906001019060200180831161144457829003601f168201915b505050505081565b60006001600160a01b0382166114e75760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152608401610b7d565b506001600160a01b031660009081526003602052604090205490565b61150b611d47565b6113d160006121b7565b61151d611d47565b610f138282612228565b61152f611d47565b601155565b61153c611d47565b600081511161158d5760405162461bcd60e51b815260206004820152601460248201527f4572726f723a206c69737420697320656d7074790000000000000000000000006044820152606401610b7d565b60005b8151811015610f13576001601560008484815181106115b1576115b16135e5565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff19169115159190911790556115ec81613611565b9050611590565b606060018054610a5e906135b0565b61160a611d47565b8160005b825181101561174557816001600160a01b03166342842e0e3061163f600b546001600160a01b036101009091041690565b868581518110611651576116516135e5565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b1580156116ab57600080fd5b505af11580156116bf573d6000803e3d6000fd5b50505050336001600160a01b03167fb8dbf4ce06446b88ef02ffd28a948c2637ac80fb0bd4d3a31c70878c1046eb7f85858481518110611701576117016135e5565b602002602001015160405161172b9291906001600160a01b03929092168252602082015260400190565b60405180910390a28061173d81613611565b91505061160e565b50505050565b6117536122d1565b600061175e60085490565b600e54909150600161177084846136ab565b61177a91906136c3565b106117ed5760405162461bcd60e51b815260206004820152602960248201527f4572726f723a2063616e6e6f74206d696e74206d6f7265207468616e20746f7460448201527f616c20737570706c7900000000000000000000000000000000000000000000006064820152608401610b7d565b600f5482111561183f5760405162461bcd60e51b815260206004820152601760248201527f4572726f723a206d617820706172207478206c696d69740000000000000000006044820152606401610b7d565b60105461184b33611469565b6118569060016136ab565b11156118a45760405162461bcd60e51b815260206004820152601c60248201527f4572726f723a206d6178207065722061646472657373206c696d6974000000006044820152606401610b7d565b3360009081526015602052604090205460ff16611924576011541561191f57816011546118d1919061362c565b341461191f5760405162461bcd60e51b815260206004820152601460248201527f4572726f723a20696e76616c69642070726963650000000000000000000000006044820152606401610b7d565b611994565b816001146119745760405162461bcd60e51b815260206004820152601f60248201527f596f752063616e206d696e74206f6e6c7920312077686974656c6973746564006044820152606401610b7d565b336000818152601560205260409020805460ff19169055610f13906120f6565b601154156119f857816011546119aa919061362c565b34146119f85760405162461bcd60e51b815260206004820152601460248201527f4572726f723a20696e76616c69642070726963650000000000000000000000006044820152606401610b7d565b60005b82811015611a1e57611a0c336120f6565b80611a1681613611565b9150506119fb565b506000601154118015611a315750600034115b15610f1357610f1334612324565b610f133383836123d7565b611a543383611e79565b611ab75760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526d1c881b9bdc88185c1c1c9bdd995960921b6064820152608401610b7d565b611745848484846124a6565b611acb611d47565b600f55565b60606109e182612524565b60606000611ae883611469565b905080611b095760408051600080825260208201909252905b509392505050565b60008167ffffffffffffffff811115611b2457611b24613143565b604051908082528060200260200182016040528015611b4d578160200160208202803683370190505b50905060005b82811015611b0157611b658582610d1f565b828281518110611b7757611b776135e5565b6020908102919091010152611b8b81613611565b9050611b53565b50919050565b611ba0611d47565b4780611bee5760405162461bcd60e51b815260206004820152601160248201527f4572726f723a206e6f2066656573203a280000000000000000000000000000006044820152606401610b7d565b60005b60145460ff82161015611c4e57600060148260ff1681548110611c1657611c166135e5565b60009182526020808320909101546001600160a01b031682526016905260408120600101555080611c46816136da565b915050611bf1565b50604051339082156108fc029083906000818181858888f19350505050158015611037573d6000803e3d6000fd5b611c84611d47565b6001600160a01b038116611d005760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b7d565b611081816121b7565b60006001600160e01b031982167f780e9d630000000000000000000000000000000000000000000000000000000014806109e157506109e182612620565b600b546001600160a01b036101009091041633146113d15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b7d565b6000818152600260205260409020546001600160a01b03166110815760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610b7d565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611e4082611352565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611e8583611352565b9050806001600160a01b0316846001600160a01b03161480611ecc57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80611ef05750836001600160a01b0316611ee584610ae1565b6001600160a01b0316145b949350505050565b826001600160a01b0316611f0b82611352565b6001600160a01b031614611f875760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610b7d565b6001600160a01b0382166120025760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610b7d565b61200d8383836126bb565b612018600082611e0b565b6001600160a01b03831660009081526003602052604081208054600192906120419084906136c3565b90915550506001600160a01b038216600090815260036020526040812080546001929061206f9084906136ab565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60005b82811015610c1e576120e4826120f6565b806120ee81613611565b9150506120d3565b6000612101600c5490565b9050612111600c80546001019055565b610f1382826126c6565b611081816126e0565b61212c6122d1565b600b805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586121613390565b6040516001600160a01b03909116815260200160405180910390a1565b612186612720565b600b805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33612161565b600b80546001600160a01b038381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff85161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000828152600260205260409020546001600160a01b03166122b25760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201527f6578697374656e7420746f6b656e0000000000000000000000000000000000006064820152608401610b7d565b6000828152600a602090815260409091208251610c1e92840190612f20565b600b5460ff16156113d15760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610b7d565b60005b60145460ff82161015610f1357600060148260ff168154811061234c5761234c6135e5565b60009182526020808320909101546001600160a01b0316808352601690915260408220549092509061238a6127106123848785612772565b90612785565b6001600160a01b0384166000908152601660205260408120600101805492935083929091906123ba9084906136ab565b9250508190555050505080806123cf906136da565b915050612327565b816001600160a01b0316836001600160a01b031614156124395760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b7d565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6124b1848484611ef8565b6124bd84848484612791565b6117455760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b7d565b606061252f82611da7565b6000828152600a602052604081208054612548906135b0565b80601f0160208091040260200160405190810160405280929190818152602001828054612574906135b0565b80156125c15780601f10612596576101008083540402835291602001916125c1565b820191906000526020600020905b8154815290600101906020018083116125a457829003601f168201915b5050505050905060006125d26128da565b90508051600014156125e5575092915050565b8151156126175780826040516020016125ff9291906136fa565b60405160208183030381529060405292505050919050565b611ef0846128e9565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061268357506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806109e157507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316146109e1565b610c1e83838361294f565b610f13828260405180602001604052806000815250612a07565b6126e981612a85565b6000818152600a602052604090208054612702906135b0565b159050611081576000818152600a6020526040812061108191612fa4565b600b5460ff166113d15760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610b7d565b600061277e828461362c565b9392505050565b600061277e8284613661565b60006001600160a01b0384163b156128cf57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906127d5903390899088908890600401613729565b6020604051808303816000875af1925050508015612810575060408051601f3d908101601f1916820190925261280d91810190613765565b60015b6128b5573d80801561283e576040519150601f19603f3d011682016040523d82523d6000602084013e612843565b606091505b5080516128ad5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b7d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611ef0565b506001949350505050565b6060600d8054610a5e906135b0565b60606128f482611da7565b60006128fe6128da565b9050600081511161291e576040518060200160405280600081525061277e565b8061292884612b2c565b6040516020016129399291906136fa565b6040516020818303038152906040529392505050565b6001600160a01b0383166129aa576129a581600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6129cd565b816001600160a01b0316836001600160a01b0316146129cd576129cd8382612c42565b6001600160a01b0382166129e457610c1e81612cdf565b826001600160a01b0316826001600160a01b031614610c1e57610c1e8282612d8e565b612a118383612dd2565b612a1e6000848484612791565b610c1e5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b7d565b6000612a9082611352565b9050612a9e816000846126bb565b612aa9600083611e0b565b6001600160a01b0381166000908152600360205260408120805460019290612ad29084906136c3565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b606081612b505750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612b7a5780612b6481613611565b9150612b739050600a83613661565b9150612b54565b60008167ffffffffffffffff811115612b9557612b95613143565b6040519080825280601f01601f191660200182016040528015612bbf576020820181803683370190505b5090505b8415611ef057612bd46001836136c3565b9150612be1600a86613782565b612bec9060306136ab565b60f81b818381518110612c0157612c016135e5565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612c3b600a86613661565b9450612bc3565b60006001612c4f84611469565b612c5991906136c3565b600083815260076020526040902054909150808214612cac576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612cf1906001906136c3565b60008381526009602052604081205460088054939450909284908110612d1957612d196135e5565b906000526020600020015490508060088381548110612d3a57612d3a6135e5565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612d7257612d72613796565b6001900381819060005260206000200160009055905550505050565b6000612d9983611469565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b038216612e285760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b7d565b6000818152600260205260409020546001600160a01b031615612e8d5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b7d565b612e99600083836126bb565b6001600160a01b0382166000908152600360205260408120805460019290612ec29084906136ab565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612f2c906135b0565b90600052602060002090601f016020900481019282612f4e5760008555612f94565b82601f10612f6757805160ff1916838001178555612f94565b82800160010185558215612f94579182015b82811115612f94578251825591602001919060010190612f79565b50612fa0929150612fda565b5090565b508054612fb0906135b0565b6000825580601f10612fc0575050565b601f01602090049060005260206000209081019061108191905b5b80821115612fa05760008155600101612fdb565b60006020828403121561300157600080fd5b5035919050565b6001600160e01b03198116811461108157600080fd5b60006020828403121561303057600080fd5b813561277e81613008565b80356001600160a01b038116811461305257600080fd5b919050565b60006020828403121561306957600080fd5b61277e8261303b565b60005b8381101561308d578181015183820152602001613075565b838111156117455750506000910152565b600081518084526130b6816020860160208601613072565b601f01601f19169290920160200192915050565b60208152600061277e602083018461309e565b600080604083850312156130f057600080fd5b6130f98361303b565b946020939093013593505050565b60008060006060848603121561311c57600080fd5b6131258461303b565b92506131336020850161303b565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561318257613182613143565b604052919050565b600067ffffffffffffffff8211156131a4576131a4613143565b5060051b60200190565b600082601f8301126131bf57600080fd5b813560206131d46131cf8361318a565b613159565b82815260059290921b840181019181810190868411156131f357600080fd5b8286015b84811015613215576132088161303b565b83529183019183016131f7565b509695505050505050565b6000806040838503121561323357600080fd5b823567ffffffffffffffff81111561324a57600080fd5b613256858286016131ae565b95602094909401359450505050565b6000806040838503121561327857600080fd5b50508035926020909101359150565b60006020828403121561329957600080fd5b813561ffff8116811461277e57600080fd5b6000602082840312156132bd57600080fd5b813567ffffffffffffffff8111156132d457600080fd5b611ef0848285016131ae565b600067ffffffffffffffff8311156132fa576132fa613143565b61330d601f8401601f1916602001613159565b905082815283838301111561332157600080fd5b828260208301376000602084830101529392505050565b600082601f83011261334957600080fd5b61277e838335602085016132e0565b60006020828403121561336a57600080fd5b813567ffffffffffffffff81111561338157600080fd5b611ef084828501613338565b600080604083850312156133a057600080fd5b82359150602083013567ffffffffffffffff8111156133be57600080fd5b6133ca85828601613338565b9150509250929050565b600080604083850312156133e757600080fd5b6133f08361303b565b915060208084013567ffffffffffffffff81111561340d57600080fd5b8401601f8101861361341e57600080fd5b803561342c6131cf8261318a565b81815260059190911b8201830190838101908883111561344b57600080fd5b928401925b8284101561346957833582529284019290840190613450565b80955050505050509250929050565b801515811461108157600080fd5b6000806040838503121561349957600080fd5b6134a28361303b565b915060208301356134b281613478565b809150509250929050565b600080600080608085870312156134d357600080fd5b6134dc8561303b565b93506134ea6020860161303b565b925060408501359150606085013567ffffffffffffffff81111561350d57600080fd5b8501601f8101871361351e57600080fd5b61352d878235602084016132e0565b91505092959194509250565b6020808252825182820181905260009190848201906040850190845b8181101561357157835183529284019291840191600101613555565b50909695505050505050565b6000806040838503121561359057600080fd5b6135998361303b565b91506135a76020840161303b565b90509250929050565b600181811c908216806135c457607f821691505b60208210811415611b9257634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415613625576136256135fb565b5060010190565b6000816000190483118215151615613646576136466135fb565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826136705761367061364b565b500490565b60006020828403121561368757600080fd5b5051919050565b6000602082840312156136a057600080fd5b815161277e81613478565b600082198211156136be576136be6135fb565b500190565b6000828210156136d5576136d56135fb565b500390565b600060ff821660ff8114156136f1576136f16135fb565b60010192915050565b6000835161370c818460208801613072565b835190830190613720818360208801613072565b01949350505050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261375b608083018461309e565b9695505050505050565b60006020828403121561377757600080fd5b815161277e81613008565b6000826137915761379161364b565b500690565b634e487b7160e01b600052603160045260246000fdfea26469706673582212202578674f2d6b26e779ad8e2f28ded6d72c743915d5df0fa5e666d96df0fcf89064736f6c634300080a00330000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000050000000000000000000000003acdc09a3c4fc659bfda7cfe8e6b04237d751e18000000000000000000000000982d9a2e8d487c698b29e72701068a5ac207e139000000000000000000000000f60b7751b3227b4a34477ab144358d44f21d6fc0000000000000000000000000a6e950aa70ebaaf99686a5d95afe8aca8b5e353b00000000000000000000000075d05f4d65726dca39485464ba736f16b980016d0000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000038400000000000000000000000000000000000000000000000000000000000005dc000000000000000000000000000000000000000000000000000000000000038400000000000000000000000000000000000000000000000000000000000002bc0000000000000000000000000000000000000000000000000000000000001770
Deployed Bytecode
0x6080604052600436106103335760003560e01c806367dded4d116101b0578063a22cb465116100ec578063d5abeb0111610095578063f147efeb1161006f578063f147efeb14610917578063f2fde38b14610960578063f968adbe14610980578063fa0fca841461099657600080fd5b8063d5abeb01146108a3578063db2e21bc146108b9578063e985e9c5146108ce57600080fd5b8063c6f6f216116100c6578063c6f6f21614610836578063c87b56dd14610856578063d2f8dd451461087657600080fd5b8063a22cb465146107d6578063ad2f852a146107f6578063b88d4fde1461081657600080fd5b80638da5cb5b1161015957806395d89b411161013357806395d89b41146107785780639bdedea51461078d578063a035b1fe146107ad578063a0712d68146107c357600080fd5b80638da5cb5b1461071557806391b7f5ed1461073857806391c5f4a61461075857600080fd5b8063715018a61161018a578063715018a6146106ca578063768d7138146106df578063862440e2146106f557600080fd5b806367dded4d146106805780636c0360eb1461069557806370a08231146106aa57600080fd5b806332cb6b0c1161027f57806342966c68116102285780634f6ccce7116102025780634f6ccce71461060857806355f804b3146106285780635c975abb146106485780636352211e1461066057600080fd5b806342966c68146105a8578063483efda2146105c857806349df728c146105e857600080fd5b80633ccfd60b116102595780633ccfd60b1461055357806340d097c31461056857806342842e0e1461058857600080fd5b806332cb6b0c146104fd57806336e79a5a14610513578063397457911461053357600080fd5b806318160ddd116102e157806329ee566c116102bb57806329ee566c146104885780632a55205a1461049e5780632f745c59146104dd57600080fd5b806318160ddd1461042957806323b872dd1461044857806329413b121461046857600080fd5b806306fdde031161031257806306fdde03146103af578063081812fc146103d1578063095ea7b31461040957600080fd5b8062923f9e1461033857806301ffc9a71461036d57806306d254da1461038d575b600080fd5b34801561034457600080fd5b50610358610353366004612fef565b6109c6565b60405190151581526020015b60405180910390f35b34801561037957600080fd5b5061035861038836600461301e565b6109e7565b34801561039957600080fd5b506103ad6103a8366004613057565b610a25565b005b3480156103bb57600080fd5b506103c4610a4f565b60405161036491906130ca565b3480156103dd57600080fd5b506103f16103ec366004612fef565b610ae1565b6040516001600160a01b039091168152602001610364565b34801561041557600080fd5b506103ad6104243660046130dd565b610b08565b34801561043557600080fd5b506008545b604051908152602001610364565b34801561045457600080fd5b506103ad610463366004613107565b610c23565b34801561047457600080fd5b506103ad610483366004613220565b610c9c565b34801561049457600080fd5b5061043a60135481565b3480156104aa57600080fd5b506104be6104b9366004613265565b610ce5565b604080516001600160a01b039093168352602083019190915201610364565b3480156104e957600080fd5b5061043a6104f83660046130dd565b610d1f565b34801561050957600080fd5b5061043a6115b381565b34801561051f57600080fd5b506103ad61052e366004613287565b610dc7565b34801561053f57600080fd5b506103ad61054e3660046132ab565b610e54565b34801561055f57600080fd5b506103ad610f17565b34801561057457600080fd5b506103ad610583366004613057565b611070565b34801561059457600080fd5b506103ad6105a3366004613107565b611084565b3480156105b457600080fd5b506103ad6105c3366004612fef565b61109f565b3480156105d457600080fd5b506103ad6105e3366004612fef565b611114565b3480156105f457600080fd5b506103ad610603366004613057565b611121565b34801561061457600080fd5b5061043a610623366004612fef565b611293565b34801561063457600080fd5b506103ad610643366004613358565b611337565b34801561065457600080fd5b50600b5460ff16610358565b34801561066c57600080fd5b506103f161067b366004612fef565b611352565b34801561068c57600080fd5b506103ad6113b7565b3480156106a157600080fd5b506103c46113db565b3480156106b657600080fd5b5061043a6106c5366004613057565b611469565b3480156106d657600080fd5b506103ad611503565b3480156106eb57600080fd5b5061043a60105481565b34801561070157600080fd5b506103ad61071036600461338d565b611515565b34801561072157600080fd5b50600b5461010090046001600160a01b03166103f1565b34801561074457600080fd5b506103ad610753366004612fef565b611527565b34801561076457600080fd5b506103ad6107733660046132ab565b611534565b34801561078457600080fd5b506103c46115f3565b34801561079957600080fd5b506103ad6107a83660046133d4565b611602565b3480156107b957600080fd5b5061043a60115481565b6103ad6107d1366004612fef565b61174b565b3480156107e257600080fd5b506103ad6107f1366004613486565b611a3f565b34801561080257600080fd5b506012546103f1906001600160a01b031681565b34801561082257600080fd5b506103ad6108313660046134bd565b611a4a565b34801561084257600080fd5b506103ad610851366004612fef565b611ac3565b34801561086257600080fd5b506103c4610871366004612fef565b611ad0565b34801561088257600080fd5b50610896610891366004613057565b611adb565b6040516103649190613539565b3480156108af57600080fd5b5061043a600e5481565b3480156108c557600080fd5b506103ad611b98565b3480156108da57600080fd5b506103586108e936600461357d565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561092357600080fd5b5061094b610932366004613057565b6016602052600090815260409020805460019091015482565b60408051928352602083019190915201610364565b34801561096c57600080fd5b506103ad61097b366004613057565b611c7c565b34801561098c57600080fd5b5061043a600f5481565b3480156109a257600080fd5b506103586109b1366004613057565b60156020526000908152604090205460ff1681565b6000818152600260205260408120546001600160a01b031615155b92915050565b60006001600160e01b031982167f2a55205a0000000000000000000000000000000000000000000000000000000014806109e157506109e182611d09565b610a2d611d47565b601280546001600160a01b0319166001600160a01b0392909216919091179055565b606060008054610a5e906135b0565b80601f0160208091040260200160405190810160405280929190818152602001828054610a8a906135b0565b8015610ad75780601f10610aac57610100808354040283529160200191610ad7565b820191906000526020600020905b815481529060010190602001808311610aba57829003601f168201915b5050505050905090565b6000610aec82611da7565b506000908152600460205260409020546001600160a01b031690565b6000610b1382611352565b9050806001600160a01b0316836001600160a01b03161415610b865760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b0382161480610ba25750610ba281336108e9565b610c145760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610b7d565b610c1e8383611e0b565b505050565b610c2e335b82611e79565b610c915760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526d1c881b9bdc88185c1c1c9bdd995960921b6064820152608401610b7d565b610c1e838383611ef8565b610ca4611d47565b60005b8251811015610c1e57610cd382848381518110610cc657610cc66135e5565b60200260200101516120d0565b80610cdd81613611565b915050610ca7565b60125460135460009182916001600160a01b039091169061271090610d0a908661362c565b610d149190613661565b915091509250929050565b6000610d2a83611469565b8210610d9e5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610b7d565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b610dcf611d47565b6102ee8161ffff161115610e4b5760405162461bcd60e51b815260206004820152602b60248201527f526f79616c7479206d757374206265206c6f776572207468616e206f7220657160448201527f75616c20746f20372c35250000000000000000000000000000000000000000006064820152608401610b7d565b61ffff16601355565b610e5c611d47565b6000815111610ead5760405162461bcd60e51b815260206004820152601460248201527f4572726f723a206c69737420697320656d7074790000000000000000000000006044820152606401610b7d565b60005b8151811015610f1357600060156000848481518110610ed157610ed16135e5565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055610f0c81613611565b9050610eb0565b5050565b33600090815260166020526040902054610f995760405162461bcd60e51b815260206004820152602560248201527f446576204f6e6c793a2063616c6c6572206973206e6f7420746865206465766560448201527f6c6f7065720000000000000000000000000000000000000000000000000000006064820152608401610b7d565b3360009081526016602052604090206001015480610ff95760405162461bcd60e51b815260206004820152601160248201527f4572726f723a206e6f2066656573203a280000000000000000000000000000006044820152606401610b7d565b336000818152601660205260408082206001018290555183156108fc0291849190818181858888f19350505050158015611037573d6000803e3d6000fd5b5060405181815233907f9bba815921f12cb7b1408e14b5ade745234397d39623ae5e7c82d693cb45815f9060200160405180910390a250565b611078611d47565b611081816120f6565b50565b610c1e83838360405180602001604052806000815250611a4a565b6110a833610c28565b61110b5760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526d1c881b9bdc88185c1c1c9bdd995960921b6064820152608401610b7d565b6110818161211b565b61111c611d47565b601055565b611129611d47565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015281906000906001600160a01b038316906370a0823190602401602060405180830381865afa15801561118b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111af9190613675565b9050816001600160a01b031663a9059cbb6111d8600b546001600160a01b036101009091041690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af1158015611225573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611249919061368e565b50604080516001600160a01b03851681526020810183905233917f5aa586896a67fb05c3b86276f66eecee7da00719d0e7299c403596fa2ec58ca4910160405180910390a2505050565b600061129e60085490565b82106113125760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610b7d565b60088281548110611325576113256135e5565b90600052602060002001549050919050565b61133f611d47565b8051610f1390600d906020840190612f20565b6000818152600260205260408120546001600160a01b0316806109e15760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610b7d565b6113bf611d47565b600b5460ff166113d3576113d1612124565b565b6113d161217e565b600d80546113e8906135b0565b80601f0160208091040260200160405190810160405280929190818152602001828054611414906135b0565b80156114615780601f1061143657610100808354040283529160200191611461565b820191906000526020600020905b81548152906001019060200180831161144457829003601f168201915b505050505081565b60006001600160a01b0382166114e75760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152608401610b7d565b506001600160a01b031660009081526003602052604090205490565b61150b611d47565b6113d160006121b7565b61151d611d47565b610f138282612228565b61152f611d47565b601155565b61153c611d47565b600081511161158d5760405162461bcd60e51b815260206004820152601460248201527f4572726f723a206c69737420697320656d7074790000000000000000000000006044820152606401610b7d565b60005b8151811015610f13576001601560008484815181106115b1576115b16135e5565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff19169115159190911790556115ec81613611565b9050611590565b606060018054610a5e906135b0565b61160a611d47565b8160005b825181101561174557816001600160a01b03166342842e0e3061163f600b546001600160a01b036101009091041690565b868581518110611651576116516135e5565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b1580156116ab57600080fd5b505af11580156116bf573d6000803e3d6000fd5b50505050336001600160a01b03167fb8dbf4ce06446b88ef02ffd28a948c2637ac80fb0bd4d3a31c70878c1046eb7f85858481518110611701576117016135e5565b602002602001015160405161172b9291906001600160a01b03929092168252602082015260400190565b60405180910390a28061173d81613611565b91505061160e565b50505050565b6117536122d1565b600061175e60085490565b600e54909150600161177084846136ab565b61177a91906136c3565b106117ed5760405162461bcd60e51b815260206004820152602960248201527f4572726f723a2063616e6e6f74206d696e74206d6f7265207468616e20746f7460448201527f616c20737570706c7900000000000000000000000000000000000000000000006064820152608401610b7d565b600f5482111561183f5760405162461bcd60e51b815260206004820152601760248201527f4572726f723a206d617820706172207478206c696d69740000000000000000006044820152606401610b7d565b60105461184b33611469565b6118569060016136ab565b11156118a45760405162461bcd60e51b815260206004820152601c60248201527f4572726f723a206d6178207065722061646472657373206c696d6974000000006044820152606401610b7d565b3360009081526015602052604090205460ff16611924576011541561191f57816011546118d1919061362c565b341461191f5760405162461bcd60e51b815260206004820152601460248201527f4572726f723a20696e76616c69642070726963650000000000000000000000006044820152606401610b7d565b611994565b816001146119745760405162461bcd60e51b815260206004820152601f60248201527f596f752063616e206d696e74206f6e6c7920312077686974656c6973746564006044820152606401610b7d565b336000818152601560205260409020805460ff19169055610f13906120f6565b601154156119f857816011546119aa919061362c565b34146119f85760405162461bcd60e51b815260206004820152601460248201527f4572726f723a20696e76616c69642070726963650000000000000000000000006044820152606401610b7d565b60005b82811015611a1e57611a0c336120f6565b80611a1681613611565b9150506119fb565b506000601154118015611a315750600034115b15610f1357610f1334612324565b610f133383836123d7565b611a543383611e79565b611ab75760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526d1c881b9bdc88185c1c1c9bdd995960921b6064820152608401610b7d565b611745848484846124a6565b611acb611d47565b600f55565b60606109e182612524565b60606000611ae883611469565b905080611b095760408051600080825260208201909252905b509392505050565b60008167ffffffffffffffff811115611b2457611b24613143565b604051908082528060200260200182016040528015611b4d578160200160208202803683370190505b50905060005b82811015611b0157611b658582610d1f565b828281518110611b7757611b776135e5565b6020908102919091010152611b8b81613611565b9050611b53565b50919050565b611ba0611d47565b4780611bee5760405162461bcd60e51b815260206004820152601160248201527f4572726f723a206e6f2066656573203a280000000000000000000000000000006044820152606401610b7d565b60005b60145460ff82161015611c4e57600060148260ff1681548110611c1657611c166135e5565b60009182526020808320909101546001600160a01b031682526016905260408120600101555080611c46816136da565b915050611bf1565b50604051339082156108fc029083906000818181858888f19350505050158015611037573d6000803e3d6000fd5b611c84611d47565b6001600160a01b038116611d005760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b7d565b611081816121b7565b60006001600160e01b031982167f780e9d630000000000000000000000000000000000000000000000000000000014806109e157506109e182612620565b600b546001600160a01b036101009091041633146113d15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b7d565b6000818152600260205260409020546001600160a01b03166110815760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610b7d565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611e4082611352565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611e8583611352565b9050806001600160a01b0316846001600160a01b03161480611ecc57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80611ef05750836001600160a01b0316611ee584610ae1565b6001600160a01b0316145b949350505050565b826001600160a01b0316611f0b82611352565b6001600160a01b031614611f875760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610b7d565b6001600160a01b0382166120025760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610b7d565b61200d8383836126bb565b612018600082611e0b565b6001600160a01b03831660009081526003602052604081208054600192906120419084906136c3565b90915550506001600160a01b038216600090815260036020526040812080546001929061206f9084906136ab565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60005b82811015610c1e576120e4826120f6565b806120ee81613611565b9150506120d3565b6000612101600c5490565b9050612111600c80546001019055565b610f1382826126c6565b611081816126e0565b61212c6122d1565b600b805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586121613390565b6040516001600160a01b03909116815260200160405180910390a1565b612186612720565b600b805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33612161565b600b80546001600160a01b038381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff85161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000828152600260205260409020546001600160a01b03166122b25760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201527f6578697374656e7420746f6b656e0000000000000000000000000000000000006064820152608401610b7d565b6000828152600a602090815260409091208251610c1e92840190612f20565b600b5460ff16156113d15760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610b7d565b60005b60145460ff82161015610f1357600060148260ff168154811061234c5761234c6135e5565b60009182526020808320909101546001600160a01b0316808352601690915260408220549092509061238a6127106123848785612772565b90612785565b6001600160a01b0384166000908152601660205260408120600101805492935083929091906123ba9084906136ab565b9250508190555050505080806123cf906136da565b915050612327565b816001600160a01b0316836001600160a01b031614156124395760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b7d565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6124b1848484611ef8565b6124bd84848484612791565b6117455760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b7d565b606061252f82611da7565b6000828152600a602052604081208054612548906135b0565b80601f0160208091040260200160405190810160405280929190818152602001828054612574906135b0565b80156125c15780601f10612596576101008083540402835291602001916125c1565b820191906000526020600020905b8154815290600101906020018083116125a457829003601f168201915b5050505050905060006125d26128da565b90508051600014156125e5575092915050565b8151156126175780826040516020016125ff9291906136fa565b60405160208183030381529060405292505050919050565b611ef0846128e9565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061268357506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806109e157507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316146109e1565b610c1e83838361294f565b610f13828260405180602001604052806000815250612a07565b6126e981612a85565b6000818152600a602052604090208054612702906135b0565b159050611081576000818152600a6020526040812061108191612fa4565b600b5460ff166113d15760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610b7d565b600061277e828461362c565b9392505050565b600061277e8284613661565b60006001600160a01b0384163b156128cf57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906127d5903390899088908890600401613729565b6020604051808303816000875af1925050508015612810575060408051601f3d908101601f1916820190925261280d91810190613765565b60015b6128b5573d80801561283e576040519150601f19603f3d011682016040523d82523d6000602084013e612843565b606091505b5080516128ad5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b7d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611ef0565b506001949350505050565b6060600d8054610a5e906135b0565b60606128f482611da7565b60006128fe6128da565b9050600081511161291e576040518060200160405280600081525061277e565b8061292884612b2c565b6040516020016129399291906136fa565b6040516020818303038152906040529392505050565b6001600160a01b0383166129aa576129a581600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6129cd565b816001600160a01b0316836001600160a01b0316146129cd576129cd8382612c42565b6001600160a01b0382166129e457610c1e81612cdf565b826001600160a01b0316826001600160a01b031614610c1e57610c1e8282612d8e565b612a118383612dd2565b612a1e6000848484612791565b610c1e5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b7d565b6000612a9082611352565b9050612a9e816000846126bb565b612aa9600083611e0b565b6001600160a01b0381166000908152600360205260408120805460019290612ad29084906136c3565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b606081612b505750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612b7a5780612b6481613611565b9150612b739050600a83613661565b9150612b54565b60008167ffffffffffffffff811115612b9557612b95613143565b6040519080825280601f01601f191660200182016040528015612bbf576020820181803683370190505b5090505b8415611ef057612bd46001836136c3565b9150612be1600a86613782565b612bec9060306136ab565b60f81b818381518110612c0157612c016135e5565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612c3b600a86613661565b9450612bc3565b60006001612c4f84611469565b612c5991906136c3565b600083815260076020526040902054909150808214612cac576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612cf1906001906136c3565b60008381526009602052604081205460088054939450909284908110612d1957612d196135e5565b906000526020600020015490508060088381548110612d3a57612d3a6135e5565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612d7257612d72613796565b6001900381819060005260206000200160009055905550505050565b6000612d9983611469565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b038216612e285760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b7d565b6000818152600260205260409020546001600160a01b031615612e8d5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b7d565b612e99600083836126bb565b6001600160a01b0382166000908152600360205260408120805460019290612ec29084906136ab565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612f2c906135b0565b90600052602060002090601f016020900481019282612f4e5760008555612f94565b82601f10612f6757805160ff1916838001178555612f94565b82800160010185558215612f94579182015b82811115612f94578251825591602001919060010190612f79565b50612fa0929150612fda565b5090565b508054612fb0906135b0565b6000825580601f10612fc0575050565b601f01602090049060005260206000209081019061108191905b5b80821115612fa05760008155600101612fdb565b60006020828403121561300157600080fd5b5035919050565b6001600160e01b03198116811461108157600080fd5b60006020828403121561303057600080fd5b813561277e81613008565b80356001600160a01b038116811461305257600080fd5b919050565b60006020828403121561306957600080fd5b61277e8261303b565b60005b8381101561308d578181015183820152602001613075565b838111156117455750506000910152565b600081518084526130b6816020860160208601613072565b601f01601f19169290920160200192915050565b60208152600061277e602083018461309e565b600080604083850312156130f057600080fd5b6130f98361303b565b946020939093013593505050565b60008060006060848603121561311c57600080fd5b6131258461303b565b92506131336020850161303b565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561318257613182613143565b604052919050565b600067ffffffffffffffff8211156131a4576131a4613143565b5060051b60200190565b600082601f8301126131bf57600080fd5b813560206131d46131cf8361318a565b613159565b82815260059290921b840181019181810190868411156131f357600080fd5b8286015b84811015613215576132088161303b565b83529183019183016131f7565b509695505050505050565b6000806040838503121561323357600080fd5b823567ffffffffffffffff81111561324a57600080fd5b613256858286016131ae565b95602094909401359450505050565b6000806040838503121561327857600080fd5b50508035926020909101359150565b60006020828403121561329957600080fd5b813561ffff8116811461277e57600080fd5b6000602082840312156132bd57600080fd5b813567ffffffffffffffff8111156132d457600080fd5b611ef0848285016131ae565b600067ffffffffffffffff8311156132fa576132fa613143565b61330d601f8401601f1916602001613159565b905082815283838301111561332157600080fd5b828260208301376000602084830101529392505050565b600082601f83011261334957600080fd5b61277e838335602085016132e0565b60006020828403121561336a57600080fd5b813567ffffffffffffffff81111561338157600080fd5b611ef084828501613338565b600080604083850312156133a057600080fd5b82359150602083013567ffffffffffffffff8111156133be57600080fd5b6133ca85828601613338565b9150509250929050565b600080604083850312156133e757600080fd5b6133f08361303b565b915060208084013567ffffffffffffffff81111561340d57600080fd5b8401601f8101861361341e57600080fd5b803561342c6131cf8261318a565b81815260059190911b8201830190838101908883111561344b57600080fd5b928401925b8284101561346957833582529284019290840190613450565b80955050505050509250929050565b801515811461108157600080fd5b6000806040838503121561349957600080fd5b6134a28361303b565b915060208301356134b281613478565b809150509250929050565b600080600080608085870312156134d357600080fd5b6134dc8561303b565b93506134ea6020860161303b565b925060408501359150606085013567ffffffffffffffff81111561350d57600080fd5b8501601f8101871361351e57600080fd5b61352d878235602084016132e0565b91505092959194509250565b6020808252825182820181905260009190848201906040850190845b8181101561357157835183529284019291840191600101613555565b50909695505050505050565b6000806040838503121561359057600080fd5b6135998361303b565b91506135a76020840161303b565b90509250929050565b600181811c908216806135c457607f821691505b60208210811415611b9257634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415613625576136256135fb565b5060010190565b6000816000190483118215151615613646576136466135fb565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826136705761367061364b565b500490565b60006020828403121561368757600080fd5b5051919050565b6000602082840312156136a057600080fd5b815161277e81613478565b600082198211156136be576136be6135fb565b500190565b6000828210156136d5576136d56135fb565b500390565b600060ff821660ff8114156136f1576136f16135fb565b60010192915050565b6000835161370c818460208801613072565b835190830190613720818360208801613072565b01949350505050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261375b608083018461309e565b9695505050505050565b60006020828403121561377757600080fd5b815161277e81613008565b6000826137915761379161364b565b500690565b634e487b7160e01b600052603160045260246000fdfea26469706673582212202578674f2d6b26e779ad8e2f28ded6d72c743915d5df0fa5e666d96df0fcf89064736f6c634300080a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000050000000000000000000000003acdc09a3c4fc659bfda7cfe8e6b04237d751e18000000000000000000000000982d9a2e8d487c698b29e72701068a5ac207e139000000000000000000000000f60b7751b3227b4a34477ab144358d44f21d6fc0000000000000000000000000a6e950aa70ebaaf99686a5d95afe8aca8b5e353b00000000000000000000000075d05f4d65726dca39485464ba736f16b980016d0000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000038400000000000000000000000000000000000000000000000000000000000005dc000000000000000000000000000000000000000000000000000000000000038400000000000000000000000000000000000000000000000000000000000002bc0000000000000000000000000000000000000000000000000000000000001770
-----Decoded View---------------
Arg [0] : _devList (address[]): 0x3acDC09A3C4Fc659BfDA7CFE8e6B04237d751e18,0x982D9A2E8D487C698B29E72701068A5Ac207e139,0xf60B7751B3227B4a34477aB144358d44f21d6fc0,0xA6e950aa70EBaAf99686A5d95aFe8aca8B5E353B,0x75D05F4D65726DCA39485464Ba736f16B980016D
Arg [1] : _fees (uint256[]): 900,1500,900,700,6000
-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [3] : 0000000000000000000000003acdc09a3c4fc659bfda7cfe8e6b04237d751e18
Arg [4] : 000000000000000000000000982d9a2e8d487c698b29e72701068a5ac207e139
Arg [5] : 000000000000000000000000f60b7751b3227b4a34477ab144358d44f21d6fc0
Arg [6] : 000000000000000000000000a6e950aa70ebaaf99686a5d95afe8aca8b5e353b
Arg [7] : 00000000000000000000000075d05f4d65726dca39485464ba736f16b980016d
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000384
Arg [10] : 00000000000000000000000000000000000000000000000000000000000005dc
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000384
Arg [12] : 00000000000000000000000000000000000000000000000000000000000002bc
Arg [13] : 0000000000000000000000000000000000000000000000000000000000001770
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $3,307.84 | 0.0762 | $252.06 |
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.