Overview
ETH Balance
0.02 ETH
Eth Value
$49.58 (@ $2,479.04/ETH)More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 48 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 16507359 | 759 days ago | IN | 0 ETH | 0.00069719 | ||||
Set Base URI | 15753619 | 864 days ago | IN | 0 ETH | 0.00062119 | ||||
Set Base URI | 15371834 | 921 days ago | IN | 0 ETH | 0.00102905 | ||||
Done Rendering | 15371829 | 921 days ago | IN | 0 ETH | 0.00140048 | ||||
Imagine Somethin... | 15365473 | 922 days ago | IN | 0 ETH | 0.00217027 | ||||
Whitelis Address | 15365020 | 922 days ago | IN | 0 ETH | 0.0004269 | ||||
Transfer From | 15320058 | 929 days ago | IN | 0 ETH | 0.00088474 | ||||
Transfer From | 15193322 | 949 days ago | IN | 0 ETH | 0.00160239 | ||||
Set Approval For... | 15190970 | 949 days ago | IN | 0 ETH | 0.00049478 | ||||
Transfer From | 15160412 | 954 days ago | IN | 0 ETH | 0.00090983 | ||||
Transfer From | 15160263 | 954 days ago | IN | 0 ETH | 0.0010036 | ||||
Set Approval For... | 15106976 | 962 days ago | IN | 0 ETH | 0.00052002 | ||||
Set Base URI | 15089140 | 965 days ago | IN | 0 ETH | 0.00108039 | ||||
Done Rendering | 15089085 | 965 days ago | IN | 0 ETH | 0.00179493 | ||||
Set Base URI | 15089078 | 965 days ago | IN | 0 ETH | 0.00083164 | ||||
Imagine Somethin... | 15087106 | 966 days ago | IN | 0 ETH | 0.01126842 | ||||
Imagine Somethin... | 15083726 | 966 days ago | IN | 0 ETH | 0.0034241 | ||||
Done Rendering | 15083297 | 966 days ago | IN | 0 ETH | 0.00241561 | ||||
Set Base URI | 15083290 | 966 days ago | IN | 0 ETH | 0.00290134 | ||||
Imagine Somethin... | 15083165 | 966 days ago | IN | 0 ETH | 0.00498673 | ||||
Whitelis Address | 15082427 | 966 days ago | IN | 0 ETH | 0.00208775 | ||||
Done Rendering | 15076772 | 967 days ago | IN | 0 ETH | 0.00297996 | ||||
Done Rendering | 15076765 | 967 days ago | IN | 0 ETH | 0.00484875 | ||||
Set Base URI | 15076761 | 967 days ago | IN | 0 ETH | 0.00321039 | ||||
Imagine Somethin... | 15076641 | 967 days ago | IN | 0 ETH | 0.00607875 |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
Imagine
Compiler Version
v0.8.15+commit.e14f2714
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: Unlicense pragma solidity 0.8.15; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; contract Imagine is ERC721Enumerable, ERC2981, Ownable, ReentrancyGuard { using Strings for uint256; //var uint256 MAX_SUPPLY = 50; uint256 MaxPerMint = 3; uint256 public ReImaginationCost = 0.02 ether; bool public paused = false; bool public isActive = false; string public URI; string public RenderingURI; string private uriSuffix = ".json"; bool public ImaginationBlock; mapping(address => uint256) public CanMint; mapping(uint256 => uint256) public ImaginedCount; //how many times it was re-imagined mapping(uint256 => string) public Imagination; //the imagination context mapping(uint256 => bool) public Rendering; //is it being imagined? //only approved operators address[] public OperatorList = [0x1E0049783F008A0085193E00003D00cd54003c71, 0xf42aa99F011A1fA7CDA90E5E98b277E306BcA83e, 0xF849de01B080aDC3A814FaBE1E2087475cF2E354, 0x4feE7B061C97C9c496b01DbcE9CDb10c02f0a0Be ]; mapping (address => bool) public ApprovedAddr; constructor(string memory _RenderingURI,address _RoyaltyReceiver, uint96 _royaltyAmount) ERC721("Imagine", "IMGN") { RenderingURI = _RenderingURI; setRoyaltyInfo(_RoyaltyReceiver,_royaltyAmount); _ApplyApprover(); } modifier IsUser() { require(tx.origin == msg.sender, "Cannot be called by a contract"); _; } //Metadata function _baseURI() internal view virtual override returns (string memory) { return URI; } function tokenURI(uint256 tokenId) public view override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); if (!Rendering[tokenId]) { return RenderingURI; } return string(abi.encodePacked(URI, Strings.toString(tokenId), uriSuffix)); } /*function toggleReveal(string memory updatedURI) public onlyOwner { REVEAL = !REVEAL; URI = updatedURI; }*/ function setBaseURI(string memory _newBaseURI) public onlyOwner { URI = _newBaseURI; } function setSupply(uint256 NewSupply) public onlyOwner { MAX_SUPPLY = NewSupply; } function setRenderingURI(string memory _newRenderingURI) public onlyOwner { RenderingURI = _newRenderingURI; } function ApplyImagination(uint256 token, string memory _imagination) external payable { require(msg.value == ReImaginationCost,"not suffeciant fund"); require(_exists(token),"nonexistent token"); require(ownerOf(token) == msg.sender,"not token owner"); require(!ImaginationBlock,"Can not change now"); ImaginedCount[token] = ImaginedCount[token]++; Imagination[token] = _imagination; } function DoneRendering(uint256[] calldata tokenid) public onlyOwner{ for(uint256 i = 0; i< tokenid.length;i++) Rendering[tokenid[i]] = true; } //General function SetImagination(bool CanImagine) public onlyOwner { ImaginationBlock = CanImagine; } function setPause(bool ispaused) public onlyOwner { paused = ispaused; } function setActive() public onlyOwner { isActive = !isActive; } function whitelisAddress( address[] calldata _users, uint256[] calldata _amount ) public onlyOwner { for (uint256 i = 0; i < _users.length; i++) { CanMint[_users[i]] = _amount[i]; } } //AL mint function ImagineSomething(string memory _WhatYouWant) public IsUser nonReentrant { uint256 supply = totalSupply(); uint256 _mintAmount = CanMint[msg.sender]; require(!paused, "the contract is paused"); require(supply + _mintAmount <= MAX_SUPPLY, "max supply reached"); require(CanMint[msg.sender] > 0, "Not Whitelisted"); //require(Whitelisted[msg.sender] >= _mintAmount, "Amount is higher than available claim"); for (uint256 i = 1; i <= _mintAmount; i++) { supply++; _mint(msg.sender, supply); Imagination[supply] = _WhatYouWant; } CanMint[msg.sender] = 0; } //Mint function mint(uint256 _mintAmount,string memory _WhatYouWant) public IsUser nonReentrant { uint256 supply = totalSupply(); require(!paused, "the contract is paused"); require((totalSupply() + _mintAmount) <= MAX_SUPPLY, "max supply reached"); require(isActive, "Public sale is not active"); require(_mintAmount <= MaxPerMint, "Max mint per wallet reached"); for (uint256 i = 1; i <= _mintAmount; i++) { supply++; _mint(msg.sender, supply); Imagination[supply] = _WhatYouWant; } } //owner mint function OwnerMint(address to, uint256 amount) public onlyOwner { uint256 supply = totalSupply(); for (uint256 i = 1; i <= amount; i++) { supply++; _mint(to, supply); } } //approval modification function AddApprover(address[] calldata Approver) public onlyOwner { for(uint256 i = 0;i< Approver.length;i++){ if(!ApprovedAddr[Approver[i]]){ OperatorList.push(Approver[i]); } } _ApplyApprover(); } function _ApplyApprover() internal { for(uint256 i = 0;i< OperatorList.length;i++){ ApprovedAddr[OperatorList[i]] = true; } } function setApprovalForAll(address operator, bool approved) public virtual override(ERC721, IERC721) { require(ApprovedAddr[operator] == true, "Not approved operator"); _setApprovalForAll(_msgSender(), operator, approved); } //royalty 100 is 1% function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721Enumerable, ERC2981) returns (bool) { return super.supportsInterface(interfaceId); } function setRoyaltyInfo(address _receiver, uint96 _royaltyAmount) public onlyOwner { _setDefaultRoyalty(_receiver,_royaltyAmount); } function withdraw() public onlyOwner { payable(msg.sender).transfer(address(this).balance); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// 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 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.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.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/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 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/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_RenderingURI","type":"string"},{"internalType":"address","name":"_RoyaltyReceiver","type":"address"},{"internalType":"uint96","name":"_royaltyAmount","type":"uint96"}],"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":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address[]","name":"Approver","type":"address[]"}],"name":"AddApprover","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"token","type":"uint256"},{"internalType":"string","name":"_imagination","type":"string"}],"name":"ApplyImagination","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"ApprovedAddr","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"CanMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenid","type":"uint256[]"}],"name":"DoneRendering","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"Imagination","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ImaginationBlock","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_WhatYouWant","type":"string"}],"name":"ImagineSomething","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"ImaginedCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"OperatorList","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"OwnerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ReImaginationCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"Rendering","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RenderingURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"CanImagine","type":"bool"}],"name":"SetImagination","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"URI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"string","name":"_WhatYouWant","type":"string"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setActive","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":"bool","name":"ispaused","type":"bool"}],"name":"setPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newRenderingURI","type":"string"}],"name":"setRenderingURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint96","name":"_royaltyAmount","type":"uint96"}],"name":"setRoyaltyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"NewSupply","type":"uint256"}],"name":"setSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","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":[{"internalType":"address[]","name":"_users","type":"address[]"},{"internalType":"uint256[]","name":"_amount","type":"uint256[]"}],"name":"whitelisAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6032600e556003600f5566470de4df8200006010556011805461ffff1916905560c06040526005608090815264173539b7b760d91b60a05260149062000046908262000509565b5060408051608081018252731e0049783f008a0085193e00003d00cd54003c71815273f42aa99f011a1fa7cda90e5e98b277e306bca83e602082015273f849de01b080adc3a814fabe1e2087475cf2e35491810191909152734fee7b061c97c9c496b01dbce9cdb10c02f0a0be6060820152620000c890601a906004620003e3565b50348015620000d657600080fd5b506040516200382e3803806200382e833981016040819052620000f9916200060a565b60405180604001604052806007815260200166496d6167696e6560c81b8152506040518060400160405280600481526020016324a6a3a760e11b815250816000908162000147919062000509565b50600162000156828262000509565b505050620001736200016d620001a660201b60201c565b620001aa565b6001600d55601362000186848262000509565b50620001938282620001fc565b6200019d6200026c565b5050506200074b565b3390565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600c546001600160a01b031633146200025c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b620002688282620002e2565b5050565b60005b601a54811015620002df576001601b6000601a84815481106200029657620002966200070d565b6000918252602080832091909101546001600160a01b031683528201929092526040019020805460ff191691151591909117905580620002d68162000723565b9150506200026f565b50565b6127106001600160601b0382161115620003525760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b606482015260840162000253565b6001600160a01b038216620003aa5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640162000253565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600a55565b8280548282559060005260206000209081019282156200043b579160200282015b828111156200043b57825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000404565b50620004499291506200044d565b5090565b5b808211156200044957600081556001016200044e565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200048f57607f821691505b602082108103620004b057634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200050457600081815260208120601f850160051c81016020861015620004df5750805b601f850160051c820191505b818110156200050057828155600101620004eb565b5050505b505050565b81516001600160401b0381111562000525576200052562000464565b6200053d816200053684546200047a565b84620004b6565b602080601f8311600181146200057557600084156200055c5750858301515b600019600386901b1c1916600185901b17855562000500565b600085815260208120601f198616915b82811015620005a65788860151825594840194600190910190840162000585565b5085821015620005c55787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b80516001600160a01b0381168114620005ed57600080fd5b919050565b80516001600160601b0381168114620005ed57600080fd5b6000806000606084860312156200062057600080fd5b83516001600160401b03808211156200063857600080fd5b818601915086601f8301126200064d57600080fd5b81518181111562000662576200066262000464565b604051601f8201601f19908116603f011681019083821181831017156200068d576200068d62000464565b81604052828152602093508984848701011115620006aa57600080fd5b600091505b82821015620006ce5784820184015181830185015290830190620006af565b82821115620006e05760008484830101525b9650620006f2915050868201620005d5565b935050506200070460408501620005f2565b90509250925092565b634e487b7160e01b600052603260045260246000fd5b6000600182016200074457634e487b7160e01b600052601160045260246000fd5b5060010190565b6130d3806200075b6000396000f3fe6080604052600436106102885760003560e01c806370a082311161015a578063b88d4fde116100c1578063eb024ba91161007a578063eb024ba914610801578063eca75d1414610821578063ed02c90014610841578063f062f29b14610861578063f2fde38b14610877578063fb41e2b61461089757600080fd5b8063b88d4fde14610718578063bb16cd5014610738578063bedb86fb14610758578063c87b56dd14610778578063e9071cf314610798578063e985e9c5146107b857600080fd5b80638da5cb5b116101135780638da5cb5b1461065e57806393a721a51461067c57806395d89b41146106a9578063a0811c1d146106be578063a22cb465146106de578063b57a6702146106fe57600080fd5b806370a08231146105a7578063715018a6146105c7578063760a8c2a146105dc5780637684af34146105f157806376dcb19d1461061e57806377097fc81461063e57600080fd5b80632ada63fa116101fe5780635504c95a116101b75780635504c95a146104f5578063559815bf1461050a57806355f804b31461053a5780635c975abb1461055a5780635ea752cb146105745780636352211e1461058757600080fd5b80632ada63fa146104405780632f745c59146104605780633b4c4b25146104805780633ccfd60b146104a057806342842e0e146104b55780634f6ccce7146104d557600080fd5b8063095ea7b311610250578063095ea7b31461036e5780631141d7de1461038e57806318160ddd146103a357806322f3e2d4146103c257806323b872dd146103e15780632a55205a1461040157600080fd5b806301ffc9a71461028d57806302fa7c47146102c25780630314d187146102e457806306fdde0314610314578063081812fc14610336575b600080fd5b34801561029957600080fd5b506102ad6102a83660046127d0565b6108b7565b60405190151581526020015b60405180910390f35b3480156102ce57600080fd5b506102e26102dd366004612810565b6108c8565b005b3480156102f057600080fd5b506102ad6102ff366004612853565b60196020526000908152604090205460ff1681565b34801561032057600080fd5b50610329610909565b6040516102b991906128c4565b34801561034257600080fd5b50610356610351366004612853565b61099b565b6040516001600160a01b0390911681526020016102b9565b34801561037a57600080fd5b506102e26103893660046128d7565b6109c2565b34801561039a57600080fd5b50610329610ad7565b3480156103af57600080fd5b506008545b6040519081526020016102b9565b3480156103ce57600080fd5b506011546102ad90610100900460ff1681565b3480156103ed57600080fd5b506102e26103fc366004612901565b610b65565b34801561040d57600080fd5b5061042161041c36600461293d565b610b96565b604080516001600160a01b0390931683526020830191909152016102b9565b34801561044c57600080fd5b506102e261045b3660046129a4565b610c44565b34801561046c57600080fd5b506103b461047b3660046128d7565b610d3c565b34801561048c57600080fd5b506102e261049b366004612853565b610dd2565b3480156104ac57600080fd5b506102e2610e01565b3480156104c157600080fd5b506102e26104d0366004612901565b610e5a565b3480156104e157600080fd5b506103b46104f0366004612853565b610e75565b34801561050157600080fd5b50610329610f08565b34801561051657600080fd5b506102ad6105253660046129e6565b601b6020526000908152604090205460ff1681565b34801561054657600080fd5b506102e2610555366004612aad565b610f15565b34801561056657600080fd5b506011546102ad9060ff1681565b6102e2610582366004612ae2565b610f4b565b34801561059357600080fd5b506103566105a2366004612853565b6110c6565b3480156105b357600080fd5b506103b46105c23660046129e6565b611126565b3480156105d357600080fd5b506102e26111ac565b3480156105e857600080fd5b506102e26111e2565b3480156105fd57600080fd5b506103b461060c366004612853565b60176020526000908152604090205481565b34801561062a57600080fd5b506102e26106393660046128d7565b611229565b34801561064a57600080fd5b506102e2610659366004612ae2565b611299565b34801561066a57600080fd5b50600c546001600160a01b0316610356565b34801561068857600080fd5b506103b46106973660046129e6565b60166020526000908152604090205481565b3480156106b557600080fd5b506103296114f3565b3480156106ca57600080fd5b506102e26106d9366004612aad565b611502565b3480156106ea57600080fd5b506102e26106f9366004612b39565b611718565b34801561070a57600080fd5b506015546102ad9060ff1681565b34801561072457600080fd5b506102e2610733366004612b6c565b611788565b34801561074457600080fd5b50610356610753366004612853565b6117ba565b34801561076457600080fd5b506102e2610773366004612be8565b6117e4565b34801561078457600080fd5b50610329610793366004612853565b611821565b3480156107a457600080fd5b506103296107b3366004612853565b61197d565b3480156107c457600080fd5b506102ad6107d3366004612c03565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561080d57600080fd5b506102e261081c366004612aad565b611996565b34801561082d57600080fd5b506102e261083c3660046129a4565b6119cc565b34801561084d57600080fd5b506102e261085c366004612c2d565b611a58565b34801561086d57600080fd5b506103b460105481565b34801561088357600080fd5b506102e26108923660046129e6565b611b04565b3480156108a357600080fd5b506102e26108b2366004612be8565b611b9c565b60006108c282611bd9565b92915050565b600c546001600160a01b031633146108fb5760405162461bcd60e51b81526004016108f290612c99565b60405180910390fd5b6109058282611bfe565b5050565b60606000805461091890612cce565b80601f016020809104026020016040519081016040528092919081815260200182805461094490612cce565b80156109915780601f1061096657610100808354040283529160200191610991565b820191906000526020600020905b81548152906001019060200180831161097457829003601f168201915b5050505050905090565b60006109a682611cfb565b506000908152600460205260409020546001600160a01b031690565b60006109cd826110c6565b9050806001600160a01b0316836001600160a01b031603610a3a5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016108f2565b336001600160a01b0382161480610a565750610a5681336107d3565b610ac85760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c000060648201526084016108f2565b610ad28383611d5a565b505050565b60128054610ae490612cce565b80601f0160208091040260200160405190810160405280929190818152602001828054610b1090612cce565b8015610b5d5780601f10610b3257610100808354040283529160200191610b5d565b820191906000526020600020905b815481529060010190602001808311610b4057829003601f168201915b505050505081565b610b6f3382611dc8565b610b8b5760405162461bcd60e51b81526004016108f290612d08565b610ad2838383611e47565b6000828152600b602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610c0b575060408051808201909152600a546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610c2a906001600160601b031687612d6c565b610c349190612da1565b91519350909150505b9250929050565b600c546001600160a01b03163314610c6e5760405162461bcd60e51b81526004016108f290612c99565b60005b81811015610d3357601b6000848484818110610c8f57610c8f612db5565b9050602002016020810190610ca491906129e6565b6001600160a01b0316815260208101919091526040016000205460ff16610d2157601a838383818110610cd957610cd9612db5565b9050602002016020810190610cee91906129e6565b81546001810183556000928352602090922090910180546001600160a01b0319166001600160a01b039092169190911790555b80610d2b81612dcb565b915050610c71565b50610905611fee565b6000610d4783611126565b8210610da95760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016108f2565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600c546001600160a01b03163314610dfc5760405162461bcd60e51b81526004016108f290612c99565b600e55565b600c546001600160a01b03163314610e2b5760405162461bcd60e51b81526004016108f290612c99565b60405133904780156108fc02916000818181858888f19350505050158015610e57573d6000803e3d6000fd5b50565b610ad283838360405180602001604052806000815250611788565b6000610e8060085490565b8210610ee35760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016108f2565b60088281548110610ef657610ef6612db5565b90600052602060002001549050919050565b60138054610ae490612cce565b600c546001600160a01b03163314610f3f5760405162461bcd60e51b81526004016108f290612c99565b60126109058282612e32565b6010543414610f925760405162461bcd60e51b81526020600482015260136024820152721b9bdd081cdd59999958da585b9d08199d5b99606a1b60448201526064016108f2565b6000828152600260205260409020546001600160a01b0316610fea5760405162461bcd60e51b81526020600482015260116024820152703737b732bc34b9ba32b73a103a37b5b2b760791b60448201526064016108f2565b33610ff4836110c6565b6001600160a01b03161461103c5760405162461bcd60e51b815260206004820152600f60248201526e3737ba103a37b5b2b71037bbb732b960891b60448201526064016108f2565b60155460ff16156110845760405162461bcd60e51b815260206004820152601260248201527143616e206e6f74206368616e6765206e6f7760701b60448201526064016108f2565b600082815260176020526040812080549161109e83612dcb565b909155506000838152601760209081526040808320939093556018905220610ad28282612e32565b6000818152600260205260408120546001600160a01b0316806108c25760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016108f2565b60006001600160a01b0382166111905760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016108f2565b506001600160a01b031660009081526003602052604090205490565b600c546001600160a01b031633146111d65760405162461bcd60e51b81526004016108f290612c99565b6111e0600061205a565b565b600c546001600160a01b0316331461120c5760405162461bcd60e51b81526004016108f290612c99565b6011805461ff001981166101009182900460ff1615909102179055565b600c546001600160a01b031633146112535760405162461bcd60e51b81526004016108f290612c99565b600061125e60085490565b905060015b828111611293578161127481612dcb565b92505061128184836120ac565b8061128b81612dcb565b915050611263565b50505050565b3233146112e85760405162461bcd60e51b815260206004820152601e60248201527f43616e6e6f742062652063616c6c6564206279206120636f6e7472616374000060448201526064016108f2565b6002600d540361133a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108f2565b6002600d55600061134a60085490565b60115490915060ff16156113995760405162461bcd60e51b81526020600482015260166024820152751d1a194818dbdb9d1c9858dd081a5cc81c185d5cd95960521b60448201526064016108f2565b600e54836113a660085490565b6113b09190612ef2565b11156113f35760405162461bcd60e51b81526020600482015260126024820152711b585e081cdd5c1c1b1e481c995858da195960721b60448201526064016108f2565b601154610100900460ff1661144a5760405162461bcd60e51b815260206004820152601960248201527f5075626c69632073616c65206973206e6f74206163746976650000000000000060448201526064016108f2565b600f5483111561149c5760405162461bcd60e51b815260206004820152601b60248201527f4d6178206d696e74207065722077616c6c65742072656163686564000000000060448201526064016108f2565b60015b8381116114e857816114b081612dcb565b9250506114bd33836120ac565b60008281526018602052604090206114d58482612e32565b50806114e081612dcb565b91505061149f565b50506001600d555050565b60606001805461091890612cce565b3233146115515760405162461bcd60e51b815260206004820152601e60248201527f43616e6e6f742062652063616c6c6564206279206120636f6e7472616374000060448201526064016108f2565b6002600d54036115a35760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108f2565b6002600d5560006115b360085490565b336000908152601660205260409020546011549192509060ff16156116135760405162461bcd60e51b81526020600482015260166024820152751d1a194818dbdb9d1c9858dd081a5cc81c185d5cd95960521b60448201526064016108f2565b600e546116208284612ef2565b11156116635760405162461bcd60e51b81526020600482015260126024820152711b585e081cdd5c1c1b1e481c995858da195960721b60448201526064016108f2565b336000908152601660205260409020546116b15760405162461bcd60e51b815260206004820152600f60248201526e139bdd0815da1a5d195b1a5cdd1959608a1b60448201526064016108f2565b60015b8181116116fd57826116c581612dcb565b9350506116d233846120ac565b60008381526018602052604090206116ea8582612e32565b50806116f581612dcb565b9150506116b4565b50503360009081526016602052604081205550506001600d55565b6001600160a01b0382166000908152601b602052604090205460ff16151560011461177d5760405162461bcd60e51b81526020600482015260156024820152742737ba1030b8383937bb32b21037b832b930ba37b960591b60448201526064016108f2565b6109053383836121fa565b6117923383611dc8565b6117ae5760405162461bcd60e51b81526004016108f290612d08565b611293848484846122c8565b601a81815481106117ca57600080fd5b6000918252602090912001546001600160a01b0316905081565b600c546001600160a01b0316331461180e5760405162461bcd60e51b81526004016108f290612c99565b6011805460ff1916911515919091179055565b6000818152600260205260409020546060906001600160a01b03166118a05760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016108f2565b60008281526019602052604090205460ff1661194857601380546118c390612cce565b80601f01602080910402602001604051908101604052809291908181526020018280546118ef90612cce565b801561193c5780601f106119115761010080835404028352916020019161193c565b820191906000526020600020905b81548152906001019060200180831161191f57829003601f168201915b50505050509050919050565b6012611953836122fb565b601460405160200161196793929190612f7d565b6040516020818303038152906040529050919050565b60186020526000908152604090208054610ae490612cce565b600c546001600160a01b031633146119c05760405162461bcd60e51b81526004016108f290612c99565b60136109058282612e32565b600c546001600160a01b031633146119f65760405162461bcd60e51b81526004016108f290612c99565b60005b81811015610ad257600160196000858585818110611a1957611a19612db5565b90506020020135815260200190815260200160002060006101000a81548160ff0219169083151502179055508080611a5090612dcb565b9150506119f9565b600c546001600160a01b03163314611a825760405162461bcd60e51b81526004016108f290612c99565b60005b83811015611afd57828282818110611a9f57611a9f612db5565b9050602002013560166000878785818110611abc57611abc612db5565b9050602002016020810190611ad191906129e6565b6001600160a01b0316815260208101919091526040016000205580611af581612dcb565b915050611a85565b5050505050565b600c546001600160a01b03163314611b2e5760405162461bcd60e51b81526004016108f290612c99565b6001600160a01b038116611b935760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108f2565b610e578161205a565b600c546001600160a01b03163314611bc65760405162461bcd60e51b81526004016108f290612c99565b6015805460ff1916911515919091179055565b60006001600160e01b0319821663152a902d60e11b14806108c257506108c2826123fc565b6127106001600160601b0382161115611c6c5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084016108f2565b6001600160a01b038216611cc25760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016108f2565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600a55565b6000818152600260205260409020546001600160a01b0316610e575760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016108f2565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611d8f826110c6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611dd4836110c6565b9050806001600160a01b0316846001600160a01b03161480611e1b57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80611e3f5750836001600160a01b0316611e348461099b565b6001600160a01b0316145b949350505050565b826001600160a01b0316611e5a826110c6565b6001600160a01b031614611ebe5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016108f2565b6001600160a01b038216611f205760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016108f2565b611f2b838383612421565b611f36600082611d5a565b6001600160a01b0383166000908152600360205260408120805460019290611f5f908490612fb0565b90915550506001600160a01b0382166000908152600360205260408120805460019290611f8d908490612ef2565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60005b601a54811015610e57576001601b6000601a848154811061201457612014612db5565b6000918252602080832091909101546001600160a01b031683528201929092526040019020805460ff19169115159190911790558061205281612dcb565b915050611ff1565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166121025760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016108f2565b6000818152600260205260409020546001600160a01b0316156121675760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108f2565b61217360008383612421565b6001600160a01b038216600090815260036020526040812080546001929061219c908490612ef2565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b816001600160a01b0316836001600160a01b03160361225b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016108f2565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6122d3848484611e47565b6122df848484846124d9565b6112935760405162461bcd60e51b81526004016108f290612fc7565b6060816000036123225750506040805180820190915260018152600360fc1b602082015290565b8160005b811561234c578061233681612dcb565b91506123459050600a83612da1565b9150612326565b60008167ffffffffffffffff81111561236757612367612a01565b6040519080825280601f01601f191660200182016040528015612391576020820181803683370190505b5090505b8415611e3f576123a6600183612fb0565b91506123b3600a86613019565b6123be906030612ef2565b60f81b8183815181106123d3576123d3612db5565b60200101906001600160f81b031916908160001a9053506123f5600a86612da1565b9450612395565b60006001600160e01b0319821663780e9d6360e01b14806108c257506108c2826125da565b6001600160a01b03831661247c5761247781600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b61249f565b816001600160a01b0316836001600160a01b03161461249f5761249f838261262a565b6001600160a01b0382166124b657610ad2816126c7565b826001600160a01b0316826001600160a01b031614610ad257610ad28282612776565b60006001600160a01b0384163b156125cf57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061251d90339089908890889060040161302d565b6020604051808303816000875af1925050508015612558575060408051601f3d908101601f191682019092526125559181019061306a565b60015b6125b5573d808015612586576040519150601f19603f3d011682016040523d82523d6000602084013e61258b565b606091505b5080516000036125ad5760405162461bcd60e51b81526004016108f290612fc7565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611e3f565b506001949350505050565b60006001600160e01b031982166380ac58cd60e01b148061260b57506001600160e01b03198216635b5e139f60e01b145b806108c257506301ffc9a760e01b6001600160e01b03198316146108c2565b6000600161263784611126565b6126419190612fb0565b600083815260076020526040902054909150808214612694576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906126d990600190612fb0565b6000838152600960205260408120546008805493945090928490811061270157612701612db5565b90600052602060002001549050806008838154811061272257612722612db5565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061275a5761275a613087565b6001900381819060005260206000200160009055905550505050565b600061278183611126565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160e01b031981168114610e5757600080fd5b6000602082840312156127e257600080fd5b81356127ed816127ba565b9392505050565b80356001600160a01b038116811461280b57600080fd5b919050565b6000806040838503121561282357600080fd5b61282c836127f4565b915060208301356001600160601b038116811461284857600080fd5b809150509250929050565b60006020828403121561286557600080fd5b5035919050565b60005b8381101561288757818101518382015260200161286f565b838111156112935750506000910152565b600081518084526128b081602086016020860161286c565b601f01601f19169290920160200192915050565b6020815260006127ed6020830184612898565b600080604083850312156128ea57600080fd5b6128f3836127f4565b946020939093013593505050565b60008060006060848603121561291657600080fd5b61291f846127f4565b925061292d602085016127f4565b9150604084013590509250925092565b6000806040838503121561295057600080fd5b50508035926020909101359150565b60008083601f84011261297157600080fd5b50813567ffffffffffffffff81111561298957600080fd5b6020830191508360208260051b8501011115610c3d57600080fd5b600080602083850312156129b757600080fd5b823567ffffffffffffffff8111156129ce57600080fd5b6129da8582860161295f565b90969095509350505050565b6000602082840312156129f857600080fd5b6127ed826127f4565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612a3257612a32612a01565b604051601f8501601f19908116603f01168101908282118183101715612a5a57612a5a612a01565b81604052809350858152868686011115612a7357600080fd5b858560208301376000602087830101525050509392505050565b600082601f830112612a9e57600080fd5b6127ed83833560208501612a17565b600060208284031215612abf57600080fd5b813567ffffffffffffffff811115612ad657600080fd5b611e3f84828501612a8d565b60008060408385031215612af557600080fd5b82359150602083013567ffffffffffffffff811115612b1357600080fd5b612b1f85828601612a8d565b9150509250929050565b8035801515811461280b57600080fd5b60008060408385031215612b4c57600080fd5b612b55836127f4565b9150612b6360208401612b29565b90509250929050565b60008060008060808587031215612b8257600080fd5b612b8b856127f4565b9350612b99602086016127f4565b925060408501359150606085013567ffffffffffffffff811115612bbc57600080fd5b8501601f81018713612bcd57600080fd5b612bdc87823560208401612a17565b91505092959194509250565b600060208284031215612bfa57600080fd5b6127ed82612b29565b60008060408385031215612c1657600080fd5b612c1f836127f4565b9150612b63602084016127f4565b60008060008060408587031215612c4357600080fd5b843567ffffffffffffffff80821115612c5b57600080fd5b612c678883890161295f565b90965094506020870135915080821115612c8057600080fd5b50612c8d8782880161295f565b95989497509550505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c90821680612ce257607f821691505b602082108103612d0257634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612d8657612d86612d56565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612db057612db0612d8b565b500490565b634e487b7160e01b600052603260045260246000fd5b600060018201612ddd57612ddd612d56565b5060010190565b601f821115610ad257600081815260208120601f850160051c81016020861015612e0b5750805b601f850160051c820191505b81811015612e2a57828155600101612e17565b505050505050565b815167ffffffffffffffff811115612e4c57612e4c612a01565b612e6081612e5a8454612cce565b84612de4565b602080601f831160018114612e955760008415612e7d5750858301515b600019600386901b1c1916600185901b178555612e2a565b600085815260208120601f198616915b82811015612ec457888601518255948401946001909101908401612ea5565b5085821015612ee25787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008219821115612f0557612f05612d56565b500190565b60008154612f1781612cce565b60018281168015612f2f5760018114612f4457612f73565b60ff1984168752821515830287019450612f73565b8560005260208060002060005b85811015612f6a5781548a820152908401908201612f51565b50505082870194505b5050505092915050565b6000612f898286612f0a565b8451612f9981836020890161286c565b612fa581830186612f0a565b979650505050505050565b600082821015612fc257612fc2612d56565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008261302857613028612d8b565b500690565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061306090830184612898565b9695505050505050565b60006020828403121561307c57600080fd5b81516127ed816127ba565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220a0f4e17f5c9df43011e299da154333ca2b428c5e3e150cb07581e720436f6dfd64736f6c634300080f00330000000000000000000000000000000000000000000000000000000000000060000000000000000000000000ef3bd95241015b733bd8fbb9572c4c5e7377692d00000000000000000000000000000000000000000000000000000000000002ee000000000000000000000000000000000000000000000000000000000000004368747470733a2f2f697066732e696f2f697066732f516d4e6f5648557270584d35616b723375654a4c6b6264755275644e6378415569335234614b53686659515747510000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102885760003560e01c806370a082311161015a578063b88d4fde116100c1578063eb024ba91161007a578063eb024ba914610801578063eca75d1414610821578063ed02c90014610841578063f062f29b14610861578063f2fde38b14610877578063fb41e2b61461089757600080fd5b8063b88d4fde14610718578063bb16cd5014610738578063bedb86fb14610758578063c87b56dd14610778578063e9071cf314610798578063e985e9c5146107b857600080fd5b80638da5cb5b116101135780638da5cb5b1461065e57806393a721a51461067c57806395d89b41146106a9578063a0811c1d146106be578063a22cb465146106de578063b57a6702146106fe57600080fd5b806370a08231146105a7578063715018a6146105c7578063760a8c2a146105dc5780637684af34146105f157806376dcb19d1461061e57806377097fc81461063e57600080fd5b80632ada63fa116101fe5780635504c95a116101b75780635504c95a146104f5578063559815bf1461050a57806355f804b31461053a5780635c975abb1461055a5780635ea752cb146105745780636352211e1461058757600080fd5b80632ada63fa146104405780632f745c59146104605780633b4c4b25146104805780633ccfd60b146104a057806342842e0e146104b55780634f6ccce7146104d557600080fd5b8063095ea7b311610250578063095ea7b31461036e5780631141d7de1461038e57806318160ddd146103a357806322f3e2d4146103c257806323b872dd146103e15780632a55205a1461040157600080fd5b806301ffc9a71461028d57806302fa7c47146102c25780630314d187146102e457806306fdde0314610314578063081812fc14610336575b600080fd5b34801561029957600080fd5b506102ad6102a83660046127d0565b6108b7565b60405190151581526020015b60405180910390f35b3480156102ce57600080fd5b506102e26102dd366004612810565b6108c8565b005b3480156102f057600080fd5b506102ad6102ff366004612853565b60196020526000908152604090205460ff1681565b34801561032057600080fd5b50610329610909565b6040516102b991906128c4565b34801561034257600080fd5b50610356610351366004612853565b61099b565b6040516001600160a01b0390911681526020016102b9565b34801561037a57600080fd5b506102e26103893660046128d7565b6109c2565b34801561039a57600080fd5b50610329610ad7565b3480156103af57600080fd5b506008545b6040519081526020016102b9565b3480156103ce57600080fd5b506011546102ad90610100900460ff1681565b3480156103ed57600080fd5b506102e26103fc366004612901565b610b65565b34801561040d57600080fd5b5061042161041c36600461293d565b610b96565b604080516001600160a01b0390931683526020830191909152016102b9565b34801561044c57600080fd5b506102e261045b3660046129a4565b610c44565b34801561046c57600080fd5b506103b461047b3660046128d7565b610d3c565b34801561048c57600080fd5b506102e261049b366004612853565b610dd2565b3480156104ac57600080fd5b506102e2610e01565b3480156104c157600080fd5b506102e26104d0366004612901565b610e5a565b3480156104e157600080fd5b506103b46104f0366004612853565b610e75565b34801561050157600080fd5b50610329610f08565b34801561051657600080fd5b506102ad6105253660046129e6565b601b6020526000908152604090205460ff1681565b34801561054657600080fd5b506102e2610555366004612aad565b610f15565b34801561056657600080fd5b506011546102ad9060ff1681565b6102e2610582366004612ae2565b610f4b565b34801561059357600080fd5b506103566105a2366004612853565b6110c6565b3480156105b357600080fd5b506103b46105c23660046129e6565b611126565b3480156105d357600080fd5b506102e26111ac565b3480156105e857600080fd5b506102e26111e2565b3480156105fd57600080fd5b506103b461060c366004612853565b60176020526000908152604090205481565b34801561062a57600080fd5b506102e26106393660046128d7565b611229565b34801561064a57600080fd5b506102e2610659366004612ae2565b611299565b34801561066a57600080fd5b50600c546001600160a01b0316610356565b34801561068857600080fd5b506103b46106973660046129e6565b60166020526000908152604090205481565b3480156106b557600080fd5b506103296114f3565b3480156106ca57600080fd5b506102e26106d9366004612aad565b611502565b3480156106ea57600080fd5b506102e26106f9366004612b39565b611718565b34801561070a57600080fd5b506015546102ad9060ff1681565b34801561072457600080fd5b506102e2610733366004612b6c565b611788565b34801561074457600080fd5b50610356610753366004612853565b6117ba565b34801561076457600080fd5b506102e2610773366004612be8565b6117e4565b34801561078457600080fd5b50610329610793366004612853565b611821565b3480156107a457600080fd5b506103296107b3366004612853565b61197d565b3480156107c457600080fd5b506102ad6107d3366004612c03565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561080d57600080fd5b506102e261081c366004612aad565b611996565b34801561082d57600080fd5b506102e261083c3660046129a4565b6119cc565b34801561084d57600080fd5b506102e261085c366004612c2d565b611a58565b34801561086d57600080fd5b506103b460105481565b34801561088357600080fd5b506102e26108923660046129e6565b611b04565b3480156108a357600080fd5b506102e26108b2366004612be8565b611b9c565b60006108c282611bd9565b92915050565b600c546001600160a01b031633146108fb5760405162461bcd60e51b81526004016108f290612c99565b60405180910390fd5b6109058282611bfe565b5050565b60606000805461091890612cce565b80601f016020809104026020016040519081016040528092919081815260200182805461094490612cce565b80156109915780601f1061096657610100808354040283529160200191610991565b820191906000526020600020905b81548152906001019060200180831161097457829003601f168201915b5050505050905090565b60006109a682611cfb565b506000908152600460205260409020546001600160a01b031690565b60006109cd826110c6565b9050806001600160a01b0316836001600160a01b031603610a3a5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016108f2565b336001600160a01b0382161480610a565750610a5681336107d3565b610ac85760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c000060648201526084016108f2565b610ad28383611d5a565b505050565b60128054610ae490612cce565b80601f0160208091040260200160405190810160405280929190818152602001828054610b1090612cce565b8015610b5d5780601f10610b3257610100808354040283529160200191610b5d565b820191906000526020600020905b815481529060010190602001808311610b4057829003601f168201915b505050505081565b610b6f3382611dc8565b610b8b5760405162461bcd60e51b81526004016108f290612d08565b610ad2838383611e47565b6000828152600b602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610c0b575060408051808201909152600a546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610c2a906001600160601b031687612d6c565b610c349190612da1565b91519350909150505b9250929050565b600c546001600160a01b03163314610c6e5760405162461bcd60e51b81526004016108f290612c99565b60005b81811015610d3357601b6000848484818110610c8f57610c8f612db5565b9050602002016020810190610ca491906129e6565b6001600160a01b0316815260208101919091526040016000205460ff16610d2157601a838383818110610cd957610cd9612db5565b9050602002016020810190610cee91906129e6565b81546001810183556000928352602090922090910180546001600160a01b0319166001600160a01b039092169190911790555b80610d2b81612dcb565b915050610c71565b50610905611fee565b6000610d4783611126565b8210610da95760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016108f2565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600c546001600160a01b03163314610dfc5760405162461bcd60e51b81526004016108f290612c99565b600e55565b600c546001600160a01b03163314610e2b5760405162461bcd60e51b81526004016108f290612c99565b60405133904780156108fc02916000818181858888f19350505050158015610e57573d6000803e3d6000fd5b50565b610ad283838360405180602001604052806000815250611788565b6000610e8060085490565b8210610ee35760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016108f2565b60088281548110610ef657610ef6612db5565b90600052602060002001549050919050565b60138054610ae490612cce565b600c546001600160a01b03163314610f3f5760405162461bcd60e51b81526004016108f290612c99565b60126109058282612e32565b6010543414610f925760405162461bcd60e51b81526020600482015260136024820152721b9bdd081cdd59999958da585b9d08199d5b99606a1b60448201526064016108f2565b6000828152600260205260409020546001600160a01b0316610fea5760405162461bcd60e51b81526020600482015260116024820152703737b732bc34b9ba32b73a103a37b5b2b760791b60448201526064016108f2565b33610ff4836110c6565b6001600160a01b03161461103c5760405162461bcd60e51b815260206004820152600f60248201526e3737ba103a37b5b2b71037bbb732b960891b60448201526064016108f2565b60155460ff16156110845760405162461bcd60e51b815260206004820152601260248201527143616e206e6f74206368616e6765206e6f7760701b60448201526064016108f2565b600082815260176020526040812080549161109e83612dcb565b909155506000838152601760209081526040808320939093556018905220610ad28282612e32565b6000818152600260205260408120546001600160a01b0316806108c25760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016108f2565b60006001600160a01b0382166111905760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016108f2565b506001600160a01b031660009081526003602052604090205490565b600c546001600160a01b031633146111d65760405162461bcd60e51b81526004016108f290612c99565b6111e0600061205a565b565b600c546001600160a01b0316331461120c5760405162461bcd60e51b81526004016108f290612c99565b6011805461ff001981166101009182900460ff1615909102179055565b600c546001600160a01b031633146112535760405162461bcd60e51b81526004016108f290612c99565b600061125e60085490565b905060015b828111611293578161127481612dcb565b92505061128184836120ac565b8061128b81612dcb565b915050611263565b50505050565b3233146112e85760405162461bcd60e51b815260206004820152601e60248201527f43616e6e6f742062652063616c6c6564206279206120636f6e7472616374000060448201526064016108f2565b6002600d540361133a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108f2565b6002600d55600061134a60085490565b60115490915060ff16156113995760405162461bcd60e51b81526020600482015260166024820152751d1a194818dbdb9d1c9858dd081a5cc81c185d5cd95960521b60448201526064016108f2565b600e54836113a660085490565b6113b09190612ef2565b11156113f35760405162461bcd60e51b81526020600482015260126024820152711b585e081cdd5c1c1b1e481c995858da195960721b60448201526064016108f2565b601154610100900460ff1661144a5760405162461bcd60e51b815260206004820152601960248201527f5075626c69632073616c65206973206e6f74206163746976650000000000000060448201526064016108f2565b600f5483111561149c5760405162461bcd60e51b815260206004820152601b60248201527f4d6178206d696e74207065722077616c6c65742072656163686564000000000060448201526064016108f2565b60015b8381116114e857816114b081612dcb565b9250506114bd33836120ac565b60008281526018602052604090206114d58482612e32565b50806114e081612dcb565b91505061149f565b50506001600d555050565b60606001805461091890612cce565b3233146115515760405162461bcd60e51b815260206004820152601e60248201527f43616e6e6f742062652063616c6c6564206279206120636f6e7472616374000060448201526064016108f2565b6002600d54036115a35760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108f2565b6002600d5560006115b360085490565b336000908152601660205260409020546011549192509060ff16156116135760405162461bcd60e51b81526020600482015260166024820152751d1a194818dbdb9d1c9858dd081a5cc81c185d5cd95960521b60448201526064016108f2565b600e546116208284612ef2565b11156116635760405162461bcd60e51b81526020600482015260126024820152711b585e081cdd5c1c1b1e481c995858da195960721b60448201526064016108f2565b336000908152601660205260409020546116b15760405162461bcd60e51b815260206004820152600f60248201526e139bdd0815da1a5d195b1a5cdd1959608a1b60448201526064016108f2565b60015b8181116116fd57826116c581612dcb565b9350506116d233846120ac565b60008381526018602052604090206116ea8582612e32565b50806116f581612dcb565b9150506116b4565b50503360009081526016602052604081205550506001600d55565b6001600160a01b0382166000908152601b602052604090205460ff16151560011461177d5760405162461bcd60e51b81526020600482015260156024820152742737ba1030b8383937bb32b21037b832b930ba37b960591b60448201526064016108f2565b6109053383836121fa565b6117923383611dc8565b6117ae5760405162461bcd60e51b81526004016108f290612d08565b611293848484846122c8565b601a81815481106117ca57600080fd5b6000918252602090912001546001600160a01b0316905081565b600c546001600160a01b0316331461180e5760405162461bcd60e51b81526004016108f290612c99565b6011805460ff1916911515919091179055565b6000818152600260205260409020546060906001600160a01b03166118a05760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016108f2565b60008281526019602052604090205460ff1661194857601380546118c390612cce565b80601f01602080910402602001604051908101604052809291908181526020018280546118ef90612cce565b801561193c5780601f106119115761010080835404028352916020019161193c565b820191906000526020600020905b81548152906001019060200180831161191f57829003601f168201915b50505050509050919050565b6012611953836122fb565b601460405160200161196793929190612f7d565b6040516020818303038152906040529050919050565b60186020526000908152604090208054610ae490612cce565b600c546001600160a01b031633146119c05760405162461bcd60e51b81526004016108f290612c99565b60136109058282612e32565b600c546001600160a01b031633146119f65760405162461bcd60e51b81526004016108f290612c99565b60005b81811015610ad257600160196000858585818110611a1957611a19612db5565b90506020020135815260200190815260200160002060006101000a81548160ff0219169083151502179055508080611a5090612dcb565b9150506119f9565b600c546001600160a01b03163314611a825760405162461bcd60e51b81526004016108f290612c99565b60005b83811015611afd57828282818110611a9f57611a9f612db5565b9050602002013560166000878785818110611abc57611abc612db5565b9050602002016020810190611ad191906129e6565b6001600160a01b0316815260208101919091526040016000205580611af581612dcb565b915050611a85565b5050505050565b600c546001600160a01b03163314611b2e5760405162461bcd60e51b81526004016108f290612c99565b6001600160a01b038116611b935760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108f2565b610e578161205a565b600c546001600160a01b03163314611bc65760405162461bcd60e51b81526004016108f290612c99565b6015805460ff1916911515919091179055565b60006001600160e01b0319821663152a902d60e11b14806108c257506108c2826123fc565b6127106001600160601b0382161115611c6c5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084016108f2565b6001600160a01b038216611cc25760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016108f2565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600a55565b6000818152600260205260409020546001600160a01b0316610e575760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016108f2565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611d8f826110c6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611dd4836110c6565b9050806001600160a01b0316846001600160a01b03161480611e1b57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80611e3f5750836001600160a01b0316611e348461099b565b6001600160a01b0316145b949350505050565b826001600160a01b0316611e5a826110c6565b6001600160a01b031614611ebe5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016108f2565b6001600160a01b038216611f205760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016108f2565b611f2b838383612421565b611f36600082611d5a565b6001600160a01b0383166000908152600360205260408120805460019290611f5f908490612fb0565b90915550506001600160a01b0382166000908152600360205260408120805460019290611f8d908490612ef2565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60005b601a54811015610e57576001601b6000601a848154811061201457612014612db5565b6000918252602080832091909101546001600160a01b031683528201929092526040019020805460ff19169115159190911790558061205281612dcb565b915050611ff1565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166121025760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016108f2565b6000818152600260205260409020546001600160a01b0316156121675760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108f2565b61217360008383612421565b6001600160a01b038216600090815260036020526040812080546001929061219c908490612ef2565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b816001600160a01b0316836001600160a01b03160361225b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016108f2565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6122d3848484611e47565b6122df848484846124d9565b6112935760405162461bcd60e51b81526004016108f290612fc7565b6060816000036123225750506040805180820190915260018152600360fc1b602082015290565b8160005b811561234c578061233681612dcb565b91506123459050600a83612da1565b9150612326565b60008167ffffffffffffffff81111561236757612367612a01565b6040519080825280601f01601f191660200182016040528015612391576020820181803683370190505b5090505b8415611e3f576123a6600183612fb0565b91506123b3600a86613019565b6123be906030612ef2565b60f81b8183815181106123d3576123d3612db5565b60200101906001600160f81b031916908160001a9053506123f5600a86612da1565b9450612395565b60006001600160e01b0319821663780e9d6360e01b14806108c257506108c2826125da565b6001600160a01b03831661247c5761247781600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b61249f565b816001600160a01b0316836001600160a01b03161461249f5761249f838261262a565b6001600160a01b0382166124b657610ad2816126c7565b826001600160a01b0316826001600160a01b031614610ad257610ad28282612776565b60006001600160a01b0384163b156125cf57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061251d90339089908890889060040161302d565b6020604051808303816000875af1925050508015612558575060408051601f3d908101601f191682019092526125559181019061306a565b60015b6125b5573d808015612586576040519150601f19603f3d011682016040523d82523d6000602084013e61258b565b606091505b5080516000036125ad5760405162461bcd60e51b81526004016108f290612fc7565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611e3f565b506001949350505050565b60006001600160e01b031982166380ac58cd60e01b148061260b57506001600160e01b03198216635b5e139f60e01b145b806108c257506301ffc9a760e01b6001600160e01b03198316146108c2565b6000600161263784611126565b6126419190612fb0565b600083815260076020526040902054909150808214612694576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906126d990600190612fb0565b6000838152600960205260408120546008805493945090928490811061270157612701612db5565b90600052602060002001549050806008838154811061272257612722612db5565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061275a5761275a613087565b6001900381819060005260206000200160009055905550505050565b600061278183611126565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160e01b031981168114610e5757600080fd5b6000602082840312156127e257600080fd5b81356127ed816127ba565b9392505050565b80356001600160a01b038116811461280b57600080fd5b919050565b6000806040838503121561282357600080fd5b61282c836127f4565b915060208301356001600160601b038116811461284857600080fd5b809150509250929050565b60006020828403121561286557600080fd5b5035919050565b60005b8381101561288757818101518382015260200161286f565b838111156112935750506000910152565b600081518084526128b081602086016020860161286c565b601f01601f19169290920160200192915050565b6020815260006127ed6020830184612898565b600080604083850312156128ea57600080fd5b6128f3836127f4565b946020939093013593505050565b60008060006060848603121561291657600080fd5b61291f846127f4565b925061292d602085016127f4565b9150604084013590509250925092565b6000806040838503121561295057600080fd5b50508035926020909101359150565b60008083601f84011261297157600080fd5b50813567ffffffffffffffff81111561298957600080fd5b6020830191508360208260051b8501011115610c3d57600080fd5b600080602083850312156129b757600080fd5b823567ffffffffffffffff8111156129ce57600080fd5b6129da8582860161295f565b90969095509350505050565b6000602082840312156129f857600080fd5b6127ed826127f4565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612a3257612a32612a01565b604051601f8501601f19908116603f01168101908282118183101715612a5a57612a5a612a01565b81604052809350858152868686011115612a7357600080fd5b858560208301376000602087830101525050509392505050565b600082601f830112612a9e57600080fd5b6127ed83833560208501612a17565b600060208284031215612abf57600080fd5b813567ffffffffffffffff811115612ad657600080fd5b611e3f84828501612a8d565b60008060408385031215612af557600080fd5b82359150602083013567ffffffffffffffff811115612b1357600080fd5b612b1f85828601612a8d565b9150509250929050565b8035801515811461280b57600080fd5b60008060408385031215612b4c57600080fd5b612b55836127f4565b9150612b6360208401612b29565b90509250929050565b60008060008060808587031215612b8257600080fd5b612b8b856127f4565b9350612b99602086016127f4565b925060408501359150606085013567ffffffffffffffff811115612bbc57600080fd5b8501601f81018713612bcd57600080fd5b612bdc87823560208401612a17565b91505092959194509250565b600060208284031215612bfa57600080fd5b6127ed82612b29565b60008060408385031215612c1657600080fd5b612c1f836127f4565b9150612b63602084016127f4565b60008060008060408587031215612c4357600080fd5b843567ffffffffffffffff80821115612c5b57600080fd5b612c678883890161295f565b90965094506020870135915080821115612c8057600080fd5b50612c8d8782880161295f565b95989497509550505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c90821680612ce257607f821691505b602082108103612d0257634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612d8657612d86612d56565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612db057612db0612d8b565b500490565b634e487b7160e01b600052603260045260246000fd5b600060018201612ddd57612ddd612d56565b5060010190565b601f821115610ad257600081815260208120601f850160051c81016020861015612e0b5750805b601f850160051c820191505b81811015612e2a57828155600101612e17565b505050505050565b815167ffffffffffffffff811115612e4c57612e4c612a01565b612e6081612e5a8454612cce565b84612de4565b602080601f831160018114612e955760008415612e7d5750858301515b600019600386901b1c1916600185901b178555612e2a565b600085815260208120601f198616915b82811015612ec457888601518255948401946001909101908401612ea5565b5085821015612ee25787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008219821115612f0557612f05612d56565b500190565b60008154612f1781612cce565b60018281168015612f2f5760018114612f4457612f73565b60ff1984168752821515830287019450612f73565b8560005260208060002060005b85811015612f6a5781548a820152908401908201612f51565b50505082870194505b5050505092915050565b6000612f898286612f0a565b8451612f9981836020890161286c565b612fa581830186612f0a565b979650505050505050565b600082821015612fc257612fc2612d56565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008261302857613028612d8b565b500690565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061306090830184612898565b9695505050505050565b60006020828403121561307c57600080fd5b81516127ed816127ba565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220a0f4e17f5c9df43011e299da154333ca2b428c5e3e150cb07581e720436f6dfd64736f6c634300080f0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000060000000000000000000000000ef3bd95241015b733bd8fbb9572c4c5e7377692d00000000000000000000000000000000000000000000000000000000000002ee000000000000000000000000000000000000000000000000000000000000004368747470733a2f2f697066732e696f2f697066732f516d4e6f5648557270584d35616b723375654a4c6b6264755275644e6378415569335234614b53686659515747510000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _RenderingURI (string): https://ipfs.io/ipfs/QmNoVHUrpXM5akr3ueJLkbduRudNcxAUi3R4aKShfYQWGQ
Arg [1] : _RoyaltyReceiver (address): 0xEf3bd95241015B733BD8fbb9572C4C5E7377692d
Arg [2] : _royaltyAmount (uint96): 750
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 000000000000000000000000ef3bd95241015b733bd8fbb9572c4c5e7377692d
Arg [2] : 00000000000000000000000000000000000000000000000000000000000002ee
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000043
Arg [4] : 68747470733a2f2f697066732e696f2f697066732f516d4e6f5648557270584d
Arg [5] : 35616b723375654a4c6b6264755275644e6378415569335234614b5368665951
Arg [6] : 5747510000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $2,479.04 | 0.02 | $49.58 |
Loading...
Loading
[ 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.