ERC-721
Overview
Max Total Supply
0 KGA
Holders
44
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
3 KGALoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
KumaleonGenArt
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: LGPL-3.0-only pragma solidity =0.8.9; import "@openzeppelin/contracts/interfaces/IERC2981.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./IKumaleonGenArt.sol"; // LICENSE // KumaleonGenArt.sol is a modified version of ArtBlocks' GenArt721CoreV2_PBAB.sol: // https://github.com/ArtBlocks/artblocks-contracts/blob/main/contracts/PBAB%2BCollabs/GenArt721CoreV2_PBAB.sol // // GenArt721CoreV2_PBAB.sol source code licensed under the LGPL-3.0-only license. // Additional conditions of LGPL-3.0-only can be found here: https://spdx.org/licenses/LGPL-3.0-only.html // // MODIFICATIONS // KumaleonGenArt.sol modifies GenArt721CoreV2_PBAB to use IERC2981 and original mintWithHash(). contract KumaleonGenArt is ERC721, IKumaleonGenArt, IERC2981, ReentrancyGuard { struct Project { string name; string artist; string description; string website; string license; string projectBaseURI; uint256 invocations; uint256 maxInvocations; string scriptJSON; mapping(uint256 => string) scripts; uint256 scriptCount; string ipfsHash; bool active; bool locked; bool paused; } uint256 constant ONE_MILLION = 1_000_000; mapping(uint256 => Project) projects; //All financial functions are stripped from struct for visibility mapping(uint256 => address payable) public override(IKumaleonGenArt) projectIdToArtistAddress; mapping(uint256 => string) public override(IKumaleonGenArt) projectIdToCurrencySymbol; mapping(uint256 => address) public override(IKumaleonGenArt) projectIdToCurrencyAddress; mapping(uint256 => uint256) public override(IKumaleonGenArt) projectIdToPricePerTokenInWei; mapping(uint256 => address payable) public override(IKumaleonGenArt) projectIdToAdditionalPayee; mapping(uint256 => uint256) public override(IKumaleonGenArt) projectIdToAdditionalPayeePercentage; mapping(uint256 => uint256) public projectIdToSecondaryMarketRoyaltyPercentage; address payable public override(IKumaleonGenArt) renderProviderAddress; /// Percentage of mint revenue allocated to render provider uint256 public override(IKumaleonGenArt) renderProviderPercentage = 10; mapping(uint256 => uint256) public override(IKumaleonGenArt) tokenIdToProjectId; mapping(uint256 => bytes32) public tokenIdToHash; mapping(bytes32 => uint256) public hashToTokenId; /// admin for contract address public override(IKumaleonGenArt) admin; /// true if address is whitelisted mapping(address => bool) public override(IKumaleonGenArt) isWhitelisted; /// true if minter is whitelisted mapping(address => bool) public isMintWhitelisted; /// next project ID to be created uint256 public override(IKumaleonGenArt) nextProjectId = 0; // kumaleon address public kumaleon; bool public isKumaleonFrozen; modifier onlyValidTokenId(uint256 _tokenId) { require(_exists(_tokenId), "Token ID does not exist"); _; } modifier onlyUnlocked(uint256 _projectId) { require(!projects[_projectId].locked, "Only if unlocked"); _; } modifier onlyAdmin() { require(msg.sender == admin, "Only admin"); _; } modifier onlyWhitelisted() { require(isWhitelisted[msg.sender], "Only whitelisted"); _; } /** * @notice Initializes contract. * @param _tokenName Name of token. * @param _tokenSymbol Token symbol. */ constructor(string memory _tokenName, string memory _tokenSymbol) ERC721(_tokenName, _tokenSymbol) { admin = msg.sender; isWhitelisted[msg.sender] = true; renderProviderAddress = payable(msg.sender); } /** * @notice Mints a token from project `_projectId` and sets the * token's owner to `_to`. * @param _to Address to be the minted token's owner. * @param _projectId Project ID to mint a token on. * @param _by Purchaser of minted token. * @dev sender must be a whitelisted minter */ function mint( address _to, uint256 _projectId, address _by ) external override(IKumaleonGenArt) returns (uint256 _tokenId) { revert("disabled"); } /** * @notice Mints a token from hash `_hash` and sets the * token's owner to `_to`. * @param _to Address to be the minted token's owner. * @param _by Purchaser of minted token. * @param _tokenId TokenId of minted token. * @param _hash hash of minted token. * @dev sender must be a whitelisted minter */ function mintWithHash( address _to, address _by, uint256 _tokenId, bytes32 _hash ) external nonReentrant returns (uint256 _mintedTokenId) { require(kumaleon == msg.sender, "Must mint from kumaleon contract."); uint256 _projectId = _tokenId / ONE_MILLION; require( _tokenId % ONE_MILLION < projects[_projectId].maxInvocations, "Must not exceed max invocations" ); require( projects[_projectId].active || _by == projectIdToArtistAddress[_projectId], "Project must exist and be active" ); require( !projects[_projectId].paused || _by == projectIdToArtistAddress[_projectId], "Purchases are paused." ); uint256 mintedTokenId = _mintToken(_to, _projectId, _tokenId, _hash); return mintedTokenId; } function _mintToken( address _to, uint256 _projectId, uint256 _tokenId, bytes32 _hash ) internal returns (uint256 _mintedTokenId) { projects[_projectId].invocations = projects[_projectId].invocations + 1; tokenIdToHash[_tokenId] = _hash; hashToTokenId[_hash] = _tokenId; _mint(_to, _tokenId); tokenIdToProjectId[_tokenId] = _projectId; emit Mint(_to, _tokenId, _projectId); return _tokenId; } /** * @notice Updates contract admin to `_adminAddress`. */ function updateAdmin(address _adminAddress) public onlyAdmin { admin = _adminAddress; } /** * @notice Updates render provider address to `_renderProviderAddress`. */ function updateRenderProviderAddress(address payable _renderProviderAddress) public onlyAdmin { renderProviderAddress = _renderProviderAddress; } /** * @notice Updates render provider mint revenue percentage to * `_renderProviderPercentage`. */ function updateRenderProviderPercentage(uint256 _renderProviderPercentage) public onlyAdmin { require(_renderProviderPercentage <= 25, "Max of 25%"); renderProviderPercentage = _renderProviderPercentage; } /** * @notice Whitelists `_address`. */ function addWhitelisted(address _address) public onlyAdmin { isWhitelisted[_address] = true; } /** * @notice Revokes whitelisting of `_address`. */ function removeWhitelisted(address _address) public onlyAdmin { isWhitelisted[_address] = false; } /** * @notice Whitelists minter `_address`. */ function addMintWhitelisted(address _address) public onlyAdmin { isMintWhitelisted[_address] = true; } /** * @notice Revokes whitelisting of minter `_address`. */ function removeMintWhitelisted(address _address) public onlyAdmin { isMintWhitelisted[_address] = false; } /** * @notice Locks project `_projectId`. */ function toggleProjectIsLocked(uint256 _projectId) public onlyWhitelisted onlyUnlocked(_projectId) { projects[_projectId].locked = true; } /** * @notice Toggles project `_projectId` as active/inactive. */ function toggleProjectIsActive(uint256 _projectId) public onlyWhitelisted { projects[_projectId].active = !projects[_projectId].active; } /** * @notice Updates artist of project `_projectId` to `_artistAddress`. */ function updateProjectArtistAddress(uint256 _projectId, address payable _artistAddress) public onlyWhitelisted { projectIdToArtistAddress[_projectId] = _artistAddress; } /** * @notice Toggles paused state of project `_projectId`. */ function toggleProjectIsPaused(uint256 _projectId) public onlyWhitelisted { projects[_projectId].paused = !projects[_projectId].paused; } /** * @notice Adds new project `_projectName` by `_artistAddress`. * @param _projectName Project name. * @param _artistAddress Artist's address. * @param _pricePerTokenInWei Price to mint a token, in Wei. */ function addProject( string memory _projectName, address payable _artistAddress, uint256 _pricePerTokenInWei ) public onlyWhitelisted { uint256 projectId = nextProjectId; projectIdToArtistAddress[projectId] = _artistAddress; projects[projectId].name = _projectName; projectIdToCurrencySymbol[projectId] = "ETH"; projectIdToPricePerTokenInWei[projectId] = _pricePerTokenInWei; projects[projectId].paused = true; projects[projectId].maxInvocations = ONE_MILLION; nextProjectId = nextProjectId + 1; } /** * @notice Updates payment currency of project `_projectId` to be * `_currencySymbol`. * @param _projectId Project ID to update. * @param _currencySymbol Currency symbol. * @param _currencyAddress Currency address. */ function updateProjectCurrencyInfo( uint256 _projectId, string memory _currencySymbol, address _currencyAddress ) public onlyWhitelisted { projectIdToCurrencySymbol[_projectId] = _currencySymbol; projectIdToCurrencyAddress[_projectId] = _currencyAddress; } /** * @notice Updates price per token of project `_projectId` to be * '_pricePerTokenInWei`, in Wei. */ function updateProjectPricePerTokenInWei(uint256 _projectId, uint256 _pricePerTokenInWei) public onlyWhitelisted { projectIdToPricePerTokenInWei[_projectId] = _pricePerTokenInWei; } /** * @notice Updates name of project `_projectId` to be `_projectName`. */ function updateProjectName(uint256 _projectId, string memory _projectName) public onlyUnlocked(_projectId) onlyWhitelisted { projects[_projectId].name = _projectName; } /** * @notice Updates artist name for project `_projectId` to be * `_projectArtistName`. */ function updateProjectArtistName(uint256 _projectId, string memory _projectArtistName) public onlyUnlocked(_projectId) onlyWhitelisted { projects[_projectId].artist = _projectArtistName; } /** * @notice Updates additional payee for project `_projectId` to be * `_additionalPayee`, receiving `_additionalPayeePercentage` percent * of artist mint and royalty revenues. */ function updateProjectAdditionalPayeeInfo( uint256 _projectId, address payable _additionalPayee, uint256 _additionalPayeePercentage ) public onlyWhitelisted { require(_additionalPayeePercentage <= 100, "Max of 100%"); projectIdToAdditionalPayee[_projectId] = _additionalPayee; projectIdToAdditionalPayeePercentage[_projectId] = _additionalPayeePercentage; } /** * @notice Updates artist secondary market royalties for project * `_projectId` to be `_secondMarketRoyalty` percent. */ function updateProjectSecondaryMarketRoyaltyPercentage( uint256 _projectId, uint256 _secondMarketRoyalty ) public onlyWhitelisted { require(_secondMarketRoyalty <= 100, "Max of 100%"); projectIdToSecondaryMarketRoyaltyPercentage[_projectId] = _secondMarketRoyalty; } /** * @notice Updates description of project `_projectId`. */ function updateProjectDescription(uint256 _projectId, string memory _projectDescription) public onlyWhitelisted { projects[_projectId].description = _projectDescription; } /** * @notice Updates website of project `_projectId` to be `_projectWebsite`. */ function updateProjectWebsite(uint256 _projectId, string memory _projectWebsite) public onlyWhitelisted { projects[_projectId].website = _projectWebsite; } /** * @notice Updates license for project `_projectId`. */ function updateProjectLicense(uint256 _projectId, string memory _projectLicense) public onlyUnlocked(_projectId) onlyWhitelisted { projects[_projectId].license = _projectLicense; } /** * @notice Updates maximum invocations for project `_projectId` to * `_maxInvocations`. */ function updateProjectMaxInvocations(uint256 _projectId, uint256 _maxInvocations) public onlyWhitelisted { require( (!projects[_projectId].locked || _maxInvocations < projects[_projectId].maxInvocations), "Only if unlocked" ); require( _maxInvocations > projects[_projectId].invocations, "You must set max invocations greater than current invocations" ); require(_maxInvocations <= ONE_MILLION, "Cannot exceed 1000000"); projects[_projectId].maxInvocations = _maxInvocations; } /** * @notice Adds a script to project `_projectId`. * @param _projectId Project to be updated. * @param _script Script to be added. */ function addProjectScript(uint256 _projectId, string memory _script) public onlyUnlocked(_projectId) onlyWhitelisted { projects[_projectId].scripts[projects[_projectId].scriptCount] = _script; projects[_projectId].scriptCount = projects[_projectId].scriptCount + 1; } /** * @notice Updates script for project `_projectId` at script ID `_scriptId`. * @param _projectId Project to be updated. * @param _scriptId Script ID to be updated. * @param _script Script to be added. */ function updateProjectScript( uint256 _projectId, uint256 _scriptId, string memory _script ) public onlyUnlocked(_projectId) onlyWhitelisted { require(_scriptId < projects[_projectId].scriptCount, "scriptId out of range"); projects[_projectId].scripts[_scriptId] = _script; } /** * @notice Removes last script from project `_projectId`. */ function removeProjectLastScript(uint256 _projectId) public onlyUnlocked(_projectId) onlyWhitelisted { require(projects[_projectId].scriptCount > 0, "there are no scripts to remove"); delete projects[_projectId].scripts[projects[_projectId].scriptCount - 1]; projects[_projectId].scriptCount = projects[_projectId].scriptCount - 1; } /** * @notice Updates script json for project `_projectId`. */ function updateProjectScriptJSON(uint256 _projectId, string memory _projectScriptJSON) public onlyUnlocked(_projectId) onlyWhitelisted { projects[_projectId].scriptJSON = _projectScriptJSON; } /** * @notice Updates ipfs hash for project `_projectId`. */ function updateProjectIpfsHash(uint256 _projectId, string memory _ipfsHash) public onlyUnlocked(_projectId) onlyWhitelisted { projects[_projectId].ipfsHash = _ipfsHash; } /** * @notice Updates base URI for project `_projectId` to `_newBaseURI`. */ function updateProjectBaseURI(uint256 _projectId, string memory _newBaseURI) public onlyWhitelisted { projects[_projectId].projectBaseURI = _newBaseURI; } /** * @notice Returns project details for project `_projectId`. * @param _projectId Project to be queried. * @return projectName Name of project * @return artist Artist of project * @return description Project description * @return website Project website * @return license Project license */ function projectDetails(uint256 _projectId) public view returns ( string memory projectName, string memory artist, string memory description, string memory website, string memory license ) { projectName = projects[_projectId].name; artist = projects[_projectId].artist; description = projects[_projectId].description; website = projects[_projectId].website; license = projects[_projectId].license; } /** * @notice Returns project token information for project `_projectId`. * @param _projectId Project to be queried. * @return artistAddress Project Artist's address * @return pricePerTokenInWei Price to mint a token, in Wei * @return invocations Current number of invocations * @return maxInvocations Maximum allowed invocations * @return active Boolean representing if project is currently active * @return additionalPayee Additional payee address * @return additionalPayeePercentage Percentage of artist revenue * to be sent to the additional payee's address * @return currency Symbol of project's currency * @return currencyAddress Address of project's currency */ function projectTokenInfo(uint256 _projectId) public view override(IKumaleonGenArt) returns ( address artistAddress, uint256 pricePerTokenInWei, uint256 invocations, uint256 maxInvocations, bool active, address additionalPayee, uint256 additionalPayeePercentage, string memory currency, address currencyAddress ) { artistAddress = projectIdToArtistAddress[_projectId]; pricePerTokenInWei = projectIdToPricePerTokenInWei[_projectId]; invocations = projects[_projectId].invocations; maxInvocations = projects[_projectId].maxInvocations; active = projects[_projectId].active; additionalPayee = projectIdToAdditionalPayee[_projectId]; additionalPayeePercentage = projectIdToAdditionalPayeePercentage[_projectId]; currency = projectIdToCurrencySymbol[_projectId]; currencyAddress = projectIdToCurrencyAddress[_projectId]; } /** * @notice Returns script information for project `_projectId`. * @param _projectId Project to be queried. * @return scriptJSON Project's script json * @return scriptCount Count of scripts for project * @return ipfsHash IPFS hash for project * @return locked Boolean representing if project is locked * @return paused Boolean representing if project is paused */ function projectScriptInfo(uint256 _projectId) public view returns ( string memory scriptJSON, uint256 scriptCount, string memory ipfsHash, bool locked, bool paused ) { scriptJSON = projects[_projectId].scriptJSON; scriptCount = projects[_projectId].scriptCount; ipfsHash = projects[_projectId].ipfsHash; locked = projects[_projectId].locked; paused = projects[_projectId].paused; } /** * @notice Returns script for project `_projectId` at script index `_index`. */ function projectScriptByIndex(uint256 _projectId, uint256 _index) public view returns (string memory) { return projects[_projectId].scripts[_index]; } /** * @notice Returns base URI for project `_projectId`. */ function projectURIInfo(uint256 _projectId) public view returns (string memory projectBaseURI) { projectBaseURI = projects[_projectId].projectBaseURI; } /** * @notice Gets royalty data for token ID `_tokenId`. * @param _tokenId Token ID to be queried. * @return artistAddress Artist's payment address * @return additionalPayee Additional payee's payment address * @return additionalPayeePercentage Percentage of artist revenue * to be sent to the additional payee's address * @return royaltyFeeByID Total royalty percentage to be sent to * combination of artist and additional payee */ function getRoyaltyData(uint256 _tokenId) public view override(IKumaleonGenArt) returns ( address artistAddress, address additionalPayee, uint256 additionalPayeePercentage, uint256 royaltyFeeByID ) { artistAddress = projectIdToArtistAddress[tokenIdToProjectId[_tokenId]]; additionalPayee = projectIdToAdditionalPayee[tokenIdToProjectId[_tokenId]]; additionalPayeePercentage = projectIdToAdditionalPayeePercentage[ tokenIdToProjectId[_tokenId] ]; royaltyFeeByID = projectIdToSecondaryMarketRoyaltyPercentage[tokenIdToProjectId[_tokenId]]; } /** * @notice Gets token URI for token ID `_tokenId`. */ function tokenURI(uint256 _tokenId) public view override onlyValidTokenId(_tokenId) returns (string memory) { return string( abi.encodePacked( projects[tokenIdToProjectId[_tokenId]].projectBaseURI, Strings.toString(_tokenId) ) ); } /* royalty */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view override returns (address receiver, uint256 royaltyAmount) { uint256 projectId = tokenIdToProjectId[_tokenId]; uint256 royaltyPercentage = projectIdToSecondaryMarketRoyaltyPercentage[projectId]; royaltyAmount = (_salePrice * royaltyPercentage) / 100; receiver = projectIdToAdditionalPayee[projectId]; return (receiver, royaltyAmount); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } // kumaleon function setKumaleon(address _address) external onlyAdmin { require(!isKumaleonFrozen, "KumaleonGenArt: Already frozen"); kumaleon = _address; } function freezeKumaleon() external onlyAdmin { require(!isKumaleonFrozen, "KumaleonGenArt: Already frozen"); isKumaleonFrozen = true; } }
// SPDX-License-Identifier: LGPL-3.0-only // Based on IGenArt721CoreV2_PBAB. pragma solidity =0.8.9; interface IKumaleonGenArt { /** * @notice Token ID `_tokenId` minted on project ID `_projectId` to `_to`. */ event Mint(address indexed _to, uint256 indexed _tokenId, uint256 indexed _projectId); // getter function of public variable function admin() external view returns (address); // getter function of public variable function nextProjectId() external view returns (uint256); // getter function of public mapping function tokenIdToProjectId(uint256 tokenId) external view returns (uint256 projectId); function isWhitelisted(address sender) external view returns (bool); function projectIdToCurrencySymbol(uint256 _projectId) external view returns (string memory); function projectIdToCurrencyAddress(uint256 _projectId) external view returns (address); function projectIdToArtistAddress(uint256 _projectId) external view returns (address payable); function projectIdToPricePerTokenInWei(uint256 _projectId) external view returns (uint256); function projectIdToAdditionalPayee(uint256 _projectId) external view returns (address payable); function projectIdToAdditionalPayeePercentage(uint256 _projectId) external view returns (uint256); function projectTokenInfo(uint256 _projectId) external view returns ( address, uint256, uint256, uint256, bool, address, uint256, string memory, address ); function renderProviderAddress() external view returns (address payable); function renderProviderPercentage() external view returns (uint256); function mint( address _to, uint256 _projectId, address _by ) external returns (uint256 tokenId); function getRoyaltyData(uint256 _tokenId) external view returns ( address artistAddress, address additionalPayee, uint256 additionalPayeePercentage, uint256 royaltyFeeByID ); }
// 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.6.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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.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 v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.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); }
// 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/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_tokenName","type":"string"},{"internalType":"string","name":"_tokenSymbol","type":"string"}],"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":"_to","type":"address"},{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"Mint","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":"_address","type":"address"}],"name":"addMintWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_projectName","type":"string"},{"internalType":"address payable","name":"_artistAddress","type":"address"},{"internalType":"uint256","name":"_pricePerTokenInWei","type":"uint256"}],"name":"addProject","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_script","type":"string"}],"name":"addProjectScript","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"addWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[],"name":"freezeKumaleon","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getRoyaltyData","outputs":[{"internalType":"address","name":"artistAddress","type":"address"},{"internalType":"address","name":"additionalPayee","type":"address"},{"internalType":"uint256","name":"additionalPayeePercentage","type":"uint256"},{"internalType":"uint256","name":"royaltyFeeByID","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"hashToTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isKumaleonFrozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isMintWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"kumaleon","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"address","name":"_by","type":"address"}],"name":"mint","outputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"address","name":"_by","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bytes32","name":"_hash","type":"bytes32"}],"name":"mintWithHash","outputs":[{"internalType":"uint256","name":"_mintedTokenId","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextProjectId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"projectDetails","outputs":[{"internalType":"string","name":"projectName","type":"string"},{"internalType":"string","name":"artist","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"string","name":"website","type":"string"},{"internalType":"string","name":"license","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectIdToAdditionalPayee","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectIdToAdditionalPayeePercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectIdToArtistAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectIdToCurrencyAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectIdToCurrencySymbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectIdToPricePerTokenInWei","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectIdToSecondaryMarketRoyaltyPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"projectScriptByIndex","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"projectScriptInfo","outputs":[{"internalType":"string","name":"scriptJSON","type":"string"},{"internalType":"uint256","name":"scriptCount","type":"uint256"},{"internalType":"string","name":"ipfsHash","type":"string"},{"internalType":"bool","name":"locked","type":"bool"},{"internalType":"bool","name":"paused","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"projectTokenInfo","outputs":[{"internalType":"address","name":"artistAddress","type":"address"},{"internalType":"uint256","name":"pricePerTokenInWei","type":"uint256"},{"internalType":"uint256","name":"invocations","type":"uint256"},{"internalType":"uint256","name":"maxInvocations","type":"uint256"},{"internalType":"bool","name":"active","type":"bool"},{"internalType":"address","name":"additionalPayee","type":"address"},{"internalType":"uint256","name":"additionalPayeePercentage","type":"uint256"},{"internalType":"string","name":"currency","type":"string"},{"internalType":"address","name":"currencyAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"projectURIInfo","outputs":[{"internalType":"string","name":"projectBaseURI","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"removeMintWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"removeProjectLastScript","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"removeWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renderProviderAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renderProviderPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setKumaleon","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":"_projectId","type":"uint256"}],"name":"toggleProjectIsActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"toggleProjectIsLocked","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"toggleProjectIsPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIdToHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIdToProjectId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"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":"_adminAddress","type":"address"}],"name":"updateAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"address payable","name":"_additionalPayee","type":"address"},{"internalType":"uint256","name":"_additionalPayeePercentage","type":"uint256"}],"name":"updateProjectAdditionalPayeeInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"address payable","name":"_artistAddress","type":"address"}],"name":"updateProjectArtistAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_projectArtistName","type":"string"}],"name":"updateProjectArtistName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"updateProjectBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_currencySymbol","type":"string"},{"internalType":"address","name":"_currencyAddress","type":"address"}],"name":"updateProjectCurrencyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_projectDescription","type":"string"}],"name":"updateProjectDescription","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_ipfsHash","type":"string"}],"name":"updateProjectIpfsHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_projectLicense","type":"string"}],"name":"updateProjectLicense","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"_maxInvocations","type":"uint256"}],"name":"updateProjectMaxInvocations","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_projectName","type":"string"}],"name":"updateProjectName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"_pricePerTokenInWei","type":"uint256"}],"name":"updateProjectPricePerTokenInWei","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"_scriptId","type":"uint256"},{"internalType":"string","name":"_script","type":"string"}],"name":"updateProjectScript","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_projectScriptJSON","type":"string"}],"name":"updateProjectScriptJSON","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"_secondMarketRoyalty","type":"uint256"}],"name":"updateProjectSecondaryMarketRoyaltyPercentage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_projectWebsite","type":"string"}],"name":"updateProjectWebsite","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_renderProviderAddress","type":"address"}],"name":"updateRenderProviderAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_renderProviderPercentage","type":"uint256"}],"name":"updateRenderProviderPercentage","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600a60105560006017553480156200001b57600080fd5b506040516200402d3803806200402d8339810160408190526200003e916200022d565b81518290829062000057906000906020850190620000ba565b5080516200006d906001906020840190620000ba565b50506001600681905560148054336001600160a01b031991821681179092556000828152601560205260409020805460ff1916909317909255600f805490921617905550620002d4915050565b828054620000c89062000297565b90600052602060002090601f016020900481019282620000ec576000855562000137565b82601f106200010757805160ff191683800117855562000137565b8280016001018555821562000137579182015b82811115620001375782518255916020019190600101906200011a565b506200014592915062000149565b5090565b5b808211156200014557600081556001016200014a565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200018857600080fd5b81516001600160401b0380821115620001a557620001a562000160565b604051601f8301601f19908116603f01168101908282118183101715620001d057620001d062000160565b81604052838152602092508683858801011115620001ed57600080fd5b600091505b83821015620002115785820183015181830184015290820190620001f2565b83821115620002235760008385830101525b9695505050505050565b600080604083850312156200024157600080fd5b82516001600160401b03808211156200025957600080fd5b620002678683870162000176565b935060208501519150808211156200027e57600080fd5b506200028d8582860162000176565b9150509250929050565b600181811c90821680620002ac57607f821691505b60208210811415620002ce57634e487b7160e01b600052602260045260246000fd5b50919050565b613d4980620002e46000396000f3fe608060405234801561001057600080fd5b50600436106104125760003560e01c80638bddb0a611610220578063c6d7323111610130578063e2f273bd116100b8578063ed8abfda11610087578063ed8abfda14610a77578063f51f74a914610a97578063f70c0f0414610ab7578063f851a44014610ad7578063fdf2260614610aea57600080fd5b8063e2f273bd14610a0b578063e7e6e34b14610a1e578063e935b7b114610a32578063e985e9c514610a3b57600080fd5b8063d03c390c116100ff578063d03c390c14610996578063d195b365146109a9578063d7b044b6146109bc578063db2ff861146109e5578063e13208b4146109f857600080fd5b8063c6d732311461093d578063c87b56dd14610950578063cc74234b14610963578063cfbf4d971461098357600080fd5b8063a3b2cca6116101b3578063ad0305ce11610182578063ad0305ce146108ce578063b1656ba3146108f1578063b7b04fae14610904578063b88d4fde14610917578063c34a03b51461092a57600080fd5b8063a3b2cca6146107fd578063a47d29cb14610810578063a65ff74c14610839578063acad0124146108bb57600080fd5b806395d89b41116101ef57806395d89b41146107bc57806397dc86cf146107c4578063a11ec70a146107d7578063a22cb465146107ea57600080fd5b80638bddb0a61461074a5780638c2c36221461075d5780638c3c9cdd146107855780638dd91a561461079857600080fd5b806337859963116103265780636352211e116102ae57806370a082311161027d57806370a08231146106eb578063826fc391146106fe578063867f1a3b146107115780638763ad1e146107245780638ba8f14d1461073757600080fd5b80636352211e1461069f57806364046f86146106b257806369d14faf146106c55780636b6ec8a6146106d857600080fd5b806342842e0e116102f557806342842e0e1461060c57806345756bd11461061f578063498dd0c1146106325780634aa6d4171461065b578063621a1f741461067f57600080fd5b806337859963146105b05780633af32abf146105c35780633e48e848146105e65780633fef6c2a146105f957600080fd5b80631b689c0b116103a9578063291d954911610378578063291d9549146105475780632a55205a1461055a5780632c46fb4e1461058c5780632d9c0205146105945780632e9eb74f146105a757600080fd5b80631b689c0b146104ee57806320927ec91461050e57806323b872dd1461052157806325b75d681461053457600080fd5b80630d170673116103e55780630d170673146104945780630d4d1513146104a757806310154bad146104c857806311f5fdf1146104db57600080fd5b806301ffc9a71461041757806306fdde031461043f578063081812fc14610454578063095ea7b31461047f575b600080fd5b61042a6104253660046133b6565b610afd565b60405190151581526020015b60405180910390f35b610447610b28565b6040516104369190613432565b610467610462366004613445565b610bba565b6040516001600160a01b039091168152602001610436565b61049261048d366004613473565b610c54565b005b6104926104a236600461354b565b610d6a565b6104ba6104b5366004613592565b610df7565b604051908152602001610436565b6104926104d63660046135d4565b610e2d565b6104926104e9366004613445565b610e7b565b6104ba6104fc366004613445565b60116020526000908152604090205481565b61044761051c366004613445565b610ee8565b61049261052f3660046135f1565b610f82565b61049261054236600461354b565b610fb3565b6104926105553660046135d4565b611040565b61056d610568366004613632565b61108b565b604080516001600160a01b039093168352602083019190915201610436565b6104926110e6565b6104476105a2366004613445565b61117f565b6104ba60105481565b6104926105be36600461354b565b611224565b61042a6105d13660046135d4565b60156020526000908152604090205460ff1681565b6104926105f436600461354b565b611278565b61049261060736600461354b565b6112cc565b61049261061a3660046135f1565b611359565b61049261062d3660046135d4565b611374565b610467610640366004613445565b600a602052600090815260409020546001600160a01b031681565b61066e610669366004613445565b61141a565b604051610436959493929190613654565b6104ba61068d366004613445565b60126020526000908152604090205481565b6104676106ad366004613445565b61159c565b601854610467906001600160a01b031681565b6104926106d3366004613699565b611613565b6104926106e63660046135d4565b611670565b6104ba6106f93660046135d4565b6116bc565b61049261070c366004613632565b611743565b61049261071f3660046135d4565b6118ad565b6104926107323660046136c9565b6118f8565b610492610745366004613445565b6119ef565b6104926107583660046135d4565b611a78565b61077061076b366004613445565b611ac6565b60405161043699989796959493929190613712565b610447610793366004613632565b611be9565b6107ab6107a6366004613445565b611c9a565b604051610436959493929190613778565b610447611fc8565b6104926107d2366004613632565b611fd7565b6104926107e5366004613445565b612018565b6104926107f83660046137e5565b612075565b61049261080b36600461354b565b612084565b61046761081e366004613445565b6008602052600090815260409020546001600160a01b031681565b610890610847366004613445565b60009081526011602090815260408083205483526008825280832054600c835281842054600d845282852054600e90945291909320546001600160a01b03938416949390911692565b604080516001600160a01b039586168152949093166020850152918301526060820152608001610436565b6104926108c936600461354b565b6120d8565b61042a6108dc3660046135d4565b60166020526000908152604090205460ff1681565b6104926108ff366004613818565b6121a6565b61049261091236600461354b565b612297565b610492610925366004613868565b612324565b610492610938366004613632565b612356565b61049261094b36600461354b565b6123d6565b61044761095e366004613445565b612463565b6104ba610971366004613445565b600d6020526000908152604090205481565b600f54610467906001600160a01b031681565b6104926109a4366004613445565b612523565b6104926109b73660046138e8565b612575565b6104676109ca366004613445565b600c602052600090815260409020546001600160a01b031681565b6104926109f3366004613445565b6125f4565b610492610a06366004613938565b612731565b610492610a193660046135d4565b6127d8565b60185461042a90600160a01b900460ff1681565b6104ba60175481565b61042a610a4936600461395f565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6104ba610a85366004613445565b600e6020526000908152604090205481565b6104ba610aa5366004613445565b60136020526000908152604090205481565b6104ba610ac5366004613445565b600b6020526000908152604090205481565b601454610467906001600160a01b031681565b6104ba610af836600461398d565b612824565b60006001600160e01b0319821663152a902d60e11b1480610b225750610b2282612a88565b92915050565b606060008054610b37906139d3565b80601f0160208091040260200160405190810160405280929190818152602001828054610b63906139d3565b8015610bb05780601f10610b8557610100808354040283529160200191610bb0565b820191906000526020600020905b815481529060010190602001808311610b9357829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610c385760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610c5f8261159c565b9050806001600160a01b0316836001600160a01b03161415610ccd5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610c2f565b336001600160a01b0382161480610ce95750610ce98133610a49565b610d5b5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c2f565b610d658383612ad8565b505050565b6000828152600760205260409020600c01548290610100900460ff1615610da35760405162461bcd60e51b8152600401610c2f90613a08565b3360009081526015602052604090205460ff16610dd25760405162461bcd60e51b8152600401610c2f90613a32565b60008381526007602090815260409091208351610df1928501906132ca565b50505050565b60405162461bcd60e51b8152602060048201526008602482015267191a5cd8589b195960c21b6044820152600090606401610c2f565b6014546001600160a01b03163314610e575760405162461bcd60e51b8152600401610c2f90613a5c565b6001600160a01b03166000908152601560205260409020805460ff19166001179055565b6014546001600160a01b03163314610ea55760405162461bcd60e51b8152600401610c2f90613a5c565b6019811115610ee35760405162461bcd60e51b815260206004820152600a6024820152694d6178206f662032352560b01b6044820152606401610c2f565b601055565b60096020526000908152604090208054610f01906139d3565b80601f0160208091040260200160405190810160405280929190818152602001828054610f2d906139d3565b8015610f7a5780601f10610f4f57610100808354040283529160200191610f7a565b820191906000526020600020905b815481529060010190602001808311610f5d57829003601f168201915b505050505081565b610f8c3382612b46565b610fa85760405162461bcd60e51b8152600401610c2f90613a80565b610d65838383612c3d565b6000828152600760205260409020600c01548290610100900460ff1615610fec5760405162461bcd60e51b8152600401610c2f90613a08565b3360009081526015602052604090205460ff1661101b5760405162461bcd60e51b8152600401610c2f90613a32565b60008381526007602090815260409091208351610df1926004909201918501906132ca565b6014546001600160a01b0316331461106a5760405162461bcd60e51b8152600401610c2f90613a5c565b6001600160a01b03166000908152601560205260409020805460ff19169055565b600082815260116020908152604080832054808452600e90925282205482919060646110b78287613ae7565b6110c19190613b1c565b6000928352600c6020526040909220546001600160a01b031696919550909350505050565b6014546001600160a01b031633146111105760405162461bcd60e51b8152600401610c2f90613a5c565b601854600160a01b900460ff161561116a5760405162461bcd60e51b815260206004820152601e60248201527f4b756d616c656f6e47656e4172743a20416c72656164792066726f7a656e00006044820152606401610c2f565b6018805460ff60a01b1916600160a01b179055565b600081815260076020526040902060050180546060919061119f906139d3565b80601f01602080910402602001604051908101604052809291908181526020018280546111cb906139d3565b80156112185780601f106111ed57610100808354040283529160200191611218565b820191906000526020600020905b8154815290600101906020018083116111fb57829003601f168201915b50505050509050919050565b3360009081526015602052604090205460ff166112535760405162461bcd60e51b8152600401610c2f90613a32565b60008281526007602090815260409091208251610d65926003909201918401906132ca565b3360009081526015602052604090205460ff166112a75760405162461bcd60e51b8152600401610c2f90613a32565b60008281526007602090815260409091208251610d65926005909201918401906132ca565b6000828152600760205260409020600c01548290610100900460ff16156113055760405162461bcd60e51b8152600401610c2f90613a08565b3360009081526015602052604090205460ff166113345760405162461bcd60e51b8152600401610c2f90613a32565b60008381526007602090815260409091208351610df192600b909201918501906132ca565b610d6583838360405180602001604052806000815250612324565b6014546001600160a01b0316331461139e5760405162461bcd60e51b8152600401610c2f90613a5c565b601854600160a01b900460ff16156113f85760405162461bcd60e51b815260206004820152601e60248201527f4b756d616c656f6e47656e4172743a20416c72656164792066726f7a656e00006044820152606401610c2f565b601880546001600160a01b0319166001600160a01b0392909216919091179055565b606060006060600080600760008781526020019081526020016000206008018054611444906139d3565b80601f0160208091040260200160405190810160405280929190818152602001828054611470906139d3565b80156114bd5780601f10611492576101008083540402835291602001916114bd565b820191906000526020600020905b8154815290600101906020018083116114a057829003601f168201915b5050506000898152600760205260409020600a810154600b9091018054949950909750926114ed925090506139d3565b80601f0160208091040260200160405190810160405280929190818152602001828054611519906139d3565b80156115665780601f1061153b57610100808354040283529160200191611566565b820191906000526020600020905b81548152906001019060200180831161154957829003601f168201915b5050506000988952505060076020526040909620600c0154949693959460ff610100820481169562010000909204169350915050565b6000818152600260205260408120546001600160a01b031680610b225760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610c2f565b3360009081526015602052604090205460ff166116425760405162461bcd60e51b8152600401610c2f90613a32565b60009182526008602052604090912080546001600160a01b0319166001600160a01b03909216919091179055565b6014546001600160a01b0316331461169a5760405162461bcd60e51b8152600401610c2f90613a5c565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b0382166117275760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610c2f565b506001600160a01b031660009081526003602052604090205490565b3360009081526015602052604090205460ff166117725760405162461bcd60e51b8152600401610c2f90613a32565b6000828152600760205260409020600c0154610100900460ff1615806117a957506000828152600760208190526040909120015481105b6117c55760405162461bcd60e51b8152600401610c2f90613a08565b600082815260076020526040902060060154811161184b5760405162461bcd60e51b815260206004820152603d60248201527f596f75206d75737420736574206d617820696e766f636174696f6e732067726560448201527f61746572207468616e2063757272656e7420696e766f636174696f6e730000006064820152608401610c2f565b620f42408111156118965760405162461bcd60e51b8152602060048201526015602482015274043616e6e6f7420657863656564203130303030303605c1b6044820152606401610c2f565b600091825260076020819052604090922090910155565b6014546001600160a01b031633146118d75760405162461bcd60e51b8152600401610c2f90613a5c565b6001600160a01b03166000908152601660205260409020805460ff19169055565b3360009081526015602052604090205460ff166119275760405162461bcd60e51b8152600401610c2f90613a32565b601754600081815260086020908152604080832080546001600160a01b0319166001600160a01b038816179055600782529091208551611969928701906132ca565b50604080518082018252600381526208aa8960eb1b6020808301918252600085815260099091529290922090516119a092906132ca565b506000818152600b60209081526040808320859055600791829052909120600c8101805462ff0000191662010000179055620f42409101556017546119e6906001613b30565b60175550505050565b3360009081526015602052604090205460ff16611a1e5760405162461bcd60e51b8152600401610c2f90613a32565b6000818152600760205260409020600c01548190610100900460ff1615611a575760405162461bcd60e51b8152600401610c2f90613a08565b506000908152600760205260409020600c01805461ff001916610100179055565b6014546001600160a01b03163314611aa25760405162461bcd60e51b8152600401610c2f90613a5c565b6001600160a01b03166000908152601660205260409020805460ff19166001179055565b600081815260086020908152604080832054600b8352818420546007808552838620600681015491810154600c9182015491875285882054600d885286892054600990985295882080546001600160a01b039687169995989497929660ff909416959290931693926060929190611b3c906139d3565b80601f0160208091040260200160405190810160405280929190818152602001828054611b68906139d3565b8015611bb55780601f10611b8a57610100808354040283529160200191611bb5565b820191906000526020600020905b815481529060010190602001808311611b9857829003601f168201915b50505060009c8d525050600a6020526040909a2054989a9799969895979496939592946001600160a01b0390931692915050565b60008281526007602090815260408083208484526009019091529020805460609190611c14906139d3565b80601f0160208091040260200160405190810160405280929190818152602001828054611c40906139d3565b8015611c8d5780601f10611c6257610100808354040283529160200191611c8d565b820191906000526020600020905b815481529060010190602001808311611c7057829003601f168201915b5050505050905092915050565b6060806060806060600760008781526020019081526020016000206000018054611cc3906139d3565b80601f0160208091040260200160405190810160405280929190818152602001828054611cef906139d3565b8015611d3c5780601f10611d1157610100808354040283529160200191611d3c565b820191906000526020600020905b815481529060010190602001808311611d1f57829003601f168201915b5050506000898152600760205260409020600101805493985092611d62925090506139d3565b80601f0160208091040260200160405190810160405280929190818152602001828054611d8e906139d3565b8015611ddb5780601f10611db057610100808354040283529160200191611ddb565b820191906000526020600020905b815481529060010190602001808311611dbe57829003601f168201915b5050506000898152600760205260409020600201805493975092611e01925090506139d3565b80601f0160208091040260200160405190810160405280929190818152602001828054611e2d906139d3565b8015611e7a5780601f10611e4f57610100808354040283529160200191611e7a565b820191906000526020600020905b815481529060010190602001808311611e5d57829003601f168201915b5050506000898152600760205260409020600301805493965092611ea0925090506139d3565b80601f0160208091040260200160405190810160405280929190818152602001828054611ecc906139d3565b8015611f195780601f10611eee57610100808354040283529160200191611f19565b820191906000526020600020905b815481529060010190602001808311611efc57829003601f168201915b5050506000898152600760205260409020600401805493955092611f3f925090506139d3565b80601f0160208091040260200160405190810160405280929190818152602001828054611f6b906139d3565b8015611fb85780601f10611f8d57610100808354040283529160200191611fb8565b820191906000526020600020905b815481529060010190602001808311611f9b57829003601f168201915b5050505050905091939590929450565b606060018054610b37906139d3565b3360009081526015602052604090205460ff166120065760405162461bcd60e51b8152600401610c2f90613a32565b6000918252600b602052604090912055565b3360009081526015602052604090205460ff166120475760405162461bcd60e51b8152600401610c2f90613a32565b6000908152600760205260409020600c01805462ff0000198116620100009182900460ff1615909102179055565b612080338383612dd9565b5050565b3360009081526015602052604090205460ff166120b35760405162461bcd60e51b8152600401610c2f90613a32565b60008281526007602090815260409091208251610d65926002909201918401906132ca565b6000828152600760205260409020600c01548290610100900460ff16156121115760405162461bcd60e51b8152600401610c2f90613a08565b3360009081526015602052604090205460ff166121405760405162461bcd60e51b8152600401610c2f90613a32565b6000838152600760209081526040808320600a81015484526009018252909120835161216e928501906132ca565b506000838152600760205260409020600a015461218c906001613b30565b600093845260076020526040909320600a01929092555050565b6000838152600760205260409020600c01548390610100900460ff16156121df5760405162461bcd60e51b8152600401610c2f90613a08565b3360009081526015602052604090205460ff1661220e5760405162461bcd60e51b8152600401610c2f90613a32565b6000848152600760205260409020600a015483106122665760405162461bcd60e51b81526020600482015260156024820152747363726970744964206f7574206f662072616e676560581b6044820152606401610c2f565b600084815260076020908152604080832086845260090182529091208351612290928501906132ca565b5050505050565b6000828152600760205260409020600c01548290610100900460ff16156122d05760405162461bcd60e51b8152600401610c2f90613a08565b3360009081526015602052604090205460ff166122ff5760405162461bcd60e51b8152600401610c2f90613a32565b60008381526007602090815260409091208351610df1926001909201918501906132ca565b61232e3383612b46565b61234a5760405162461bcd60e51b8152600401610c2f90613a80565b610df184848484612ea8565b3360009081526015602052604090205460ff166123855760405162461bcd60e51b8152600401610c2f90613a32565b60648111156123c45760405162461bcd60e51b815260206004820152600b60248201526a4d6178206f66203130302560a81b6044820152606401610c2f565b6000918252600e602052604090912055565b6000828152600760205260409020600c01548290610100900460ff161561240f5760405162461bcd60e51b8152600401610c2f90613a08565b3360009081526015602052604090205460ff1661243e5760405162461bcd60e51b8152600401610c2f90613a32565b60008381526007602090815260409091208351610df1926008909201918501906132ca565b606081612487816000908152600260205260409020546001600160a01b0316151590565b6124d35760405162461bcd60e51b815260206004820152601760248201527f546f6b656e20494420646f6573206e6f742065786973740000000000000000006044820152606401610c2f565b6000838152601160209081526040808320548352600790915290206005016124fa84612edb565b60405160200161250b929190613b64565b60405160208183030381529060405291505b50919050565b3360009081526015602052604090205460ff166125525760405162461bcd60e51b8152600401610c2f90613a32565b6000908152600760205260409020600c01805460ff19811660ff90911615179055565b3360009081526015602052604090205460ff166125a45760405162461bcd60e51b8152600401610c2f90613a32565b600083815260096020908152604090912083516125c3928501906132ca565b506000928352600a602052604090922080546001600160a01b0319166001600160a01b039093169290921790915550565b6000818152600760205260409020600c01548190610100900460ff161561262d5760405162461bcd60e51b8152600401610c2f90613a08565b3360009081526015602052604090205460ff1661265c5760405162461bcd60e51b8152600401610c2f90613a32565b6000828152600760205260409020600a01546126ba5760405162461bcd60e51b815260206004820152601e60248201527f746865726520617265206e6f207363726970747320746f2072656d6f766500006044820152606401610c2f565b6000828152600760205260408120600a810154600990910191906126e090600190613c0b565b815260200190815260200160002060006126fa919061334e565b6000828152600760205260409020600a015461271890600190613c0b565b600092835260076020526040909220600a019190915550565b3360009081526015602052604090205460ff166127605760405162461bcd60e51b8152600401610c2f90613a32565b606481111561279f5760405162461bcd60e51b815260206004820152600b60248201526a4d6178206f66203130302560a81b6044820152606401610c2f565b6000928352600c6020908152604080852080546001600160a01b0319166001600160a01b039590951694909417909355600d9052912055565b6014546001600160a01b031633146128025760405162461bcd60e51b8152600401610c2f90613a5c565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b6000600260065414156128795760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c2f565b60026006556018546001600160a01b031633146128e25760405162461bcd60e51b815260206004820152602160248201527f4d757374206d696e742066726f6d206b756d616c656f6e20636f6e74726163746044820152601760f91b6064820152608401610c2f565b60006128f1620f424085613b1c565b60008181526007602081905260409091200154909150612914620f424086613c22565b106129615760405162461bcd60e51b815260206004820152601f60248201527f4d757374206e6f7420657863656564206d617820696e766f636174696f6e73006044820152606401610c2f565b6000818152600760205260409020600c015460ff168061299a57506000818152600860205260409020546001600160a01b038681169116145b6129e65760405162461bcd60e51b815260206004820181905260248201527f50726f6a656374206d75737420657869737420616e64206265206163746976656044820152606401610c2f565b6000818152600760205260409020600c015462010000900460ff161580612a2657506000818152600860205260409020546001600160a01b038681169116145b612a6a5760405162461bcd60e51b8152602060048201526015602482015274283ab931b430b9b2b99030b932903830bab9b2b21760591b6044820152606401610c2f565b6000612a7887838787612fd9565b6001600655979650505050505050565b60006001600160e01b031982166380ac58cd60e01b1480612ab957506001600160e01b03198216635b5e139f60e01b145b80610b2257506301ffc9a760e01b6001600160e01b0319831614610b22565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612b0d8261159c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316612bbf5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c2f565b6000612bca8361159c565b9050806001600160a01b0316846001600160a01b03161480612c1157506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80612c355750836001600160a01b0316612c2a84610bba565b6001600160a01b0316145b949350505050565b826001600160a01b0316612c508261159c565b6001600160a01b031614612cb45760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610c2f565b6001600160a01b038216612d165760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610c2f565b612d21600082612ad8565b6001600160a01b0383166000908152600360205260408120805460019290612d4a908490613c0b565b90915550506001600160a01b0382166000908152600360205260408120805460019290612d78908490613b30565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b816001600160a01b0316836001600160a01b03161415612e3b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c2f565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612eb3848484612c3d565b612ebf8484848461307e565b610df15760405162461bcd60e51b8152600401610c2f90613c36565b606081612eff5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612f295780612f1381613c88565b9150612f229050600a83613b1c565b9150612f03565b60008167ffffffffffffffff811115612f4457612f4461349f565b6040519080825280601f01601f191660200182016040528015612f6e576020820181803683370190505b5090505b8415612c3557612f83600183613c0b565b9150612f90600a86613c22565b612f9b906030613b30565b60f81b818381518110612fb057612fb0613ca3565b60200101906001600160f81b031916908160001a905350612fd2600a86613b1c565b9450612f72565b600083815260076020526040812060060154612ff6906001613b30565b6000858152600760209081526040808320600601939093558582526012815282822085905584825260139052208390556130308584613188565b60008381526011602052604080822086905551859185916001600160a01b038916917f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f91a450909392505050565b60006001600160a01b0384163b1561318057604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906130c2903390899088908890600401613cb9565b602060405180830381600087803b1580156130dc57600080fd5b505af192505050801561310c575060408051601f3d908101601f1916820190925261310991810190613cf6565b60015b613166573d80801561313a576040519150601f19603f3d011682016040523d82523d6000602084013e61313f565b606091505b50805161315e5760405162461bcd60e51b8152600401610c2f90613c36565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612c35565b506001612c35565b6001600160a01b0382166131de5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c2f565b6000818152600260205260409020546001600160a01b0316156132435760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c2f565b6001600160a01b038216600090815260036020526040812080546001929061326c908490613b30565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546132d6906139d3565b90600052602060002090601f0160209004810192826132f8576000855561333e565b82601f1061331157805160ff191683800117855561333e565b8280016001018555821561333e579182015b8281111561333e578251825591602001919060010190613323565b5061334a92915061338b565b5090565b50805461335a906139d3565b6000825580601f1061336a575050565b601f016020900490600052602060002090810190613388919061338b565b50565b5b8082111561334a576000815560010161338c565b6001600160e01b03198116811461338857600080fd5b6000602082840312156133c857600080fd5b81356133d3816133a0565b9392505050565b60005b838110156133f55781810151838201526020016133dd565b83811115610df15750506000910152565b6000815180845261341e8160208601602086016133da565b601f01601f19169290920160200192915050565b6020815260006133d36020830184613406565b60006020828403121561345757600080fd5b5035919050565b6001600160a01b038116811461338857600080fd5b6000806040838503121561348657600080fd5b82356134918161345e565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156134d0576134d061349f565b604051601f8501601f19908116603f011681019082821181831017156134f8576134f861349f565b8160405280935085815286868601111561351157600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261353c57600080fd5b6133d3838335602085016134b5565b6000806040838503121561355e57600080fd5b82359150602083013567ffffffffffffffff81111561357c57600080fd5b6135888582860161352b565b9150509250929050565b6000806000606084860312156135a757600080fd5b83356135b28161345e565b92506020840135915060408401356135c98161345e565b809150509250925092565b6000602082840312156135e657600080fd5b81356133d38161345e565b60008060006060848603121561360657600080fd5b83356136118161345e565b925060208401356136218161345e565b929592945050506040919091013590565b6000806040838503121561364557600080fd5b50508035926020909101359150565b60a08152600061366760a0830188613406565b866020840152828103604084015261367f8187613406565b941515606084015250509015156080909101529392505050565b600080604083850312156136ac57600080fd5b8235915060208301356136be8161345e565b809150509250929050565b6000806000606084860312156136de57600080fd5b833567ffffffffffffffff8111156136f557600080fd5b6137018682870161352b565b93505060208401356136218161345e565b600061012060018060a01b03808d1684528b60208501528a6040850152896060850152881515608085015280881660a08501528660c08501528160e085015261375d82850187613406565b925080851661010085015250509a9950505050505050505050565b60a08152600061378b60a0830188613406565b828103602084015261379d8188613406565b905082810360408401526137b18187613406565b905082810360608401526137c58186613406565b905082810360808401526137d98185613406565b98975050505050505050565b600080604083850312156137f857600080fd5b82356138038161345e565b9150602083013580151581146136be57600080fd5b60008060006060848603121561382d57600080fd5b8335925060208401359150604084013567ffffffffffffffff81111561385257600080fd5b61385e8682870161352b565b9150509250925092565b6000806000806080858703121561387e57600080fd5b84356138898161345e565b935060208501356138998161345e565b925060408501359150606085013567ffffffffffffffff8111156138bc57600080fd5b8501601f810187136138cd57600080fd5b6138dc878235602084016134b5565b91505092959194509250565b6000806000606084860312156138fd57600080fd5b83359250602084013567ffffffffffffffff81111561391b57600080fd5b6139278682870161352b565b92505060408401356135c98161345e565b60008060006060848603121561394d57600080fd5b8335925060208401356136218161345e565b6000806040838503121561397257600080fd5b823561397d8161345e565b915060208301356136be8161345e565b600080600080608085870312156139a357600080fd5b84356139ae8161345e565b935060208501356139be8161345e565b93969395505050506040820135916060013590565b600181811c908216806139e757607f821691505b6020821081141561251d57634e487b7160e01b600052602260045260246000fd5b60208082526010908201526f13db9b1e481a59881d5b9b1bd8dad95960821b604082015260600190565b60208082526010908201526f13db9b1e481dda1a5d195b1a5cdd195960821b604082015260600190565b6020808252600a908201526927b7363c9030b236b4b760b11b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615613b0157613b01613ad1565b500290565b634e487b7160e01b600052601260045260246000fd5b600082613b2b57613b2b613b06565b500490565b60008219821115613b4357613b43613ad1565b500190565b60008151613b5a8185602086016133da565b9290920192915050565b600080845481600182811c915080831680613b8057607f831692505b6020808410821415613ba057634e487b7160e01b86526022600452602486fd5b818015613bb45760018114613bc557613bf2565b60ff19861689528489019650613bf2565b60008b81526020902060005b86811015613bea5781548b820152908501908301613bd1565b505084890196505b505050505050613c028185613b48565b95945050505050565b600082821015613c1d57613c1d613ad1565b500390565b600082613c3157613c31613b06565b500690565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000600019821415613c9c57613c9c613ad1565b5060010190565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613cec90830184613406565b9695505050505050565b600060208284031215613d0857600080fd5b81516133d3816133a056fea264697066735822122050b8df4685f6396c02ca4461997e7379b7d83cfae1cdd3d2197fac7a42a5202964736f6c634300080900330000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000104b756d616c656f6e2047656e204172740000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034b47410000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106104125760003560e01c80638bddb0a611610220578063c6d7323111610130578063e2f273bd116100b8578063ed8abfda11610087578063ed8abfda14610a77578063f51f74a914610a97578063f70c0f0414610ab7578063f851a44014610ad7578063fdf2260614610aea57600080fd5b8063e2f273bd14610a0b578063e7e6e34b14610a1e578063e935b7b114610a32578063e985e9c514610a3b57600080fd5b8063d03c390c116100ff578063d03c390c14610996578063d195b365146109a9578063d7b044b6146109bc578063db2ff861146109e5578063e13208b4146109f857600080fd5b8063c6d732311461093d578063c87b56dd14610950578063cc74234b14610963578063cfbf4d971461098357600080fd5b8063a3b2cca6116101b3578063ad0305ce11610182578063ad0305ce146108ce578063b1656ba3146108f1578063b7b04fae14610904578063b88d4fde14610917578063c34a03b51461092a57600080fd5b8063a3b2cca6146107fd578063a47d29cb14610810578063a65ff74c14610839578063acad0124146108bb57600080fd5b806395d89b41116101ef57806395d89b41146107bc57806397dc86cf146107c4578063a11ec70a146107d7578063a22cb465146107ea57600080fd5b80638bddb0a61461074a5780638c2c36221461075d5780638c3c9cdd146107855780638dd91a561461079857600080fd5b806337859963116103265780636352211e116102ae57806370a082311161027d57806370a08231146106eb578063826fc391146106fe578063867f1a3b146107115780638763ad1e146107245780638ba8f14d1461073757600080fd5b80636352211e1461069f57806364046f86146106b257806369d14faf146106c55780636b6ec8a6146106d857600080fd5b806342842e0e116102f557806342842e0e1461060c57806345756bd11461061f578063498dd0c1146106325780634aa6d4171461065b578063621a1f741461067f57600080fd5b806337859963146105b05780633af32abf146105c35780633e48e848146105e65780633fef6c2a146105f957600080fd5b80631b689c0b116103a9578063291d954911610378578063291d9549146105475780632a55205a1461055a5780632c46fb4e1461058c5780632d9c0205146105945780632e9eb74f146105a757600080fd5b80631b689c0b146104ee57806320927ec91461050e57806323b872dd1461052157806325b75d681461053457600080fd5b80630d170673116103e55780630d170673146104945780630d4d1513146104a757806310154bad146104c857806311f5fdf1146104db57600080fd5b806301ffc9a71461041757806306fdde031461043f578063081812fc14610454578063095ea7b31461047f575b600080fd5b61042a6104253660046133b6565b610afd565b60405190151581526020015b60405180910390f35b610447610b28565b6040516104369190613432565b610467610462366004613445565b610bba565b6040516001600160a01b039091168152602001610436565b61049261048d366004613473565b610c54565b005b6104926104a236600461354b565b610d6a565b6104ba6104b5366004613592565b610df7565b604051908152602001610436565b6104926104d63660046135d4565b610e2d565b6104926104e9366004613445565b610e7b565b6104ba6104fc366004613445565b60116020526000908152604090205481565b61044761051c366004613445565b610ee8565b61049261052f3660046135f1565b610f82565b61049261054236600461354b565b610fb3565b6104926105553660046135d4565b611040565b61056d610568366004613632565b61108b565b604080516001600160a01b039093168352602083019190915201610436565b6104926110e6565b6104476105a2366004613445565b61117f565b6104ba60105481565b6104926105be36600461354b565b611224565b61042a6105d13660046135d4565b60156020526000908152604090205460ff1681565b6104926105f436600461354b565b611278565b61049261060736600461354b565b6112cc565b61049261061a3660046135f1565b611359565b61049261062d3660046135d4565b611374565b610467610640366004613445565b600a602052600090815260409020546001600160a01b031681565b61066e610669366004613445565b61141a565b604051610436959493929190613654565b6104ba61068d366004613445565b60126020526000908152604090205481565b6104676106ad366004613445565b61159c565b601854610467906001600160a01b031681565b6104926106d3366004613699565b611613565b6104926106e63660046135d4565b611670565b6104ba6106f93660046135d4565b6116bc565b61049261070c366004613632565b611743565b61049261071f3660046135d4565b6118ad565b6104926107323660046136c9565b6118f8565b610492610745366004613445565b6119ef565b6104926107583660046135d4565b611a78565b61077061076b366004613445565b611ac6565b60405161043699989796959493929190613712565b610447610793366004613632565b611be9565b6107ab6107a6366004613445565b611c9a565b604051610436959493929190613778565b610447611fc8565b6104926107d2366004613632565b611fd7565b6104926107e5366004613445565b612018565b6104926107f83660046137e5565b612075565b61049261080b36600461354b565b612084565b61046761081e366004613445565b6008602052600090815260409020546001600160a01b031681565b610890610847366004613445565b60009081526011602090815260408083205483526008825280832054600c835281842054600d845282852054600e90945291909320546001600160a01b03938416949390911692565b604080516001600160a01b039586168152949093166020850152918301526060820152608001610436565b6104926108c936600461354b565b6120d8565b61042a6108dc3660046135d4565b60166020526000908152604090205460ff1681565b6104926108ff366004613818565b6121a6565b61049261091236600461354b565b612297565b610492610925366004613868565b612324565b610492610938366004613632565b612356565b61049261094b36600461354b565b6123d6565b61044761095e366004613445565b612463565b6104ba610971366004613445565b600d6020526000908152604090205481565b600f54610467906001600160a01b031681565b6104926109a4366004613445565b612523565b6104926109b73660046138e8565b612575565b6104676109ca366004613445565b600c602052600090815260409020546001600160a01b031681565b6104926109f3366004613445565b6125f4565b610492610a06366004613938565b612731565b610492610a193660046135d4565b6127d8565b60185461042a90600160a01b900460ff1681565b6104ba60175481565b61042a610a4936600461395f565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6104ba610a85366004613445565b600e6020526000908152604090205481565b6104ba610aa5366004613445565b60136020526000908152604090205481565b6104ba610ac5366004613445565b600b6020526000908152604090205481565b601454610467906001600160a01b031681565b6104ba610af836600461398d565b612824565b60006001600160e01b0319821663152a902d60e11b1480610b225750610b2282612a88565b92915050565b606060008054610b37906139d3565b80601f0160208091040260200160405190810160405280929190818152602001828054610b63906139d3565b8015610bb05780601f10610b8557610100808354040283529160200191610bb0565b820191906000526020600020905b815481529060010190602001808311610b9357829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610c385760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610c5f8261159c565b9050806001600160a01b0316836001600160a01b03161415610ccd5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610c2f565b336001600160a01b0382161480610ce95750610ce98133610a49565b610d5b5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c2f565b610d658383612ad8565b505050565b6000828152600760205260409020600c01548290610100900460ff1615610da35760405162461bcd60e51b8152600401610c2f90613a08565b3360009081526015602052604090205460ff16610dd25760405162461bcd60e51b8152600401610c2f90613a32565b60008381526007602090815260409091208351610df1928501906132ca565b50505050565b60405162461bcd60e51b8152602060048201526008602482015267191a5cd8589b195960c21b6044820152600090606401610c2f565b6014546001600160a01b03163314610e575760405162461bcd60e51b8152600401610c2f90613a5c565b6001600160a01b03166000908152601560205260409020805460ff19166001179055565b6014546001600160a01b03163314610ea55760405162461bcd60e51b8152600401610c2f90613a5c565b6019811115610ee35760405162461bcd60e51b815260206004820152600a6024820152694d6178206f662032352560b01b6044820152606401610c2f565b601055565b60096020526000908152604090208054610f01906139d3565b80601f0160208091040260200160405190810160405280929190818152602001828054610f2d906139d3565b8015610f7a5780601f10610f4f57610100808354040283529160200191610f7a565b820191906000526020600020905b815481529060010190602001808311610f5d57829003601f168201915b505050505081565b610f8c3382612b46565b610fa85760405162461bcd60e51b8152600401610c2f90613a80565b610d65838383612c3d565b6000828152600760205260409020600c01548290610100900460ff1615610fec5760405162461bcd60e51b8152600401610c2f90613a08565b3360009081526015602052604090205460ff1661101b5760405162461bcd60e51b8152600401610c2f90613a32565b60008381526007602090815260409091208351610df1926004909201918501906132ca565b6014546001600160a01b0316331461106a5760405162461bcd60e51b8152600401610c2f90613a5c565b6001600160a01b03166000908152601560205260409020805460ff19169055565b600082815260116020908152604080832054808452600e90925282205482919060646110b78287613ae7565b6110c19190613b1c565b6000928352600c6020526040909220546001600160a01b031696919550909350505050565b6014546001600160a01b031633146111105760405162461bcd60e51b8152600401610c2f90613a5c565b601854600160a01b900460ff161561116a5760405162461bcd60e51b815260206004820152601e60248201527f4b756d616c656f6e47656e4172743a20416c72656164792066726f7a656e00006044820152606401610c2f565b6018805460ff60a01b1916600160a01b179055565b600081815260076020526040902060050180546060919061119f906139d3565b80601f01602080910402602001604051908101604052809291908181526020018280546111cb906139d3565b80156112185780601f106111ed57610100808354040283529160200191611218565b820191906000526020600020905b8154815290600101906020018083116111fb57829003601f168201915b50505050509050919050565b3360009081526015602052604090205460ff166112535760405162461bcd60e51b8152600401610c2f90613a32565b60008281526007602090815260409091208251610d65926003909201918401906132ca565b3360009081526015602052604090205460ff166112a75760405162461bcd60e51b8152600401610c2f90613a32565b60008281526007602090815260409091208251610d65926005909201918401906132ca565b6000828152600760205260409020600c01548290610100900460ff16156113055760405162461bcd60e51b8152600401610c2f90613a08565b3360009081526015602052604090205460ff166113345760405162461bcd60e51b8152600401610c2f90613a32565b60008381526007602090815260409091208351610df192600b909201918501906132ca565b610d6583838360405180602001604052806000815250612324565b6014546001600160a01b0316331461139e5760405162461bcd60e51b8152600401610c2f90613a5c565b601854600160a01b900460ff16156113f85760405162461bcd60e51b815260206004820152601e60248201527f4b756d616c656f6e47656e4172743a20416c72656164792066726f7a656e00006044820152606401610c2f565b601880546001600160a01b0319166001600160a01b0392909216919091179055565b606060006060600080600760008781526020019081526020016000206008018054611444906139d3565b80601f0160208091040260200160405190810160405280929190818152602001828054611470906139d3565b80156114bd5780601f10611492576101008083540402835291602001916114bd565b820191906000526020600020905b8154815290600101906020018083116114a057829003601f168201915b5050506000898152600760205260409020600a810154600b9091018054949950909750926114ed925090506139d3565b80601f0160208091040260200160405190810160405280929190818152602001828054611519906139d3565b80156115665780601f1061153b57610100808354040283529160200191611566565b820191906000526020600020905b81548152906001019060200180831161154957829003601f168201915b5050506000988952505060076020526040909620600c0154949693959460ff610100820481169562010000909204169350915050565b6000818152600260205260408120546001600160a01b031680610b225760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610c2f565b3360009081526015602052604090205460ff166116425760405162461bcd60e51b8152600401610c2f90613a32565b60009182526008602052604090912080546001600160a01b0319166001600160a01b03909216919091179055565b6014546001600160a01b0316331461169a5760405162461bcd60e51b8152600401610c2f90613a5c565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b0382166117275760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610c2f565b506001600160a01b031660009081526003602052604090205490565b3360009081526015602052604090205460ff166117725760405162461bcd60e51b8152600401610c2f90613a32565b6000828152600760205260409020600c0154610100900460ff1615806117a957506000828152600760208190526040909120015481105b6117c55760405162461bcd60e51b8152600401610c2f90613a08565b600082815260076020526040902060060154811161184b5760405162461bcd60e51b815260206004820152603d60248201527f596f75206d75737420736574206d617820696e766f636174696f6e732067726560448201527f61746572207468616e2063757272656e7420696e766f636174696f6e730000006064820152608401610c2f565b620f42408111156118965760405162461bcd60e51b8152602060048201526015602482015274043616e6e6f7420657863656564203130303030303605c1b6044820152606401610c2f565b600091825260076020819052604090922090910155565b6014546001600160a01b031633146118d75760405162461bcd60e51b8152600401610c2f90613a5c565b6001600160a01b03166000908152601660205260409020805460ff19169055565b3360009081526015602052604090205460ff166119275760405162461bcd60e51b8152600401610c2f90613a32565b601754600081815260086020908152604080832080546001600160a01b0319166001600160a01b038816179055600782529091208551611969928701906132ca565b50604080518082018252600381526208aa8960eb1b6020808301918252600085815260099091529290922090516119a092906132ca565b506000818152600b60209081526040808320859055600791829052909120600c8101805462ff0000191662010000179055620f42409101556017546119e6906001613b30565b60175550505050565b3360009081526015602052604090205460ff16611a1e5760405162461bcd60e51b8152600401610c2f90613a32565b6000818152600760205260409020600c01548190610100900460ff1615611a575760405162461bcd60e51b8152600401610c2f90613a08565b506000908152600760205260409020600c01805461ff001916610100179055565b6014546001600160a01b03163314611aa25760405162461bcd60e51b8152600401610c2f90613a5c565b6001600160a01b03166000908152601660205260409020805460ff19166001179055565b600081815260086020908152604080832054600b8352818420546007808552838620600681015491810154600c9182015491875285882054600d885286892054600990985295882080546001600160a01b039687169995989497929660ff909416959290931693926060929190611b3c906139d3565b80601f0160208091040260200160405190810160405280929190818152602001828054611b68906139d3565b8015611bb55780601f10611b8a57610100808354040283529160200191611bb5565b820191906000526020600020905b815481529060010190602001808311611b9857829003601f168201915b50505060009c8d525050600a6020526040909a2054989a9799969895979496939592946001600160a01b0390931692915050565b60008281526007602090815260408083208484526009019091529020805460609190611c14906139d3565b80601f0160208091040260200160405190810160405280929190818152602001828054611c40906139d3565b8015611c8d5780601f10611c6257610100808354040283529160200191611c8d565b820191906000526020600020905b815481529060010190602001808311611c7057829003601f168201915b5050505050905092915050565b6060806060806060600760008781526020019081526020016000206000018054611cc3906139d3565b80601f0160208091040260200160405190810160405280929190818152602001828054611cef906139d3565b8015611d3c5780601f10611d1157610100808354040283529160200191611d3c565b820191906000526020600020905b815481529060010190602001808311611d1f57829003601f168201915b5050506000898152600760205260409020600101805493985092611d62925090506139d3565b80601f0160208091040260200160405190810160405280929190818152602001828054611d8e906139d3565b8015611ddb5780601f10611db057610100808354040283529160200191611ddb565b820191906000526020600020905b815481529060010190602001808311611dbe57829003601f168201915b5050506000898152600760205260409020600201805493975092611e01925090506139d3565b80601f0160208091040260200160405190810160405280929190818152602001828054611e2d906139d3565b8015611e7a5780601f10611e4f57610100808354040283529160200191611e7a565b820191906000526020600020905b815481529060010190602001808311611e5d57829003601f168201915b5050506000898152600760205260409020600301805493965092611ea0925090506139d3565b80601f0160208091040260200160405190810160405280929190818152602001828054611ecc906139d3565b8015611f195780601f10611eee57610100808354040283529160200191611f19565b820191906000526020600020905b815481529060010190602001808311611efc57829003601f168201915b5050506000898152600760205260409020600401805493955092611f3f925090506139d3565b80601f0160208091040260200160405190810160405280929190818152602001828054611f6b906139d3565b8015611fb85780601f10611f8d57610100808354040283529160200191611fb8565b820191906000526020600020905b815481529060010190602001808311611f9b57829003601f168201915b5050505050905091939590929450565b606060018054610b37906139d3565b3360009081526015602052604090205460ff166120065760405162461bcd60e51b8152600401610c2f90613a32565b6000918252600b602052604090912055565b3360009081526015602052604090205460ff166120475760405162461bcd60e51b8152600401610c2f90613a32565b6000908152600760205260409020600c01805462ff0000198116620100009182900460ff1615909102179055565b612080338383612dd9565b5050565b3360009081526015602052604090205460ff166120b35760405162461bcd60e51b8152600401610c2f90613a32565b60008281526007602090815260409091208251610d65926002909201918401906132ca565b6000828152600760205260409020600c01548290610100900460ff16156121115760405162461bcd60e51b8152600401610c2f90613a08565b3360009081526015602052604090205460ff166121405760405162461bcd60e51b8152600401610c2f90613a32565b6000838152600760209081526040808320600a81015484526009018252909120835161216e928501906132ca565b506000838152600760205260409020600a015461218c906001613b30565b600093845260076020526040909320600a01929092555050565b6000838152600760205260409020600c01548390610100900460ff16156121df5760405162461bcd60e51b8152600401610c2f90613a08565b3360009081526015602052604090205460ff1661220e5760405162461bcd60e51b8152600401610c2f90613a32565b6000848152600760205260409020600a015483106122665760405162461bcd60e51b81526020600482015260156024820152747363726970744964206f7574206f662072616e676560581b6044820152606401610c2f565b600084815260076020908152604080832086845260090182529091208351612290928501906132ca565b5050505050565b6000828152600760205260409020600c01548290610100900460ff16156122d05760405162461bcd60e51b8152600401610c2f90613a08565b3360009081526015602052604090205460ff166122ff5760405162461bcd60e51b8152600401610c2f90613a32565b60008381526007602090815260409091208351610df1926001909201918501906132ca565b61232e3383612b46565b61234a5760405162461bcd60e51b8152600401610c2f90613a80565b610df184848484612ea8565b3360009081526015602052604090205460ff166123855760405162461bcd60e51b8152600401610c2f90613a32565b60648111156123c45760405162461bcd60e51b815260206004820152600b60248201526a4d6178206f66203130302560a81b6044820152606401610c2f565b6000918252600e602052604090912055565b6000828152600760205260409020600c01548290610100900460ff161561240f5760405162461bcd60e51b8152600401610c2f90613a08565b3360009081526015602052604090205460ff1661243e5760405162461bcd60e51b8152600401610c2f90613a32565b60008381526007602090815260409091208351610df1926008909201918501906132ca565b606081612487816000908152600260205260409020546001600160a01b0316151590565b6124d35760405162461bcd60e51b815260206004820152601760248201527f546f6b656e20494420646f6573206e6f742065786973740000000000000000006044820152606401610c2f565b6000838152601160209081526040808320548352600790915290206005016124fa84612edb565b60405160200161250b929190613b64565b60405160208183030381529060405291505b50919050565b3360009081526015602052604090205460ff166125525760405162461bcd60e51b8152600401610c2f90613a32565b6000908152600760205260409020600c01805460ff19811660ff90911615179055565b3360009081526015602052604090205460ff166125a45760405162461bcd60e51b8152600401610c2f90613a32565b600083815260096020908152604090912083516125c3928501906132ca565b506000928352600a602052604090922080546001600160a01b0319166001600160a01b039093169290921790915550565b6000818152600760205260409020600c01548190610100900460ff161561262d5760405162461bcd60e51b8152600401610c2f90613a08565b3360009081526015602052604090205460ff1661265c5760405162461bcd60e51b8152600401610c2f90613a32565b6000828152600760205260409020600a01546126ba5760405162461bcd60e51b815260206004820152601e60248201527f746865726520617265206e6f207363726970747320746f2072656d6f766500006044820152606401610c2f565b6000828152600760205260408120600a810154600990910191906126e090600190613c0b565b815260200190815260200160002060006126fa919061334e565b6000828152600760205260409020600a015461271890600190613c0b565b600092835260076020526040909220600a019190915550565b3360009081526015602052604090205460ff166127605760405162461bcd60e51b8152600401610c2f90613a32565b606481111561279f5760405162461bcd60e51b815260206004820152600b60248201526a4d6178206f66203130302560a81b6044820152606401610c2f565b6000928352600c6020908152604080852080546001600160a01b0319166001600160a01b039590951694909417909355600d9052912055565b6014546001600160a01b031633146128025760405162461bcd60e51b8152600401610c2f90613a5c565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b6000600260065414156128795760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c2f565b60026006556018546001600160a01b031633146128e25760405162461bcd60e51b815260206004820152602160248201527f4d757374206d696e742066726f6d206b756d616c656f6e20636f6e74726163746044820152601760f91b6064820152608401610c2f565b60006128f1620f424085613b1c565b60008181526007602081905260409091200154909150612914620f424086613c22565b106129615760405162461bcd60e51b815260206004820152601f60248201527f4d757374206e6f7420657863656564206d617820696e766f636174696f6e73006044820152606401610c2f565b6000818152600760205260409020600c015460ff168061299a57506000818152600860205260409020546001600160a01b038681169116145b6129e65760405162461bcd60e51b815260206004820181905260248201527f50726f6a656374206d75737420657869737420616e64206265206163746976656044820152606401610c2f565b6000818152600760205260409020600c015462010000900460ff161580612a2657506000818152600860205260409020546001600160a01b038681169116145b612a6a5760405162461bcd60e51b8152602060048201526015602482015274283ab931b430b9b2b99030b932903830bab9b2b21760591b6044820152606401610c2f565b6000612a7887838787612fd9565b6001600655979650505050505050565b60006001600160e01b031982166380ac58cd60e01b1480612ab957506001600160e01b03198216635b5e139f60e01b145b80610b2257506301ffc9a760e01b6001600160e01b0319831614610b22565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612b0d8261159c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316612bbf5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c2f565b6000612bca8361159c565b9050806001600160a01b0316846001600160a01b03161480612c1157506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80612c355750836001600160a01b0316612c2a84610bba565b6001600160a01b0316145b949350505050565b826001600160a01b0316612c508261159c565b6001600160a01b031614612cb45760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610c2f565b6001600160a01b038216612d165760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610c2f565b612d21600082612ad8565b6001600160a01b0383166000908152600360205260408120805460019290612d4a908490613c0b565b90915550506001600160a01b0382166000908152600360205260408120805460019290612d78908490613b30565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b816001600160a01b0316836001600160a01b03161415612e3b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c2f565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612eb3848484612c3d565b612ebf8484848461307e565b610df15760405162461bcd60e51b8152600401610c2f90613c36565b606081612eff5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612f295780612f1381613c88565b9150612f229050600a83613b1c565b9150612f03565b60008167ffffffffffffffff811115612f4457612f4461349f565b6040519080825280601f01601f191660200182016040528015612f6e576020820181803683370190505b5090505b8415612c3557612f83600183613c0b565b9150612f90600a86613c22565b612f9b906030613b30565b60f81b818381518110612fb057612fb0613ca3565b60200101906001600160f81b031916908160001a905350612fd2600a86613b1c565b9450612f72565b600083815260076020526040812060060154612ff6906001613b30565b6000858152600760209081526040808320600601939093558582526012815282822085905584825260139052208390556130308584613188565b60008381526011602052604080822086905551859185916001600160a01b038916917f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f91a450909392505050565b60006001600160a01b0384163b1561318057604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906130c2903390899088908890600401613cb9565b602060405180830381600087803b1580156130dc57600080fd5b505af192505050801561310c575060408051601f3d908101601f1916820190925261310991810190613cf6565b60015b613166573d80801561313a576040519150601f19603f3d011682016040523d82523d6000602084013e61313f565b606091505b50805161315e5760405162461bcd60e51b8152600401610c2f90613c36565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612c35565b506001612c35565b6001600160a01b0382166131de5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c2f565b6000818152600260205260409020546001600160a01b0316156132435760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c2f565b6001600160a01b038216600090815260036020526040812080546001929061326c908490613b30565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546132d6906139d3565b90600052602060002090601f0160209004810192826132f8576000855561333e565b82601f1061331157805160ff191683800117855561333e565b8280016001018555821561333e579182015b8281111561333e578251825591602001919060010190613323565b5061334a92915061338b565b5090565b50805461335a906139d3565b6000825580601f1061336a575050565b601f016020900490600052602060002090810190613388919061338b565b50565b5b8082111561334a576000815560010161338c565b6001600160e01b03198116811461338857600080fd5b6000602082840312156133c857600080fd5b81356133d3816133a0565b9392505050565b60005b838110156133f55781810151838201526020016133dd565b83811115610df15750506000910152565b6000815180845261341e8160208601602086016133da565b601f01601f19169290920160200192915050565b6020815260006133d36020830184613406565b60006020828403121561345757600080fd5b5035919050565b6001600160a01b038116811461338857600080fd5b6000806040838503121561348657600080fd5b82356134918161345e565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156134d0576134d061349f565b604051601f8501601f19908116603f011681019082821181831017156134f8576134f861349f565b8160405280935085815286868601111561351157600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261353c57600080fd5b6133d3838335602085016134b5565b6000806040838503121561355e57600080fd5b82359150602083013567ffffffffffffffff81111561357c57600080fd5b6135888582860161352b565b9150509250929050565b6000806000606084860312156135a757600080fd5b83356135b28161345e565b92506020840135915060408401356135c98161345e565b809150509250925092565b6000602082840312156135e657600080fd5b81356133d38161345e565b60008060006060848603121561360657600080fd5b83356136118161345e565b925060208401356136218161345e565b929592945050506040919091013590565b6000806040838503121561364557600080fd5b50508035926020909101359150565b60a08152600061366760a0830188613406565b866020840152828103604084015261367f8187613406565b941515606084015250509015156080909101529392505050565b600080604083850312156136ac57600080fd5b8235915060208301356136be8161345e565b809150509250929050565b6000806000606084860312156136de57600080fd5b833567ffffffffffffffff8111156136f557600080fd5b6137018682870161352b565b93505060208401356136218161345e565b600061012060018060a01b03808d1684528b60208501528a6040850152896060850152881515608085015280881660a08501528660c08501528160e085015261375d82850187613406565b925080851661010085015250509a9950505050505050505050565b60a08152600061378b60a0830188613406565b828103602084015261379d8188613406565b905082810360408401526137b18187613406565b905082810360608401526137c58186613406565b905082810360808401526137d98185613406565b98975050505050505050565b600080604083850312156137f857600080fd5b82356138038161345e565b9150602083013580151581146136be57600080fd5b60008060006060848603121561382d57600080fd5b8335925060208401359150604084013567ffffffffffffffff81111561385257600080fd5b61385e8682870161352b565b9150509250925092565b6000806000806080858703121561387e57600080fd5b84356138898161345e565b935060208501356138998161345e565b925060408501359150606085013567ffffffffffffffff8111156138bc57600080fd5b8501601f810187136138cd57600080fd5b6138dc878235602084016134b5565b91505092959194509250565b6000806000606084860312156138fd57600080fd5b83359250602084013567ffffffffffffffff81111561391b57600080fd5b6139278682870161352b565b92505060408401356135c98161345e565b60008060006060848603121561394d57600080fd5b8335925060208401356136218161345e565b6000806040838503121561397257600080fd5b823561397d8161345e565b915060208301356136be8161345e565b600080600080608085870312156139a357600080fd5b84356139ae8161345e565b935060208501356139be8161345e565b93969395505050506040820135916060013590565b600181811c908216806139e757607f821691505b6020821081141561251d57634e487b7160e01b600052602260045260246000fd5b60208082526010908201526f13db9b1e481a59881d5b9b1bd8dad95960821b604082015260600190565b60208082526010908201526f13db9b1e481dda1a5d195b1a5cdd195960821b604082015260600190565b6020808252600a908201526927b7363c9030b236b4b760b11b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615613b0157613b01613ad1565b500290565b634e487b7160e01b600052601260045260246000fd5b600082613b2b57613b2b613b06565b500490565b60008219821115613b4357613b43613ad1565b500190565b60008151613b5a8185602086016133da565b9290920192915050565b600080845481600182811c915080831680613b8057607f831692505b6020808410821415613ba057634e487b7160e01b86526022600452602486fd5b818015613bb45760018114613bc557613bf2565b60ff19861689528489019650613bf2565b60008b81526020902060005b86811015613bea5781548b820152908501908301613bd1565b505084890196505b505050505050613c028185613b48565b95945050505050565b600082821015613c1d57613c1d613ad1565b500390565b600082613c3157613c31613b06565b500690565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000600019821415613c9c57613c9c613ad1565b5060010190565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613cec90830184613406565b9695505050505050565b600060208284031215613d0857600080fd5b81516133d3816133a056fea264697066735822122050b8df4685f6396c02ca4461997e7379b7d83cfae1cdd3d2197fac7a42a5202964736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000104b756d616c656f6e2047656e204172740000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034b47410000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _tokenName (string): Kumaleon Gen Art
Arg [1] : _tokenSymbol (string): KGA
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000010
Arg [3] : 4b756d616c656f6e2047656e2041727400000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [5] : 4b47410000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.