NFT
Overview
TokenID
5000867
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
GenArt721CoreV2_CryptoCitizens
Compiler Version
v0.5.17+commit.d19bba13
Optimization Enabled:
Yes with 100 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity ^0.5.0; import "../../libs/CustomERC721Metadata.sol"; import "../../libs/SafeMath.sol"; import "../../libs/Strings.sol"; interface IRandomizer { function returnValue() external view returns (bytes32); } contract GenArt721CoreV2_CryptoCitizens is CustomERC721Metadata { using SafeMath for uint256; event Mint( address indexed _to, uint256 indexed _tokenId, uint256 indexed _projectId ); 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) public projectIdToArtistAddress; mapping(uint256 => string) public projectIdToCurrencySymbol; mapping(uint256 => address) public projectIdToCurrencyAddress; mapping(uint256 => uint256) public projectIdToPricePerTokenInWei; mapping(uint256 => address) public projectIdToAdditionalPayee; mapping(uint256 => uint256) public projectIdToAdditionalPayeePercentage; mapping(uint256 => uint256) public projectIdToSecondaryMarketRoyaltyPercentage; address public renderProviderAddress; uint256 public renderProviderPercentage = 10; mapping(uint256 => uint256) public tokenIdToProjectId; mapping(uint256 => bytes32) public tokenIdToHash; mapping(bytes32 => uint256) public hashToTokenId; address public admin; mapping(address => bool) public isWhitelisted; mapping(address => bool) public isMintWhitelisted; uint256 public nextProjectId = 0; 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" ); _; } constructor( string memory _tokenName, string memory _tokenSymbol, address _randomizerContract ) public CustomERC721Metadata(_tokenName, _tokenSymbol) { admin = msg.sender; isWhitelisted[msg.sender] = true; renderProviderAddress = msg.sender; randomizerContract = IRandomizer(_randomizerContract); } 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.add(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.add( 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; } function updateAdmin(address _adminAddress) public onlyAdmin { admin = _adminAddress; } function updateRenderProviderAddress(address _renderProviderAddress) public onlyAdmin { renderProviderAddress = _renderProviderAddress; } function updateRenderProviderPercentage(uint256 _renderProviderPercentage) public onlyAdmin { require(_renderProviderPercentage <= 25, "Max of 25%"); renderProviderPercentage = _renderProviderPercentage; } function addWhitelisted(address _address) public onlyAdmin { isWhitelisted[_address] = true; } function removeWhitelisted(address _address) public onlyAdmin { isWhitelisted[_address] = false; } function addMintWhitelisted(address _address) public onlyAdmin { isMintWhitelisted[_address] = true; } function removeMintWhitelisted(address _address) public onlyAdmin { isMintWhitelisted[_address] = false; } function updateRandomizerAddress(address _randomizerAddress) public onlyWhitelisted { randomizerContract = IRandomizer(_randomizerAddress); } function toggleProjectIsLocked(uint256 _projectId) public onlyWhitelisted onlyUnlocked(_projectId) { projects[_projectId].locked = true; } function toggleProjectIsActive(uint256 _projectId) public onlyWhitelisted { projects[_projectId].active = !projects[_projectId].active; } function updateProjectArtistAddress( uint256 _projectId, address _artistAddress ) public onlyArtistOrWhitelisted(_projectId) { projectIdToArtistAddress[_projectId] = _artistAddress; } function toggleProjectIsPaused(uint256 _projectId) public onlyArtist(_projectId) { projects[_projectId].paused = !projects[_projectId].paused; } function addProject( string memory _projectName, address _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.add(1); } function updateProjectCurrencyInfo( uint256 _projectId, string memory _currencySymbol, address _currencyAddress ) public onlyArtist(_projectId) { projectIdToCurrencySymbol[_projectId] = _currencySymbol; projectIdToCurrencyAddress[_projectId] = _currencyAddress; } function updateProjectPricePerTokenInWei( uint256 _projectId, uint256 _pricePerTokenInWei ) public onlyArtist(_projectId) { projectIdToPricePerTokenInWei[_projectId] = _pricePerTokenInWei; } function updateProjectName(uint256 _projectId, string memory _projectName) public onlyUnlocked(_projectId) onlyArtistOrWhitelisted(_projectId) { projects[_projectId].name = _projectName; } function updateProjectArtistName( uint256 _projectId, string memory _projectArtistName ) public onlyUnlocked(_projectId) onlyArtistOrWhitelisted(_projectId) { projects[_projectId].artist = _projectArtistName; } function updateProjectAdditionalPayeeInfo( uint256 _projectId, address _additionalPayee, uint256 _additionalPayeePercentage ) public onlyArtist(_projectId) { require(_additionalPayeePercentage <= 100, "Max of 100%"); projectIdToAdditionalPayee[_projectId] = _additionalPayee; projectIdToAdditionalPayeePercentage[ _projectId ] = _additionalPayeePercentage; } function updateProjectSecondaryMarketRoyaltyPercentage( uint256 _projectId, uint256 _secondMarketRoyalty ) public onlyArtist(_projectId) { require(_secondMarketRoyalty <= 100, "Max of 100%"); projectIdToSecondaryMarketRoyaltyPercentage[ _projectId ] = _secondMarketRoyalty; } function updateProjectDescription( uint256 _projectId, string memory _projectDescription ) public onlyArtist(_projectId) { projects[_projectId].description = _projectDescription; } function updateProjectWebsite( uint256 _projectId, string memory _projectWebsite ) public onlyArtist(_projectId) { projects[_projectId].website = _projectWebsite; } function updateProjectLicense( uint256 _projectId, string memory _projectLicense ) public onlyUnlocked(_projectId) onlyArtistOrWhitelisted(_projectId) { projects[_projectId].license = _projectLicense; } 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; } 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.add( 1 ); } 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; } 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.sub( 1 ); } function updateProjectScriptJSON( uint256 _projectId, string memory _projectScriptJSON ) public onlyUnlocked(_projectId) onlyArtistOrWhitelisted(_projectId) { projects[_projectId].scriptJSON = _projectScriptJSON; } function updateProjectIpfsHash(uint256 _projectId, string memory _ipfsHash) public onlyUnlocked(_projectId) onlyArtistOrWhitelisted(_projectId) { projects[_projectId].ipfsHash = _ipfsHash; } function updateProjectBaseURI(uint256 _projectId, string memory _newBaseURI) public onlyArtist(_projectId) { projects[_projectId].projectBaseURI = _newBaseURI; } 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; } 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]; } 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; } function projectScriptByIndex(uint256 _projectId, uint256 _index) public view returns (string memory) { return projects[_projectId].scripts[_index]; } function projectURIInfo(uint256 _projectId) public view returns (string memory projectBaseURI) { projectBaseURI = projects[_projectId].projectBaseURI; } function tokensOfOwner(address owner) external view returns (uint256[] memory) { return _tokensOfOwner(owner); } 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] ]; } function tokenURI(uint256 _tokenId) external view onlyValidTokenId(_tokenId) returns (string memory) { return Strings.strConcat( projects[tokenIdToProjectId[_tokenId]].projectBaseURI, Strings.uint2str(_tokenId) ); } }
// File: contracts/CustomERC721Metadata.sol pragma solidity ^0.5.0; import "./ERC165.sol"; import "./ERC721.sol"; import "./ERC721Enumerable.sol"; /** * ERC721 base contract without the concept of tokenUri as this is managed by the parent */ contract CustomERC721Metadata is ERC165, ERC721, ERC721Enumerable { // Token name string private _name; // Token symbol string private _symbol; bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f; /** * @dev Constructor function */ constructor(string memory name, string memory symbol) public { _name = name; _symbol = symbol; // register the supported interfaces to conform to ERC721 via ERC165 _registerInterface(_INTERFACE_ID_ERC721_METADATA); } /** * @dev Gets the token name * @return string representing the token name */ function name() external view returns (string memory) { return _name; } /** * @dev Gets the token symbol * @return string representing the token symbol */ function symbol() external view returns (string memory) { return _symbol; } }
// File: openzeppelin-solidity/contracts/math/SafeMath.sol pragma solidity ^0.5.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, "SafeMath: division by zero"); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } }
// File: contracts/Strings.sol pragma solidity ^0.5.0; //https://github.com/oraclize/ethereum-api/blob/master/oraclizeAPI_0.5.sol library Strings { function strConcat(string memory _a, string memory _b) internal pure returns (string memory _concatenatedString) { return strConcat(_a, _b, "", "", ""); } function strConcat( string memory _a, string memory _b, string memory _c ) internal pure returns (string memory _concatenatedString) { return strConcat(_a, _b, _c, "", ""); } function strConcat( string memory _a, string memory _b, string memory _c, string memory _d ) internal pure returns (string memory _concatenatedString) { return strConcat(_a, _b, _c, _d, ""); } function strConcat( string memory _a, string memory _b, string memory _c, string memory _d, string memory _e ) internal pure returns (string memory _concatenatedString) { bytes memory _ba = bytes(_a); bytes memory _bb = bytes(_b); bytes memory _bc = bytes(_c); bytes memory _bd = bytes(_d); bytes memory _be = bytes(_e); string memory abcde = new string( _ba.length + _bb.length + _bc.length + _bd.length + _be.length ); bytes memory babcde = bytes(abcde); uint256 k = 0; uint256 i = 0; for (i = 0; i < _ba.length; i++) { babcde[k++] = _ba[i]; } for (i = 0; i < _bb.length; i++) { babcde[k++] = _bb[i]; } for (i = 0; i < _bc.length; i++) { babcde[k++] = _bc[i]; } for (i = 0; i < _bd.length; i++) { babcde[k++] = _bd[i]; } for (i = 0; i < _be.length; i++) { babcde[k++] = _be[i]; } return string(babcde); } function uint2str(uint256 _i) internal pure returns (string memory _uintAsString) { if (_i == 0) { return "0"; } uint256 j = _i; uint256 len; while (j != 0) { len++; j /= 10; } bytes memory bstr = new bytes(len); uint256 k = len - 1; while (_i != 0) { bstr[k--] = bytes1(uint8(48 + (_i % 10))); _i /= 10; } return string(bstr); } }
// File: openzeppelin-solidity/contracts/introspection/ERC165.sol pragma solidity ^0.5.0; import "./IERC165.sol"; /** * @dev Implementation of the `IERC165` interface. * * Contracts may inherit from this and call `_registerInterface` to declare * their support of an interface. */ contract ERC165 is IERC165 { /* * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7 */ bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7; /** * @dev Mapping of interface ids to whether or not it's supported. */ mapping(bytes4 => bool) private _supportedInterfaces; constructor() internal { // Derived contracts need only register support for their own interfaces, // we register support for ERC165 itself here _registerInterface(_INTERFACE_ID_ERC165); } /** * @dev See `IERC165.supportsInterface`. * * Time complexity O(1), guaranteed to always use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool) { return _supportedInterfaces[interfaceId]; } /** * @dev Registers the contract as an implementer of the interface defined by * `interfaceId`. Support of the actual ERC165 interface is automatic and * registering its interface id is not required. * * See `IERC165.supportsInterface`. * * Requirements: * * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`). */ function _registerInterface(bytes4 interfaceId) internal { require(interfaceId != 0xffffffff, "ERC165: invalid interface id"); _supportedInterfaces[interfaceId] = true; } }
// File: openzeppelin-solidity/contracts/token/ERC721/ERC721.sol pragma solidity ^0.5.0; import "./ERC165.sol"; import "./IERC721.sol"; import "./SafeMath.sol"; import "./Address.sol"; import "./Counters.sol"; import "./IERC721Receiver.sol"; /** * @title ERC721 Non-Fungible Token Standard basic implementation * @dev see https://eips.ethereum.org/EIPS/eip-721 */ contract ERC721 is ERC165, IERC721 { using SafeMath for uint256; using Address for address; using Counters for Counters.Counter; // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` // which can be also obtained as `IERC721Receiver(0).onERC721Received.selector` bytes4 private constant _ERC721_RECEIVED = 0x150b7a02; // Mapping from token ID to owner mapping(uint256 => address) private _tokenOwner; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to number of owned token mapping(address => Counters.Counter) private _ownedTokensCount; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd; constructor() public { // register the supported interfaces to conform to ERC721 via ERC165 _registerInterface(_INTERFACE_ID_ERC721); } function balanceOf(address owner) public view returns (uint256) { require( owner != address(0), "ERC721: balance query for the zero address" ); return _ownedTokensCount[owner].current(); } function ownerOf(uint256 tokenId) public view returns (address) { address owner = _tokenOwner[tokenId]; require( owner != address(0), "ERC721: owner query for nonexistent token" ); return owner; } function approve(address to, uint256 tokenId) public { address owner = ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( msg.sender == owner || isApprovedForAll(owner, msg.sender), "ERC721: approve caller is not owner nor approved for all" ); _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } function getApproved(uint256 tokenId) public view returns (address) { require( _exists(tokenId), "ERC721: approved query for nonexistent token" ); return _tokenApprovals[tokenId]; } function setApprovalForAll(address to, bool approved) public { require(to != msg.sender, "ERC721: approve to caller"); _operatorApprovals[msg.sender][to] = approved; emit ApprovalForAll(msg.sender, to, approved); } function isApprovedForAll(address owner, address operator) public view returns (bool) { return _operatorApprovals[owner][operator]; } function transferFrom( address from, address to, uint256 tokenId ) public { //solhint-disable-next-line max-line-length require( _isApprovedOrOwner(msg.sender, tokenId), "ERC721: transfer caller is not owner nor approved" ); _transferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId ) public { safeTransferFrom(from, to, tokenId, ""); } function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public { transferFrom(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } function _exists(uint256 tokenId) internal view returns (bool) { address owner = _tokenOwner[tokenId]; return owner != address(0); } function _isApprovedOrOwner(address spender, uint256 tokenId) internal view returns (bool) { require( _exists(tokenId), "ERC721: operator query for nonexistent token" ); address owner = ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } function _mint(address to, uint256 tokenId) internal { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _tokenOwner[tokenId] = to; _ownedTokensCount[to].increment(); emit Transfer(address(0), to, tokenId); } function _burn(address owner, uint256 tokenId) internal { require( ownerOf(tokenId) == owner, "ERC721: burn of token that is not own" ); _clearApproval(tokenId); _ownedTokensCount[owner].decrement(); _tokenOwner[tokenId] = address(0); emit Transfer(owner, address(0), tokenId); } function _burn(uint256 tokenId) internal { _burn(ownerOf(tokenId), tokenId); } function _transferFrom( address from, address to, uint256 tokenId ) internal { require( ownerOf(tokenId) == from, "ERC721: transfer of token that is not own" ); require(to != address(0), "ERC721: transfer to the zero address"); _clearApproval(tokenId); _ownedTokensCount[from].decrement(); _ownedTokensCount[to].increment(); _tokenOwner[tokenId] = to; emit Transfer(from, to, tokenId); } function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) internal returns (bool) { if (!to.isContract()) { return true; } bytes4 retval = IERC721Receiver(to).onERC721Received( msg.sender, from, tokenId, _data ); return (retval == _ERC721_RECEIVED); } function _clearApproval(uint256 tokenId) private { if (_tokenApprovals[tokenId] != address(0)) { _tokenApprovals[tokenId] = address(0); } } }
// File: openzeppelin-solidity/contracts/token/ERC721/ERC721Enumerable.sol pragma solidity ^0.5.0; import "./ERC165.sol"; import "./ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @title ERC-721 Non-Fungible Token with optional enumeration extension logic * @dev See https://eips.ethereum.org/EIPS/eip-721 */ contract ERC721Enumerable is ERC165, ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => uint256[]) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /* * bytes4(keccak256('totalSupply()')) == 0x18160ddd * bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) == 0x2f745c59 * bytes4(keccak256('tokenByIndex(uint256)')) == 0x4f6ccce7 * * => 0x18160ddd ^ 0x2f745c59 ^ 0x4f6ccce7 == 0x780e9d63 */ bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63; /** * @dev Constructor function. */ constructor() public { // register the supported interface to conform to ERC721Enumerable via ERC165 _registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE); } /** * @dev Gets the token ID at a given index of the tokens list of the requested owner. * @param owner address owning the tokens list to be accessed * @param index uint256 representing the index to be accessed of the requested tokens list * @return uint256 token ID at the given index of the tokens list owned by the requested address */ function tokenOfOwnerByIndex(address owner, uint256 index) public view returns (uint256) { require( index < balanceOf(owner), "ERC721Enumerable: owner index out of bounds" ); return _ownedTokens[owner][index]; } /** * @dev Gets the total amount of tokens stored by the contract. * @return uint256 representing the total amount of tokens */ function totalSupply() public view returns (uint256) { return _allTokens.length; } /** * @dev Gets the token ID at a given index of all the tokens in this contract * Reverts if the index is greater or equal to the total number of tokens. * @param index uint256 representing the index to be accessed of the tokens list * @return uint256 token ID at the given index of the tokens list */ function tokenByIndex(uint256 index) public view returns (uint256) { require( index < totalSupply(), "ERC721Enumerable: global index out of bounds" ); return _allTokens[index]; } /** * @dev Internal function to transfer ownership of a given token ID to another address. * As opposed to transferFrom, this imposes no restrictions on msg.sender. * @param from current owner of the token * @param to address to receive the ownership of the given token ID * @param tokenId uint256 ID of the token to be transferred */ function _transferFrom( address from, address to, uint256 tokenId ) internal { super._transferFrom(from, to, tokenId); _removeTokenFromOwnerEnumeration(from, tokenId); _addTokenToOwnerEnumeration(to, tokenId); } /** * @dev Internal function to mint a new token. * Reverts if the given token ID already exists. * @param to address the beneficiary that will own the minted token * @param tokenId uint256 ID of the token to be minted */ function _mint(address to, uint256 tokenId) internal { super._mint(to, tokenId); _addTokenToOwnerEnumeration(to, tokenId); _addTokenToAllTokensEnumeration(tokenId); } /** * @dev Internal function to burn a specific token. * Reverts if the token does not exist. * Deprecated, use _burn(uint256) instead. * @param owner owner of the token to burn * @param tokenId uint256 ID of the token being burned */ function _burn(address owner, uint256 tokenId) internal { super._burn(owner, tokenId); _removeTokenFromOwnerEnumeration(owner, tokenId); // Since tokenId will be deleted, we can clear its slot in _ownedTokensIndex to trigger a gas refund _ownedTokensIndex[tokenId] = 0; _removeTokenFromAllTokensEnumeration(tokenId); } /** * @dev Gets the list of token IDs of the requested owner. * @param owner address owning the tokens * @return uint256[] List of token IDs owned by the requested address */ function _tokensOfOwner(address owner) internal view returns (uint256[] storage) { return _ownedTokens[owner]; } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { _ownedTokensIndex[tokenId] = _ownedTokens[to].length; _ownedTokens[to].push(tokenId); } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the _ownedTokensIndex mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _ownedTokens[from].length.sub(1); uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array _ownedTokens[from].length--; // Note that _ownedTokensIndex[tokenId] hasn't been cleared: it still points to the old slot (now occupied by // lastTokenId, or just over the end of the array if the token was the last one). } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length.sub(1); uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array _allTokens.length--; _allTokensIndex[tokenId] = 0; } }
// File: openzeppelin-solidity/contracts/introspection/IERC165.sol pragma solidity ^0.5.0; /** * @dev Interface of the ERC165 standard, as defined in the * [EIP](https://eips.ethereum.org/EIPS/eip-165). * * 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 * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * 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); }
// File: openzeppelin-solidity/contracts/token/ERC721/IERC721.sol pragma solidity ^0.5.0; import "./IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ contract IERC721 is IERC165 { event Transfer( address indexed from, address indexed to, uint256 indexed tokenId ); event Approval( address indexed owner, address indexed approved, uint256 indexed tokenId ); event ApprovalForAll( address indexed owner, address indexed operator, bool approved ); /** * @dev Returns the number of NFTs in `owner`'s account. */ function balanceOf(address owner) public view returns (uint256 balance); /** * @dev Returns the owner of the NFT specified by `tokenId`. */ function ownerOf(uint256 tokenId) public view returns (address owner); /** * @dev Transfers a specific NFT (`tokenId`) from one account (`from`) to * another (`to`). * * * * Requirements: * - `from`, `to` cannot be zero. * - `tokenId` must be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this * NFT by either `approve` or `setApproveForAll`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public; /** * @dev Transfers a specific NFT (`tokenId`) from one account (`from`) to * another (`to`). * * Requirements: * - If the caller is not `from`, it must be approved to move this NFT by * either `approve` or `setApproveForAll`. */ function transferFrom( address from, address to, uint256 tokenId ) public; function approve(address to, uint256 tokenId) public; function getApproved(uint256 tokenId) public view returns (address operator); function setApprovalForAll(address operator, bool _approved) public; function isApprovedForAll(address owner, address operator) public view returns (bool); function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public; }
// File: openzeppelin-solidity/contracts/utils/Address.sol pragma solidity ^0.5.0; /** * @dev Collection of functions related to the address type, */ library Address { /** * @dev Returns true if `account` is a contract. * * This test is non-exhaustive, and there may be false-negatives: during the * execution of a contract's constructor, its address will be reported as * not containing a contract. * * > It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. */ function isContract(address account) internal view returns (bool) { // This method relies in extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } }
// File: openzeppelin-solidity/contracts/drafts/Counters.sol pragma solidity ^0.5.0; import "./SafeMath.sol"; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented or decremented by one. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` * Since it is not possible to overflow a 256 bit integer with increments of one, `increment` can skip the SafeMath * overflow check, thereby saving gas. This does assume however correct usage, in that the underlying `_value` is never * directly accessed. */ library Counters { using SafeMath for uint256; struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { counter._value += 1; } function decrement(Counter storage counter) internal { counter._value = counter._value.sub(1); } }
// File: openzeppelin-solidity/contracts/token/ERC721/IERC721Receiver.sol pragma solidity ^0.5.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ contract IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes memory data ) public returns (bytes4); }
// File: openzeppelin-solidity/contracts/token/ERC721/IERC721Enumerable.sol pragma solidity ^0.5.0; import "./IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ contract IERC721Enumerable is IERC721 { function totalSupply() public view returns (uint256); function tokenOfOwnerByIndex(address owner, uint256 index) public view returns (uint256 tokenId); function tokenByIndex(uint256 index) public view returns (uint256); }
{ "optimizer": { "enabled": true, "runs": 100 }, "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"}],"payable":false,"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"},{"constant":false,"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"addMintWhitelisted","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"string","name":"_projectName","type":"string"},{"internalType":"address","name":"_artistAddress","type":"address"},{"internalType":"uint256","name":"_pricePerTokenInWei","type":"uint256"}],"name":"addProject","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_script","type":"string"}],"name":"addProjectScript","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"addWhitelisted","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"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"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"hashToTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isMintWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"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"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"nextProjectId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"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"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectIdToAdditionalPayee","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectIdToAdditionalPayeePercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectIdToArtistAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectIdToCurrencyAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectIdToCurrencySymbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectIdToPricePerTokenInWei","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectIdToSecondaryMarketRoyaltyPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"projectScriptByIndex","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"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"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"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"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"projectURIInfo","outputs":[{"internalType":"string","name":"projectBaseURI","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"randomizerContract","outputs":[{"internalType":"contract IRandomizer","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"removeMintWhitelisted","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"removeProjectLastScript","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"removeWhitelisted","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"renderProviderAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"renderProviderPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"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":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"toggleProjectIsActive","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"toggleProjectIsLocked","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"toggleProjectIsPaused","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIdToHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIdToProjectId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_adminAddress","type":"address"}],"name":"updateAdmin","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"address","name":"_additionalPayee","type":"address"},{"internalType":"uint256","name":"_additionalPayeePercentage","type":"uint256"}],"name":"updateProjectAdditionalPayeeInfo","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"address","name":"_artistAddress","type":"address"}],"name":"updateProjectArtistAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_projectArtistName","type":"string"}],"name":"updateProjectArtistName","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"updateProjectBaseURI","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_currencySymbol","type":"string"},{"internalType":"address","name":"_currencyAddress","type":"address"}],"name":"updateProjectCurrencyInfo","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_projectDescription","type":"string"}],"name":"updateProjectDescription","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_ipfsHash","type":"string"}],"name":"updateProjectIpfsHash","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_projectLicense","type":"string"}],"name":"updateProjectLicense","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"_maxInvocations","type":"uint256"}],"name":"updateProjectMaxInvocations","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_projectName","type":"string"}],"name":"updateProjectName","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"_pricePerTokenInWei","type":"uint256"}],"name":"updateProjectPricePerTokenInWei","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"_scriptId","type":"uint256"},{"internalType":"string","name":"_script","type":"string"}],"name":"updateProjectScript","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_projectScriptJSON","type":"string"}],"name":"updateProjectScriptJSON","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"_secondMarketRoyalty","type":"uint256"}],"name":"updateProjectSecondaryMarketRoyaltyPercentage","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_projectWebsite","type":"string"}],"name":"updateProjectWebsite","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_randomizerAddress","type":"address"}],"name":"updateRandomizerAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_renderProviderAddress","type":"address"}],"name":"updateRenderProviderAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_renderProviderPercentage","type":"uint256"}],"name":"updateRenderProviderPercentage","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600a6015556000601c553480156200001b57600080fd5b506040516200549a3803806200549a833981810160405260608110156200004157600080fd5b81019080805160405193929190846401000000008211156200006257600080fd5b9083019060208201858111156200007857600080fd5b82516401000000008111828201881017156200009357600080fd5b82525081516020918201929091019080838360005b83811015620000c2578181015183820152602001620000a8565b50505050905090810190601f168015620000f05780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200011457600080fd5b9083019060208201858111156200012a57600080fd5b82516401000000008111828201881017156200014557600080fd5b82525081516020918201929091019080838360005b83811015620001745781810151838201526020016200015a565b50505050905090810190601f168015620001a25780820380516001836020036101000a031916815260200191505b5060405260200151915083905082620001cb6301ffc9a760e01b6001600160e01b03620002a716565b620001e66380ac58cd60e01b6001600160e01b03620002a716565b6200020163780e9d6360e01b6001600160e01b03620002a716565b8151620002169060099060208501906200032c565b5080516200022c90600a9060208401906200032c565b5062000248635b5e139f60e01b6001600160e01b03620002a716565b505060198054336001600160a01b031991821681179092556000828152601a60205260409020805460ff19166001179055601480548216909217909155600b80549091166001600160a01b039290921691909117905550620003d19050565b6001600160e01b0319808216141562000307576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200036f57805160ff19168380011785556200039f565b828001600101855582156200039f579182015b828111156200039f57825182559160200191906001019062000382565b50620003ad929150620003b1565b5090565b620003ce91905b80821115620003ad5760008155600101620003b8565b90565b6150b980620003e16000396000f3fe608060405234801561001057600080fd5b50600436106103925760003560e01c80638763ad1e116101e0578063b88d4fde11610110578063db2ff861116100a8578063db2ff86114611754578063e13208b414611771578063e2f273bd146117a3578063e935b7b1146117c9578063e985e9c5146117d1578063ed8abfda146117ff578063f51f74a91461181c578063f70c0f0414611839578063f851a4401461185657610392565b8063b88d4fde14611490578063c34a03b514611554578063c6d7323114611577578063c87b56dd14611622578063cc74234b1461163f578063cfbf4d971461165c578063d03c390c14611664578063d195b36514611681578063d7b044b61461173757610392565b8063a11ec70a11610183578063a11ec70a14611102578063a22cb4651461111f578063a3b2cca61461114d578063a47d29cb146111f8578063a65ff74c14611215578063acad012414611264578063ad0305ce1461130f578063b1656ba314611335578063b7b04fae146113e557610392565b80638763ad1e14610cd15780638ba8f14d14610d835780638bddb0a614610da05780638c2c362214610dc65780638c3c9cdd14610ecd5780638dd91a5614610ef057806395d89b41146110d757806397dc86cf146110df57610392565b806336c7c12c116102c6578063621a1f741161025e578063621a1f7414610b3a5780636352211e14610b5757806369d14faf14610b745780636b6ec8a614610ba05780636c907b7f14610bc657806370a0823114610bec578063826fc39114610c125780638462151c14610c35578063867f1a3b14610cab57610392565b806336c7c12c14610786578063378599631461078e5780633af32abf146108395780633e48e8481461085f5780633fef6c2a1461090a57806342842e0e146109b5578063498dd0c1146109eb5780634aa6d41714610a085780634f6ccce714610b1d57610392565b806318160ddd1161033957806318160ddd146105ec5780631b689c0b146105f457806320927ec91461061157806323b872dd1461062e57806325b75d6814610664578063291d95491461070f5780632d9c0205146107355780632e9eb74f146107525780632f745c591461075a57610392565b806301ffc9a71461039757806306fdde03146103d2578063081812fc1461044f578063095ea7b3146104885780630d170673146104b65780630d4d15131461056157806310154bad146105a957806311f5fdf1146105cf575b600080fd5b6103be600480360360208110156103ad57600080fd5b50356001600160e01b03191661185e565b604080519115158252519081900360200190f35b6103da611881565b6040805160208082528351818301528351919283929083019185019080838360005b838110156104145781810151838201526020016103fc565b50505050905090810190601f1680156104415780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61046c6004803603602081101561046557600080fd5b5035611918565b604080516001600160a01b039092168252519081900360200190f35b6104b46004803603604081101561049e57600080fd5b506001600160a01b03813516906020013561197a565b005b6104b4600480360360408110156104cc57600080fd5b81359190810190604081016020820135600160201b8111156104ed57600080fd5b8201836020820111156104ff57600080fd5b803590602001918460018302840111600160201b8311171561052057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611a8b945050505050565b6105976004803603606081101561057757600080fd5b506001600160a01b03813581169160208101359160409091013516611b88565b60408051918252519081900360200190f35b6104b4600480360360208110156105bf57600080fd5b50356001600160a01b0316611d7d565b6104b4600480360360208110156105e557600080fd5b5035611ded565b610597611e81565b6105976004803603602081101561060a57600080fd5b5035611e87565b6103da6004803603602081101561062757600080fd5b5035611e99565b6104b46004803603606081101561064457600080fd5b506001600160a01b03813581169160208101359091169060400135611f34565b6104b46004803603604081101561067a57600080fd5b81359190810190604081016020820135600160201b81111561069b57600080fd5b8201836020820111156106ad57600080fd5b803590602001918460018302840111600160201b831117156106ce57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611f89945050505050565b6104b46004803603602081101561072557600080fd5b50356001600160a01b0316612085565b6103da6004803603602081101561074b57600080fd5b50356120f2565b610597612196565b6105976004803603604081101561077057600080fd5b506001600160a01b03813516906020013561219c565b61046c61221b565b6104b4600480360360408110156107a457600080fd5b81359190810190604081016020820135600160201b8111156107c557600080fd5b8201836020820111156107d757600080fd5b803590602001918460018302840111600160201b831117156107f857600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061222a945050505050565b6103be6004803603602081101561084f57600080fd5b50356001600160a01b03166122b0565b6104b46004803603604081101561087557600080fd5b81359190810190604081016020820135600160201b81111561089657600080fd5b8201836020820111156108a857600080fd5b803590602001918460018302840111600160201b831117156108c957600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506122c5945050505050565b6104b46004803603604081101561092057600080fd5b81359190810190604081016020820135600160201b81111561094157600080fd5b82018360208201111561095357600080fd5b803590602001918460018302840111600160201b8311171561097457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550612345945050505050565b6104b4600480360360608110156109cb57600080fd5b506001600160a01b03813581169160208101359091169060400135612441565b61046c60048036036020811015610a0157600080fd5b503561245c565b610a2560048036036020811015610a1e57600080fd5b5035612477565b6040805160208082018790528415156060830152831515608083015260a08083528851908301528751919283929083019160c0840191908a019080838360005b83811015610a7d578181015183820152602001610a65565b50505050905090810190601f168015610aaa5780820380516001836020036101000a031916815260200191505b50838103825286518152865160209182019188019080838360005b83811015610add578181015183820152602001610ac5565b50505050905090810190601f168015610b0a5780820380516001836020036101000a031916815260200191505b5097505050505050505060405180910390f35b61059760048036036020811015610b3357600080fd5b50356125f7565b61059760048036036020811015610b5057600080fd5b503561265d565b61046c60048036036020811015610b6d57600080fd5b503561266f565b6104b460048036036040811015610b8a57600080fd5b50803590602001356001600160a01b03166126c9565b6104b460048036036020811015610bb657600080fd5b50356001600160a01b031661276d565b6104b460048036036020811015610bdc57600080fd5b50356001600160a01b03166127db565b61059760048036036020811015610c0257600080fd5b50356001600160a01b0316612854565b6104b460048036036040811015610c2857600080fd5b50803590602001356128bc565b610c5b60048036036020811015610c4b57600080fd5b50356001600160a01b0316612a47565b60408051602080825283518183015283519192839290830191858101910280838360005b83811015610c97578181015183820152602001610c7f565b505050509050019250505060405180910390f35b6104b460048036036020811015610cc157600080fd5b50356001600160a01b0316612aa7565b6104b460048036036060811015610ce757600080fd5b810190602081018135600160201b811115610d0157600080fd5b820183602082011115610d1357600080fd5b803590602001918460018302840111600160201b83111715610d3457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550506001600160a01b038335169350505060200135612b14565b6104b460048036036020811015610d9957600080fd5b5035612c3b565b6104b460048036036020811015610db657600080fd5b50356001600160a01b0316612d16565b610de360048036036020811015610ddc57600080fd5b5035612d86565b604051808a6001600160a01b03166001600160a01b0316815260200189815260200188815260200187815260200186151515158152602001856001600160a01b03166001600160a01b0316815260200184815260200180602001836001600160a01b03166001600160a01b03168152602001828103825284818151815260200191508051906020019080838360005b83811015610e8a578181015183820152602001610e72565b50505050905090810190601f168015610eb75780820380516001836020036101000a031916815260200191505b509a505050505050505050505060405180910390f35b6103da60048036036040811015610ee357600080fd5b5080359060200135612ea4565b610f0d60048036036020811015610f0657600080fd5b5035612f51565b60405180806020018060200180602001806020018060200186810386528b818151815260200191508051906020019080838360005b83811015610f5a578181015183820152602001610f42565b50505050905090810190601f168015610f875780820380516001836020036101000a031916815260200191505b5086810385528a5181528a516020918201918c019080838360005b83811015610fba578181015183820152602001610fa2565b50505050905090810190601f168015610fe75780820380516001836020036101000a031916815260200191505b5086810384528951815289516020918201918b019080838360005b8381101561101a578181015183820152602001611002565b50505050905090810190601f1680156110475780820380516001836020036101000a031916815260200191505b5086810383528851815288516020918201918a019080838360005b8381101561107a578181015183820152602001611062565b50505050905090810190601f1680156110a75780820380516001836020036101000a031916815260200191505b50868103825287518152875160209182019189019080838360008315610e8a578181015183820152602001610e72565b6103da61328a565b6104b4600480360360408110156110f557600080fd5b50803590602001356132eb565b6104b46004803603602081101561111857600080fd5b5035613359565b6104b46004803603604081101561113557600080fd5b506001600160a01b03813516906020013515156133e4565b6104b46004803603604081101561116357600080fd5b81359190810190604081016020820135600160201b81111561118457600080fd5b82018360208201111561119657600080fd5b803590602001918460018302840111600160201b831117156111b757600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506134ac945050505050565b61046c6004803603602081101561120e57600080fd5b503561352c565b6112326004803603602081101561122b57600080fd5b5035613547565b604080516001600160a01b03958616815293909416602084015282840191909152606082015290519081900360800190f35b6104b46004803603604081101561127a57600080fd5b81359190810190604081016020820135600160201b81111561129b57600080fd5b8201836020820111156112ad57600080fd5b803590602001918460018302840111600160201b831117156112ce57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550613590945050505050565b6103be6004803603602081101561132557600080fd5b50356001600160a01b03166136d4565b6104b46004803603606081101561134b57600080fd5b813591602081013591810190606081016040820135600160201b81111561137157600080fd5b82018360208201111561138357600080fd5b803590602001918460018302840111600160201b831117156113a457600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506136e9945050505050565b6104b4600480360360408110156113fb57600080fd5b81359190810190604081016020820135600160201b81111561141c57600080fd5b82018360208201111561142e57600080fd5b803590602001918460018302840111600160201b8311171561144f57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061384f945050505050565b6104b4600480360360808110156114a657600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b8111156114e057600080fd5b8201836020820111156114f257600080fd5b803590602001918460018302840111600160201b8311171561151357600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061394b945050505050565b6104b46004803603604081101561156a57600080fd5b508035906020013561399d565b6104b46004803603604081101561158d57600080fd5b81359190810190604081016020820135600160201b8111156115ae57600080fd5b8201836020820111156115c057600080fd5b803590602001918460018302840111600160201b831117156115e157600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550613a4f945050505050565b6103da6004803603602081101561163857600080fd5b5035613b4b565b6105976004803603602081101561165557600080fd5b5035613c5f565b61046c613c71565b6104b46004803603602081101561167a57600080fd5b5035613c80565b6104b46004803603606081101561169757600080fd5b81359190810190604081016020820135600160201b8111156116b857600080fd5b8201836020820111156116ca57600080fd5b803590602001918460018302840111600160201b831117156116eb57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550505090356001600160a01b03169150613cfb9050565b61046c6004803603602081101561174d57600080fd5b5035613da7565b6104b46004803603602081101561176a57600080fd5b5035613dc2565b6104b46004803603606081101561178757600080fd5b508035906001600160a01b036020820135169060400135613f66565b6104b4600480360360208110156117b957600080fd5b50356001600160a01b031661403f565b6105976140ad565b6103be600480360360408110156117e757600080fd5b506001600160a01b03813581169160200135166140b3565b6105976004803603602081101561181557600080fd5b50356140e1565b6105976004803603602081101561183257600080fd5b50356140f3565b6105976004803603602081101561184f57600080fd5b5035614105565b61046c614117565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60098054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561190d5780601f106118e25761010080835404028352916020019161190d565b820191906000526020600020905b8154815290600101906020018083116118f057829003601f168201915b505050505090505b90565b600061192382614126565b61195e5760405162461bcd60e51b815260040180806020018281038252602c815260200180614f87602c913960400191505060405180910390fd5b506000908152600260205260409020546001600160a01b031690565b60006119858261266f565b9050806001600160a01b0316836001600160a01b031614156119d85760405162461bcd60e51b8152600401808060200182810382526021815260200180614fdc6021913960400191505060405180910390fd5b336001600160a01b03821614806119f457506119f481336140b3565b611a2f5760405162461bcd60e51b8152600401808060200182810382526038815260200180614ebf6038913960400191505060405180910390fd5b60008281526002602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000828152600c6020819052604090912001548290610100900460ff1615611aed576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881d5b9b1bd8dad95960821b604482015290519081900360640190fd5b336000908152601a6020526040902054839060ff1680611b2357506000818152600d60205260409020546001600160a01b031633145b611b62576040805162461bcd60e51b815260206004820152601a6024820152600080516020614e9f833981519152604482015290519081900360640190fd5b6000848152600c602090815260409091208451611b8192860190614cf5565b5050505050565b336000908152601b602052604081205460ff16611bd65760405162461bcd60e51b815260040180806020018281038252602b81526020018061505a602b913960400191505060405180910390fd5b6000838152600c602052604090206007810154600690910154611c0090600163ffffffff61414316565b1115611c53576040805162461bcd60e51b815260206004820152601f60248201527f4d757374206e6f7420657863656564206d617820696e766f636174696f6e7300604482015290519081900360640190fd5b6000838152600c60208190526040909120015460ff1680611c8d57506000838152600d60205260409020546001600160a01b038381169116145b611cde576040805162461bcd60e51b815260206004820181905260248201527f50726f6a656374206d75737420657869737420616e6420626520616374697665604482015290519081900360640190fd5b6000838152600c60208190526040909120015462010000900460ff161580611d1f57506000838152600d60205260409020546001600160a01b038381169116145b611d68576040805162461bcd60e51b8152602060048201526015602482015274283ab931b430b9b2b99030b932903830bab9b2b21760591b604482015290519081900360640190fd5b6000611d74858561419d565b95945050505050565b6019546001600160a01b03163314611dc9576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b6001600160a01b03166000908152601a60205260409020805460ff19166001179055565b6019546001600160a01b03163314611e39576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b6019811115611e7c576040805162461bcd60e51b815260206004820152600a6024820152694d6178206f662032352560b01b604482015290519081900360640190fd5b601555565b60075490565b60166020526000908152604090205481565b600e6020908152600091825260409182902080548351601f600260001961010060018616150201909316929092049182018490048402810184019094528084529091830182828015611f2c5780601f10611f0157610100808354040283529160200191611f2c565b820191906000526020600020905b815481529060010190602001808311611f0f57829003601f168201915b505050505081565b611f3e338261430a565b611f795760405162461bcd60e51b8152600401808060200182810382526031815260200180614ffd6031913960400191505060405180910390fd5b611f848383836143ae565b505050565b6000828152600c6020819052604090912001548290610100900460ff1615611feb576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881d5b9b1bd8dad95960821b604482015290519081900360640190fd5b336000908152601a6020526040902054839060ff168061202157506000818152600d60205260409020546001600160a01b031633145b612060576040805162461bcd60e51b815260206004820152601a6024820152600080516020614e9f833981519152604482015290519081900360640190fd5b6000848152600c602090815260409091208451611b8192600490920191860190614cf5565b6019546001600160a01b031633146120d1576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b6001600160a01b03166000908152601a60205260409020805460ff19169055565b6000818152600c602090815260409182902060050180548351601f600260001961010060018616150201909316929092049182018490048402810184019094528084526060939283018282801561218a5780601f1061215f5761010080835404028352916020019161218a565b820191906000526020600020905b81548152906001019060200180831161216d57829003601f168201915b50505050509050919050565b60155481565b60006121a783612854565b82106121e45760405162461bcd60e51b815260040180806020018281038252602b815260200180614df2602b913960400191505060405180910390fd5b6001600160a01b038316600090815260056020526040902080548390811061220857fe5b9060005260206000200154905092915050565b600b546001600160a01b031681565b6000828152600d602052604090205482906001600160a01b03163314612285576040805162461bcd60e51b815260206004820152600b60248201526a13db9b1e48185c9d1a5cdd60aa1b604482015290519081900360640190fd5b6000838152600c6020908152604090912083516122aa92600390920191850190614cf5565b50505050565b601a6020526000908152604090205460ff1681565b6000828152600d602052604090205482906001600160a01b03163314612320576040805162461bcd60e51b815260206004820152600b60248201526a13db9b1e48185c9d1a5cdd60aa1b604482015290519081900360640190fd5b6000838152600c6020908152604090912083516122aa92600590920191850190614cf5565b6000828152600c6020819052604090912001548290610100900460ff16156123a7576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881d5b9b1bd8dad95960821b604482015290519081900360640190fd5b336000908152601a6020526040902054839060ff16806123dd57506000818152600d60205260409020546001600160a01b031633145b61241c576040805162461bcd60e51b815260206004820152601a6024820152600080516020614e9f833981519152604482015290519081900360640190fd5b6000848152600c602090815260409091208451611b8192600b90920191860190614cf5565b611f848383836040518060200160405280600081525061394b565b600f602052600090815260409020546001600160a01b031681565b6000818152600c602090815260408083206008018054825160026001831615610100026000190190921691909104601f810185900485028201850190935282815260609493859385938493929091908301828280156125175780601f106124ec57610100808354040283529160200191612517565b820191906000526020600020905b8154815290600101906020018083116124fa57829003601f168201915b5050506000898152600c6020908152604091829020600a810154600b9091018054845160026001831615610100026000190190921691909104601f8101859004850282018501909552848152969b5090995093509091508301828280156125bf5780601f10612594576101008083540402835291602001916125bf565b820191906000526020600020905b8154815290600101906020018083116125a257829003601f168201915b50505060009889525050600c6020819052604090972090960154949693959460ff610100820481169562010000909204169350915050565b6000612601611e81565b821061263e5760405162461bcd60e51b815260040180806020018281038252602c81526020018061502e602c913960400191505060405180910390fd5b6007828154811061264b57fe5b90600052602060002001549050919050565b60176020526000908152604090205481565b6000818152600160205260408120546001600160a01b0316806126c35760405162461bcd60e51b8152600401808060200182810382526029815260200180614f216029913960400191505060405180910390fd5b92915050565b336000908152601a6020526040902054829060ff16806126ff57506000818152600d60205260409020546001600160a01b031633145b61273e576040805162461bcd60e51b815260206004820152601a6024820152600080516020614e9f833981519152604482015290519081900360640190fd5b506000918252600d602052604090912080546001600160a01b0319166001600160a01b03909216919091179055565b6019546001600160a01b031633146127b9576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b601480546001600160a01b0319166001600160a01b0392909216919091179055565b336000908152601a602052604090205460ff16612832576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481dda1a5d195b1a5cdd195960821b604482015290519081900360640190fd5b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b03821661289b5760405162461bcd60e51b815260040180806020018281038252602a815260200180614ef7602a913960400191505060405180910390fd5b6001600160a01b03821660009081526003602052604090206126c3906143cd565b6000828152600d602052604090205482906001600160a01b03163314612917576040805162461bcd60e51b815260206004820152600b60248201526a13db9b1e48185c9d1a5cdd60aa1b604482015290519081900360640190fd5b6000838152600c602081905260409091200154610100900460ff16158061294e57506000838152600c602052604090206007015482105b612992576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881d5b9b1bd8dad95960821b604482015290519081900360640190fd5b6000838152600c602052604090206006015482116129e15760405162461bcd60e51b815260040180806020018281038252603d815260200180614f4a603d913960400191505060405180910390fd5b620f4240821115612a31576040805162461bcd60e51b8152602060048201526015602482015274043616e6e6f7420657863656564203130303030303605c1b604482015290519081900360640190fd5b506000918252600c602052604090912060070155565b6060612a52826143d1565b80548060200260200160405190810160405280929190818152602001828054801561218a57602002820191906000526020600020905b815481526020019060010190808311612a885750505050509050919050565b6019546001600160a01b03163314612af3576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b6001600160a01b03166000908152601b60205260409020805460ff19169055565b336000908152601a602052604090205460ff16612b6b576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481dda1a5d195b1a5cdd195960821b604482015290519081900360640190fd5b601c546000818152600d6020908152604080832080546001600160a01b0319166001600160a01b038816179055600c82529091208551612bad92870190614cf5565b50604080518082018252600381526208aa8960eb1b60208083019182526000858152600e909152929092209051612be49290614cf5565b506000818152601060209081526040808320859055600c91829052909120908101805462ff0000191662010000179055620f4240600790910155601c54612c3290600163ffffffff61414316565b601c5550505050565b336000908152601a602052604090205460ff16612c92576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481dda1a5d195b1a5cdd195960821b604482015290519081900360640190fd5b6000818152600c6020819052604090912001548190610100900460ff1615612cf4576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881d5b9b1bd8dad95960821b604482015290519081900360640190fd5b506000908152600c6020819052604090912001805461ff001916610100179055565b6019546001600160a01b03163314612d62576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b6001600160a01b03166000908152601b60205260409020805460ff19166001179055565b6000818152600d60209081526040808320546010835281842054600c80855283862060068101546007820154919092015460118752858820546012885286892054600e8952878a208054895160026101006001841615026000190190921691909104601f81018c90048c0282018c01909a528981526001600160a01b039889169b979a9699959860ff90951697949093169591946060949392830182828015612e705780601f10612e4557610100808354040283529160200191612e70565b820191906000526020600020905b815481529060010190602001808311612e5357829003601f168201915b50505060009c8d525050600f6020526040909a2054989a9799969895979496939592946001600160a01b0390931692915050565b6000828152600c6020908152604080832084845260090182529182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845260609392830182828015612f445780601f10612f1957610100808354040283529160200191612f44565b820191906000526020600020905b815481529060010190602001808311612f2757829003601f168201915b5050505050905092915050565b6000818152600c602090815260409182902080548351601f60026000196101006001861615020190931692909204918201849004840281018401909452808452606093849384938493849392830182828015612fee5780601f10612fc357610100808354040283529160200191612fee565b820191906000526020600020905b815481529060010190602001808311612fd157829003601f168201915b50505050509450600c60008781526020019081526020016000206001018054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561309f5780601f106130745761010080835404028352916020019161309f565b820191906000526020600020905b81548152906001019060200180831161308257829003601f168201915b5050506000898152600c60209081526040918290206002908101805484516001821615610100026000190190911692909204601f810184900484028301840190945283825295995094935090915083018282801561313e5780601f106131135761010080835404028352916020019161313e565b820191906000526020600020905b81548152906001019060200180831161312157829003601f168201915b5050506000898152600c60209081526040918290206003018054835160026001831615610100026000190190921691909104601f810184900484028201840190945283815295985093509091508301828280156131dc5780601f106131b1576101008083540402835291602001916131dc565b820191906000526020600020905b8154815290600101906020018083116131bf57829003601f168201915b5050506000898152600c60209081526040918290206004018054835160026001831615610100026000190190921691909104601f8101849004840282018401909452838152959750935090915083018282801561327a5780601f1061324f5761010080835404028352916020019161327a565b820191906000526020600020905b81548152906001019060200180831161325d57829003601f168201915b5050505050905091939590929450565b600a8054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561190d5780601f106118e25761010080835404028352916020019161190d565b6000828152600d602052604090205482906001600160a01b03163314613346576040805162461bcd60e51b815260206004820152600b60248201526a13db9b1e48185c9d1a5cdd60aa1b604482015290519081900360640190fd5b5060009182526010602052604090912055565b6000818152600d602052604090205481906001600160a01b031633146133b4576040805162461bcd60e51b815260206004820152600b60248201526a13db9b1e48185c9d1a5cdd60aa1b604482015290519081900360640190fd5b506000908152600c6020819052604090912001805462ff0000198116620100009182900460ff1615909102179055565b6001600160a01b03821633141561343e576040805162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b604482015290519081900360640190fd5b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff1916861515908117909155815190815290519293927f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31929181900390910190a35050565b6000828152600d602052604090205482906001600160a01b03163314613507576040805162461bcd60e51b815260206004820152600b60248201526a13db9b1e48185c9d1a5cdd60aa1b604482015290519081900360640190fd5b6000838152600c6020908152604090912083516122aa92600290920191850190614cf5565b600d602052600090815260409020546001600160a01b031681565b6000908152601660209081526040808320548352600d82528083205460118352818420546012845282852054601390945291909320546001600160a01b03938416949390911692565b6000828152600c6020819052604090912001548290610100900460ff16156135f2576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881d5b9b1bd8dad95960821b604482015290519081900360640190fd5b336000908152601a6020526040902054839060ff168061362857506000818152600d60205260409020546001600160a01b031633145b613667576040805162461bcd60e51b815260206004820152601a6024820152600080516020614e9f833981519152604482015290519081900360640190fd5b6000848152600c60209081526040808320600a81015484526009018252909120845161369592860190614cf5565b506000848152600c60205260409020600a01546136b990600163ffffffff61414316565b6000948552600c6020526040909420600a0193909355505050565b601b6020526000908152604090205460ff1681565b6000838152600c6020819052604090912001548390610100900460ff161561374b576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881d5b9b1bd8dad95960821b604482015290519081900360640190fd5b336000908152601a6020526040902054849060ff168061378157506000818152600d60205260409020546001600160a01b031633145b6137c0576040805162461bcd60e51b815260206004820152601a6024820152600080516020614e9f833981519152604482015290519081900360640190fd5b6000858152600c60205260409020600a0154841061381d576040805162461bcd60e51b81526020600482015260156024820152747363726970744964206f7574206f662072616e676560581b604482015290519081900360640190fd5b6000858152600c602090815260408083208784526009018252909120845161384792860190614cf5565b505050505050565b6000828152600c6020819052604090912001548290610100900460ff16156138b1576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881d5b9b1bd8dad95960821b604482015290519081900360640190fd5b336000908152601a6020526040902054839060ff16806138e757506000818152600d60205260409020546001600160a01b031633145b613926576040805162461bcd60e51b815260206004820152601a6024820152600080516020614e9f833981519152604482015290519081900360640190fd5b6000848152600c602090815260409091208451611b8192600190920191860190614cf5565b613956848484611f34565b613962848484846143eb565b6122aa5760405162461bcd60e51b8152600401808060200182810382526032815260200180614e1d6032913960400191505060405180910390fd5b6000828152600d602052604090205482906001600160a01b031633146139f8576040805162461bcd60e51b815260206004820152600b60248201526a13db9b1e48185c9d1a5cdd60aa1b604482015290519081900360640190fd5b6064821115613a3c576040805162461bcd60e51b815260206004820152600b60248201526a4d6178206f66203130302560a81b604482015290519081900360640190fd5b5060009182526013602052604090912055565b6000828152600c6020819052604090912001548290610100900460ff1615613ab1576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881d5b9b1bd8dad95960821b604482015290519081900360640190fd5b336000908152601a6020526040902054839060ff1680613ae757506000818152600d60205260409020546001600160a01b031633145b613b26576040805162461bcd60e51b815260206004820152601a6024820152600080516020614e9f833981519152604482015290519081900360640190fd5b6000848152600c602090815260409091208451611b8192600890920191860190614cf5565b606081613b5781614126565b613ba2576040805162461bcd60e51b8152602060048201526017602482015276151bdad95b88125108191bd95cc81b9bdd08195e1a5cdd604a1b604482015290519081900360640190fd5b6000838152601660209081526040808320548352600c82529182902060050180548351601f60026000196101006001861615020190931692909204918201849004840281018401909452808452613c589392830182828015613c455780601f10613c1a57610100808354040283529160200191613c45565b820191906000526020600020905b815481529060010190602001808311613c2857829003601f168201915b5050505050613c538561451e565b6145df565b9392505050565b60126020526000908152604090205481565b6014546001600160a01b031681565b336000908152601a602052604090205460ff16613cd7576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481dda1a5d195b1a5cdd195960821b604482015290519081900360640190fd5b6000908152600c6020819052604090912001805460ff19811660ff90911615179055565b6000838152600d602052604090205483906001600160a01b03163314613d56576040805162461bcd60e51b815260206004820152600b60248201526a13db9b1e48185c9d1a5cdd60aa1b604482015290519081900360640190fd5b6000848152600e602090815260409091208451613d7592860190614cf5565b50506000928352600f602052604090922080546001600160a01b0319166001600160a01b039093169290921790915550565b6011602052600090815260409020546001600160a01b031681565b6000818152600c6020819052604090912001548190610100900460ff1615613e24576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881d5b9b1bd8dad95960821b604482015290519081900360640190fd5b336000908152601a6020526040902054829060ff1680613e5a57506000818152600d60205260409020546001600160a01b031633145b613e99576040805162461bcd60e51b815260206004820152601a6024820152600080516020614e9f833981519152604482015290519081900360640190fd5b6000838152600c60205260409020600a0154613efc576040805162461bcd60e51b815260206004820152601e60248201527f746865726520617265206e6f207363726970747320746f2072656d6f76650000604482015290519081900360640190fd5b6000838152600c60209081526040808320600a8101546000190184526009019091528120613f2991614d73565b6000838152600c60205260409020600a0154613f4c90600163ffffffff61461b16565b6000938452600c6020526040909320600a01929092555050565b6000838152600d602052604090205483906001600160a01b03163314613fc1576040805162461bcd60e51b815260206004820152600b60248201526a13db9b1e48185c9d1a5cdd60aa1b604482015290519081900360640190fd5b6064821115614005576040805162461bcd60e51b815260206004820152600b60248201526a4d6178206f66203130302560a81b604482015290519081900360640190fd5b50600092835260116020908152604080852080546001600160a01b0319166001600160a01b03959095169490941790935560129052912055565b6019546001600160a01b0316331461408b576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b601980546001600160a01b0319166001600160a01b0392909216919091179055565b601c5481565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b60136020526000908152604090205481565b60186020526000908152604090205481565b60106020526000908152604090205481565b6019546001600160a01b031681565b6000908152600160205260409020546001600160a01b0316151590565b600082820183811015613c58576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000818152600c6020526040812060060154620f424083028101906141c990600163ffffffff61414316565b6000848152600c60209081526040808320600601849055600b54815163990c8f7960e01b815291519394934393600019850140936001600160a01b039093169263990c8f799260048083019392829003018186803b15801561422a57600080fd5b505afa15801561423e573d6000803e3d6000fd5b505050506040513d602081101561425457600080fd5b5051604080516020818101969096528082019490945260608401929092526080808401919091528151808403909101815260a090920181528151918301919091206000858152601784528281208290558181526018909352912083905590506142bd8583614678565b60008281526016602052604080822086905551859184916001600160a01b038916917f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f91a4509392505050565b600061431582614126565b6143505760405162461bcd60e51b815260040180806020018281038252602c815260200180614e73602c913960400191505060405180910390fd5b600061435b8361266f565b9050806001600160a01b0316846001600160a01b031614806143965750836001600160a01b031661438b84611918565b6001600160a01b0316145b806143a657506143a681856140b3565b949350505050565b6143b9838383614699565b6143c383826147dd565b611f8482826148cb565b5490565b6001600160a01b0316600090815260056020526040902090565b60006143ff846001600160a01b0316614909565b61440b575060016143a6565b604051630a85bd0160e11b815233600482018181526001600160a01b03888116602485015260448401879052608060648501908152865160848601528651600095928a169463150b7a029490938c938b938b939260a4019060208501908083838e5b8381101561448557818101518382015260200161446d565b50505050905090810190601f1680156144b25780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b1580156144d457600080fd5b505af11580156144e8573d6000803e3d6000fd5b505050506040513d60208110156144fe57600080fd5b50516001600160e01b031916630a85bd0160e11b14915050949350505050565b60608161454357506040805180820190915260018152600360fc1b602082015261187c565b8160005b811561455b57600101600a82049150614547565b6060816040519080825280601f01601f191660200182016040528015614588576020820181803883390190505b50905060001982015b85156145d657600a860660300160f81b828280600190039350815181106145b457fe5b60200101906001600160f81b031916908160001a905350600a86049550614591565b50949350505050565b6060613c58838360405180602001604052806000815250604051806020016040528060008152506040518060200160405280600081525061490f565b600082821115614672576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6146828282614b23565b61468c82826148cb565b61469581614c54565b5050565b826001600160a01b03166146ac8261266f565b6001600160a01b0316146146f15760405162461bcd60e51b8152600401808060200182810382526029815260200180614fb36029913960400191505060405180910390fd5b6001600160a01b0382166147365760405162461bcd60e51b8152600401808060200182810382526024815260200180614e4f6024913960400191505060405180910390fd5b61473f81614c98565b6001600160a01b038316600090815260036020526040902061476090614cd5565b6001600160a01b038216600090815260036020526040902061478190614cec565b60008181526001602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b03821660009081526005602052604081205461480790600163ffffffff61461b16565b6000838152600660205260409020549091508082146148a2576001600160a01b038416600090815260056020526040812080548490811061484457fe5b906000526020600020015490508060056000876001600160a01b03166001600160a01b03168152602001908152602001600020838154811061488257fe5b600091825260208083209091019290925591825260069052604090208190555b6001600160a01b0384166000908152600560205260409020805490611b81906000198301614db7565b6001600160a01b0390911660009081526005602081815260408084208054868652600684529185208290559282526001810183559183529091200155565b3b151590565b6060808690506060869050606086905060608690506060869050606081518351855187518951010101016040519080825280601f01601f191660200182016040528015614963576020820181803883390190505b509050806000805b88518110156149bc5788818151811061498057fe5b602001015160f81c60f81b83838060010194508151811061499d57fe5b60200101906001600160f81b031916908160001a90535060010161496b565b5060005b8751811015614a11578781815181106149d557fe5b602001015160f81c60f81b8383806001019450815181106149f257fe5b60200101906001600160f81b031916908160001a9053506001016149c0565b5060005b8651811015614a6657868181518110614a2a57fe5b602001015160f81c60f81b838380600101945081518110614a4757fe5b60200101906001600160f81b031916908160001a905350600101614a15565b5060005b8551811015614abb57858181518110614a7f57fe5b602001015160f81c60f81b838380600101945081518110614a9c57fe5b60200101906001600160f81b031916908160001a905350600101614a6a565b5060005b8451811015614b1057848181518110614ad457fe5b602001015160f81c60f81b838380600101945081518110614af157fe5b60200101906001600160f81b031916908160001a905350600101614abf565b50909d9c50505050505050505050505050565b6001600160a01b038216614b7e576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b614b8781614126565b15614bd9576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b600081815260016020908152604080832080546001600160a01b0319166001600160a01b038716908117909155835260039091529020614c1890614cec565b60405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600780546000838152600860205260408120829055600182018355919091527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6880155565b6000818152600260205260409020546001600160a01b031615614cd257600081815260026020526040902080546001600160a01b03191690555b50565b8054614ce890600163ffffffff61461b16565b9055565b80546001019055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10614d3657805160ff1916838001178555614d63565b82800160010185558215614d63579182015b82811115614d63578251825591602001919060010190614d48565b50614d6f929150614dd7565b5090565b50805460018160011615610100020316600290046000825580601f10614d995750614cd2565b601f016020900490600052602060002090810190614cd29190614dd7565b815481835581811115611f8457600083815260209020611f849181019083015b61191591905b80821115614d6f5760008155600101614ddd56fe455243373231456e756d657261626c653a206f776e657220696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4f6e6c7920617274697374206f722077686974656c69737465640000000000004552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e596f75206d75737420736574206d617820696e766f636174696f6e732067726561746572207468616e2063757272656e7420696e766f636174696f6e734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243373231456e756d657261626c653a20676c6f62616c20696e646578206f7574206f6620626f756e64734d757374206d696e742066726f6d2077686974656c6973746564206d696e74657220636f6e74726163742ea265627a7a72315820f26c0fbc30fbe0c8bb2edbbe5d9b39d99f538cf9ba1f4385c1f51edb5034aca564736f6c63430005110032000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000014ff6f834a2a00e6e5611962b5db6cd23af401e9000000000000000000000000000000000000000000000000000000000000000e43727970746f436974697a656e730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007434954495a454e00000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106103925760003560e01c80638763ad1e116101e0578063b88d4fde11610110578063db2ff861116100a8578063db2ff86114611754578063e13208b414611771578063e2f273bd146117a3578063e935b7b1146117c9578063e985e9c5146117d1578063ed8abfda146117ff578063f51f74a91461181c578063f70c0f0414611839578063f851a4401461185657610392565b8063b88d4fde14611490578063c34a03b514611554578063c6d7323114611577578063c87b56dd14611622578063cc74234b1461163f578063cfbf4d971461165c578063d03c390c14611664578063d195b36514611681578063d7b044b61461173757610392565b8063a11ec70a11610183578063a11ec70a14611102578063a22cb4651461111f578063a3b2cca61461114d578063a47d29cb146111f8578063a65ff74c14611215578063acad012414611264578063ad0305ce1461130f578063b1656ba314611335578063b7b04fae146113e557610392565b80638763ad1e14610cd15780638ba8f14d14610d835780638bddb0a614610da05780638c2c362214610dc65780638c3c9cdd14610ecd5780638dd91a5614610ef057806395d89b41146110d757806397dc86cf146110df57610392565b806336c7c12c116102c6578063621a1f741161025e578063621a1f7414610b3a5780636352211e14610b5757806369d14faf14610b745780636b6ec8a614610ba05780636c907b7f14610bc657806370a0823114610bec578063826fc39114610c125780638462151c14610c35578063867f1a3b14610cab57610392565b806336c7c12c14610786578063378599631461078e5780633af32abf146108395780633e48e8481461085f5780633fef6c2a1461090a57806342842e0e146109b5578063498dd0c1146109eb5780634aa6d41714610a085780634f6ccce714610b1d57610392565b806318160ddd1161033957806318160ddd146105ec5780631b689c0b146105f457806320927ec91461061157806323b872dd1461062e57806325b75d6814610664578063291d95491461070f5780632d9c0205146107355780632e9eb74f146107525780632f745c591461075a57610392565b806301ffc9a71461039757806306fdde03146103d2578063081812fc1461044f578063095ea7b3146104885780630d170673146104b65780630d4d15131461056157806310154bad146105a957806311f5fdf1146105cf575b600080fd5b6103be600480360360208110156103ad57600080fd5b50356001600160e01b03191661185e565b604080519115158252519081900360200190f35b6103da611881565b6040805160208082528351818301528351919283929083019185019080838360005b838110156104145781810151838201526020016103fc565b50505050905090810190601f1680156104415780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61046c6004803603602081101561046557600080fd5b5035611918565b604080516001600160a01b039092168252519081900360200190f35b6104b46004803603604081101561049e57600080fd5b506001600160a01b03813516906020013561197a565b005b6104b4600480360360408110156104cc57600080fd5b81359190810190604081016020820135600160201b8111156104ed57600080fd5b8201836020820111156104ff57600080fd5b803590602001918460018302840111600160201b8311171561052057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611a8b945050505050565b6105976004803603606081101561057757600080fd5b506001600160a01b03813581169160208101359160409091013516611b88565b60408051918252519081900360200190f35b6104b4600480360360208110156105bf57600080fd5b50356001600160a01b0316611d7d565b6104b4600480360360208110156105e557600080fd5b5035611ded565b610597611e81565b6105976004803603602081101561060a57600080fd5b5035611e87565b6103da6004803603602081101561062757600080fd5b5035611e99565b6104b46004803603606081101561064457600080fd5b506001600160a01b03813581169160208101359091169060400135611f34565b6104b46004803603604081101561067a57600080fd5b81359190810190604081016020820135600160201b81111561069b57600080fd5b8201836020820111156106ad57600080fd5b803590602001918460018302840111600160201b831117156106ce57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611f89945050505050565b6104b46004803603602081101561072557600080fd5b50356001600160a01b0316612085565b6103da6004803603602081101561074b57600080fd5b50356120f2565b610597612196565b6105976004803603604081101561077057600080fd5b506001600160a01b03813516906020013561219c565b61046c61221b565b6104b4600480360360408110156107a457600080fd5b81359190810190604081016020820135600160201b8111156107c557600080fd5b8201836020820111156107d757600080fd5b803590602001918460018302840111600160201b831117156107f857600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061222a945050505050565b6103be6004803603602081101561084f57600080fd5b50356001600160a01b03166122b0565b6104b46004803603604081101561087557600080fd5b81359190810190604081016020820135600160201b81111561089657600080fd5b8201836020820111156108a857600080fd5b803590602001918460018302840111600160201b831117156108c957600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506122c5945050505050565b6104b46004803603604081101561092057600080fd5b81359190810190604081016020820135600160201b81111561094157600080fd5b82018360208201111561095357600080fd5b803590602001918460018302840111600160201b8311171561097457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550612345945050505050565b6104b4600480360360608110156109cb57600080fd5b506001600160a01b03813581169160208101359091169060400135612441565b61046c60048036036020811015610a0157600080fd5b503561245c565b610a2560048036036020811015610a1e57600080fd5b5035612477565b6040805160208082018790528415156060830152831515608083015260a08083528851908301528751919283929083019160c0840191908a019080838360005b83811015610a7d578181015183820152602001610a65565b50505050905090810190601f168015610aaa5780820380516001836020036101000a031916815260200191505b50838103825286518152865160209182019188019080838360005b83811015610add578181015183820152602001610ac5565b50505050905090810190601f168015610b0a5780820380516001836020036101000a031916815260200191505b5097505050505050505060405180910390f35b61059760048036036020811015610b3357600080fd5b50356125f7565b61059760048036036020811015610b5057600080fd5b503561265d565b61046c60048036036020811015610b6d57600080fd5b503561266f565b6104b460048036036040811015610b8a57600080fd5b50803590602001356001600160a01b03166126c9565b6104b460048036036020811015610bb657600080fd5b50356001600160a01b031661276d565b6104b460048036036020811015610bdc57600080fd5b50356001600160a01b03166127db565b61059760048036036020811015610c0257600080fd5b50356001600160a01b0316612854565b6104b460048036036040811015610c2857600080fd5b50803590602001356128bc565b610c5b60048036036020811015610c4b57600080fd5b50356001600160a01b0316612a47565b60408051602080825283518183015283519192839290830191858101910280838360005b83811015610c97578181015183820152602001610c7f565b505050509050019250505060405180910390f35b6104b460048036036020811015610cc157600080fd5b50356001600160a01b0316612aa7565b6104b460048036036060811015610ce757600080fd5b810190602081018135600160201b811115610d0157600080fd5b820183602082011115610d1357600080fd5b803590602001918460018302840111600160201b83111715610d3457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550506001600160a01b038335169350505060200135612b14565b6104b460048036036020811015610d9957600080fd5b5035612c3b565b6104b460048036036020811015610db657600080fd5b50356001600160a01b0316612d16565b610de360048036036020811015610ddc57600080fd5b5035612d86565b604051808a6001600160a01b03166001600160a01b0316815260200189815260200188815260200187815260200186151515158152602001856001600160a01b03166001600160a01b0316815260200184815260200180602001836001600160a01b03166001600160a01b03168152602001828103825284818151815260200191508051906020019080838360005b83811015610e8a578181015183820152602001610e72565b50505050905090810190601f168015610eb75780820380516001836020036101000a031916815260200191505b509a505050505050505050505060405180910390f35b6103da60048036036040811015610ee357600080fd5b5080359060200135612ea4565b610f0d60048036036020811015610f0657600080fd5b5035612f51565b60405180806020018060200180602001806020018060200186810386528b818151815260200191508051906020019080838360005b83811015610f5a578181015183820152602001610f42565b50505050905090810190601f168015610f875780820380516001836020036101000a031916815260200191505b5086810385528a5181528a516020918201918c019080838360005b83811015610fba578181015183820152602001610fa2565b50505050905090810190601f168015610fe75780820380516001836020036101000a031916815260200191505b5086810384528951815289516020918201918b019080838360005b8381101561101a578181015183820152602001611002565b50505050905090810190601f1680156110475780820380516001836020036101000a031916815260200191505b5086810383528851815288516020918201918a019080838360005b8381101561107a578181015183820152602001611062565b50505050905090810190601f1680156110a75780820380516001836020036101000a031916815260200191505b50868103825287518152875160209182019189019080838360008315610e8a578181015183820152602001610e72565b6103da61328a565b6104b4600480360360408110156110f557600080fd5b50803590602001356132eb565b6104b46004803603602081101561111857600080fd5b5035613359565b6104b46004803603604081101561113557600080fd5b506001600160a01b03813516906020013515156133e4565b6104b46004803603604081101561116357600080fd5b81359190810190604081016020820135600160201b81111561118457600080fd5b82018360208201111561119657600080fd5b803590602001918460018302840111600160201b831117156111b757600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506134ac945050505050565b61046c6004803603602081101561120e57600080fd5b503561352c565b6112326004803603602081101561122b57600080fd5b5035613547565b604080516001600160a01b03958616815293909416602084015282840191909152606082015290519081900360800190f35b6104b46004803603604081101561127a57600080fd5b81359190810190604081016020820135600160201b81111561129b57600080fd5b8201836020820111156112ad57600080fd5b803590602001918460018302840111600160201b831117156112ce57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550613590945050505050565b6103be6004803603602081101561132557600080fd5b50356001600160a01b03166136d4565b6104b46004803603606081101561134b57600080fd5b813591602081013591810190606081016040820135600160201b81111561137157600080fd5b82018360208201111561138357600080fd5b803590602001918460018302840111600160201b831117156113a457600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506136e9945050505050565b6104b4600480360360408110156113fb57600080fd5b81359190810190604081016020820135600160201b81111561141c57600080fd5b82018360208201111561142e57600080fd5b803590602001918460018302840111600160201b8311171561144f57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061384f945050505050565b6104b4600480360360808110156114a657600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b8111156114e057600080fd5b8201836020820111156114f257600080fd5b803590602001918460018302840111600160201b8311171561151357600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061394b945050505050565b6104b46004803603604081101561156a57600080fd5b508035906020013561399d565b6104b46004803603604081101561158d57600080fd5b81359190810190604081016020820135600160201b8111156115ae57600080fd5b8201836020820111156115c057600080fd5b803590602001918460018302840111600160201b831117156115e157600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550613a4f945050505050565b6103da6004803603602081101561163857600080fd5b5035613b4b565b6105976004803603602081101561165557600080fd5b5035613c5f565b61046c613c71565b6104b46004803603602081101561167a57600080fd5b5035613c80565b6104b46004803603606081101561169757600080fd5b81359190810190604081016020820135600160201b8111156116b857600080fd5b8201836020820111156116ca57600080fd5b803590602001918460018302840111600160201b831117156116eb57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550505090356001600160a01b03169150613cfb9050565b61046c6004803603602081101561174d57600080fd5b5035613da7565b6104b46004803603602081101561176a57600080fd5b5035613dc2565b6104b46004803603606081101561178757600080fd5b508035906001600160a01b036020820135169060400135613f66565b6104b4600480360360208110156117b957600080fd5b50356001600160a01b031661403f565b6105976140ad565b6103be600480360360408110156117e757600080fd5b506001600160a01b03813581169160200135166140b3565b6105976004803603602081101561181557600080fd5b50356140e1565b6105976004803603602081101561183257600080fd5b50356140f3565b6105976004803603602081101561184f57600080fd5b5035614105565b61046c614117565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60098054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561190d5780601f106118e25761010080835404028352916020019161190d565b820191906000526020600020905b8154815290600101906020018083116118f057829003601f168201915b505050505090505b90565b600061192382614126565b61195e5760405162461bcd60e51b815260040180806020018281038252602c815260200180614f87602c913960400191505060405180910390fd5b506000908152600260205260409020546001600160a01b031690565b60006119858261266f565b9050806001600160a01b0316836001600160a01b031614156119d85760405162461bcd60e51b8152600401808060200182810382526021815260200180614fdc6021913960400191505060405180910390fd5b336001600160a01b03821614806119f457506119f481336140b3565b611a2f5760405162461bcd60e51b8152600401808060200182810382526038815260200180614ebf6038913960400191505060405180910390fd5b60008281526002602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000828152600c6020819052604090912001548290610100900460ff1615611aed576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881d5b9b1bd8dad95960821b604482015290519081900360640190fd5b336000908152601a6020526040902054839060ff1680611b2357506000818152600d60205260409020546001600160a01b031633145b611b62576040805162461bcd60e51b815260206004820152601a6024820152600080516020614e9f833981519152604482015290519081900360640190fd5b6000848152600c602090815260409091208451611b8192860190614cf5565b5050505050565b336000908152601b602052604081205460ff16611bd65760405162461bcd60e51b815260040180806020018281038252602b81526020018061505a602b913960400191505060405180910390fd5b6000838152600c602052604090206007810154600690910154611c0090600163ffffffff61414316565b1115611c53576040805162461bcd60e51b815260206004820152601f60248201527f4d757374206e6f7420657863656564206d617820696e766f636174696f6e7300604482015290519081900360640190fd5b6000838152600c60208190526040909120015460ff1680611c8d57506000838152600d60205260409020546001600160a01b038381169116145b611cde576040805162461bcd60e51b815260206004820181905260248201527f50726f6a656374206d75737420657869737420616e6420626520616374697665604482015290519081900360640190fd5b6000838152600c60208190526040909120015462010000900460ff161580611d1f57506000838152600d60205260409020546001600160a01b038381169116145b611d68576040805162461bcd60e51b8152602060048201526015602482015274283ab931b430b9b2b99030b932903830bab9b2b21760591b604482015290519081900360640190fd5b6000611d74858561419d565b95945050505050565b6019546001600160a01b03163314611dc9576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b6001600160a01b03166000908152601a60205260409020805460ff19166001179055565b6019546001600160a01b03163314611e39576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b6019811115611e7c576040805162461bcd60e51b815260206004820152600a6024820152694d6178206f662032352560b01b604482015290519081900360640190fd5b601555565b60075490565b60166020526000908152604090205481565b600e6020908152600091825260409182902080548351601f600260001961010060018616150201909316929092049182018490048402810184019094528084529091830182828015611f2c5780601f10611f0157610100808354040283529160200191611f2c565b820191906000526020600020905b815481529060010190602001808311611f0f57829003601f168201915b505050505081565b611f3e338261430a565b611f795760405162461bcd60e51b8152600401808060200182810382526031815260200180614ffd6031913960400191505060405180910390fd5b611f848383836143ae565b505050565b6000828152600c6020819052604090912001548290610100900460ff1615611feb576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881d5b9b1bd8dad95960821b604482015290519081900360640190fd5b336000908152601a6020526040902054839060ff168061202157506000818152600d60205260409020546001600160a01b031633145b612060576040805162461bcd60e51b815260206004820152601a6024820152600080516020614e9f833981519152604482015290519081900360640190fd5b6000848152600c602090815260409091208451611b8192600490920191860190614cf5565b6019546001600160a01b031633146120d1576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b6001600160a01b03166000908152601a60205260409020805460ff19169055565b6000818152600c602090815260409182902060050180548351601f600260001961010060018616150201909316929092049182018490048402810184019094528084526060939283018282801561218a5780601f1061215f5761010080835404028352916020019161218a565b820191906000526020600020905b81548152906001019060200180831161216d57829003601f168201915b50505050509050919050565b60155481565b60006121a783612854565b82106121e45760405162461bcd60e51b815260040180806020018281038252602b815260200180614df2602b913960400191505060405180910390fd5b6001600160a01b038316600090815260056020526040902080548390811061220857fe5b9060005260206000200154905092915050565b600b546001600160a01b031681565b6000828152600d602052604090205482906001600160a01b03163314612285576040805162461bcd60e51b815260206004820152600b60248201526a13db9b1e48185c9d1a5cdd60aa1b604482015290519081900360640190fd5b6000838152600c6020908152604090912083516122aa92600390920191850190614cf5565b50505050565b601a6020526000908152604090205460ff1681565b6000828152600d602052604090205482906001600160a01b03163314612320576040805162461bcd60e51b815260206004820152600b60248201526a13db9b1e48185c9d1a5cdd60aa1b604482015290519081900360640190fd5b6000838152600c6020908152604090912083516122aa92600590920191850190614cf5565b6000828152600c6020819052604090912001548290610100900460ff16156123a7576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881d5b9b1bd8dad95960821b604482015290519081900360640190fd5b336000908152601a6020526040902054839060ff16806123dd57506000818152600d60205260409020546001600160a01b031633145b61241c576040805162461bcd60e51b815260206004820152601a6024820152600080516020614e9f833981519152604482015290519081900360640190fd5b6000848152600c602090815260409091208451611b8192600b90920191860190614cf5565b611f848383836040518060200160405280600081525061394b565b600f602052600090815260409020546001600160a01b031681565b6000818152600c602090815260408083206008018054825160026001831615610100026000190190921691909104601f810185900485028201850190935282815260609493859385938493929091908301828280156125175780601f106124ec57610100808354040283529160200191612517565b820191906000526020600020905b8154815290600101906020018083116124fa57829003601f168201915b5050506000898152600c6020908152604091829020600a810154600b9091018054845160026001831615610100026000190190921691909104601f8101859004850282018501909552848152969b5090995093509091508301828280156125bf5780601f10612594576101008083540402835291602001916125bf565b820191906000526020600020905b8154815290600101906020018083116125a257829003601f168201915b50505060009889525050600c6020819052604090972090960154949693959460ff610100820481169562010000909204169350915050565b6000612601611e81565b821061263e5760405162461bcd60e51b815260040180806020018281038252602c81526020018061502e602c913960400191505060405180910390fd5b6007828154811061264b57fe5b90600052602060002001549050919050565b60176020526000908152604090205481565b6000818152600160205260408120546001600160a01b0316806126c35760405162461bcd60e51b8152600401808060200182810382526029815260200180614f216029913960400191505060405180910390fd5b92915050565b336000908152601a6020526040902054829060ff16806126ff57506000818152600d60205260409020546001600160a01b031633145b61273e576040805162461bcd60e51b815260206004820152601a6024820152600080516020614e9f833981519152604482015290519081900360640190fd5b506000918252600d602052604090912080546001600160a01b0319166001600160a01b03909216919091179055565b6019546001600160a01b031633146127b9576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b601480546001600160a01b0319166001600160a01b0392909216919091179055565b336000908152601a602052604090205460ff16612832576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481dda1a5d195b1a5cdd195960821b604482015290519081900360640190fd5b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b03821661289b5760405162461bcd60e51b815260040180806020018281038252602a815260200180614ef7602a913960400191505060405180910390fd5b6001600160a01b03821660009081526003602052604090206126c3906143cd565b6000828152600d602052604090205482906001600160a01b03163314612917576040805162461bcd60e51b815260206004820152600b60248201526a13db9b1e48185c9d1a5cdd60aa1b604482015290519081900360640190fd5b6000838152600c602081905260409091200154610100900460ff16158061294e57506000838152600c602052604090206007015482105b612992576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881d5b9b1bd8dad95960821b604482015290519081900360640190fd5b6000838152600c602052604090206006015482116129e15760405162461bcd60e51b815260040180806020018281038252603d815260200180614f4a603d913960400191505060405180910390fd5b620f4240821115612a31576040805162461bcd60e51b8152602060048201526015602482015274043616e6e6f7420657863656564203130303030303605c1b604482015290519081900360640190fd5b506000918252600c602052604090912060070155565b6060612a52826143d1565b80548060200260200160405190810160405280929190818152602001828054801561218a57602002820191906000526020600020905b815481526020019060010190808311612a885750505050509050919050565b6019546001600160a01b03163314612af3576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b6001600160a01b03166000908152601b60205260409020805460ff19169055565b336000908152601a602052604090205460ff16612b6b576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481dda1a5d195b1a5cdd195960821b604482015290519081900360640190fd5b601c546000818152600d6020908152604080832080546001600160a01b0319166001600160a01b038816179055600c82529091208551612bad92870190614cf5565b50604080518082018252600381526208aa8960eb1b60208083019182526000858152600e909152929092209051612be49290614cf5565b506000818152601060209081526040808320859055600c91829052909120908101805462ff0000191662010000179055620f4240600790910155601c54612c3290600163ffffffff61414316565b601c5550505050565b336000908152601a602052604090205460ff16612c92576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481dda1a5d195b1a5cdd195960821b604482015290519081900360640190fd5b6000818152600c6020819052604090912001548190610100900460ff1615612cf4576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881d5b9b1bd8dad95960821b604482015290519081900360640190fd5b506000908152600c6020819052604090912001805461ff001916610100179055565b6019546001600160a01b03163314612d62576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b6001600160a01b03166000908152601b60205260409020805460ff19166001179055565b6000818152600d60209081526040808320546010835281842054600c80855283862060068101546007820154919092015460118752858820546012885286892054600e8952878a208054895160026101006001841615026000190190921691909104601f81018c90048c0282018c01909a528981526001600160a01b039889169b979a9699959860ff90951697949093169591946060949392830182828015612e705780601f10612e4557610100808354040283529160200191612e70565b820191906000526020600020905b815481529060010190602001808311612e5357829003601f168201915b50505060009c8d525050600f6020526040909a2054989a9799969895979496939592946001600160a01b0390931692915050565b6000828152600c6020908152604080832084845260090182529182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845260609392830182828015612f445780601f10612f1957610100808354040283529160200191612f44565b820191906000526020600020905b815481529060010190602001808311612f2757829003601f168201915b5050505050905092915050565b6000818152600c602090815260409182902080548351601f60026000196101006001861615020190931692909204918201849004840281018401909452808452606093849384938493849392830182828015612fee5780601f10612fc357610100808354040283529160200191612fee565b820191906000526020600020905b815481529060010190602001808311612fd157829003601f168201915b50505050509450600c60008781526020019081526020016000206001018054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561309f5780601f106130745761010080835404028352916020019161309f565b820191906000526020600020905b81548152906001019060200180831161308257829003601f168201915b5050506000898152600c60209081526040918290206002908101805484516001821615610100026000190190911692909204601f810184900484028301840190945283825295995094935090915083018282801561313e5780601f106131135761010080835404028352916020019161313e565b820191906000526020600020905b81548152906001019060200180831161312157829003601f168201915b5050506000898152600c60209081526040918290206003018054835160026001831615610100026000190190921691909104601f810184900484028201840190945283815295985093509091508301828280156131dc5780601f106131b1576101008083540402835291602001916131dc565b820191906000526020600020905b8154815290600101906020018083116131bf57829003601f168201915b5050506000898152600c60209081526040918290206004018054835160026001831615610100026000190190921691909104601f8101849004840282018401909452838152959750935090915083018282801561327a5780601f1061324f5761010080835404028352916020019161327a565b820191906000526020600020905b81548152906001019060200180831161325d57829003601f168201915b5050505050905091939590929450565b600a8054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561190d5780601f106118e25761010080835404028352916020019161190d565b6000828152600d602052604090205482906001600160a01b03163314613346576040805162461bcd60e51b815260206004820152600b60248201526a13db9b1e48185c9d1a5cdd60aa1b604482015290519081900360640190fd5b5060009182526010602052604090912055565b6000818152600d602052604090205481906001600160a01b031633146133b4576040805162461bcd60e51b815260206004820152600b60248201526a13db9b1e48185c9d1a5cdd60aa1b604482015290519081900360640190fd5b506000908152600c6020819052604090912001805462ff0000198116620100009182900460ff1615909102179055565b6001600160a01b03821633141561343e576040805162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b604482015290519081900360640190fd5b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff1916861515908117909155815190815290519293927f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31929181900390910190a35050565b6000828152600d602052604090205482906001600160a01b03163314613507576040805162461bcd60e51b815260206004820152600b60248201526a13db9b1e48185c9d1a5cdd60aa1b604482015290519081900360640190fd5b6000838152600c6020908152604090912083516122aa92600290920191850190614cf5565b600d602052600090815260409020546001600160a01b031681565b6000908152601660209081526040808320548352600d82528083205460118352818420546012845282852054601390945291909320546001600160a01b03938416949390911692565b6000828152600c6020819052604090912001548290610100900460ff16156135f2576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881d5b9b1bd8dad95960821b604482015290519081900360640190fd5b336000908152601a6020526040902054839060ff168061362857506000818152600d60205260409020546001600160a01b031633145b613667576040805162461bcd60e51b815260206004820152601a6024820152600080516020614e9f833981519152604482015290519081900360640190fd5b6000848152600c60209081526040808320600a81015484526009018252909120845161369592860190614cf5565b506000848152600c60205260409020600a01546136b990600163ffffffff61414316565b6000948552600c6020526040909420600a0193909355505050565b601b6020526000908152604090205460ff1681565b6000838152600c6020819052604090912001548390610100900460ff161561374b576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881d5b9b1bd8dad95960821b604482015290519081900360640190fd5b336000908152601a6020526040902054849060ff168061378157506000818152600d60205260409020546001600160a01b031633145b6137c0576040805162461bcd60e51b815260206004820152601a6024820152600080516020614e9f833981519152604482015290519081900360640190fd5b6000858152600c60205260409020600a0154841061381d576040805162461bcd60e51b81526020600482015260156024820152747363726970744964206f7574206f662072616e676560581b604482015290519081900360640190fd5b6000858152600c602090815260408083208784526009018252909120845161384792860190614cf5565b505050505050565b6000828152600c6020819052604090912001548290610100900460ff16156138b1576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881d5b9b1bd8dad95960821b604482015290519081900360640190fd5b336000908152601a6020526040902054839060ff16806138e757506000818152600d60205260409020546001600160a01b031633145b613926576040805162461bcd60e51b815260206004820152601a6024820152600080516020614e9f833981519152604482015290519081900360640190fd5b6000848152600c602090815260409091208451611b8192600190920191860190614cf5565b613956848484611f34565b613962848484846143eb565b6122aa5760405162461bcd60e51b8152600401808060200182810382526032815260200180614e1d6032913960400191505060405180910390fd5b6000828152600d602052604090205482906001600160a01b031633146139f8576040805162461bcd60e51b815260206004820152600b60248201526a13db9b1e48185c9d1a5cdd60aa1b604482015290519081900360640190fd5b6064821115613a3c576040805162461bcd60e51b815260206004820152600b60248201526a4d6178206f66203130302560a81b604482015290519081900360640190fd5b5060009182526013602052604090912055565b6000828152600c6020819052604090912001548290610100900460ff1615613ab1576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881d5b9b1bd8dad95960821b604482015290519081900360640190fd5b336000908152601a6020526040902054839060ff1680613ae757506000818152600d60205260409020546001600160a01b031633145b613b26576040805162461bcd60e51b815260206004820152601a6024820152600080516020614e9f833981519152604482015290519081900360640190fd5b6000848152600c602090815260409091208451611b8192600890920191860190614cf5565b606081613b5781614126565b613ba2576040805162461bcd60e51b8152602060048201526017602482015276151bdad95b88125108191bd95cc81b9bdd08195e1a5cdd604a1b604482015290519081900360640190fd5b6000838152601660209081526040808320548352600c82529182902060050180548351601f60026000196101006001861615020190931692909204918201849004840281018401909452808452613c589392830182828015613c455780601f10613c1a57610100808354040283529160200191613c45565b820191906000526020600020905b815481529060010190602001808311613c2857829003601f168201915b5050505050613c538561451e565b6145df565b9392505050565b60126020526000908152604090205481565b6014546001600160a01b031681565b336000908152601a602052604090205460ff16613cd7576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481dda1a5d195b1a5cdd195960821b604482015290519081900360640190fd5b6000908152600c6020819052604090912001805460ff19811660ff90911615179055565b6000838152600d602052604090205483906001600160a01b03163314613d56576040805162461bcd60e51b815260206004820152600b60248201526a13db9b1e48185c9d1a5cdd60aa1b604482015290519081900360640190fd5b6000848152600e602090815260409091208451613d7592860190614cf5565b50506000928352600f602052604090922080546001600160a01b0319166001600160a01b039093169290921790915550565b6011602052600090815260409020546001600160a01b031681565b6000818152600c6020819052604090912001548190610100900460ff1615613e24576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881d5b9b1bd8dad95960821b604482015290519081900360640190fd5b336000908152601a6020526040902054829060ff1680613e5a57506000818152600d60205260409020546001600160a01b031633145b613e99576040805162461bcd60e51b815260206004820152601a6024820152600080516020614e9f833981519152604482015290519081900360640190fd5b6000838152600c60205260409020600a0154613efc576040805162461bcd60e51b815260206004820152601e60248201527f746865726520617265206e6f207363726970747320746f2072656d6f76650000604482015290519081900360640190fd5b6000838152600c60209081526040808320600a8101546000190184526009019091528120613f2991614d73565b6000838152600c60205260409020600a0154613f4c90600163ffffffff61461b16565b6000938452600c6020526040909320600a01929092555050565b6000838152600d602052604090205483906001600160a01b03163314613fc1576040805162461bcd60e51b815260206004820152600b60248201526a13db9b1e48185c9d1a5cdd60aa1b604482015290519081900360640190fd5b6064821115614005576040805162461bcd60e51b815260206004820152600b60248201526a4d6178206f66203130302560a81b604482015290519081900360640190fd5b50600092835260116020908152604080852080546001600160a01b0319166001600160a01b03959095169490941790935560129052912055565b6019546001600160a01b0316331461408b576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b601980546001600160a01b0319166001600160a01b0392909216919091179055565b601c5481565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b60136020526000908152604090205481565b60186020526000908152604090205481565b60106020526000908152604090205481565b6019546001600160a01b031681565b6000908152600160205260409020546001600160a01b0316151590565b600082820183811015613c58576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000818152600c6020526040812060060154620f424083028101906141c990600163ffffffff61414316565b6000848152600c60209081526040808320600601849055600b54815163990c8f7960e01b815291519394934393600019850140936001600160a01b039093169263990c8f799260048083019392829003018186803b15801561422a57600080fd5b505afa15801561423e573d6000803e3d6000fd5b505050506040513d602081101561425457600080fd5b5051604080516020818101969096528082019490945260608401929092526080808401919091528151808403909101815260a090920181528151918301919091206000858152601784528281208290558181526018909352912083905590506142bd8583614678565b60008281526016602052604080822086905551859184916001600160a01b038916917f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f91a4509392505050565b600061431582614126565b6143505760405162461bcd60e51b815260040180806020018281038252602c815260200180614e73602c913960400191505060405180910390fd5b600061435b8361266f565b9050806001600160a01b0316846001600160a01b031614806143965750836001600160a01b031661438b84611918565b6001600160a01b0316145b806143a657506143a681856140b3565b949350505050565b6143b9838383614699565b6143c383826147dd565b611f8482826148cb565b5490565b6001600160a01b0316600090815260056020526040902090565b60006143ff846001600160a01b0316614909565b61440b575060016143a6565b604051630a85bd0160e11b815233600482018181526001600160a01b03888116602485015260448401879052608060648501908152865160848601528651600095928a169463150b7a029490938c938b938b939260a4019060208501908083838e5b8381101561448557818101518382015260200161446d565b50505050905090810190601f1680156144b25780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b1580156144d457600080fd5b505af11580156144e8573d6000803e3d6000fd5b505050506040513d60208110156144fe57600080fd5b50516001600160e01b031916630a85bd0160e11b14915050949350505050565b60608161454357506040805180820190915260018152600360fc1b602082015261187c565b8160005b811561455b57600101600a82049150614547565b6060816040519080825280601f01601f191660200182016040528015614588576020820181803883390190505b50905060001982015b85156145d657600a860660300160f81b828280600190039350815181106145b457fe5b60200101906001600160f81b031916908160001a905350600a86049550614591565b50949350505050565b6060613c58838360405180602001604052806000815250604051806020016040528060008152506040518060200160405280600081525061490f565b600082821115614672576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6146828282614b23565b61468c82826148cb565b61469581614c54565b5050565b826001600160a01b03166146ac8261266f565b6001600160a01b0316146146f15760405162461bcd60e51b8152600401808060200182810382526029815260200180614fb36029913960400191505060405180910390fd5b6001600160a01b0382166147365760405162461bcd60e51b8152600401808060200182810382526024815260200180614e4f6024913960400191505060405180910390fd5b61473f81614c98565b6001600160a01b038316600090815260036020526040902061476090614cd5565b6001600160a01b038216600090815260036020526040902061478190614cec565b60008181526001602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b03821660009081526005602052604081205461480790600163ffffffff61461b16565b6000838152600660205260409020549091508082146148a2576001600160a01b038416600090815260056020526040812080548490811061484457fe5b906000526020600020015490508060056000876001600160a01b03166001600160a01b03168152602001908152602001600020838154811061488257fe5b600091825260208083209091019290925591825260069052604090208190555b6001600160a01b0384166000908152600560205260409020805490611b81906000198301614db7565b6001600160a01b0390911660009081526005602081815260408084208054868652600684529185208290559282526001810183559183529091200155565b3b151590565b6060808690506060869050606086905060608690506060869050606081518351855187518951010101016040519080825280601f01601f191660200182016040528015614963576020820181803883390190505b509050806000805b88518110156149bc5788818151811061498057fe5b602001015160f81c60f81b83838060010194508151811061499d57fe5b60200101906001600160f81b031916908160001a90535060010161496b565b5060005b8751811015614a11578781815181106149d557fe5b602001015160f81c60f81b8383806001019450815181106149f257fe5b60200101906001600160f81b031916908160001a9053506001016149c0565b5060005b8651811015614a6657868181518110614a2a57fe5b602001015160f81c60f81b838380600101945081518110614a4757fe5b60200101906001600160f81b031916908160001a905350600101614a15565b5060005b8551811015614abb57858181518110614a7f57fe5b602001015160f81c60f81b838380600101945081518110614a9c57fe5b60200101906001600160f81b031916908160001a905350600101614a6a565b5060005b8451811015614b1057848181518110614ad457fe5b602001015160f81c60f81b838380600101945081518110614af157fe5b60200101906001600160f81b031916908160001a905350600101614abf565b50909d9c50505050505050505050505050565b6001600160a01b038216614b7e576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b614b8781614126565b15614bd9576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b600081815260016020908152604080832080546001600160a01b0319166001600160a01b038716908117909155835260039091529020614c1890614cec565b60405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600780546000838152600860205260408120829055600182018355919091527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6880155565b6000818152600260205260409020546001600160a01b031615614cd257600081815260026020526040902080546001600160a01b03191690555b50565b8054614ce890600163ffffffff61461b16565b9055565b80546001019055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10614d3657805160ff1916838001178555614d63565b82800160010185558215614d63579182015b82811115614d63578251825591602001919060010190614d48565b50614d6f929150614dd7565b5090565b50805460018160011615610100020316600290046000825580601f10614d995750614cd2565b601f016020900490600052602060002090810190614cd29190614dd7565b815481835581811115611f8457600083815260209020611f849181019083015b61191591905b80821115614d6f5760008155600101614ddd56fe455243373231456e756d657261626c653a206f776e657220696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4f6e6c7920617274697374206f722077686974656c69737465640000000000004552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e596f75206d75737420736574206d617820696e766f636174696f6e732067726561746572207468616e2063757272656e7420696e766f636174696f6e734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243373231456e756d657261626c653a20676c6f62616c20696e646578206f7574206f6620626f756e64734d757374206d696e742066726f6d2077686974656c6973746564206d696e74657220636f6e74726163742ea265627a7a72315820f26c0fbc30fbe0c8bb2edbbe5d9b39d99f538cf9ba1f4385c1f51edb5034aca564736f6c63430005110032
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000014ff6f834a2a00e6e5611962b5db6cd23af401e9000000000000000000000000000000000000000000000000000000000000000e43727970746f436974697a656e730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007434954495a454e00000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _tokenName (string): CryptoCitizens
Arg [1] : _tokenSymbol (string): CITIZEN
Arg [2] : _randomizerContract (address): 0x14ff6f834a2a00E6E5611962B5db6cD23AF401e9
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000014ff6f834a2a00e6e5611962b5db6cd23af401e9
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000e
Arg [4] : 43727970746f436974697a656e73000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [6] : 434954495a454e00000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ 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.