ERC-721
Overview
Max Total Supply
0 ATP
Holders
150
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
0 ATPLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
GenArt721CoreV2_ATP
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 25 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: LGPL-3.0-only // Created By: Art Blocks Inc. import "../../interfaces/0.8.x/IRandomizer.sol"; import "../../interfaces/0.8.x/IGenArt721CoreV2_PBAB.sol"; import "@openzeppelin-4.5/contracts/utils/Strings.sol"; import "@openzeppelin-4.5/contracts/token/ERC721/ERC721.sol"; pragma solidity 0.8.9; /** * @title Powered by Art Blocks ERC-721 core contract. * @author Art Blocks Inc. */ contract GenArt721CoreV2_ATP is ERC721, IGenArt721CoreV2_PBAB { /// randomizer contract IRandomizer public randomizerContract; 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 projectIdToArtistAddress; mapping(uint256 => string) public projectIdToCurrencySymbol; mapping(uint256 => address) public projectIdToCurrencyAddress; mapping(uint256 => uint256) public projectIdToPricePerTokenInWei; mapping(uint256 => address payable) public projectIdToAdditionalPayee; mapping(uint256 => uint256) public projectIdToAdditionalPayeePercentage; mapping(uint256 => uint256) public projectIdToSecondaryMarketRoyaltyPercentage; address payable public renderProviderAddress; /// Percentage of mint revenue allocated to render provider uint256 public renderProviderPercentage = 10; mapping(uint256 => uint256) public tokenIdToProjectId; mapping(uint256 => bytes32) public tokenIdToHash; mapping(bytes32 => uint256) public hashToTokenId; /// admin for contract address public admin; /// true if address is whitelisted mapping(address => bool) public isWhitelisted; /// true if minter is whitelisted mapping(address => bool) public isMintWhitelisted; /// next project ID to be created uint256 public nextProjectId; modifier onlyValidTokenId(uint256 _tokenId) { require(_exists(_tokenId), "Token ID does not exist"); _; } modifier onlyUnlocked(uint256 _projectId) { require(!projects[_projectId].locked, "Only if unlocked"); _; } modifier onlyArtist(uint256 _projectId) { require( msg.sender == projectIdToArtistAddress[_projectId], "Only artist" ); _; } modifier onlyAdmin() { require(msg.sender == admin, "Only admin"); _; } modifier onlyWhitelisted() { require(isWhitelisted[msg.sender], "Only whitelisted"); _; } modifier onlyArtistOrWhitelisted(uint256 _projectId) { require( isWhitelisted[msg.sender] || msg.sender == projectIdToArtistAddress[_projectId], "Only artist or whitelisted" ); _; } /** * @notice Initializes contract. * @param _tokenName Name of token. * @param _tokenSymbol Token symbol. * @param _randomizerContract Randomizer contract. * @param _startingProjectId The initial next project ID. * @dev _startingProjectId should be set to a value much, much less than * max(uint256) to avoid overflow when adding to it. */ constructor( string memory _tokenName, string memory _tokenSymbol, address _randomizerContract, uint256 _startingProjectId ) ERC721(_tokenName, _tokenSymbol) { admin = msg.sender; isWhitelisted[msg.sender] = true; renderProviderAddress = payable(msg.sender); randomizerContract = IRandomizer(_randomizerContract); // initialize next project ID nextProjectId = _startingProjectId; } /** * @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 returns (uint256 _tokenId) { require( isMintWhitelisted[msg.sender], "Must mint from whitelisted minter contract." ); require( projects[_projectId].invocations + 1 <= 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 tokenId = _mintToken(_to, _projectId); return tokenId; } function _mintToken(address _to, uint256 _projectId) internal returns (uint256 _tokenId) { uint256 tokenIdToBe = (_projectId * ONE_MILLION) + projects[_projectId].invocations; projects[_projectId].invocations = projects[_projectId].invocations + 1; bytes32 hash = keccak256( abi.encodePacked( projects[_projectId].invocations, block.number, blockhash(block.number - 1), randomizerContract.returnValue() ) ); tokenIdToHash[tokenIdToBe] = hash; hashToTokenId[hash] = tokenIdToBe; _mint(_to, tokenIdToBe); tokenIdToProjectId[tokenIdToBe] = _projectId; emit Mint(_to, tokenIdToBe, _projectId); return tokenIdToBe; } /** * @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 Updates randomizer to `_randomizerAddress`. */ function updateRandomizerAddress(address _randomizerAddress) public onlyWhitelisted { randomizerContract = IRandomizer(_randomizerAddress); } /** * @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 onlyArtistOrWhitelisted(_projectId) { projectIdToArtistAddress[_projectId] = _artistAddress; } /** * @notice Toggles paused state of project `_projectId`. */ function toggleProjectIsPaused(uint256 _projectId) public onlyArtist(_projectId) { 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 onlyArtist(_projectId) { 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 onlyArtist(_projectId) { projectIdToPricePerTokenInWei[_projectId] = _pricePerTokenInWei; } /** * @notice Updates name of project `_projectId` to be `_projectName`. */ function updateProjectName(uint256 _projectId, string memory _projectName) public onlyUnlocked(_projectId) onlyArtistOrWhitelisted(_projectId) { projects[_projectId].name = _projectName; } /** * @notice Updates artist name for project `_projectId` to be * `_projectArtistName`. */ function updateProjectArtistName( uint256 _projectId, string memory _projectArtistName ) public onlyUnlocked(_projectId) onlyArtistOrWhitelisted(_projectId) { 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 onlyArtist(_projectId) { 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 onlyArtist(_projectId) { require(_secondMarketRoyalty <= 100, "Max of 100%"); projectIdToSecondaryMarketRoyaltyPercentage[ _projectId ] = _secondMarketRoyalty; } /** * @notice Updates description of project `_projectId`. */ function updateProjectDescription( uint256 _projectId, string memory _projectDescription ) public onlyArtist(_projectId) { projects[_projectId].description = _projectDescription; } /** * @notice Updates website of project `_projectId` to be `_projectWebsite`. */ function updateProjectWebsite( uint256 _projectId, string memory _projectWebsite ) public onlyArtist(_projectId) { projects[_projectId].website = _projectWebsite; } /** * @notice Updates license for project `_projectId`. */ function updateProjectLicense( uint256 _projectId, string memory _projectLicense ) public onlyUnlocked(_projectId) onlyArtistOrWhitelisted(_projectId) { projects[_projectId].license = _projectLicense; } /** * @notice Updates maximum invocations for project `_projectId` to * `_maxInvocations`. */ function updateProjectMaxInvocations( uint256 _projectId, uint256 _maxInvocations ) public onlyArtist(_projectId) { 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) onlyArtistOrWhitelisted(_projectId) { 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) onlyArtistOrWhitelisted(_projectId) { 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) onlyArtistOrWhitelisted(_projectId) { 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) onlyArtistOrWhitelisted(_projectId) { projects[_projectId].scriptJSON = _projectScriptJSON; } /** * @notice Updates ipfs hash for project `_projectId`. */ function updateProjectIpfsHash(uint256 _projectId, string memory _ipfsHash) public onlyUnlocked(_projectId) onlyArtistOrWhitelisted(_projectId) { projects[_projectId].ipfsHash = _ipfsHash; } /** * @notice Updates base URI for project `_projectId` to `_newBaseURI`. */ function updateProjectBaseURI(uint256 _projectId, string memory _newBaseURI) public onlyArtist(_projectId) { 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 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 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) ) ); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.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 overriden 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 || getApproved(tokenId) == spender || isApprovedForAll(owner, 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 (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 v4.4.1 (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`, 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 Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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 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); /** * @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; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 `IERC721.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.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 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// 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: LGPL-3.0-only // Created By: Art Blocks Inc. pragma solidity ^0.8.0; interface IGenArt721CoreV2_PBAB { /** * @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: LGPL-3.0-only // Creatd By: Art Blocks Inc. pragma solidity ^0.8.0; interface IRandomizer { function returnValue() external view returns (bytes32); }
{ "optimizer": { "enabled": true, "runs": 25 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_tokenName","type":"string"},{"internalType":"string","name":"_tokenSymbol","type":"string"},{"internalType":"address","name":"_randomizerContract","type":"address"},{"internalType":"uint256","name":"_startingProjectId","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_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":[{"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":[{"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":[{"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":[],"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":[],"name":"randomizerContract","outputs":[{"internalType":"contract IRandomizer","name":"","type":"address"}],"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":"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":"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","name":"_randomizerAddress","type":"address"}],"name":"updateRandomizerAddress","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
6080604052600a6010553480156200001657600080fd5b5060405162003f6438038062003f6483398101604081905262000039916200023f565b83518490849062000052906000906020850190620000cc565b50805162000068906001906020840190620000cc565b505060148054336001600160a01b031991821681179092556000828152601560205260409020805460ff19166001179055600f80548216909217909155600680549091166001600160a01b039490941693909317909255601755506200030f915050565b828054620000da90620002d2565b90600052602060002090601f016020900481019282620000fe576000855562000149565b82601f106200011957805160ff191683800117855562000149565b8280016001018555821562000149579182015b82811115620001495782518255916020019190600101906200012c565b50620001579291506200015b565b5090565b5b808211156200015757600081556001016200015c565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200019a57600080fd5b81516001600160401b0380821115620001b757620001b762000172565b604051601f8301601f19908116603f01168101908282118183101715620001e257620001e262000172565b81604052838152602092508683858801011115620001ff57600080fd5b600091505b8382101562000223578582018301518183018401529082019062000204565b83821115620002355760008385830101525b9695505050505050565b600080600080608085870312156200025657600080fd5b84516001600160401b03808211156200026e57600080fd5b6200027c8883890162000188565b955060208701519150808211156200029357600080fd5b50620002a28782880162000188565b604087015190945090506001600160a01b0381168114620002c257600080fd5b6060959095015193969295505050565b600181811c90821680620002e757607f821691505b602082108114156200030957634e487b7160e01b600052602260045260246000fd5b50919050565b613c45806200031f6000396000f3fe608060405234801561001057600080fd5b50600436106103265760003560e01c80638bddb0a6116101aa578063c34a03b5116100f5578063c34a03b514610804578063c6d7323114610817578063c87b56dd1461082a578063cc74234b1461083d578063cfbf4d971461085d578063d03c390c14610870578063d195b36514610883578063d7b044b614610896578063db2ff861146108bf578063e13208b4146108d2578063e2f273bd146108e5578063e935b7b1146108f8578063e985e9c514610901578063ed8abfda14610914578063f51f74a914610934578063f70c0f0414610954578063f851a4401461097457600080fd5b80638bddb0a6146106245780638c2c3622146106375780638c3c9cdd1461065f5780638dd91a561461067257806395d89b411461069657806397dc86cf1461069e578063a11ec70a146106b1578063a22cb465146106c4578063a3b2cca6146106d7578063a47d29cb146106ea578063a65ff74c14610713578063acad012414610795578063ad0305ce146107a8578063b1656ba3146107cb578063b7b04fae146107de578063b88d4fde146107f157600080fd5b80633785996311610275578063378599631461049d5780633af32abf146104b05780633e48e848146104d35780633fef6c2a146104e657806342842e0e146104f9578063498dd0c11461050c5780634aa6d41714610535578063621a1f74146105595780636352211e1461057957806369d14faf1461058c5780636b6ec8a61461059f5780636c907b7f146105b257806370a08231146105c5578063826fc391146105d8578063867f1a3b146105eb5780638763ad1e146105fe5780638ba8f14d1461061157600080fd5b806301ffc9a71461032b57806306fdde0314610353578063081812fc14610368578063095ea7b3146103935780630d170673146103a85780630d4d1513146103bb57806310154bad146103dc57806311f5fdf1146103ef5780631b689c0b1461040257806320927ec91461042257806323b872dd1461043557806325b75d6814610448578063291d95491461045b5780632d9c02051461046e5780632e9eb74f1461048157806336c7c12c1461048a575b600080fd5b61033e610339366004613270565b610987565b60405190151581526020015b60405180910390f35b61035b6109d9565b60405161034a91906132ec565b61037b6103763660046132ff565b610a6b565b6040516001600160a01b03909116815260200161034a565b6103a66103a136600461332d565b610af8565b005b6103a66103b6366004613404565b610c09565b6103ce6103c936600461344a565b610cba565b60405190815260200161034a565b6103a66103ea36600461348c565b610ebf565b6103a66103fd3660046132ff565b610f0d565b6103ce6104103660046132ff565b60116020526000908152604090205481565b61035b6104303660046132ff565b610f7a565b6103a66104433660046134a9565b611014565b6103a6610456366004613404565b611045565b6103a661046936600461348c565b6110f5565b61035b61047c3660046132ff565b611140565b6103ce60105481565b60065461037b906001600160a01b031681565b6103a66104ab366004613404565b6111e5565b61033e6104be36600461348c565b60156020526000908152604090205460ff1681565b6103a66104e1366004613404565b611248565b6103a66104f4366004613404565b6112a5565b6103a66105073660046134a9565b611355565b61037b61051a3660046132ff565b600a602052600090815260409020546001600160a01b031681565b6105486105433660046132ff565b611370565b60405161034a9594939291906134ea565b6103ce6105673660046132ff565b60126020526000908152604090205481565b61037b6105873660046132ff565b6114f2565b6103a661059a36600461352f565b611569565b6103a66105ad36600461348c565b6115ea565b6103a66105c036600461348c565b611636565b6103ce6105d336600461348c565b611687565b6103a66105e636600461355f565b61170e565b6103a66105f936600461348c565b611882565b6103a661060c366004613581565b6118cd565b6103a661061f3660046132ff565b6119c4565b6103a661063236600461348c565b611a4d565b61064a6106453660046132ff565b611a9b565b60405161034a999897969594939291906135c9565b61035b61066d36600461355f565b611bbe565b6106856106803660046132ff565b611c6f565b60405161034a95949392919061362f565b61035b611f9d565b6103a66106ac36600461355f565b611fac565b6103a66106bf3660046132ff565b611ff7565b6103a66106d236600461369c565b61205e565b6103a66106e5366004613404565b61206d565b61037b6106f83660046132ff565b6008602052600090815260409020546001600160a01b031681565b61076a6107213660046132ff565b60009081526011602090815260408083205483526008825280832054600c835281842054600d845282852054600e90945291909320546001600160a01b03938416949390911692565b604080516001600160a01b03958616815294909316602085015291830152606082015260800161034a565b6103a66107a3366004613404565b6120ca565b61033e6107b636600461348c565b60166020526000908152604090205460ff1681565b6103a66107d93660046136cf565b6121bc565b6103a66107ec366004613404565b6122d1565b6103a66107ff36600461371e565b612381565b6103a661081236600461355f565b6123b3565b6103a6610825366004613404565b61241f565b61035b6108383660046132ff565b6124cf565b6103ce61084b3660046132ff565b600d6020526000908152604090205481565b600f5461037b906001600160a01b031681565b6103a661087e3660046132ff565b612571565b6103a661089136600461379d565b6125c3565b61037b6108a43660046132ff565b600c602052600090815260409020546001600160a01b031681565b6103a66108cd3660046132ff565b61264c565b6103a66108e03660046137ec565b6127ad565b6103a66108f336600461348c565b612840565b6103ce60175481565b61033e61090f366004613813565b61288c565b6103ce6109223660046132ff565b600e6020526000908152604090205481565b6103ce6109423660046132ff565b60136020526000908152604090205481565b6103ce6109623660046132ff565b600b6020526000908152604090205481565b60145461037b906001600160a01b031681565b60006001600160e01b031982166380ac58cd60e01b14806109b857506001600160e01b03198216635b5e139f60e01b145b806109d357506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546109e890613841565b80601f0160208091040260200160405190810160405280929190818152602001828054610a1490613841565b8015610a615780601f10610a3657610100808354040283529160200191610a61565b820191906000526020600020905b815481529060010190602001808311610a4457829003601f168201915b5050505050905090565b6000610a76826128ba565b610adc5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610b03826114f2565b9050806001600160a01b0316836001600160a01b03161415610b715760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610ad3565b336001600160a01b0382161480610b8d5750610b8d813361288c565b610bfa5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608401610ad3565b610c0483836128d7565b505050565b6000828152600760205260409020600c01548290610100900460ff1615610c425760405162461bcd60e51b8152600401610ad390613876565b33600090815260156020526040902054839060ff1680610c7857506000818152600860205260409020546001600160a01b031633145b610c945760405162461bcd60e51b8152600401610ad3906138a0565b60008481526007602090815260409091208451610cb392860190613184565b5050505050565b3360009081526016602052604081205460ff16610d2d5760405162461bcd60e51b815260206004820152602b60248201527f4d757374206d696e742066726f6d2077686974656c6973746564206d696e746560448201526a391031b7b73a3930b1ba1760a91b6064820152608401610ad3565b600083815260076020819052604090912090810154600690910154610d539060016138ea565b1115610da15760405162461bcd60e51b815260206004820152601f60248201527f4d757374206e6f7420657863656564206d617820696e766f636174696f6e73006044820152606401610ad3565b6000838152600760205260409020600c015460ff1680610dda57506000838152600860205260409020546001600160a01b038381169116145b610e265760405162461bcd60e51b815260206004820181905260248201527f50726f6a656374206d75737420657869737420616e64206265206163746976656044820152606401610ad3565b6000838152600760205260409020600c015462010000900460ff161580610e6657506000838152600860205260409020546001600160a01b038381169116145b610eaa5760405162461bcd60e51b8152602060048201526015602482015274283ab931b430b9b2b99030b932903830bab9b2b21760591b6044820152606401610ad3565b6000610eb68585612945565b95945050505050565b6014546001600160a01b03163314610ee95760405162461bcd60e51b8152600401610ad390613902565b6001600160a01b03166000908152601560205260409020805460ff19166001179055565b6014546001600160a01b03163314610f375760405162461bcd60e51b8152600401610ad390613902565b6019811115610f755760405162461bcd60e51b815260206004820152600a6024820152694d6178206f662032352560b01b6044820152606401610ad3565b601055565b60096020526000908152604090208054610f9390613841565b80601f0160208091040260200160405190810160405280929190818152602001828054610fbf90613841565b801561100c5780601f10610fe15761010080835404028352916020019161100c565b820191906000526020600020905b815481529060010190602001808311610fef57829003601f168201915b505050505081565b61101e3382612ae4565b61103a5760405162461bcd60e51b8152600401610ad390613926565b610c04838383612bae565b6000828152600760205260409020600c01548290610100900460ff161561107e5760405162461bcd60e51b8152600401610ad390613876565b33600090815260156020526040902054839060ff16806110b457506000818152600860205260409020546001600160a01b031633145b6110d05760405162461bcd60e51b8152600401610ad3906138a0565b60008481526007602090815260409091208451610cb392600490920191860190613184565b6014546001600160a01b0316331461111f5760405162461bcd60e51b8152600401610ad390613902565b6001600160a01b03166000908152601560205260409020805460ff19169055565b600081815260076020526040902060050180546060919061116090613841565b80601f016020809104026020016040519081016040528092919081815260200182805461118c90613841565b80156111d95780601f106111ae576101008083540402835291602001916111d9565b820191906000526020600020905b8154815290600101906020018083116111bc57829003601f168201915b50505050509050919050565b60008281526008602052604090205482906001600160a01b0316331461121d5760405162461bcd60e51b8152600401610ad390613977565b6000838152600760209081526040909120835161124292600390920191850190613184565b50505050565b60008281526008602052604090205482906001600160a01b031633146112805760405162461bcd60e51b8152600401610ad390613977565b6000838152600760209081526040909120835161124292600590920191850190613184565b6000828152600760205260409020600c01548290610100900460ff16156112de5760405162461bcd60e51b8152600401610ad390613876565b33600090815260156020526040902054839060ff168061131457506000818152600860205260409020546001600160a01b031633145b6113305760405162461bcd60e51b8152600401610ad3906138a0565b60008481526007602090815260409091208451610cb392600b90920191860190613184565b610c0483838360405180602001604052806000815250612381565b60606000606060008060076000878152602001908152602001600020600801805461139a90613841565b80601f01602080910402602001604051908101604052809291908181526020018280546113c690613841565b80156114135780601f106113e857610100808354040283529160200191611413565b820191906000526020600020905b8154815290600101906020018083116113f657829003601f168201915b5050506000898152600760205260409020600a810154600b90910180549499509097509261144392509050613841565b80601f016020809104026020016040519081016040528092919081815260200182805461146f90613841565b80156114bc5780601f10611491576101008083540402835291602001916114bc565b820191906000526020600020905b81548152906001019060200180831161149f57829003601f168201915b5050506000988952505060076020526040909620600c0154949693959460ff610100820481169562010000909204169350915050565b6000818152600260205260408120546001600160a01b0316806109d35760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610ad3565b33600090815260156020526040902054829060ff168061159f57506000818152600860205260409020546001600160a01b031633145b6115bb5760405162461bcd60e51b8152600401610ad3906138a0565b5060009182526008602052604090912080546001600160a01b0319166001600160a01b03909216919091179055565b6014546001600160a01b031633146116145760405162461bcd60e51b8152600401610ad390613902565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526015602052604090205460ff166116655760405162461bcd60e51b8152600401610ad39061399c565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b0382166116f25760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610ad3565b506001600160a01b031660009081526003602052604090205490565b60008281526008602052604090205482906001600160a01b031633146117465760405162461bcd60e51b8152600401610ad390613977565b6000838152600760205260409020600c0154610100900460ff16158061177d57506000838152600760208190526040909120015482105b6117995760405162461bcd60e51b8152600401610ad390613876565b600083815260076020526040902060060154821161181f5760405162461bcd60e51b815260206004820152603d60248201527f596f75206d75737420736574206d617820696e766f636174696f6e732067726560448201527f61746572207468616e2063757272656e7420696e766f636174696f6e730000006064820152608401610ad3565b620f424082111561186a5760405162461bcd60e51b8152602060048201526015602482015274043616e6e6f7420657863656564203130303030303605c1b6044820152606401610ad3565b50600091825260076020819052604090922090910155565b6014546001600160a01b031633146118ac5760405162461bcd60e51b8152600401610ad390613902565b6001600160a01b03166000908152601660205260409020805460ff19169055565b3360009081526015602052604090205460ff166118fc5760405162461bcd60e51b8152600401610ad39061399c565b601754600081815260086020908152604080832080546001600160a01b0319166001600160a01b03881617905560078252909120855161193e92870190613184565b50604080518082018252600381526208aa8960eb1b6020808301918252600085815260099091529290922090516119759290613184565b506000818152600b60209081526040808320859055600791829052909120600c8101805462ff0000191662010000179055620f42409101556017546119bb9060016138ea565b60175550505050565b3360009081526015602052604090205460ff166119f35760405162461bcd60e51b8152600401610ad39061399c565b6000818152600760205260409020600c01548190610100900460ff1615611a2c5760405162461bcd60e51b8152600401610ad390613876565b506000908152600760205260409020600c01805461ff001916610100179055565b6014546001600160a01b03163314611a775760405162461bcd60e51b8152600401610ad390613902565b6001600160a01b03166000908152601660205260409020805460ff19166001179055565b600081815260086020908152604080832054600b8352818420546007808552838620600681015491810154600c9182015491875285882054600d885286892054600990985295882080546001600160a01b039687169995989497929660ff909416959290931693926060929190611b1190613841565b80601f0160208091040260200160405190810160405280929190818152602001828054611b3d90613841565b8015611b8a5780601f10611b5f57610100808354040283529160200191611b8a565b820191906000526020600020905b815481529060010190602001808311611b6d57829003601f168201915b50505060009c8d525050600a6020526040909a2054989a9799969895979496939592946001600160a01b0390931692915050565b60008281526007602090815260408083208484526009019091529020805460609190611be990613841565b80601f0160208091040260200160405190810160405280929190818152602001828054611c1590613841565b8015611c625780601f10611c3757610100808354040283529160200191611c62565b820191906000526020600020905b815481529060010190602001808311611c4557829003601f168201915b5050505050905092915050565b6060806060806060600760008781526020019081526020016000206000018054611c9890613841565b80601f0160208091040260200160405190810160405280929190818152602001828054611cc490613841565b8015611d115780601f10611ce657610100808354040283529160200191611d11565b820191906000526020600020905b815481529060010190602001808311611cf457829003601f168201915b5050506000898152600760205260409020600101805493985092611d3792509050613841565b80601f0160208091040260200160405190810160405280929190818152602001828054611d6390613841565b8015611db05780601f10611d8557610100808354040283529160200191611db0565b820191906000526020600020905b815481529060010190602001808311611d9357829003601f168201915b5050506000898152600760205260409020600201805493975092611dd692509050613841565b80601f0160208091040260200160405190810160405280929190818152602001828054611e0290613841565b8015611e4f5780601f10611e2457610100808354040283529160200191611e4f565b820191906000526020600020905b815481529060010190602001808311611e3257829003601f168201915b5050506000898152600760205260409020600301805493965092611e7592509050613841565b80601f0160208091040260200160405190810160405280929190818152602001828054611ea190613841565b8015611eee5780601f10611ec357610100808354040283529160200191611eee565b820191906000526020600020905b815481529060010190602001808311611ed157829003601f168201915b5050506000898152600760205260409020600401805493955092611f1492509050613841565b80601f0160208091040260200160405190810160405280929190818152602001828054611f4090613841565b8015611f8d5780601f10611f6257610100808354040283529160200191611f8d565b820191906000526020600020905b815481529060010190602001808311611f7057829003601f168201915b5050505050905091939590929450565b6060600180546109e890613841565b60008281526008602052604090205482906001600160a01b03163314611fe45760405162461bcd60e51b8152600401610ad390613977565b506000918252600b602052604090912055565b60008181526008602052604090205481906001600160a01b0316331461202f5760405162461bcd60e51b8152600401610ad390613977565b506000908152600760205260409020600c01805462ff0000198116620100009182900460ff1615909102179055565b612069338383612d4a565b5050565b60008281526008602052604090205482906001600160a01b031633146120a55760405162461bcd60e51b8152600401610ad390613977565b6000838152600760209081526040909120835161124292600290920191850190613184565b6000828152600760205260409020600c01548290610100900460ff16156121035760405162461bcd60e51b8152600401610ad390613876565b33600090815260156020526040902054839060ff168061213957506000818152600860205260409020546001600160a01b031633145b6121555760405162461bcd60e51b8152600401610ad3906138a0565b6000848152600760209081526040808320600a81015484526009018252909120845161218392860190613184565b506000848152600760205260409020600a01546121a19060016138ea565b600094855260076020526040909420600a0193909355505050565b6000838152600760205260409020600c01548390610100900460ff16156121f55760405162461bcd60e51b8152600401610ad390613876565b33600090815260156020526040902054849060ff168061222b57506000818152600860205260409020546001600160a01b031633145b6122475760405162461bcd60e51b8152600401610ad3906138a0565b6000858152600760205260409020600a0154841061229f5760405162461bcd60e51b81526020600482015260156024820152747363726970744964206f7574206f662072616e676560581b6044820152606401610ad3565b6000858152600760209081526040808320878452600901825290912084516122c992860190613184565b505050505050565b6000828152600760205260409020600c01548290610100900460ff161561230a5760405162461bcd60e51b8152600401610ad390613876565b33600090815260156020526040902054839060ff168061234057506000818152600860205260409020546001600160a01b031633145b61235c5760405162461bcd60e51b8152600401610ad3906138a0565b60008481526007602090815260409091208451610cb392600190920191860190613184565b61238b3383612ae4565b6123a75760405162461bcd60e51b8152600401610ad390613926565b61124284848484612e15565b60008281526008602052604090205482906001600160a01b031633146123eb5760405162461bcd60e51b8152600401610ad390613977565b606482111561240c5760405162461bcd60e51b8152600401610ad3906139c6565b506000918252600e602052604090912055565b6000828152600760205260409020600c01548290610100900460ff16156124585760405162461bcd60e51b8152600401610ad390613876565b33600090815260156020526040902054839060ff168061248e57506000818152600860205260409020546001600160a01b031633145b6124aa5760405162461bcd60e51b8152600401610ad3906138a0565b60008481526007602090815260409091208451610cb392600890920191860190613184565b6060816124db816128ba565b6125215760405162461bcd60e51b8152602060048201526017602482015276151bdad95b88125108191bd95cc81b9bdd08195e1a5cdd604a1b6044820152606401610ad3565b60008381526011602090815260408083205483526007909152902060050161254884612e48565b604051602001612559929190613a07565b60405160208183030381529060405291505b50919050565b3360009081526015602052604090205460ff166125a05760405162461bcd60e51b8152600401610ad39061399c565b6000908152600760205260409020600c01805460ff19811660ff90911615179055565b60008381526008602052604090205483906001600160a01b031633146125fb5760405162461bcd60e51b8152600401610ad390613977565b6000848152600960209081526040909120845161261a92860190613184565b50506000928352600a602052604090922080546001600160a01b0319166001600160a01b039093169290921790915550565b6000818152600760205260409020600c01548190610100900460ff16156126855760405162461bcd60e51b8152600401610ad390613876565b33600090815260156020526040902054829060ff16806126bb57506000818152600860205260409020546001600160a01b031633145b6126d75760405162461bcd60e51b8152600401610ad3906138a0565b6000838152600760205260409020600a01546127355760405162461bcd60e51b815260206004820152601e60248201527f746865726520617265206e6f207363726970747320746f2072656d6f766500006044820152606401610ad3565b6000838152600760205260408120600a8101546009909101919061275b90600190613aa5565b815260200190815260200160002060006127759190613208565b6000838152600760205260409020600a015461279390600190613aa5565b600093845260076020526040909320600a01929092555050565b60008381526008602052604090205483906001600160a01b031633146127e55760405162461bcd60e51b8152600401610ad390613977565b60648211156128065760405162461bcd60e51b8152600401610ad3906139c6565b506000928352600c6020908152604080852080546001600160a01b0319166001600160a01b039590951694909417909355600d9052912055565b6014546001600160a01b0316331461286a5760405162461bcd60e51b8152600401610ad390613902565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061290c826114f2565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600760205260408120600601548190612966620f424085613abc565b61297091906138ea565b6000848152600760205260409020600601549091506129909060016138ea565b600084815260076020526040812060060182905590436129b1600182613aa5565b40600660009054906101000a90046001600160a01b03166001600160a01b031663990c8f796040518163ffffffff1660e01b815260040160206040518083038186803b158015612a0057600080fd5b505afa158015612a14573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a389190613adb565b6040805160208101959095528401929092526060830152608082015260a00160408051601f198184030181529181528151602092830120600085815260128452828120829055818152601390935291208390559050612a978583612f45565b60008281526011602052604080822086905551859184916001600160a01b038916917f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f91a4509392505050565b6000612aef826128ba565b612b505760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610ad3565b6000612b5b836114f2565b9050806001600160a01b0316846001600160a01b03161480612b965750836001600160a01b0316612b8b84610a6b565b6001600160a01b0316145b80612ba65750612ba6818561288c565b949350505050565b826001600160a01b0316612bc1826114f2565b6001600160a01b031614612c255760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610ad3565b6001600160a01b038216612c875760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610ad3565b612c926000826128d7565b6001600160a01b0383166000908152600360205260408120805460019290612cbb908490613aa5565b90915550506001600160a01b0382166000908152600360205260408120805460019290612ce99084906138ea565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b816001600160a01b0316836001600160a01b03161415612da85760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b6044820152606401610ad3565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612e20848484612bae565b612e2c84848484613077565b6112425760405162461bcd60e51b8152600401610ad390613af4565b606081612e6c5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612e965780612e8081613b46565b9150612e8f9050600a83613b77565b9150612e70565b6000816001600160401b03811115612eb057612eb0613359565b6040519080825280601f01601f191660200182016040528015612eda576020820181803683370190505b5090505b8415612ba657612eef600183613aa5565b9150612efc600a86613b8b565b612f079060306138ea565b60f81b818381518110612f1c57612f1c613b9f565b60200101906001600160f81b031916908160001a905350612f3e600a86613b77565b9450612ede565b6001600160a01b038216612f9b5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ad3565b612fa4816128ba565b15612ff05760405162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b6044820152606401610ad3565b6001600160a01b03821660009081526003602052604081208054600192906130199084906138ea565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b1561317957604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906130bb903390899088908890600401613bb5565b602060405180830381600087803b1580156130d557600080fd5b505af1925050508015613105575060408051601f3d908101601f1916820190925261310291810190613bf2565b60015b61315f573d808015613133576040519150601f19603f3d011682016040523d82523d6000602084013e613138565b606091505b5080516131575760405162461bcd60e51b8152600401610ad390613af4565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612ba6565b506001949350505050565b82805461319090613841565b90600052602060002090601f0160209004810192826131b257600085556131f8565b82601f106131cb57805160ff19168380011785556131f8565b828001600101855582156131f8579182015b828111156131f85782518255916020019190600101906131dd565b50613204929150613245565b5090565b50805461321490613841565b6000825580601f10613224575050565b601f0160209004906000526020600020908101906132429190613245565b50565b5b808211156132045760008155600101613246565b6001600160e01b03198116811461324257600080fd5b60006020828403121561328257600080fd5b813561328d8161325a565b9392505050565b60005b838110156132af578181015183820152602001613297565b838111156112425750506000910152565b600081518084526132d8816020860160208601613294565b601f01601f19169290920160200192915050565b60208152600061328d60208301846132c0565b60006020828403121561331157600080fd5b5035919050565b6001600160a01b038116811461324257600080fd5b6000806040838503121561334057600080fd5b823561334b81613318565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b038084111561338957613389613359565b604051601f8501601f19908116603f011681019082821181831017156133b1576133b1613359565b816040528093508581528686860111156133ca57600080fd5b858560208301376000602087830101525050509392505050565b600082601f8301126133f557600080fd5b61328d8383356020850161336f565b6000806040838503121561341757600080fd5b8235915060208301356001600160401b0381111561343457600080fd5b613440858286016133e4565b9150509250929050565b60008060006060848603121561345f57600080fd5b833561346a81613318565b925060208401359150604084013561348181613318565b809150509250925092565b60006020828403121561349e57600080fd5b813561328d81613318565b6000806000606084860312156134be57600080fd5b83356134c981613318565b925060208401356134d981613318565b929592945050506040919091013590565b60a0815260006134fd60a08301886132c0565b866020840152828103604084015261351581876132c0565b941515606084015250509015156080909101529392505050565b6000806040838503121561354257600080fd5b82359150602083013561355481613318565b809150509250929050565b6000806040838503121561357257600080fd5b50508035926020909101359150565b60008060006060848603121561359657600080fd5b83356001600160401b038111156135ac57600080fd5b6135b8868287016133e4565b93505060208401356134d981613318565b600061012060018060a01b03808d1684528b60208501528a6040850152896060850152881515608085015280881660a08501528660c08501528160e0850152613614828501876132c0565b925080851661010085015250509a9950505050505050505050565b60a08152600061364260a08301886132c0565b828103602084015261365481886132c0565b9050828103604084015261366881876132c0565b9050828103606084015261367c81866132c0565b9050828103608084015261369081856132c0565b98975050505050505050565b600080604083850312156136af57600080fd5b82356136ba81613318565b91506020830135801515811461355457600080fd5b6000806000606084860312156136e457600080fd5b833592506020840135915060408401356001600160401b0381111561370857600080fd5b613714868287016133e4565b9150509250925092565b6000806000806080858703121561373457600080fd5b843561373f81613318565b9350602085013561374f81613318565b92506040850135915060608501356001600160401b0381111561377157600080fd5b8501601f8101871361378257600080fd5b6137918782356020840161336f565b91505092959194509250565b6000806000606084860312156137b257600080fd5b8335925060208401356001600160401b038111156137cf57600080fd5b6137db868287016133e4565b925050604084013561348181613318565b60008060006060848603121561380157600080fd5b8335925060208401356134d981613318565b6000806040838503121561382657600080fd5b823561383181613318565b9150602083013561355481613318565b600181811c9082168061385557607f821691505b6020821081141561256b57634e487b7160e01b600052602260045260246000fd5b60208082526010908201526f13db9b1e481a59881d5b9b1bd8dad95960821b604082015260600190565b6020808252601a908201527913db9b1e48185c9d1a5cdd081bdc881dda1a5d195b1a5cdd195960321b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082198211156138fd576138fd6138d4565b500190565b6020808252600a908201526927b7363c9030b236b4b760b11b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252600b908201526a13db9b1e48185c9d1a5cdd60aa1b604082015260600190565b60208082526010908201526f13db9b1e481dda1a5d195b1a5cdd195960821b604082015260600190565b6020808252600b908201526a4d6178206f66203130302560a81b604082015260600190565b600081516139fd818560208601613294565b9290920192915050565b600080845481600182811c915080831680613a2357607f831692505b6020808410821415613a4357634e487b7160e01b86526022600452602486fd5b818015613a575760018114613a6857613a95565b60ff19861689528489019650613a95565b60008b81526020902060005b86811015613a8d5781548b820152908501908301613a74565b505084890196505b505050505050610eb681856139eb565b600082821015613ab757613ab76138d4565b500390565b6000816000190483118215151615613ad657613ad66138d4565b500290565b600060208284031215613aed57600080fd5b5051919050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000600019821415613b5a57613b5a6138d4565b5060010190565b634e487b7160e01b600052601260045260246000fd5b600082613b8657613b86613b61565b500490565b600082613b9a57613b9a613b61565b500690565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613be8908301846132c0565b9695505050505050565b600060208284031215613c0457600080fd5b815161328d8161325a56fea2646970667358221220fc737c7412ad78adfc364d57b567dba30fab4e9c86b35785d1da8c5f681a9b1364736f6c63430008090033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000088098f7438773182b703625c4128aff85fcffc40000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a54656e6e6973204172740000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034154500000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106103265760003560e01c80638bddb0a6116101aa578063c34a03b5116100f5578063c34a03b514610804578063c6d7323114610817578063c87b56dd1461082a578063cc74234b1461083d578063cfbf4d971461085d578063d03c390c14610870578063d195b36514610883578063d7b044b614610896578063db2ff861146108bf578063e13208b4146108d2578063e2f273bd146108e5578063e935b7b1146108f8578063e985e9c514610901578063ed8abfda14610914578063f51f74a914610934578063f70c0f0414610954578063f851a4401461097457600080fd5b80638bddb0a6146106245780638c2c3622146106375780638c3c9cdd1461065f5780638dd91a561461067257806395d89b411461069657806397dc86cf1461069e578063a11ec70a146106b1578063a22cb465146106c4578063a3b2cca6146106d7578063a47d29cb146106ea578063a65ff74c14610713578063acad012414610795578063ad0305ce146107a8578063b1656ba3146107cb578063b7b04fae146107de578063b88d4fde146107f157600080fd5b80633785996311610275578063378599631461049d5780633af32abf146104b05780633e48e848146104d35780633fef6c2a146104e657806342842e0e146104f9578063498dd0c11461050c5780634aa6d41714610535578063621a1f74146105595780636352211e1461057957806369d14faf1461058c5780636b6ec8a61461059f5780636c907b7f146105b257806370a08231146105c5578063826fc391146105d8578063867f1a3b146105eb5780638763ad1e146105fe5780638ba8f14d1461061157600080fd5b806301ffc9a71461032b57806306fdde0314610353578063081812fc14610368578063095ea7b3146103935780630d170673146103a85780630d4d1513146103bb57806310154bad146103dc57806311f5fdf1146103ef5780631b689c0b1461040257806320927ec91461042257806323b872dd1461043557806325b75d6814610448578063291d95491461045b5780632d9c02051461046e5780632e9eb74f1461048157806336c7c12c1461048a575b600080fd5b61033e610339366004613270565b610987565b60405190151581526020015b60405180910390f35b61035b6109d9565b60405161034a91906132ec565b61037b6103763660046132ff565b610a6b565b6040516001600160a01b03909116815260200161034a565b6103a66103a136600461332d565b610af8565b005b6103a66103b6366004613404565b610c09565b6103ce6103c936600461344a565b610cba565b60405190815260200161034a565b6103a66103ea36600461348c565b610ebf565b6103a66103fd3660046132ff565b610f0d565b6103ce6104103660046132ff565b60116020526000908152604090205481565b61035b6104303660046132ff565b610f7a565b6103a66104433660046134a9565b611014565b6103a6610456366004613404565b611045565b6103a661046936600461348c565b6110f5565b61035b61047c3660046132ff565b611140565b6103ce60105481565b60065461037b906001600160a01b031681565b6103a66104ab366004613404565b6111e5565b61033e6104be36600461348c565b60156020526000908152604090205460ff1681565b6103a66104e1366004613404565b611248565b6103a66104f4366004613404565b6112a5565b6103a66105073660046134a9565b611355565b61037b61051a3660046132ff565b600a602052600090815260409020546001600160a01b031681565b6105486105433660046132ff565b611370565b60405161034a9594939291906134ea565b6103ce6105673660046132ff565b60126020526000908152604090205481565b61037b6105873660046132ff565b6114f2565b6103a661059a36600461352f565b611569565b6103a66105ad36600461348c565b6115ea565b6103a66105c036600461348c565b611636565b6103ce6105d336600461348c565b611687565b6103a66105e636600461355f565b61170e565b6103a66105f936600461348c565b611882565b6103a661060c366004613581565b6118cd565b6103a661061f3660046132ff565b6119c4565b6103a661063236600461348c565b611a4d565b61064a6106453660046132ff565b611a9b565b60405161034a999897969594939291906135c9565b61035b61066d36600461355f565b611bbe565b6106856106803660046132ff565b611c6f565b60405161034a95949392919061362f565b61035b611f9d565b6103a66106ac36600461355f565b611fac565b6103a66106bf3660046132ff565b611ff7565b6103a66106d236600461369c565b61205e565b6103a66106e5366004613404565b61206d565b61037b6106f83660046132ff565b6008602052600090815260409020546001600160a01b031681565b61076a6107213660046132ff565b60009081526011602090815260408083205483526008825280832054600c835281842054600d845282852054600e90945291909320546001600160a01b03938416949390911692565b604080516001600160a01b03958616815294909316602085015291830152606082015260800161034a565b6103a66107a3366004613404565b6120ca565b61033e6107b636600461348c565b60166020526000908152604090205460ff1681565b6103a66107d93660046136cf565b6121bc565b6103a66107ec366004613404565b6122d1565b6103a66107ff36600461371e565b612381565b6103a661081236600461355f565b6123b3565b6103a6610825366004613404565b61241f565b61035b6108383660046132ff565b6124cf565b6103ce61084b3660046132ff565b600d6020526000908152604090205481565b600f5461037b906001600160a01b031681565b6103a661087e3660046132ff565b612571565b6103a661089136600461379d565b6125c3565b61037b6108a43660046132ff565b600c602052600090815260409020546001600160a01b031681565b6103a66108cd3660046132ff565b61264c565b6103a66108e03660046137ec565b6127ad565b6103a66108f336600461348c565b612840565b6103ce60175481565b61033e61090f366004613813565b61288c565b6103ce6109223660046132ff565b600e6020526000908152604090205481565b6103ce6109423660046132ff565b60136020526000908152604090205481565b6103ce6109623660046132ff565b600b6020526000908152604090205481565b60145461037b906001600160a01b031681565b60006001600160e01b031982166380ac58cd60e01b14806109b857506001600160e01b03198216635b5e139f60e01b145b806109d357506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546109e890613841565b80601f0160208091040260200160405190810160405280929190818152602001828054610a1490613841565b8015610a615780601f10610a3657610100808354040283529160200191610a61565b820191906000526020600020905b815481529060010190602001808311610a4457829003601f168201915b5050505050905090565b6000610a76826128ba565b610adc5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610b03826114f2565b9050806001600160a01b0316836001600160a01b03161415610b715760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610ad3565b336001600160a01b0382161480610b8d5750610b8d813361288c565b610bfa5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608401610ad3565b610c0483836128d7565b505050565b6000828152600760205260409020600c01548290610100900460ff1615610c425760405162461bcd60e51b8152600401610ad390613876565b33600090815260156020526040902054839060ff1680610c7857506000818152600860205260409020546001600160a01b031633145b610c945760405162461bcd60e51b8152600401610ad3906138a0565b60008481526007602090815260409091208451610cb392860190613184565b5050505050565b3360009081526016602052604081205460ff16610d2d5760405162461bcd60e51b815260206004820152602b60248201527f4d757374206d696e742066726f6d2077686974656c6973746564206d696e746560448201526a391031b7b73a3930b1ba1760a91b6064820152608401610ad3565b600083815260076020819052604090912090810154600690910154610d539060016138ea565b1115610da15760405162461bcd60e51b815260206004820152601f60248201527f4d757374206e6f7420657863656564206d617820696e766f636174696f6e73006044820152606401610ad3565b6000838152600760205260409020600c015460ff1680610dda57506000838152600860205260409020546001600160a01b038381169116145b610e265760405162461bcd60e51b815260206004820181905260248201527f50726f6a656374206d75737420657869737420616e64206265206163746976656044820152606401610ad3565b6000838152600760205260409020600c015462010000900460ff161580610e6657506000838152600860205260409020546001600160a01b038381169116145b610eaa5760405162461bcd60e51b8152602060048201526015602482015274283ab931b430b9b2b99030b932903830bab9b2b21760591b6044820152606401610ad3565b6000610eb68585612945565b95945050505050565b6014546001600160a01b03163314610ee95760405162461bcd60e51b8152600401610ad390613902565b6001600160a01b03166000908152601560205260409020805460ff19166001179055565b6014546001600160a01b03163314610f375760405162461bcd60e51b8152600401610ad390613902565b6019811115610f755760405162461bcd60e51b815260206004820152600a6024820152694d6178206f662032352560b01b6044820152606401610ad3565b601055565b60096020526000908152604090208054610f9390613841565b80601f0160208091040260200160405190810160405280929190818152602001828054610fbf90613841565b801561100c5780601f10610fe15761010080835404028352916020019161100c565b820191906000526020600020905b815481529060010190602001808311610fef57829003601f168201915b505050505081565b61101e3382612ae4565b61103a5760405162461bcd60e51b8152600401610ad390613926565b610c04838383612bae565b6000828152600760205260409020600c01548290610100900460ff161561107e5760405162461bcd60e51b8152600401610ad390613876565b33600090815260156020526040902054839060ff16806110b457506000818152600860205260409020546001600160a01b031633145b6110d05760405162461bcd60e51b8152600401610ad3906138a0565b60008481526007602090815260409091208451610cb392600490920191860190613184565b6014546001600160a01b0316331461111f5760405162461bcd60e51b8152600401610ad390613902565b6001600160a01b03166000908152601560205260409020805460ff19169055565b600081815260076020526040902060050180546060919061116090613841565b80601f016020809104026020016040519081016040528092919081815260200182805461118c90613841565b80156111d95780601f106111ae576101008083540402835291602001916111d9565b820191906000526020600020905b8154815290600101906020018083116111bc57829003601f168201915b50505050509050919050565b60008281526008602052604090205482906001600160a01b0316331461121d5760405162461bcd60e51b8152600401610ad390613977565b6000838152600760209081526040909120835161124292600390920191850190613184565b50505050565b60008281526008602052604090205482906001600160a01b031633146112805760405162461bcd60e51b8152600401610ad390613977565b6000838152600760209081526040909120835161124292600590920191850190613184565b6000828152600760205260409020600c01548290610100900460ff16156112de5760405162461bcd60e51b8152600401610ad390613876565b33600090815260156020526040902054839060ff168061131457506000818152600860205260409020546001600160a01b031633145b6113305760405162461bcd60e51b8152600401610ad3906138a0565b60008481526007602090815260409091208451610cb392600b90920191860190613184565b610c0483838360405180602001604052806000815250612381565b60606000606060008060076000878152602001908152602001600020600801805461139a90613841565b80601f01602080910402602001604051908101604052809291908181526020018280546113c690613841565b80156114135780601f106113e857610100808354040283529160200191611413565b820191906000526020600020905b8154815290600101906020018083116113f657829003601f168201915b5050506000898152600760205260409020600a810154600b90910180549499509097509261144392509050613841565b80601f016020809104026020016040519081016040528092919081815260200182805461146f90613841565b80156114bc5780601f10611491576101008083540402835291602001916114bc565b820191906000526020600020905b81548152906001019060200180831161149f57829003601f168201915b5050506000988952505060076020526040909620600c0154949693959460ff610100820481169562010000909204169350915050565b6000818152600260205260408120546001600160a01b0316806109d35760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610ad3565b33600090815260156020526040902054829060ff168061159f57506000818152600860205260409020546001600160a01b031633145b6115bb5760405162461bcd60e51b8152600401610ad3906138a0565b5060009182526008602052604090912080546001600160a01b0319166001600160a01b03909216919091179055565b6014546001600160a01b031633146116145760405162461bcd60e51b8152600401610ad390613902565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526015602052604090205460ff166116655760405162461bcd60e51b8152600401610ad39061399c565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b0382166116f25760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610ad3565b506001600160a01b031660009081526003602052604090205490565b60008281526008602052604090205482906001600160a01b031633146117465760405162461bcd60e51b8152600401610ad390613977565b6000838152600760205260409020600c0154610100900460ff16158061177d57506000838152600760208190526040909120015482105b6117995760405162461bcd60e51b8152600401610ad390613876565b600083815260076020526040902060060154821161181f5760405162461bcd60e51b815260206004820152603d60248201527f596f75206d75737420736574206d617820696e766f636174696f6e732067726560448201527f61746572207468616e2063757272656e7420696e766f636174696f6e730000006064820152608401610ad3565b620f424082111561186a5760405162461bcd60e51b8152602060048201526015602482015274043616e6e6f7420657863656564203130303030303605c1b6044820152606401610ad3565b50600091825260076020819052604090922090910155565b6014546001600160a01b031633146118ac5760405162461bcd60e51b8152600401610ad390613902565b6001600160a01b03166000908152601660205260409020805460ff19169055565b3360009081526015602052604090205460ff166118fc5760405162461bcd60e51b8152600401610ad39061399c565b601754600081815260086020908152604080832080546001600160a01b0319166001600160a01b03881617905560078252909120855161193e92870190613184565b50604080518082018252600381526208aa8960eb1b6020808301918252600085815260099091529290922090516119759290613184565b506000818152600b60209081526040808320859055600791829052909120600c8101805462ff0000191662010000179055620f42409101556017546119bb9060016138ea565b60175550505050565b3360009081526015602052604090205460ff166119f35760405162461bcd60e51b8152600401610ad39061399c565b6000818152600760205260409020600c01548190610100900460ff1615611a2c5760405162461bcd60e51b8152600401610ad390613876565b506000908152600760205260409020600c01805461ff001916610100179055565b6014546001600160a01b03163314611a775760405162461bcd60e51b8152600401610ad390613902565b6001600160a01b03166000908152601660205260409020805460ff19166001179055565b600081815260086020908152604080832054600b8352818420546007808552838620600681015491810154600c9182015491875285882054600d885286892054600990985295882080546001600160a01b039687169995989497929660ff909416959290931693926060929190611b1190613841565b80601f0160208091040260200160405190810160405280929190818152602001828054611b3d90613841565b8015611b8a5780601f10611b5f57610100808354040283529160200191611b8a565b820191906000526020600020905b815481529060010190602001808311611b6d57829003601f168201915b50505060009c8d525050600a6020526040909a2054989a9799969895979496939592946001600160a01b0390931692915050565b60008281526007602090815260408083208484526009019091529020805460609190611be990613841565b80601f0160208091040260200160405190810160405280929190818152602001828054611c1590613841565b8015611c625780601f10611c3757610100808354040283529160200191611c62565b820191906000526020600020905b815481529060010190602001808311611c4557829003601f168201915b5050505050905092915050565b6060806060806060600760008781526020019081526020016000206000018054611c9890613841565b80601f0160208091040260200160405190810160405280929190818152602001828054611cc490613841565b8015611d115780601f10611ce657610100808354040283529160200191611d11565b820191906000526020600020905b815481529060010190602001808311611cf457829003601f168201915b5050506000898152600760205260409020600101805493985092611d3792509050613841565b80601f0160208091040260200160405190810160405280929190818152602001828054611d6390613841565b8015611db05780601f10611d8557610100808354040283529160200191611db0565b820191906000526020600020905b815481529060010190602001808311611d9357829003601f168201915b5050506000898152600760205260409020600201805493975092611dd692509050613841565b80601f0160208091040260200160405190810160405280929190818152602001828054611e0290613841565b8015611e4f5780601f10611e2457610100808354040283529160200191611e4f565b820191906000526020600020905b815481529060010190602001808311611e3257829003601f168201915b5050506000898152600760205260409020600301805493965092611e7592509050613841565b80601f0160208091040260200160405190810160405280929190818152602001828054611ea190613841565b8015611eee5780601f10611ec357610100808354040283529160200191611eee565b820191906000526020600020905b815481529060010190602001808311611ed157829003601f168201915b5050506000898152600760205260409020600401805493955092611f1492509050613841565b80601f0160208091040260200160405190810160405280929190818152602001828054611f4090613841565b8015611f8d5780601f10611f6257610100808354040283529160200191611f8d565b820191906000526020600020905b815481529060010190602001808311611f7057829003601f168201915b5050505050905091939590929450565b6060600180546109e890613841565b60008281526008602052604090205482906001600160a01b03163314611fe45760405162461bcd60e51b8152600401610ad390613977565b506000918252600b602052604090912055565b60008181526008602052604090205481906001600160a01b0316331461202f5760405162461bcd60e51b8152600401610ad390613977565b506000908152600760205260409020600c01805462ff0000198116620100009182900460ff1615909102179055565b612069338383612d4a565b5050565b60008281526008602052604090205482906001600160a01b031633146120a55760405162461bcd60e51b8152600401610ad390613977565b6000838152600760209081526040909120835161124292600290920191850190613184565b6000828152600760205260409020600c01548290610100900460ff16156121035760405162461bcd60e51b8152600401610ad390613876565b33600090815260156020526040902054839060ff168061213957506000818152600860205260409020546001600160a01b031633145b6121555760405162461bcd60e51b8152600401610ad3906138a0565b6000848152600760209081526040808320600a81015484526009018252909120845161218392860190613184565b506000848152600760205260409020600a01546121a19060016138ea565b600094855260076020526040909420600a0193909355505050565b6000838152600760205260409020600c01548390610100900460ff16156121f55760405162461bcd60e51b8152600401610ad390613876565b33600090815260156020526040902054849060ff168061222b57506000818152600860205260409020546001600160a01b031633145b6122475760405162461bcd60e51b8152600401610ad3906138a0565b6000858152600760205260409020600a0154841061229f5760405162461bcd60e51b81526020600482015260156024820152747363726970744964206f7574206f662072616e676560581b6044820152606401610ad3565b6000858152600760209081526040808320878452600901825290912084516122c992860190613184565b505050505050565b6000828152600760205260409020600c01548290610100900460ff161561230a5760405162461bcd60e51b8152600401610ad390613876565b33600090815260156020526040902054839060ff168061234057506000818152600860205260409020546001600160a01b031633145b61235c5760405162461bcd60e51b8152600401610ad3906138a0565b60008481526007602090815260409091208451610cb392600190920191860190613184565b61238b3383612ae4565b6123a75760405162461bcd60e51b8152600401610ad390613926565b61124284848484612e15565b60008281526008602052604090205482906001600160a01b031633146123eb5760405162461bcd60e51b8152600401610ad390613977565b606482111561240c5760405162461bcd60e51b8152600401610ad3906139c6565b506000918252600e602052604090912055565b6000828152600760205260409020600c01548290610100900460ff16156124585760405162461bcd60e51b8152600401610ad390613876565b33600090815260156020526040902054839060ff168061248e57506000818152600860205260409020546001600160a01b031633145b6124aa5760405162461bcd60e51b8152600401610ad3906138a0565b60008481526007602090815260409091208451610cb392600890920191860190613184565b6060816124db816128ba565b6125215760405162461bcd60e51b8152602060048201526017602482015276151bdad95b88125108191bd95cc81b9bdd08195e1a5cdd604a1b6044820152606401610ad3565b60008381526011602090815260408083205483526007909152902060050161254884612e48565b604051602001612559929190613a07565b60405160208183030381529060405291505b50919050565b3360009081526015602052604090205460ff166125a05760405162461bcd60e51b8152600401610ad39061399c565b6000908152600760205260409020600c01805460ff19811660ff90911615179055565b60008381526008602052604090205483906001600160a01b031633146125fb5760405162461bcd60e51b8152600401610ad390613977565b6000848152600960209081526040909120845161261a92860190613184565b50506000928352600a602052604090922080546001600160a01b0319166001600160a01b039093169290921790915550565b6000818152600760205260409020600c01548190610100900460ff16156126855760405162461bcd60e51b8152600401610ad390613876565b33600090815260156020526040902054829060ff16806126bb57506000818152600860205260409020546001600160a01b031633145b6126d75760405162461bcd60e51b8152600401610ad3906138a0565b6000838152600760205260409020600a01546127355760405162461bcd60e51b815260206004820152601e60248201527f746865726520617265206e6f207363726970747320746f2072656d6f766500006044820152606401610ad3565b6000838152600760205260408120600a8101546009909101919061275b90600190613aa5565b815260200190815260200160002060006127759190613208565b6000838152600760205260409020600a015461279390600190613aa5565b600093845260076020526040909320600a01929092555050565b60008381526008602052604090205483906001600160a01b031633146127e55760405162461bcd60e51b8152600401610ad390613977565b60648211156128065760405162461bcd60e51b8152600401610ad3906139c6565b506000928352600c6020908152604080852080546001600160a01b0319166001600160a01b039590951694909417909355600d9052912055565b6014546001600160a01b0316331461286a5760405162461bcd60e51b8152600401610ad390613902565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061290c826114f2565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600760205260408120600601548190612966620f424085613abc565b61297091906138ea565b6000848152600760205260409020600601549091506129909060016138ea565b600084815260076020526040812060060182905590436129b1600182613aa5565b40600660009054906101000a90046001600160a01b03166001600160a01b031663990c8f796040518163ffffffff1660e01b815260040160206040518083038186803b158015612a0057600080fd5b505afa158015612a14573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a389190613adb565b6040805160208101959095528401929092526060830152608082015260a00160408051601f198184030181529181528151602092830120600085815260128452828120829055818152601390935291208390559050612a978583612f45565b60008281526011602052604080822086905551859184916001600160a01b038916917f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f91a4509392505050565b6000612aef826128ba565b612b505760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610ad3565b6000612b5b836114f2565b9050806001600160a01b0316846001600160a01b03161480612b965750836001600160a01b0316612b8b84610a6b565b6001600160a01b0316145b80612ba65750612ba6818561288c565b949350505050565b826001600160a01b0316612bc1826114f2565b6001600160a01b031614612c255760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610ad3565b6001600160a01b038216612c875760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610ad3565b612c926000826128d7565b6001600160a01b0383166000908152600360205260408120805460019290612cbb908490613aa5565b90915550506001600160a01b0382166000908152600360205260408120805460019290612ce99084906138ea565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b816001600160a01b0316836001600160a01b03161415612da85760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b6044820152606401610ad3565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612e20848484612bae565b612e2c84848484613077565b6112425760405162461bcd60e51b8152600401610ad390613af4565b606081612e6c5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612e965780612e8081613b46565b9150612e8f9050600a83613b77565b9150612e70565b6000816001600160401b03811115612eb057612eb0613359565b6040519080825280601f01601f191660200182016040528015612eda576020820181803683370190505b5090505b8415612ba657612eef600183613aa5565b9150612efc600a86613b8b565b612f079060306138ea565b60f81b818381518110612f1c57612f1c613b9f565b60200101906001600160f81b031916908160001a905350612f3e600a86613b77565b9450612ede565b6001600160a01b038216612f9b5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ad3565b612fa4816128ba565b15612ff05760405162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b6044820152606401610ad3565b6001600160a01b03821660009081526003602052604081208054600192906130199084906138ea565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b1561317957604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906130bb903390899088908890600401613bb5565b602060405180830381600087803b1580156130d557600080fd5b505af1925050508015613105575060408051601f3d908101601f1916820190925261310291810190613bf2565b60015b61315f573d808015613133576040519150601f19603f3d011682016040523d82523d6000602084013e613138565b606091505b5080516131575760405162461bcd60e51b8152600401610ad390613af4565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612ba6565b506001949350505050565b82805461319090613841565b90600052602060002090601f0160209004810192826131b257600085556131f8565b82601f106131cb57805160ff19168380011785556131f8565b828001600101855582156131f8579182015b828111156131f85782518255916020019190600101906131dd565b50613204929150613245565b5090565b50805461321490613841565b6000825580601f10613224575050565b601f0160209004906000526020600020908101906132429190613245565b50565b5b808211156132045760008155600101613246565b6001600160e01b03198116811461324257600080fd5b60006020828403121561328257600080fd5b813561328d8161325a565b9392505050565b60005b838110156132af578181015183820152602001613297565b838111156112425750506000910152565b600081518084526132d8816020860160208601613294565b601f01601f19169290920160200192915050565b60208152600061328d60208301846132c0565b60006020828403121561331157600080fd5b5035919050565b6001600160a01b038116811461324257600080fd5b6000806040838503121561334057600080fd5b823561334b81613318565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b038084111561338957613389613359565b604051601f8501601f19908116603f011681019082821181831017156133b1576133b1613359565b816040528093508581528686860111156133ca57600080fd5b858560208301376000602087830101525050509392505050565b600082601f8301126133f557600080fd5b61328d8383356020850161336f565b6000806040838503121561341757600080fd5b8235915060208301356001600160401b0381111561343457600080fd5b613440858286016133e4565b9150509250929050565b60008060006060848603121561345f57600080fd5b833561346a81613318565b925060208401359150604084013561348181613318565b809150509250925092565b60006020828403121561349e57600080fd5b813561328d81613318565b6000806000606084860312156134be57600080fd5b83356134c981613318565b925060208401356134d981613318565b929592945050506040919091013590565b60a0815260006134fd60a08301886132c0565b866020840152828103604084015261351581876132c0565b941515606084015250509015156080909101529392505050565b6000806040838503121561354257600080fd5b82359150602083013561355481613318565b809150509250929050565b6000806040838503121561357257600080fd5b50508035926020909101359150565b60008060006060848603121561359657600080fd5b83356001600160401b038111156135ac57600080fd5b6135b8868287016133e4565b93505060208401356134d981613318565b600061012060018060a01b03808d1684528b60208501528a6040850152896060850152881515608085015280881660a08501528660c08501528160e0850152613614828501876132c0565b925080851661010085015250509a9950505050505050505050565b60a08152600061364260a08301886132c0565b828103602084015261365481886132c0565b9050828103604084015261366881876132c0565b9050828103606084015261367c81866132c0565b9050828103608084015261369081856132c0565b98975050505050505050565b600080604083850312156136af57600080fd5b82356136ba81613318565b91506020830135801515811461355457600080fd5b6000806000606084860312156136e457600080fd5b833592506020840135915060408401356001600160401b0381111561370857600080fd5b613714868287016133e4565b9150509250925092565b6000806000806080858703121561373457600080fd5b843561373f81613318565b9350602085013561374f81613318565b92506040850135915060608501356001600160401b0381111561377157600080fd5b8501601f8101871361378257600080fd5b6137918782356020840161336f565b91505092959194509250565b6000806000606084860312156137b257600080fd5b8335925060208401356001600160401b038111156137cf57600080fd5b6137db868287016133e4565b925050604084013561348181613318565b60008060006060848603121561380157600080fd5b8335925060208401356134d981613318565b6000806040838503121561382657600080fd5b823561383181613318565b9150602083013561355481613318565b600181811c9082168061385557607f821691505b6020821081141561256b57634e487b7160e01b600052602260045260246000fd5b60208082526010908201526f13db9b1e481a59881d5b9b1bd8dad95960821b604082015260600190565b6020808252601a908201527913db9b1e48185c9d1a5cdd081bdc881dda1a5d195b1a5cdd195960321b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082198211156138fd576138fd6138d4565b500190565b6020808252600a908201526927b7363c9030b236b4b760b11b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252600b908201526a13db9b1e48185c9d1a5cdd60aa1b604082015260600190565b60208082526010908201526f13db9b1e481dda1a5d195b1a5cdd195960821b604082015260600190565b6020808252600b908201526a4d6178206f66203130302560a81b604082015260600190565b600081516139fd818560208601613294565b9290920192915050565b600080845481600182811c915080831680613a2357607f831692505b6020808410821415613a4357634e487b7160e01b86526022600452602486fd5b818015613a575760018114613a6857613a95565b60ff19861689528489019650613a95565b60008b81526020902060005b86811015613a8d5781548b820152908501908301613a74565b505084890196505b505050505050610eb681856139eb565b600082821015613ab757613ab76138d4565b500390565b6000816000190483118215151615613ad657613ad66138d4565b500290565b600060208284031215613aed57600080fd5b5051919050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000600019821415613b5a57613b5a6138d4565b5060010190565b634e487b7160e01b600052601260045260246000fd5b600082613b8657613b86613b61565b500490565b600082613b9a57613b9a613b61565b500690565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613be8908301846132c0565b9695505050505050565b600060208284031215613c0457600080fd5b815161328d8161325a56fea2646970667358221220fc737c7412ad78adfc364d57b567dba30fab4e9c86b35785d1da8c5f681a9b1364736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000088098f7438773182b703625c4128aff85fcffc40000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a54656e6e6973204172740000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034154500000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _tokenName (string): Tennis Art
Arg [1] : _tokenSymbol (string): ATP
Arg [2] : _randomizerContract (address): 0x088098F7438773182b703625C4128aFf85fcFfC4
Arg [3] : _startingProjectId (uint256): 0
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 000000000000000000000000088098f7438773182b703625c4128aff85fcffc4
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [5] : 54656e6e69732041727400000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [7] : 4154500000000000000000000000000000000000000000000000000000000000
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.